/* ==========================================================================
   SOJOURN HOUSE — Rebuilding Lives. Restoring Hope.
   Core stylesheet: tokens, base, layout, header/navigation, hero, footer
   Pure CSS3 — no frameworks. Built for static hosting (cPanel).
   Brand: deep navy #152B3C · brand teal #007878 (logo) · warm gold #F5B942
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Palette */
  --navy: #152B3C;
  --navy-deep: #0F202D;
  --navy-soft: #1C3A50;
  --teal: #007878;            /* Sojourn House logo teal */
  --teal-deep: #005E5E;
  --teal-mist: #E3F0EF;
  --gold: #F5B942;
  --gold-deep: #C98F1B;
  --gold-soft: #FDF3DC;
  --cream: #F8F6F1;
  --paper: #FFFFFF;
  --charcoal: #263238;
  --muted: #57686F;
  --line: #E4E8EB;
  --blue-mist: #DCE8EE;
  --gray: #F3F5F6;

  /* Semantic */
  --ink: var(--charcoal);
  --link: var(--teal-deep);
  --danger: #B3261E;
  --success: #1E7B45;

  /* Type */
  --ff-head: "Manrope", "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --ff-body: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;

  /* Shape & depth */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-1: 0 1px 2px rgba(15, 32, 45, .05), 0 10px 30px rgba(15, 32, 45, .09);
  --shadow-2: 0 4px 10px rgba(15, 32, 45, .08), 0 24px 60px rgba(15, 32, 45, .18);
  --shadow-gold: 0 8px 22px rgba(201, 143, 27, .35);

  /* Layout */
  --container: 1200px;
  --header-h: 86px;
  --topbar-h: 42px;
  --tap: 44px;                /* minimum touch target */
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 1.0625rem;          /* 17px */
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open { overflow: hidden; }   /* scroll lock while mobile menu is open */
body.lb-open { overflow: hidden; }    /* scroll lock while lightbox is open */

img, picture, svg, video { max-width: 100%; height: auto; display: block; }
img { font-style: italic; background: transparent; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-head);
  color: var(--navy);
  line-height: 1.18;
  margin: 0 0 .55em;
  letter-spacing: -.015em;
  font-weight: 800;
  text-wrap: balance;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }

ul, ol { margin: 0 0 1em; padding-left: 1.3em; }

strong { color: var(--navy); }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.2rem 0; }

::selection { background: var(--gold); color: var(--navy); }

/* Visible, consistent focus for keyboard users */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 300;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  font-size: .9rem;
  padding: 12px 18px;
  border-radius: 0 0 10px 10px;
  transition: top .2s ease;
}
.skip-link:focus { top: 0; color: #fff; text-decoration: none; }

/* Screen-reader only */
.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;
}

/* ---------- 3. Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 28px;
}

.section { padding-block: clamp(64px, 9vw, 104px); }
.section-tight { padding-block: clamp(44px, 6vw, 68px); }
.section-alt { background: var(--cream); }
.section-gray { background: var(--gray); }
.section-mist { background: var(--teal-mist); }

.section-dark {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(245, 185, 66, .12), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(0, 120, 120, .22), transparent 55%),
    var(--navy);
  color: var(--blue-mist);
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: #C3D2DC; }

.grid { display: grid; gap: 28px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

.stack-sm > * + * { margin-top: .5em; }

/* Section heading pattern */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-head);
  font-size: .8125rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin: 0 0 14px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--gold);
}
.eyebrow.light { color: var(--gold); }

.section-title { font-size: clamp(1.8rem, 3.4vw, 2.55rem); }
.section-lead {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 70ch;
}
.section-head { max-width: 760px; margin-bottom: clamp(34px, 5vw, 52px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ""; width: 26px; height: 3px; border-radius: 2px; background: var(--gold); }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 13px 30px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--ff-head);
  font-size: .98rem;
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-gold { background: var(--gold); color: var(--navy); box-shadow: var(--shadow-gold); }
.btn-gold:hover { background: #FFC75C; color: var(--navy-deep); }

.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); color: #fff; }

.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-deep); color: #fff; }

.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }

.btn-outline-light { border-color: rgba(255, 255, 255, .75); color: #fff; background: rgba(255, 255, 255, .04); }
.btn-outline-light:hover { background: #fff; color: var(--navy); border-color: #fff; }

.btn-sm { min-height: 42px; padding: 9px 22px; font-size: .9rem; }
.btn-lg { min-height: 58px; padding: 16px 38px; font-size: 1.05rem; }
.btn-block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* Text link with arrow */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-head);
  font-weight: 800;
  font-size: .95rem;
  color: var(--teal-deep);
}
.arrow-link svg { width: 17px; height: 17px; transition: transform .18s ease; }
.arrow-link:hover svg { transform: translateX(4px); }

/* Badges & chips */
.badge {
  display: inline-block;
  background: var(--gold-soft);
  color: var(--gold-deep);
  border: 1px solid rgba(201, 143, 27, .3);
  font-family: var(--ff-head);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.badge-navy { background: var(--blue-mist); color: var(--navy); border-color: transparent; }
.badge-teal { background: var(--teal-mist); color: var(--teal-deep); border-color: transparent; }

/* ---------- 5. Top utility bar ---------- */
.topbar {
  background: var(--navy-deep);
  color: #B9CBD6;
  font-size: .84rem;
  line-height: var(--topbar-h);
  position: relative;
  z-index: 60;
}
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.topbar a { color: #C9D9E2; }
.topbar a:hover { color: var(--gold); text-decoration: none; }
.topbar-contact { display: flex; gap: 22px; align-items: center; min-width: 0; }
.topbar-contact a { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-contact svg { width: 14px; height: 14px; color: var(--gold); flex: none; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.tsocial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 8px;
  transition: background-color .15s ease, color .15s ease;
}
.tsocial svg { width: 15px; height: 15px; }
.tsocial:hover { background: rgba(255, 255, 255, .12); color: var(--gold); }
.tdonate {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 10px;
  background: var(--gold);
  color: var(--navy) !important;
  font-family: var(--ff-head);
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .04em;
  padding: 4px 14px;
  border-radius: 999px;
  transition: background-color .15s ease, transform .15s ease;
}
.tdonate:hover { background: #FFC75C; transform: translateY(-1px); }
.tdonate svg { width: 14px; height: 14px; }

/* ---------- 6. Main header & desktop navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--paper);
  transition: box-shadow .25s ease;
}
.site-header.is-stuck { box-shadow: 0 6px 24px rgba(15, 32, 45, .12); }

.header-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 54px; width: auto; }
.brand:hover { text-decoration: none; }

/* Desktop menu */
.mainnav { display: block; }
.menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu-item { position: relative; }

.menu-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  padding: 12px 13px;
  font-family: var(--ff-head);
  font-size: .855rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--navy);
  background: none;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: color .15s ease, background-color .15s ease;
}
.menu-link:hover { color: var(--teal-deep); background: var(--gray); text-decoration: none; }
.menu-link .caret { width: 11px; height: 11px; transition: transform .2s ease; color: var(--gold-deep); }
.menu-item.open > .menu-link { color: var(--teal-deep); background: var(--gray); }
.menu-item.open > .menu-link .caret { transform: rotate(180deg); }
.menu-link[aria-current="page"] { color: var(--teal-deep); box-shadow: inset 0 -3px 0 var(--gold); border-radius: 8px 8px 2px 2px; }

/* Dropdown panel */
.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 288px;
  background: var(--paper);
  border-radius: 14px;
  border-top: 3px solid var(--gold);
  box-shadow: var(--shadow-2);
  padding: 10px;
  margin: 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 90;
}
.menu-item.open > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown::before {          /* hover bridge so the panel doesn't close crossing the gap */
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
.dropdown li { list-style: none; }
.dropdown a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 9px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--charcoal);
}
.dropdown a svg { width: 14px; height: 14px; color: var(--gold-deep); opacity: 0; transition: opacity .12s ease, transform .12s ease; transform: translateX(-4px); }
.dropdown a:hover, .dropdown a:focus-visible { background: var(--cream); color: var(--teal-deep); text-decoration: none; }
.dropdown a:hover svg, .dropdown a:focus-visible svg { opacity: 1; transform: translateX(0); }

.header-cta { flex: none; display: inline-flex; align-items: center; gap: 12px; }

/* Hamburger (hidden on desktop) */
.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: var(--gray);
  cursor: pointer;
  padding: 0;
  position: relative;
  flex: none;
}
.nav-toggle .bars { position: absolute; inset: 0; margin: auto; width: 22px; height: 16px; }
.nav-toggle .bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2.4px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.nav-toggle .bars span:nth-child(1) { top: 0; }
.nav-toggle .bars span:nth-child(2) { top: 7px; }
.nav-toggle .bars span:nth-child(3) { top: 14px; }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(1) { top: 7px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

/* ---------- 7. Mobile navigation panel ---------- */
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(15, 32, 45, .55);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s;
  backdrop-filter: blur(2px);
}
.nav-backdrop.show { opacity: 1; visibility: visible; }

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 100;
  height: 100dvh;
  height: 100vh;
  width: min(420px, 94vw);
  background:
    radial-gradient(500px 300px at 120% -5%, rgba(245, 185, 66, .14), transparent 55%),
    var(--navy);
  color: #E7EFF3;
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  transition: transform .3s cubic-bezier(.32, .72, .28, 1);
  visibility: hidden;
  box-shadow: -30px 0 70px rgba(15, 32, 45, .35);
}
.mobile-nav[hidden] { display: none; }   /* keep the closed panel out of layout & flow */
.mobile-nav.open { transform: translateX(0); visibility: visible; }

.mn-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  flex: none;
}
.mn-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-family: var(--ff-head); font-weight: 800; font-size: 1.06rem; letter-spacing: .02em; }
.mn-brand svg { width: 30px; height: 30px; color: var(--gold); flex: none; }
.mn-close {
  width: var(--tap); height: var(--tap);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  cursor: pointer;
  transition: background-color .15s ease, transform .15s ease;
}
.mn-close:hover { background: rgba(255, 255, 255, .16); transform: rotate(90deg); }
.mn-close svg { width: 20px; height: 20px; }

.mn-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 10px 12px 20px;
}
.mn-list { list-style: none; margin: 0; padding: 0; }
.mn-group { border-bottom: 1px solid rgba(255, 255, 255, .09); }
.mn-acc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 10px 12px;
  background: none;
  border: 0;
  border-radius: 10px;
  color: #fff;
  font-family: var(--ff-head);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: left;
  transition: background-color .15s ease;
}
.mn-acc:hover { background: rgba(255, 255, 255, .07); }
.mn-acc .chev { width: 16px; height: 16px; color: var(--gold); flex: none; transition: transform .25s ease; }
.mn-acc[aria-expanded="true"] .chev { transform: rotate(180deg); }

.mn-sub {
  list-style: none;
  margin: 0 0 10px;
  padding: 0 0 0 14px;
  display: none;
}
.mn-sub.expanded { display: block; }
.mn-sub li { list-style: none; }
.mn-link {
  position: relative;
  display: flex;
  align-items: center;
  min-height: var(--tap);
  padding: 9px 12px 9px 16px;
  color: #C9D8E1;
  font-size: .96rem;
  font-weight: 500;
  border-radius: 8px;
}
.mn-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  border-radius: 2px;
  background: var(--gold);
  transition: height .15s ease;
}
.mn-link:hover { background: rgba(255, 255, 255, .07); color: #fff; text-decoration: none; }
.mn-link:hover::before { height: 55%; }
.mn-link[aria-current="page"] { color: var(--gold); font-weight: 600; }
.mn-link[aria-current="page"]::before { height: 55%; }

.mn-foot {
  flex: none;
  padding: 16px 22px calc(18px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255, 255, 255, .1);
  background: rgba(15, 32, 45, .55);
}
.mn-donate { width: 100%; }
.mn-contact { margin-top: 14px; display: grid; gap: 8px; }
.mn-contact a { display: inline-flex; align-items: center; gap: 9px; color: #B9CBD6; font-size: .92rem; }
.mn-contact a:hover { color: var(--gold); text-decoration: none; }
.mn-contact svg { width: 15px; height: 15px; color: var(--gold); flex: none; }

/* ---------- 8. Homepage hero ---------- */
.hero {
  position: relative;
  min-height: clamp(540px, 78vh, 760px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--navy-deep);
  isolation: isolate;
}
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: center 32%; }
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 32, 45, .30) 0%, rgba(15, 32, 45, .18) 38%, rgba(15, 32, 45, .78) 100%),
    linear-gradient(100deg, rgba(15, 32, 45, .62) 0%, rgba(15, 32, 45, .18) 55%, rgba(15, 32, 45, 0) 75%);
}
.hero-in { position: relative; z-index: 2; padding-block: clamp(56px, 9vw, 96px); width: 100%; }
.hero-content { max-width: 660px; }
.hero-title {
  color: #fff;
  font-size: clamp(2.5rem, 6vw, 4.1rem);
  line-height: 1.08;
  margin-bottom: 18px;
}
.hero-title em { font-style: normal; color: var(--gold); }
.hero-sub { color: #DCE8EE; font-size: clamp(1.05rem, 1.8vw, 1.25rem); line-height: 1.65; max-width: 56ch; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* Stat band overlapping hero */
.stat-band { position: relative; z-index: 5; margin-top: -58px; }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.stat {
  padding: 30px 26px;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat:first-child { border-left: 0; }
.stat-num {
  font-family: var(--ff-head);
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  font-weight: 800;
  color: var(--teal-deep);
  line-height: 1.05;
}
.stat-num .unit { font-size: .55em; color: var(--gold-deep); }
.stat-label { font-size: .9rem; color: var(--muted); line-height: 1.45; }
.stat-label strong { color: var(--navy); }

/* ---------- 9. Inner page hero & breadcrumbs ---------- */
.page-hero {
  background:
    radial-gradient(700px 300px at 110% -20%, rgba(0, 120, 120, .10), transparent 60%),
    var(--cream);
  border-bottom: 1px solid var(--line);
  padding: clamp(44px, 7vw, 76px) 0 clamp(40px, 6vw, 64px);
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  font-size: .85rem;
  color: var(--muted);
}
.breadcrumbs li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumbs li + li::before { content: "/"; color: #B8C2C8; }
.breadcrumbs a { color: var(--teal-deep); font-weight: 600; }
.breadcrumbs [aria-current="page"] { color: var(--muted); }
.page-title { font-size: clamp(2rem, 4.6vw, 3rem); margin-bottom: 14px; }
.page-lead { font-size: 1.125rem; color: var(--muted); max-width: 75ch; margin: 0; }
.page-hero .eyebrow { margin-bottom: 10px; }

/* ---------- 10. Split (image + text) layout ---------- */
.split {
  display: grid;
  grid-template-columns: 1.04fr 1fr;
  gap: clamp(36px, 5vw, 68px);
  align-items: center;
}
.split-rev .split-media { order: 2; }
.figure-frame { position: relative; margin: 0; }
.figure-frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-1); }
.figure-frame::after {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 3px solid var(--gold);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: .55;
}
.figure-frame.teal::after { border-color: var(--teal); }
.split-body .btn-row { margin-top: 26px; }
.split-body .eyebrow { margin-bottom: 12px; }

/* ---------- 11. Cards ---------- */
.icon-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  overflow: hidden;
}
.icon-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.icon-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-1); border-color: transparent; }
.icon-card:hover::before { transform: scaleX(1); }
.icon-chip {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--teal-mist);
  color: var(--teal-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.icon-chip svg { width: 27px; height: 27px; }
.icon-chip.gold { background: var(--gold-soft); color: var(--gold-deep); }
.icon-chip.navy { background: var(--blue-mist); color: var(--navy); }
.card-title { font-size: 1.16rem; margin: 0; }
.card-text { color: var(--muted); font-size: .97rem; margin: 0; }
.icon-card .card-link { margin-top: auto; padding-top: 6px; }

/* Photo story/news card */
.photo-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease;
  height: 100%;
}
.photo-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-1); }
.card-media { display: block; position: relative; overflow: hidden; }
.card-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .4s ease; }
.photo-card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-family: var(--ff-head);
}
.card-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: #C2CCD2; }
.card-excerpt { color: var(--muted); font-size: .97rem; margin: 0; }
.photo-card .card-link { margin-top: auto; padding-top: 8px; }

/* Impact band */
.impact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 4vw, 44px); }
.impact-item { text-align: left; border-left: 3px solid var(--gold); padding-left: 20px; }
.impact-num {
  display: block;
  font-family: var(--ff-head);
  font-size: clamp(2.4rem, 4.6vw, 3.4rem);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}
.impact-num .suffix { font-size: .5em; }
.impact-label { display: block; font-family: var(--ff-head); font-weight: 700; color: #fff; font-size: 1rem; margin-bottom: 6px; }
.impact-desc { color: #A9BCC7; font-size: .92rem; margin: 0; }
.impact-note { margin-top: 36px; color: #8FA6B3; font-size: .85rem; }

/* Quote block */
.quote-block {
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  padding: clamp(30px, 5vw, 54px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(22px, 4vw, 44px);
  align-items: center;
  max-width: 980px;
  margin-inline: auto;
}
.quote-mark { width: 64px; height: 64px; color: var(--gold); flex: none; }
.quote-text { font-family: var(--ff-head); font-size: clamp(1.25rem, 2.4vw, 1.7rem); font-weight: 700; color: var(--navy); line-height: 1.4; margin: 0 0 12px; }
.quote-attr { display: flex; align-items: center; gap: 14px; }
.quote-attr img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.quote-attr span { font-size: .95rem; color: var(--muted); }
.quote-attr b { color: var(--navy); }

/* Gallery preview strip */
.gallery-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.gallery-strip a { display: block; border-radius: 14px; overflow: hidden; position: relative; }
.gallery-strip a:nth-child(2), .gallery-strip a:nth-child(5) { margin-top: 22px; }
.gallery-strip img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .35s ease; }
.gallery-strip a:hover img { transform: scale(1.06); }
.gallery-strip a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(15, 32, 45, .45));
  opacity: 0;
  transition: opacity .25s ease;
}
.gallery-strip a:hover::after { opacity: 1; }

/* CTA band */
.cta-band { background: var(--navy); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.cta-band::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 185, 66, .28), transparent 65%);
  z-index: -1;
}
.cta-band::after {
  content: "";
  position: absolute;
  left: -60px;
  bottom: -110px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 120, 120, .35), transparent 65%);
  z-index: -1;
}
.cta-in { display: flex; align-items: center; justify-content: space-between; gap: 34px; flex-wrap: wrap; }
.cta-title { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 8px; }
.cta-text { color: #C3D2DC; font-size: 1.05rem; margin: 0; max-width: 58ch; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Newsletter */
.newsletter-band { background: var(--gold-soft); border-block: 1px solid rgba(201, 143, 27, .25); }
.newsletter-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.news-form { display: flex; gap: 10px; }
.news-form input[type="email"] {
  flex: 1;
  min-height: 52px;
  border: 1.5px solid rgba(201, 143, 27, .4);
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 1rem;
  font-family: var(--ff-body);
  color: var(--charcoal);
  background: #fff;
}
.news-form input[type="email"]:focus-visible { outline: 3px solid rgba(0, 120, 120, .5); outline-offset: 1px; border-color: var(--teal); }
.news-note { font-size: .82rem; color: var(--muted); margin-top: 10px; }
.news-status { font-size: .92rem; margin-top: 10px; font-weight: 600; display: none; }
.news-status.show { display: block; }
.news-status.ok { color: var(--success); }
.news-status.err { color: var(--danger); }

/* ---------- 12. Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: #B9CBD6;
  font-size: .95rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.25fr;
  gap: clamp(30px, 4vw, 54px);
  padding-block: clamp(52px, 7vw, 78px) 44px;
}
.f-brand img { height: 46px; width: auto; background: #fff; border-radius: 10px; padding: 8px 12px; margin-bottom: 18px; }
.f-summary { color: #9DB2BE; max-width: 34ch; margin-bottom: 20px; }
.f-social { display: flex; gap: 10px; }
.f-social-btn {
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #D7E3EA;
  transition: background-color .18s ease, color .18s ease, transform .18s ease, border-color .18s ease;
}
.f-social-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); transform: translateY(-3px); text-decoration: none; }
.f-social-btn svg { width: 18px; height: 18px; }

.f-title {
  color: #fff;
  font-family: var(--ff-head);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.f-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.f-col a { color: #B9CBD6; }
.f-col a:hover { color: var(--gold); text-decoration: none; }
.f-contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.f-contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.f-contact-list svg { width: 17px; height: 17px; color: var(--gold); flex: none; margin-top: 4px; }
.f-contact-list a { color: #D7E3EA; }
.f-contact-list a:hover { color: var(--gold); }

/* Funders strip inside footer */
.funders { border-top: 1px solid rgba(255, 255, 255, .09); }
.funders-in {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 30px;
  padding-block: 24px;
}
.funders-label {
  font-family: var(--ff-head);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #7E93A0;
  width: 100%;
  text-align: center;
}
.funder-logo { background: #fff; border-radius: 10px; padding: 9px 14px; display: inline-flex; align-items: center; }
.funder-logo img { height: 34px; width: auto; }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .09); }
.footer-bottom-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 26px;
  padding-block: 22px;
  font-size: .84rem;
  color: #8FA6B3;
}
.f-legal { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; }
.f-legal a { color: #B9CBD6; }
.f-legal a:hover { color: var(--gold); text-decoration: none; }

/* Back to top */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 0;
  background: var(--navy);
  color: var(--gold);
  box-shadow: var(--shadow-2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s, background-color .18s ease;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--teal-deep); color: #fff; }
.back-to-top svg { width: 20px; height: 20px; }

/* ---------- 13. Helpers ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: .6rem; }
.mt-2 { margin-top: 1.2rem; }
.mt-3 { margin-top: 2rem; }
.mt-4 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.narrow { max-width: 76ch; }
.center { margin-inline: auto; }
.gold-text { color: var(--gold-deep); }
.teal-text { color: var(--teal-deep); }
.hidden { display: none !important; }
