/* ==========================================================================
   ACT Uganda — Design Tokens
   Palette: sunbaked clay, acacia green, sunrise gold on warm parchment.
   Type: Fraunces (display, used with restraint) + Work Sans (body/UI).
   Signature motif: the "rising horizon" arc — a dawn line that recurs as
   a section divider, echoing the org's vision of girls shaping their future.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=Work+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg: #FBF8F1;
  --bg-alt: #FCF6E9;
  --bg-deep: #F3EBDD;
  --navy: #052F5F;
  --teal: #058189;
  --cream: #FBF8F1;
  --ink: #142337;
  --ink-soft: #395066;
  --ink-faint: #6D8090;
  --clay: #058189;
  --clay-deep: #052F5F;
  --clay-tint: #D9F0EE;
  --green: #058189;
  --green-deep: #052F5F;
  --green-tint: #D9F0EE;
  --gold: #D9A928;
  --gold-deep: #B4861A;
  --line: #D6E0E4;
  --white: #FFFFFF;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-s: 6px;
  --radius-m: 14px;
  --radius-l: 28px;

  --max: 1180px;
  --shadow-soft: 0 12px 32px -18px rgba(5, 47, 95, 0.20);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 0.5em; color: var(--ink); }
.amp { font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-weight: 400; }
p { margin: 0 0 1em; color: var(--ink-soft); }
ul { padding-left: 0; margin: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

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

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--alt { background: var(--bg-alt); }
.section--deep { background: var(--green-deep); color: var(--white); }
.section--deep h2, .section--deep h3 { color: var(--white); }
.section--deep p { color: #D9E2DB; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clay-deep);
  margin-bottom: 14px;
}
.section--deep .eyebrow { color: var(--gold); }
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
  display: inline-block;
}

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.section-head .lede { font-size: 18px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--clay); color: var(--white); }
.btn-primary:hover { background: var(--clay-deep); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--white); }
.btn-on-dark { background: var(--gold); color: var(--green-deep); }
.btn-on-dark:hover { background: #E6BC44; }
.btn-ghost-dark { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-ghost-dark:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.btn-block { width: 100%; justify-content: center; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 248, 241, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
}
.brand-mark {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(155deg, var(--gold) 0%, var(--teal) 65%);
  flex-shrink: 0;
}
.brand-logo-img {
  width: 44px !important;
  height: 44px !important;
  object-fit: contain;
  flex-shrink: 0;
}
.brand small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink-soft);
  padding: 9px 13px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-links a:hover { background: var(--clay-tint); color: var(--clay-deep); }
.nav-links a.is-active { background: var(--green); color: var(--white); }
.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--ink);
  border-radius: 10px;
  width: 42px; height: 42px;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 900px) {
  .nav-links { position: fixed; inset: 68px 0 0 0; background: var(--bg); flex-direction: column; align-items: stretch; padding: 18px; gap: 4px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity 0.18s ease, transform 0.18s ease; overflow-y: auto; }
  .nav-links.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-links a { padding: 14px 12px; font-size: 17px; }
  .nav-cta { margin-left: 0; margin-top: 8px; }
  .nav-toggle { display: inline-flex; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-eyebrow { color: var(--clay-deep); }
.hero h1 {
  font-size: clamp(38px, 5.4vw, 64px);
  letter-spacing: -0.01em;
}
.hero h1 em { font-style: italic; color: var(--clay); }
.hero .lede { font-size: 19px; max-width: 46ch; }
.hero-photo {
  aspect-ratio: 4/5;
  border-radius: var(--radius-l);
  background: linear-gradient(145deg, var(--gold-deep), var(--clay) 55%, var(--green-deep));
  position: relative;
  display: flex; align-items: flex-end;
  padding: 22px;
  box-shadow: var(--shadow-soft);
}
.photo-caption {
  background: rgba(20, 16, 10, 0.55);
  color: var(--white);
  font-size: 13px;
  padding: 10px 14px;
  border-radius: var(--radius-s);
  backdrop-filter: blur(3px);
}
.hero-horizon { display: block; width: 100%; height: auto; margin-top: 56px; }

/* ==========================================================================
   Signature: rising horizon divider
   ========================================================================== */
.horizon-divider { display: block; width: 100%; height: 64px; }

/* ==========================================================================
   Stat strip
   ========================================================================== */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.stat-cell {
  background: var(--white);
  padding: 28px 22px;
  text-align: left;
}
.stat-cell .num { font-family: var(--font-display); font-size: clamp(28px, 3vw, 38px); font-weight: 700; color: var(--clay-deep); display: block; }
.stat-cell .lbl { font-size: 13.5px; color: var(--ink-soft); font-weight: 600; }
@media (max-width: 760px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================================
   Program cards
   ========================================================================== */
.program-grid { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; }
.program-grid .program-card { box-sizing: border-box; width: calc(25% - 13.5px); }
@media (max-width: 1000px) { .program-grid .program-card { width: calc(50% - 9px); } }
@media (max-width: 600px) { .program-grid .program-card { width: 100%; } }

.program-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 26px;
  text-decoration: none;
  display: block;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.program-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); border-color: var(--clay); }
.program-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--clay-tint);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  color: var(--clay-deep);
}
.program-icon svg { width: 22px; height: 22px; }
.program-card h3 { font-size: 18px; margin-bottom: 8px; min-height: 2.3em; }
.program-card p { font-size: 14.5px; margin-bottom: 0; }

.program-detail {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 34px;
  margin-bottom: 22px;
}
.program-detail-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.program-detail-head h3 { margin: 0; font-size: 22px; }
.program-detail-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .program-detail-cols { grid-template-columns: 1fr; } }
.detail-list-label { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-faint); margin-bottom: 10px; }
.detail-list { display: flex; flex-direction: column; gap: 9px; }
.detail-list li { display: flex; gap: 10px; font-size: 15px; color: var(--ink-soft); align-items: flex-start; }
.detail-list li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--clay); margin-top: 8px; flex-shrink: 0; }
.detail-list.results li::before { background: var(--green); }

.program-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }
@media (max-width: 640px) { .program-gallery { grid-template-columns: 1fr; } }
.program-gallery-item { margin: 0; }
.program-gallery-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-s); display: block; }
.program-gallery-item figcaption { font-size: 13px; color: var(--ink-faint); margin-top: 8px; }

/* ==========================================================================
   Story
   ========================================================================== */
.story-card {
  background: var(--green-deep);
  color: var(--white);
  border-radius: var(--radius-l);
  padding: 44px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 36px;
  align-items: center;
}
@media (max-width: 800px) { .story-card { grid-template-columns: 1fr; padding: 30px; } }
.story-photo {
  aspect-ratio: 1/1;
  border-radius: var(--radius-m);
  background: linear-gradient(150deg, var(--gold), var(--clay-deep));
  display: flex; align-items: flex-end; padding: 18px;
}
.story-quote {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.2vw, 25px);
  font-style: italic;
  line-height: 1.45;
  color: var(--white);
  margin-bottom: 20px;
}
.story-attrib { font-weight: 700; color: var(--gold); font-size: 15px; }
.story-program { font-size: 13.5px; color: #C9D4CD; margin-top: 4px; }
.story-disclaimer { font-size: 12.5px; color: #9FB0A6; margin-top: 18px; border-top: 1px solid rgba(255,255,255,0.15); padding-top: 14px; }

/* ==========================================================================
   Projects
   ========================================================================== */
.project-list { display: flex; flex-direction: column; gap: 16px; }
.project-row {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 0;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0;
  align-items: start;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
@media (max-width: 700px) { .project-row { grid-template-columns: 1fr; } }
.project-row:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); border-color: var(--clay); }
.project-thumb { min-height: 170px; background: var(--bg-alt); overflow: hidden; position: relative; }
.project-thumb img { width: 100%; height: 100%; min-height: 170px; display: block; object-fit: cover; transition: transform 0.3s ease; }
.project-row:hover .project-thumb img { transform: scale(1.04); }
.project-thumb.has-gallery .project-thumb-slide {
  position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0;
  opacity: 0; transition: opacity 0.6s ease;
}
.project-thumb.has-gallery .project-thumb-slide.is-active { opacity: 1; }
.project-thumb-dots {
  position: absolute; bottom: 12px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px; z-index: 2;
}
.project-thumb-dot {
  width: 7px; height: 7px; border-radius: 50%; padding: 0;
  border: 1px solid rgba(255,255,255,0.8); background: rgba(255,255,255,0.35);
  cursor: pointer; transition: background 0.2s ease, transform 0.2s ease;
}
.project-thumb-dot.is-active { background: var(--gold); border-color: var(--gold); transform: scale(1.15); }
.project-row-content { padding: 24px 28px; }
.project-row-topline { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 10px; }
.project-row-topline .eyebrow { margin-bottom: 0; color: var(--clay-deep); }
.project-row h3 { font-size: 18px; margin-bottom: 8px; }
.project-row p { font-size: 14.5px; margin-bottom: 0; }
.project-meta { text-align: right; white-space: nowrap; }
@media (max-width: 700px) { .project-meta { text-align: left; } }
.tag {
  display: inline-block;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 5px 11px; border-radius: 999px;
  background: var(--green-tint); color: var(--green-deep);
  margin-bottom: 8px;
}
.tag.is-past { background: var(--bg-deep); color: var(--ink-faint); }
.project-funder { font-size: 13px; color: var(--ink-faint); font-weight: 600; }

/* ==========================================================================
   Values grid
   ========================================================================== */
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.value-card { padding: 6px 0; border-top: 2px solid var(--clay); }
.value-card h3 { font-size: 17px; margin-bottom: 6px; }
.value-card p { font-size: 14.5px; margin-bottom: 0; }

/* ==========================================================================
   Split / About sections
   ========================================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.split.reverse .split-media { order: 2; }
.split-media {
  aspect-ratio: 4/3;
  border-radius: var(--radius-l);
  background: linear-gradient(155deg, var(--green), var(--green-deep));
  display: flex; align-items: flex-end; padding: 20px;
}
.info-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 24px; }
.info-card h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-faint); margin-bottom: 10px; }
.direction-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.direction-grid:has(.direction-card--vision, .direction-card--mission) { grid-template-columns: 0.9fr 1.1fr; }
@media (max-width: 800px) { .direction-grid, .direction-grid:has(.direction-card--vision, .direction-card--mission) { grid-template-columns: 1fr; } }
.direction-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 28px; display: flex; flex-direction: column; justify-content: center; }
.direction-card .eyebrow { margin-bottom: 12px; }
.direction-card--vision {
  background: var(--navy);
  border-color: var(--navy);
  position: relative;
  overflow: hidden;
  padding: 36px 32px;
}
.direction-card--vision .eyebrow { color: var(--gold); }
.direction-card--vision p { color: rgba(255,255,255,0.92); font-family: var(--font-display); font-size: 21px; line-height: 1.45; }
.direction-card--vision::after {
  content: "“";
  position: absolute;
  top: -18px;
  right: 18px;
  font-family: var(--font-display);
  font-size: 140px;
  line-height: 1;
  color: rgba(255,255,255,0.07);
  pointer-events: none;
}
.direction-card--mission { padding: 36px 32px; }

/* ==========================================================================
   Forms
   ========================================================================== */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 36px;
}
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 7px; }
.form-row .hint { font-size: 12.5px; color: var(--ink-faint); margin-top: 6px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
  border-radius: var(--radius-s);
  border: 1.5px solid var(--line);
  background: var(--bg);
  color: var(--ink);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--clay); outline: none; }
.form-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-cols { grid-template-columns: 1fr; } }
.form-status { margin-top: 14px; font-size: 14px; font-weight: 600; display: none; }
.form-status.is-success { display: block; color: var(--green-deep); }
.form-status.is-error { display: block; color: var(--clay-deep); }

.tier-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 760px) { .tier-grid { grid-template-columns: repeat(2, 1fr); } }
.tier-card {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-m);
  padding: 18px;
  cursor: pointer;
  background: var(--white);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.tier-card input { position: absolute; opacity: 0; pointer-events: none; }
.tier-card.is-selected, .tier-card:has(input:checked) { border-color: var(--clay); background: var(--clay-tint); }
.tier-amount { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--clay-deep); }
.tier-impact { font-size: 13px; color: var(--ink-soft); margin-top: 6px; }

/* ==========================================================================
   Impact dashboard (Impact page)
   ========================================================================== */
.impact-hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 760px) { .impact-hero-stats { grid-template-columns: repeat(2, 1fr); } }
.impact-stat {
  border-radius: var(--radius-m);
  padding: 0;
  background: var(--white);
  border: 1px solid var(--line);
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.impact-stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.impact-stat-media { height: 92px; overflow: hidden; background: var(--bg-alt); }
.impact-stat-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.impact-stat-copy { padding: 20px 16px 23px; }
.impact-stat .num { font-family: var(--font-display); font-size: 40px; font-weight: 700; color: var(--clay-deep); }
.impact-stat .lbl { display: block; font-size: 13.5px; color: var(--ink-soft); font-weight: 600; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  background: var(--clay);
  border-radius: var(--radius-l);
  padding: 52px;
  color: var(--white);
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin-bottom: 6px; }
.cta-band p { color: #FBE3D4; margin-bottom: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--green-deep); color: #D9E2DB; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 44px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--white); font-family: var(--font-body); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.site-footer a { color: #C9D4CD; text-decoration: none; font-size: 14.5px; }
.site-footer a:hover { color: var(--gold); }
.footer-links li { margin-bottom: 10px; }
.footer-brand p { color: #B7C4BC; font-size: 14.5px; max-width: 32ch; }
.footer-newsletter input { width: 100%; padding: 11px 13px; border-radius: var(--radius-s); border: none; margin-bottom: 10px; font-family: var(--font-body); }
.social-row { display: flex; gap: 10px; margin-top: 14px; }
.social-row a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25); display: flex; align-items: center; justify-content: center; }
.social-row svg { width: 16px; height: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.14); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; color: #9FB0A6; }

/* ==========================================================================
   Misc utility
   ========================================================================== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.badge { font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--line); color: var(--ink-soft); }

/* ==========================================================================
   Real photos — hero / split-media / story-photo as actual images
   ========================================================================== */
.hero-photo img,
.split-media img,
.story-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: inherit;
  position: absolute;
  inset: 0;
}
.hero-photo, .split-media, .story-photo { position: relative; overflow: hidden; }
.hero-photo .photo-caption,
.split-media .photo-caption,
.story-photo .photo-caption { position: relative; z-index: 2; }

/* ==========================================================================
   Photo gallery grid (field photos)
   ========================================================================== */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 860px) { .photo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .photo-grid { grid-template-columns: 1fr; } }
.photo-card {
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.photo-card .photo-frame { aspect-ratio: 4/3; overflow: hidden; }
.photo-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.photo-card:hover img { transform: scale(1.04); }
.photo-card figcaption { padding: 14px 16px; font-size: 13.5px; color: var(--ink-soft); font-weight: 600; margin: 0; }
.location-map img { width: 100%; height: 100%; object-fit: cover; display: block; }

.skip-link {
  position: absolute; left: -999px; top: auto;
  background: var(--clay); color: var(--white); padding: 12px 18px; border-radius: 8px; z-index: 200;
}
.skip-link:focus { left: 16px; top: 16px; }

/* Official ACT Uganda brand palette */
.nav-links a.is-active { background: var(--teal); color: var(--white); }
.nav-links a:hover { background: var(--clay-tint); color: var(--navy, var(--clay-deep)); }
.footer-brand .brand-logo-img { background: var(--white); border-radius: 50%; padding: 1px; }
.hero { background: linear-gradient(135deg, var(--bg) 0%, #F7F1E4 100%); }

/* Official ACT Uganda brand palette */
.nav-links a.is-active { background: var(--teal); color: var(--white); }
.nav-links a:hover { background: var(--clay-tint); color: var(--navy, var(--clay-deep)); }
.footer-brand .brand-logo-img { background: var(--white); border-radius: 50%; padding: 1px; }
.hero { background: linear-gradient(135deg, var(--bg) 0%, #F7F1E4 100%); }
