/* ─────────────────────────────────────
   NAV — shared across all pages
   Extracted from styles.css; follows the index.html V5 reference.
───────────────────────────────────── */

/* Default token for pages that don't set their own --nav-h */
:root { --nav-h: 72px; }

#mainNav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 72px);
  background: rgba(250,248,244,0.88);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s, box-shadow 0.35s;
}
#mainNav.scrolled {
  border-color: var(--border);
  box-shadow: 0 2px 28px rgba(28,26,22,0.06);
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 500;
  color: var(--charcoal);
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.nav-logo em { font-style: italic; color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover  { color: var(--charcoal); }
.nav-links a.active { color: var(--gold); }

/* Conditions dropdown */
.nav-has-dropdown { position: relative; }
.nav-has-dropdown > a { display: flex; align-items: center; gap: 5px; }
.nav-has-dropdown > a::after {
  content: '';
  width: 5px; height: 5px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: 0.5;
  transition: transform 0.2s;
}
.nav-has-dropdown:hover > a::after {
  transform: rotate(-135deg) translateY(-2px);
}
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: -20px;
  min-width: 200px;
  background: rgba(250,248,244,0.98);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(28,26,22,0.1);
  padding: 12px 0 8px;
  list-style: none;
  z-index: 100;
}
.nav-has-dropdown:hover .nav-dropdown { display: block; }
.nav-dropdown li a {
  display: block;
  padding: 10px 20px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.nav-dropdown li a:hover { color: var(--charcoal); background: var(--cream2); }
.nav-dropdown li a.active { color: var(--gold); }

.nav-cta {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 10px 22px;
  background: var(--charcoal);
  color: var(--white);
  border-radius: 40px;
  white-space: nowrap;
  transition: background 0.25s, transform 0.2s;
}
.nav-cta:hover { background: var(--gold); transform: translateY(-1px); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--charcoal);
}

/* Mobile overlay */
.mob-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 980;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  overflow-y: auto;
  padding: 80px 24px 48px;
}
.mob-overlay.open { display: flex; }
.mob-overlay a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 300;
  color: var(--charcoal);
}
.mob-overlay a.active { color: var(--gold); }
.mob-close {
  position: absolute;
  top: 24px; right: 24px;
  font-size: 28px;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
}

@media (max-width: 800px) {
  .nav-links, .nav-cta-wrap { display: none; }
  .hamburger { display: flex; }
}
