/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 clamp(1.5rem, 5vw, 5rem);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.nav-logo-mark {
  width: 32px;
  height: 32px;
  background: var(--amber);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo-mark svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--white);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--ink); }

.nav-links .nav-login {
  color: var(--ink);
  font-weight: 600;
}

.nav-cta {
  background: var(--amber) !important;
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.15s, transform 0.1s !important;
}
.nav-cta:hover {
  background: var(--amber-dim) !important;
  transform: translateY(-1px);
}

/* ── MOBILE MENU (built by js/nav.js from the nav links) ──
   Below 1100px the inline links no longer fit beside the logo, Log in and the CTA (they wrapped
   onto two lines at 920–1080px), so the menu button takes over there, not only on phones. */
.nav-links a, .nav-logo { white-space: nowrap; }
.nav-menu-btn { display: none; }
.nav-sheet[hidden] { display: none !important; }

@media (max-width: 1100px) {
  .nav-links li:not(.nav-keep) { display: none; }
  nav { padding: 0 clamp(1rem, 4vw, 2rem); gap: 8px; }
  .nav-links { gap: 0.25rem; }
  .nav-links .nav-login { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; }
  .nav-menu-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-right: -10px;
    background: none; border: 0; border-radius: 8px; color: var(--ink); cursor: pointer;
  }
  .nav-menu-btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
  .nav-menu-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .nav-sheet {
    position: absolute; top: 60px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 18px 30px -18px oklch(20% 0.02 40 / 0.35);
    padding: 8px clamp(1rem, 4vw, 2rem) 16px;
    display: flex; flex-direction: column;
  }
  .nav-sheet a {
    display: flex; align-items: center; min-height: 48px;
    font-size: 16px; font-weight: 600; color: var(--ink); text-decoration: none;
    border-bottom: 1px solid var(--smoke-2);
  }
  .nav-sheet a.nav-sheet-cta {
    justify-content: center; margin-top: 12px; border: 0; border-radius: 8px;
    background: var(--amber); color: var(--white);
  }
}
@media (max-width: 360px) {
  .nav-logo { font-size: 16px; gap: 8px; }
}

/* anchor jumps land below the fixed 60px bar */
section[id] { scroll-margin-top: 60px; }
