/* =====================================================================
   TEWDI Uganda — stylesheet
   Design language matched to the supplied reference:
     · floating white pill navigation
     · bold geometric sans headings
     · green chip eyebrows with a leaf badge
     · pill buttons with a circular arrow
     · white cards with inset rounded images + goal badges
     · dark-green rounded panel footer
     · full-bleed 3D slider as the homepage hero background
   Palette: accent #39A46B · dark #0C201A / #122922 · gray #F4F5F6

   SPACING: one scale, used everywhere. Sections alternate white / gray so
   consecutive bands never double their padding into a dead gap.
     --sp-1  4px    --sp-5  20px
     --sp-2  8px    --sp-6  28px
     --sp-3  12px   --sp-7  40px
     --sp-4  16px   --sp-8  64px
   ===================================================================== */

:root {
  /* palette
     --green is the ACCESSIBLE green: white on it = 4.55:1, and it as text on
     white = 4.55:1. --green-bright is the reference's original #39A46B and is
     only 3.14:1 on white, so it is reserved for DECORATIVE use (bars, borders,
     the leaf badge, and text sitting on dark backgrounds where it reads 5.3:1). */
  --green:        #2C8255;
  --green-dark:   #226B45;
  --green-bright: #39A46B;
  --green-soft:   #EAF6EF;
  --green-tint:   #D6EDE0;

  --ink:    #0F2A20;
  --ink-2:  #122922;
  --ink-3:  #0C201A;

  --white:  #FFFFFF;
  --gray:   #F4F5F6;
  --gray-2: #ECEEEF;
  --line:   #E4E8E7;

  --text:   #16241E;
  --muted:  #5C6A65;   /* 5.4:1 on white, 4.9:1 on --gray */
  --muted-2:#8A9792;

  /* spacing scale */
  --sp-1: 4px;   --sp-2: 8px;   --sp-3: 12px;  --sp-4: 16px;
  --sp-5: 20px;  --sp-6: 28px;  --sp-7: 40px;  --sp-8: 64px;

  /* section rhythm — tighter than the first pass */
  --section-y:   clamp(44px, 4.6vw, 68px);
  --section-head: clamp(24px, 2.8vw, 36px);

  /* type */
  --font-sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* layout */
  --container: 1180px;
  --gutter:    clamp(18px, 4vw, 32px);
  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius:    18px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* elevation */
  --sh-xs: 0 2px 8px rgba(15,42,32,.05);
  --sh-sm: 0 4px 18px rgba(15,42,32,.07);
  --sh-md: 0 10px 30px rgba(15,42,32,.10);
  --sh-lg: 0 26px 60px rgba(15,42,32,.16);

  /* motion */
  --ease: cubic-bezier(.22,.61,.36,1);
  --dur:  .45s;

  /* nav height, used to tuck the hero/page-header underneath */
  --nav-h: 76px;
  /* The nav bar is now flush to the top edge (full width), so there is no
     floating gap above it any more. Kept as a variable because the hero and
     sticky sidebar offsets are derived from it. */
  --nav-gap: 0px;
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--green-dark); text-decoration: none; }
a:hover { color: var(--green); }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: #fff; padding: 8px 14px; border-radius: 10px; z-index: 999; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ---------- typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.025em;
  color: var(--ink);
  margin: 0 0 .45em;
}
h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 2.9vw, 2.25rem); }
h3 { font-size: clamp(1.05rem, 1.5vw, 1.22rem); font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p  { margin: 0 0 .85em; }
p:last-child { margin-bottom: 0; }
.lede { font-size: 1.03rem; color: var(--muted); }
.muted { color: var(--muted); }

/* green chip eyebrow — white pill + green leaf badge */
.chip {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--white);
  border-radius: var(--radius-pill);
  padding: 5px 16px 5px 5px;
  font-family: var(--font-sans);
  font-size: .78rem; font-weight: 600; color: var(--ink);
  box-shadow: var(--sh-xs);
  margin-bottom: var(--sp-4);
}
.chip .leaf-badge {
  width: 26px; height: 26px; border-radius: 9px;
  background: var(--green-bright);
  display: inline-grid; place-items: center;
  flex: none;
}
.chip .leaf-badge svg { width: 15px; height: 15px; }
.on-dark .chip { background: rgba(255,255,255,.12); color: #fff; box-shadow: none; backdrop-filter: blur(8px); }

/* ---------- layout ---------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding: var(--section-y) 0; }
.section--gray { background: var(--gray); }
.section--dark { background: var(--ink); color: #fff; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto var(--section-head); }
.section-head h2 { margin-bottom: .3em; }
.section-head p { color: var(--muted); }
.section-head--left { text-align: left; margin-inline: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 13px 11px 20px;
  font-family: var(--font-sans);
  font-weight: 600; font-size: .92rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease),
              color var(--dur) var(--ease), border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
  white-space: nowrap;
}
.btn .arrow {
  width: 25px; height: 25px; border-radius: 50%;
  display: inline-grid; place-items: center; flex: none;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.btn .arrow svg { width: 12px; height: 12px; }

.btn-primary { background: var(--green); color: #fff; }
.btn-primary .arrow { background: rgba(255,255,255,.24); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--sh-md); }
.btn-primary:hover .arrow { transform: translateX(3px); }

.btn-outline { background: var(--white); color: var(--green); border-color: var(--green); }
.btn-outline .arrow { background: var(--green); color: #fff; }
.btn-outline:hover { background: var(--green); color: #fff; transform: translateY(-2px); }
.btn-outline:hover .arrow { background: rgba(255,255,255,.24); transform: translateX(3px); }

.btn-ghost { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-ghost .arrow { background: var(--gray); color: var(--ink); }
.btn-ghost:hover { border-color: var(--green); color: var(--green-dark); transform: translateY(-2px); }

/* on the hero the outline button must read on a photo */
.on-dark .btn-outline { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.55); backdrop-filter: blur(8px); }
.on-dark .btn-outline .arrow { background: rgba(255,255,255,.22); }
.on-dark .btn-outline:hover { background: #fff; color: var(--ink); border-color: #fff; }

.btn-plain { padding: 12px 22px; }
.btn-block { display: flex; width: 100%; justify-content: center; }
.btn-lg { padding: 13px 16px 13px 25px; font-size: .97rem; }
.btn-lg .arrow { width: 28px; height: 28px; }

/* ---------- full-width navigation bar ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  padding-inline: 0;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
/* The bar spans the viewport edge to edge; the contents stay on the same
   grid as .container so the logo still lines up with the page content. */
.nav-shell {
  max-width: var(--container); margin-inline: auto;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-3);
  padding: 10px var(--gutter);
  min-height: var(--nav-h);
  position: relative;
}
.brand { display: inline-flex; align-items: center; flex: none; }
.brand-logo { width: clamp(150px, 13vw, 190px); height: auto; }

.primary-nav > ul {
  display: flex; gap: 3px; align-items: center;
  list-style: none; margin: 0; padding: 0;
}
.primary-nav a {
  display: inline-block; padding: 9px 14px;
  font-size: .92rem; font-weight: 500; color: var(--text);
  border-radius: var(--radius-pill);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.primary-nav a:hover { background: var(--gray); color: var(--ink); }
.primary-nav a[aria-current="page"] { color: var(--green-dark); background: var(--green-soft); }
.primary-nav .donate-link {
  background: var(--green); color: #fff !important;
  padding: 10px 15px 10px 20px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 9px;
}
.primary-nav .donate-link::after {
  content: ""; width: 21px; height: 21px; border-radius: 50%;
  background: rgba(255,255,255,.24) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6'/%3E%3C/svg%3E") center/11px no-repeat;
}
.primary-nav .donate-link:hover { background: var(--green-dark); }

.nav-toggle {
  display: none; background: transparent; border: 0;
  width: 42px; height: 42px; padding: 10px; cursor: pointer; flex: none;
}
.nav-toggle .bar { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px;
                   transition: transform .25s ease, opacity .25s ease; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-shell { border-radius: 0; padding: 10px var(--gutter); }
  .brand-logo { width: clamp(132px, 34vw, 168px); }
  .primary-nav {
    position: absolute; left: 0; right: 0; top: calc(100% + 10px);
    background: #fff; border-radius: 20px;
    box-shadow: var(--sh-lg);
    padding: var(--sp-3);
    opacity: 0; transform: translateY(-10px); pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  .primary-nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .primary-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .primary-nav a { padding: 12px 15px; }
  .primary-nav .donate-link { justify-content: center; margin-top: 5px; }
}

/* ---------- HERO — full-bleed 3D slider background ---------- */
.hero {
  position: relative; isolation: isolate;
  color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: min(86vh, 700px);
  padding: calc(var(--nav-h) + var(--nav-gap) + clamp(48px, 7vw, 88px)) 0 clamp(28px, 3.4vw, 44px);
  margin-top: calc(-1 * (var(--nav-h) + var(--nav-gap)));
  overflow: hidden;
  background: var(--ink-3);
}
/* `.hero` is a flex column, and `margin-inline: auto` on a flex item cancels
   `align-items: stretch` — the container would shrink to its content width and
   centre itself, pushing the copy ~200px right of the logo. Force full width
   so the container lands on the same grid as the nav. */
.hero > .container { width: 100%; }

/* slider layers */
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  perspective: 1700px; perspective-origin: 50% 50%;
}
.hero-bg .track { position: absolute; inset: 0; transform-style: preserve-3d; }
.hero-slide {
  position: absolute; inset: 0; margin: 0;
  transition: transform 1.15s var(--ease), opacity 1.15s var(--ease);
  will-change: transform, opacity;
  backface-visibility: hidden;
}
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
/* Positional states. The incoming slide is parked at "left"/"right" with no
   transition, then flipped to "active" so it swings into place in 3D. */
.hero-slide[data-state="active"] { opacity: 1; transform: scale(1.02); z-index: 4; }
.hero-slide[data-state="left"]   { opacity: 0; transform: translateX(-6%) rotateY(9deg)  scale(1.16); z-index: 3; }
.hero-slide[data-state="right"]  { opacity: 0; transform: translateX(6%)  rotateY(-9deg) scale(1.16); z-index: 3; }
.hero-slide[data-state="idle"]   { opacity: 0; transform: scale(1.06); z-index: 1; }

/* legibility scrim */
.hero-scrim {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(9,24,18,.94) 0%, rgba(9,24,18,.80) 38%, rgba(9,24,18,.44) 72%, rgba(9,24,18,.30) 100%),
    linear-gradient(180deg, rgba(9,24,18,.72) 0%, rgba(9,24,18,.10) 32%, rgba(9,24,18,.80) 100%);
}

.hero-copy { max-width: 46rem; }
.hero h1 { color: #fff; margin: 0 0 var(--sp-4); }
.hero h1 em { font-style: normal; color: var(--green-bright); }
.hero .lede { color: rgba(255,255,255,.88); max-width: 42ch; margin-bottom: var(--sp-6); }
.hero-actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; }

/* bottom rail: stats + slider controls */
.hero-foot {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--sp-6); flex-wrap: wrap;
  margin-top: clamp(32px, 4.5vw, 60px);
}
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--sp-3); flex: 1 1 520px; }
.stat-card {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius-sm);
  padding: var(--sp-4) var(--sp-5);
}
.stat-card .bars { display: flex; gap: 4px; margin-bottom: var(--sp-3); }
.stat-card .bars span { height: 3px; flex: 1; border-radius: 3px; background: rgba(255,255,255,.26); }
.stat-card .bars span.on { background: var(--green-bright); }
.stat-card .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.45rem, 2.3vw, 1.9rem); color: #fff; line-height: 1; }
.stat-card .lbl { font-weight: 600; color: #fff; margin-top: 5px; font-size: .9rem; }
.stat-card .sub { color: rgba(255,255,255,.80); font-size: .8rem; line-height: 1.5; }

.hero-controls { display: flex; align-items: center; gap: var(--sp-3); flex: none; }
.slider-btn {
  width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.28); border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff;
  backdrop-filter: blur(8px);
  display: inline-grid; place-items: center; cursor: pointer;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.slider-btn:hover { background: var(--green); border-color: var(--green); transform: scale(1.06); }
.slider-btn svg { width: 17px; height: 17px; }
.slider-dots { display: flex; gap: 7px; }
.slider-dots button {
  width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.34); cursor: pointer;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.slider-dots button[aria-current="true"] { background: var(--green-bright); transform: scale(1.45); }

@media (max-width: 760px) {
  .hero { min-height: min(78vh, 620px); }
  .hero-stats { grid-template-columns: 1fr; flex-basis: 100%; }
  .hero-foot { gap: var(--sp-5); }
}

/* ---------- page header (image + title + breadcrumbs only) ---------- */
.page-header {
  position: relative; isolation: isolate;
  color: #fff; overflow: hidden;
  padding: calc(var(--nav-h) + var(--nav-gap) + clamp(56px, 8vw, 104px)) 0 clamp(40px, 5vw, 64px);
  margin-top: calc(-1 * (var(--nav-h) + var(--nav-gap)));
}
.page-header-bg { position: absolute; inset: 0; z-index: -2; }
.page-header-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-header::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(12,32,26,.66) 0%, rgba(12,32,26,.88) 100%);
}
.page-header h1 { color: #fff; margin: var(--sp-4) 0 0; font-size: clamp(2rem, 3.8vw, 2.9rem); }
.breadcrumbs {
  display: inline-flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap;
  background: rgba(255,255,255,.13);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-pill);
  padding: 7px 16px;
  font-size: .74rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.92);
}
.breadcrumbs a { color: rgba(255,255,255,.92); }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs .sep { opacity: .62; }

/* ---------- cards ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: var(--sp-3);
  box-shadow: var(--sh-xs);
  display: flex; flex-direction: column;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
.card-media { position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4/3; background: var(--gray); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.card:hover .card-media img { transform: scale(1.06); }
.card-badge {
  position: absolute; top: var(--sp-3); right: var(--sp-3);
  background: var(--green); color: #fff;
  border-radius: var(--radius-pill);
  padding: 5px 12px; font-size: .74rem; font-weight: 700;
}
.card-body { padding: var(--sp-4) var(--sp-2) var(--sp-2); display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { margin: 0; }
.card-body p  { color: var(--muted); font-size: .92rem; margin: 0; flex: 1; }
/* NOTE: this must stay AFTER `.card-body p` and keep the extra class, or
   `.card-body p` (0,1,1) outranks `.card-label` (0,1,0) and the green
   category labels silently render grey. */
.card-body .card-label { color: var(--green); font-size: .78rem; font-weight: 700; }
.card-body strong { color: var(--ink); font-weight: 600; }
.card-body .btn { align-self: flex-start; margin-top: var(--sp-3); }

.card-grid { display: grid; gap: var(--sp-5); }
.card-grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.card-grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.card-grid--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 1000px) { .card-grid--4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 700px) { .card-grid--2, .card-grid--3, .card-grid--4 { grid-template-columns: 1fr; } }

/* A grid holding a single card would sit left-aligned with dead space beside
   it — centre it and cap the width so the page still looks deliberate. */
.card-grid--single {
  grid-template-columns: minmax(0, 360px);
  justify-content: center;
}

/* small feature tile */
.tile-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--sp-4); }
.tile {
  background: var(--white); border-radius: var(--radius);
  padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-2);
  box-shadow: var(--sh-xs);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.tile .ico {
  width: 44px; height: 44px; border-radius: 13px;
  background: var(--green-soft); color: var(--green);
  display: inline-grid; place-items: center;
}
.tile h3 { margin: 0; }
.tile p { color: var(--muted); font-size: .91rem; margin: 0; flex: 1; }
.tile .link { color: var(--green); font-weight: 600; font-size: .89rem; }
@media (max-width: 820px) { .tile-grid { grid-template-columns: 1fr; } }

/* ---------- dark testimonial band ---------- */
.band {
  background: var(--ink); color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.4vw, 40px);
  display: grid; grid-template-columns: 168px 1fr; gap: clamp(20px, 3vw, 40px);
  align-items: center;
}
.band-avatars { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
.band-avatars img { border-radius: var(--radius-xs); aspect-ratio: 1/1; object-fit: cover; width: 100%; }
.band-avatars img.big { grid-column: span 2; aspect-ratio: 4/3; }
.band-quote { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.15rem, 2.1vw, 1.7rem); line-height: 1.28; color: #fff; margin: 0 0 var(--sp-3); }
.band-attr { color: rgba(255,255,255,.80); font-size: .88rem; }
.band-attr strong { color: #fff; display: block; }
@media (max-width: 760px) { .band { grid-template-columns: 1fr; } }

/* ---------- FAQ (two column) ---------- */
.faq-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(24px, 4vw, 52px); align-items: start; }
@media (max-width: 900px) { .faq-layout { grid-template-columns: 1fr; } }
.faq-ask { background: var(--white); border-radius: var(--radius); padding: var(--sp-5); box-shadow: var(--sh-xs); margin-top: var(--sp-5); }
.faq-ask h3 { margin: 0 0 5px; }
.faq-ask p { color: var(--muted); font-size: .91rem; margin-bottom: var(--sp-4); }
.faq { display: grid; gap: var(--sp-2); }
.faq details {
  background: var(--gray); border-radius: var(--radius);
  padding: var(--sp-4) var(--sp-5);
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.faq details[open] { background: var(--white); box-shadow: var(--sh-sm); }
.faq summary {
  list-style: none; cursor: pointer; font-weight: 700; font-size: .97rem;
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white); color: var(--ink);
  font-weight: 500; font-size: 1.15rem; line-height: 1;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.faq details[open] summary::after { background: var(--green); color: #fff; transform: rotate(45deg); }
.faq details p { margin: var(--sp-3) 0 2px; color: var(--muted); font-size: .93rem; }

/* ---------- rounded CTA card ---------- */
.cta-card {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--radius-lg);
  min-height: clamp(260px, 28vw, 350px);
  display: flex; align-items: flex-end;
  padding: clamp(24px, 3.2vw, 40px);
  color: #fff;
  background: var(--ink);
}
.cta-card .cta-bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
.cta-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(12,32,26,.94) 0%, rgba(12,32,26,.66) 55%, rgba(12,32,26,.30) 100%);
}
.cta-card .scribble {
  position: absolute; top: -8%; left: 1%; width: 38%; max-width: 330px;
  opacity: .8; z-index: -1; pointer-events: none;
}
.cta-grid { display: grid; grid-template-columns: 1.25fr .85fr; gap: var(--sp-6); align-items: end; width: 100%; }
.cta-card h2 { color: #fff; margin: 0; font-size: clamp(1.5rem, 2.8vw, 2.15rem); }
.cta-card p { color: rgba(255,255,255,.90); margin: 0 0 var(--sp-4); font-size: .94rem; }
@media (max-width: 820px) { .cta-grid { grid-template-columns: 1fr; } }

/* ---------- footer (rounded panels) ---------- */
.site-footer { background: var(--ink-3); color: rgba(255,255,255,.84); padding: clamp(28px, 3.4vw, 44px) 0 var(--sp-5); }
.footer-row { display: grid; gap: var(--sp-4); margin-bottom: var(--sp-4); }
.footer-row--top { grid-template-columns: .95fr 1.55fr; }
.footer-row--bottom { grid-template-columns: 1.55fr .95fr; }
@media (max-width: 880px) { .footer-row--top, .footer-row--bottom { grid-template-columns: 1fr; } }

.panel { background: var(--ink-2); border-radius: var(--radius-lg); padding: clamp(20px, 2.4vw, 30px); }
.panel h3 { color: #fff; margin: 0 0 var(--sp-2); font-size: clamp(1.15rem, 1.9vw, 1.5rem); }
.panel h4 {
  color: rgba(255,255,255,.66);
  font-family: var(--font-sans); font-size: .74rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; margin: 0 0 var(--sp-3);
}
.panel p { color: rgba(255,255,255,.76); font-size: .91rem; }

.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--sp-5); }
@media (max-width: 640px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
.site-footer address { font-style: normal; line-height: 1.85; font-size: .91rem; }

/* footer links lift on hover — never underline */
.site-footer a { color: #fff; text-decoration: none; display: inline-block;
                 transition: transform .32s var(--ease), color .32s ease; }
.site-footer a:hover, .site-footer a:focus-visible { text-decoration: none; transform: translateY(-4px); color: var(--green); }

/* newsletter pill */
.nl-form {
  display: flex; align-items: center; gap: var(--sp-2);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-pill);
  padding: 5px 5px 5px 16px; margin-top: var(--sp-3);
}
.nl-form input[type="email"] {
  flex: 1; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: .91rem; color: #fff; padding: 9px 0; min-width: 0;
}
.nl-form input[type="email"]::placeholder { color: rgba(255,255,255,.62); }
.nl-form button {
  width: 40px; height: 40px; flex: none; border: 0; border-radius: 50%;
  background: var(--green); color: #fff; cursor: pointer;
  display: grid; place-items: center;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.nl-form button:hover { background: var(--green-dark); transform: translateX(2px); }
.nl-form button svg { width: 16px; height: 16px; }
.nl-note { color: var(--green); font-size: .82rem; margin: var(--sp-2) 0 0; }

/* watermark wordmark */
.footer-mark { display: grid; place-items: center; min-height: 128px; }
.footer-mark img { width: min(64%, 300px); opacity: .16; }

/* social list */
.social-list { display: grid; }
.social-list a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-radius: var(--radius-sm);
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-weight: 600; font-size: .92rem;
}
.social-list a:last-child { border-bottom: 0; }
.social-list a.active { background: var(--green); color: #fff; }
.social-list a svg { width: 15px; height: 15px; opacity: .8; }
.social-list a:hover { transform: none; }

.footer-bottom {
  text-align: center; padding-top: var(--sp-4);
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: .82rem; color: rgba(255,255,255,.66);
}
.footer-bottom p { margin: 0; }

/* ---------- partner logo strip ---------- */
.partner-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: clamp(24px, 5vw, 60px);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
}
.partner-strip img {
  height: clamp(34px, 4vw, 48px); width: auto;
  filter: grayscale(1); opacity: .62;
  transition: filter var(--dur) var(--ease), opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.partner-strip img:hover { filter: none; opacity: 1; transform: translateY(-3px); }

/* ---------- mission collage ---------- */
.collage { display: grid; grid-template-columns: 1.25fr 1fr; grid-auto-rows: minmax(0,1fr); gap: var(--sp-3); }
.collage .big { grid-row: span 2; border-radius: var(--radius); overflow: hidden; min-height: 200px; }
.collage img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.collage .mini {
  background: var(--white); border-radius: var(--radius);
  padding: var(--sp-4); box-shadow: var(--sh-xs);
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
}
.collage .mini .n { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.35rem, 2.2vw, 1.75rem); color: var(--ink); line-height: 1; }
.collage .mini .t { color: var(--muted); font-size: .85rem; }
@media (max-width: 640px) { .collage { grid-template-columns: 1fr; } .collage .big { grid-row: auto; } }

/* ---------- helpers ---------- */
.center { text-align: center; }
.content-narrow { max-width: 740px; margin-inline: auto; }
.two-col { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(24px, 4vw, 52px); align-items: start; }
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; } }
.chip-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); list-style: none; margin: 0; padding: 0; }
.chip-row li {
  background: var(--white); border-radius: var(--radius-pill);
  padding: 7px 15px; font-size: .84rem; font-weight: 500;
  box-shadow: var(--sh-xs);
}
.figure { border-radius: var(--radius); overflow: hidden; box-shadow: var(--sh-sm); }
.figure figcaption { background: #fff; padding: var(--sp-3) var(--sp-5); color: var(--muted); font-size: .87rem; }

/* Programme cards intentionally have NO coloured accent bar on the image —
   the border colours were removed at the client's request. */

/* ---------- 3D hover for cards, media and gallery tiles ---------- */
.tilt {
  transform-style: preserve-3d;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  will-change: transform;
}
@media (hover: hover) and (pointer: fine) {
  .tilt:hover {
    transform: perspective(900px) rotateX(4deg) rotateY(-5deg) translateY(-8px) scale(1.015);
    box-shadow: 0 30px 60px rgba(15,42,32,.20), 0 10px 22px rgba(15,42,32,.12);
  }
  .tilt:hover .card-media img { transform: scale(1.07) translateZ(24px); }
  /* a soft moving sheen adds depth without any JS */
  .tilt::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit;
    background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.30) 50%, transparent 65%);
    opacity: 0; transition: opacity .5s var(--ease); pointer-events: none;
  }
  .tilt:hover::after { opacity: 1; }
}
.tilt { position: relative; }
.card-media img { transform: translateZ(0); }

/* ---------- rich text block (legal notice, privacy policy) ---------- */
.rich-list {
  margin: 0 0 var(--sp-4); padding-left: 20px;
  color: var(--muted); line-height: 1.8;
}
.rich-list li { margin-bottom: 6px; }
.content-narrow h3 { margin-top: var(--sp-6); }

/* ---------- programme detail page ---------- */
.detail-main { min-width: 0; }
.detail-main h2 { margin-top: 0; }
.detail-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }

/* card titles that link somewhere should read as links on hover */
.card-link { color: inherit; }
.card-link:hover { color: var(--green); }

.focus-list { list-style: none; margin: var(--sp-4) 0 0; padding: 0; display: grid; gap: var(--sp-3); }
.focus-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.focus-list .tick {
  width: 24px; height: 24px; border-radius: 8px; flex: none;
  background: var(--green-soft); color: var(--green);
  display: grid; place-items: center; margin-top: 1px;
}
.focus-list .tick svg { width: 14px; height: 14px; }

.side-more {
  display: inline-block; margin-top: var(--sp-4);
  font-size: .88rem; font-weight: 600; color: var(--green);
}
.side-more:hover { text-decoration: underline; }

.other-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); }
.other-list a { display: flex; gap: 12px; align-items: center; }
.other-list img {
  width: 62px; height: 50px; object-fit: cover; border-radius: 9px; flex: none;
  transition: transform var(--dur) var(--ease);
}
.other-list a:hover img { transform: scale(1.06); }
.other-list strong { display: block; font-size: .92rem; color: var(--text); line-height: 1.3; }
.other-list em {
  display: block; font-style: normal; font-size: .8rem; color: var(--muted);
  margin-top: 2px; line-height: 1.35;
}
.other-list a:hover strong { color: var(--green); }

/* ---------- back to top ---------- */
.back-to-top {
  position: fixed; right: clamp(16px, 2.4vw, 28px); bottom: clamp(16px, 2.4vw, 28px);
  z-index: 55;
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--green); color: #fff; border: 0; cursor: pointer;
  box-shadow: 0 10px 24px rgba(15,42,32,.26);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
              visibility var(--dur) var(--ease), background var(--dur) var(--ease);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--green-dark); transform: translateY(-3px); }
.back-to-top svg { width: 21px; height: 21px; }
@media print { .back-to-top { display: none; } }

/* ---------- gallery page + gallery block ---------- */
.gallery-filter {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin: 0 0 var(--sp-6);
}
.gallery-filter button {
  font: inherit; font-size: .88rem; font-weight: 600;
  padding: 9px 18px; border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: var(--white); color: var(--muted);
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.gallery-filter button:hover { color: var(--ink); border-color: var(--green); }
.gallery-filter button.is-active {
  background: var(--green); border-color: var(--green); color: #fff;
}

.gallery-items { display: grid; gap: var(--sp-3); }
.gallery-items--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.gallery-items--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.gallery-items--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 900px) { .gallery-items--3, .gallery-items--4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .gallery-items--2, .gallery-items--3, .gallery-items--4 { grid-template-columns: 1fr; } }

.gallery-item { margin: 0; }
.gallery-item a {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--radius); aspect-ratio: 4/3;
  box-shadow: var(--sh-xs);
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease);
}
.gallery-item a:hover img { transform: scale(1.08); }
.gallery-zoom {
  position: absolute; right: 12px; bottom: 12px;
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  background: rgba(12,32,26,.72); color: #fff;
  opacity: 0; transform: translateY(6px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.gallery-zoom svg { width: 19px; height: 19px; }
.gallery-item a:hover .gallery-zoom { opacity: 1; transform: none; }
.gallery-item figcaption {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 4px 0; font-size: .88rem;
}
.gallery-item figcaption strong { font-weight: 600; color: var(--text); }
.gallery-item figcaption span { color: var(--muted); font-size: .8rem; }
.gallery-item[hidden] { display: none; }
.gallery-empty { margin-top: var(--sp-5); }

/* ---------- block divider ---------- */
.block-divider--sm { height: var(--sp-5); }
.block-divider--md { height: var(--sp-7); }
.block-divider--lg { height: calc(var(--sp-7) * 2); }
.block-divider--rule { height: 0; border-top: 1px solid var(--line); margin: var(--sp-6) 0; }

/* ---------- social icons (footer) ---------- */
.social-icons {
  list-style: none; margin: var(--sp-5) 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.social-icons a {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.12);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.social-icons a:hover {
  background: var(--green-bright); border-color: var(--green-bright);
  color: #fff; transform: translateY(-3px);
}
.social-icons svg { width: 20px; height: 20px; }

/* ---------- partner logo marquee (right → left) ---------- */
.marquee {
  position: relative; overflow: hidden;
  padding: var(--sp-5) 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; align-items: center; gap: clamp(40px, 6vw, 84px);
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: running; } /* keeps moving on hover */
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee img {
  height: clamp(34px, 4vw, 48px); width: auto; flex: none;
  filter: grayscale(1); opacity: .62;
  transition: filter var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.marquee img:hover { filter: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- animated counters ---------- */
.count { font-variant-numeric: tabular-nums; }

/* ---------- blog layout: article + right sidebar ---------- */
.detail-layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: clamp(28px, 4vw, 52px); align-items: start; }
@media (max-width: 900px) { .detail-layout { grid-template-columns: 1fr; } }
.detail-side { display: grid; gap: var(--sp-5); position: sticky; top: calc(var(--nav-h) + var(--nav-gap) + 16px); }
@media (max-width: 900px) { .detail-side { position: static; } }

.side-card { background: var(--white); border-radius: var(--radius); padding: var(--sp-5); box-shadow: var(--sh-xs); }
.side-card h3 { margin: 0 0 var(--sp-3); font-size: 1.05rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-2); }
.gallery-grid a { display: block; border-radius: var(--radius-xs); overflow: hidden; aspect-ratio: 1/1; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-grid a:hover img { transform: scale(1.12); }

.donate-side { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius); color: #fff; }
.donate-side img { width: 100%; height: 200px; object-fit: cover; }
.donate-side .body { padding: var(--sp-5); background: var(--ink); }
.donate-side h3 { color: #fff; margin: 0 0 6px; font-size: 1.05rem; }
.donate-side p { color: rgba(255,255,255,.78); font-size: .9rem; margin: 0 0 var(--sp-4); }

/* ---------- contact page ---------- */
.contact-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 4vw, 52px); align-items: start; }
@media (max-width: 880px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-4); }
.contact-list li { display: flex; gap: var(--sp-4); align-items: flex-start; }
.contact-list .ico {
  width: 44px; height: 44px; border-radius: 13px; flex: none;
  background: var(--green-soft); color: var(--green);
  display: grid; place-items: center;
}
.contact-list strong { display: block; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.contact-list a, .contact-list span { color: var(--text); font-size: .98rem; }

.form-card { background: var(--white); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); box-shadow: var(--sh-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.form-field { display: grid; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: .86rem; font-weight: 600; }
.form-field input, .form-field textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: .95rem;
  border: 1px solid var(--line); border-radius: var(--radius-xs);
  background: var(--white); color: var(--text);
}
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.form-field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: var(--sp-3); }

/* ---------- related posts ---------- */
.related { margin-top: clamp(40px, 6vw, 72px); padding-top: clamp(32px, 4vw, 52px); border-top: 1px solid var(--line); }

/* ---------- scroll-reveal (progressive enhancement) ---------- */
.js-ready .reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
.js-ready .reveal.is-in { opacity: 1; transform: none; }
.js-ready .reveal-stagger > * {
  opacity: 0; transform: translateY(18px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.js-ready .reveal-stagger.is-in > * { opacity: 1; transform: none; }
.js-ready .reveal-stagger.is-in > *:nth-child(1) { transition-delay: .04s; }
.js-ready .reveal-stagger.is-in > *:nth-child(2) { transition-delay: .10s; }
.js-ready .reveal-stagger.is-in > *:nth-child(3) { transition-delay: .16s; }
.js-ready .reveal-stagger.is-in > *:nth-child(4) { transition-delay: .22s; }
.js-ready .reveal-stagger.is-in > *:nth-child(5) { transition-delay: .28s; }
.js-ready .reveal-stagger.is-in > *:nth-child(6) { transition-delay: .34s; }
.js-ready .reveal-stagger.is-in > *:nth-child(7) { transition-delay: .40s; }
.js-ready .reveal-stagger.is-in > *:nth-child(8) { transition-delay: .46s; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .js-ready .reveal, .js-ready .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
}

/* ---------- print ---------- */
@media print {
  .site-header, .site-footer, .nav-toggle, .slider-btn, .slider-dots { display: none !important; }
  body { background: #fff; color: #000; }
  .hero, .section--dark, .band, .cta-card { background: #fff !important; color: #000 !important; }
  .hero h1, .band-quote, .cta-card h2 { color: #000 !important; }
  .hero-scrim, .hero-bg { display: none !important; }
}