/* ============================================================
   BIG HEART KENYA — mobile-first design system
   Breakpoints: 640px (tablet), 992px (desktop nav + wide grids)
   ============================================================ */

/* ── FONTS (self-hosted, OFL — licences in /fonts) ──────── */
@font-face {
  font-family: 'Fredoka One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/fredoka-one-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('/fonts/nunito-latin-variable.woff2') format('woff2-variations'),
       url('/fonts/nunito-latin-variable.woff2') format('woff2');
}

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  /* Brand */
  --red:        #d42a33;  /* WCAG AA with white text (5.0:1) */
  --red-dark:   #b3222a;
  --yellow:     #f4bc33;  /* backgrounds only — too light for text */
  --yellow-dark:#dca320;
  --blue:       #2c6db4;
  --blue-dark:  #1f5591;
  --green:      #8ac926;  /* backgrounds only */
  --purple:     #6a4c93;

  /* Accessible text variants of the light brand colours */
  --amber-text: #8a5a00;
  --green-text: #3d7a0f;

  /* Neutrals */
  --ink:        #1a365d;
  --text:       #3a4b66;
  --muted:      #56657a;
  --white:      #ffffff;
  --parchment:  #f6f3eb;
  --sky-light:  #eaf2f8;
  --border:     #e6e1d3;

  /* Type */
  --font-display: 'Fredoka One', 'Trebuchet MS', system-ui, sans-serif;
  --font-body:    'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  /* Layout */
  --gutter: 16px;
  --section-y: 56px;
  --header-h: 72px;
  --content-max: 1200px;

  /* Shape */
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --shadow-sm: 0 2px 8px rgba(26, 54, 93, 0.08);
  --shadow-md: 0 8px 24px rgba(26, 54, 93, 0.12);

  --ease-bouncy: cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (min-width: 640px) {
  :root { --gutter: 24px; --section-y: 72px; }
}
@media (min-width: 992px) {
  :root { --gutter: 32px; --section-y: 96px; --header-h: 80px; }
}

/* ── RESET / BASE ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--space-4));
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  font-weight: 500;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html.menu-open,
html.menu-open body { overflow: hidden; }

img, svg { display: block; max-width: 100%; height: auto; }

.icon {
  display: inline-block;
  flex-shrink: 0;
  width: 1.2em;
  height: 1.2em;
  vertical-align: -0.2em;
}
ul, ol { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute !important;
  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: var(--space-2);
  left: var(--space-2);
  z-index: 1000;
  padding: var(--space-3) var(--space-4);
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  border-radius: var(--r-sm);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* ── TYPOGRAPHY ─────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.5rem); color: var(--blue); }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.75vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem); }

p { max-width: 65ch; }
p + p { margin-top: var(--space-4); }
strong { font-weight: 700; color: var(--ink); }

.lead {
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  color: var(--ink);
}

.text-red    { color: var(--red); }
.text-blue   { color: var(--blue); }
.text-amber  { color: var(--amber-text); }
.text-green  { color: var(--green-text); }
.text-purple { color: var(--purple); }
.text-ink    { color: var(--ink); }

.eyebrow {
  display: inline-block;
  margin-bottom: var(--space-3);
  padding: var(--space-1) var(--space-3);
  border-radius: 999px;
  background: var(--sky-light);
  color: var(--blue-dark);
  font-family: var(--font-display);
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.section--sky .eyebrow,
.hero .eyebrow,
.page-hero .eyebrow { background: var(--white); }
.section--yellow .eyebrow,
.page-hero--yellow .eyebrow { background: var(--white); color: var(--ink); }

.text-link {
  color: var(--blue-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.text-link:hover { color: var(--red); }

/* ── LAYOUT ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: calc(var(--content-max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(800px + 2 * var(--gutter)); }

.section { padding-block: var(--section-y); }
.section--alt    { background: var(--parchment); }
.section--sky    { background: var(--sky-light); }
.section--yellow { background: var(--yellow); }

.section-head {
  max-width: 720px;
  margin: 0 auto var(--space-7);
  text-align: center;
}
.section-head h2 + p { margin: var(--space-3) auto 0; }

.section-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-7);
}

.stack > * + * { margin-top: var(--space-4); }

/* Grids: 1 col → 2 (tablet) → 3/4 (desktop) */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
@media (min-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .grid { gap: var(--space-6) var(--space-5); }
}

/* ── BUTTONS (one primary, one secondary site-wide) ─────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: var(--space-3) var(--space-5);
  border: 3px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.12);
  transition: transform 0.2s var(--ease-bouncy), box-shadow 0.2s, background-color 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(0, 0, 0, 0.12); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12); }

.btn--primary {
  background: var(--red);
  border-color: var(--red-dark);
  color: var(--white);
}
.btn--primary:hover { background: var(--red-dark); }

.btn--secondary {
  background: var(--yellow);
  border-color: var(--yellow-dark);
  color: var(--ink);
}
.btn--secondary:hover { background: #ffc93f; }

.btn--sm { min-height: 44px; padding: var(--space-2) var(--space-4); font-size: 1rem; }
.btn--block { width: 100%; }

.btn-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
@media (min-width: 480px) {
  .btn-group { flex-direction: row; flex-wrap: wrap; }
}
.btn-group--center { justify-content: center; align-items: center; }

/* ── HEADER ─────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  transition: box-shadow 0.25s;
}
.site-header.is-scrolled { box-shadow: 0 4px 16px rgba(26, 54, 93, 0.1); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  height: var(--header-h);
}

.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { width: 52px; height: 52px; }
@media (min-width: 992px) { .brand img { width: 60px; height: 60px; } }

/* Desktop nav */
.site-nav { display: none; }
.header-actions { display: none; }

@media (min-width: 992px) {
  .site-nav { display: block; margin-inline: auto; }
  .header-actions { display: flex; align-items: center; gap: var(--space-3); flex-shrink: 0; }
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.nav-list > li { position: relative; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  min-height: 44px;
  padding: var(--space-2) var(--space-3);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s, background-color 0.2s;
}
.nav-link:hover { background: var(--sky-light); color: var(--blue-dark); }
.nav-link[aria-current="page"],
.nav-link.is-active { color: var(--red); background: #fdecee; }

.nav-caret { width: 12px; height: 12px; transition: transform 0.2s; }
.nav-dropdown-toggle[aria-expanded="true"] .nav-caret { transform: rotate(180deg); }

.submenu {
  position: absolute;
  top: calc(100% + var(--space-2));
  left: 50%;
  min-width: 220px;
  padding: var(--space-2);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  transform: translateX(-50%);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.15s, visibility 0s 0.15s;
}
.submenu::before { /* hover bridge between toggle and panel */
  content: "";
  position: absolute;
  inset: calc(-1 * var(--space-3)) 0 auto;
  height: var(--space-3);
}
.has-submenu.is-open .submenu {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.15s;
}
@media (hover: hover) {
  .has-submenu:hover .submenu { visibility: visible; opacity: 1; transition: opacity 0.15s; }
}
.submenu a {
  display: block;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--r-sm);
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.submenu a:hover { background: var(--sky-light); color: var(--blue-dark); }
.submenu a[aria-current="page"] { color: var(--red); background: #fdecee; }

/* Hamburger */
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-right: -10px; /* aligns the 28px icon's edge with the container padding */
  border-radius: var(--r-sm);
}
@media (min-width: 992px) { .menu-toggle { display: none; } }

.menu-toggle__icon {
  position: relative;
  width: 28px;
  height: 20px;
}
.menu-toggle__icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  border-radius: 3px;
  background: var(--ink);
  transition: transform 0.25s, opacity 0.2s, top 0.25s;
}
.menu-toggle__icon span:nth-child(1) { top: 0; }
.menu-toggle__icon span:nth-child(2) { top: 8.5px; }
.menu-toggle__icon span:nth-child(3) { top: 17px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:nth-child(1) { top: 8.5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:nth-child(3) { top: 8.5px; transform: rotate(-45deg); }

/* Mobile drawer */
.mobile-menu {
  position: fixed;
  top: var(--header-h);
  right: 0;
  bottom: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  width: min(100%, 420px);
  background: var(--white);
  border-top: 1px solid var(--border);
  overflow-y: auto;
  overscroll-behavior: contain;
  visibility: hidden;
  transform: translateX(100%);
  transition: transform 0.3s ease, visibility 0s 0.3s;
}
.mobile-menu.is-open {
  visibility: visible;
  transform: none;
  transition: transform 0.3s ease;
}
@media (min-width: 992px) { .mobile-menu, .menu-backdrop { display: none; } }

.mobile-menu__list { padding: var(--space-2) var(--gutter); }
.mobile-menu__list a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: var(--space-2) var(--space-1);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
}
.mobile-menu__list a[aria-current="page"] { color: var(--red); }
.mobile-menu__group-label {
  padding: var(--space-4) var(--space-1) var(--space-1);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.mobile-menu__list .mobile-menu__sub a { font-size: 1.125rem; padding-left: var(--space-4); }

.mobile-menu__actions {
  display: grid;
  gap: var(--space-3);
  margin-top: auto;
  padding: var(--space-5) var(--gutter) calc(var(--space-5) + env(safe-area-inset-bottom));
  background: var(--parchment);
}

.menu-backdrop {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 80;
  background: rgba(26, 54, 93, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0s 0.3s;
}
.menu-backdrop.is-open { opacity: 1; visibility: visible; transition: opacity 0.3s; }

/* ── HERO / PAGE HEADER ─────────────────────────────────── */
.hero {
  padding-block: var(--space-7) var(--space-8);
  background: var(--sky-light);
  text-align: center;
}
.hero h1 { margin-bottom: var(--space-4); }
.hero .lead { margin: 0 auto var(--space-6); }
@media (min-width: 992px) {
  .hero { padding-block: var(--space-8) 96px; }
}

.page-hero {
  padding-block: var(--space-7);
  background: var(--sky-light);
  text-align: center;
}
.page-hero--yellow { background: var(--yellow); }
.page-hero--yellow h1 { color: var(--ink); }

/* Links on yellow need ink for contrast (blue/red fall below 4.5:1) */
.section--yellow .text-link,
.section--yellow .text-link:hover { color: var(--ink); }
.section--yellow .text-link:hover { text-decoration-thickness: 3px; }
.page-hero h1 { margin-bottom: var(--space-3); }
.page-hero .lead { margin-inline: auto; }
@media (min-width: 992px) { .page-hero { padding-block: 72px; } }

/* ── STATS ──────────────────────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  padding: var(--space-5) var(--space-3);
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 1.2rem + 2vw, 2.75rem);
  line-height: 1.1;
}
.stat__label {
  display: block;
  margin-top: var(--space-1);
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.3;
  color: var(--ink);
}
.stats-band { margin-top: calc(-1 * var(--space-7)); padding-bottom: var(--space-2); }
@media (min-width: 992px) { .stats { padding: var(--space-6); } }

/* ── CARDS ──────────────────────────────────────────────── */
.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--space-5);
  background: var(--white);
  border: 3px solid var(--border);
  border-top-width: 6px;
  border-radius: var(--r-lg);
  text-align: left;
  text-decoration: none;
  color: var(--text);
}
@media (min-width: 992px) { .card { padding: var(--space-6); } }

.card--red    { border-top-color: var(--red); }
.card--blue   { border-top-color: var(--blue); }
.card--yellow { border-top-color: var(--yellow); }
.card--green  { border-top-color: var(--green); }
.card--purple { border-top-color: var(--purple); }

.card__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: var(--space-4);
  border-radius: var(--r-md);
  background: var(--parchment);
  font-size: 2rem;
  line-height: 1;
}
.section--alt .card__icon { background: var(--sky-light); }
.card h3 { margin-bottom: var(--space-2); }
.card__meta {
  margin-bottom: var(--space-3);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--muted);
}
.card__cta { margin-top: auto; padding-top: var(--space-5); }
.card__price {
  margin-bottom: var(--space-2);
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
}

a.card { transition: transform 0.25s var(--ease-bouncy), box-shadow 0.25s, border-color 0.25s; }
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__link-text {
  margin-top: auto;
  padding-top: var(--space-4);
  font-weight: 800;
  color: var(--blue-dark);
}
a.card:hover .card__link-text { text-decoration: underline; text-underline-offset: 3px; }

.badge {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: var(--space-3);
  padding: 2px var(--space-3);
  border-radius: 999px;
  background: var(--sky-light);
  color: var(--blue-dark);
  font-size: 0.875rem;
  font-weight: 800;
}
.badge--past { background: #eceff3; color: var(--muted); }

/* ── EVENTS ─────────────────────────────────────────────── */
.event-list { display: grid; gap: var(--space-5); }

.event-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-4);
  align-items: start;
  padding: var(--space-5);
  background: var(--white);
  border: 3px solid var(--border);
  border-left-width: 8px;
  border-radius: var(--r-lg);
}
.event-card--red    { border-left-color: var(--red); }
.event-card--blue   { border-left-color: var(--blue); }
.event-card--purple { border-left-color: var(--purple); }

.event-date {
  display: grid;
  place-items: center;
  width: 72px;
  padding: var(--space-2) 0;
  border-radius: var(--r-md);
  background: var(--parchment);
  text-align: center;
  line-height: 1.1;
}
.event-date__month { font-weight: 800; font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--red); }
.event-date__day { font-family: var(--font-display); font-size: 1.75rem; color: var(--ink); }
.event-card h3 { margin-bottom: var(--space-1); }
.event-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-4);
  margin-top: var(--space-2);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--muted);
}
.event-card__cta { grid-column: 1 / -1; }
.event-card.is-past { border-left-color: #b9c2cf; }

@media (min-width: 640px) {
  .event-card { grid-template-columns: auto 1fr auto; align-items: center; padding: var(--space-6); }
  .event-card__cta { grid-column: auto; }
}

/* ── PROSE (stories) ────────────────────────────────────── */
.article {
  padding: var(--space-5);
  background: var(--white);
  border: 3px solid var(--border);
  border-top-width: 6px;
  border-radius: var(--r-lg);
}
@media (min-width: 640px) { .article { padding: var(--space-7); } }
.article + .article { margin-top: var(--space-6); }
.article h2 { margin-bottom: var(--space-2); }
.article h3 { margin: var(--space-6) 0 var(--space-2); font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.3rem); }
.article ul { list-style: disc; padding-left: var(--space-5); margin-top: var(--space-4); max-width: 65ch; }
.article li + li { margin-top: var(--space-2); }
.article__meta { margin-bottom: var(--space-5); font-size: 0.9375rem; font-weight: 700; color: var(--muted); }
.article .btn { margin-top: var(--space-6); }

/* ── FAQ ────────────────────────────────────────────────── */
.faq-group + .faq-group { margin-top: var(--space-7); }
.faq-group > h2 { margin-bottom: var(--space-5); }
.faq-item {
  padding: var(--space-5);
  background: var(--white);
  border: 3px solid var(--border);
  border-radius: var(--r-lg);
}
.faq-item + .faq-item { margin-top: var(--space-4); }
.faq-item h3 { margin-bottom: var(--space-2); }

/* ── GALLERY ────────────────────────────────────────────── */
.gallery-tile {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
  font-size: 3.5rem;
}
.gallery-tile--red    { background: #fbe3e4; }
.gallery-tile--blue   { background: var(--sky-light); }
.gallery-tile--yellow { background: #fdf1d3; }
.gallery-tile--green  { background: #ecf6dc; }
.gallery-tile--purple { background: #ece6f4; }
.gallery-tile--sky    { background: #e3f1f7; }
figure figcaption { margin-top: var(--space-2); font-weight: 700; color: var(--ink); }

/* ── CONTACT / INFO ─────────────────────────────────────── */
.info-list { display: grid; gap: var(--space-4); }
.info-list li { display: grid; grid-template-columns: 32px 1fr; gap: var(--space-3); align-items: start; }
.info-list__icon { display: flex; padding-top: 2px; color: var(--red); }
.info-list__icon .icon { width: 24px; height: 24px; }
.info-list__label { display: block; font-weight: 800; color: var(--ink); }
.info-list a { color: var(--blue-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }

.split { display: grid; gap: var(--space-5); }
@media (min-width: 992px) { .split { grid-template-columns: 2fr 3fr; gap: var(--space-6); align-items: start; } }
@media (min-width: 992px) { .split--even { grid-template-columns: 1fr 1fr; align-items: center; } }

.panel {
  padding: var(--space-5);
  background: var(--white);
  border: 3px solid var(--border);
  border-radius: var(--r-lg);
}
@media (min-width: 640px) { .panel { padding: var(--space-6); } }
.panel > h2 { margin-bottom: var(--space-5); font-size: clamp(1.4rem, 1.2rem + 1vw, 2rem); }

/* ── FORMS ──────────────────────────────────────────────── */
.form { display: grid; gap: var(--space-5); }
.field label { display: block; margin-bottom: var(--space-2); font-weight: 800; color: var(--ink); }
.field input,
.field textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: var(--space-3) var(--space-4);
  border: 2px solid #b9c2cf;
  border-radius: var(--r-sm);
  background: var(--white);
  font-size: 1rem;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus-visible,
.field textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.field [aria-invalid="true"] { border-color: var(--red); }
.field-error { margin-top: var(--space-2); font-weight: 700; font-size: 0.9375rem; color: var(--red); }
.field-error:empty { display: none; }
.form-status { font-weight: 700; }
.form-status:empty { display: none; }
.form-status--success { color: var(--green-text); }

/* ── STEPS ──────────────────────────────────────────────── */
.steps { counter-reset: step; }
.step { position: relative; padding-top: var(--space-2); }
.step__num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: var(--space-3);
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.25rem;
}

/* ── CTA BAND ───────────────────────────────────────────── */
.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: var(--space-3); }
.cta-band p { margin: 0 auto var(--space-6); color: var(--ink); }

/* ── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  padding-block: var(--space-8) var(--space-5);
  background: var(--blue);
  color: var(--white);
}
.footer-grid {
  display: grid;
  gap: var(--space-6);
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1.3fr 1fr; gap: var(--space-7); } }

.footer-brand__logo {
  display: inline-grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin-bottom: var(--space-4);
  border-radius: var(--r-md);
  background: var(--white);
}
.footer-brand__logo img { width: 68px; height: 68px; }
.site-footer p { color: var(--white); }
.site-footer h2 {
  margin-bottom: var(--space-4);
  font-size: 1.25rem;
  color: var(--white);
}
.footer-links { display: grid; gap: var(--space-1); }
.footer-links a,
.footer-contact a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}
.footer-links a:hover,
.footer-contact a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-contact { display: grid; gap: var(--space-2); }
.footer-contact li { display: grid; grid-template-columns: 28px 1fr; align-items: start; }
.footer-contact li > span:first-child { display: flex; align-items: center; height: 36px; }
.footer-contact li > span:last-child { line-height: 1.5; padding-top: 6px; }
.footer-contact li > a { grid-column: 2; }

.social { display: flex; gap: var(--space-3); margin-bottom: var(--space-5); }
.social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  color: var(--white);
  transition: background-color 0.2s, color 0.2s;
}
.social a:hover { background: var(--white); color: var(--blue); }
.social svg { width: 22px; height: 22px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2) var(--space-5);
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 0.9375rem;
}
.footer-bottom p { margin: 0; }
.site-footer :focus-visible { outline-color: var(--white); }

/* ── MOTION PREFERENCES ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .btn:hover, a.card:hover { transform: none; }
}
