/* ═══════════════════════════════════════════════════════════════════════════
   NAV — Fixed top navbar, desktop dropdown menus, Book CTA button.
         Hamburger button, mobile full-screen overlay.
   Edit here for any navigation or header styling.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ────────────────────────────────────────────
   NAVIGATION
──────────────────────────────────────────── */
.nav-top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: transparent;
  border-bottom: 1px solid transparent;
  height: var(--nav-h);
  display: flex; align-items: center;
  padding: 0 48px;
  gap: 0;
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.nav-top.scrolled {
  background: #0B0B0D;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.nav-top.page-blue {
  background: linear-gradient(120deg, #0B0B0D 0%, #326BCD 100%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0; margin-right: 48px;
  cursor: pointer;
}
.nav-logo-mark {
  width: 52px; height: 52px;
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
}
.nav-logo-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.nav-logo-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; color: #ffffff;
}
.nav-logo-text span { color: #ffffff; }

.nav-links {
  display: flex; align-items: center; flex: 1; height: 100%;
  list-style: none; gap: 0;
}
.nav-links > li {
  height: 100%; display: flex; align-items: center;
  position: relative;
}
.nav-links > li > a, .nav-links > li > button {
  display: flex; align-items: center; gap: 5px;
  height: 100%; padding: 0 18px;
  font-size: 0.88rem; font-weight: 500; color: rgba(255,255,255,0.85);
  text-decoration: none; background: none; border: none; cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s;
  position: relative;
}
.nav-links > li > a::after, .nav-links > li > button::after {
  content: ''; position: absolute; bottom: 0; left: 18px; right: 18px;
  height: 2px; background: #88AB3C;
  transform: scaleX(0); transition: transform 0.2s;
}
.nav-links > li:hover > a, .nav-links > li:hover > button { color: #88AB3C; }
.nav-links > li:hover > a::after, .nav-links > li:hover > button::after { transform: scaleX(1); }

.nav-chevron { font-size: 0.6rem; opacity: 0.5; transition: transform 0.2s; }
.nav-links > li:hover .nav-chevron { transform: rotate(180deg); }

/* Dropdown */
.nav-dropdown {
  position: absolute; top: calc(100% + 1px); left: 0;
  min-width: 280px;
  background: #0d1117;
  border: 1px solid rgba(50,107,205,0.25);
  border-top: 3px solid #326BCD;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04);
  opacity: 0; pointer-events: none; transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  padding: 8px 0 12px;
  z-index: 300;
  border-radius: 0 0 8px 8px;
}
.nav-links > li:hover .nav-dropdown { opacity: 1; pointer-events: all; transform: translateY(0); }

.nav-dropdown a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px 10px 24px;
  font-size: 0.875rem; font-weight: 500;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: all 0.15s ease;
  border-left: 3px solid transparent;
  letter-spacing: 0.01em;
  position: relative;
}
.nav-dropdown a::before {
  content: '';
  width: 5px; height: 5px; border-radius: 50%;
  background: #326BCD; flex-shrink: 0;
  opacity: 0; transition: opacity 0.15s;
}
.nav-dropdown a:hover {
  background: rgba(50,107,205,0.12);
  color: #ffffff;
  border-left-color: #88AB3C;
  padding-left: 20px;
}
.nav-dropdown a:hover::before { opacity: 1; }

.nav-dropdown-label {
  padding: 12px 24px 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: #326BCD;
  display: flex; align-items: center; gap: 8px;
  margin-top: 4px;
}
.nav-dropdown-label::after {
  content: ''; flex: 1; height: 1px;
  background: rgba(50,107,205,0.25);
}
/* Thin separator between label groups */
.nav-dropdown hr {
  border: none; border-top: 1px solid rgba(255,255,255,0.06);
  margin: 6px 0;
}

.nav-right {
  display: flex; align-items: center; gap: 12px; margin-left: auto;
}
.btn-nav-ghost {
  font-size: 0.84rem; font-weight: 600; color: #326BCD;
  background: none; border: 1.5px solid #326BCD;
  padding: 8px 20px; cursor: pointer;
  transition: background 0.2s, color 0.2s; white-space: nowrap;
  border-radius: 2px;
}
.btn-nav-ghost:hover { background: #1a2a2b; color: white; }
.btn-nav-solid {
  font-size: 0.84rem; font-weight: 600; color: white;
  background: #1a2a2b; border: 1.5px solid var(--blue);
  padding: 8px 20px; cursor: pointer;
  transition: background 0.2s; white-space: nowrap;
  border-radius: 2px;
}
.btn-nav-solid:hover { background: #88AB3C; border-color: #88AB3C; }


/* ── Mobile full-screen nav overlay ─────────── */
.nav-mobile {
  position: fixed;
  inset: 0;
  background: #0B0B0D;
  z-index: 450;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  overflow-y: auto;
  /* Safari iOS fix: transforms do not move the hit-test area.
     Must disable pointer-events when off-screen or it blocks all taps. */
  pointer-events: none;
}
.nav-mobile.open {
  transform: translateX(0);
  pointer-events: all;
}
.nav-mobile-close {
  align-self: flex-end;
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  cursor: pointer;
}
.nav-mobile-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.nav-mobile-links li {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-mobile-links a {
  display: block;
  padding: 20px 0;
  color: #fff;
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-mobile-links a:hover { color: #88AB3C; }
.btn-mobile-cta {
  margin-top: 32px;
  background: #88AB3C !important;
  color: #fff !important;
  padding: 16px 0 !important;
  text-align: center;
  border-radius: 4px;
  letter-spacing: 0.1em !important;
}

/* ── Responsive overrides ───────────────────── */
@media (max-width: 900px) {
  /* Nav - must come after WOW CSS duplicate nav rules */
  .nav-links { display: none !important; }
  .nav-right { display: none !important; }
  .hero { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .hero-left { min-height: 80vh; padding: 80px 40px 60px; }
  .home-mission { grid-template-columns: 1fr; gap: 40px; }
  .engage-grid { grid-template-columns: repeat(2,1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .services-side { display: none; }
  .wd-intro-inner { grid-template-columns: 1fr; }
  .wd-feature-row { flex-direction: column; gap: 32px; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-sidebar { display: none; }
}
@media (max-width: 680px) {
  .engage-grid { grid-template-columns: 1fr; }
  .hero-left { padding: 80px 28px 60px; }
  .hero-left h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .home-mission-left h2 { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  .wd-hero-headline { font-size: clamp(1.8rem, 7vw, 2.5rem); }
  .services-hero-title { font-size: clamp(1.8rem, 7vw, 2.5rem); }
  .page-banner h1 { font-size: clamp(1.8rem, 7vw, 2.5rem); }
  .cta-full h2 { font-size: clamp(1.6rem, 6vw, 2rem); }
  .cta-full .cta-actions { flex-direction: column; gap: 12px; align-items: stretch; }
  .cta-full .cta-actions a, .cta-full .cta-actions button { text-align: center; width: 100%; }
}

