/* ═══════════════════════════════════════════
   AerialSpect — Global Styles
   Tokens, reset, nav, footer, shared components
   ═══════════════════════════════════════════ */

/* ── DESIGN TOKENS ── */
:root {
  --ink: #0a0f0d;
  --ink-soft: #1a2420;
  --ink-mid: #2d3d38;
  --surface: #f4f2ed;
  --surface-warm: #ede9e1;
  --accent: #b8ff57;
  --accent-dim: #8fd43a;
  --teal: #1a6b5a;
  --teal-light: #2a9478;
  --white: #ffffff;
  --text-muted: #6b7c77;
  --border: rgba(10,15,13,0.12);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  /* Spacing scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 120px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(10,15,13,0.06);
  --shadow-md: 0 8px 30px rgba(10,15,13,0.08);
  --shadow-lg: 0 20px 60px rgba(10,15,13,0.12);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--surface);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── NAV ── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  background: transparent;
  transition: background 0.4s, backdrop-filter 0.4s;
}
#navbar.scrolled {
  background: rgba(10,15,13,0.92);
  backdrop-filter: blur(12px);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav-logo span { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-cta {
  background: var(--accent);
  color: var(--ink) !important;
  font-weight: 500 !important;
  padding: 10px 22px;
  border-radius: 100px;
  transition: background 0.2s, transform 0.2s !important;
}
.nav-cta:hover { background: var(--accent-dim) !important; transform: translateY(-1px); }

/* Nav toggle (hamburger) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
}

/* Mobile nav overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,15,13,0.96);
  backdrop-filter: blur(16px);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.nav-overlay.open { display: flex; }
.nav-overlay a {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-overlay a:hover { color: var(--accent); }
.nav-overlay .nav-cta {
  font-size: 18px;
  padding: 14px 32px;
}
.nav-close {
  position: absolute;
  top: 20px; right: 24px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 32px;
  cursor: pointer;
}

/* ── BUTTONS ── */
.btn-primary {
  background: var(--accent);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: var(--accent-dim); transform: translateY(-2px); }
.btn-secondary {
  color: rgba(255,255,255,0.7);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  padding: 14px 0;
  border: none;
  background: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}
.btn-secondary:hover { color: var(--white); }
.btn-arrow {
  width: 28px; height: 28px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  transition: background 0.2s;
}
.btn-primary:hover .btn-arrow { background: rgba(10,15,13,0.15); }

/* Dark button variant */
.btn-dark {
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, transform 0.2s;
}
.btn-dark:hover { background: var(--ink-soft); transform: translateY(-2px); }
.btn-dark .btn-arrow { background: rgba(255,255,255,0.1); }

/* ── SHARED SECTION CLASSES ── */
.section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-eyebrow::before {
  content: '';
  width: 24px; height: 2px;
  background: var(--teal);
  border-radius: 2px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 16px;
}
.section-sub {
  font-size: 17px;
  font-weight: 300;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.65;
  margin-bottom: var(--space-2xl);
}

/* Dark section variant */
.dark .section-eyebrow { color: var(--accent); }
.dark .section-eyebrow::before { background: var(--accent); }
.dark .section-title { color: var(--white); }
.dark .section-sub { color: rgba(255,255,255,0.5); }

/* ── BREADCRUMB ── */
.breadcrumb-bar {
  background: var(--ink);
  padding: 14px 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  font-size: 13px;
}
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .separator { color: rgba(255,255,255,0.2); }
.breadcrumb .current { color: rgba(255,255,255,0.75); }

/* ── METRIC STRIP (reusable) ── */
.metric-strip {
  display: grid;
  gap: 2px;
  background: rgba(255,255,255,0.06);
  border-radius: 16px;
  overflow: hidden;
}
.metric-strip-3 { grid-template-columns: repeat(3, 1fr); }
.metric-strip-4 { grid-template-columns: repeat(4, 1fr); }
.metric-item {
  background: var(--ink-soft);
  padding: 32px;
  text-align: center;
}
.metric-val {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
  display: block;
  margin-bottom: 6px;
}
.metric-label {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── BLOCKQUOTE (testimonials) ── */
.testimonial-quote {
  border-left: 4px solid var(--accent);
  padding: 24px 32px;
  background: rgba(184,255,87,0.04);
  border-radius: 0 12px 12px 0;
  margin: 40px 0;
}
.testimonial-quote p {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.5;
  margin-bottom: 12px;
  font-style: italic;
}
.testimonial-quote cite {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  font-style: normal;
}

/* ── FOOTER ── */
footer {
  background: #060a08;
  padding: 64px 48px 40px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .footer-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: block;
  margin-bottom: 14px;
}
.footer-brand .footer-logo span { color: var(--accent); }
.footer-tagline {
  font-size: 14px;
  color: rgba(255,255,255,0.35);
  line-height: 1.65;
  max-width: 240px;
  margin-bottom: 20px;
}
.footer-parent-note {
  font-size: 12px;
  color: rgba(255,255,255,0.2);
  line-height: 1.5;
}
.footer-parent-note a { color: rgba(184,255,87,0.4); text-decoration: none; }
.footer-col-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: rgba(255,255,255,0.8); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.05);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,0.25);
}
.footer-socials {
  display: flex;
  gap: 12px;
}
.social-link {
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.social-link:hover { background: rgba(255,255,255,0.12); color: var(--white); }

/* ── ANIMATIONS ── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }

.fade-left {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-left.visible { opacity: 1; transform: translateX(0); }

.fade-right {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-right.visible { opacity: 1; transform: translateX(0); }

.scale-in {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.scale-in.visible { opacity: 1; transform: scale(1); }

/* Stagger children */
.stagger-children > *:nth-child(1) { transition-delay: 0s; }
.stagger-children > *:nth-child(2) { transition-delay: 0.08s; }
.stagger-children > *:nth-child(3) { transition-delay: 0.16s; }
.stagger-children > *:nth-child(4) { transition-delay: 0.24s; }
.stagger-children > *:nth-child(5) { transition-delay: 0.32s; }
.stagger-children > *:nth-child(6) { transition-delay: 0.4s; }

@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 16px 24px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .breadcrumb-bar { padding: 12px 24px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
  .metric-strip-3,
  .metric-strip-4 { grid-template-columns: repeat(2, 1fr); }
}
