/* ==========================================================================
   base.css — design tokens, reset, typography, buttons, layout helpers
   Palette: Primary #0A66C2 · Secondary #1E88E5 · Tertiary #38BDF8 · Neutral #111827
   ========================================================================== */

:root {
  /* Primary ramp */
  --primary-50: #e8f1fb;
  --primary-100: #c7ddf5;
  --primary-200: #94bfeb;
  --primary-300: #5f9fdf;
  --primary-400: #2f81d0;
  --primary: #0a66c2;
  --primary-600: #0956a4;
  --primary-700: #084584;
  --primary-800: #063363;
  --primary-900: #042244;

  /* Secondary ramp */
  --secondary-50: #e9f3fd;
  --secondary-100: #cbe3fa;
  --secondary-200: #9bc9f4;
  --secondary-300: #66aded;
  --secondary: #1e88e5;
  --secondary-600: #1971c0;
  --secondary-700: #145b9b;

  /* Tertiary ramp */
  --tertiary-50: #edf9ff;
  --tertiary-100: #d3f0fe;
  --tertiary-200: #a8e2fd;
  --tertiary: #38bdf8;
  --tertiary-600: #1c9ed6;
  --tertiary-700: #157fac;

  /* Neutral ramp */
  --neutral-50: #f7f8fa;
  --neutral-100: #eef0f4;
  --neutral-200: #dde1e9;
  --neutral-300: #c2c8d4;
  --neutral-400: #98a1b3;
  --neutral-500: #6b7488;
  --neutral-600: #4b5364;
  --neutral-700: #333a48;
  --neutral-800: #1f2532;
  --neutral: #111827;

  /* Semantic */
  --bg: #ffffff;
  --bg-soft: #f4f8fd;
  --bg-tint: var(--primary-50);
  --surface: #ffffff;
  --text: var(--neutral);
  --text-muted: var(--neutral-500);
  --border: var(--neutral-200);
  --danger: #dc2626;
  --success: #16a34a;

  /* Type */
  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  /* Shape & depth */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.06), 0 1px 3px rgba(17, 24, 39, 0.04);
  --shadow: 0 6px 18px rgba(10, 102, 194, 0.08);
  --shadow-lg: 0 18px 45px rgba(10, 102, 194, 0.16);

  /* Rhythm */
  --container: 1180px;
  --gutter: 24px;
  --section-y: 88px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset ---------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-700); }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* --- Typography ----------------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--neutral);
  margin: 0 0 0.5em;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
h4 { font-size: 1.05rem; }
p  { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.lead { font-size: 1.075rem; color: var(--text-muted); max-width: 62ch; }
.muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }

/* --- Layout --------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--soft { background: var(--bg-soft); }
.section--tint { background: var(--bg-tint); }

.section-head { max-width: 660px; margin: 0 auto 52px; text-align: center; }
.section-head p { color: var(--text-muted); margin: 0; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* --- Eyebrow -------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-50);
  border-radius: var(--radius-pill);
  padding: 7px 16px;
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}
.eyebrow--light { color: #fff; background: rgba(255, 255, 255, 0.16); }
.eyebrow--light::before { background: var(--tertiary); }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--tertiary); outline-offset: 2px; }

.btn--primary { background: var(--primary); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--secondary); color: #fff; box-shadow: var(--shadow-lg); }

.btn--secondary { background: var(--primary-50); color: var(--primary-700); }
.btn--secondary:hover { background: var(--primary-100); color: var(--primary-800); }

.btn--inverted { background: var(--neutral); color: #fff; }
.btn--inverted:hover { background: var(--neutral-800); color: #fff; }

.btn--outline { background: transparent; color: var(--neutral); border-color: var(--border); }
.btn--outline:hover { border-color: var(--primary); color: var(--primary); }

.btn--light { background: #fff; color: var(--primary-700); }
.btn--light:hover { background: var(--primary-50); color: var(--primary-800); }

.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.45); }
.btn--ghost-light:hover { background: rgba(255,255,255,0.12); color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* --- Cards ---------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary-200); }

.icon-badge {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--primary-50);
  color: var(--primary);
  margin-bottom: 18px;
}
.icon-badge svg { width: 22px; height: 22px; }

/* --- Scroll reveal -------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover { transform: none; }
}

/* --- CTA band ------------------------------------------------------------- */
.cta-band {
  background: linear-gradient(135deg, var(--primary-700), var(--primary) 55%, var(--secondary));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.82); max-width: 54ch; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 26px; }

/* --- Page hero (inner pages) ---------------------------------------------- */
.page-hero {
  background: linear-gradient(180deg, var(--primary-50), var(--bg));
  padding-block: 96px 64px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-hero p { margin-inline: auto; }
.breadcrumb { font-size: 0.85rem; color: var(--text-muted); margin-top: 18px; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }

/* --- Utilities ------------------------------------------------------------ */
.center { text-align: center; }
.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; left: 16px; top: -60px; z-index: 200;
  background: var(--primary); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 8px;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 1200px) { :root { --container: 1040px; } }

@media (max-width: 900px) {
  :root { --section-y: 64px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .cta-band { padding: 44px 28px; }
}

@media (max-width: 640px) {
  :root { --gutter: 18px; --section-y: 54px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 34px; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
}
