/* Layout: "the river runs through it" - each section is a bank of the Shabelle; a blue river line divides them, and the hero mirrors the logo (green farms | river | gold rangeland). */
:root {
  /* Palette sampled from the H.I.C.A logo: royal-blue ring, ribbon navy, map/river blue, leaf green, lime field, sun gold. */
  --paper: #F4F7FC;
  --surface: #FFFFFF;
  --ink: #0B1F3F;
  --muted: #4A5A72;
  --line: #D6E0EE;
  --navy: #0447A2;
  --green: #0E7C26;
  --green-soft: #E3F3E3;
  --gold: #FACF33;
  --gold-soft: #FFF6D6;
  --gold-ink: #7A5800;
  --river: #0B66C2;
  --river-fill: #0759B8;
  --on-color: #FFFFFF;
  --ph-bg: #FFF6D6;
  --ph-ink: #6B4A00;
  --band: #01348A;
  --band-fg: #FFFFFF;
  --band-green: #0A5A1E;
  --footer: #021F52;
  --display: "Montserrat", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --body: "Noto Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  --step-4: clamp(2.2rem, 1.5rem + 3.2vw, 3.6rem);
  --wrap: 1140px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #08142B; --surface: #0F1E3A; --ink: #E8EEF7; --muted: #A9B8CF; --line: #22355A;
    --navy: #8DB8F5; --green: #5CC46E; --green-soft: #12301C; --gold: #FACF33; --gold-soft: #332A0C;
    --gold-ink: #FAD75A; --river: #5AB0F2; --river-fill: #0759B8; --on-color: #08142B; --ph-bg: #3A3010; --ph-ink: #F6D77A;
    --band: #022A6E; --band-fg: #EEF3FB; --band-green: #0B3A17; --footer: #050E20;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #08142B; --surface: #0F1E3A; --ink: #E8EEF7; --muted: #A9B8CF; --line: #22355A;
  --navy: #8DB8F5; --green: #5CC46E; --green-soft: #12301C; --gold: #FACF33; --gold-soft: #332A0C;
  --gold-ink: #FAD75A; --river: #5AB0F2; --river-fill: #0759B8; --on-color: #08142B; --ph-bg: #3A3010; --ph-ink: #F6D77A;
  --band: #022A6E; --band-fg: #EEF3FB; --band-green: #0B3A17; --footer: #050E20;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 10; background: var(--surface);
}
h1, h2, h3 { font-family: var(--display); line-height: 1.15; text-wrap: balance; margin: 0; color: var(--navy); overflow-wrap: anywhere; }
.section-head--center > * { max-width: 100%; }
p { margin: 0; }
a { color: var(--river); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

/* Text for screen readers only */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* Language switching */
html:not([data-lang="so"]) [data-l="so"], html[data-lang="so"] [data-l="en"] { display: none; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
section { scroll-margin-top: 84px; }
.band { padding-block: clamp(3rem, 6vw, 5.5rem); }
.band--surface { background: var(--surface); }

.eyebrow {
  font-family: var(--display); font-weight: 700; font-size: .78rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--green);
}
.section-head { display: grid; gap: .75rem; max-width: 46rem; margin-bottom: 2.5rem; }
.section-head h2 { font-size: var(--step-3); }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* Placeholder marker */
.ph {
  background: var(--ph-bg); color: var(--ph-ink);
  border-bottom: 1px dashed currentColor; padding: 0 .25em; border-radius: 2px;
  font-weight: 600; white-space: nowrap;
}
.ph--block { white-space: normal; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 1rem; padding-block: .6rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: inherit; min-width: 0; }
.brand img { width: 48px; height: auto; flex: none; }
.brand-text { display: grid; line-height: 1.1; min-width: 0; }
.brand-text strong { font-family: var(--display); font-weight: 800; font-size: 1.45rem; color: var(--navy); letter-spacing: .02em; }
.brand-text span { font-size: .74rem; line-height: 1.2; color: var(--muted); max-width: 12.5rem; margin-top: .1rem; }
@media (max-width: 760px) {
  .brand-text > span { white-space: normal; overflow: visible; font-size: .7rem; line-height: 1.2; margin-top: .1rem; }
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 50; padding: .7rem 1rem; border-radius: 8px;
  background: var(--navy); color: var(--surface); font: 700 .95rem var(--display); text-decoration: none;
}
.skip-link:focus { top: 12px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; flex: none; }
.lang button {
  font: 600 .8rem var(--display); letter-spacing: .06em; border: 0; background: transparent;
  color: var(--muted); padding: .35rem .7rem; border-radius: 999px; cursor: pointer; min-height: 34px; min-width: 40px;
}
.lang button[aria-pressed="true"] { background: var(--navy); color: var(--surface); }
.theme-toggle {
  flex: none; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 999px;
  background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; padding: 0;
}
.theme-toggle:hover { color: var(--green); border-color: var(--green); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle[data-mode="dark"] .i-moon, .theme-toggle[data-mode="light"] .i-sun { display: none; }
/* Main navigation: dropdowns on desktop, a menu panel below the header on smaller screens */
.nav { margin-left: auto; }
.nav-list, .sub { list-style: none; margin: 0; padding: 0; }
.nav-list { display: flex; align-items: center; gap: .2rem 1.15rem; }
.nav-list > li { position: relative; display: flex; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; white-space: nowrap; }
.nav a:hover { color: var(--green); }
.nav-list > li > a[aria-current="page"] { color: var(--green); font-weight: 600; box-shadow: inset 0 -2px 0 var(--green); }
.sub-toggle {
  border: 0; background: transparent; color: var(--muted); padding: 0; width: 22px; height: 22px;
  display: grid; place-items: center; cursor: pointer; border-radius: 6px;
}
.sub-toggle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.has-sub.open > .sub-toggle svg { transform: rotate(180deg); }
.sub {
  display: none; position: absolute; top: calc(100% + .9rem); left: -1rem; z-index: 30; min-width: 15rem;
  background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--green); border-radius: 10px;
  padding: .45rem; box-shadow: 0 14px 34px rgba(2, 22, 58, .14);
}
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -1.1rem; height: 1.1rem; }
.sub a { display: block; padding: .55rem .75rem; border-radius: 6px; font-size: .92rem; }
.sub a:hover { background: var(--paper); }
.has-sub.open > .sub { display: block; }
@media (min-width: 1181px) {
  .has-sub:hover > .sub, .has-sub:focus-within > .sub { display: block; }
}
.menu-toggle {
  display: none; flex: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px;
  background: transparent; color: var(--ink); place-items: center; cursor: pointer; padding: 0;
}
.menu-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.menu-toggle .i-close, .menu-open .menu-toggle .i-menu { display: none; }
.menu-open .menu-toggle .i-close { display: block; }
@media (max-width: 1180px) {
  .menu-toggle { display: grid; }
  .btn--join { margin-left: auto; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; margin: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(2, 22, 58, .12);
    max-height: calc(100dvh - 72px); overflow-y: auto; padding: .4rem max(16px, env(safe-area-inset-left, 0px)) 1.2rem;
  }
  .menu-open .nav { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; max-width: var(--wrap); margin-inline: auto; }
  .nav-list > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav-list > li > a { flex: 1; padding: .85rem 0; font-size: 1.05rem; box-shadow: none !important; }
  .sub-toggle { width: 44px; height: 44px; }
  .sub { position: static; flex-basis: 100%; min-width: 0; border: 0; box-shadow: none; padding: 0 0 .7rem .6rem; background: transparent; }
  .sub::before { display: none; }
  .sub a { font-size: .98rem; color: var(--muted); }
}
@media (max-width: 480px) { .header-row .btn--join { display: none; } .lang { margin-left: auto; } }

/* Photo heroes: the home slider and the banner at the top of each inner page */
.photo-hero { position: relative; isolation: isolate; color: #FFFFFF; display: grid; align-items: end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.photo-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(2,22,58,.92) 0%, rgba(2,22,58,.62) 45%, rgba(2,22,58,.15) 100%);
}
.photo-hero > .wrap { width: 100%; }
.photo-hero .sample-tag { left: auto; right: max(16px, env(safe-area-inset-right, 0px)); top: .8rem; }
.hero-copy { display: grid; gap: 1.25rem; min-width: 0; max-width: 46rem; padding-block: clamp(6rem, 14vw, 9rem) clamp(5rem, 8vw, 6rem); }
.photo-hero .eyebrow { color: var(--gold); }
.hero-title { font-size: var(--step-4); font-weight: 800; letter-spacing: -.01em; color: #FFFFFF; }
.hero-title em { font-style: normal; color: var(--gold); }
.photo-hero .lead { font-size: 1.15rem; color: rgba(255,255,255,.9); max-width: 36rem; }
.photo-hero .btn--ghost { border-color: #FFFFFF; color: #FFFFFF; }
.photo-hero .btn--ghost:hover { background: #FFFFFF; color: #02163A; }
.photo-hero .btn--primary { background: var(--gold); color: #1B1B1B; }

/* Home slider: slides stack in one grid cell so the tallest sets the height */
.hero { position: relative; background: #02163A; }
.slides { display: grid; }
.slide { grid-area: 1 / 1; min-height: min(78vh, 640px); opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s; }
.slide.is-active { opacity: 1; visibility: visible; }
@media (prefers-reduced-motion: reduce) { .slide { transition: none; } }
.slider-controls {
  position: absolute; left: 0; right: 0; bottom: clamp(1.4rem, 3vw, 2rem); z-index: 2;
  pointer-events: none;
}
.slider-controls .wrap { display: flex; align-items: center; gap: .6rem; }
.slider-controls > * { pointer-events: auto; }
.slider-btn {
  width: 40px; height: 40px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.7); background: rgba(2,22,58,.35);
  color: #FFFFFF; display: grid; place-items: center; cursor: pointer; padding: 0;
}
.slider-btn:hover { background: #FFFFFF; color: #02163A; }
.slider-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.slider-btn .i-play, .slider-btn[data-paused="true"] .i-pause { display: none; }
.slider-btn[data-paused="true"] .i-play { display: block; }
.dots { display: flex; gap: .2rem; margin-inline: .3rem; }
.dots button { width: 28px; height: 40px; border: 0; background: transparent; padding: 0; cursor: pointer; display: grid; place-items: center; }
.dots button::before { content: ""; width: 22px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.45); transition: background .3s; }
.dots button[aria-current="true"]::before { background: var(--gold); }

/* Inner-page banner */
.page-hero { min-height: clamp(300px, 42vh, 420px); }
.page-hero .hero-copy { padding-block: clamp(5rem, 10vw, 7rem) clamp(2.2rem, 5vw, 3.2rem); gap: .9rem; }
.page-hero .hero-title { font-size: var(--step-4); }
.crumbs { font-size: .88rem; color: rgba(255,255,255,.8); display: flex; gap: .5rem; flex-wrap: wrap; }
.crumbs a { color: #FFFFFF; text-decoration: none; }
.crumbs a:hover { color: var(--gold); }

@media (max-width: 560px) {
  .slide { min-height: 0; }
  .hero-copy { padding-block: 4rem 5.5rem; gap: 1rem; }
  .hero-title, .page-hero .hero-title { font-size: clamp(1.9rem, 1.2rem + 3.6vw, 2.3rem); }
  .photo-hero .lead { font-size: 1.05rem; }
  .photo-hero .actions { gap: .6rem; }
  .photo-hero .actions .btn { padding: .75rem 1.05rem; font-size: .9rem; }
  .page-hero { min-height: 0; }
  .page-hero .hero-copy { padding-block: 4rem 2rem; }
}
.motto {
  font-family: var(--display); font-weight: 700; font-size: .85rem; letter-spacing: .16em;
  text-transform: uppercase; color: #FFFFFF; display: flex; flex-wrap: wrap; gap: .35rem .7rem;
}
.motto i { font-style: normal; color: var(--gold); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .4rem; }
.btn {
  display: inline-flex; align-items: center; gap: .5rem; text-decoration: none;
  font: 700 .95rem var(--display); padding: .85rem 1.4rem; border-radius: 8px;
  border: 2px solid transparent;
}
.btn--primary { background: var(--green); color: var(--on-color); }
.btn--primary:hover { filter: brightness(1.08); }
.btn--ghost { border-color: var(--navy); color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--surface); }

/* Key figures band, straight under the hero */
.keyfigs { background: var(--band); color: var(--band-fg); }
.keyfigs ul { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.keyfigs li { padding: 1.8rem 1.2rem; display: grid; gap: .35rem; justify-items: center; text-align: center; border-left: 1px solid color-mix(in srgb, var(--band-fg) 18%, transparent); }
.keyfigs li:first-child { border-left: 0; }
.keyfigs b { font: 800 clamp(2.4rem, 1.8rem + 2.4vw, 3.4rem)/1 var(--display); color: var(--gold); font-variant-numeric: tabular-nums; }
.keyfigs span { font-size: .95rem; opacity: .9; max-width: 14rem; }
@media (max-width: 760px) {
  .keyfigs ul { grid-template-columns: 1fr 1fr; }
  .keyfigs li:nth-child(3) { border-left: 0; }
  .keyfigs li:nth-child(n+3) { border-top: 1px solid color-mix(in srgb, var(--band-fg) 18%, transparent); }
}

/* Header join button */
.btn--join { padding: .55rem 1rem; font-size: .88rem; background: var(--green); color: var(--on-color); flex: none; }
.btn--join:hover { filter: brightness(1.08); }


/* Region */
.region-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; align-items: stretch; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.region { padding: 1.6rem; display: grid; gap: .6rem; align-content: start; }
.region h3 { font-size: var(--step-1); }
.region .tag { font: 700 .72rem var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.towns { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.towns li { font-size: .85rem; padding: .2rem .65rem; border-radius: 999px; background: var(--green-soft); color: var(--ink); }
.region--range .towns li { background: var(--gold-soft); }
.region-river {
  width: 72px; min-height: 13rem; padding-block: 1rem; background: var(--river-fill); display: grid; place-items: center;
  writing-mode: vertical-rl; transform: rotate(180deg);
  font: 700 .72rem var(--display); letter-spacing: .2em; text-transform: uppercase; color: #FFFFFF;
}
.region-note { margin-top: 1.4rem; color: var(--muted); max-width: 52rem; }
@media (max-width: 760px) {
  .region-grid { grid-template-columns: 1fr; }
  .region-river { width: auto; min-height: 0; padding-block: 0; height: 44px; writing-mode: horizontal-tb; transform: none; }
}

/* About + pillars */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.about-copy { display: grid; gap: 1rem; min-width: 0; }
.about-copy h2 { font-size: var(--step-3); }
.about-copy p { color: var(--ink); max-width: 38rem; }
.facts { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; color: var(--muted); font-size: .95rem; }
.facts b { color: var(--ink); font-weight: 600; }
/* Three pillars as bold cards in the logo colours (fixed, so they read the same in dark mode) */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.pillar { border-radius: 14px; padding: 2rem 1.6rem; display: grid; gap: .6rem; align-content: start; color: #FFFFFF; }
.pillar .num { font: 800 .85rem var(--display); letter-spacing: .14em; opacity: .8; }
.pillar h3 { font-size: var(--step-2); letter-spacing: .04em; text-transform: uppercase; color: inherit; }
.pillar p { font-size: 1rem; opacity: .92; }
.pillar:nth-child(1) { background: #0E7C26; }
.pillar:nth-child(2) { background: #0759B8; }
.pillar:nth-child(3) { background: #FACF33; color: #1B1B1B; }
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } }

/* Programmes */
.programs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.program {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; display: grid; grid-template-rows: auto 1fr; min-width: 0;
}
.program .photo { border-radius: 0; aspect-ratio: 16 / 10; }
.program-body { padding: 1.3rem 1.4rem 1.5rem; display: grid; gap: .5rem; align-content: start; }
.program h3 { font-size: 1.1rem; }
.program p { color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .programs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .programs { grid-template-columns: 1fr; } }

/* Impact */
.impact { background: var(--band); }
.impact .section-head h2, .impact .eyebrow { color: var(--band-fg); }
.impact .section-head p { color: var(--band-fg); opacity: .8; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: color-mix(in srgb, var(--band-fg) 22%, transparent); border-radius: 12px; overflow: hidden; }
.stat { background: var(--band); padding: 1.6rem 1.4rem; display: grid; gap: .3rem; justify-items: start; }
.stat .num { font: 800 2.4rem/1 var(--display); color: var(--gold); font-variant-numeric: tabular-nums; }
.stat .label { color: var(--band-fg); opacity: .88; font-size: .95rem; }
.impact .ph { background: transparent; color: var(--gold); border-bottom-color: var(--gold); padding: 0; }
.stats--types { grid-template-columns: repeat(3, 1fr); }
.stat .kind { font: 800 1.5rem/1.1 var(--display); color: var(--gold); }
.stat-note { margin-top: 1rem; color: var(--band-fg); opacity: .75; font-size: .88rem; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats--types { grid-template-columns: 1fr; } }

/* Partner */
.partner-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); }
.ways { display: grid; gap: 1rem; }
.way { display: grid; grid-template-columns: auto 1fr; gap: .2rem 1rem; padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.way .dot { grid-row: span 2; width: 12px; height: 12px; border-radius: 50%; margin-top: .45rem; }
.way h3 { font-size: 1.02rem; }
.way p { color: var(--muted); font-size: .93rem; grid-column: 2; }
.why { display: grid; gap: 1.2rem; align-content: start; }
.why h3 { font-size: var(--step-1); }
.why ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .9rem; }
.why li { display: grid; grid-template-columns: 22px 1fr; gap: .7rem; }
.why li svg { width: 22px; height: 22px; stroke: var(--green); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; margin-top: .15rem; }
.why li b { display: block; color: var(--ink); }
.why li span { color: var(--muted); font-size: .95rem; }
@media (max-width: 860px) { .partner-grid { grid-template-columns: 1fr; } }

/* Accountability */
.ledger { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.ledger-row { display: grid; grid-template-columns: 1fr auto; gap: 1rem; padding: 1rem 1.3rem; border-bottom: 1px solid var(--line); align-items: center; }
.ledger-row:last-child { border-bottom: 0; }
.ledger-row div { min-width: 0; }
.ledger-row b { display: block; font-weight: 600; }
.ledger-row span.detail { color: var(--muted); font-size: .92rem; }
.status {
  font: 700 .7rem var(--display); letter-spacing: .1em; text-transform: uppercase;
  padding: .3rem .65rem; border-radius: 999px; background: var(--ph-bg); color: var(--ph-ink); white-space: nowrap;
}
@media (max-width: 560px) { .ledger-row { grid-template-columns: 1fr; gap: .5rem; } .status { justify-self: start; } }

/* News */
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.post { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: grid; grid-template-rows: auto auto 1fr; }
.post .strip { height: 8px; }
.post .body { padding: 1.3rem; display: grid; gap: .55rem; align-content: start; }
.post time { justify-self: start; font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.post h3 { font-size: 1.05rem; }
.post p { color: var(--muted); font-size: .93rem; }
@media (max-width: 860px) { .news { grid-template-columns: 1fr; } }

/* Partners logos */
.logos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.logo-slot {
  height: 84px; border: 1.5px dashed var(--line); border-radius: 10px; display: grid; place-items: center;
  color: var(--muted); font-size: .85rem; text-align: center; padding: .5rem;
}
@media (max-width: 760px) { .logos { grid-template-columns: repeat(2, 1fr); } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-list { display: grid; gap: 1.1rem; margin: 0; }
.contact-list div { display: grid; gap: .15rem; }
.contact-list dt { font: 700 .74rem var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-list dd { margin: 0; font-size: 1.05rem; }
.cta-panel { background: var(--green); color: var(--on-color); border-radius: 14px; padding: 2rem; display: grid; gap: 1rem; }
.cta-panel h3 { color: inherit; font-size: var(--step-2); }
.cta-panel p { opacity: .92; }
.cta-email { font-weight: 600; font-size: 1.05rem; }
.btn--wa { background: #25D366; color: #062A12; justify-self: start; }
.btn--wa:hover { filter: brightness(1.06); }
.cta-panel .btn--wa { background: #FFFFFF; color: #0E7C26; }
.btn--wa svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
@media (max-width: 860px) { .contact-grid, .about-grid, .hero-grid { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--footer); color: #DCE6F5; padding-block: 3rem 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-brand { display: flex; gap: .8rem; align-items: center; margin-bottom: .9rem; }
.footer-brand img { width: 52px; height: auto; }
.footer-brand b { font: 800 1.3rem var(--display); color: #FFFFFF; }
.footer-about { font-size: .93rem; color: #B9C7DD; max-width: 24rem; }
.footer-title { color: #FFFFFF; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .9rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; font-size: .95rem; }
.site-footer a { color: #DCE6F5; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.15);
  display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; font-size: .85rem; color: #A9B8CF;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* Coloured band (Join) */
.band--green { background: var(--band-green); color: #FFFFFF; }
.band--green .eyebrow { color: var(--gold); }
.band--green .section-head h2, .band--green .join-who h3 { color: #FFFFFF; }
.band--green .section-head p { color: rgba(255,255,255,.88); }
.band--green .join-who li svg { stroke: var(--gold); }

.post .more-link { font-weight: 600; font-size: .93rem; }

/* Vision and mission as solid colour cards */
.vm-card { border: 0; color: #FFFFFF; }
.vm-card:nth-child(1) { background: #0E7C26; }
.vm-card:nth-child(2) { background: #01348A; }
.vm-card h3, .vm-card .eyebrow { color: #FFFFFF; }
.vm-card .eyebrow { opacity: .8; }

/* Partner photo */
.partner-photo { aspect-ratio: 16 / 10; }

/* Photos (AI-generated samples: replace with real H.I.C.A photos before launch) */
.photo { position: relative; margin: 0; border-radius: 12px; overflow: hidden; background: var(--line); min-width: 0; }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sample-tag {
  position: absolute; top: .6rem; left: .6rem; font: 700 .64rem var(--display); letter-spacing: .1em;
  text-transform: uppercase; background: rgba(0,0,0,.58); color: #FFFFFF; padding: .22rem .55rem; border-radius: 999px;
}
.about-side { display: grid; gap: 1.6rem; min-width: 0; }
.about-photo { aspect-ratio: 3 / 2; }
.photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2.5rem; }
.photos .photo { aspect-ratio: 3 / 4; }
.photos figcaption {
  position: absolute; inset: auto 0 0; padding: 2.2rem .9rem .8rem;
  background: linear-gradient(to top, rgba(0,0,0,.72), transparent);
  color: #FFFFFF; font: 700 .92rem var(--display);
}
@media (max-width: 860px) { .photos { grid-template-columns: repeat(2, 1fr); } }
.post .photo { border-radius: 0; aspect-ratio: 3 / 2; }

/* Join */
.join-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.join-who { display: grid; gap: 1.2rem; align-content: start; }
.join-who h3, .join-steps h3 { font-size: var(--step-1); }
.join-who ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .8rem; }
.join-who li { display: grid; grid-template-columns: 22px 1fr; gap: .7rem; }
.join-who li svg { width: 22px; height: 22px; stroke: var(--green); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; margin-top: .15rem; }
.join-steps { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.6rem; display: grid; gap: 1.2rem; }
.join-steps ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 1.1rem; counter-reset: step; }
.join-steps li { counter-increment: step; display: grid; grid-template-columns: 2.2rem 1fr; gap: .1rem .9rem; }
.join-steps li::before {
  content: counter(step); grid-row: span 2; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--navy); color: var(--surface);
  font: 800 .95rem var(--display);
}
.join-steps li b { font-family: var(--display); color: var(--navy); }
.join-steps li span { color: var(--muted); font-size: .95rem; }
.join-cta { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.join-cta p { color: var(--muted); font-size: .95rem; }
@media (max-width: 860px) { .join-grid { grid-template-columns: 1fr; } }

/* Vision, mission, objectives, principles */
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.vm-card { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--green); border-radius: 12px; padding: 1.6rem; display: grid; gap: .7rem; align-content: start; }
.vm-card:nth-child(2) { border-top-color: var(--river); }
.vm-card h3 { font-size: var(--step-1); }
.vm-card p { font-size: 1.05rem; }
.vm-lower { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 4rem); margin-top: 3rem; align-items: start; }
.vm-lower h3 { font-size: var(--step-1); margin-bottom: 1.1rem; }
.checklist { margin: 0; padding: 0; list-style: none; display: grid; gap: .75rem; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: .7rem; }
.checklist li svg { width: 22px; height: 22px; stroke: var(--green); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; margin-top: .15rem; }
.principles { margin: 0; padding: 0; list-style: none; display: grid; gap: .55rem; counter-reset: pr; }
.principles li { counter-increment: pr; display: grid; grid-template-columns: 1.9rem 1fr; gap: .8rem; align-items: center; }
.principles li::before {
  content: counter(pr); width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold-soft); color: var(--gold-ink); font: 800 .85rem var(--display);
}
.values { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1.3rem 0 0; padding: 0; list-style: none; }
.values li { font-size: .88rem; font-weight: 600; padding: .25rem .8rem; border-radius: 999px; background: var(--green-soft); }
.values-label { margin-top: 1.4rem; color: var(--muted); font-size: .92rem; }
@media (max-width: 860px) { .vm-grid, .vm-lower { grid-template-columns: 1fr; } }

/* Expected results (impact band) */
.outcomes { margin-top: 2.5rem; }
.outcomes h3 { color: var(--band-fg); font-size: var(--step-1); margin-bottom: 1rem; }
.outcomes ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.outcomes li { color: var(--band-fg); border-left: 3px solid var(--gold); padding: .2rem 0 .2rem .9rem; font-size: .95rem; }
@media (max-width: 860px) { .outcomes ul { grid-template-columns: 1fr; } }

/* Governance structure */
.structure { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1rem; }
.organ { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1.2rem 1.3rem; display: grid; gap: .3rem; align-content: start; }
.organ h3 { font-size: 1.02rem; }
.organ p { color: var(--muted); font-size: .93rem; }
.structure-note { color: var(--muted); font-size: .9rem; margin-bottom: 2.5rem; }
.ledger-title { font-size: var(--step-1); margin-bottom: 1rem; }
@media (max-width: 860px) { .structure { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .structure { grid-template-columns: 1fr; } }

/* Partner types */
.partner-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2rem; }
.partner-type { padding: 1rem 1.2rem; border: 1px solid var(--line); border-left: 4px solid var(--river); border-radius: 10px; background: var(--surface); font-weight: 500; }
@media (max-width: 860px) { .partner-types { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .partner-types { grid-template-columns: 1fr; } }

/* Centred section heading with a short gold rule, as on the reference sites */
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head--center h2::after {
  content: ""; display: block; width: 56px; height: 4px; border-radius: 4px; background: var(--gold); margin: .9rem auto 0;
}
.center-action { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 2.5rem; }
.section-head h1 { font-size: var(--step-4); }

/* Split band: photo on one side, text on the other, on a dark ground */
.band--dark { background: var(--footer); color: #DCE6F5; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split .photo { aspect-ratio: 4 / 3; border-radius: 14px; }
.split-copy { display: grid; gap: 1.1rem; justify-items: start; }
.split-copy h2 { font-size: var(--step-3); }
.band--dark h2 { color: #FFFFFF; }
.band--dark .eyebrow { color: var(--gold); }
.band--dark p { color: #C9D6EA; font-size: 1.05rem; }
.band--dark .btn--primary { background: var(--gold); color: #1B1B1B; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Quote band: the mission statement over a photo */
.quote-band { min-height: 0; align-items: center; text-align: center; }
.quote-band::before { background: rgba(2, 22, 58, .78); }
.quote-band .wrap { padding-block: clamp(4rem, 9vw, 6.5rem); display: grid; justify-items: center; gap: 1.3rem; }
.quote-band blockquote { margin: 0; max-width: 52rem; font: 700 clamp(1.35rem, 1rem + 1.6vw, 2.05rem)/1.4 var(--display); color: #FFFFFF; text-wrap: balance; }
.quote-band blockquote::before { content: "\201C"; display: block; font-size: 4rem; line-height: .6; color: var(--gold); margin-bottom: .6rem; }
.quote-band cite { font-style: normal; font: 700 .82rem var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }

/* Two calls to action side by side */
.cta-duo { display: grid; grid-template-columns: 1fr 1fr; }
.cta-duo > div { padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.2rem, 5vw, 4rem); display: grid; gap: 1rem; align-content: center; justify-items: start; }
.cta-duo h2 { font-size: var(--step-2); color: inherit; max-width: 26rem; }
.cta-duo p { max-width: 30rem; }
.cta-join { background: #FACF33; color: #1B1B1B; }
.cta-join .btn { background: #01348A; color: #FFFFFF; }
.cta-partner { background: #01348A; color: #FFFFFF; }
.cta-partner p { color: rgba(255,255,255,.88); }
.cta-partner .btn { background: #FACF33; color: #1B1B1B; }
.cta-duo .btn:hover { filter: brightness(1.1); }
@media (max-width: 760px) { .cta-duo { grid-template-columns: 1fr; } }

/* Service cards that link to the full page */
.program-body .more-link { margin-top: .3rem; font-weight: 600; font-size: .93rem; color: var(--green); text-decoration: none; }
.program-body .more-link:hover { text-decoration: underline; }

/* What we do: one row per service, photo alternating sides */
.service-list { display: grid; gap: clamp(3rem, 7vw, 5rem); }
.service-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; scroll-margin-top: 100px; }
.service-row:nth-child(even) .photo { order: 2; }
.service-row .photo { aspect-ratio: 3 / 2; }
.service-copy { display: grid; gap: .9rem; }
.service-copy .num { font: 800 .85rem var(--display); letter-spacing: .14em; color: var(--green); }
.service-copy h2 { font-size: var(--step-3); }
.service-copy > p { color: var(--muted); font-size: 1.08rem; }
@media (max-width: 860px) { .service-row { grid-template-columns: 1fr; } .service-row:nth-child(even) .photo { order: 0; } }

/* Membership benefits */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.benefit { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1.6rem; display: grid; gap: .6rem; align-content: start; }
.benefit .icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--green-soft); }
.benefit .icon svg { width: 26px; height: 26px; fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.benefit:nth-child(3n+2) .icon { background: var(--gold-soft); } .benefit:nth-child(3n+2) .icon svg { stroke: var(--gold-ink); }
.benefit:nth-child(3n) .icon svg { stroke: var(--river); }
.benefit h3 { font-size: 1.1rem; }
.benefit p { color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .benefits { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .benefits { grid-template-columns: 1fr; } }

/* Callout box */
.callout { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--green); border-radius: 12px; padding: 1.5rem 1.6rem; margin-top: 2.5rem; }
.callout h3 { font-size: var(--step-1); }
.callout p { color: var(--muted); max-width: 40rem; }
.callout > div { display: grid; gap: .35rem; }

section[id], [id].service-row { scroll-margin-top: 90px; }
.cta-join .eyebrow { color: inherit; }
.cta-partner .eyebrow { color: var(--gold); }
.split--top { align-items: start; }
.split--top .photo { margin-top: .4rem; }
.vm-lower--flush { margin-top: 0; }
.cta-panel--wide { grid-template-columns: 1fr auto; align-items: center; column-gap: 2rem; padding: clamp(1.8rem, 4vw, 2.6rem); }
.cta-panel--wide > * { grid-column: 1; }
.cta-panel--wide .btn--light { grid-column: 2; grid-row: 1 / span 2; align-self: end; justify-self: stretch; justify-content: center; }
.cta-panel--wide .btn--wa { grid-column: 2; grid-row: 3; align-self: start; justify-self: stretch; justify-content: center; }
@media (max-width: 760px) { .cta-panel--wide { grid-template-columns: 1fr; } .cta-panel--wide .btn--wa, .cta-panel--wide .btn--light { grid-column: 1; grid-row: auto; justify-self: start; } }
/* Phones: the logo and "H.I.C.A" are enough; the full name would collide with the buttons */
@media (max-width: 430px) {
  .brand-text > span { display: none; }
  .header-row { gap: .55rem; }
  .brand { gap: .5rem; }
  .brand img { width: 40px; }
  .brand-text strong { font-size: 1.2rem; }
  .lang button { min-width: 36px; padding-inline: .5rem; }
}
@media (max-width: 360px) { .brand-text { display: none; } }
/* Comfortable tap areas for small text links */
.footer-links { gap: .15rem; }
.footer-links a { display: inline-block; padding-block: .4rem; }
.footer-links li > span { display: inline-block; padding-block: .4rem; }
.program-body .more-link, .post .more-link { display: inline-block; justify-self: start; padding-block: .5rem; }

/* Forms */
.form-card { max-width: 46rem; margin-inline: auto; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--green); border-radius: 14px; padding: clamp(1.4rem, 4vw, 2.4rem); }
.band--surface .form-card { background: var(--paper); }
.site-form { display: grid; gap: 1.6rem; }
.site-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.site-form legend { font: 700 1.1rem var(--display); color: var(--navy); padding: 0; margin-bottom: 1rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.2rem; }
.field { display: grid; gap: .4rem; grid-column: 1 / -1; min-width: 0; }
.field--half { grid-column: auto; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .95rem; }
.field .req { color: #C0392B; }
.field .optional { font-weight: 400; color: var(--muted); font-size: .85rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line); border-radius: 8px; padding: .75rem .85rem; min-height: 48px;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid color-mix(in srgb, var(--green) 35%, transparent); border-color: var(--green); }
.field [aria-invalid="true"] { border-color: #C0392B; }
.hint { color: var(--muted); font-size: .85rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; }
.form-actions .btn { border: 0; cursor: pointer; min-height: 48px; }
.form-actions .btn[disabled] { opacity: .6; cursor: progress; }
.form-note { color: var(--muted); font-size: .88rem; }
.form-status { border-radius: 8px; padding: .85rem 1rem; background: #FDECEA; color: #8A1F14; font-weight: 600; }
.form-status p { display: none; }
.form-status p.show { display: block; }
.form-success { text-align: center; display: grid; justify-items: center; gap: .7rem; padding: 1.5rem 0; }
.form-success .icon { width: 64px; height: 64px; border-radius: 50%; background: var(--green-soft); display: grid; place-items: center; }
.form-success .icon svg { width: 34px; height: 34px; fill: none; stroke: var(--green); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.form-success h3 { font-size: var(--step-2); }
.form-success p { color: var(--muted); }
.btn--light { background: #FFFFFF; color: #0E7C26; justify-self: start; }
.btn--light:hover { filter: brightness(.96); }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.form-success h1 { font-size: var(--step-4); }
