/* =====================================================================
   Ninson's Hope for Africa — main.css
   Single stylesheet. Design tokens as CSS custom properties.
   Colours/type sampled from the approved mockups in /Inspiration.
   ===================================================================== */

/* ---- Tokens ---------------------------------------------------------- */
:root {
  /* Colour */
  --gold:      #B07E1A;   /* warm goldenrod (was #9E7417, an olive/mustard brown that read dim) */
  --gold-dark: #855F12;   /* deep gold for body-text links + button hover (AA on cream) */
  --gold-soft: #F3E9D1;   /* pale gold for icon badges */
  --gold-btn:  #96690F;   /* deeper gold ONLY for solid button fills — white text passes WCAG AA (~4.7:1) */
  --cream:     #FCFCFA;   /* lighter, near-neutral off-white (was #FAF9F5 — read slightly brown) */
  --beige:     #F4F1EA;   /* de-tanned alternate band (was #F5EFE3) */
  --white:     #FFFFFF;
  --ink:       #1E1D19;
  --charcoal:  #1C1B16;
  --text:      #4A463D;
  --muted:     #706A58;   /* darkened for WCAG AA on cream/white (was #8A8375, 3.57:1) */
  --line:      #ECE7DC;

  /* Type */
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Inter", "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Scale */
  --wrap: 1320px;
  --gap: 24px;
  --radius: 14px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow: 0 18px 45px rgba(30, 29, 25, 0.08);
  --shadow-sm: 0 8px 24px rgba(30, 29, 25, 0.06);
}

/* ---- Reset / base ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-dark); text-decoration: none; }
a:hover { color: var(--gold-dark); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); font-weight: 700; line-height: 1.1; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---- Layout primitives ---------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.section { padding: 84px 0; }
.section--cream { background: var(--cream); }
.section--beige { background: var(--beige); }
.section--white { background: var(--white); }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin: 0 0 14px;
}
.section-head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }
.section-head p { color: var(--text); }

/* Skip link for a11y */
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; color: #fff; }

:where(a, button, input, [tabindex]):focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---- Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-weight: 600; font-size: 15px;
  padding: 14px 26px; border-radius: var(--radius-pill);
  border: 1.5px solid transparent; cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--gold-btn); color: #fff; }
.btn--primary:hover { background: var(--gold-dark); color: #fff; }
.btn--outline { background: transparent; color: var(--ink); border-color: #d9d2c4; }
.btn--outline:hover { border-color: var(--gold); color: var(--gold-dark); }
.btn .ic { width: 18px; height: 18px; }

/* ---- Header / nav ---------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(252, 252, 250, .92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { height: 46px; width: auto; display: block; }
.foot-brand .brand__logo { height: 52px; margin-bottom: 6px; }
@media (max-width: 640px) { .brand__logo { height: 34px; } }

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { color: var(--ink); font-weight: 500; font-size: 15px; position: relative; padding: 6px 0; }
.nav__links a:hover { color: var(--gold-dark); }
.nav__links a[aria-current="page"] { color: var(--gold-dark); }
.nav__links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--gold);
}
.nav__actions { display: flex; align-items: center; gap: 14px; }

.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
  color: var(--ink);
}
.nav__toggle svg { width: 26px; height: 26px; }

/* ---- Icon system ----------------------------------------------------- */
/* Every inline UI icon shares one modern, Lucide-style treatment: a single
 * stroke weight with rounded caps + joins. This alone unifies the old mix of
 * 1.6–2.0 weights and sharp mitred corners into one clean, contemporary set.
 * Scoped to svg[stroke], so the progress ring and the Africa hero mask (both
 * fill-only, no stroke attribute) are untouched. Filled glyphs (heart, social
 * marks) carry no stroke and inherit nothing here. */
svg[stroke] {
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- Hero ------------------------------------------------------------ */
.hero { position: relative; overflow: hidden; }
.hero__inner {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px;
  padding-block: 70px 130px;   /* side gutter comes from .wrap's padding-inline */
}
.hero__title { font-size: clamp(38px, 5.2vw, 62px); line-height: 1.05; letter-spacing: -0.01em; margin-bottom: 24px; }
.hero__title .dot { color: var(--gold); }
.hero__line { display: block; white-space: nowrap; }   /* each line stays intact at every width */
.hero__lead { font-size: 18px; max-width: 34ch; margin-bottom: 28px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero__trust { display: flex; align-items: center; gap: 14px; }
.hero__trust p { margin: 0; font-size: 14px; color: var(--text); }
.hero__trust strong { color: var(--gold-dark); font-weight: 600; }

/* Africa-masked hero image + dotted map backdrop */
.hero__media { position: relative; min-height: 440px; }
/* Dotted world map spans the whole hero, behind both the headline and the photo */
.hero__inner { position: relative; z-index: 1; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url("../img/world-dots.svg") no-repeat center center / 92% auto;
  opacity: .26;
  filter: blur(0.8px);
  -webkit-mask-image: radial-gradient(100% 85% at 50% 45%, #000 55%, transparent 100%);
          mask-image: radial-gradient(100% 85% at 50% 45%, #000 55%, transparent 100%);
}
.hero__africa { position: relative; z-index: 1; width: 100%; height: auto; display: block; }

/* Hero slideshow — cross-fading slides stacked inside the Africa clip */
.hero__slide { opacity: 0; transition: opacity .9s ease; }
.hero__slide.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero__slide { transition: none; } }

/* Slideshow indicator dots */
.slides-nav {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 10px;
  display: flex; gap: 9px; justify-content: center; align-items: center;
  list-style: none; margin: 0; padding: 0;
}
.slides-dot {
  width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .75); box-shadow: 0 1px 3px rgba(0, 0, 0, .4);
  transition: background .2s ease, width .2s ease;
}
.slides-dot:hover { background: #fff; }
.slides-dot.is-active { background: var(--gold); width: 22px; }

/* ---- Stats bar ------------------------------------------------------- */
.stats {
  position: relative; z-index: 5; margin-top: -70px;
}
.stats__card {
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  padding: 30px 20px;
}
.stat { display: flex; align-items: center; gap: 14px; justify-content: center; }
.stat__icon {
  width: 54px; height: 54px; flex: none; border-radius: 50%; border: 1.5px solid var(--gold-soft);
  display: grid; place-items: center; color: var(--gold); background: #fff;
}
.stat__icon svg { width: 26px; height: 26px; }
.stat__num { font-family: var(--serif); font-size: 28px; color: var(--ink); line-height: 1; }
.stat__label { font-size: 13px; color: var(--muted); }

/* ---- Split feature (What we do) ------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.split__title { font-size: clamp(26px, 3.4vw, 36px); }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; text-align: center; }
.pillar__icon {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--gold-soft); display: grid; place-items: center; color: var(--gold);
}
.pillar__icon svg { width: 30px; height: 30px; }
.pillar h3 { font-size: 17px; margin-bottom: 8px; }
.pillar p { font-size: 14px; color: var(--text); margin: 0; }

/* 5-up values row (About core values) */
.pillars--5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1080px) { .pillars--5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .pillars--5 { grid-template-columns: 1fr 1fr; } }

/* Strategic pillars / focus areas (About) */
.focus-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.focus-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 20px; box-shadow: var(--shadow-sm); text-align: left; }
.focus-card__icon { width: 52px; height: 52px; border-radius: 50%; background: var(--gold-soft); display: grid; place-items: center; color: var(--gold); margin-bottom: 16px; }
.focus-card__icon svg { width: 27px; height: 27px; }
.focus-card h3 { font-size: 16px; margin-bottom: 14px; line-height: 1.3; }
.focus-card ul { display: flex; flex-direction: column; gap: 8px; }
.focus-card li { position: relative; padding-left: 16px; font-size: 13.5px; color: var(--text); line-height: 1.45; }
.focus-card li::before { content: ""; position: absolute; left: 0; top: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
@media (max-width: 1180px) { .focus-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .focus-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px)  { .focus-grid { grid-template-columns: 1fr; } }

/* Two-column objectives checklist (About) */
.checklist--2col { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 44px; }
@media (max-width: 680px) { .checklist--2col { grid-template-columns: 1fr; } }

/* ---- Program cards --------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line); position: relative;
  display: flex; flex-direction: column;
}
.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__badge {
  position: absolute; left: 16px; bottom: -22px; width: 48px; height: 48px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow-sm); display: grid; place-items: center; color: var(--gold);
}
.card__badge svg { width: 24px; height: 24px; }
.card__body { padding: 34px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { font-size: 20px; margin-bottom: 10px; }
.card__body p { font-size: 14.5px; color: var(--text); }
.card__link {
  margin-top: auto; font-weight: 600; color: var(--gold-dark); display: inline-flex; align-items: center; gap: 6px;
}
.card__link:hover { gap: 10px; color: var(--gold-dark); }
.center { text-align: center; }
.mt-40 { margin-top: 40px; }

/* ---- Get involved band ---------------------------------------------- */
/* Full-width band (not an island): content centred within .wrap, photo rounded on the band */
.involve {
  display: grid; grid-template-columns: 0.9fr 1.4fr; gap: 44px; align-items: center;
}
.involve__media { align-self: stretch; }
.involve__media img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; border-radius: var(--radius-lg); }
.involve__body { padding: 0; }
.involve__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 22px 0 26px; }
.involve__col svg { width: 30px; height: 30px; color: var(--gold); margin-bottom: 10px; }
.involve__col h3 { font-size: 16px; margin-bottom: 6px; }
.involve__col p { font-size: 13.5px; margin: 0; }

/* ---- Footer ---------------------------------------------------------- */
.site-footer { background: var(--charcoal); color: #cfc9bd; }
.newsletter {
  display: grid; grid-template-columns: 1fr auto auto; gap: 30px; align-items: center;
  padding: 46px 0; border-bottom: 1px solid rgba(255,255,255,.08);
}
.newsletter h2 { color: #fff; font-size: 26px; margin-bottom: 6px; }
.newsletter p { margin: 0; font-size: 14px; color: #a9a293; max-width: 40ch; }
.newsletter__form { display: flex; gap: 10px; }
.newsletter__form input {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15); color: #fff;
  padding: 13px 16px; border-radius: var(--radius-pill); min-width: 240px; font-size: 14px;
}
.newsletter__form input::placeholder { color: #8f887a; }
.socials { display: flex; gap: 12px; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18);
  display: grid; place-items: center; color: #cfc9bd;
}
.socials a:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.socials svg { width: 18px; height: 18px; }

.foot-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.3fr; gap: 30px; padding: 54px 0;
}
.foot-brand p { font-size: 13.5px; color: #a9a293; max-width: 30ch; }
.foot-col h4 { color: #fff; font-family: var(--sans); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.foot-col a { color: #cfc9bd; display: block; padding: 5px 0; font-size: 14px; }
.foot-col a:hover { color: #fff; }
.foot-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; padding: 5px 0; }
.foot-contact svg { width: 17px; height: 17px; color: var(--gold); flex: none; margin-top: 3px; }
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; font-size: 13px; color: #8f887a;
}

/* ---- Responsive ------------------------------------------------------ */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; padding-bottom: 90px; }
  .hero__media { order: -1; min-height: 0; max-width: 460px; margin-inline: auto; }
  .hero__africa { max-height: none; }
  .stats__card { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .pillars { gap: 22px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .involve { grid-template-columns: 1fr; }
  .involve__media img { min-height: 240px; }
  .involve__body { padding: 24px 0 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .newsletter { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .nav__links, .nav__actions .btn--outline { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav[data-open="true"] .nav__links {
    display: flex; position: absolute; left: 0; right: 0; top: 74px; flex-direction: column;
    align-items: stretch; text-align: left;      /* left-align items (was centred) */
    background: var(--cream); border-bottom: 1px solid var(--line); padding: 8px 24px 14px; gap: 0;
    box-shadow: var(--shadow);
  }
  .nav[data-open="true"] .nav__links a { padding: 15px 2px; border-bottom: 1px solid var(--line); }
  .nav[data-open="true"] .nav__links li:last-child a { border-bottom: 0; }
  .nav[data-open="true"] .nav__links a[aria-current="page"]::after { display: none; } /* divider is enough */
  .pillars { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: 1fr; }
  .involve__cols { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .newsletter__form { flex-direction: column; }
  .newsletter__form input { min-width: 0; width: 100%; }

  /* Hero: readable headline + world map kept but sensibly sized on phones */
  .hero__title { font-size: clamp(34px, 9vw, 40px); }
  .hero::before { background-size: 150% auto; background-position: center 40%; opacity: .22; }

  /* Header breathing room */
  .nav__actions { gap: 10px; }
  .nav__actions .btn--primary { padding: 11px 18px; font-size: 14px; }

  /* Stats bar: tighten so two columns fit comfortably on phones (no h-scroll) */
  .stats__card { padding: 24px 16px; gap: 20px 12px; }
  .stat { gap: 10px; min-width: 0; }
  .stat > div { min-width: 0; }
  .stat__icon { width: 46px; height: 46px; }
  .stat__icon svg { width: 22px; height: 22px; }
  .stat__num { font-size: 24px; }
}

/* Very small phones (≤360px): stack the stats into one column — guarantees no overflow */
@media (max-width: 360px) {
  .stats__card { grid-template-columns: 1fr; }
}

/* ---- Micro-interactions (hover) ------------------------------------- */
/* Program cards: lift, photo zoom, badge rise */
.card { transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__media img { transition: transform .55s ease; }
.card:hover .card__media img { transform: scale(1.06); }
.card__badge { transition: transform .25s ease, box-shadow .25s ease; }
.card:hover .card__badge { transform: translateY(-4px); box-shadow: var(--shadow); }

/* Pillar + get-involved icons nudge on hover of their card */
.pillar__icon, .involve__col svg { transition: transform .25s ease; }
.pillar:hover .pillar__icon { transform: translateY(-4px) scale(1.05); }

/* Sliding arrows */
.btn .ic, .card__link .ic { transition: transform .2s ease; }
.btn:hover .ic { transform: translateX(3px); }
.card__link:hover .ic { transform: translateX(4px); }

/* Social icons pop */
.socials a { transition: background .15s ease, border-color .15s ease, transform .15s ease; }
.socials a:hover { transform: translateY(-3px); }

/* Donate / Give heart-beat (only buttons carrying a heart) */
@keyframes heart-beat {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.22); }
  40% { transform: scale(0.9); }
  60% { transform: scale(1.14); }
  80% { transform: scale(0.98); }
}
.btn--heart:hover .ic { animation: heart-beat .7s ease; transform: none; }

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  .card, .card__media img, .card__badge, .pillar__icon, .involve__col svg,
  .btn .ic, .card__link .ic, .socials a { transition: none; }
  .card:hover, .card:hover .card__media img, .card:hover .card__badge,
  .pillar:hover .pillar__icon, .btn:hover .ic, .card__link:hover .ic,
  .socials a:hover { transform: none; }
  .btn--heart:hover .ic { animation: none; }
}

/* ============================================================
   PHASE 2 — shared page components
   ============================================================ */

/* ---- Page hero banner (About / Projects / Reports / Blog / Contact) -- */
.page-hero {
  position: relative; color: #fff; text-align: center;
  background: var(--charcoal); overflow: hidden;
}
.page-hero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
  opacity: .5;
}
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28,27,22,.55), rgba(28,27,22,.75)); z-index: 1; }
.page-hero__inner { position: relative; z-index: 2; padding-block: 96px 84px; }
.page-hero h1 { color: #fff; font-size: clamp(38px, 6vw, 64px); margin-bottom: 14px; }
.page-hero p { max-width: 46ch; margin: 0 auto; color: #ece7dc; font-size: 17px; }
.page-hero .eyebrow { color: var(--gold); filter: brightness(1.5); }

/* Detail hero: left-aligned with back link */
.page-hero--detail { text-align: left; }
.page-hero--detail .page-hero__inner { padding-block: 80px; max-width: 640px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); filter: brightness(1.4); font-weight: 600; margin-bottom: 18px; }
.back-link svg { width: 18px; height: 18px; }

/* ---- Generic prose / narrow content ---- */
.narrow { max-width: 760px; margin-inline: auto; }
.lead { font-size: 19px; color: var(--text); }
.stack > * + * { margin-top: 18px; }

/* ---- Card action row (projects page) ---- */
.card__actions { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; }
.card__donate { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--ink); }
.card__donate svg { width: 18px; height: 18px; color: var(--gold); }
.card__donate:hover { color: var(--gold-dark); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
/* Gallery thumbnails (project detail): reserve space + crop cleanly (no CLS, no distortion) */
.cards--4 > img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; height: auto; display: block; border-radius: var(--radius); }
@media (max-width: 1080px) { .cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .cards--4 { grid-template-columns: 1fr; } }

/* ---- Testimonial (Stories from the field) ---- */
.testimonial { background: var(--beige); border-radius: var(--radius-lg); padding: 44px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.testimonial__quote { font-family: var(--serif); font-size: clamp(20px, 2.4vw, 27px); line-height: 1.4; color: var(--ink); position: relative; }
.testimonial__quote::before { content: "\201C"; font-size: 70px; color: var(--gold); line-height: 0; position: absolute; left: -6px; top: 20px; opacity: .5; }
.testimonial__who { margin-top: 22px; }
.testimonial__who strong { display: block; color: var(--gold-dark); letter-spacing: .04em; text-transform: uppercase; font-size: 13px; }
.testimonial__who span { font-size: 14px; color: var(--muted); }
.testimonial__media { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 12px; }
.testimonial__media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.testimonial__media img:first-child { grid-row: span 2; }
.dots { display: flex; gap: 8px; margin-top: 20px; }
.dots span { width: 9px; height: 9px; border-radius: 50%; background: #d8cdb3; }
.dots span[aria-current] { background: var(--gold); }
@media (max-width: 760px) { .testimonial { grid-template-columns: 1fr; padding: 30px; } }

/* ---- Involve strip (compact, 3-up) ---- */
/* Full-width band (not an island): content stays centred within .wrap, no card styling */
.involve-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.involve-strip .involve__col { display: flex; flex-direction: column; }
.involve-strip .involve__col a { margin-top: 8px; font-weight: 600; color: var(--gold-dark); display: inline-flex; gap: 6px; }
@media (max-width: 760px) { .involve-strip { grid-template-columns: 1fr; gap: 26px; } }

/* ---- Funding panel (project detail) ---- */
.funding { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 34px; display: grid; grid-template-columns: 1.3fr 1px 1fr; gap: 34px; align-items: center; }
.funding__divider { background: var(--line); align-self: stretch; }
.funding .eyebrow { margin-bottom: 8px; }
.funding__amount { font-family: var(--serif); font-size: 42px; color: var(--ink); line-height: 1; }
.funding__goal { color: var(--muted); margin: 6px 0 18px; }
.funding__bar { height: 12px; border-radius: 999px; background: var(--beige); overflow: hidden; }
.funding__bar span { display: block; height: 100%; background: var(--gold); border-radius: 999px; }
.funding__pct { font-weight: 700; color: var(--ink); margin-top: 10px; }
.funding__supporters { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.funding__supporters p { margin: 0; font-size: 13.5px; color: var(--muted); }
.funding__supporters strong { color: var(--gold-dark); }
.ring { display: grid; place-items: center; }
.ring svg { transform: rotate(-90deg); }
.ring__track { fill: none; stroke: var(--beige); stroke-width: 12; }
.ring__value { fill: none; stroke: var(--gold); stroke-width: 12; stroke-linecap: round; }
.ring__label { position: absolute; text-align: center; }
.ring__label b { font-family: var(--serif); font-size: 30px; color: var(--ink); display: block; line-height: 1; }
.ring__label span { font-size: 13px; color: var(--muted); }
.ring-wrap { position: relative; display: grid; place-items: center; }
@media (max-width: 820px) { .funding { grid-template-columns: 1fr; } .funding__divider { display: none; } }

/* ---- Tabs ---- */
.tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); margin: 40px 0 30px; }
.tab { background: none; border: 0; padding: 12px 2px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; position: relative; }
.tab[aria-selected="true"] { color: var(--gold-dark); }
.tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--gold); }
.tab-panel[hidden] { display: none; }
/* Phones: tabs never overflow — tighten and allow horizontal scroll (placed after base rule so it wins) */
@media (max-width: 640px) {
  .tabs { gap: 16px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { white-space: nowrap; }
}

/* ---- Objectives checklist ---- */
.checklist li { display: flex; gap: 12px; padding: 9px 0; align-items: flex-start; }
.checklist svg { width: 22px; height: 22px; color: var(--gold); flex: none; margin-top: 1px; }

/* ---- Why this matters box ---- */
.matters { background: var(--beige); border-radius: var(--radius-lg); padding: 30px; display: flex; gap: 22px; align-items: flex-start; }
.matters__icon { width: 64px; height: 64px; flex: none; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--gold); box-shadow: var(--shadow-sm); }
.matters__icon svg { width: 30px; height: 30px; }
.matters h3 { margin-bottom: 8px; }
.matters p { margin: 0; }

/* ---- Support / preset amounts ---- */
.support { background: var(--beige); border-radius: var(--radius-lg); padding: 34px; }
.amounts { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 22px; }
.amount { padding: 12px 22px; border-radius: 999px; border: 1.5px solid #ddd3bf; background: #fff; font-weight: 600; color: var(--ink); }
.amount:hover, .amount[data-selected] { background: var(--gold-btn); color: #fff; border-color: var(--gold-btn); }

/* ---- Reports grid ---- */
.reports-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.report-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.report-card__thumb { aspect-ratio: 3/4; background: var(--beige); position: relative; overflow: hidden; }
.report-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.report-card__tag { position: absolute; top: 12px; left: 12px; background: var(--gold); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.report-card__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.report-card__body h3 { font-size: 18px; margin-bottom: 6px; }
.report-card__body p { font-size: 14px; color: var(--text); }
.report-card__dl { margin-top: auto; font-weight: 600; color: var(--gold-dark); display: inline-flex; gap: 7px; align-items: center; }
.report-card__dl svg { width: 17px; height: 17px; }
/* Single published report: one centred card, not stranded in a 3-col grid */
.reports-grid--single { grid-template-columns: 1fr; max-width: 380px; margin-inline: auto; }
@media (max-width: 900px) { .reports-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .reports-grid { grid-template-columns: 1fr; } }

/* (blog meta / tag / article-prose styles removed with the Blog page) */

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 46px; align-items: start; }
.form .field { margin-bottom: 18px; }
.form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 7px; color: var(--ink); }
.form input, .form textarea, .form select {
  width: 100%; padding: 13px 15px; border: 1.5px solid #e2dcce; border-radius: 12px;
  font: inherit; background: #fff; color: var(--ink);
}
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--gold); }
.hp { position: absolute; left: -9999px; }
.privacy-note { font-size: 13px; color: var(--muted); margin-top: 12px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.info-list svg { width: 22px; height: 22px; color: var(--gold); flex: none; margin-top: 2px; }
.info-list b { display: block; color: var(--ink); }
.info-list span, .info-list a { color: var(--text); }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; gap: 34px; } }

/* ---- Team ---- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.team-card { text-align: center; }
.team-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); margin-bottom: 14px; }
.team-card h3 { font-size: 17px; margin-bottom: 2px; }
.team-card span { color: var(--gold-dark); font-size: 14px; }
@media (max-width: 900px) { .team-grid { grid-template-columns: 1fr 1fr; } }

/* ---- Two-up cards (mission/vision) ---- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.duo .box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-sm); }
.duo .box svg { width: 34px; height: 34px; color: var(--gold); margin-bottom: 14px; }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } }

/* ============================================================
   Wave section dividers  +  beige-band texture  +  scroll-reveal
   ============================================================ */

/* Soft wave between colour bands. Each section paints a wave in ITS OWN
   background colour, rising into the section above — so transitions flow
   regardless of the neighbour's colour. */
.section { position: relative; }
.section::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0;
  height: 46px; transform: translateY(-99%);
  background-color: inherit;          /* takes the section's own band colour */
  z-index: 1; pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 48' preserveAspectRatio='none'%3E%3Cpath fill='%23000' d='M0,48 L1200,48 L1200,22 C980,48 760,2 560,22 C380,40 180,4 0,22 Z'/%3E%3C/svg%3E") no-repeat center bottom / 100% 100%;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 48' preserveAspectRatio='none'%3E%3Cpath fill='%23000' d='M0,48 L1200,48 L1200,22 C980,48 760,2 560,22 C380,40 180,4 0,22 Z'/%3E%3C/svg%3E") no-repeat center bottom / 100% 100%;
}
/* Don't draw a wave over the impact-stats card that overlaps the hero */
.stats + .section::before { display: none; }

/* Faint grain for warmth on the beige surfaces (layers over the base colour) */
.section--beige, .testimonial, .matters, .support {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

/* Scroll-reveal — the .reveal class is added by JS only to below-the-fold
   elements, so nothing is ever hidden on load or without JS. */
.reveal { opacity: 0; transform: translateY(18px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
}
