/* ─── NAVBAR PHASE 2 ────────────────────────────────────────────────
   Product-oriented · scroll-aware · SaaS feel
   Phase 1 files untouched · No page layout reflow
──────────────────────────────────────────────────────────────────── */

/* ── Reduced motion: disable all nav transitions, open dropdowns instantly ── */
@media (prefers-reduced-motion: reduce) {
  .site-nav,
  .nav-inner,
  .nav-links > li > a,
  .nav-dropdown-trigger,
  .nav-dropdown-trigger svg,
  .nav-cta-btn,
  .nav-hamburger span,
  .nav-dropdown-menu,
  .nav-drawer,
  .nav-drawer-overlay,
  .nav-drawer-group-toggle svg {
    transition: none !important;
  }
  .site-nav.nav-scrolled {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}


/* ── NAV BASE — override landing.css ── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 201;
  background: transparent;
  border-bottom: none;
  box-shadow: none;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: height 0.2s ease;
}


/* ── LOGO ── */
.nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo img {
  height: 52px;
  object-fit: contain;
}

.nav-logo-scrolled { display: none; }


/* ── CENTER LINKS ── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: center;
}

.nav-links > li {
  position: relative;
}

.nav-links > li > a,
.nav-dropdown-trigger {
  font-size: 15px;
  font-weight: 500;
  color: var(--charcoal);
  letter-spacing: 0.1px;
  padding: 7px 11px;
  border-radius: 6px;
  transition: color 0.18s, background 0.18s;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.nav-links > li > a {
  text-decoration: none;
}

.nav-dropdown-trigger {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  line-height: inherit;
}

.nav-links > li > a:hover,
.nav-dropdown-trigger:hover {
  background: rgba(27, 23, 19, 0.07);
  color: var(--charcoal);
}

/* Reset old active underline */
.nav-links > li > a.active::after { display: none; }

/* Active page indicator */
.nav-links > li > a.active,
.nav-links > li.active > .nav-dropdown-trigger {
  color: var(--charcoal);
  font-weight: 600;
  position: relative;
}
.nav-links > li > a.active::before,
.nav-links > li.active > .nav-dropdown-trigger::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 11px;
  right: 11px;
  height: 2px;
  background: var(--red);
  border-radius: 1px;
}

/* Chevron */
.nav-dropdown-trigger svg {
  width: 12px;
  height: 12px;
  transition: transform 0.18s;
  flex-shrink: 0;
  opacity: 0.6;
}

.nav-dropdown:hover .nav-dropdown-trigger svg,
.nav-dropdown.open .nav-dropdown-trigger svg {
  transform: rotate(180deg);
}


/* ── DROPDOWN MENU ── */
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: #1C1814;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  padding: 5px;
  min-width: 192px;
  list-style: none;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition:
    opacity   180ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 180ms cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0s linear 180ms;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
  visibility: visible;
  transition:
    opacity   180ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 180ms cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0s linear 0s;
}

.nav-dropdown-menu li { list-style: none; }

.nav-dropdown-menu a {
  display: block;
  padding: 8px 11px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(244, 230, 211, 0.82);
  border-radius: 6px;
  text-decoration: none;
  letter-spacing: 0.05px;
  transition: background 0.12s, color 0.12s;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: rgba(199, 146, 58, 0.14);
  color: var(--cream);
}

.nav-dropdown-menu a.active {
  color: var(--gold, #C7923A);
  font-weight: 600;
  background: rgba(199, 146, 58, 0.10);
}


/* ── RIGHT CTA BUTTON ── */
.nav-cta-btn {
  padding: 9px 17px;
  background: var(--gold);
  color: var(--charcoal);
  border: 1.5px solid rgba(199, 146, 58, 0.40);
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.15px;
  transition: background 0.18s, transform 0.1s, box-shadow 0.18s;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 2px 10px rgba(192, 120, 32, 0.28), 0 1px 2px rgba(0,0,0,0.08);
}

.nav-cta-btn:hover  { background: var(--gold-lt); box-shadow: 0 4px 14px rgba(199, 146, 58, 0.40); }
.nav-cta-btn:active { transform: scale(0.98); }


/* ── HAMBURGER ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px 6px;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s, background 0.2s;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ── DARK-HERO PAGES: force cream nav links before scroll kicks in ── */
.site-nav.nav-on-dark:not(.nav-scrolled) .nav-links > li > a,
.site-nav.nav-on-dark:not(.nav-scrolled) .nav-dropdown-trigger {
  color: rgba(244, 230, 211, 0.88);
}

.site-nav.nav-on-dark:not(.nav-scrolled) .nav-links > li > a:hover,
.site-nav.nav-on-dark:not(.nav-scrolled) .nav-dropdown-trigger:hover {
  background: rgba(255, 255, 255, 0.09);
  color: var(--cream);
}

.site-nav.nav-on-dark:not(.nav-scrolled) .nav-hamburger span {
  background: var(--cream);
}


/* ── SCROLL STATE ── */
.site-nav.nav-scrolled {
  background: var(--red);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}

.site-nav.nav-scrolled .nav-inner {
  height: 64px;
}

.site-nav.nav-scrolled .nav-links > li > a,
.site-nav.nav-scrolled .nav-dropdown-trigger {
  color: rgba(244, 230, 211, 0.88);
}

.site-nav.nav-scrolled .nav-links > li > a:hover,
.site-nav.nav-scrolled .nav-dropdown-trigger:hover {
  background: rgba(0, 0, 0, 0.12);
  color: var(--cream);
}

.site-nav.nav-scrolled .nav-logo-default { display: none; }
.site-nav.nav-scrolled .nav-logo-scrolled { display: block; }

.site-nav.nav-scrolled .nav-hamburger span {
  background: var(--cream);
}

.site-nav.nav-scrolled .nav-cta-btn {
  background: var(--gold-lt);
  color: var(--red-dark);
}
.site-nav.nav-scrolled .nav-cta-btn:hover {
  background: #e8be6e;
  color: var(--red-dark);
}


/* ── MOBILE DRAWER ── */
.nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  background: var(--charcoal);
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 200;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.nav-drawer.open {
  transform: translateX(0);
}

.nav-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-drawer-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.nav-drawer-inner {
  padding: 84px 24px 48px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

/* CTA near top — visible before any nav links */
.nav-drawer-cta {
  display: block;
  width: 100%;
  padding: 15px;
  background: var(--gold);
  color: var(--charcoal);
  border: none;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  margin-bottom: 32px;
  letter-spacing: 0.1px;
  transition: background 0.18s;
}

.nav-drawer-cta:hover { background: var(--gold-lt); }
.nav-drawer-cta:active { transform: scale(0.97); }

.nav-drawer-nav {
  display: flex;
  flex-direction: column;
}

.nav-drawer-link {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: rgba(244, 230, 211, 0.9);
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  text-decoration: none;
  letter-spacing: 0.05px;
  transition: color 0.15s;
}

.nav-drawer-link:hover { color: var(--cream); }

.nav-drawer-group {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.nav-drawer-group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 18px;
  font-weight: 600;
  color: rgba(244, 230, 211, 0.9);
  padding: 15px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  text-align: left;
  letter-spacing: 0.05px;
}

.nav-drawer-group-toggle svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  opacity: 0.6;
}

.nav-drawer-group.open .nav-drawer-group-toggle svg {
  transform: rotate(180deg);
}

.nav-drawer-group-items {
  display: none;
  flex-direction: column;
  padding: 4px 0 14px 14px;
  gap: 2px;
}

.nav-drawer-group.open .nav-drawer-group-items {
  display: flex;
}

.nav-drawer-group-items a {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: rgba(244, 230, 211, 0.65);
  padding: 9px 0;
  text-decoration: none;
  letter-spacing: 0.05px;
  transition: color 0.15s;
}

.nav-drawer-group-items a:hover { color: var(--cream); }


/* ── TRUST STRIP MOBILE FIX ── */
.hero-trust-mobile { display: none; }

@media (max-width: 620px) {
  .hero-trust-bar > span:not(.hero-trust-mobile) { display: none !important; }
  .hero-trust-mobile {
    display: inline;
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.05px;
  }
}


/* ── STEP COUNTER — leave room for Phase 3 CTA bar ── */
@media (max-width: 620px) {
  .step-counter { bottom: 72px; }
}


/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav-links    { display: none; }
  .nav-cta-btn  { display: none; }
  .nav-hamburger { display: flex; }
  .nav-inner {
    padding: 0 20px;
    justify-content: space-between;
  }
}

@media (max-width: 620px) {
  .nav-logo img { height: 46px; }
}
