/* ═══════════════════════════════════════════════════════════════
   FEDESPMG · main.css  —  Mobile-first
   Reset · Tokens · Base · Typography · Utilities · A11y
   Breakpoints: sm 640 · md 768 · lg 1024 · xl 1280
   ═══════════════════════════════════════════════════════════════ */

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px; /* offset for sticky nav */
  text-rendering: optimizeLegibility;
}
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;             /* never below 16px to prevent iOS zoom on focus */
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
img { font-style: italic; background-repeat: no-repeat; background-size: cover; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ── DESIGN TOKENS ──────────────────────────────────────────── */
:root {
  /* Brand · navy */
  --navy-950: #050a18;
  --navy-900: #0a1228;
  --navy-800: #0e1c3d;
  --navy-700: #16285a;
  --navy-600: #1f3878;
  --navy-500: #2f4a93;
  --navy-100: #e8ecf6;
  --navy-50:  #f3f6fc;
  /* Brand · red */
  --red-700: #9c1816;
  --red-600: #c8201e;
  --red-500: #e0322f;
  --red-100: #fdeae9;
  --red-50:  #fef5f5;
  /* Neutrals */
  --bg: #ffffff;
  --bg-soft: #f7f8fb;
  --bg-mid: #f0f2f7;
  --border: #e4e7ee;
  --border-strong: #cdd2dc;
  --text: #0a1228;
  --text-soft: #485066;
  --text-muted: #6b7388;
  --text-dim: #9098ac;
  /* Effects */
  --shadow-sm: 0 1px 2px rgba(10,18,40,0.04), 0 2px 6px rgba(10,18,40,0.06);
  --shadow-md: 0 4px 8px rgba(10,18,40,0.04), 0 12px 28px rgba(10,18,40,0.08);
  --shadow-lg: 0 12px 24px rgba(10,18,40,0.06), 0 24px 60px rgba(10,18,40,0.12);
  /* Radii */
  --r-xs: 4px; --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 22px; --r-full: 9999px;
  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  /* Layout (mobile defaults) */
  --container: 100%;
  --container-narrow: 720px;
  --gutter: 20px;
  --section-y: 64px;
  --section-y-sm: 48px;
  --nav-h: 72px;
  /* Tap target */
  --tap: 44px;
}

/* sm — 640px */
@media (min-width: 640px) {
  :root { --gutter: 24px; --section-y: 80px; --section-y-sm: 56px; }
}
/* md — 768px (tablet) */
@media (min-width: 768px) {
  :root { --gutter: 28px; --section-y: 96px; --section-y-sm: 64px; --container: 720px; }
}
/* lg — 1024px (desktop) */
@media (min-width: 1024px) {
  :root { --gutter: 32px; --section-y: 120px; --section-y-sm: 80px; --container: 980px; --nav-h: 90px; }
}
/* xl — 1280px */
@media (min-width: 1280px) {
  :root { --container: 1180px; }
}

/* ── TYPOGRAPHY · fluid via clamp() ─────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700; line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--text);
  text-wrap: balance;
}
h1 { font-size: clamp(32px, 5.5vw + 12px, 60px); line-height: 1.08; letter-spacing: -0.025em; }
h2 { font-size: clamp(26px, 3.5vw + 10px, 44px); line-height: 1.12; letter-spacing: -0.022em; }
h3 { font-size: clamp(19px, 1vw + 16px, 24px); }
h4 { font-size: 17px; }
p  { color: var(--text-soft); }
strong { font-weight: 600; color: var(--text); }
em { font-style: normal; color: var(--red-600); font-weight: 600; }

.display-1 {
  font-size: clamp(36px, 7vw + 12px, 76px);
  font-weight: 800; letter-spacing: -0.035em; line-height: 1.02;
  text-wrap: balance;
}
.display-2 {
  font-size: clamp(28px, 4.5vw + 10px, 52px);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.06;
  text-wrap: balance;
}

.lede {
  font-size: clamp(15px, 0.5vw + 14px, 18px);
  line-height: 1.6;
  color: var(--text-soft);
  font-weight: 400;
  text-wrap: pretty;
}

/* ── UTILITIES ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }
.section-sm { padding-block: var(--section-y-sm); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--red-600);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: ''; width: 24px; height: 2px;
  background: var(--red-600); border-radius: 2px;
}
@media (min-width: 768px) {
  .eyebrow { font-size: 12px; margin-bottom: 18px; }
  .eyebrow::before { width: 28px; }
}
.eyebrow-light { color: rgba(255,255,255,0.7); }
.eyebrow-light::before { background: var(--red-500); }

.section-header { max-width: 720px; margin-bottom: 40px; }
.section-header.center { margin-inline: auto; text-align: center; }
.section-header h2 { margin-bottom: 14px; }
.section-header p {
  font-size: clamp(15px, 0.3vw + 14px, 17px);
  line-height: 1.65; color: var(--text-soft);
}
@media (min-width: 768px) { .section-header { margin-bottom: 56px; } }

.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
.text-red    { color: var(--red-600); }
.text-navy   { color: var(--navy-700); }

/* ── REVEAL ANIMATIONS ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.07s; }
.reveal-d2 { transition-delay: 0.14s; }
.reveal-d3 { transition-delay: 0.21s; }
.reveal-d4 { transition-delay: 0.28s; }

/* ── ICONS ──────────────────────────────────────────────────── */
.ico { width: 20px; height: 20px; stroke-width: 1.75; flex-shrink: 0; }
.ico-sm { width: 16px; height: 16px; }
.ico-lg { width: 26px; height: 26px; }
.ico-xl { width: 32px; height: 32px; }

/* ── A11Y ───────────────────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 9999;
  padding: 12px 20px;
  background: var(--navy-900); color: #fff;
  font-size: 14px; font-weight: 600;
  border-radius: var(--r-sm);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }

:focus-visible {
  outline: 2px solid var(--red-600);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ── SELECTION ──────────────────────────────────────────────── */
::selection { background: var(--red-600); color: #fff; }
