/* ── MAI DARKER — Global Styles ──────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=Raleway:wght@200;300;400;500;600&display=swap');

:root {
  --black:      #0a0a0a;
  --dark:       #111111;
  --dark-mid:   #1a1a1a;
  --grey-dark:  #2a2a2a;
  --grey-mid:   #555555;
  --grey-light: #999999;
  --white:      #f5f2ee;
  --off-white:  #e8e4df;
  --accent:     #c8a96e;   /* muted gold */
  --accent-dim: #7a6340;
  --display:    'Playfair Display', serif;
  --body:       'Raleway', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--body);
  font-weight: 300;
  overflow-x: hidden;
}
img  { max-width: 100%; display: block; }
a    { text-decoration: none; color: inherit; }

/* ── GRAIN OVERLAY ─────────────────────────────────── */
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.35;
}

/* ── NAV ───────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 3rem;
  background: linear-gradient(to bottom, rgba(10,10,10,0.95) 0%, transparent 100%);
  transition: background 0.4s;
}
nav.scrolled {
  background: rgba(10,10,10,0.97);
  border-bottom: 1px solid rgba(200,169,110,0.1);
}
.nav-logo {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--white);
  text-transform: uppercase;
}
.nav-logo span { color: var(--accent); }
.nav-links {
  display: flex; gap: 2.5rem; list-style: none;
}
.nav-links a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey-light);
  transition: color 0.25s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transition: transform 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
}
.hamburger span { display: block; width: 22px; height: 1px; background: var(--white); transition: all 0.3s; }

/* ── FOOTER ────────────────────────────────────────── */
footer {
  background: var(--dark);
  border-top: 1px solid var(--grey-dark);
  padding: 3.5rem 3rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  max-width: 100%;
}
.footer-brand .nav-logo { font-size: 1.1rem; margin-bottom: 0.8rem; }
.footer-brand p {
  font-size: 0.78rem;
  color: var(--grey-mid);
  line-height: 1.8;
  letter-spacing: 0.04em;
  max-width: 280px;
}
.footer-right {
  display: flex; flex-direction: column; align-items: flex-end; gap: 1.2rem;
}
.footer-email-form {
  display: flex; gap: 0;
}
.footer-email-form input {
  padding: 0.7rem 1rem;
  background: var(--dark-mid);
  border: 1px solid var(--grey-dark);
  border-right: none;
  color: var(--white);
  font-family: var(--body);
  font-size: 0.8rem;
  outline: none;
  border-radius: 1px 0 0 1px;
  width: 220px;
  transition: border-color 0.2s;
}
.footer-email-form input::placeholder { color: var(--grey-mid); }
.footer-email-form input:focus { border-color: var(--accent); }
.footer-email-form button {
  padding: 0.7rem 1.4rem;
  background: var(--accent);
  border: none;
  color: var(--black);
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 0 1px 1px 0;
  transition: background 0.2s;
}
.footer-email-form button:hover { background: var(--off-white); }
.footer-copy {
  grid-column: 1 / -1;
  border-top: 1px solid var(--grey-dark);
  padding-top: 1.5rem;
  margin-top: 1rem;
  font-size: 0.72rem;
  color: var(--grey-mid);
  letter-spacing: 0.08em;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-copy strong { color: var(--accent); }

/* ── FADE IN ───────────────────────────────────────── */
.fade-in {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible { opacity: 1; transform: none; }

/* ── MOBILE ────────────────────────────────────────── */
@media (max-width: 768px) {
  nav { padding: 1rem 1.2rem; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: rgba(10,10,10,0.98); padding: 2rem; gap: 1.5rem; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  footer { grid-template-columns: 1fr; padding: 2.5rem 1.5rem 1.5rem; }
  .footer-right { align-items: flex-start; }
  .footer-copy { flex-direction: column; gap: 0.5rem; text-align: center; }
}
