/**
 * AbleCares Initiative Africa (ACI Africa)
 * Shared Site Stylesheet — css/aci-site.css
 * Reusable design tokens, typography, masthead navigation,
 * buttons, containers, cards, forms, section bands, and footer.
 *
 * Design language credit: the visual design (palette, typography,
 * spacing, component and motion styles) is adapted from the
 * "Welfare" Bootstrap 4 template by Colorlib (https://colorlib.com),
 * licensed under CC BY 3.0 (https://creativecommons.org/licenses/by/3.0/).
 * Colours are adjusted where needed to meet WCAG 2.2 AA contrast.
 * All content, imagery and logos belong to ACI Africa.
 */

/* ── 0. SELF-HOSTED FONTS ── */

/* Dosis (variable 200–800) for Headings — SIL Open Font License */
@font-face {
  font-family: 'Dosis';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/dosis-latin-ext-var.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Dosis';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/dosis-latin-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Overpass (variable 100–900) for Body & Interface — SIL Open Font License */
@font-face {
  font-family: 'Overpass';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/overpass-latin-ext-var.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Overpass';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/overpass-latin-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* EB Garamond (Bold 700) — fallback for African glyphs not covered above */
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/eb-garamond-latin-ext-700.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/eb-garamond-latin-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* ── 1. DESIGN TOKENS ── */
:root {
  /* Reference palette (Welfare): fills, tiles, bands, decoration */
  --primary: #F86F2D;         /* signature orange — fills only; never small white/orange text */
  --secondary: #FA8F3D;
  --tertiary: #FAAA3A;
  --quaternary: #7CBD1E;
  --primary-light: #FCC5A9;   /* lighten(primary, 25%) — offset image shadows */
  --primary-pale: #FEF0EA;    /* lighten(primary, 40%) — soft tints */

  /* AA-adjusted action colours (approved F1) */
  --primary-text: #C2501A;    /* orange text on white & white-on-orange buttons: 4.71:1 */
  --primary-text-hover: #A3410F;

  /* Canvas & Ink */
  --ground: #FFFFFF;
  --bg-light: #FAFAFA;        /* reference .bg-light */
  --ink: #000000;             /* headings — reference $black */
  --ink-2: #4A5562;           /* reference $darken — secondary copy: 7.6:1 */
  --ink-muted: #666666;       /* body copy (reference #808080 darkened for AA): 5.74:1 */
  --muted: #666666;
  --footer-bg: #252525;
  --footer-text: rgba(255, 255, 255, 0.7);  /* 7.3:1 on footer-bg */

  /* Division colour coding (approved F5): fills + AA text variants */
  --div-edu: var(--primary);
  --div-mind: var(--tertiary);
  --div-climate: var(--quaternary);
  --div-edu-text: #C2501A;    /* 4.71:1 */
  --div-mind-text: #A35F00;   /* 5.0:1 */
  --div-climate-text: #4E7A12;/* 5.1:1 */

  /* Lines & states */
  --rule: #E6E6E6;            /* lighten($black, 90%) */
  --rule-dotted: #DEE2E6;     /* reference list separators */
  --border-form: #767676;     /* accessible input border: 4.54:1 (>= 3:1 non-text) */
  --c-error: #B00020;         /* 6.8:1 */
  --c-success: #1E5C38;       /* 7.9:1 */

  /* Backward-compatibility aliases (existing markup & inline styles use these) */
  --amber: var(--primary);
  --amber-hover: #E85F1D;
  --amber-deep: var(--primary-text);
  --orange-deep: var(--primary-text);
  --orange-hover: var(--primary-text-hover);
  --green-deep: var(--div-climate-text);
  --green-hover: #3D600E;
  --brush-yellow: var(--tertiary);
  --red: var(--primary-text);
  --red-hover: var(--primary-text-hover);
  --green: var(--quaternary);
  --gold: var(--tertiary);
  --indigo: #000000;

  /* Typography Stacks */
  --font-display: "Dosis", "EB Garamond", Arial, sans-serif;
  --font-body: "Overpass", "EB Garamond", Arial, sans-serif;

  /* Type Scale (reference: hero 60/40px, section h2 34/28px, card h3 20px) */
  --fs-hero: clamp(2.5rem, 1.6rem + 3vw, 3.75rem);
  --fs-display: var(--fs-hero);
  --fs-h1: clamp(2.5rem, 1.6rem + 3vw, 3.75rem);
  --fs-h2: clamp(1.75rem, 1.5rem + 0.8vw, 2.125rem);
  --fs-h3: clamp(1.25rem, 1.15rem + 0.35vw, 1.5rem);
  --fs-lead: 1.25rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-btn: 1rem;

  /* Layout & Spacing (Bootstrap 4 container, reference section rhythm) */
  --max: 1440px;                       /* container width incl. side padding */
  --gutter: clamp(20px, 4vw, 48px);     /* responsive side padding */
  --section-y: 7em;
  --prose: 70ch;                       /* readable measure for body text */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 72px;
  --s-9: 96px;

  /* Radii */
  --radius-button: 0;
  --radius-pill: 30px;
  --radius-card: 4px;
  --radius-photo: 0;

  /* Shadows */
  --shadow-card: 0 3px 66px -24px rgba(0, 0, 0, 0.2);
  --shadow-btn: 0 5px 20px -5px rgba(0, 0, 0, 0.5);
  --shadow-lift: 0 10px 50px -15px rgba(0, 0, 0, 0.3);
  --shadow-lift-hover: 0 10px 70px -15px rgba(0, 0, 0, 0.3);
  --shadow-nav: 0 0 10px 0 rgba(0, 0, 0, 0.1);
  --shadow-offset: 20px 20px 0 0 var(--primary-light);

  /* Transitions (reference: .3s all ease) */
  --ease: ease;
  --t-fast: 0.3s;
  --t-base: 0.3s;
}

@media (max-width: 767px) {
  :root {
    --section-y: 6em;
  }
}


/* ── 2. RESET & BASE ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--ground);
  color: var(--ink-muted);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: 1.8;
  color: var(--ink-muted);
  background-color: var(--ground);
  overflow-x: hidden;
  width: 100%;
}

/* Accessible Focus Indicator (3:1 WCAG AA Required) */
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* Headings (Dosis 400, reference) */
h1,
h2,
h3,
h4,
h5,
h6,
.aci-title {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 400;
  text-align: left;
  text-wrap: balance;
  line-height: 1.4;
  letter-spacing: 0;
}

h1,
.aci-h1 {
  font-size: var(--fs-h1);
  line-height: 1.2;
}

/* Section titles: reference .heading-section h2 (uppercase, 34px / 28px) */
h2,
.aci-h2 {
  font-size: var(--fs-h2);
  line-height: 1.3;
  text-transform: uppercase;
}

h3,
.aci-h3 {
  font-size: var(--fs-h3);
  line-height: 1.4;
}

p {
  font-size: var(--fs-body);
  line-height: 1.8;
  color: var(--ink-muted);
  max-width: var(--prose);
  text-align: left;
}

.aci-lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: var(--prose);
  font-weight: 300;
}

.aci-meta,
.aci-caption {
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--ink-muted);
}

strong,
b {
  font-weight: 700;
  color: var(--ink);
}

a {
  color: var(--primary-text);
  text-underline-offset: 3px;
  transition: all var(--t-fast) var(--ease);
}

a:hover {
  color: var(--primary-text-hover);
}

img {
  max-width: 100%;
  height: auto;
}

/* Section Eyebrow (reference .subheading: 14px) */
.aci-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-text);
  margin-bottom: var(--s-3);
}

/* Brush underline & dabs: no equivalent in the reference — hidden (approved F2).
   Markup is decorative (aria-hidden) and left in place. */
.aci-brush-wrap {
  position: relative;
  display: inline;
}

.aci-brush-stroke {
  display: none !important;
}

/* ── 3. BUTTONS & ACTIONS (reference .btn: square, shadowed, invert on hover) ── */
.aci-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--radius-button);
  font-family: var(--font-body);
  font-size: var(--fs-btn);
  font-weight: 400;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  line-height: 1.2;
  box-shadow: var(--shadow-btn);
  transition: all var(--t-fast) var(--ease);
}

/* Donate (reference .btn-primary; AA orange with white text 4.71:1) */
.aci-btn-donate,
.aci-nav-donate {
  background-color: var(--primary-text) !important;
  color: #FFFFFF !important;
  border-color: var(--primary-text) !important;
}

.aci-btn-donate:hover,
.aci-nav-donate:hover {
  background-color: transparent !important;
  border-color: var(--primary-text) !important;
  color: var(--primary-text) !important;
}

/* Nav Donate keeps the reference navbar CTA pill (radius 30px, no shadow) */
.aci-nav-donate {
  border-radius: var(--radius-pill);
  min-height: 44px;
  padding: 8px 22px;
  box-shadow: none;
}

.aci-nav-donate:hover {
  background-color: var(--primary-text-hover) !important;
  border-color: var(--primary-text-hover) !important;
  color: #FFFFFF !important;
}

/* Inside the black mobile drawer the outline hover state would vanish */
.aci-mobile-drawer .aci-btn-donate:hover {
  background-color: var(--primary-text-hover) !important;
  border-color: var(--primary-text-hover) !important;
  color: #FFFFFF !important;
}

/* Primary (reference .btn-primary) */
.aci-btn-primary {
  background-color: var(--primary-text);
  color: #FFFFFF !important;
  border-color: var(--primary-text);
}

.aci-btn-primary:hover {
  background-color: transparent;
  border-color: var(--primary-text);
  color: var(--primary-text) !important;
}

/* Dark (reference .btn-white hover state) */
.aci-btn-dark {
  background-color: var(--ink);
  color: #FFFFFF !important;
  border-color: var(--ink);
}

.aci-btn-dark:hover {
  background-color: transparent;
  color: var(--ink) !important;
}

/* Secondary (reference .btn-outline-black) */
.aci-btn-secondary {
  background-color: transparent;
  color: var(--ink);
  border-color: var(--ink);
  border-radius: 2px;
}

.aci-btn-secondary:hover {
  background-color: var(--ink);
  color: #FFFFFF;
}

.aci-btn-orange {
  background-color: var(--primary-text);
  color: #FFFFFF !important;
  border-color: var(--primary-text);
}

.aci-btn-orange:hover {
  background-color: transparent;
  border-color: var(--primary-text);
  color: var(--primary-text) !important;
}

/* Green: climate fill with dark text (9.2:1) */
.aci-btn-green {
  background-color: var(--quaternary);
  color: #000000 !important;
  border-color: var(--quaternary);
}

.aci-btn-green:hover {
  background-color: transparent;
  border-color: var(--div-climate-text);
  color: var(--div-climate-text) !important;
}

/* Text Link with Arrow */
.aci-text-link {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-btn);
  color: var(--primary-text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  transition: all var(--t-fast) var(--ease);
}

.aci-text-link:hover {
  color: var(--primary-text-hover);
  transform: translateX(3px);
}

/* ── 4. CONTAINER & SECTION LAYOUT (Bootstrap 4 container, 7em sections) ── */
.aci-container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.aci-section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
  position: relative;
}

.aci-section.tight {
  padding-top: var(--s-7);
  padding-bottom: var(--s-7);
}


/* ── 5. NAVIGATION MASTHEAD (reference .ftco-navbar-light, "scrolled" state) ── */
.aci-masthead {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: var(--ground);
  border-bottom: 1px solid var(--rule);
  transition: all var(--t-fast) var(--ease);
}

.aci-masthead.is-scrolled {
  box-shadow: var(--shadow-nav);
}

.aci-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.aci-nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.aci-nav-brand img {
  height: 40px;
  width: auto;
}

.aci-nav-brand .aci-brand-logo-light {
  display: none;
}

.aci-nav-brand .aci-brand-logo-dark {
  display: inline-block;
}

/* Reference .navbar-brand: 22px / 700 / uppercase / 1px tracking */
.aci-nav-brand span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink);
  transition: color var(--t-fast) var(--ease);
}

.aci-nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  list-style: none;
}

/* Reference .nav-link: 16px / 400, active & hover in primary */
.aci-nav-link {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  text-decoration: none;
  color: var(--ink);
  padding: 8px 0;
  position: relative;
  transition: color var(--t-fast) var(--ease);
}

.aci-nav-link:hover,
.aci-nav-link.active {
  color: var(--primary-text);
}

.aci-nav-link::after {
  display: none;
}

/* Mobile Toggle & Drawer (reference collapsed menu: dark panel) */
.aci-mobile-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: color var(--t-fast) var(--ease);
}

.aci-mobile-drawer {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  height: calc(100vh - 80px);
  background-color: #000000;
  padding: var(--s-6) var(--gutter);
  z-index: 99;
  flex-direction: column;
  gap: var(--s-4);
  overflow-y: auto;
}

.aci-mobile-drawer.open,
.aci-mobile-drawer.is-open {
  display: flex;
}

.aci-mobile-drawer .aci-nav-link {
  font-size: 1.25rem;
  padding: 12px 0;
  color: #FFFFFF;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.aci-mobile-drawer .aci-nav-link:hover,
.aci-mobile-drawer .aci-nav-link.active {
  color: var(--primary);
}

@media (max-width: 991px) {
  .aci-nav-menu {
    display: none;
  }

  .aci-mobile-toggle {
    display: flex;
  }
}

/* ── 7. 3-COLUMN PILLAR TILES (reference .ftco-intro .block-18 color-1/2/3) ── */
.aci-feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.aci-feature-col {
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  color: rgba(0, 0, 0, 0.75);
}

.aci-feature-col:nth-child(1) { background-color: var(--primary); }
.aci-feature-col:nth-child(2) { background-color: var(--secondary); }
.aci-feature-col:nth-child(3) { background-color: var(--tertiary); }

.aci-feature-icon {
  width: 44px;
  height: 44px;
  margin-bottom: var(--s-3);
  color: #000000;
}

/* CSS beats the SVGs' inline stroke attributes: dark icons on the colour tiles */
.aci-feature-icon svg {
  width: 100%;
  height: 100%;
  stroke: #000000;
}

.aci-feature-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.3;
  text-transform: none;
  margin-bottom: var(--s-2);
  color: #000000;
}

.aci-feature-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.75);
}

/* Inline-coloured links inside the tiles must stay dark on orange */
.aci-feature-col a {
  color: #000000 !important;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .aci-feature-row {
    grid-template-columns: 1fr;
  }
}


/* ── 9. PROGRAM CARDS (reference .blog-entry / .cause-entry) ── */
.aci-program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: var(--s-7);
}

.aci-program-card {
  position: relative;
  background: #FFFFFF;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid #F2F2F2;
  display: flex;
  flex-direction: column;
}

.aci-card-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  overflow: hidden;
}

.aci-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Reference: text panel overlaps the photo by 40px at 90% width (md and up) */
.aci-card-body {
  position: relative;
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
  background: #FFFFFF;
}

@media (min-width: 768px) {
  .aci-card-body {
    width: 90%;
    margin: -40px auto 0;
  }
}

.aci-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 16px;
  color: var(--ink);
}

.aci-card-desc {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink-muted);
  margin-bottom: 20px;
  flex: 1;
}

/* Corner '+' affordance: round, AA orange (reference .ftco-social circle) */
.aci-card-plus {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background-color: var(--primary-text);
  color: #FFFFFF !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  transition: all var(--t-fast) var(--ease);
  z-index: 5;
}

.aci-card-plus:hover {
  background-color: var(--primary-text-hover);
}

@media (max-width: 991px) {
  .aci-program-grid {
    grid-template-columns: 1fr;
  }
}


.aci-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  margin: var(--s-5) 0 var(--s-6);
}

.aci-checklist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink-2);
}

.aci-check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--primary);
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}


/* ── 11. STORIES / FIELD PHOTOS (reference .blog-entry imagery) ── */
.aci-stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: var(--s-6);
}

.aci-story-col {
  display: flex;
  flex-direction: column;
  position: relative;
}

.aci-story-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin-bottom: 20px;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.aci-story-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Brush dabs: no reference equivalent — hidden (approved F2) */
.aci-brush-dab {
  display: none !important;
}

.aci-story-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 8px;
  color: var(--ink);
}

.aci-story-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink-muted);
  margin-bottom: 16px;
  flex: 1;
}

.aci-story-link {
  font-weight: 600;
  font-size: 1rem;
  color: var(--primary-text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.aci-story-link:hover {
  text-decoration: underline;
}

@media (max-width: 860px) {
  .aci-stories-grid {
    grid-template-columns: 1fr;
  }
}


/* ── 12. FULL-WIDTH CTA BAND (reference .ftco-section-3: photo + 90% primary overlay) ──
   Dark text on the orange overlay stays >= 5.9:1 whatever the photo (AA). */
.aci-cta-section,
.aci-cta-banner {
  position: relative;
  isolation: isolate;
  background-color: var(--primary);
  color: #000000;
  width: 100%;
  overflow: hidden;
  padding: 8em 0;
  text-align: center;
  margin: 0;
}

.aci-cta-section::before,
.aci-cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--primary);
  opacity: 0.9;
  z-index: 1;
  pointer-events: none;
}

.aci-cta-section .aci-cta-bg-photo,
.aci-cta-section .aci-cta-bg-photo img,
.aci-cta-bg-photo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.aci-cta-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
}

.aci-cta-headline {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.35rem + 1.4vw, 2.5rem);
  font-weight: 400;
  line-height: 1.3;
  text-align: center;
  color: #000000;
  margin-bottom: 16px;
}

.aci-cta-sub {
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.8);
  margin: 0 auto 32px;
  text-align: center;
}

.aci-cta-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* CTA buttons on orange: reference .btn-white and .btn-outline-black */
.aci-cta-section .aci-btn-orange {
  background-color: #FFFFFF;
  border-color: #FFFFFF;
  color: #000000 !important;
}

.aci-cta-section .aci-btn-orange:hover {
  background-color: #000000;
  border-color: #000000;
  color: #FFFFFF !important;
}

.aci-cta-section .aci-btn-green {
  background-color: transparent;
  border-color: #000000;
  color: #000000 !important;
}

.aci-cta-section .aci-btn-green:hover {
  background-color: #000000;
  border-color: #000000;
  color: #FFFFFF !important;
}

/* Brush dabs: hidden (approved F2) */
.aci-cta-brush-left,
.aci-cta-brush-right {
  display: none !important;
}


/* ── 13. FORMS & INPUTS (reference .form-control: 58px, 18px, square; AA border kept) ── */
.aci-input,
.aci-select,
.aci-textarea,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea,
select {
  width: 100%;
  height: 58px;
  background: #FFFFFF;
  border: 1px solid var(--border-form);
  border-radius: 0;
  box-shadow: none;
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  padding: 10px 20px;
  box-sizing: border-box;
  transition: all var(--t-fast) var(--ease);
}

.aci-textarea,
textarea {
  height: auto;
  min-height: 120px;
}

.aci-input::placeholder,
.aci-textarea::placeholder,
input::placeholder,
textarea::placeholder {
  color: #767676;
  opacity: 1;
}

.aci-input:focus,
.aci-select:focus,
.aci-textarea:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-color: var(--ink);
}

/* Submit buttons match the 58px field height */
form .aci-btn[type="submit"] {
  min-height: 58px;
}

.aci-input.is-invalid,
.aci-select.is-invalid,
.aci-textarea.is-invalid,
textarea.is-invalid,
select.is-invalid {
  border-color: var(--c-error);
}

.aci-field-error {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--c-error);
  font-size: 0.875rem;
  font-weight: 400;
  margin-top: 4px;
}

.aci-feedback {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 0;
  margin-top: 20px;
  font-size: 1rem;
  font-weight: 400;
}

.aci-feedback.success {
  display: flex;
  background-color: rgba(30, 92, 56, 0.08);
  color: var(--c-success);
  border: 1px solid var(--c-success);
}

.aci-feedback.error {
  display: flex;
  background-color: rgba(176, 0, 32, 0.06);
  color: var(--c-error);
  border: 1px solid var(--c-error);
}

/* ── 14. FOOTER (reference .ftco-footer: #252525, uppercase widget titles with 70px rule) ── */
.aci-footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 7em 0 3em;
  font-size: 1rem;
}

.aci-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  margin-bottom: var(--s-7);
}

.aci-footer h3,
.aci-footer h4,
.aci-footer-col-title {
  position: relative;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #FFFFFF;
  margin-bottom: 40px;
}

.aci-footer h3::after,
.aci-footer h4::after,
.aci-footer-col-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -15px;
  width: 70px;
  height: 1px;
  background: #FFFFFF;
}

.aci-footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

/* Footer text & links: overrides inline token colours that assume a white footer */
.aci-footer p,
.aci-footer a,
.aci-footer ul a {
  color: var(--footer-text) !important;
}

.aci-footer a {
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}

.aci-footer a:hover,
.aci-footer ul a:hover {
  color: #FFFFFF !important;
}

.aci-footer-brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #FFFFFF;
}

.aci-footer-mission {
  margin-bottom: 20px;
  line-height: 1.8;
}

/* Reference .ftco-footer-social: 50px translucent circles */
.aci-footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.aci-footer-social-link svg {
  width: 22px;
  height: 22px;
}

.aci-footer-social-link:hover {
  background: rgba(255, 255, 255, 0.12);
}

.aci-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--s-5);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  color: var(--footer-text);
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 860px) {
  .aci-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .aci-footer {
    padding-top: 6em;
  }
}

@media (max-width: 520px) {
  .aci-footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ── 15. INNER PAGE EDITORIAL & SECTION COMPONENTS ── */

/* Page Hero: reference .hero-wrap-2 photo banner (approved F3).
   The page's own hero photo is placed behind the title with CSS only.
   A uniform 60% black overlay keeps white text >= 5.7:1 over any photo (AA). */
.aci-page-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(420px, 55vw, 600px);
  padding: clamp(72px, 10vw, 120px) 0;
  background-color: #000000;
  overflow: hidden;
}

.aci-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
  pointer-events: none;
}

/* Container & grid stay unpositioned so the media anchors to the section */
.aci-page-hero > .aci-container {
  width: 100%;
}

.aci-page-hero-grid {
  display: block;
}

.aci-page-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.aci-page-hero-content h1 {
  color: #FFFFFF;
  text-align: center;
  margin-bottom: var(--s-4);
}

.aci-page-hero-content .aci-lead,
.aci-page-hero-content p {
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  margin-inline: auto;
  margin-bottom: var(--s-5);
}

/* Inline-styled links inside the banner must stay white on the dark overlay */
.aci-page-hero-content a {
  color: #FFFFFF !important;
}

.aci-page-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
}

/* Overrides the frame's inline aspect-ratio / radius / shadow */
.aci-page-hero-media .aci-rounded-frame {
  width: 100%;
  height: 100% !important;
  aspect-ratio: auto !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  border: 0;
  background-color: #000000;
}

.aci-page-hero-media .aci-rounded-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Media Frame for ACI Photography (outside the page banner) */
.aci-rounded-frame {
  border-radius: var(--radius-photo);
  overflow: hidden;
  position: relative;
  width: 100%;
  background-color: #F0F0F0;
}

.aci-rounded-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Alternating Section Band (reference .bg-light) */
.aci-band {
  background-color: var(--bg-light);
}

/* Mission & Vision Grid (legacy cards) */
.aci-mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: var(--s-5);
}

.aci-mv-card {
  background: #FFFFFF;
  border-radius: var(--radius-card);
  padding: 40px;
  box-shadow: var(--shadow-lift);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  position: relative;
  top: 0;
  transition: all var(--t-fast) var(--ease);
}

.aci-mv-card:hover {
  top: -3px;
  box-shadow: var(--shadow-lift-hover);
}

.aci-mv-card h2 {
  font-size: var(--fs-h2);
  color: var(--ink);
}

.aci-mv-card p {
  color: var(--ink-muted);
  font-size: var(--fs-lead);
}

/* Values Grid (legacy cards) */
.aci-values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: var(--s-6);
}

.aci-value-card {
  background: #FFFFFF;
  border-radius: var(--radius-card);
  padding: 40px;
  box-shadow: var(--shadow-lift);
  display: flex;
  flex-direction: column;
  position: relative;
  top: 0;
  transition: all var(--t-fast) var(--ease);
}

.aci-value-card:hover {
  top: -3px;
  box-shadow: var(--shadow-lift-hover);
}

.aci-value-card h3 {
  font-size: 1.25rem;
  color: var(--ink);
  margin-bottom: var(--s-2);
}

.aci-value-card p {
  font-size: 1rem;
  color: var(--ink-muted);
}

/* Principles List (legacy) */
.aci-principles-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  margin-top: var(--s-5);
}

.aci-principle-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px dotted var(--rule-dotted);
}

.aci-principle-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--primary-text);
}

.aci-principle-text {
  font-size: 1.125rem;
  color: var(--ink);
  line-height: 1.5;
}

/* Charter Grid */
.aci-charter-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.aci-charter-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.aci-charter-content h2 {
  margin-bottom: var(--s-3);
}

.aci-charter-content p {
  font-size: var(--fs-lead);
  color: var(--ink-2);
}

@media (max-width: 991px) {
  .aci-page-hero-grid,
  .aci-charter-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .aci-values-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .aci-mv-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .aci-principle-item {
    grid-template-columns: 50px 1fr;
  }
}


/* ── 9. PROGRAM & DIVISION COMPONENTS ── */
.aci-division-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}
.aci-division-dot.edu { background-color: var(--div-edu); }
.aci-division-dot.mind { background-color: var(--div-mind); }
.aci-division-dot.climate { background-color: var(--div-climate); }

/* Division Two-Column Layout */
.aci-division-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: flex-start;
}

.aci-division-content h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--s-2);
}

.aci-division-lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--ink-muted);
  margin-bottom: var(--s-5);
}

/* Program List (legacy) */
.aci-program-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.aci-program-item {
  border-top: 1px dotted var(--rule-dotted);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.aci-program-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ink);
}

.aci-program-desc {
  font-size: 1rem;
  color: var(--ink-2);
}

/* Reference .tagcloud-style badge */
.aci-badge-completed {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid #CCCCCC;
  color: var(--ink);
  margin-left: 8px;
  vertical-align: middle;
}

/* PAMHO Flagship Card (reference .ftco-media-shadow) */
.aci-pamho-card {
  background: #FFFFFF;
  border-radius: var(--radius-card);
  padding: 30px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-lift);
  position: relative;
  top: 0;
  transition: all var(--t-fast) var(--ease);
}

.aci-pamho-card:hover {
  top: -3px;
  box-shadow: var(--shadow-lift-hover);
}

.aci-pamho-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 8px;
}

.aci-pamho-desc {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink-2);
  margin-bottom: 16px;
}

/* Accordion (reference #accordion card header) */
.aci-accordion {
  border-top: 1px solid var(--rule);
  padding-top: 12px;
  margin-top: 16px;
}

.aci-accordion summary {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--ink);
  cursor: pointer;
  padding: 8px 0;
  user-select: none;
}

.aci-accordion summary::-webkit-details-marker,
.aci-accordion summary::marker {
  color: var(--primary-text);
}

.aci-accordion-content {
  margin-top: 12px;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink-2);
}

.aci-accordion-list {
  list-style: disc;
  margin-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (max-width: 991px) {
  .aci-division-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* ── 10. IMPACT STAT CARD (legacy) ── */
.aci-stat-card {
  max-width: 680px;
  background: #FFFFFF;
  border-radius: var(--radius-card);
  padding: 40px;
  box-shadow: var(--shadow-card);
}

.aci-stat-num {
  font-family: var(--font-body);
  font-size: clamp(3rem, 2rem + 4vw, 3.75rem);
  font-weight: 300;
  line-height: 1;
  color: var(--ink);
}

.aci-stat-label {
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--ink);
  margin-top: var(--s-3);
  line-height: 1.5;
}

.aci-stat-desc {
  margin-top: var(--s-2);
  font-size: 1rem;
  color: var(--ink-muted);
}


/* ══════════════════════════════════════════════════════════════════
   COMPONENT SYSTEM: ABOUT / PROGRAMS / IMPACT / FORMS
   ══════════════════════════════════════════════════════════════════ */

/* ── 1. Full-Bleed Mission & Vision Panels [about.html] (reference colour tiles) ── */
.aci-mv-edge-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  margin: 0;
  padding: 0;
}

.aci-mv-panel {
  padding: 7em var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Dark text on both tiles: 7.3:1 on primary, 9.8:1 on tertiary */
.aci-mv-amber {
  background-color: var(--primary);
  color: #000000;
}

.aci-mv-green {
  background-color: var(--tertiary);
  color: #000000;
}

/* Half the container minus gutters: text edges line up with .aci-container */
.aci-mv-panel-inner {
  max-width: calc(var(--max) / 2 - 2 * var(--gutter));
  width: 100%;
}

.aci-mv-panel-inner.left {
  margin-left: auto;
}

.aci-mv-panel-inner.right {
  margin-right: auto;
}

.aci-mv-panel-inner .aci-eyebrow {
  margin-bottom: var(--s-2);
}

.aci-mv-amber .aci-eyebrow,
.aci-mv-green .aci-eyebrow {
  color: #000000;
}

.aci-mv-amber h2,
.aci-mv-green h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 400;
  line-height: 1.2;
  color: #000000;
  margin-bottom: var(--s-3);
}

.aci-mv-amber p,
.aci-mv-green p {
  font-size: clamp(1rem, 1.25vw, 1.1875rem);
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.85);
  margin: 0;
}

@media (max-width: 900px) {
  .aci-mv-edge-section {
    grid-template-columns: 1fr;
  }
  .aci-mv-panel {
    padding: 6em var(--gutter);
  }
  .aci-mv-panel-inner.left,
  .aci-mv-panel-inner.right {
    margin: 0;
    max-width: 100%;
  }
}

/* ── 2. Six-Up Values Grid (reference .services: large primary numerals) ── */
.aci-flat-values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
  margin-top: var(--s-6);
}

.aci-flat-value-item {
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 40px 30px;
  background: transparent;
  transition: all var(--t-fast) var(--ease);
}

.aci-flat-value-item:hover,
.aci-flat-value-item:focus-within {
  background: var(--primary-pale);
}

.aci-value-numeral {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 3vw, 3.125rem);
  font-weight: 400;
  color: var(--primary-text);
  line-height: 1;
  margin-bottom: var(--s-4);
}

.aci-flat-value-item h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: var(--s-2);
}

.aci-flat-value-item p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-muted);
  margin: 0;
}

@media (max-width: 860px) {
  .aci-flat-values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .aci-flat-values-grid {
    grid-template-columns: 1fr;
  }
}

/* ── 3. Editorial Rows (reference list separators + .ftco-media-shadow hover lift) ── */
.aci-principles-editorial {
  list-style: none;
  margin: var(--s-5) 0 0;
  padding: 0;
  border-top: 1px dotted var(--rule-dotted);
}

.aci-principle-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  padding: clamp(20px, 3vw, 28px) clamp(12px, 2vw, 20px);
  border-bottom: 1px dotted var(--rule-dotted);
  transition: all var(--t-fast) var(--ease);
  cursor: default;
}

.aci-principle-row:hover,
.aci-principle-row:focus-within {
  transform: translateY(-3px);
  background: #FFFFFF;
  box-shadow: var(--shadow-lift);
}

.aci-principle-index {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--primary-text);
  min-width: 44px;
}

.aci-principle-statement {
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.5;
  flex-grow: 1;
}

.aci-row-action {
  color: var(--primary-text);
  font-size: 1.5rem;
  font-weight: 400;
  transition: all var(--t-fast) var(--ease);
  display: inline-block;
}

.aci-principle-row:hover .aci-row-action,
.aci-principle-row:focus-within .aci-row-action {
  transform: rotate(90deg);
}

/* ── 4. Charter Note (reference .ftco-media-shadow box) ── */
.aci-charter-note {
  border: 1px solid var(--rule);
  border-radius: 0;
  padding: 40px;
  background: #FFFFFF;
  box-shadow: var(--shadow-card);
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.aci-charter-prominent {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink);
  margin-top: var(--s-4);
  padding-left: var(--s-4);
  border-left: 4px solid var(--primary);
}

/* Charter photo: reference .block-3 offset shadow (overrides inline radius/shadow) */
.aci-charter-media .aci-photo-wipe {
  border-radius: 0 !important;
  overflow: visible !important;
  box-shadow: var(--shadow-offset) !important;
}

@media (max-width: 900px) {
  .aci-charter-note {
    padding: 30px 24px;
  }
  .aci-charter-media .aci-photo-wipe {
    box-shadow: 10px 10px 0 0 var(--primary-light) !important;
  }
}

/* ── 5. Programs Sub-nav (reference .ftco-tab-nav type) & Division Dots ── */
.aci-subnav {
  position: sticky;
  top: 80px;
  z-index: 90;
  background: #FFFFFF;
  border-bottom: 1px solid var(--rule);
  box-shadow: var(--shadow-nav);
}

.aci-subnav-inner {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 14px 0;
  scrollbar-width: none;
}

.aci-subnav-inner::-webkit-scrollbar {
  display: none;
}

.aci-subnav-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-muted);
  text-decoration: none;
  white-space: nowrap;
  padding: 6px 14px;
  transition: all var(--t-fast) var(--ease);
}

.aci-subnav-link:hover,
.aci-subnav-link:focus-visible {
  color: var(--ink);
}

.aci-subnav-track {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 24px);
  overflow-x: auto;
  white-space: nowrap;
  padding: 8px 0;
  scrollbar-width: none;
}

.aci-subnav-track::-webkit-scrollbar {
  display: none;
}

.aci-subnav-item {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-muted);
  text-decoration: none;
  padding: 12px 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: color var(--t-fast) var(--ease);
  position: relative;
}

.aci-subnav-item:hover,
.aci-subnav-item:focus-visible,
.aci-subnav-item.active {
  color: var(--ink);
}

.aci-subnav-slider {
  position: absolute;
  bottom: 0;
  height: 2px;
  background-color: var(--primary-text);
  transition: left var(--t-fast) var(--ease), width var(--t-fast) var(--ease);
  pointer-events: none;
}

.aci-dot-edu,
.aci-dot-mind,
.aci-dot-climate {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.aci-dot-edu { background-color: var(--div-edu); }
.aci-dot-mind { background-color: var(--div-mind); }
.aci-dot-climate { background-color: var(--div-climate); }

/* ── 6. Programs Division Bands (reference alternating white / .bg-light + .block-3 imagery) ── */
.aci-division-band {
  width: 100%;
  padding: 7em 0;
  position: relative;
}

.aci-band-edu {
  background-color: var(--ground);
}

.aci-band-mind {
  background-color: var(--bg-light);
}

.aci-band-climate {
  background-color: var(--ground);
}

.aci-division-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: stretch;
}

.aci-division-split > * {
  min-width: 0;
}

.aci-division-split.reverse {
  grid-template-columns: 0.85fr 1.15fr;
}

/* Reference .block-18 numerals: light weight, large */
.aci-huge-index {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 300;
  line-height: 1;
  margin-bottom: var(--s-3);
}

.aci-band-edu .aci-huge-index { color: var(--div-edu-text); }
.aci-band-mind .aci-huge-index { color: var(--div-mind-text); }
.aci-band-climate .aci-huge-index { color: var(--div-climate-text); }

.aci-division-display-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: var(--s-3);
}

/* Reference .block-3 .image: square photo with 20px offset shadow in light primary */
.aci-sticky-photo-wrap {
  position: sticky;
  top: 140px;
  height: clamp(360px, 60vh, 560px);
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--shadow-offset);
}

.aci-division-split.reverse .aci-sticky-photo-wrap {
  box-shadow: -20px 20px 0 0 var(--primary-light);
}

.aci-sticky-photo-wrap img,
.aci-sticky-photo-wrap.aci-photo-wipe img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.aci-prog-editorial-rows {
  list-style: none;
  margin: var(--s-5) 0 0;
  padding: 0;
  border-top: 1px dotted var(--rule-dotted);
}

.aci-prog-row {
  display: grid;
  grid-template-columns: 1.1fr 1.5fr auto;
  gap: clamp(12px, 2vw, 24px);
  align-items: baseline;
  padding: clamp(18px, 2.5vw, 26px) clamp(12px, 2vw, 18px);
  border-bottom: 1px dotted var(--rule-dotted);
  transition: all var(--t-fast) var(--ease);
  cursor: default;
}

.aci-prog-row:hover,
.aci-prog-row:focus-within {
  transform: translateY(-3px);
  background: #FFFFFF;
  box-shadow: var(--shadow-lift);
}

.aci-prog-row-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.35;
}

.aci-prog-row-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-2);
}

.aci-prog-row-arrow {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--primary-text);
  transition: transform var(--t-fast) var(--ease);
}

.aci-band-mind .aci-prog-row-arrow { color: var(--div-mind-text); }
.aci-band-climate .aci-prog-row-arrow { color: var(--div-climate-text); }

.aci-prog-row:hover .aci-prog-row-arrow {
  transform: translateX(4px);
}

@media (max-width: 900px) {
  .aci-division-split,
  .aci-division-split.reverse {
    grid-template-columns: 1fr;
  }
  .aci-sticky-photo-wrap {
    position: static;
    height: 320px;
    margin-top: 24px;
    box-shadow: 10px 10px 0 0 var(--primary-light);
  }
  .aci-division-split.reverse .aci-sticky-photo-wrap {
    box-shadow: 10px 10px 0 0 var(--primary-light);
  }
  .aci-prog-row {
    grid-template-columns: 1fr auto;
  }
  .aci-prog-row-desc {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .aci-division-band {
    padding: 6em 0;
  }
}

/* ── 7. Impact Band (reference .ftco-intro colour tile: primary fill, dark text 7.3:1) ── */
.aci-impact-green-band {
  width: 100%;
  background-color: var(--primary);
  color: #000000;
  padding: 7em 0;
  position: relative;
  overflow: hidden;
}

.aci-impact-band-inner {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  position: relative;
  z-index: 2;
}

.aci-giant-stat-num {
  font-family: var(--font-body);
  font-size: clamp(4.5rem, 10vw, 8rem);
  font-weight: 300;
  line-height: 1;
  color: #000000;
  margin-bottom: var(--s-3);
}

.aci-giant-stat-label {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  font-weight: 400;
  line-height: 1.35;
  color: #000000;
  margin-bottom: var(--s-2);
}

.aci-giant-stat-desc {
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.85);
  max-width: 560px;
}

/* Africa Silhouette [Source: Natural Earth 1:110m data] */
.aci-africa-silhouette-outline {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  opacity: 0.25;
  pointer-events: none;
}

.aci-africa-silhouette-outline svg {
  width: 100%;
  max-width: 480px;
  height: auto;
  fill: #FFFFFF;
  stroke: none;
}

@media (max-width: 860px) {
  .aci-impact-band-inner {
    grid-template-columns: 1fr;
  }
  .aci-africa-silhouette-outline {
    display: none;
  }
}

@media (max-width: 767px) {
  .aci-impact-green-band {
    padding: 6em 0;
  }
}

/* ── 8. Impact Milestones Rows ── */
.aci-milestone-rows {
  list-style: none;
  margin: var(--s-5) 0 0;
  padding: 0;
  border-top: 1px dotted var(--rule-dotted);
}

.aci-milestone-row {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  padding: clamp(20px, 3vw, 30px) clamp(12px, 2vw, 20px);
  border-bottom: 1px dotted var(--rule-dotted);
  transition: all var(--t-fast) var(--ease);
}

.aci-milestone-row:hover,
.aci-milestone-row:focus-within {
  transform: translateY(-3px);
  background: #FFFFFF;
  box-shadow: var(--shadow-lift);
}

.aci-milestone-idx {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  color: var(--primary-text);
  min-width: 48px;
}

.aci-milestone-title {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1.8vw, 1.35rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.4;
  flex-grow: 1;
}

/* ── 9. Impact Photo Mosaic (reference .gallery: square, dimmed until hover) ── */
.aci-mosaic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: clamp(32px, 5vw, 56px);
}

.aci-mosaic-item {
  border-radius: 0;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 3;
  background: #EEEEEE;
}

.aci-mosaic-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  transition: all var(--t-fast) var(--ease);
  pointer-events: none;
}

.aci-mosaic-item:hover::after {
  opacity: 0;
}

.aci-mosaic-item img,
.aci-mosaic-item.aci-photo-wipe img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .aci-mosaic-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ── 10. Motion System (reference animate.css fadeInUp / fadeIn, 1s, 50ms stagger) ──
   Content is visible by default. With JS off, all content remains 100% visible.
   aci-app.js adds .js-enabled to <html> and .is-revealed to targets in view. */
.aci-line-mask {
  display: block;
}

.aci-mask-rise {
  display: inline-block;
  transform: none;
  opacity: 1;
}

.aci-photo-wipe {
  clip-path: none;
  transform: none;
}

.aci-photo-wipe img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

/* fadeInUp: headline lines */
.js-enabled .aci-mask-rise {
  opacity: 0;
  transform: translate3d(0, 100%, 0);
  transition: opacity 1s ease, transform 1s ease;
  will-change: transform, opacity;
}

.js-enabled .is-revealed .aci-mask-rise,
.js-enabled .is-revealed.aci-mask-rise {
  transform: none !important;
  opacity: 1 !important;
}

.js-enabled .aci-line-2 {
  transition-delay: 50ms;
}

/* fadeIn: photos */
.js-enabled .aci-photo-wipe {
  opacity: 0;
  transition: opacity 1s ease;
}

.js-enabled .is-revealed .aci-photo-wipe,
.js-enabled .is-revealed.aci-photo-wipe {
  opacity: 1 !important;
}

/* fadeInUp: mosaic tiles */
.js-enabled .aci-mosaic-item {
  opacity: 0;
  transform: translate3d(0, 50px, 0);
  transition: opacity 1s ease, transform 1s ease;
}

.js-enabled .aci-mosaic-item.is-revealed {
  opacity: 1;
  transform: none;
}

.js-enabled .aci-stagger-1 { transition-delay: 0ms; }
.js-enabled .aci-stagger-2 { transition-delay: 50ms; }
.js-enabled .aci-stagger-3 { transition-delay: 100ms; }

/* ── 11. Cultural Layer Quarantined Behind body.aci-cultural-on ── */
.aci-cultural-element {
  display: none !important;
}

body.aci-cultural-on .aci-cultural-element {
  display: block !important;
}

/* Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {
  .js-enabled .aci-mask-rise,
  .js-enabled .aci-photo-wipe,
  .js-enabled .aci-mosaic-item,
  .aci-subnav-slider,
  .aci-principle-row,
  .aci-prog-row,
  .aci-milestone-row,
  .aci-track-row {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* ── 12. Grid System, Form Layout & Action Rows ── */
.aci-grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 30px);
}

.aci-col-12 { grid-column: span 12; }
.aci-col-8 { grid-column: span 8; }
.aci-col-7 { grid-column: span 7; }
.aci-col-6 { grid-column: span 6; }
.aci-col-5 { grid-column: span 5; }
.aci-col-4 { grid-column: span 4; }

@media (max-width: 900px) {
  .aci-col-8, .aci-col-7, .aci-col-6, .aci-col-5, .aci-col-4 {
    grid-column: span 12;
  }
}

.aci-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  text-align: left;
}

/* Reference .block-17 labels: bold, black */
.aci-form-group label {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink);
}

/* Form panel (reference .sidebar-wrap: hairline border, square) */
.aci-form-card {
  background: #FFFFFF;
  border: 1px solid var(--rule);
  border-radius: 0;
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-card);
}

/* Crisis notice: safety content, kept high-contrast (no reference equivalent) */
.aci-crisis-notice {
  background-color: #FFF5F5;
  /* Same 4px red bar, drawn inside the box so it doesn't shift the container edges */
  box-shadow: inset 4px 0 0 var(--c-error);
  border-top: 1px solid rgba(176, 0, 32, 0.2);
  border-bottom: 1px solid rgba(176, 0, 32, 0.2);
  padding: clamp(18px, 2.5vw, 26px) 0;
}

/* Safety copy is exempt from the 70ch body-text cap */
.aci-crisis-notice p {
  max-width: none;
}

/* Keeps a phone number and its label on one line */
.aci-nowrap {
  white-space: nowrap;
}

.aci-track-rows {
  list-style: none;
  margin: var(--s-4) 0 0;
  padding: 0;
  border-top: 1px dotted var(--rule-dotted);
}

.aci-track-row {
  display: grid;
  grid-template-columns: 1.1fr 1.5fr auto;
  gap: clamp(12px, 2vw, 24px);
  align-items: baseline;
  padding: clamp(18px, 2.5vw, 26px) clamp(12px, 2vw, 18px);
  border-bottom: 1px dotted var(--rule-dotted);
  transition: all var(--t-fast) var(--ease);
  cursor: default;
}

.aci-track-row:hover,
.aci-track-row:focus-within {
  transform: translateY(-3px);
  background: #FFFFFF;
  box-shadow: var(--shadow-lift);
}

.aci-track-row-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.35;
  display: flex;
  align-items: center;
  gap: 10px;
}

.aci-track-row-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-2);
}

.aci-track-row-action {
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--primary-text);
  transition: transform var(--t-fast) var(--ease);
}

.aci-track-row:hover .aci-track-row-action,
.aci-track-row:focus-within .aci-track-row-action {
  transform: translateX(4px);
}

@media (max-width: 900px) {
  .aci-track-row {
    grid-template-columns: 1fr auto;
  }
  .aci-track-row-desc {
    grid-column: 1 / -1;
  }
}
