/* ═══════════════════════════════════════════════
   AMB Auto — Shared Stylesheet
   Variables · Reset · Typography · Buttons
   Nav Mega Menu · Footer · Utilities · Animations
═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

/* ── VARIABLES ── */
:root {
  --blue: #4B6EF5;
  --blue-mid: #3B5CE8;
  --blue-dark: #2643C8;
  --blue-light: #6B8AFF;
  --blue-xlight: #EBF0FF;
  --blue-subtle: #F0F4FF;
  --accent: #FF5F3D;
  --green: #10B981;
  --green-light: #D1FAE5;
  --yellow: #F59E0B;
  --red: #EF4444;
  --bg: #FFFFFF;
  --bg2: #F7F9FF;
  --bg3: #EFF3FF;
  --surface: #FFFFFF;
  --surface2: #F7F9FF;
  --border: #DDE4F7;
  --border-soft: #EEF2FF;
  --navy: #0F1D4E;
  --navy2: #1E3066;
  --text: #0F1D4E;
  --text-body: #3D4F7C;
  --text-muted: #7B8FBF;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 8px;
  --shadow: 0 2px 20px rgba(75, 110, 245, .10);
  --shadow-md: 0 4px 32px rgba(75, 110, 245, .13);
  --shadow-lg: 0 8px 48px rgba(75, 110, 245, .16);
  --shadow-xl: 0 20px 80px rgba(15, 29, 78, .14);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #f1f5ff; }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 3px; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 { font-family: 'Plus Jakarta Sans', sans-serif; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 11px 24px; border-radius: 50px;
  font-size: .875rem; font-weight: 600; font-family: 'Inter', sans-serif;
  cursor: pointer; border: none; transition: all .22s;
  text-decoration: none; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: #fff; box-shadow: 0 4px 20px rgba(75, 110, 245, .32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(75, 110, 245, .44); }
.btn-outline {
  background: #fff; color: var(--navy);
  border: 1.5px solid var(--border); box-shadow: var(--shadow);
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.btn-ghost {
  background: transparent; color: var(--text-muted);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { color: var(--navy); border-color: var(--navy); }
.btn-blue-outline {
  background: var(--blue-subtle); color: var(--blue);
  border: 1.5px solid var(--blue-xlight);
}
.btn-blue-outline:hover { background: var(--blue-xlight); transform: translateY(-2px); }
.btn-white {
  background: #fff; color: var(--blue);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .15);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(0, 0, 0, .2); }
.btn-ghost-w {
  background: rgba(255, 255, 255, .12); color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .3);
}
.btn-ghost-w:hover { background: rgba(255, 255, 255, .2); transform: translateY(-2px); }
.btn-lg { padding: 15px 36px; font-size: .975rem; }
.btn-sm { padding: 8px 18px; font-size: .8rem; }
.btn-magnetic { transition: box-shadow .22s; }

/* ══════════════════════════════════════════════
   NAV + MEGA MENU
══════════════════════════════════════════════ */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 72px; padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-soft);
  transition: box-shadow .3s, background .3s;
}
#nav.scrolled {
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 2px 24px rgba(75, 110, 245, .09);
}

/* Logo */
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.nav-logo-icon svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.2; }
.nav-logo-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.2rem; font-weight: 800; color: var(--navy);
}

/* Links */
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
/* Invisible bridge that covers the gap so mouse can reach the panel */
.nav-item::after {
  content: ''; position: absolute;
  top: 100%; left: -8px; right: -8px;
  height: 10px; background: transparent;
}
.nav-item > a {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 14px; border-radius: 10px;
  font-size: .875rem; font-weight: 500; color: var(--text-muted);
  transition: color .2s, background .2s;
}
.nav-item > a:hover, .nav-item.active > a { color: var(--navy); background: var(--bg2); }
.nav-item > a .chev {
  width: 14px; height: 14px; transition: transform .25s;
}
.nav-item > a.active-link { color: var(--blue); font-weight: 600; }

/* CTA */
.nav-cta { display: flex; align-items: center; gap: 10px; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 8px;
}
.hamburger span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: .3s; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── MEGA PANEL ── */
/* Pure JS control only — no CSS :hover trigger (prevents superposition on fast switch) */
.mega-panel, .drop-panel {
  position: absolute; top: calc(100% + 4px); left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: #fff; border: 1px solid var(--border);
  border-radius: 20px; box-shadow: var(--shadow-xl);
  opacity: 0; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 300;
  will-change: opacity, transform;
}
.nav-item.mega-open .mega-panel,
.nav-item.mega-open .drop-panel {
  opacity: 1; pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.nav-item.mega-open > a .chev { transform: rotate(180deg); }

.mega-panel { min-width: 560px; padding: 24px 28px; }
.mega-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 32px; }
.mega-col { display: flex; flex-direction: column; gap: 2px; }
.mega-col-head {
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--text-muted);
  padding: 0 10px; margin-bottom: 6px; margin-top: 8px;
}
.mega-col-head:first-child { margin-top: 0; }
.mega-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px; border-radius: 12px; transition: background .18s;
}
.mega-link:hover { background: var(--bg2); }
.mega-link-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--blue-subtle); border: 1px solid var(--blue-xlight);
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; flex-shrink: 0;
}
.mega-link-name { font-size: .85rem; font-weight: 600; color: var(--navy); }
.mega-link-desc { font-size: .75rem; color: var(--text-muted); margin-top: 1px; }
.mega-badge {
  font-size: .62rem; font-weight: 700; background: var(--blue);
  color: #fff; border-radius: 50px; padding: 2px 7px; margin-left: 6px;
}
.mega-divider {
  grid-column: 1 / -1; height: 1px; background: var(--border-soft);
  margin: 8px 0;
}
.mega-footer {
  grid-column: 1 / -1; background: var(--bg2); border-radius: 12px;
  padding: 14px 16px; display: flex; align-items: center; justify-content: space-between;
  margin-top: 8px;
}
.mega-footer-text { font-size: .8rem; color: var(--text-muted); }
.mega-footer-text strong { color: var(--navy); display: block; font-size: .875rem; }

.drop-panel { min-width: 220px; padding: 10px; }
.drop-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  font-size: .875rem; font-weight: 500; color: var(--text-body);
  transition: background .15s, color .15s;
}
.drop-link:hover { background: var(--bg2); color: var(--navy); }
.drop-link svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--blue); }

/* ── MOBILE DRAWER ── */
.mob-drawer {
  position: fixed; inset: 0; background: #fff; z-index: 190;
  padding: 90px 24px 40px; overflow-y: auto;
  transform: translateX(110%);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
}
.mob-drawer.open { transform: none; box-shadow: -8px 0 40px rgba(75, 110, 245, .12); }
.mob-section { margin-bottom: 8px; }
.mob-section-head {
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--text-muted);
  padding: 14px 4px 6px;
}
.mob-link {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 4px; border-bottom: 1px solid var(--border-soft);
  font-size: 1rem; font-weight: 600; color: var(--navy);
}
.mob-link svg { width: 18px; height: 18px; color: var(--blue); }
.mob-cta-row { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.mob-cta-row .btn { justify-content: center; width: 100%; }

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
#footer {
  background: var(--navy);
  padding: 72px 5% 36px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 48px; margin-bottom: 56px;
}
.footer-brand-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.f-logo-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  display: flex; align-items: center; justify-content: center;
}
.f-logo-icon svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.2; }
.f-logo-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.1rem; font-weight: 800; color: #fff;
}
.footer-about {
  font-size: .825rem; color: rgba(255, 255, 255, .5);
  line-height: 1.8; max-width: 280px; margin-bottom: 24px;
}
.social-row { display: flex; gap: 10px; }
.social-btn {
  width: 36px; height: 36px; border-radius: 9px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, .6); font-size: .75rem; font-weight: 700;
  transition: .22s;
}
.social-btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; transform: translateY(-2px); }
.footer-col h4 {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; color: rgba(255, 255, 255, .4); margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col ul a { font-size: .875rem; color: rgba(255, 255, 255, .55); transition: color .2s; }
.footer-col ul a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: .78rem; color: rgba(255, 255, 255, .35);
  flex-wrap: wrap; gap: 12px;
}

/* ══════════════════════════════════════════════
   SHARED SECTION UTILITIES
══════════════════════════════════════════════ */
.section-wrap { max-width: 1200px; margin: 0 auto; }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue-subtle); border: 1px solid var(--blue-xlight);
  border-radius: 50px; padding: 6px 16px;
  font-size: .75rem; font-weight: 700; color: var(--blue);
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 18px;
}
.section-title {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem); font-weight: 800;
  letter-spacing: -.8px; line-height: 1.2; margin-bottom: 14px; color: var(--navy);
}
.section-title .hl {
  background: linear-gradient(270deg, var(--blue-light), var(--blue), #7C3AED, var(--blue-light));
  background-size: 300% 300%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 6s ease infinite;
}
.section-sub {
  font-size: 1rem; color: var(--text-body);
  max-width: 520px; line-height: 1.75;
}
.tc { text-align: center; }
.tc .section-sub { margin: 0 auto; }

/* Page hero (shared) */
.page-hero {
  padding: 140px 5% 80px; background: var(--bg2);
  border-bottom: 1px solid var(--border-soft);
  text-align: center;
}
.page-hero .section-title { font-size: clamp(2.2rem, 4vw, 3.2rem); }
.page-hero .section-sub { font-size: 1.05rem; margin: 0 auto; max-width: 580px; }

/* ── KEYFRAMES ── */
@keyframes gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes float-y {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}
@keyframes pulse-ring {
  0%    { transform: scale(1); opacity: .7; }
  100%  { transform: scale(1.6); opacity: 0; }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes slide-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes count-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* ── SCROLL PROGRESS BAR ── */
.scroll-progress {
  position: fixed; top: 72px; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  z-index: 201; transition: width .1s linear;
  box-shadow: 0 0 8px rgba(75,110,245,.5);
}

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
}
.reveal.visible { opacity: 1; transform: none; }

/* Variants */
.reveal-left  { opacity: 0; transform: translateX(-36px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal-right { opacity: 0; transform: translateX(36px);  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal-scale { opacity: 0; transform: scale(.9);          transition: opacity .6s ease, transform .6s cubic-bezier(.34,1.56,.64,1); }
.reveal-blur  { opacity: 0; filter: blur(10px); transform: translateY(18px); transition: opacity .65s ease, transform .65s ease, filter .65s ease; }
.reveal-left.visible, .reveal-right.visible, .reveal-scale.visible, .reveal-blur.visible {
  opacity: 1; transform: none; filter: none;
}

/* Stagger delays */
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .32s; }
.reveal-d5 { transition-delay: .40s; }

/* ── FLOATING ── */
.float-anim { animation: float-y 6s ease-in-out infinite; }

/* ── SHIMMER SKELETON ── */
.shimmer {
  background: linear-gradient(90deg, var(--bg2) 25%, #fff 50%, var(--bg2) 75%);
  background-size: 400% 100%;
  animation: shimmer 2s infinite;
}

/* ── STAT NUMBER ENTRANCE ── */
.stat-animated { animation: count-up .6s cubic-bezier(.34,1.56,.64,1) both; }

/* ── BADGE / TAG ── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  border-radius: 50px; padding: 4px 12px;
  font-size: .75rem; font-weight: 600;
}
.badge-blue { background: var(--blue-xlight); color: var(--blue); }
.badge-green { background: var(--green-light); color: #059669; }
.badge-orange { background: #FFF3E0; color: #E65100; }

/* ── CTA FINAL SECTION ── */
.cta-band {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 55%, var(--blue-light) 100%);
  padding: 96px 5%; position: relative; overflow: hidden; text-align: center;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.07) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
}
.cta-band-inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.cta-band h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800;
  color: #fff; line-height: 1.2; letter-spacing: -.8px; margin-bottom: 14px;
}
.cta-band p { font-size: 1rem; color: rgba(255,255,255,.8); line-height: 1.7; margin-bottom: 36px; }
.cta-band-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-band-trust { margin-top: 20px; font-size: .8rem; color: rgba(255,255,255,.6); }
.cta-band-trust span { margin: 0 8px; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  #nav { padding: 0 5%; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .mega-panel, .drop-panel { display: none !important; }
  .section-title { letter-spacing: -.5px; }
  .cta-band { padding: 64px 5%; }
  .cta-band h2 { font-size: clamp(1.7rem,5vw,2.2rem); }
  .footer-about { max-width: 100%; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .cta-band-btns { flex-direction: column; align-items: stretch; }
  .cta-band-btns .btn { justify-content: center; }
  .section-eyebrow { font-size: .7rem; }
  .mob-link { font-size: .95rem; padding: 14px 4px; }
}
