@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,600;9..144,700&display=swap");
:root {
  --navy: #173f5f;
  --green: #173f5f;
  --lime: #f0b93e;
  --gold: #f0b93e;
  --cream: #f4ecdc;
  --paper: #fffaf2;
  --ink: #18313a;
  --muted: #657076;
  --line: #ded4c4;
  --serif: "Fraunces", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
}
img {
  display: block;
  width: 100%;
}
a {
  color: inherit;
}
button,
input,
textarea,
select {
  font: inherit;
}
.skip {
  position: fixed;
  top: -5rem;
  left: 1rem;
  background: #fff;
  padding: 0.7rem;
  z-index: 100;
}
.skip:focus {
  top: 1rem;
}
.topline {
  background: var(--navy);
  color: #fff;
  padding: 0.45rem clamp(1rem, 3vw, 3.5rem);
  display: flex;
  justify-content: space-between;
  font-size: 0.77rem;
}
.header {
  height: 82px;
  background: rgba(255, 253, 248, 0.97);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 3vw, 3.5rem);
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}
.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #173f5f;
  color: #fff;
  display: grid;
  place-items: center;
  font: 700 0.8rem var(--serif);
  border: 4px solid var(--lime);
}
.brand-logo {
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  object-fit: contain;
}
.brand strong {
  font: 700 0.92rem/1.05 var(--serif);
  max-width: 165px;
}
.nav {
  display: flex;
  gap: 1.35rem;
  align-items: center;
}
.nav a {
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
}
.nav a[aria-current="page"] {
  color: #9a6810;
}
.nav-cta {
  background: var(--gold);
  padding: 0.7rem 0.9rem;
}
.menu {
  display: none;
  border: 0;
  background: none;
  padding: 0.7rem;
}
.menu span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--ink);
  margin: 5px;
}
.wrap {
  width: min(1480px, calc(100% - clamp(2rem, 6vw, 7rem)));
  margin: auto;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  font-weight: 700;
  color: #9a6810;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  line-height: 1.05;
  margin-top: 0;
}
h1 {
  font-size: clamp(3rem, 6.8vw, 6.6rem);
  letter-spacing: -0.045em;
}
h2 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  letter-spacing: -0.035em;
}
h3 {
  font-size: 1.45rem;
}
.hero {
  min-height: 760px;
  background:
    linear-gradient(
      90deg,
      rgba(13, 44, 67, 0.95) 0%,
      rgba(13, 44, 67, 0.78) 49%,
      rgba(13, 44, 67, 0.2) 82%
    ),
    url("../images/community/borehole-hero-enhanced.png") center 52% / cover;
  display: flex;
  align-items: end;
  color: #fff;
}
.ngo-actions {
  position: relative;
  z-index: 3;
  margin-top: -3rem;
}
.ngo-action-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  box-shadow: 0 24px 60px rgba(13, 44, 67, 0.18);
}
.ngo-action-grid article {
  min-height: 220px;
  padding: 2rem;
  color: #fff;
  background: var(--navy);
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}
.ngo-action-grid article:last-child {
  border-right: 0;
}
.ngo-action-grid .featured {
  background: #176b4d;
}
.ngo-action-grid span,
.ngo-action-grid a {
  color: var(--lime);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ngo-action-grid h3 {
  margin: 1rem 0 0.6rem;
}
.ngo-action-grid p {
  color: rgba(255, 255, 255, 0.78);
}
.ngo-action-grid a {
  display: inline-block;
  margin-top: 0.8rem;
  text-decoration: none;
}
.hero-copy {
  padding: 8rem 0 6rem;
  width: min(760px, 100%);
}
.hero h1 {
  margin: 0.7rem 0 1.4rem;
}
.hero p {
  font-size: 1.15rem;
  max-width: 650px;
}
.actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.1rem;
  border: 1px solid currentColor;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.82rem;
  transition: 0.25s;
}
.btn:hover {
  transform: translateY(-3px);
}
.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.btn-light {
  color: #fff;
}
.section {
  padding: clamp(4.5rem, 8vw, 8rem) 0;
}
.intro {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 9vw;
}
.lead {
  font: 600 clamp(1.6rem, 3vw, 2.8rem) / 1.25 var(--serif);
  margin-top: 0;
}
.muted {
  color: var(--muted);
}
.programme-list {
  border-top: 1px solid var(--line);
}
.impact-band {
  background: var(--gold);
  padding: 2.6rem 0;
}
.impact-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 1px;
  align-items: stretch;
}
.impact-grid > * {
  padding: 1.2rem 2rem;
  border-left: 1px solid rgba(23, 63, 95, 0.28);
}
.impact-grid > :first-child {
  border-left: 0;
  padding-left: 0;
}
.impact-number {
  display: block;
  font: 700 clamp(2.5rem, 5vw, 5rem) / 1 var(--serif);
  color: var(--navy);
}
.impact-label {
  display: block;
  max-width: 180px;
  margin-top: 0.45rem;
  font-size: 0.83rem;
  font-weight: 700;
}
.programme-row {
  display: grid;
  grid-template-columns: 65px 0.7fr 1.3fr auto;
  gap: 2rem;
  padding: 1.7rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.programme-row .num {
  color: var(--green);
  font-weight: 700;
}
.programme-row h3,
.programme-row p {
  margin: 0;
}
.programme-row p {
  color: var(--muted);
}
.arrow {
  font-size: 1.4rem;
  text-decoration: none;
}
.feature {
  background: var(--cream);
}
.feature-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 620px;
}
.feature-photo img {
  height: 100%;
  object-fit: cover;
  filter: saturate(1.06) contrast(1.04) brightness(1.02);
}
.feature-copy {
  padding: clamp(3rem, 7vw, 7rem);
  align-self: center;
}
.status {
  display: inline-block;
  background: #e4edd7;
  color: var(--green);
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.45rem 0.7rem;
}
.quote-band {
  background: var(--navy);
  color: #fff;
}
.quote-band .wrap {
  display: grid;
  grid-template-columns: 0.5fr 1.5fr;
  gap: 8vw;
}
.quote-band blockquote {
  font: 600 clamp(2rem, 4vw, 4rem) / 1.12 var(--serif);
  margin: 0;
}
.photo-strip {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 0.75rem;
}
.photo-strip figure {
  margin: 0;
  overflow: hidden;
}
.photo-strip img {
  height: 420px;
  object-fit: cover;
  transition: 0.6s;
  filter: saturate(1.06) contrast(1.04) brightness(1.02);
}
.photo-strip figure:hover img {
  transform: scale(1.025);
}
.photo-strip figcaption {
  font-size: 0.75rem;
  color: var(--muted);
  padding: 0.6rem 0;
}
.partner-band {
  background: var(--gold);
}
.partner-band .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7vw;
  align-items: center;
}
.page-hero {
  position: relative;
  min-height: 610px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(
      90deg,
      rgba(23, 63, 95, 1) 0%,
      rgba(23, 63, 95, 0.98) 44%,
      rgba(23, 63, 95, 0.72) 67%,
      rgba(23, 63, 95, 0.16) 100%
    ),
    var(--page-image, url("../images/community/learners-assembly.jpeg")) center
      center/cover no-repeat;
  color: #fff;
  padding: clamp(5rem, 10vw, 9rem) 0;
}
.page-hero h1 {
  max-width: 840px;
  margin: 0.7rem 0;
}
.page-hero p {
  max-width: 650px;
  font-size: 1.1rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7vw;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.panel {
  padding: 2rem;
  background: var(--cream);
  border-top: 4px solid var(--green);
}
.panel p {
  color: var(--muted);
}
.value {
  border-top: 1px solid var(--line);
  padding: 1.3rem 0;
}
.leader {
  background: var(--cream);
}
.leader-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 6vw;
}
.portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 620px;
  object-fit: cover;
  object-position: center top;
  filter: saturate(1.04) contrast(1.05) brightness(1.04);
}
.notice {
  padding: 1.2rem;
  border-left: 5px solid var(--gold);
  background: var(--cream);
}
.steps {
  counter-reset: item;
  list-style: none;
  padding: 0;
}
.steps li {
  counter-increment: item;
  display: grid;
  grid-template-columns: 3rem 1fr;
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
}
.steps li:before {
  content: "0" counter(item);
  color: var(--green);
  font-weight: 700;
}
.gallery {
  columns: 3 260px;
  column-gap: 1rem;
}
.gallery-heading {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}
.gallery-heading h2 {
  margin-bottom: 0;
}
.gallery-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.gallery-filters button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: 0.75rem 1rem;
  cursor: pointer;
  font: 700 0.75rem var(--sans);
}
.gallery-filters button.active {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
}
.gallery figure {
  break-inside: avoid;
  margin: 0 0 1rem;
  cursor: zoom-in;
  background: var(--cream);
}
.gallery img {
  max-height: 520px;
  object-fit: cover;
  filter: saturate(1.06) contrast(1.04) brightness(1.02);
}
.media-video {
  width: 100%;
  max-height: 560px;
  background: var(--navy);
  display: block;
}
.gallery figcaption {
  padding: 0.5rem 0;
  font-size: 0.78rem;
  color: var(--muted);
}
.gallery figure[hidden] {
  display: none;
}
.gallery-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: clamp(1rem, 4vw, 4rem);
  background: rgba(5, 20, 15, 0.94);
}
.gallery-lightbox.open {
  display: grid;
}
.gallery-lightbox img {
  width: auto;
  max-width: min(1100px, 92vw);
  height: auto;
  max-height: 82vh;
  object-fit: contain;
}
.gallery-lightbox button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 7vw;
}
.contact-list a {
  display: block;
  font-size: 1.2rem;
  margin: 0.8rem 0;
}
.footer {
  background: #071f2d;
  color: #fff;
  padding: 5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 4rem;
}
.footer h2 {
  font-size: 2.4rem;
}
.footer a {
  display: block;
  text-decoration: none;
  margin: 0.55rem 0;
  color: #dce5e0;
}
.footer-bottom {
  border-top: 1px solid #34505e;
  margin-top: 3rem;
  padding-top: 1.2rem;
  font-size: 0.75rem;
  color: #afc0c7;
}
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: 0.7s;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.not-found {
  min-height: 65vh;
  display: grid;
  place-items: center;
  text-align: center;
}
.not-found strong {
  display: block;
  font: 700 9rem var(--serif);
  color: var(--green);
}
@media (max-width: 900px) {
  .gallery-heading {
    display: block;
  }
  .gallery-filters {
    margin-top: 1.5rem;
  }
  .ngo-action-grid {
    grid-template-columns: 1fr;
  }
  .ngo-action-grid article {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }
  .brand-logo {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }
  .topline span:last-child {
    display: none;
  }
  .header {
    height: 70px;
  }
  .brand strong {
    font-size: 0.78rem;
  }
  .brand-mark {
    width: 42px;
    height: 42px;
  }
  .menu {
    display: block;
  }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    padding: 1rem;
    flex-direction: column;
    align-items: stretch;
    box-shadow: 0 12px 20px #0002;
  }
  .nav.open {
    display: flex;
  }
  .nav a {
    padding: 0.55rem;
  }
  .hero {
    min-height: 680px;
    background-position: 70% center;
  }
  .page-hero {
    min-height: 560px;
    background:
      linear-gradient(rgba(23, 63, 95, 0.86), rgba(23, 63, 95, 0.92)),
      var(--page-image, url("../images/community/learners-assembly.jpeg"))
        center/cover;
  }
  .hero-copy {
    padding: 7rem 0 4rem;
  }
  .intro,
  .feature-grid,
  .quote-band .wrap,
  .partner-band .wrap,
  .grid-2,
  .leader-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .programme-row {
    grid-template-columns: 42px 1fr;
  }
  .impact-grid {
    grid-template-columns: 1fr 1fr;
  }
  .impact-grid > * {
    padding: 1rem;
    border-left: 0;
    border-top: 1px solid rgba(23, 63, 95, 0.25);
  }
  .programme-row p,
  .programme-row .arrow {
    grid-column: 2;
  }
  .photo-strip {
    grid-template-columns: 1fr 1fr;
  }
  .photo-strip figure:first-child {
    grid-column: 1/-1;
  }
  .photo-strip img {
    height: 300px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid > div:first-child {
    grid-column: 1/-1;
  }
}
@media (max-width: 560px) {
  h1 {
    font-size: 3.25rem;
  }
  .hero {
    min-height: 620px;
  }
  .programme-row {
    gap: 0.8rem;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .photo-strip {
    grid-template-columns: 1fr;
  }
  .photo-strip figure:first-child {
    grid-column: auto;
  }
  .gallery {
    columns: 1;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid > div:first-child {
    grid-column: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn,
  .photo-strip img {
    transition: none;
  }
}
