/* nav-legacy.css — the old build's header, sitewide (Jack, 2026-06-12).
   Verbatim rules from the original stylesheet + variable bridge. */
:root {
  --orange: #F7941D; --orange-light: #FFF4E6; --orange-dark: #E07D0A;
  --dark: #1A1A2E; --dark-gray: #2D3748; --medium-gray: #4A5568;
  --light-gray: #E2E8F0; --off-white: #F7F8FC; --white: #FFFFFF;
  --radius-sm: 6px; --radius-md: 12px; --radius-lg: 16px; --radius-full: 999px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05); --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
  --font-display: 'Plus Jakarta Sans', sans-serif; --font-body: 'Plus Jakarta Sans', sans-serif;
}
/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo img {
  height: 80px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--dark-gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: var(--transition);
}
.nav-link:hover {
  color: var(--orange);
}
.nav-link:hover::after {
  width: 100%;
}
/* Prevent underline expansion on dropdown trigger hover/active */
.nav-dropdown-trigger.nav-link:hover::after,
.nav-dropdown-trigger.nav-link.active::after {
  width: 6px;
}
.nav-link.active {
  color: var(--orange);
}
.nav-link.active::after {
  width: 100%;
}
.nav-cta {
  padding: 12px 24px;
  font-size: 0.9rem;
}
.nav-login {
  color: var(--orange);
  font-weight: 600;
}
.nav-login:hover {
  color: var(--orange-dark);
}
/* Nav Dropdown */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
/* Override the nav-link underline — restyle as dropdown chevron */
.nav-dropdown-trigger.nav-link::after {
  position: static;
  width: 6px;
  height: 6px;
  background: none;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-top: -2px;
}
.nav-dropdown:hover .nav-dropdown-trigger.nav-link::after,
.nav-dropdown.open .nav-dropdown-trigger.nav-link::after {
  width: 6px;
  transform: rotate(-135deg);
  margin-top: 2px;
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 100;
}
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-bottom-color: var(--white);
  border-top: 0;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark-gray);
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-dropdown-menu a:hover {
  background: var(--orange-light);
  color: var(--orange);
}
.nav-dropdown-menu .dropdown-divider {
  height: 1px;
  background: var(--light-gray);
  margin: 6px 0;
}
/* Mobile Menu */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}
.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--dark);
  transition: var(--transition);
}
/* ============================================
   NEXRON REACH — Coming Soon Product
   ============================================ */

/* Nav "Coming Soon" badge */
.nav-coming-soon {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--orange);
  color: var(--white);
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: 6px;
  vertical-align: middle;
}
/* ============================================================
   SPIRAL INTRO ANIMATION (landing page only)
   ============================================================
   One-time intro: molecular logo appears at centre with NEXRON SOLUTIONS
   text below, spirals out, sweeps to top-left, lands as the static nav lockup.
   Plays once per browser session. Respects prefers-reduced-motion.
   Driven by initIntroAnimation() in script.js + GSAP loaded from cdnjs.
   ============================================================ */

/* --- Nav lockup (vertical stack: icon above NEXRON SOLUTIONS text below) ---
   Only applied to landing page nav (modifier class .nav-logo-lockup).
   Other 22 pages keep the existing flex-row .nav-logo with PNG <img>. */
.nav-logo.nav-logo-lockup {
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
}
.nav-logo-lockup .nav-logo-icon {
  display: block;
  width: 44px;
  height: 44px;
}
.nav-logo-lockup .nav-logo-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
/* Text proportions match the centre lockup empirical ratios from the original PNG:
   NEXRON ≈ 1.28× logo bottom width, SOLUTIONS ≈ 1.72× — gives the nested-triangle effect. */
.nav-logo-lockup .nav-logo-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--dark);
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
}
.nav-logo-lockup .nav-logo-text-sub {
  display: block;
  font-weight: 500;
  font-size: 0.78em;
  letter-spacing: 0.2em;
  margin-top: 0.05em;
}
/* Screen-reader-only label */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.intro-active .nav-logo-lockup {
  opacity: 0;
}
/* --- nav-revealed: static nav lockup crossfades in just before animated cluster lands ---
   Specificity (0, 2, 1) beats .intro-active rule (0, 2, 0). --- */
.nav-logo-lockup { transition: opacity 0.18s ease-out; }
body.nav-revealed .nav-logo-lockup { opacity: 1 !important; }
@media (max-width: 968px) {
.nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 40px 24px;
    gap: 24px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
  }
.nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
.mobile-toggle {
    display: flex;
  }
.nav-dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    min-width: 0;
    padding: 0 0 0 16px;
    display: none;
    border-left: 2px solid var(--orange-light);
  }
.nav-dropdown-menu::before {
    display: none;
  }
.nav-dropdown.open .nav-dropdown-menu {
    display: block;
  }
.nav-dropdown-menu a {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
}

/* the legacy nav is fixed — offset page content (loaded by template pages only) */
body { padding-top: 81px; }
