/* ════════════════════════════════════════════════════════════
   AerialSpect — Global styles
   Design system: "Dutch Modernist"
   Stark off-white, near-black, one flat cobalt accent.
   Hairline rules, hard corners, heavy grid discipline.
   Tokens · reset · type · nav · buttons · shared · footer
   ════════════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ── */
:root {
  /* Color */
  --ink: #131311;            /* near-black, primary text + dark blocks */
  --ink-soft: #1d1d1b;
  --ink-mid: #2b2b28;
  --paper: #f4f3ed;          /* off-white page ground */
  --surface: var(--paper);
  --surface-warm: #eae9e1;
  --white: #ffffff;
  --accent: #2036ce;         /* flat cobalt — the one accent */
  --accent-deep: #18289e;
  --accent-dim: var(--accent-deep);
  --accent-soft: #93a4ff;    /* cobalt for use on dark grounds */
  --teal: #1e7a4c;           /* semantic success (form states) */
  --teal-light: #2a9478;
  --text-muted: #5f5f58;
  --text-secondary: #9c9c95; /* muted text on dark grounds */
  --border: #d8d7cd;         /* hairline on paper */
  --border-dark: rgba(255, 255, 255, 0.14);

  /* Type */
  --font-display: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  /* Scale: 12 / 13 / 14 / 16 / 18 / 21 / 28 / 40 / 56 / 76 */
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 21px;
  --text-2xl: 28px;
  --text-3xl: clamp(30px, 3.4vw, 40px);
  --text-display: clamp(36px, 4.6vw, 56px);
  --text-hero: clamp(42px, 6.4vw, 82px);

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

  /* Layout */
  --page-max: 1320px;
  --gutter: clamp(20px, 4vw, 56px);

  /* No soft shadows in this system — elevation is a hairline ring.
     (Tokens kept because legacy inline styles reference them.) */
  --shadow-sm: 0 0 0 1px var(--border);
  --shadow-md: 0 0 0 1px var(--border);
  --shadow-lg: 0 0 0 1px var(--ink);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.6;
  counter-reset: section; /* numbered section eyebrows, see .section-eyebrow */
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; }
::selection { background: var(--accent); color: var(--white); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.dark :focus-visible,
footer :focus-visible,
#navbar :focus-visible { outline-color: var(--accent-soft); }

/* ── NAV ── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  height: 68px;
  background: var(--ink);
  border-bottom: 1px solid var(--border-dark);
}
/* .scrolled kept as a JS hook — same solid bar, rule sharpens */
#navbar.scrolled { border-bottom-color: rgba(255,255,255,0.24); }

.nav-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}
.nav-logo img { display: block; width: 168px; height: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 13.5px;
  font-weight: 450;
  color: rgba(255, 255, 255, 0.66);
  text-decoration: none;
  letter-spacing: 0.01em;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.18s, border-color 0.18s;
}
.nav-links a:hover { color: var(--white); border-bottom-color: rgba(255,255,255,0.4); }
.nav-links a.active { color: var(--white); border-bottom-color: var(--accent-soft); }

.nav-cta {
  background: var(--accent);
  color: var(--white) !important;
  font-weight: 500 !important;
  padding: 11px 20px !important;
  border-bottom: none !important;
  transition: background 0.18s !important;
}
.nav-cta:hover { background: var(--accent-deep) !important; }

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

/* Mobile nav overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 101; /* above the fixed navbar so the close button stays reachable */
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  padding: 0 var(--gutter);
}
.nav-overlay.open { display: flex; }
.nav-overlay a {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  width: 100%;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-dark);
  transition: color 0.18s, padding-left 0.18s;
}
.nav-overlay a:hover { color: var(--accent-soft); padding-left: 8px; }
.nav-overlay .nav-cta {
  margin-top: 28px;
  width: auto;
  font-size: 17px;
  border-bottom: none !important;
  padding: 14px 28px !important;
}
.nav-close {
  position: absolute;
  top: 16px; right: var(--gutter);
  background: none;
  border: 1px solid var(--border-dark);
  color: var(--white);
  font-size: 24px;
  line-height: 1;
  padding: 6px 12px;
  cursor: pointer;
}

/* ── BUTTONS ──
   Hard-edged rectangles. Primary = flat cobalt. No pill radii. */
.btn, .btn-primary, .btn-dark, .form-submit {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 15px 28px;
  border: none;
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: background 0.18s, color 0.18s;
}
.btn, .btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn:hover, .btn-primary:hover { background: var(--ink); color: var(--white); }
.dark .btn-primary:hover,
.cta-section .btn-primary:hover { background: var(--white); color: var(--ink); }

.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--accent); }

.btn-secondary {
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  padding: 15px 0;
  border: none;
  background: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--ink);
  transition: color 0.18s, border-color 0.18s;
}
.btn-secondary:hover { color: var(--accent); border-bottom-color: var(--accent); }
.dark .btn-secondary, .hero .btn-secondary {
  color: var(--ink);
  border-bottom-color: rgba(19, 19, 17, 0.4);
}

.btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: transform 0.18s;
}
.btn-primary:hover .btn-arrow,
.btn-dark:hover .btn-arrow,
.btn-secondary:hover .btn-arrow { transform: translateX(4px); }

/* ── SHARED SECTION GRAMMAR ──
   Eyebrows are auto-numbered (01, 02, …) per page via CSS counters. */
.section-eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 20px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.section-eyebrow::before {
  counter-increment: section;
  content: counter(section, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0;
  color: var(--accent);
}
.dark .section-eyebrow { color: var(--white); }
.dark .section-eyebrow::before { color: var(--accent-soft); }

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.04;
  color: var(--ink);
  margin-bottom: 20px;
  max-width: 26ch;
  text-wrap: balance;
}
.section-sub {
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.65;
  margin-bottom: var(--space-2xl);
}
.dark .section-title { color: var(--white); }
.dark .section-sub { color: var(--text-secondary); }

/* Centered variants keep their centering via inline styles in markup;
   max-width guard so balance still works */
.section-title[style*="center"] { margin-left: auto; margin-right: auto; }

/* ── BREADCRUMB ── */
.breadcrumb-bar {
  background: var(--ink);
  padding: 14px var(--gutter);
  border-bottom: 1px solid var(--border-dark);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.breadcrumb li { display: flex; align-items: center; gap: 10px; }
.breadcrumb a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.18s;
}
.breadcrumb a:hover { color: var(--accent-soft); }
.breadcrumb .separator, .breadcrumb span { color: rgba(255, 255, 255, 0.25); }
.breadcrumb .current { color: rgba(255, 255, 255, 0.8); }

/* ── METRIC STRIP (ruled cells, instrument-panel numerals) ── */
.metric-strip {
  display: grid;
  border: 1px solid var(--border-dark);
  background: var(--ink);
}
.metric-strip-3 { grid-template-columns: repeat(3, 1fr); }
.metric-strip-4 { grid-template-columns: repeat(4, 1fr); }
.metric-item {
  padding: 36px 28px 30px;
  border-right: 1px solid var(--border-dark);
  text-align: left;
}
.metric-item:last-child { border-right: none; }
.metric-val, .metric-value {
  font-family: var(--font-display);
  font-size: clamp(34px, 3.4vw, 48px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1;
  display: block;
  margin-bottom: 10px;
}
.metric-label {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
}

/* ── BLOCKQUOTE (testimonials) ── */
.testimonial-quote {
  border-left: 3px solid var(--accent);
  padding: 8px 0 8px 28px;
  margin: 40px 0;
}
.testimonial-quote p {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--white);
  line-height: 1.45;
  margin-bottom: 12px;
}
.testimonial-quote cite {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-style: normal;
}

/* ── FOOTER ── */
footer {
  background: var(--ink);
  padding: 0 var(--gutter);
  border-top: 3px solid var(--accent);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 0;
  padding: 64px 0 56px;
}
.footer-top > div {
  padding: 0 32px;
  border-left: 1px solid var(--border-dark);
}
.footer-top > div:first-child { padding-left: 0; border-left: none; }
.footer-brand .footer-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
  margin-bottom: 18px;
}
.footer-brand .footer-logo img { display: block; width: 168px; height: auto; }
.footer-tagline {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.65;
  max-width: 260px;
  margin-bottom: 20px;
}
.footer-parent-note {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.32);
  line-height: 1.6;
  max-width: 280px;
}
.footer-parent-note a { color: var(--accent-soft); text-decoration: none; }
.footer-parent-note a:hover { text-decoration: underline; }
.footer-col-title {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 18px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-links a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.18s;
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0 28px;
  border-top: 1px solid var(--border-dark);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy { font-size: 13px; color: rgba(255, 255, 255, 0.35); }
.footer-socials { display: flex; gap: 10px; }
.social-link {
  width: 36px; height: 36px;
  border: 1px solid var(--border-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.social-link:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }

/* ── ICONS (inline SVG, Lucide-style strokes) ── */
.icon {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: square;
  stroke-linejoin: miter;
  fill: none;
  display: block;
}

/* ── SCROLL REVEAL ── */
.fade-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

.fade-left {
  opacity: 0;
  transform: translateX(-18px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-left.visible { opacity: 1; transform: translateX(0); }

.fade-right {
  opacity: 0;
  transform: translateX(18px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-right.visible { opacity: 1; transform: translateX(0); }

.scale-in {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.scale-in.visible { opacity: 1; transform: translateY(0); }

.stagger-children > *:nth-child(1) { transition-delay: 0s; }
.stagger-children > *:nth-child(2) { transition-delay: 0.07s; }
.stagger-children > *:nth-child(3) { transition-delay: 0.14s; }
.stagger-children > *:nth-child(4) { transition-delay: 0.21s; }
.stagger-children > *:nth-child(5) { transition-delay: 0.28s; }
.stagger-children > *:nth-child(6) { transition-delay: 0.35s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-up, .fade-left, .fade-right, .scale-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav-logo img { width: 148px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .footer-top { grid-template-columns: 1fr 1fr; padding: 48px 0; }
  .footer-top > div { border-left: none; padding: 0 0 32px 0; }
}

@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
  .metric-strip-3, .metric-strip-4 { grid-template-columns: 1fr; }
  .metric-strip-3 .metric-item, .metric-strip-4 .metric-item {
    border-right: none;
    border-bottom: 1px solid var(--border-dark);
  }
  .metric-strip .metric-item:last-child { border-bottom: none; }
}
