/* ============================================================
   NAVIGATION
   Fixed top bar. Transparent on load, becomes frosted glass
   when the user scrolls down (JS adds .scrolled class).
   ============================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  transition: background 0.5s;
}

/* JS adds .scrolled when scrollY > 50px */
.nav.scrolled {
  background: rgba(245, 241, 235, 0.95);
  backdrop-filter: blur(20px);             /* Frosted glass effect */
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: clamp(24px, 6vw, 100px);
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── LOGO ────────────────────────────────────────────────── */
.nav__logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

/* ── LINKS ───────────────────────────────────────────────── */
.nav__links {
  display: flex;
  list-style: none;
  gap: 40px;
  align-items: center;
}

/* Each nav link drops in staggered on page load */
.nav__links li {
  opacity: 0;
  transform: translateY(-10px);
  animation: navIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.nav__links li:nth-child(1) { animation-delay: 0.08s; }
.nav__links li:nth-child(2) { animation-delay: 0.16s; }
.nav__links li:nth-child(3) { animation-delay: 0.24s; }
.nav__links li:nth-child(4) { animation-delay: 0.32s; }
.nav__links li:nth-child(5) { animation-delay: 0.40s; }

.nav__links a {
  text-decoration: none;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--soft);
  transition: color 0.3s;
  position: relative;
  white-space: nowrap;
}

/* Animated underline grows on hover */
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 1px;
  background: var(--ink);
  transition: width 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }

/* ── CTA BUTTON ──────────────────────────────────────────── */
.nav__cta {
  flex-shrink: 0;
  padding: 11px 28px;
  background: var(--warm);
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity 0.3s;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  display: inline-block;
  line-height: 1;

  /* Matches nav link stagger — appears last */
  opacity: 0;
  animation: navIn 0.6s 0.48s forwards;
}

.nav__cta:hover { opacity: 0.8; }
