/* ═══════════════════════════════════════════════════════════
   YADAMA RELIEF & REHABILITATION FOUNDATION
   Shared Stylesheet — all pages
═══════════════════════════════════════════════════════════ */

/* ─── 1. RESET ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* overflow-x: clip (not hidden) — hidden with no matching overflow-y forces
   overflow-y to auto too (CSS Overflow spec), turning html/body into a
   scroll container that hijacks position:sticky descendants away from the
   real viewport. clip prevents the horizontal scrollbar without that side effect. */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video { max-width: 100%; display: block; }
input, button, textarea, select { font: inherit; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
ul { list-style: none; }

/* ─── 2. TOKENS ─────────────────────────────────────────── */
:root {
  --blue:        #1a3a6b;
  --blue-dark:   #112650;
  --blue-mid:    #2a5295;
  --green:       #3a8a3a;
  --green-dark:  #2a6a2a;
  --green-light: #4aaa4a;
  --gold:        #c9a84c;
  --gold-light:  #e8c87a;
  --cream:       #f6f8f4;
  --cream-dark:  #eef2ea;
  --text:        #101828;
  --text-mid:    #3a4356;
  --muted:       #66708a;
  --white:       #ffffff;
  --border:      rgba(16, 24, 40, 0.1);
  --border-gold: rgba(201, 168, 76, 0.3);
  --bg:          #ffffff;
  --bg-elevated: #ffffff;
  --bg-floating: #f6f8f4;

  --font-display: 'Bricolage Grotesque', 'Arial Narrow', sans-serif;
  --font-body:    'Figtree', sans-serif;

  --space-xs:  clamp(0.5rem,  1vw,   0.75rem);
  --space-sm:  clamp(0.75rem, 1.5vw, 1rem);
  --space-md:  clamp(1rem,    2.5vw, 1.5rem);
  --space-lg:  clamp(1.5rem,  4vw,   2.5rem);
  --space-xl:  clamp(2.5rem,  7vw,   5rem);
  --space-2xl: clamp(3rem,    6.5vw, 5.5rem);

  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-full: 9999px;

  --shadow-sm:   0 1px 3px rgba(26,58,107,0.08), 0 2px 8px rgba(26,58,107,0.06);
  --shadow-md:   0 4px 16px rgba(26,58,107,0.12), 0 1px 4px rgba(26,58,107,0.08);
  --shadow-lg:   0 12px 40px rgba(26,58,107,0.18), 0 4px 12px rgba(26,58,107,0.10);
  --shadow-gold: 0 8px 32px rgba(201,168,76,0.25), 0 2px 8px rgba(0,0,0,0.1);
}

/* ─── 3. BASE ────────────────────────────────────────────── */
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
}

/* Grain overlay — adds subtle tactile depth */
.grain { position: relative; }
.grain::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  filter: url(#grain); opacity: 0.045; mix-blend-mode: overlay;
  z-index: 0;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.12;
  font-weight: 700;
}
p { line-height: 1.75; }
a { color: inherit; text-decoration: none; }

/* ─── 4. LAYOUT ──────────────────────────────────────────── */
.container {
  width: min(1160px, 100% - var(--space-lg) * 2);
  margin-inline: auto;
}
.section { padding-block: var(--space-2xl); }
.section--white  { background: var(--white); }
.section--cream  { background: var(--cream); }
.section--blue   { background: var(--blue); }
.section--green  { background: var(--green-dark); }

/* Accessible heading that carries structure without appearing visually */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ─── 5. REVEAL ──────────────────────────────────────────── */
/* Gated behind html.js so the page renders fully without JavaScript */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}
.js .reveal.visible { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal:nth-child(6) { transition-delay: 0.40s; }

/* ─── 6. FOCUS + A11Y ───────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ─────────────────────────────────────────────────────────
   NAVIGATION
───────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header.scrolled { box-shadow: 0 4px 24px rgba(16,24,40,0.08); }

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding-block: 0.8rem;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  margin-right: auto;
}
.nav__logo img {
  width: clamp(9rem, 15vw, 11.5rem);
  height: auto;
}
.nav__logo-text {
  display: none;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1.25;
}
@media (min-width: 640px) { .nav__logo-text { display: block; } }

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav__links a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-mid);
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav__links a:hover { color: var(--blue); background: rgba(26,58,107,0.06); }
.nav__links a.active { color: var(--blue); font-weight: 600; }
/* The Donate pill keeps its own colours — .nav__links a rules must not repaint it */
.nav__links a.btn--green { color: var(--white); padding: 0.55rem 1.3rem; }
.nav__links a.btn--green:hover,
.nav__links a.btn--green.active { color: var(--white); background: var(--green-dark); }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Mobile nav */
@media (max-width: 1100px) {
  /* Remove backdrop-filter when menu is open so position:fixed children
     escape the stacking context and cover the full viewport */
  .site-header.nav-open {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav__toggle { display: flex; position: relative; z-index: 1001; }
  .nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav__toggle.is-open span { background: var(--white); }
  .nav__links {
    position: fixed; inset: 0;
    background: var(--blue-dark);
    flex-direction: column;
    align-items: center; justify-content: center;
    gap: var(--space-md);
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
  }
  .nav__links.is-open { opacity: 1; pointer-events: all; }
  .nav__links a {
    font-size: 1.4rem;
    font-family: var(--font-display);
    color: rgba(255,255,255,0.85);
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-md);
  }
  .nav__links a:hover { color: var(--white); background: rgba(255,255,255,0.08); }
  .nav__links a.active { color: var(--green-light); }
  .nav__links .btn { font-size: 1rem; padding: 0.875rem 2.5rem; }
}

/* ─────────────────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.625rem 1.4rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.875rem;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.2s ease,
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.btn--primary  { background: var(--blue);  color: var(--white); border-color: var(--blue); }
.btn--primary:hover  { background: var(--blue-dark); border-color: var(--blue-dark); box-shadow: var(--shadow-md); }

.btn--green    { background: var(--green); color: var(--white); border-color: var(--green); }
.btn--green:hover { background: var(--green-dark); border-color: var(--green-dark); box-shadow: 0 8px 24px rgba(58,138,58,0.3); }

/* Legacy gold buttons now follow the single action colour */
.btn--gold     { background: var(--green); color: var(--white); border-color: var(--green); font-weight: 700; }
.btn--gold:hover { background: var(--green-dark); border-color: var(--green-dark); box-shadow: 0 8px 24px rgba(58,138,58,0.3); }

.btn--ghost    { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn--ghost:hover { background: var(--blue); color: var(--white); }

.btn--ghost-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.55); }
.btn--ghost-white:hover { background: rgba(255,255,255,0.15); border-color: var(--white); }

.btn--lg  { padding: 0.875rem 2rem; font-size: 1rem; }
.btn--sm  { padding: 0.45rem 1rem; font-size: 0.8rem; }
.btn--full { width: 100%; justify-content: center; }

/* ─────────────────────────────────────────────────────────
   SECTION SHARED ELEMENTS
───────────────────────────────────────────────────────── */
.section-label {
  display: inline-block;
  font-size: 0.85rem; font-weight: 600;
  color: var(--green); margin-bottom: var(--space-sm);
}
.section-label--center { display: block; text-align: center; }
.section-label--white { color: rgba(255,255,255,0.75); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  color: var(--blue); margin-bottom: var(--space-md);
}
.section-title--white { color: var(--white); }
.section-title--center { text-align: center; }

.section-body {
  font-size: 1.05rem; color: var(--text-mid);
  max-width: 58ch; line-height: 1.8;
}
.section-body--center { margin-inline: auto; text-align: center; }

/* Photo caption — small factual note under or over an image */
.img-note {
  font-size: 0.8rem; color: var(--muted);
  margin-top: 0.6rem; line-height: 1.5;
}

/* ─────────────────────────────────────────────────────────
   PAGE HERO (inner pages)
───────────────────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(180deg, #eaf3ea 0%, var(--white) 100%);
  padding-block: var(--space-xl) var(--space-xl);
  text-align: center;
}
.page-hero__eyebrow {
  display: inline-block;
  background: rgba(58,138,58,0.12);
  color: var(--green-dark);
  font-size: 0.85rem; font-weight: 600;
  padding: 0.35em 1em; border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
}
.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  color: var(--text); margin-bottom: var(--space-md);
  font-weight: 800; letter-spacing: -0.025em;
}
.page-hero__title em { font-style: normal; color: inherit; }
.page-hero__sub {
  font-size: 1.15rem; color: var(--muted);
  max-width: 52ch; margin-inline: auto;
  line-height: 1.75;
}

/* Breadcrumb */
.breadcrumb {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.78rem; color: var(--muted);
  justify-content: center;
  margin-bottom: var(--space-md);
}
.breadcrumb a { color: var(--green); }
.breadcrumb span { opacity: 0.5; }

/* ─────────────────────────────────────────────────────────
   CARDS
───────────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.25s ease,
    border-color 0.25s ease;
  position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: var(--blue);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.card--green::before { background: var(--green); }
.card--gold::before  { background: var(--gold); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }

.card__icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: rgba(26,58,107,0.07);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: var(--space-md);
}
.card--green .card__icon { background: rgba(58,138,58,0.08); }
.card--gold  .card__icon { background: rgba(201,168,76,0.10); }

.card__title {
  font-family: var(--font-display); font-size: 1.2rem;
  color: var(--blue); margin-bottom: var(--space-xs);
}
.card__body { font-size: 0.9rem; color: var(--muted); line-height: 1.7; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: var(--space-md);
}
.card-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); }

/* ─────────────────────────────────────────────────────────
   IMAGE TREATMENT (wrapper with overlays)
───────────────────────────────────────────────────────── */
.img-wrap {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.img-wrap:hover img { transform: scale(1.03); }
.img-wrap--badge {
  position: absolute; bottom: var(--space-md); left: var(--space-md);
  z-index: 2;
  background: rgba(255,255,255,0.92);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  color: var(--text);
  box-shadow: var(--shadow-md);
}
.img-wrap--badge-num {
  font-family: var(--font-display);
  font-size: 1.75rem; font-weight: 700; line-height: 1;
}
.img-wrap--badge-text { font-size: 0.78rem; opacity: 0.85; margin-top: 0.2rem; }

/* ─────────────────────────────────────────────────────────
   STAT BAR
───────────────────────────────────────────────────────── */
.stat-bar {
  background: var(--blue);
  padding-block: var(--space-lg);
}
.stat-bar__inner {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}
@media (max-width: 600px) {
  .stat-bar__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    text-align: center;
  }
}
.stat-item { text-align: center; }
.stat-item__num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; color: var(--white); line-height: 1;
}
.stat-item__num span { color: var(--green-light); }
.stat-item__label { font-size: 0.82rem; color: rgba(255,255,255,0.6); margin-top: 0.3rem; }

/* ─────────────────────────────────────────────────────────
   PILL TAGS
───────────────────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 0.35em;
  padding: 0.3em 0.9em; border-radius: var(--radius-full);
  font-size: 0.78rem; font-weight: 600;
}
.pill--green { background: rgba(58,138,58,0.12); color: var(--green); }
.pill--blue  { background: rgba(26,58,107,0.1);  color: var(--blue);  }
.pill--gold  { background: rgba(201,168,76,0.15); color: #8a6a10;     }
.pill--white {
  background: rgba(255,255,255,0.16); color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
}

/* ─────────────────────────────────────────────────────────
   PROGRESS BAR
───────────────────────────────────────────────────────── */
.progress-wrap { margin-block: var(--space-md); }
.progress-label {
  display: flex; justify-content: space-between;
  font-size: 0.82rem; font-weight: 600;
  color: var(--text-mid); margin-bottom: 0.5rem;
}
.progress-label strong { color: var(--green); }
.progress-bar {
  height: 10px;
  background: rgba(26,58,107,0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.progress-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--green-light));
  border-radius: var(--radius-full);
  width: 0;
  transition: width 1.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─────────────────────────────────────────────────────────
   QUOTE BLOCK
───────────────────────────────────────────────────────── */
.quote-block {
  border-left: 4px solid var(--green);
  padding-left: var(--space-md);
  margin-block: var(--space-lg);
}
.quote-block blockquote {
  font-family: var(--font-display); font-style: italic;
  font-size: 1.2rem; color: var(--blue); line-height: 1.55;
}
.quote-block cite {
  display: block; font-size: 0.78rem;
  color: var(--muted); margin-top: 0.5rem; font-style: normal;
}

/* ─────────────────────────────────────────────────────────
   CONTACT FORM
───────────────────────────────────────────────────────── */
.form { display: flex; flex-direction: column; gap: var(--space-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label {
  font-size: 0.82rem; font-weight: 600;
  color: var(--text-mid); letter-spacing: 0.02em;
}
.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,58,107,0.1);
}
.form-group textarea { resize: vertical; min-height: 140px; }

/* ─────────────────────────────────────────────────────────
   GALLERY GRID
───────────────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}
.gallery-item {
  position: relative; overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 4/3; cursor: pointer;
}
.gallery-item:first-child { grid-row: span 2; aspect-ratio: auto; }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(16,24,40,0.62) 0%, transparent 45%);
}
.gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: var(--space-sm) var(--space-md); z-index: 2; color: var(--white);
}
.gallery-caption__tag {
  display: block; font-size: 0.62rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.75); font-weight: 700; margin-bottom: 0.3rem;
}
.gallery-caption__text { font-size: 0.875rem; font-weight: 500; line-height: 1.4; }

@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item:first-child { grid-column: span 2; grid-row: span 1; aspect-ratio: 16/9; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item:first-child { grid-column: span 1; aspect-ratio: 4/3; }
}

/* ─────────────────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────────────────── */
.site-footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.75);
  padding-top: var(--space-xl);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__brand { display: flex; flex-direction: column; gap: var(--space-md); }
.footer__logo  { display: flex; align-items: center; gap: 0.7rem; }
.footer__logo img {
  width: min(100%, 12rem);
  height: auto;
}
.footer__logo-text {
  font-family: var(--font-display);
  font-size: 0.95rem; font-weight: 700;
  color: var(--white); line-height: 1.25;
}
.footer__brand-desc {
  font-size: 0.85rem; line-height: 1.7;
  color: rgba(255,255,255,0.48); max-width: 28ch;
}
.footer__social { display: flex; gap: 0.5rem; }
.social-link {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.65);
  transition:
    background 0.2s, color 0.2s, border-color 0.2s,
    transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.social-link:hover {
  background: var(--green); border-color: var(--green);
  color: var(--white); transform: translateY(-3px);
}
.social-link:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.footer__col h4 {
  font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 0.12em; color: rgba(255,255,255,0.35);
  margin-bottom: var(--space-md); font-weight: 600;
  font-family: var(--font-body);
}
.footer__col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer__col a { font-size: 0.875rem; color: rgba(255,255,255,0.58); transition: color 0.2s; }
.footer__col a:hover { color: var(--white); }
.footer__insta-link {
  display: flex; align-items: center; gap: 0.45rem;
  font-size: 0.875rem; color: rgba(255,255,255,0.58); transition: color 0.2s;
}
.footer__insta-link:hover { color: var(--green-light); }

.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-block: var(--space-md); font-size: 0.78rem;
  color: rgba(255,255,255,0.28); flex-wrap: wrap; gap: var(--space-sm);
}
.footer__bottom a { color: rgba(255,255,255,0.38); transition: color 0.2s; }
.footer__bottom a:hover { color: rgba(255,255,255,0.75); }
.footer__bottom-links { display: flex; gap: var(--space-md); }
.footer__credit { color: rgba(255,255,255,0.28); font-size: 0.78rem; }
.footer__credit a { color: rgba(255,255,255,0.45); transition: color 0.2s; }
.footer__credit a:hover { color: var(--green-light); }

/* ─────────────────────────────────────────────────────────
   ANNOUNCEMENT BAR
───────────────────────────────────────────────────────── */
.announce {
  background: var(--green-dark);
  color: var(--white);
  text-align: center;
  font-size: 0.85rem;
  padding: 0.55rem var(--space-md);
}
.announce a { color: var(--white); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.announce a:hover { opacity: 0.85; }

@media (max-width: 900px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: span 2; }
}
@media (max-width: 480px) {
  .footer__inner { grid-template-columns: 1fr; }
  .footer__brand { grid-column: span 1; }
}

/* ─────────────────────────────────────────────────────────
   CTA BAND
───────────────────────────────────────────────────────── */
.cta-band {
  background: var(--blue);
  padding-block: var(--space-xl);
  text-align: center;
}
.cta-band__inner { position: relative; z-index: 1; }
.cta-band__eyebrow {
  font-size: 0.85rem; font-weight: 600;
  color: rgba(255,255,255,0.75); margin-bottom: var(--space-sm);
}
.cta-band__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  color: var(--white); margin-bottom: var(--space-md);
  max-width: 24ch; margin-inline: auto;
}
.cta-band__sub {
  font-size: 1.05rem; color: rgba(255,255,255,0.7);
  max-width: 48ch; margin-inline: auto;
  margin-bottom: var(--space-lg); line-height: 1.75;
}
.cta-band__actions {
  display: flex; gap: var(--space-sm);
  justify-content: center; flex-wrap: wrap;
}
@media (max-width: 480px) {
  .cta-band__actions { flex-direction: column; align-items: center; }
  .cta-band__actions .btn { width: 100%; max-width: 300px; justify-content: center; }
}

/* ─────────────────────────────────────────────────────────
   MOBILE GLOBAL FIXES
───────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  /* Prevent wide tables / pre from overflowing */
  .container { width: min(100%, 100% - var(--space-md) * 2); }
  /* Section padding tighter on phone */
  .section { padding-block: var(--space-xl); }
  /* Footer bottom stack */
  .footer__bottom { flex-direction: column; text-align: center; gap: var(--space-xs); }

  /* ── Typography tightening ── */
  /* Section and page hero titles slightly smaller on tiny screens */
  .section-title      { font-size: clamp(1.65rem, 7vw, 2.5rem); }
  .page-hero__title   { font-size: clamp(1.9rem, 8.5vw, 2.5rem); }
  .page-hero__sub     { font-size: 1rem; }
  /* Hero stat numbers */
  .stat-item__num     { font-size: clamp(1.75rem, 7vw, 2.5rem); }
  /* Quote block */
  .quote-block blockquote { font-size: 1rem; }
  /* Section body — don't constrain width on mobile */
  .section-body, .section-body--center { max-width: 100%; }

  /* ── Image badge ── */
  .img-wrap--badge-num  { font-size: 1.3rem; }
  .img-wrap--badge-text { font-size: 0.68rem; }

  /* ── Touch targets — min 44px for all buttons ── */
  .btn { min-height: 44px; }
  .social-link { width: 44px; height: 44px; }
  .nav__links a { padding: 0.6rem 1.25rem; }

  /* ── Card grid tighter gap ── */
  .card-grid { gap: var(--space-sm); }

  /* ── CTA band ── */
  .cta-band__title { font-size: clamp(1.65rem, 7vw, 2.5rem); }

}

/* Stat bar: slightly tighter at 480px (2-col already set) */
@media (max-width: 400px) {
  .stat-bar__inner { grid-template-columns: 1fr 1fr; gap: var(--space-md); }
}

/* Campaign sidebar: un-stick when stacked into single column */
@media (max-width: 960px) {
  .campaign-sidebar { position: static; }
}

/* ── Page hero decorations: don't overflow small viewports ── */
@media (max-width: 600px) {
  .page-hero::before { width: 260px; height: 260px; }
  .hero::before      { width: 300px; height: 300px; }
}
