/* =============================================================
   Held at Heart Uganda — Design System
   Pure CSS, mobile-first, vanilla. No frameworks.
   ============================================================= */

/* ---------- 1. Tokens & Variables ------------------------------ */
:root {
  /* Brand palette (as provided) */
  --brand-1: #ed1c24; /* primary red */
  --brand-2: #39b54a; /* green */
  --brand-3: #fcb040; /* warm orange */
  --brand-4: #0e76bc; /* trust blue */
  --brand-5: #fcaf3f; /* yellow */

  /* Tints / soft variants for backgrounds */
  --brand-1-soft: #fde7e8;
  --brand-2-soft: #e6f6e9;
  --brand-3-soft: #fff1dd;
  --brand-4-soft: #e2f0fa;
  --brand-5-soft: #fff3dc;

  /* Surfaces */
  --surface: #fff8f7;
  --surface-alt: #fff0ee;
  --surface-2: #f7f7f9;
  --white: #ffffff;
  --ink: #1f1715;
  --ink-2: #4a3a37;
  --ink-3: #7a6a67;
  --line: #ececec;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 6px 18px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.12);
  --shadow-brand: 0 14px 36px rgba(237, 28, 36, 0.18);

  /* Geometry */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Type */
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Public Sans", system-ui, sans-serif;

  /* Spacing scale */
  --sp-xs: 4px;
  --sp-sm: 12px;
  --sp-md: 24px;
  --sp-lg: 48px;
  --sp-xl: 80px;

  /* Layout */
  --max: 1200px;
  --header-h: 88px;
}

/* ---------- 2. Reset --------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-wrap: break-word;
}
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
ul { list-style: none; padding: 0; margin: 0; }

/* ---------- 3. Typography --------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  margin: 0 0 .5em;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p  { margin: 0 0 1em; color: var(--ink-2); }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-1);
  background: var(--brand-1-soft);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}
.eyebrow.green  { color: var(--brand-2); background: var(--brand-2-soft); }
.eyebrow.blue   { color: var(--brand-4); background: var(--brand-4-soft); }
.eyebrow.orange { color: var(--brand-3); background: var(--brand-3-soft); }

.section-title { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 800; }
.section-lead  { font-size: 1.05rem; color: var(--ink-2); max-width: 56ch; }

/* ---------- 4. Layout ------------------------------------------- */
.container {
  box-sizing: border-box;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 480px) {
  .container {
    padding-left: max(24px, env(safe-area-inset-left, 0px));
    padding-right: max(24px, env(safe-area-inset-right, 0px));
  }
}
.section { padding: var(--sp-xl) 0; }
.section--alt { background: var(--surface-alt); }
.section--ink { background: #161214; color: #f6efea; }
.section--ink h1, .section--ink h2, .section--ink h3 { color: #fff; }
.section--ink p { color: rgba(255,255,255,.78); }

.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); }
@media (max-width: 900px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .grid--3.collapse-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .grid--3.collapse-2 { grid-template-columns: 1fr; }
}

/* Inline grid replacements — stack on narrow screens */
.layout-mini-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.layout-mini-2--gap-16 { gap: 16px; }
@media (max-width: 540px) {
  .layout-mini-2 { grid-template-columns: 1fr; }
}

.layout-contact-split {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 32px;
}
.layout-donate-split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
}
@media (max-width: 900px) {
  .layout-contact-split,
  .layout-donate-split { grid-template-columns: 1fr; }
}

.layout-home-donate-banner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0;
  background: var(--brand-4);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
@media (max-width: 900px) {
  .layout-home-donate-banner { grid-template-columns: 1fr; }
}

/* ---------- 5. Buttons ------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--brand-1); color: #fff; box-shadow: var(--shadow-brand); }
.btn--primary:hover { background: #c8131b; }
.btn--success { background: var(--brand-2); color: #fff; box-shadow: 0 14px 30px rgba(57,181,74,0.25); }
.btn--success:hover { background: #2a9a3b; }
.btn--info { background: var(--brand-4); color: #fff; }
.btn--info:hover { background: #0a5e94; }
.btn--ghost { background: transparent; color: var(--ink); border-color: rgba(0,0,0,.1); }
.btn--ghost:hover { border-color: var(--brand-1); color: var(--brand-1); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--outline-light:hover { background: rgba(255,255,255,.12); }
.btn--lg { padding: 18px 32px; font-size: 15px; border-radius: 16px; }
.btn--block { display: flex; width: 100%; justify-content: center; }
.btn .material-symbols-outlined { font-size: 18px; }

/* ---------- 6. Header / Topbar ---------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--header-h);
  height: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: 1 1 auto;
  min-width: 0;
}
.brand img { height: 74px; width: auto; object-fit: contain; flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { color: var(--brand-1); font-weight: 900; letter-spacing: -.02em; font-size: 1.1rem; }
.brand__tag  { color: var(--ink-3); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 4px; }

.main-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(2px, 0.4vw, 6px);
}
.main-nav a {
  position: relative;
  padding: 10px clamp(8px, 1.1vw, 12px);
  font-weight: 600;
  /* Tighter type + padding so WHAT WE DO / WHO WE ARE stay one line ≥1025px */
  font-size: clamp(11px, 0.65rem + 0.45vw, 13px);
  color: var(--ink-2);
  border-radius: 10px;
  transition: color .2s ease, background .2s ease;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--brand-1); background: var(--brand-1-soft); }
.main-nav a.is-active {
  color: var(--brand-1);
  background: var(--brand-1-soft);
}
.main-nav a.is-active::after {
  content: "";
  position: absolute;
  left: clamp(8px, 1.1vw, 14px); right: clamp(8px, 1.1vw, 14px);
  bottom: 4px;
  height: 2px;
  background: var(--brand-1);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(6px, 2vw, 10px);
  flex-shrink: 0;
}
/* Header donate: tighten on small widths; icon-only visually under ~340px — label stays sr-accessible */
.header-donate-btn .header-donate-label {
  white-space: nowrap;
}
.menu-toggle {
  display: none;
  flex-shrink: 0;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  border-radius: 12px;
  background: var(--brand-1-soft);
  color: var(--brand-1);
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
@media (max-width: 1024px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-actions .btn:not(.btn--primary) { display: none; }
  .brand img {
    height: clamp(42px, 11vw, 52px);
    max-width: min(100px, 32vw);
  }
  .brand__name { font-size: clamp(0.88rem, 3.5vw, 1rem); }
  .site-header__inner { gap: 8px; }
  .site-header .header-donate-btn {
    padding-left: clamp(12px, 3vw, 18px);
    padding-right: clamp(12px, 3vw, 18px);
    gap: 6px;
  }
}
@media (max-width: 420px) {
  .brand__tag { display: none; }
}
@media (max-width: 380px) {
  .brand__text { display: none; }
  .header-donate-label { display: none; }
  .header-donate-btn {
    padding-left: 12px;
    padding-right: 12px;
    min-width: 44px;
    justify-content: center;
  }
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: rgba(15,15,18,0.45);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.mobile-drawer.is-open { opacity: 1; pointer-events: auto; }
.mobile-drawer__panel {
  background: var(--white);
  margin-left: max(12px, env(safe-area-inset-left, 0px));
  margin-right: max(12px, env(safe-area-inset-right, 0px));
  margin-bottom: max(16px, env(safe-area-inset-bottom, 0px));
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-lg);
  transform: translateY(-12px);
  transition: transform .25s ease;
  max-height: calc(100vh - var(--header-h) - max(16px, env(safe-area-inset-bottom, 0px)) - 12px);
  overflow-y: auto;
}
.mobile-drawer.is-open .mobile-drawer__panel { transform: translateY(0); }
.mobile-drawer a {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 600;
  color: var(--ink-2);
}
.mobile-drawer a:hover, .mobile-drawer a.is-active {
  color: var(--brand-1); background: var(--brand-1-soft);
}
.mobile-drawer .btn { margin-top: 12px; }

/* ---------- 7. Image Placeholders ------------------------------- */
/* Used everywhere images will be supplied later. */
.ph {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(255,255,255,.35), transparent 55%),
    linear-gradient(135deg, var(--brand-1) 0%, var(--brand-3) 100%);
  color: #fff;
  text-align: center;
  isolation: isolate;
}
.ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 20%, rgba(255,255,255,.18) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 50%, rgba(255,255,255,.10) 0 3px, transparent 4px),
    radial-gradient(circle at 30% 80%, rgba(255,255,255,.12) 0 2px, transparent 3px);
  background-size: 80px 80px, 60px 60px, 90px 90px;
  pointer-events: none;
  z-index: -1;
}
.ph__icon {
  font-family: 'Material Symbols Outlined', sans-serif;
  font-size: 48px;
  font-variation-settings: 'FILL' 1;
  opacity: .9;
  margin-bottom: 8px;
}
.ph__label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: .92;
}
.ph--green  { background: linear-gradient(135deg, var(--brand-2), #1e8a32); }
.ph--blue   { background: linear-gradient(135deg, var(--brand-4), #064d80); }
.ph--orange { background: linear-gradient(135deg, var(--brand-3), #d8861f); }
.ph--yellow { background: linear-gradient(135deg, var(--brand-5), #d18c1a); }
.ph--mix    { background: linear-gradient(135deg, var(--brand-4), var(--brand-2) 60%, var(--brand-5)); }

.ph--ratio-16x9 { aspect-ratio: 16/9; }
.ph--ratio-4x3  { aspect-ratio: 4/3; }
.ph--ratio-1x1  { aspect-ratio: 1/1; }
.ph--ratio-3x4  { aspect-ratio: 3/4; }
.ph--ratio-3x2  { aspect-ratio: 3/2; }

/* Real photo inside .ph — full-bleed, responsive, keeps parent aspect-ratio */
figure.ph {
  margin: 0;
}
.ph--photo {
  padding: 0;
  display: block;
}
.ph--photo::after {
  display: none;
}
.ph--photo > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.ph--photo .ph__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 12px 12px;
  margin: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.35) 55%, transparent 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

/* Avatar placeholder (round) */
.ph-avatar {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-4), var(--brand-2));
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: .04em;
}

/* ---------- 8. Cards -------------------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  background: var(--brand-1-soft); color: var(--brand-1);
}
.card__icon.green  { background: var(--brand-2-soft); color: var(--brand-2); }
.card__icon.blue   { background: var(--brand-4-soft); color: var(--brand-4); }
.card__icon.orange { background: var(--brand-3-soft); color: var(--brand-3); }
.card__icon.yellow { background: var(--brand-5-soft); color: #b87a14; }
.card__icon .material-symbols-outlined { font-size: 26px; font-variation-settings: 'FILL' 1; }

.card--accent { border-left: 4px solid var(--brand-1); }
.card--accent.green  { border-left-color: var(--brand-2); }
.card--accent.blue   { border-left-color: var(--brand-4); }
.card--accent.orange { border-left-color: var(--brand-3); }

/* ---------- 9. Footer ------------------------------------------- */
.site-footer {
  background: #11161e;
  color: #cfd6e1;
  padding: 64px 0 28px;
  margin-top: 0;
}
.site-footer h4 {
  color: #fff;
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.site-footer a { color: #cfd6e1; font-size: 14px; display: inline-block; padding: 4px 0; }
.site-footer a:hover { color: var(--brand-3); }
.site-footer .brand__name { color: #fff; }
.site-footer .brand__tag { color: rgba(255,255,255,.65); }
.site-footer .footer-grid { display: grid; gap: 32px; grid-template-columns: 2fr 1fr 1fr 1.4fr; }
@media (max-width: 900px) {
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-footer .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .site-footer .footer-grid { grid-template-columns: 1fr; }
}
.footer-socials { display: flex; gap: 10px; margin-top: 14px; }
.footer-socials a {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s;
}
.footer-socials a:hover { background: var(--brand-1); color: #fff; }
.newsletter { display: flex; gap: 8px; margin-top: 8px; }
.newsletter input {
  flex: 1;
  padding: 12px 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  color: #fff;
  outline: none;
}
.newsletter input::placeholder { color: rgba(255,255,255,.45); }
.newsletter input:focus { border-color: var(--brand-3); }

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: rgba(255,255,255,.55);
  font-size: 13px;
}

/* ---------- 10. Forms ------------------------------------------- */
.form-grid { display: grid; gap: 18px; }
.form-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 720px) { .form-grid.cols-2 { grid-template-columns: 1fr; } }
.form-field label {
  display: block; font-weight: 700; font-size: 13px; margin-bottom: 6px; color: var(--ink);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--brand-1);
  box-shadow: 0 0 0 4px var(--brand-1-soft);
}
.form-field textarea { resize: vertical; min-height: 140px; }

/* ---------- 11. Heart squircle decorative shape ----------------- */
.heart-squircle {
  border-radius: 40% 60% 60% 40% / 60% 40% 60% 40%;
}

/* ---------- 12. Hero -------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(60px, 9vw, 120px) 0;
  background:
    radial-gradient(700px 500px at -10% 20%, rgba(237,28,36,0.08), transparent 60%),
    radial-gradient(700px 500px at 110% 80%, rgba(14,118,188,0.10), transparent 60%),
    var(--surface);
}
.hero__grid {
  display: grid;
  gap: 48px;
  align-items: center;
  grid-template-columns: 1.05fr 1fr;
}
@media (max-width: 960px) { .hero__grid { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.hero p.lead { font-size: 1.15rem; max-width: 56ch; color: var(--ink-2); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero__art {
  position: relative;
  max-width: 100%;
}
.hero__figure {
  margin: 0;
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 5 / 6;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__art .badge-float {
  position: absolute;
  bottom: -18px;
  left: clamp(12px, 4vw, 22px);
  right: auto;
  max-width: calc(100% - 24px);
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 14px;
  box-sizing: border-box;
}
.hero__art .badge-float .num { font-size: 1.6rem; font-weight: 800; line-height: 1; color: var(--brand-2); }
.hero__art .badge-float .lbl { font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
@media (max-width: 960px) {
  .hero__art .badge-float {
    left: clamp(12px, 4vw, 20px);
    bottom: -16px;
  }
}
@media (max-width: 480px) {
  .hero__art .badge-float {
    padding: 14px 16px;
    gap: 10px;
  }
  .hero__art .badge-float .num { font-size: 1.35rem; }
}

/* ---------- 13. Stat cluster (impact counter) ------------------- */
.stat-cluster {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-md);
}
.stat-cluster.stat-cluster--3 {
  grid-template-columns: repeat(3, 1fr);
}
.stat-cluster .stat {
  padding: 12px 24px;
  position: relative;
}
.stat-cluster .stat + .stat::before {
  content: "";
  position: absolute;
  left: 0; top: 12px; bottom: 12px;
  width: 1px;
  background: var(--line);
}
.stat .num {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -.01em;
}
.stat .lbl { font-size: 11px; font-weight: 800; letter-spacing: 0.18em; color: var(--ink-3); text-transform: uppercase; }
.stat .ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 12px;
  margin-bottom: 10px;
  background: var(--brand-1-soft); color: var(--brand-1);
}
.stat.green .ico  { background: var(--brand-2-soft); color: var(--brand-2); }
.stat.blue .ico   { background: var(--brand-4-soft); color: var(--brand-4); }
.stat.orange .ico { background: var(--brand-3-soft); color: var(--brand-3); }
.stat.green .num  { color: var(--brand-2); }
.stat.blue .num   { color: var(--brand-4); }
.stat.orange .num { color: var(--brand-3); }
@media (max-width: 900px) {
  .stat-cluster { grid-template-columns: repeat(2, 1fr); padding: 20px; }
  .stat-cluster .stat + .stat::before { display: none; }
}
@media (max-width: 540px) {
  .stat-cluster { grid-template-columns: 1fr; }
}

/* ---------- 14. Page header (sub pages) ------------------------- */
.page-hero {
  position: relative;
  padding: clamp(64px, 8vw, 110px) 0 clamp(48px, 6vw, 90px);
  background:
    radial-gradient(800px 400px at 10% 0%, rgba(252,176,64,0.10), transparent 60%),
    radial-gradient(700px 400px at 100% 100%, rgba(14,118,188,0.10), transparent 60%),
    var(--surface);
  overflow: hidden;
}
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); }
.page-hero p { font-size: 1.05rem; max-width: 60ch; color: var(--ink-2); }

/* ---------- 15. CTA banner -------------------------------------- */
.cta-banner {
  position: relative;
  background: linear-gradient(135deg, var(--brand-1), #b80f17 60%, var(--brand-3));
  color: #fff;
  border-radius: var(--radius-xl);
  padding: clamp(32px, 5vw, 56px);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow-brand);
}
.cta-banner::before {
  content: "";
  position: absolute; top: -120px; right: -120px;
  width: 320px; height: 320px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
}
.cta-banner h2 { color: #fff; }
.cta-banner p  { color: rgba(255,255,255,.9); margin-bottom: 0; }
.cta-banner .btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 800px) {
  .cta-banner { grid-template-columns: 1fr; }
  .cta-banner .btns { justify-content: flex-start; }
}

/* ---------- 16. Donate widget ----------------------------------- */
.donate-widget {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-md);
}
.donate-widget h3 { margin-bottom: 18px; }
.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px; }
@media (max-width: 540px) { .amounts { grid-template-columns: repeat(2, 1fr); } }
.amount-btn {
  padding: 14px 8px;
  text-align: center;
  border: 2px solid var(--line);
  border-radius: 12px;
  font-weight: 700;
  color: var(--ink-2);
  transition: all .15s ease;
  background: var(--white);
}
.amount-btn:hover { border-color: var(--brand-1); color: var(--brand-1); }
.amount-btn.is-active { border-color: var(--brand-1); background: var(--brand-1-soft); color: var(--brand-1); }

.frequency { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.freq-btn {
  padding: 12px;
  border: 2px solid var(--line);
  border-radius: 12px;
  font-weight: 700;
  color: var(--ink-2);
  background: var(--white);
}
.freq-btn.is-active { border-color: var(--brand-2); background: var(--brand-2-soft); color: var(--brand-2); }

.payment-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.pay-card {
  display: flex; align-items: center; gap: 10px;
  padding: 12px;
  border: 2px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.pay-card.is-active { border-color: var(--brand-3); background: var(--brand-3-soft); }
.pay-card .pay-logo { width: 44px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 900; font-size: 11px; font-style: italic; }
.pay-card .pay-name { font-weight: 700; font-size: 13px; }
.pay-card .pay-sub  { font-size: 11px; color: var(--ink-3); }
.pay-mtn   { background: #ffcc00; color: #1f1715; }
.pay-airtel{ background: #ed1c24; }

/* ---------- 17. Programs / Features ----------------------------- */
.feature-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-card .pill {
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--brand-2-soft);
  color: var(--brand-2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-top: auto;
}

/* ---------- 18. Process Steps ----------------------------------- */
.process-grid { position: relative; }
.process-grid::before {
  content: "";
  position: absolute;
  left: 12%; right: 12%;
  top: 48px;
  border-top: 2px dashed rgba(0,0,0,.12);
  z-index: 0;
}
@media (max-width: 900px) { .process-grid::before { display: none; } }
.step {
  position: relative;
  text-align: center;
  z-index: 1;
}
.step__icon {
  width: 96px; height: 96px;
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  border-radius: 40% 60% 60% 40% / 60% 40% 60% 40%;
  background: var(--brand-1);
  box-shadow: 0 14px 30px rgba(237,28,36,.25);
}
.step.green .step__icon { background: var(--brand-2); box-shadow: 0 14px 30px rgba(57,181,74,.25); }
.step.blue  .step__icon { background: var(--brand-4); box-shadow: 0 14px 30px rgba(14,118,188,.25); }
.step.orange .step__icon { background: var(--brand-3); box-shadow: 0 14px 30px rgba(252,176,64,.30); }
.step__icon .material-symbols-outlined { font-size: 38px; }

/* ---------- 19. Gallery ----------------------------------------- */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 32px;
}
.filter-btn {
  padding: 10px 18px;
  border-radius: var(--radius-full);
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-2);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .03em;
}
.filter-btn:hover { border-color: var(--brand-1); color: var(--brand-1); }
.filter-btn.is-active { background: var(--brand-1); color: #fff; border-color: var(--brand-1); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: auto;
  gap: clamp(12px, 2vw, 18px);
  align-items: stretch;
}
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

.gallery-item {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 160px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-alt);
  transition: transform .25s ease;
  min-width: 0;
  display: block;
}
.gallery-item:hover { transform: scale(1.01); }
.gallery-item .ph { width: 100%; height: 100%; border-radius: 0; }
.gallery-item__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--line);
}
.gallery-item__media img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.gallery-item__loc {
  opacity: .7;
  font-weight: 400;
  font-size: 12px;
}
.gallery-item.span-col-2 { grid-column: span 2; }
.gallery-item.span-row-2 {
  grid-row: span 2;
  aspect-ratio: auto;
  min-height: 320px;
}
@media (max-width: 540px) {
  .gallery-item.span-col-2,
  .gallery-item.span-row-2 {
    grid-column: span 1;
    grid-row: span 1;
    aspect-ratio: 4 / 3;
    min-height: 160px;
  }
}
.gallery-item .caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 18px;
  background: linear-gradient(to top, rgba(0,0,0,.75), transparent);
  color: #fff;
}
.gallery-item .caption .tag {
  font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  background: rgba(255,255,255,.18);
  padding: 4px 8px; border-radius: 8px; display: inline-block;
  margin-bottom: 6px;
}
.gallery-item .caption h4 { color: #fff; margin: 0; font-size: 15px; }

/* ---------- 20. Team ------------------------------------------- */
.team-grid { display: grid; gap: 24px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .team-grid { grid-template-columns: 1fr; } }
.team-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  text-align: center;
  transition: transform .2s, box-shadow .2s;
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.team-card .avatar {
  width: clamp(88px, min(26vw, 32vmin), 128px);
  height: clamp(88px, min(26vw, 32vmin), 128px);
  max-width: 100%;
  margin: 0 auto 14px;
  box-sizing: border-box;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  flex-shrink: 0;
}
.team-card .avatar.avatar--photo {
  padding: 0;
  overflow: hidden;
  background: var(--line);
  display: block;
  border-radius: 50%;
}
.team-card .avatar.avatar--photo img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  aspect-ratio: 1 / 1;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
  object-position: center center;
  display: block;
  border-radius: 50%;
  box-sizing: border-box;
}
.team-card h4 { margin: 0; font-size: 1rem; }
.team-card .role {
  margin-top: 4px;
  font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-1);
}
.team-card.green .role  { color: var(--brand-2); }
.team-card.blue  .role  { color: var(--brand-4); }
.team-card.orange .role { color: var(--brand-3); }

/* ---------- 21. Quote / Voice cards ---------------------------- */
.voice-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.voice-card .person { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.voice-card .person .avatar { width: 48px; height: 48px; }
.voice-card .person h5 { margin: 0; font-size: 14px; }
.voice-card .person small { font-size: 11px; color: var(--brand-2); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.voice-card blockquote { margin: 0; color: var(--ink-2); font-style: italic; }

/* ---------- 22. Contact specifics ------------------------------ */
.contact-info { display: grid; gap: 18px; }
.contact-row {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
}
.contact-row .ico {
  width: 44px; height: 44px;
  flex: 0 0 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-1-soft); color: var(--brand-1);
}
.contact-row.blue   .ico { background: var(--brand-4-soft); color: var(--brand-4); }
.contact-row.green  .ico { background: var(--brand-2-soft); color: var(--brand-2); }
.contact-row.orange .ico { background: var(--brand-3-soft); color: var(--brand-3); }
.contact-row h4 { margin: 0 0 4px; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.contact-row p  { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.5; }

.map-card {
  position: relative;
  height: 380px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 30%, rgba(57,181,74,.18), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(14,118,188,.20), transparent 50%),
    linear-gradient(135deg, #e8f0fb, #f1faf2);
}
.map-card .pin {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--brand-1);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  border: 4px solid #fff;
  box-shadow: var(--shadow-md);
}
.map-card .pin::before {
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  background: rgba(237,28,36,.22);
  animation: pulse 2.4s ease-out infinite;
  z-index: -1;
}
@keyframes pulse {
  0%   { transform: scale(.7); opacity: .8; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ---------- 23. Misc helpers ----------------------------------- */
.center { text-align: center; }
.muted  { color: var(--ink-3); }
.divider { height: 1px; background: var(--line); margin: 32px 0; }
.tag-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: var(--radius-full);
  font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  background: var(--brand-1-soft); color: var(--brand-1);
}
.tag-pill.green  { background: var(--brand-2-soft); color: var(--brand-2); }
.tag-pill.blue   { background: var(--brand-4-soft); color: var(--brand-4); }
.tag-pill.orange { background: var(--brand-3-soft); color: var(--brand-3); }

.checklist { margin: 0; padding: 0; list-style: none; }
.checklist li {
  position: relative;
  padding: 8px 0 8px 32px;
  color: var(--ink-2);
}
.checklist li::before {
  content: "check_circle";
  font-family: 'Material Symbols Outlined';
  position: absolute; left: 0; top: 8px;
  color: var(--brand-2);
  font-variation-settings: 'FILL' 1;
  font-size: 22px;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mobile-drawer,
  .mobile-drawer__panel,
  .feature-card,
  .card,
  .btn,
  .stat,
  .gallery-item,
  .team-card,
  .voice-card,
  .filter-btn,
  .amount-btn,
  .freq-btn,
  .pay-card {
    transition: none !important;
  }
  .feature-card:hover,
  .card:hover,
  .btn:active,
  .stat:hover {
    transform: none;
  }
  .map-card .pin::before {
    animation: none;
  }
}
