/* =================================================================
   Makakosha Wakakosha: public site styles
   Brand: three colours taken from the logo and makakoshawakakosha.org.
     Orange (main)  #F58634  big fills, buttons, rings. Black text on it.
     Black (second) #000000  text, footer, dark bands. Orange or white on it.
     White (third)  #FFFFFF  page background, cards.
   Orange is too light for small text on white (2.5:1), so two deeper
   orange shades are kept for icons (3.9:1) and text (5.8:1).
   Type: Lexend (headings) and Atkinson Hyperlegible (body), both
   designed for easy reading.
   ================================================================= */

:root {
  /* Main: orange */
  --orange: #F58634;        /* logo orange. Fills only, always with black text */
  --orange-strong: #D2600F; /* icons and big numbers on white */
  --orange-text: #A64B0A;   /* small orange text on white */
  --orange-soft: #FDE3CF;   /* icon circles, pills */
  --orange-wash: #FFF4EB;   /* quiet section backgrounds */
  /* Second: black */
  --ink: #000000;
  --ink-soft: #4A4A4A;
  --on-dark: #CFCFCF;       /* body text on black */
  /* Third: white */
  --paper: #FFFFFF;
  --line: #DEDEDE;
  --focus: #000000;

  --font-head: "Lexend", "Segoe UI", Arial, sans-serif;
  --font-body: "Atkinson Hyperlegible", Verdana, "Segoe UI", Arial, sans-serif;

  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;
  --wrap: 1180px;
  --gutter: clamp(1.1rem, 4vw, 2rem);
  --section: clamp(3.5rem, 8vw, 6.5rem);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
html[data-text-size="large"] { font-size: 112.5%; }
html[data-text-size="xlarge"] { font-size: 128%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
address { font-style: normal; }
figure { margin: 0; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--ink);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.35rem); font-weight: 600; }
h3 { font-size: 1.3rem; font-weight: 600; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
main:focus { outline: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--ink); color: #fff; padding: .75rem 1.25rem; border-radius: var(--radius-s);
  font-family: var(--font-head); font-weight: 600;
}
.skip-link:focus { top: 1rem; color: #fff; }
.skip-link:hover { color: #fff; }
.muted { color: var(--ink-soft); }

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.5em;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; text-align: center;
  border: 2px solid transparent; border-radius: 999px; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--orange); color: var(--ink); border-color: var(--orange); }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-small { min-height: 42px; padding: .5em 1.15em; font-size: .95rem; }
.btn-block { width: 100%; }
.button-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

.text-link {
  display: inline-block; font-family: var(--font-head); font-weight: 600; color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; text-underline-offset: 6px;
}
.text-link:hover { color: var(--orange-text); }
.link-btn { background: none; border: 0; padding: .5em; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Announcement ---------- */

.announcement { background: var(--ink); color: #fff; font-size: 1rem; padding: .6rem 0; }
.announcement .fa-solid { color: var(--orange); margin-right: .4rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
}
.header-bar { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { width: 52px; height: 52px; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; line-height: 1.05; letter-spacing: -0.01em; }

.main-nav ul { list-style: none; display: flex; gap: .1rem; }
.main-nav a {
  display: block; padding: .55rem .7rem; color: var(--ink); text-decoration: none;
  font-family: var(--font-head); font-weight: 500; font-size: .98rem; border-radius: 8px;
}
.main-nav a:hover { background: var(--orange-wash); color: var(--ink); }
.main-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.main-nav .nav-donate { display: none; }

.header-actions { display: flex; align-items: center; gap: .5rem; }
.icon-btn {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; min-width: 44px; justify-content: center;
  padding: .45rem .7rem; background: transparent; border: 2px solid var(--line); border-radius: 999px;
  font-family: var(--font-head); font-weight: 500; font-size: .92rem; cursor: pointer; color: var(--ink);
}
.icon-btn:hover, .icon-btn[aria-expanded="true"] { border-color: var(--ink); }
.icon-btn .fa-universal-access { font-size: 1.25rem; color: var(--orange-strong); }
.menu-toggle { display: none; }

/* Accessibility panel */
.a11y-panel { border-top: 1px solid var(--line); background: var(--orange-wash); padding: 1.5rem 0 1.75rem; }
.a11y-panel[hidden] { display: none; }
.a11y-head h2 { font-size: 1.25rem; margin-bottom: .2rem; }
.a11y-head p { color: var(--ink-soft); font-size: 1rem; }
.a11y-options { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.6rem; }
.a11y-label { display: block; font-family: var(--font-head); font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
.segmented { display: inline-flex; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; background: #fff; }
.segmented button { border: 0; background: transparent; padding: .5rem .95rem; cursor: pointer; font-family: var(--font-head); font-size: .95rem; min-height: 42px; }
.segmented button + button { border-left: 2px solid var(--ink); }
.segmented button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.switch { display: inline-flex; align-items: center; gap: .6rem; cursor: pointer; font-family: var(--font-head); font-weight: 500; font-size: 1rem; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track {
  width: 46px; height: 26px; border-radius: 999px; background: #fff; border: 2px solid var(--ink);
  position: relative; flex: none; transition: background-color .2s;
}
.switch-track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--ink); transition: transform .2s;
}
.switch input:checked + .switch-track { background: var(--orange); border-color: var(--ink); }
.switch input:checked + .switch-track::after { transform: translateX(20px); background: var(--ink); }
.switch input:focus-visible + .switch-track { outline: 3px solid var(--focus); outline-offset: 3px; }
.a11y-buttons { display: flex; align-items: center; gap: .75rem; }
.read-aloud.is-reading { background: var(--ink); color: #fff; }

/* ---------- Hero (home) ---------- */

.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 5.5rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-shona {
  font-family: var(--font-head); font-weight: 500; font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: var(--orange-text); margin-bottom: .6rem;
}
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.85rem); line-height: 1.04; margin-bottom: 1.4rem; }
.hero h1 span { display: block; }
.hero-lede { font-size: clamp(1.15rem, 1.8vw, 1.3rem); color: var(--ink-soft); max-width: 34rem; }

.hero-photos { position: relative; justify-self: end; width: min(100%, 440px); aspect-ratio: 1 / 1.02; }
.ring { border-radius: 50%; overflow: hidden; background: var(--orange-wash); }
.ring img { width: 100%; height: 100%; object-fit: cover; }
.ring-lg {
  position: absolute; top: 0; right: 0; width: 88%; aspect-ratio: 1;
  box-shadow: 0 0 0 12px #fff, 0 0 0 26px var(--orange);
}
.ring-sm {
  position: absolute; bottom: 0; left: 0; width: 40%; aspect-ratio: 1;
  box-shadow: 0 0 0 10px #fff;
}

/* ---------- Impact band ---------- */

.impact { background: var(--orange); color: var(--ink); padding: clamp(2.25rem, 5vw, 3.25rem) 0; --focus: #000; }
.impact-title { color: var(--ink); font-size: clamp(1.4rem, 2.5vw, 1.8rem); margin-bottom: 1.5rem; }
.impact a { color: var(--ink); }
.impact-list { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem 2rem; }
.impact-list li { border-left: 3px solid var(--ink); padding-left: 1rem; font-size: 1.05rem; line-height: 1.4; color: var(--ink); }
.impact-list strong {
  display: block; font-family: var(--font-head); font-weight: 700; color: var(--ink);
  font-size: clamp(2rem, 3.6vw, 2.75rem); line-height: 1.05; letter-spacing: -0.02em; margin-bottom: .2rem;
}

/* ---------- Sections ---------- */

.section { padding: var(--section) 0; }
.section-tight { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.section-wash { background: var(--orange-wash); }
.section-head { max-width: 46rem; margin-bottom: clamp(1.75rem, 4vw, 2.5rem); }
.section-head p { color: var(--ink-soft); font-size: 1.15rem; }
.section-head-row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .5rem 2rem; }
.section-head-row > div { max-width: 40rem; }
.section-head-row h2 { margin-bottom: .3rem; }
.section-head-row p { margin: 0; }

/* Page header (inner pages) */
.page-head {
  position: relative; overflow: hidden;
  background: var(--orange); color: var(--ink); padding: clamp(2.75rem, 6vw, 4.5rem) 0 clamp(2.5rem, 5vw, 3.75rem);
  --ink-soft: #2B2B2B; --focus: #000;
}
.page-head::after {
  content: ""; position: absolute; right: -120px; top: 50%; transform: translateY(-50%);
  width: 360px; height: 360px; border-radius: 50%; border: 22px solid var(--paper); opacity: .9;
  pointer-events: none;
}
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { max-width: 20ch; }
.page-head p { font-size: clamp(1.1rem, 1.7vw, 1.25rem); color: var(--ink-soft); max-width: 40rem; margin: 0; }
.page-head .button-row { margin-top: 1.5rem; }
.page-head a:not(.btn) { color: var(--ink); }
.page-head .btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.page-head .btn-primary:hover { background: #fff; border-color: #fff; color: var(--ink); }
.page-head .btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.page-head .project-facts i { color: var(--ink); }
.page-head .status-pill { color: #fff; }
.page-head .status-completed, .page-head .status-planned { color: var(--ink); }

/* ---------- Story ---------- */

.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.story-photo img { border-radius: var(--radius-l); width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; }
.story-photo figcaption { font-size: .95rem; color: var(--ink-soft); margin-top: .6rem; }
.story-text p { font-size: 1.15rem; }
.prose { max-width: 42rem; }
.prose p { font-size: 1.15rem; }
.prose .lede { font-size: 1.3rem; line-height: 1.5; color: var(--ink); }

/* ---------- Age groups ---------- */

.ages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.age {
  display: flex; flex-direction: column; gap: .35rem; padding: 1.75rem 1.6rem 1.9rem;
  background: #fff; border-radius: var(--radius-m); text-decoration: none; color: var(--ink);
  border: 2px solid transparent; transition: border-color .2s;
}
.age:hover { border-color: var(--ink); color: var(--ink); }
.age-range {
  font-family: var(--font-head); font-weight: 700; font-size: clamp(2.8rem, 5vw, 3.8rem); line-height: 1;
  letter-spacing: -0.03em; color: var(--orange-strong);
}
.age-name { font-family: var(--font-head); font-weight: 600; font-size: 1.3rem; margin-top: .35rem; }
.age-text { color: var(--ink-soft); }

/* ---------- Project cards ---------- */

.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1.75rem; }
.project-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; background: #fff; }
.project-card-media { display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--orange-wash); }
.project-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.project-card:hover .project-card-media img { transform: scale(1.06); }
.project-card-body { padding: 1.35rem 1.4rem 1.6rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.project-card h3 { margin: 0; font-size: 1.35rem; }
.project-card h3 a { color: var(--ink); text-decoration: none; }
.project-card h3 a::after { content: ""; position: absolute; inset: 0; }
.project-card { position: relative; }
.project-card h3 a:hover { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; }
.project-place { display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: .98rem; color: var(--ink-soft); margin: 0; }
.project-place .fa-solid, .project-place .fa-regular { color: var(--orange-strong); margin-right: .2rem; }
.project-summary { margin: .25rem 0 0; }
.project-reach { margin: auto 0 0; padding-top: .5rem; font-family: var(--font-head); font-weight: 500; font-size: .98rem; color: var(--orange-text); }

.status-pill {
  display: inline-flex; align-items: center; gap: .45rem; align-self: flex-start; margin: 0;
  font-family: var(--font-head); font-weight: 500; font-size: .88rem; line-height: 1;
  padding: .4rem .75rem; border-radius: 999px; background: var(--ink); color: #fff;
}
.status-pill::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--orange); }
.status-completed { background: #EDEDED; color: var(--ink); }
.status-completed::before { background: var(--ink-soft); }
.status-planned { background: var(--orange-soft); color: var(--ink); }
.status-planned::before { background: var(--orange-strong); }

/* ---------- Photo strip and tiles ---------- */

.photo-strip { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(150px, 220px)); gap: .75rem; }
.photo-strip .photo-tile:first-child { grid-row: span 2; }
.photo-tile, .gallery-tile {
  position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0;
  border-radius: var(--radius-m); overflow: hidden; cursor: zoom-in; background: var(--orange-wash);
}
.photo-tile img, .gallery-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.photo-tile:hover img, .gallery-tile:hover img { transform: scale(1.05); }

/* ---------- Quotes ---------- */

.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1.5rem; }
.quote { background: #fff; border-radius: var(--radius-m); padding: 2rem 1.75rem 1.75rem; position: relative; }
.quote::before {
  content: "“"; position: absolute; top: -.35rem; left: 1.25rem;
  font-family: var(--font-head); font-weight: 700; font-size: 5rem; line-height: 1; color: var(--orange);
}
.quote blockquote { margin: 1.25rem 0 1.1rem; font-size: 1.15rem; line-height: 1.6; }
.quote blockquote p { margin: 0; }
.quote figcaption { font-size: .98rem; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: .85rem; }
.quote figcaption strong { display: block; color: var(--ink); }

/* ---------- Ways in (home) ---------- */

.paths h2 { margin-bottom: 1.75rem; }
.path-list { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); }
.path { padding: 1.75rem 1.75rem 0 0; display: flex; flex-direction: column; }
.path + .path { padding-left: 1.75rem; border-left: 1px solid var(--line); }
.path p { color: var(--ink-soft); flex: 1; }
.path .btn { align-self: flex-start; margin-top: .5rem; }

/* ---------- About ---------- */

.aims { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.aim h3 { padding-bottom: .6rem; border-bottom: 3px solid var(--orange); display: inline-block; }
.aim p { color: var(--ink); }

.timeline { list-style: none; position: relative; margin-top: 2rem; }
.timeline::before { content: ""; position: absolute; left: 3.6rem; top: .5rem; bottom: .5rem; width: 2px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 7.2rem 1fr; gap: 1rem; padding-bottom: 2rem; position: relative; }
.timeline li:last-child { padding-bottom: 0; }
.timeline-year {
  font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--ink);
  background: var(--orange); border-radius: 999px; padding: .35rem 0; text-align: center; align-self: start; position: relative;
}
.timeline h3 { margin-bottom: .25rem; }
.timeline p { color: var(--ink-soft); }

.team { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 2.25rem 1.5rem; }
.member { text-align: center; }
.ring-member { width: 156px; height: 156px; margin: 0 auto 1.1rem; box-shadow: 0 0 0 5px #fff, 0 0 0 9px var(--orange); }
.member h3 { font-size: 1.15rem; margin-bottom: .1rem; }
.member-role { color: var(--orange-text); font-family: var(--font-head); font-weight: 500; margin: 0; }
.member-bio { color: var(--ink-soft); font-size: 1rem; margin-top: .4rem; }

.cta-band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.cta-band h2 { margin-bottom: .3rem; }
.cta-band p { margin: 0; color: var(--ink-soft); max-width: 36rem; }
.cta-band .button-row { margin-top: 0; }

/* ---------- Services ---------- */

.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.pillar, .way { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1.9rem 1.75rem; background: #fff; }
.pillar-icon {
  display: inline-grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 50%;
  background: var(--orange-soft); color: var(--orange-text); font-size: 1.35rem; margin-bottom: 1rem;
}
.pillar > p { color: var(--ink-soft); }
.check-list { list-style: none; display: grid; gap: .45rem; margin: .5rem 0 0; }
.check-list li { position: relative; padding-left: 1.75rem; }
.check-list li::before {
  content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: .85rem;
  position: absolute; left: 0; top: .2rem; color: var(--orange-strong);
}

.age-programmes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.age-programme { background: #fff; border-radius: var(--radius-m); padding: 1.75rem 1.6rem; display: flex; flex-direction: column; }
.age-programme h3 { margin-top: .4rem; }
.age-programme .check-list { margin-bottom: 1.5rem; flex: 1; }
.age-programme .btn { align-self: flex-start; }

.steps { list-style: none; counter-reset: step; margin: 2rem 0 0; display: grid; gap: 1.5rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3rem 1fr; column-gap: 1.25rem; }
.steps li::before {
  content: counter(step); grid-row: span 2; width: 3rem; height: 3rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--orange); color: var(--ink);
  font-family: var(--font-head); font-weight: 700; font-size: 1.2rem;
}
.steps h3 { margin: .55rem 0 .2rem; }
.steps p { color: var(--ink-soft); margin: 0; }

/* ---------- Filters, pagers, empty states ---------- */

.filter-bar { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.filter-chip {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .45rem 1rem;
  border: 2px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink);
  font-family: var(--font-head); font-weight: 500; font-size: .98rem;
}
.filter-chip:hover { border-color: var(--ink); color: var(--ink); }
.filter-chip[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-count { font-size: .82rem; background: var(--orange-wash); color: var(--ink); border-radius: 999px; padding: .1rem .5rem; }
.filter-chip[aria-current] .chip-count { background: var(--orange); color: var(--ink); }

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 2.5rem; }
.pager a {
  display: grid; place-items: center; min-width: 46px; min-height: 46px; border-radius: 50%;
  border: 2px solid var(--line); text-decoration: none; color: var(--ink); font-family: var(--font-head); font-weight: 600;
}
.pager a:hover { border-color: var(--ink); }
.pager a[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }

.empty-state { text-align: center; max-width: 34rem; margin: 0 auto; padding: 3rem 1.5rem; border: 2px dashed var(--line); border-radius: var(--radius-l); }
.empty-state .button-row { justify-content: center; }

/* ---------- Single project ---------- */

.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; font-size: .98rem; margin-bottom: 1.1rem; }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; color: var(--ink-soft); }
.breadcrumb a { color: var(--ink); }
.breadcrumb [aria-current] { color: var(--ink-soft); }
.project-head h1 { margin-top: .75rem; max-width: 24ch; }
.project-facts { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; font-size: 1.05rem; }
.project-facts i { color: var(--orange-strong); margin-right: .3rem; }

.project-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(2rem, 4vw, 3.5rem); padding-top: clamp(2rem, 5vw, 3rem); padding-bottom: var(--section); align-items: start; }
.project-cover {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  border-radius: var(--radius-l); overflow: hidden; background: var(--orange-wash); margin-bottom: 2rem;
}
.project-cover img { width: 100%; max-height: 560px; object-fit: cover; transition: transform .6s ease; }
.project-cover:hover img { transform: scale(1.04); }
.zoom-hint {
  position: absolute; right: 1rem; bottom: 1rem; background: rgba(0,0,0,.82); color: #fff;
  padding: .4rem .8rem; border-radius: 999px; font-size: .9rem; font-family: var(--font-head);
}
.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 0; }
.tag-list li { background: var(--orange-wash); border-radius: 999px; padding: .3rem .85rem; font-size: .95rem; }
.project-section { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: .75rem; }
.photo-grid .photo-tile { aspect-ratio: 1; }

.updates { list-style: none; display: grid; gap: 1.75rem; }
.update { padding-left: 1.4rem; border-left: 3px solid var(--orange); }
.update time { font-family: var(--font-head); font-weight: 500; color: var(--orange-text); font-size: .98rem; }
.update h3 { margin: .2rem 0 .4rem; }

.project-side { position: sticky; top: calc(var(--header-h) + 1.25rem); display: grid; gap: 1.25rem; }
.side-box { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1.5rem; display: grid; gap: 1rem; background: #fff; }
.side-box h2 { font-size: 1.2rem; margin: 0; }
.facts { margin: 0; display: grid; gap: .75rem; }
.facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-bottom: 1px solid var(--line); padding-bottom: .6rem; }
.facts dt { color: var(--ink-soft); font-size: 1rem; }
.facts dd { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; }
.meter-label { display: flex; justify-content: space-between; gap: 1rem; font-size: 1rem; margin-bottom: .45rem; }
.meter-bar { height: 12px; border-radius: 999px; background: #EDEDED; overflow: hidden; }
.meter-bar span { display: block; height: 100%; border-radius: 999px; background: var(--ink); }
.meter-funding .meter-bar span { background: var(--orange); }
.share-buttons { display: flex; flex-wrap: wrap; gap: .5rem; }
.share-btn {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 42px; padding: .4rem .9rem;
  border: 2px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); text-decoration: none;
  font-family: var(--font-head); font-weight: 500; font-size: .95rem; cursor: pointer;
}
.share-btn:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- Gallery ---------- */

.gallery-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: .9rem; }
.gallery-tile { aspect-ratio: 4 / 3; }
.gallery-title {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.2rem .9rem .75rem; text-align: left;
  background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.7) 35%, rgba(0,0,0,.9)); color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.6);
  font-family: var(--font-head); font-weight: 500; font-size: .98rem; line-height: 1.3;
}

/* ---------- Get involved / donate ---------- */

.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.way h2 { font-size: 1.35rem; }
.way > p { color: var(--ink-soft); }
.way .check-list { margin-bottom: 1rem; }
.way .text-link { margin-top: .5rem; }

.gifts { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.gift { border-top: 4px solid var(--orange); padding-top: 1.1rem; }
.gift-amount { display: block; font-family: var(--font-head); font-weight: 700; font-size: clamp(2.4rem, 4.5vw, 3.2rem); line-height: 1; letter-spacing: -0.03em; margin-bottom: .6rem; }
.gift p { color: var(--ink-soft); }
.gift i { color: var(--orange-strong); margin-right: .3rem; }

.accounts { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 1.25rem; align-items: start; }
.account { background: #fff; border-radius: var(--radius-m); padding: 1.6rem 1.5rem; }
.account h3 { font-size: 1.15rem; display: flex; gap: .6rem; align-items: baseline; }
.account h3 i { color: var(--orange-strong); }
.account dl { margin: 0; display: grid; gap: .7rem; }
.account dt { font-size: .92rem; color: var(--ink-soft); }
.account dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-weight: 700; }
.mono-num { font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; letter-spacing: .02em; }
.copy-btn {
  border: 2px solid var(--ink); background: #fff; border-radius: 999px; padding: .15rem .75rem; min-height: 34px;
  font-family: var(--font-head); font-weight: 500; font-size: .85rem; cursor: pointer;
}
.copy-btn:hover, .copy-btn.is-done { background: var(--ink); color: #fff; }
.account-note { font-size: .95rem; color: var(--ink-soft); margin: 1rem 0 0; }
.account-other p { color: var(--ink-soft); }

/* ---------- Forms ---------- */

.form-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.form-intro p { color: var(--ink-soft); }
.form-card { background: #fff; border-radius: var(--radius-l); padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--line); }
.section-wash .form-card { border-color: transparent; }
.form-card > h2 { font-size: 1.5rem; }
.form { display: grid; gap: 1.2rem; }
.field { display: grid; gap: .4rem; min-width: 0; border: 0; padding: 0; margin: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field-row-amount { grid-template-columns: 2fr 1fr; }
.field label, .field legend { font-family: var(--font-head); font-weight: 600; font-size: 1rem; padding: 0; }
.optional { font-family: var(--font-body); font-weight: 400; color: var(--ink-soft); font-size: .92rem; }
.field-hint { margin: -.6rem 0 0; font-size: .95rem; color: var(--ink-soft); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .7rem .9rem; font: inherit; font-size: 1.05rem; color: var(--ink);
  background: #fff; border: 2px solid #8C8C8C; border-radius: var(--radius-s);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: 3px solid var(--focus); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: #B3261E; }
.field-error { color: #B3261E; font-size: .98rem; margin: 0; font-weight: 700; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: .5rem; }
.choice-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice {
  display: flex; align-items: flex-start; gap: .6rem; padding: .7rem .85rem; border: 2px solid var(--line);
  border-radius: var(--radius-s); cursor: pointer; font-family: var(--font-body) !important; font-weight: 400 !important; line-height: 1.35;
}
.choice:hover { border-color: var(--ink); }
.choice input { width: 1.2rem; height: 1.2rem; margin: .1rem 0 0; accent-color: var(--orange); flex: none; }
.choice:has(input:checked) { border-color: var(--ink); background: var(--orange-wash); }
.form .btn { justify-self: start; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice { border-radius: var(--radius-s); padding: 1rem 1.2rem; margin-bottom: 1.25rem; }
.notice p:last-child { margin: 0; }
.notice h3 { margin-bottom: .3rem; }
.notice-success { background: var(--orange-wash); border-left: 5px solid var(--orange); }
.notice-error { background: #FBEAE8; border-left: 5px solid #B3261E; }

/* ---------- Contact ---------- */

.contact-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-list { list-style: none; display: grid; gap: 1.5rem; margin-top: 1.5rem; }
.contact-list li { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; }
.contact-icon { width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; background: var(--orange-soft); color: var(--orange-text); font-size: 1.15rem; }
.contact-list h3 { font-size: 1.1rem; margin: .2rem 0 .2rem; }
.contact-list p { margin: 0; }
.contact-list a { color: var(--ink); font-weight: 700; }
.offices { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem; margin-top: 1.5rem; align-items: start; }
.office { background: #fff; border-radius: var(--radius-m); padding: 1.5rem; }
.office address { margin-bottom: .5rem; }
.office a { color: var(--ink); font-weight: 700; }
.map-frame { margin-top: 1rem; border-radius: var(--radius-s); overflow: hidden; aspect-ratio: 16 / 9; background: var(--orange-wash); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: var(--on-dark); padding: clamp(3rem, 7vw, 4.5rem) 0 0; border-top: 6px solid var(--orange); --focus: #fff; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--orange); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.3fr 1.1fr; gap: 2.5rem; }
.footer-name { font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; color: #fff; margin-bottom: .6rem; }
.footer-about p { font-size: 1rem; }
.site-footer h2 { font-size: 1.05rem; color: var(--orange); margin-bottom: 1rem; font-weight: 600; }
.footer-col ul { list-style: none; display: grid; gap: .5rem; font-size: 1rem; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.footer-contact li { display: grid; grid-template-columns: 1.4rem 1fr; gap: .5rem; }
.footer-contact i { color: var(--orange); margin-top: .3rem; }
.footer-give p { font-size: 1rem; }
.footer-give .btn { margin-bottom: 1rem; }
.site-footer .btn-primary { color: var(--ink); }
.footer-give .btn-primary:hover { background: #fff; border-color: #fff; color: var(--ink); }
.footer-link-strong { display: block; font-family: var(--font-head); font-weight: 600; }
.social-list { list-style: none; display: flex; gap: .5rem; margin-top: 1.25rem; }
.social-list a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); }
.social-list a:hover { border-color: var(--orange); }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem;
  margin-top: 3rem; padding-top: 1.25rem; padding-bottom: 1.5rem; border-top: 1px solid rgba(255,255,255,.18); font-size: .92rem;
}
.footer-base p { margin: 0; }

.whatsapp-float {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 40;
  display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.1rem .7rem .9rem; min-height: 52px;
  background: var(--orange); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; text-decoration: none;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem; box-shadow: 0 6px 20px rgba(0,0,0,.2);
}
.whatsapp-float i { font-size: 1.6rem; color: var(--ink); }
.whatsapp-float:hover { background: var(--ink); color: #fff; }
.whatsapp-float:hover i { color: var(--orange); }

/* ---------- Lightbox ---------- */

.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(0,0,0,.95); color: #fff; }
.lightbox::backdrop { background: rgba(0,0,0,.95); }
.lightbox-inner { height: 100%; display: flex; flex-direction: column; }
.lightbox-top { display: flex; justify-content: space-between; align-items: center; padding: .9rem 1.1rem; }
.lightbox-count { margin: 0; font-family: var(--font-head); font-size: 1rem; }
.lightbox-tools { display: flex; gap: .5rem; }
.lb-btn {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4);
  background: rgba(255,255,255,.06); color: #fff; cursor: pointer; font-size: 1.15rem; --focus: #fff;
}
.lb-btn:hover { background: #fff; color: var(--ink); }
.lb-btn[aria-pressed="true"] { background: #fff; color: var(--ink); }
.lightbox-stage { flex: 1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .75rem; padding: 0 1rem 1rem; min-height: 0; }
.lightbox-figure { height: 100%; display: flex; flex-direction: column; min-height: 0; }
.lightbox-frame { flex: 1; min-height: 0; overflow: hidden; display: grid; place-items: center; border-radius: var(--radius-s); touch-action: pan-y; }
.lightbox-img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .25s ease; cursor: zoom-in; user-select: none; }
.lightbox.is-zoomed .lightbox-img { transform: scale(2.2); cursor: zoom-out; }
.lightbox-caption { padding: .9rem 0 0; max-width: 46rem; margin: 0 auto; text-align: center; min-height: 3rem; }
.lightbox-caption strong { display: block; font-family: var(--font-head); font-size: 1.15rem; }
.lightbox-caption span { color: var(--on-dark); }

/* ---------- Responsive ---------- */

@media (max-width: 1120px) {
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); padding: .75rem var(--gutter) 1.25rem; box-shadow: 0 16px 24px rgba(0,0,0,.12); }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; max-width: var(--wrap); margin: 0 auto; }
  .main-nav a { padding: .85rem .5rem; font-size: 1.1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .menu-toggle { display: inline-flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-grid, .story-grid, .form-layout, .contact-layout, .project-layout { grid-template-columns: 1fr; }
  .hero-photos { width: min(100%, 400px); }
  .impact-list { grid-template-columns: repeat(2, 1fr); }
  .ages, .aims, .age-programmes, .ways, .gifts, .accounts, .offices { grid-template-columns: 1fr; }
  .path-list { grid-template-columns: 1fr; }
  .path, .path + .path { padding: 1.5rem 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .pillars { grid-template-columns: 1fr; }
  .project-side { position: static; }
  .story-photo { order: -1; }
  .page-head::after { width: 220px; height: 220px; border-width: 16px; right: -110px; }
  .photo-strip { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 160px; }
  .photo-strip .photo-tile:first-child { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 600px) {
  body { font-size: 1.0625rem; }
  .a11y-toggle-text { display: none; }
  .header-donate { display: none; }
  .main-nav .nav-donate { display: block; }
  .main-nav .nav-donate a { color: var(--orange-text); font-weight: 600; }
  .brand img { width: 44px; height: 44px; }
  .brand-name { font-size: .95rem; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .timeline::before { left: 2.6rem; }
  .timeline li { grid-template-columns: 5.2rem 1fr; }
  .whatsapp-float span { display: none; }
  .whatsapp-float { padding: .7rem; width: 56px; height: 56px; justify-content: center; }
  .lightbox-stage { grid-template-columns: 1fr; }
  .lb-prev, .lb-next { position: absolute; bottom: 1rem; z-index: 2; }
  .lb-prev { left: 1rem; }
  .lb-next { right: 1rem; }
  .lightbox-caption { padding-bottom: 4rem; }
  .page-head::after { display: none; }
}

/* ---------- Accessibility choices ---------- */

html.a11y-contrast {
  --ink: #000; --ink-soft: #1F1F1F; --line: #000; --on-dark: #FFF;
  --orange-wash: #FFF; --orange-strong: #7A3200; --orange-text: #7A3200; --orange-soft: #FFF; --focus: #0047AB;
}
html.a11y-contrast body { background: #fff; }
html.a11y-contrast .btn-primary { background: #000; border-color: #000; color: #fff; }
html.a11y-contrast .btn-primary:hover { background: #fff; color: #000; }
html.a11y-contrast .page-head, html.a11y-contrast .section-wash, html.a11y-contrast .a11y-panel { border-top: 2px solid #000; border-bottom: 2px solid #000; }
html.a11y-contrast .page-head::after { display: none; }
html.a11y-contrast a { text-decoration: underline; }
html.a11y-contrast .project-card, html.a11y-contrast .age, html.a11y-contrast .quote, html.a11y-contrast .account,
html.a11y-contrast .office, html.a11y-contrast .age-programme, html.a11y-contrast .form-card { border: 2px solid #000; }
html.a11y-contrast .site-footer { --focus: #FFD400; }

html.a11y-spacing body { letter-spacing: .05em; word-spacing: .16em; line-height: 1.9; }
html.a11y-spacing p, html.a11y-spacing li { margin-bottom: 1.2em; }
html.a11y-spacing h1, html.a11y-spacing h2, html.a11y-spacing h3 { line-height: 1.4; letter-spacing: .02em; }

html.a11y-links a { text-decoration: underline !important; text-decoration-thickness: 2px !important; }

html.a11y-calm *, html.a11y-calm *::before, html.a11y-calm *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-calm .project-card:hover img, html.a11y-calm .photo-tile:hover img, html.a11y-calm .gallery-tile:hover img, html.a11y-calm .project-cover:hover img { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .project-card:hover img, .photo-tile:hover img, .gallery-tile:hover img, .project-cover:hover img { transform: none; }
}

@media print {
  .site-header, .whatsapp-float, .site-footer, .lightbox, .filter-bar, .share-box { display: none !important; }
  .page-head::after { display: none; }
}

/* ---------- Fixes found in testing ---------- */
.field .choice { padding: .7rem .85rem; font-size: 1rem; }
.contact-layout > *, .contact-list li > div, .form-layout > * { min-width: 0; }
.contact-list a, .footer-contact a, .office a { overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .hero-photos { justify-self: center; width: min(calc(100% - 3.5rem), 360px); margin-top: 1rem; }
}
