/* ══════════════════════════
   NAVBAR
   ══════════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--section-x);
  height: 72px;
  background: transparent;
  transition: background var(--t-slow), box-shadow var(--t-slow);
}
nav.scrolled {
  background: rgba(6, 14, 26, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06), 0 4px 24px rgba(0,0,0,0.3);
}

/* Inner pages: nav always dark (hero doesn't extend under it) */
nav.nav {
  background: rgba(6, 14, 26, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06), 0 4px 24px rgba(0,0,0,0.3);
}

/* ── Inner page nav wrapper ── */
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0;
}

/* ── Logo ── */
.logo,
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-text { color: var(--white); }
.logo-text span,
.logo-accent { color: var(--gold-light); }

/* ── Nav links ── */
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color var(--t);
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: width var(--t);
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* ── Right cluster ── */
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ── CTA button ── */
.btn-nav {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--white);
  border: none;
  padding: 10px 22px;
  border-radius: var(--r-sm);
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--t);
  box-shadow: 0 4px 16px rgba(212,146,10,0.3);
  white-space: nowrap;
}
.btn-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(212,146,10,0.4);
}

/* ── Hamburger button ── */
.nav-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-sm);
  color: var(--white);
  font-size: 1.05rem;
  cursor: pointer;
  transition: all var(--t);
  flex-shrink: 0;
}
.nav-hamburger:hover {
  background: rgba(212,146,10,0.18);
  border-color: var(--gold-border);
  color: var(--gold-light);
}
/* Span-based hamburger lines (inner pages) */
.nav-hamburger span {
  display: block;
  width: 18px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: all var(--t);
}
.nav-hamburger span + span { margin-top: 4px; }

/* ══════════════════════════
   MOBILE OVERLAY
   ══════════════════════════ */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 8, 15, 0.65);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s ease;
}
.nav-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* ══════════════════════════
   MOBILE DRAWER
   ══════════════════════════ */
.nav-mobile {
  position: fixed;
  top: 0;
  left: auto;
  right: -320px;
  width: 300px;
  height: 100dvh;
  background: var(--navy-dark);
  border-left: 1px solid rgba(255,255,255,0.07);
  z-index: 1002;
  padding: 0 0 32px;
  display: flex;
  flex-direction: column;
  transition: right 0.34s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -12px 0 48px rgba(0,0,0,0.45);
}
.nav-mobile.open { right: 0; }

/* Drawer header */
.nav-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}

/* Close button */
.nav-mobile-close,
.nav-close {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-sm);
  color: rgba(255,255,255,0.65);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t);
  flex-shrink: 0;
}
.nav-mobile-close:hover,
.nav-close:hover {
  background: rgba(255,255,255,0.12);
  color: var(--white);
}

/* Drawer links */
.nav-mobile-links {
  list-style: none;
  padding: 16px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-mobile-links li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  color: rgba(255,255,255,0.7);
  font-size: 0.97rem;
  font-weight: 600;
  border-radius: var(--r-sm);
  transition: all var(--t);
}
.nav-mobile-links li a i {
  font-size: 14px;
  color: var(--gold);
  width: 18px;
  text-align: center;
}
.nav-mobile-links li a:hover {
  background: rgba(212,146,10,0.09);
  color: var(--white);
  padding-left: 20px;
}

/* Drawer CTA */
.nav-mobile-cta {
  margin: 0 24px;
  width: calc(100% - 48px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px;
  font-size: 0.95rem;
}

/* ── Secondary nav links (Privacy / Terms) ── */
.nav-sep {
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,0.14);
  align-self: center;
  flex-shrink: 0;
  list-style: none;
}
.nav-link-sm {
  font-size: 0.76rem !important;
  color: rgba(255,255,255,0.28) !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
}
.nav-link-sm:hover { color: rgba(255,255,255,0.6) !important; }
.nav-link-sm::after { display: none !important; }

/* Mobile drawer separator + legal links */
.nav-mobile-sep {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 6px 0;
  flex-shrink: 0;
  list-style: none;
}
.nav-link-legal a {
  font-size: 0.85rem !important;
  color: rgba(255,255,255,0.38) !important;
  font-weight: 400 !important;
}
.nav-link-legal a:hover {
  color: rgba(255,255,255,0.65) !important;
  background: rgba(255,255,255,0.04) !important;
  padding-left: 16px !important;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links        { display: none; }
  nav               { padding: 0 5%; height: 64px; }
  .nav-hamburger    { display: flex; }
  /* Hide CTA link in inner-page nav on mobile (btn-nav inside nav-inner) */
  .nav-inner > a.btn-nav { display: none; }
}
