/* =====================================================================
   Center for Inclusive Finance Ghana (CIFG)
   Single-page site — stylesheet
   Mobile-first. Brand colours sampled from assets/logo.png.
   ===================================================================== */

/* ---------------------------------------------------------------
   1. Tokens
   --------------------------------------------------------------- */
:root {
  /* Brand */
  --navy:        #134675;   /* logo field */
  --navy-deep:   #0C3054;
  --navy-ink:    #0A2743;
  --green:       #81BF42;   /* logo bars */
  --green-dark:  #4B7723;   /* accessible green for text on light */
  --green-soft:  #EEF6E4;

  /* Neutrals — warm, not clinical */
  --paper:       #FCFAF6;
  --paper-tint:  #F4F1EA;
  --card:        #FFFFFF;
  --ink:         #22303C;
  --ink-soft:    #55636F;
  --rule:        #E3DED3;
  --rule-dark:   rgba(255, 255, 255, .16);

  /* Type */
  --font-head: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Metrics */
  --wrap:       1180px;
  --header-wrap: 1600px;   /* header runs wider than the body content */
  --header-h:   72px;
  --nav-gap:    clamp(1rem, 2.4vw, 2.25rem); /* gutter around the nav links */
  --radius:     14px;
  --radius-lg:  20px;
  --shadow-sm:  0 1px 2px rgba(12, 48, 84, .06), 0 3px 10px rgba(12, 48, 84, .05);
  --shadow-md:  0 4px 12px rgba(12, 48, 84, .07), 0 16px 40px rgba(12, 48, 84, .08);
  --ease:       cubic-bezier(.22, .61, .36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--navy-ink);
  line-height: 1.18;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 6.2vw, 3.65rem); }
h2 { font-size: clamp(1.65rem, 4vw, 2.5rem); }
h3 { font-size: 1.16rem; letter-spacing: 0; }

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

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

ul, ol { margin: 0; padding: 0; list-style: none; }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 200;
  padding: .7rem 1.1rem;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ---------------------------------------------------------------
   3. Layout helpers
   --------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section {
  padding-block: clamp(3.5rem, 9vw, 6.5rem);
  scroll-margin-top: var(--header-h);
}

.section-tint { background: var(--paper-tint); }

.section-navy {
  background: var(--navy);
  color: #E7EEF5;
}
.section-navy h2, .section-navy h3 { color: #fff; }

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head .lede { margin-bottom: 0; }
.section-head-light .lede { color: #C3D4E4; }

.eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin: 0 0 .85rem;
}
.eyebrow-light { color: var(--green); }

.lede {
  font-size: clamp(1.03rem, 1.7vw, 1.17rem);
  color: var(--ink-soft);
  line-height: 1.7;
}
.section-navy .lede { color: #C3D4E4; }

/* ---------------------------------------------------------------
   4. Buttons
   --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.6rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 650;
  font-size: .97rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease),
              color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-accent {
  background: var(--green);
  border-color: var(--green);
  color: var(--navy-ink);
}
.btn-accent:hover { background: #92CE55; border-color: #92CE55; }

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

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, .7);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }

.btn-sm { padding: .6rem 1.15rem; font-size: .88rem; }
.btn-block { width: 100%; }

/* ---------------------------------------------------------------
   5. Header & navigation
   --------------------------------------------------------------- */
/* Transparent over the hero photo; solidifies as soon as the page scrolls
   (JS toggles .is-stuck at ~8px, so the switch happens right at the top of
   the hero rather than partway down it). Text/icon colours flip alongside
   the background so they stay legible in both states. */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .3s var(--ease), border-color .3s var(--ease),
              box-shadow .3s var(--ease);
}
.site-header.is-stuck {
  background: rgba(252, 250, 246, .93);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom-color: var(--rule);
  box-shadow: 0 2px 16px rgba(12, 48, 84, .07);
}

/* The bar runs wider than the body content so the brand sits far left and the
   CTA far right, with the links between them. */
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  /* A literal value, not var(--header-h) — that variable is set FROM this
     element's own measured height (see syncHeaderHeight in script.js), so
     using it here would feed the measurement back into the thing being
     measured. --header-h stays reserved for consumers that only need to
     track the header's size (hero padding, scroll-margin, mobile panel). */
  min-height: 72px;
  max-width: var(--header-wrap);
  padding-inline: clamp(1.25rem, 3vw, 3rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: #fff;
  flex-shrink: 0;
  transition: color .3s var(--ease);
}
.site-header.is-stuck .brand { color: var(--navy-ink); }

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--font-head);
  font-size: .97rem;
  font-weight: 700;
  letter-spacing: -.005em;
}
.brand-sub {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--green);
  transition: color .3s var(--ease);
}
.site-header.is-stuck .brand-sub { color: var(--green-dark); }

/* Hamburger */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-width: 44px;
  min-height: 44px;
  padding: .5rem .85rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 999px;
  color: #fff;
  font: inherit;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.site-header.is-stuck .nav-toggle { color: var(--navy-ink); border-color: var(--rule); }

.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 18px;
  height: 12px;
}
.nav-toggle-bars span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Mobile panel */
.primary-nav {
  position: fixed;
  inset: var(--header-h) 0 auto;
  display: grid;
  gap: .35rem;
  padding: 1rem 1.25rem 1.6rem;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 18px 40px rgba(12, 48, 84, .12);
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.primary-nav.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.nav-list { display: grid; gap: .1rem; }
.nav-list a {
  display: block;
  padding: .7rem .5rem;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 550;
  text-decoration: none;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.nav-list a:hover { background: var(--green-soft); color: var(--navy); }

/* Mobile dropdown only — its panel is always solid, so the active link can
   stay a fixed dark colour regardless of the header's transparent/stuck
   state above it. Desktop's inline aria-current colour is set further down,
   inside the >=1120px block, where it needs to follow that state instead. */
@media (max-width: 1119.98px) {
  .nav-list a[aria-current="true"] { color: var(--navy); font-weight: 700; }
}

.nav-cta { justify-self: start; margin-top: .6rem; }

/* Desktop nav */
@media (min-width: 1120px) {
  .nav-toggle { display: none; }

  /* Three groups across the bar: brand, links, CTA — with the link cluster
     floated in the middle of the space left between the outer two. */
  .primary-nav {
    position: static;
    flex: 1;
    display: flex;
    align-items: center;
    margin-left: var(--nav-gap);
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    transform: none;
    opacity: 1;
    visibility: visible;
  }
  .nav-list {
    display: flex;
    align-items: center;
    gap: clamp(.1rem, .8vw, .6rem);
    margin-inline: auto;
  }
  /* Seven links plus a wordmark and a CTA is a lot of bar. Tighten the links
     at the narrow end of desktop and let them breathe once there is room. */
  /* Inline in the bar itself here (unlike the mobile dropdown, which has its
     own opaque panel), so these follow the header's transparent/solid state. */
  .nav-list a {
    position: relative;
    padding: .45rem .45rem;
    font-size: .87rem;
    white-space: nowrap;
    color: #fff;
    transition: color .3s var(--ease);
  }
  .site-header.is-stuck .nav-list a { color: var(--ink); }
  .nav-list a::after {
    content: "";
    position: absolute;
    left: .45rem;
    right: .45rem;
    bottom: .1rem;
    height: 2px;
    background: var(--green);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s var(--ease);
  }
  .nav-list a:hover { background: none; }
  .nav-list a:hover::after,
  .nav-list a[aria-current="true"]::after { transform: scaleX(1); }
  .nav-list a[aria-current="true"] { color: #fff; font-weight: 700; }
  .site-header.is-stuck .nav-list a[aria-current="true"] { color: var(--navy); }

  /* Equal fixed gutters either side of the link cluster; the `auto` margins
     above then split the leftover space evenly, so the three groups read as
     justified across the bar at any width. */
  .nav-cta {
    margin: 0 0 0 var(--nav-gap);
    justify-self: auto;
    flex-shrink: 0;
    white-space: nowrap;
  }
}

/* Wide screens: pin the link cluster to the true centre of the bar so the
   brand sits hard left and the CTA hard right — the classic three-up header.
   Only above 1320px, where there is room either side of a 600px link block. */
@media (min-width: 1320px) {
  .nav-list a { padding: .45rem .7rem; font-size: .93rem; }
  .nav-list a::after { left: .7rem; right: .7rem; }

  .primary-nav { justify-content: flex-end; margin-left: 0; }
  .nav-list {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    gap: .35rem;
  }
  .nav-cta { margin-left: 0; }
}

/* ---------------------------------------------------------------
   6. Hero
   --------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(94vh, 820px);
  padding-block: calc(var(--header-h) + 3.5rem) clamp(3rem, 7vw, 5rem);
  overflow: hidden;
  background: var(--navy-ink);
  scroll-margin-top: var(--header-h);
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Pushed right so the subject clears the headline column on wide screens. */
  object-position: 72% 42%;
}

/* Two passes: a horizontal wash that keeps the text column dark enough for
   white type, and a soft vertical lift so the photograph still reads. */
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(10, 39, 67, .93) 0%, rgba(10, 39, 67, .84) 34%, rgba(10, 39, 67, .42) 68%, rgba(10, 39, 67, .22) 100%),
    linear-gradient(to top, rgba(10, 39, 67, .55) 0%, rgba(10, 39, 67, .2) 55%, rgba(10, 39, 67, .35) 100%);
}

/* Narrow screens have no room to sit beside the subject, so darken evenly. */
@media (max-width: 767px) {
  .hero-img { object-position: 58% 38%; }
  .hero-veil {
    background: linear-gradient(to top, rgba(10, 39, 67, .95) 0%, rgba(10, 39, 67, .82) 48%, rgba(10, 39, 67, .55) 100%);
  }
}

/* .hero-inner keeps the standard .wrap grid (centered, 1180px) so its left
   edge lines up with every other section. The narrower measure lives on
   .hero-content below, which — with no auto margins of its own — hugs that
   same left edge instead of centering itself as a column. */
.hero-inner { position: relative; }
.hero-content { max-width: 44rem; }

.hero h1 { color: #fff; margin-bottom: .55em; }

.hero-lede {
  font-size: clamp(1.02rem, 1.9vw, 1.2rem);
  line-height: 1.7;
  color: #D7E3EE;
  max-width: 40rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  margin-top: 1.9rem;
}
.hero-actions .btn { width: 100%; }

/* Buttons run full-width and stacked below this — the requested phone
   treatment (320–480px). From here up there's room to sit side by side. */
@media (min-width: 480px) {
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
  .hero-actions .btn { width: auto; }
}

.hero-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.6rem;
  margin-top: 2.6rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .2);
}
.hero-pillars li {
  position: relative;
  padding-left: 1.1rem;
  font-size: .84rem;
  font-weight: 650;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #C9DAE9;
}
.hero-pillars li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
}

/* ---------------------------------------------------------------
   7. Split (text + media) blocks
   --------------------------------------------------------------- */
.split { display: grid; gap: clamp(1.75rem, 4vw, 3.25rem); align-items: center; }

.split-media { margin: 0; }
.split-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split-reverse .split-media { order: 2; }
  .split-reverse .split-text  { order: 1; }
}

/* Vision / Mission */
.vm-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
@media (min-width: 720px) { .vm-grid { grid-template-columns: 1fr 1fr; } }

.vm-card {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.15rem);
  background: var(--card);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.vm-card h3 { font-size: 1.32rem; font-family: var(--font-head); }
.vm-card p { color: var(--ink-soft); margin: 0; }

/* ---------------------------------------------------------------
   8. Core objectives
   --------------------------------------------------------------- */
.obj-grid { display: grid; gap: 1.15rem; }
@media (min-width: 660px) { .obj-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .obj-grid { grid-template-columns: repeat(3, 1fr); } }

.obj-card {
  position: relative;
  overflow: hidden;
  padding: 1.75rem 1.6rem 1.85rem;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.obj-num {
  display: block;
  font-family: var(--font-head);
  font-size: 1.9rem;
  line-height: 1;
  color: var(--green);
  margin-bottom: .7rem;
  transition: color .3s var(--ease);
}
.obj-card h3 { margin-bottom: .55rem; }
.obj-card p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* ---------------------------------------------------------------
   9. Key focus areas
   --------------------------------------------------------------- */
.focus-grid { display: grid; gap: 1.25rem; }
@media (min-width: 700px)  { .focus-grid { grid-template-columns: repeat(2, 1fr); } }

/* Five cards over six columns: three up, then two wide — no orphan gap. */
@media (min-width: 1000px) {
  .focus-grid { grid-template-columns: repeat(6, 1fr); }
  .focus-card { grid-column: span 2; }
  .focus-card:nth-child(n + 4) { grid-column: span 3; }
  .focus-card:nth-child(n + 4) .focus-media { aspect-ratio: 21 / 9; }
}

.focus-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.focus-media { margin: 0; aspect-ratio: 3 / 2; overflow: hidden; }
.focus-media img { width: 100%; height: 100%; object-fit: cover; }

.focus-media-icon {
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--green);
}
.focus-media-icon svg { width: 62px; height: 62px; }

.focus-body { padding: 1.4rem 1.5rem 1.6rem; }
.focus-body h3 { margin-bottom: .45rem; }
.focus-body p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* ---------------------------------------------------------------
   10. Approach
   --------------------------------------------------------------- */
.approach-layout { display: grid; gap: clamp(2rem, 4vw, 3.25rem); }

@media (min-width: 900px) {
  .approach-layout { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: start; }
  .approach-media { position: sticky; top: calc(var(--header-h) + 2.5rem); }
}

.approach-media { margin: 0; }
.approach-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.approach-list { counter-reset: step; }

.approach-item {
  counter-increment: step;
  position: relative;
  padding: 1.35rem 0 1.35rem 3.6rem;
  border-bottom: 1px solid var(--rule);
}
.approach-item:first-child { padding-top: 0; }
.approach-item:first-child::before { top: 0; }
.approach-item:last-child { border-bottom: 0; padding-bottom: 0; }

.approach-item::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.35rem;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  background: var(--green-soft);
  color: var(--green-dark);
  border-radius: 50%;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.approach-item h3 { margin-bottom: .35rem; }
.approach-item p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* ---------------------------------------------------------------
   11. Impact / KPIs
   --------------------------------------------------------------- */
.kpi-grid { display: grid; gap: 1rem; }
@media (min-width: 700px)  { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }

/* Same six-column trick as the focus grid: five items, no orphan gap. */
@media (min-width: 1040px) {
  .kpi-grid { grid-template-columns: repeat(6, 1fr); }
  .kpi { grid-column: span 2; }
  .kpi:nth-child(n + 4) { grid-column: span 3; }
}

.kpi {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  padding: 1.4rem 1.45rem;
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--rule-dark);
  border-radius: var(--radius);
}
.kpi p { margin: 0; color: #DCE7F1; font-size: .97rem; }

.kpi-tick {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 1.7rem;
  height: 1.7rem;
  margin-top: .12rem;
  background: var(--green);
  color: var(--navy-ink);
  border-radius: 50%;
}
.kpi-tick svg { width: 1rem; height: 1rem; }

/* ---------------------------------------------------------------
   12. Governance
   --------------------------------------------------------------- */
.gov-item {
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--rule);
}
.gov-item:first-child { padding-top: 0; }
.gov-item:last-child { border-bottom: 0; padding-bottom: 0; }
.gov-item h3 { margin-bottom: .35rem; }
.gov-item p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

.chips { margin-top: clamp(2.5rem, 5vw, 3.75rem); }
.chips-title {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}
.chip-list { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip-list li {
  padding: .55rem 1.1rem;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 550;
  color: var(--navy);
}

/* ---------------------------------------------------------------
   13. Get involved
   --------------------------------------------------------------- */
#involved .split-text .btn { margin-top: .6rem; }

.involve-grid {
  display: grid;
  gap: 1.15rem;
  margin-top: clamp(2.5rem, 5vw, 3.75rem);
}
@media (min-width: 820px) { .involve-grid { grid-template-columns: repeat(3, 1fr); } }

.involve-card {
  padding: 1.75rem 1.6rem;
  background: var(--card);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--navy);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-top-color .3s var(--ease);
}
.involve-card h3 { margin-bottom: .5rem; }
.involve-card p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* ---------------------------------------------------------------
   14. Contact
   --------------------------------------------------------------- */
.contact-layout { display: grid; gap: clamp(1.5rem, 3vw, 2rem); align-items: stretch; }
@media (min-width: 860px) { .contact-layout { grid-template-columns: 1fr 1fr; } }

/* Left: direct contact channels */
.contact-card {
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.contact-card > h3 { font-size: 1.4rem; margin-bottom: 1.5rem; }

.contact-info-list { display: grid; gap: 1.35rem; }
.contact-info-list li { display: flex; align-items: flex-start; gap: 1rem; }

.info-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  background: var(--green-soft);
  color: var(--green-dark);
  border-radius: 10px;
}
.info-icon svg { width: 1.3rem; height: 1.3rem; }

.info-text {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding-top: .3rem;
  min-width: 0;
  overflow-wrap: anywhere;
}
.info-text strong {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy-ink);
}
.info-text a {
  color: var(--ink-soft);
  text-decoration: none;
}
.info-text a:hover { color: var(--navy); text-decoration: underline; }
.info-text > *:not(strong) { color: var(--ink-soft); font-size: .97rem; }

.contact-social {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
.contact-social h4 {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 .9rem;
}
.social-links { display: flex; gap: .65rem; }
.social-links a {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  background: var(--green-soft);
  color: var(--green-dark);
  border-radius: 50%;
  transition: background-color .22s var(--ease), color .22s var(--ease);
}
.social-links svg { width: 1.15rem; height: 1.15rem; }
.social-links a:hover { background: var(--green); color: var(--navy-ink); }

/* Right: illustration + call to collaborate, set apart with a dashed frame */
.contact-highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(2rem, 4vw, 3rem);
  background: var(--paper-tint);
  border: 2px dashed var(--rule);
  border-radius: var(--radius-lg);
}
.contact-highlight .contact-illustration {
  width: 100%;
  max-width: 320px;
  margin-bottom: 1.75rem;
}
.contact-highlight h3 { font-size: 1.4rem; margin-bottom: .7rem; }
.contact-highlight p {
  max-width: 30rem;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------------------------------------------------------------
   15. Footer
   --------------------------------------------------------------- */
.site-footer {
  background: var(--navy-ink);
  color: #B9CBDA;
  padding-top: clamp(3rem, 6vw, 4.5rem);
  font-size: .93rem;
}

.footer-inner { display: grid; gap: 2.5rem; padding-bottom: 3rem; }
@media (min-width: 860px) { .footer-inner { grid-template-columns: 1.1fr 1.9fr; gap: 3.5rem; } }

.footer-mark { width: 52px; height: 52px; border-radius: 50%; margin-bottom: 1rem; }
.footer-name {
  font-family: var(--font-head);
  font-size: 1.08rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .6rem;
}
.footer-blurb { max-width: 30rem; margin: 0; line-height: 1.6; }

.footer-nav { display: grid; gap: 2rem; }
@media (min-width: 560px) { .footer-nav { grid-template-columns: repeat(3, 1fr); } }

.footer-heading {
  font-family: var(--font-body);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 .9rem;
}
.footer-col ul { display: grid; gap: .55rem; }
.footer-col a {
  color: #B9CBDA;
  text-decoration: none;
  transition: color .18s var(--ease);
}
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-contact li { line-height: 1.5; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
  padding-block: 1.5rem;
  border-top: 1px solid var(--rule-dark);
  font-size: .85rem;
}
.footer-bottom p { margin: 0; }
.footer-tagline { color: #8FA6B9; }

/* ---------------------------------------------------------------
   16. Hover polish
   Gated behind a real pointer so touch devices never get stuck in a
   hover state after a tap.
   --------------------------------------------------------------- */
@media (hover: hover) and (pointer: fine) {

  .vm-card,
  .obj-card,
  .focus-card,
  .involve-card,
  .kpi,
  .chip-list li {
    transition: transform .28s var(--ease), box-shadow .28s var(--ease),
                border-color .28s var(--ease), background-color .28s var(--ease);
  }

  /* Vision / Mission — a deeper green sweeps down the accent rule */
  .vm-card::before {
    content: "";
    position: absolute;
    inset: -1px auto -1px -4px;
    width: 4px;
    background: var(--green-dark);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .4s var(--ease);
  }
  .vm-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
  }
  .vm-card:hover::before { transform: scaleY(1); }

  /* Objectives — a rule draws across the top edge */
  .obj-card::after {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: var(--green);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s var(--ease);
  }
  .obj-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #D3CDBF;
  }
  .obj-card:hover::after { transform: scaleX(1); }
  .obj-card:hover .obj-num { color: var(--green-dark); }

  /* Focus areas — the photograph eases in, the icon panel lifts its glyph */
  .focus-media img,
  .focus-media-icon svg {
    transition: transform .55s var(--ease);
  }
  .focus-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #D3CDBF;
  }
  .focus-card:hover .focus-media img { transform: scale(1.05); }
  .focus-card:hover .focus-media-icon svg { transform: scale(1.08); }

  /* Approach — the step badge fills in */
  .approach-item::before {
    transition: background-color .3s var(--ease), color .3s var(--ease);
  }
  .approach-item h3 { transition: color .3s var(--ease); }
  .approach-item:hover::before { background: var(--green); color: var(--navy-ink); }
  .approach-item:hover h3 { color: var(--navy); }

  /* KPIs on the navy band */
  .kpi-tick { transition: transform .3s var(--ease); }
  .kpi:hover {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .3);
    transform: translateY(-2px);
  }
  .kpi:hover .kpi-tick { transform: scale(1.12); }

  /* Governance list */
  .gov-item h3 { transition: color .3s var(--ease); }
  .gov-item:hover h3 { color: var(--navy); }

  /* Partner institution chips */
  .chip-list li:hover {
    transform: translateY(-2px);
    border-color: var(--navy);
    box-shadow: var(--shadow-sm);
  }

  /* Get involved — the top rule turns from navy to green */
  .involve-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-top-color: var(--green);
  }

  /* Photographs in split blocks */
  .split-media img,
  .approach-media img {
    transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  }
  .split-media:hover img,
  .approach-media:hover img {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(12, 48, 84, .1), 0 26px 60px rgba(12, 48, 84, .12);
  }

  /* Contact card — each row's icon chip deepens on hover */
  .contact-card { transition: box-shadow .28s var(--ease); }
  .contact-card:hover { box-shadow: var(--shadow-md), 0 0 0 1px rgba(19, 70, 117, .05); }
  .info-icon { transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease); }
  .contact-info-list li:hover .info-icon {
    background: var(--green);
    color: var(--navy-ink);
    transform: scale(1.06);
  }
  .social-links a { transform: translateY(0); transition: background-color .22s var(--ease), color .22s var(--ease), transform .22s var(--ease); }
  .social-links a:hover { transform: translateY(-3px); }
}

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

/* ---------------------------------------------------------------
   17. Scroll reveal
   --------------------------------------------------------------- */
/* Only hide when scripting is available (html.js is set in <head>), so the page
   degrades to fully visible content with JS off. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  /* Must out-specify `.js .reveal` above, or reduced-motion users get a blank page. */
  .js .reveal { opacity: 1; transform: none; transition: none; }
  /* No lifts, scales, or sweeps — colour changes on hover are still fine. */
  .btn:hover,
  .vm-card:hover,
  .obj-card:hover,
  .focus-card:hover,
  .involve-card:hover,
  .kpi:hover,
  .chip-list li:hover,
  .split-media:hover img,
  .approach-media:hover img,
  .focus-card:hover .focus-media img,
  .focus-card:hover .focus-media-icon svg,
  .kpi:hover .kpi-tick,
  .contact-info-list li:hover .info-icon,
  .social-links a:hover { transform: none; }
  .vm-card::before, .obj-card::after { display: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
