/* ═══════════════════════════════════════════════════════════
   Shared header — all three pages
   Uses CSS custom properties defined per-page in :root {}
   ═══════════════════════════════════════════════════════════ */

/* ── CURSOR RESET ────────────────────────────────────────── */
html, body { cursor: auto; }
a, button, [role="button"],
input[type="submit"], input[type="button"], input[type="reset"],
select, summary { cursor: pointer; }
input:not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]),
textarea { cursor: text; }

/* ── URGENCY BAR ─────────────────────────────────────────── */
.urgency-bar {
  position: sticky; top: 0; z-index: 340;
  background: var(--gold); color: var(--deep); text-align: center;
  padding: 12px 20px; font-size: 12px; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
}
.urgency-bar a {
  color: var(--deep); text-decoration: none; margin-left: 20px;
  border-bottom: 1px solid rgba(10,24,32,0.4); padding-bottom: 1px;
  transition: border-color 0.2s;
}
.urgency-bar a:hover { border-color: var(--deep); }
.urgency-pulse {
  display: inline-block; width: 7px; height: 7px; background: var(--deep);
  border-radius: 50%; margin-right: 10px; vertical-align: middle;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.75); }
}

/* ── NAV ─────────────────────────────────────────────────── */
nav {
  position: fixed; top: 42px; left: 0; right: 0; z-index: 320;
  padding: 26px 60px; display: flex; justify-content: flex-start;
  align-items: center;
  transition: background 0.4s ease, padding 0.4s ease,
              border-color 0.4s ease, box-shadow 0.4s ease;
}
nav.scrolled {
  background: rgba(250,246,239,0.97); backdrop-filter: blur(20px);
  padding: 16px 60px; border-bottom: 1px solid var(--light-border);
}

/* ── LOGO ────────────────────────────────────────────────── */
.nav-logo {
  font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 300;
  letter-spacing: 0.15em; color: var(--white); text-decoration: none;
  transition: color 0.4s ease; position: relative; z-index: 2; flex-shrink: 0;
}
nav.scrolled .nav-logo { color: var(--forest); }
.nav-logo span { color: var(--gold); }
nav.scrolled .nav-logo span { color: var(--teal); }

/* ── NAV LINKS ───────────────────────────────────────────── */
.nav-links {
  display: flex; gap: 28px; list-style: none; padding: 0; margin: 0 auto;
  flex-wrap: nowrap; align-items: center;
}
.nav-links li { list-style: none; }
.nav-links a {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--sand); text-decoration: none; transition: color 0.3s;
  white-space: nowrap;
}
nav.scrolled .nav-links a { color: var(--muted-text); }
.nav-links a:hover { color: var(--gold); }
nav.scrolled .nav-links a:hover { color: var(--forest); }
.nav-links a.active { color: var(--gold); }

/* ── HAMBURGER ───────────────────────────────────────────── */
.nav-hamburger {
  display: none; flex-direction: column; justify-content: center;
  align-items: flex-end; gap: 6px; width: 44px; height: 44px;
  background: none; border: none; cursor: pointer; padding: 0;
  margin-left: auto; position: relative; z-index: 2; flex-shrink: 0;
}
.nav-hamburger__line {
  display: block; height: 1px; background: var(--gold);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-hamburger__line:nth-child(1) { width: 24px; }
.nav-hamburger__line:nth-child(2) { width: 18px; }
.nav-hamburger__line:nth-child(3) { width: 24px; }

/* ── MOBILE OVERLAY ──────────────────────────────────────── */
.nav-overlay {
  position: fixed; inset: 0; z-index: 490;
  background: rgba(10,18,26,0.97);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.nav-overlay.is-open { opacity: 1; visibility: visible; }
.nav-overlay__close {
  position: absolute; top: 20px; right: 20px; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer; color: var(--gold);
  font-size: 24px; font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300; padding: 0; line-height: 1;
}
.nav-overlay__links {
  list-style: none; padding: 0; margin: 0; text-align: center;
  display: flex; flex-direction: column; gap: 4px;
}
.nav-overlay__links a {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(26px,7vw,40px); font-weight: 300;
  letter-spacing: 0.06em; color: rgba(250,246,239,0.82);
  text-decoration: none; display: block; padding: 12px 40px;
  transition: color 0.2s ease;
}
.nav-overlay__links a:hover,
.nav-overlay__links a:focus { color: var(--gold); outline: none; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-hamburger { display: flex; }
  .nav-links { display: none; }
  nav { padding: 16px 24px; }
  nav.scrolled { padding: 12px 24px; }
}

@media (max-width: 768px) {
  .urgency-bar {
    padding: 8px 12px;
    font-size: 10px;
    letter-spacing: 0.08em;
    line-height: 1.35;
  }
  .urgency-bar a { display: none; }
  .urgency-pulse { margin-right: 6px; width: 6px; height: 6px; }
  /* Nav always cream on small screens — scroll state is irrelevant */
  nav, nav.scrolled {
    top: 34px;
    padding: 12px 16px;
    background: rgba(250,246,239,0.98);
    border-bottom: 1px solid var(--light-border);
    box-shadow: 0 8px 24px rgba(13,47,63,0.08);
    backdrop-filter: none;
  }
  .nav-logo { color: var(--forest); font-size: 18px; letter-spacing: 0.12em; }
  .nav-logo span { color: var(--teal); }
}

@media (max-width: 480px) {
  .urgency-bar { padding: 7px 10px; font-size: 9px; }
  nav, nav.scrolled { top: 32px; padding: 10px 12px; }
  .nav-logo { font-size: 16px; }
}
