/* ==========================================================================
   Ben Kijuu Foundation — public site design system
   Consolidated from page-level inline <style> blocks + retuned to match
   the approved reference design (jade/emerald + gold, warm cream, Inter/Caveat).
   This file is loaded ONLY by public pages via includes/header.php.
   admin/ and patients/ continue to use assets/css/style.css untouched.
   ========================================================================== */

:root {
  --emerald-500: #32665b;
  --emerald-600: #2a5650;
  --emerald-700: #1e4d44;
  --jade-400:    #daa520;
  --jade-300:    #ecd083;

  --forest-900:  #142e29;
  --forest-800:  #1c413a;
  --forest-700:  #244f47;

  --cream:       #f7f6f1;
  --mint-50:     #f0f7f5;
  --mint-100:    #dcebe7;
  --line:        #e4e8e4;

  --ink:         #1b2a26;
  --muted:       #54635d;
  --muted-soft:  #84908a;

  --amber:       #daa520;
  --amber-600:   #c0901a;

  --white:       #ffffff;

  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-script:  "Caveat", "Segoe Script", cursive;
  --font-sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-sm: 10px;
  --radius:    18px;
  --radius-lg: 28px;
  --radius-xl: 40px;

  --shadow-sm: 0 2px 10px rgba(8, 41, 29, .05);
  --shadow:    0 16px 40px -18px rgba(8, 41, 29, .22);
  --shadow-lg: 0 40px 80px -32px rgba(8, 41, 29, .32);

  --container: 1180px;
  --gutter: clamp(20px, 5vw, 48px);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ----- Base ----------------------------------------------------------- */
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--jade-300); color: var(--forest-900); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
}
h1 { font-size: clamp(2.5rem, 5.6vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 700; }
h4 { font-size: 1.12rem; font-weight: 700; }
p  { color: var(--muted); }

.script { font-family: var(--font-script); font-weight: 600; color: var(--emerald-600); font-size: 1.45em; line-height: 1; }
.script--gold { color: var(--amber-600); }
.display-script { font-family: var(--font-script); font-weight: 600; color: var(--emerald-600); font-style: normal; }
.display-italic { color: var(--emerald-600); font-style: normal; }
.text-gold { color: var(--amber-600); }
.rule-gold { display: block; width: 66px; height: 3px; background: var(--amber); border-radius: 2px; margin: 28px 0; }

.brand__name { font-family: var(--font-script); font-size: 1.7rem; font-weight: 600; letter-spacing: 0; color: var(--ink); line-height: 1; }
.brand__name b { color: var(--emerald-500); font-weight: 700; }
.brand__name--light { color: #fff; }
.brand__name--light b { color: var(--jade-300); }

/* ----- Layout helpers --------------------------------------------------- */
/* Overrides Bootstrap's stepped-breakpoint .container (loaded earlier in
   <head>) with the reference's fluid single-max-width container. Equal
   specificity + later in cascade order = this wins at every viewport. */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 11vw, 130px); }
.section--tight { padding-block: clamp(54px, 7vw, 84px); }
.measure { max-width: 56ch; }
.center { text-align: center; }

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

.kicker {
  display: inline-flex; align-items: center; gap: .55em;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--emerald-600);
}
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--jade-400); border-radius: 2px; }
.kicker--center { justify-content: center; }
.on-dark .kicker { color: var(--jade-300); }

.head { max-width: 620px; margin-bottom: clamp(36px, 5vw, 56px); }
.head--center { margin-inline: auto; text-align: center; }
.head h2 { margin: 14px 0 16px; }
.head p { font-size: 1.05rem; }
.head--split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.head--split .head__text { max-width: 600px; }

/* ----- Buttons ---------------------------------------------------------- */
.btn {
  --bg: var(--emerald-500); --fg: #fff;
  display: inline-flex; align-items: center; gap: .6em;
  padding: .9em 1.6em; border: 0; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: .98rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  box-shadow: 0 10px 24px -12px rgba(50,102,91,.6);
}
.btn:hover { transform: translateY(-2px); background: var(--emerald-600); color: #fff; }
.btn:active { transform: translateY(0); }
.btn svg, .btn i { width: 18px; height: 18px; }

.btn--amber { --bg: var(--amber); --fg: #2a1c05; box-shadow: 0 10px 24px -12px rgba(218,165,32,.75); }
.btn--amber:hover { background: var(--amber-600); color: #2a1c05; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { background: var(--white); box-shadow: inset 0 0 0 1.5px var(--emerald-500); color: var(--ink); }
.btn--light { background: #fff; color: var(--emerald-700); box-shadow: var(--shadow-sm); }
.btn--light:hover { background: var(--mint-50); color: var(--emerald-700); }
.btn--ghost-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.32); }
.btn--ghost-light:hover { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); color: #fff; }
.btn--lg { padding: 1.05em 2em; font-size: 1.02rem; }
.btn--sm { padding: .6em 1.1em; font-size: .86rem; }
.btn--block { width: 100%; justify-content: center; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.text-link {
  display: inline-flex; align-items: center; gap: .45em;
  font-weight: 600; color: var(--emerald-600);
  transition: gap .25s var(--ease);
}
.text-link svg, .text-link i { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.text-link:hover { gap: .7em; color: var(--emerald-600); }
.text-link:hover svg, .text-link:hover i { transform: translateX(3px); }

/* ==========================================================================
   Top bar
   ========================================================================== */
.topbar { background: var(--forest-900); color: rgba(255,255,255,.82); font-size: .82rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar a { color: rgba(255,255,255,.82); transition: color .2s; }
.topbar a:hover { color: #fff; }
.topbar__left { display: flex; gap: 22px; align-items: center; min-width: 0; }
.topbar__item { display: inline-flex; align-items: center; gap: .5em; }
.topbar__item i { color: var(--jade-400); font-size: .78rem; }
.topbar__socials { display: flex; gap: 14px; align-items: center; flex: none; }
.topbar__socials a { font-size: .85rem; }
@media (max-width: 760px) {
  .topbar .container { min-height: 38px; }
  .topbar__item--hide { display: none; }
}

/* ==========================================================================
   Navbar — rebuilt 1:1 on the reference's .site-header/.nav/.nav__menu system
   ========================================================================== */
html { scroll-padding-top: 96px; }

.site-header {
  position: sticky; top: 0; z-index: 1050;
  background: rgba(247,246,241,.86);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s, background .3s;
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); border-color: var(--line); background: rgba(247,246,241,.96); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 78px; }

.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand__logo { height: 50px; width: auto; flex: none; transition: height .2s; }
.site-header.is-stuck .brand__logo { height: 40px; }

.nav__menu { display: flex; align-items: center; justify-content: center; gap: 2px; flex: 1 1 auto; min-width: 0; }
.nav__menu .btn--mobile-donate { display: none; }
.nav__menu > a.nav__portal { display: none; }
.nav__menu > a {
  position: relative; padding: 8px 12px; font-size: .94rem; font-weight: 500;
  color: var(--ink); border-radius: 999px; transition: color .2s, background .2s;
  white-space: nowrap;
}
.nav__menu > a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px;
  height: 2px; background: var(--jade-400); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .28s var(--ease);
}
.nav__menu > a:hover, .nav__menu > a.is-active { color: var(--emerald-600); }

/* Patient Portal appears as a drawer action on mobile. Desktop keeps account
   and donation actions grouped at the far right. */
.nav__menu > a.nav__portal {
  align-items: center; gap: 7px;
  background: var(--mint-50); color: var(--emerald-700); font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--mint-100);
}
.nav__menu > a.nav__portal::after { display: none; }
.nav__menu > a.nav__portal:hover, .nav__menu > a.nav__portal.is-active { background: var(--mint-100); color: var(--emerald-700); }
.nav__menu > a:hover::after, .nav__menu > a.is-active::after { transform: scaleX(1); }
.nav__menu > a.is-active { font-weight: 700; }

/* "About" dropdown — reference has no dropdown, this is a bkf-specific addition
   styled with the same tokens (card radius/shadow) so it reads as one system */
.nav__item--dropdown { position: relative; }
/* Invisible bridge over the gap between the toggle and the dropdown panel —
   without this, moving the mouse diagonally down breaks :hover in the gap
   and the menu closes before the pointer reaches a child link. */
.nav__item--dropdown::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px;
}
.nav__item--dropdown > .nav__menu-toggle {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  padding: 8px 12px; font-size: .94rem; font-weight: 500; color: var(--ink);
  border-radius: 999px; background: none; border: none; font-family: var(--font-sans);
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.nav__item--dropdown > .nav__menu-toggle i { font-size: .6rem; opacity: .5; transition: transform .2s, opacity .2s; }
.nav__item--dropdown:hover > .nav__menu-toggle,
.nav__item--dropdown.is-active > .nav__menu-toggle,
.nav__item--dropdown.is-open > .nav__menu-toggle { color: var(--emerald-600); background: rgba(220,235,231,.42); }
.nav__item--dropdown:hover > .nav__menu-toggle i { transform: rotate(180deg); opacity: 1; }
.nav__dropdown-menu {
  position: absolute; top: 100%; left: 0; margin-top: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 8px; min-width: 220px;
  opacity: 0; pointer-events: none; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease;
}
.nav__item--dropdown:hover .nav__dropdown-menu,
.nav__item--dropdown.is-open .nav__dropdown-menu { opacity: 1; pointer-events: auto; transform: translateY(0); }
.nav__dropdown-menu a {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border-radius: 12px; color: var(--ink); font-size: .92rem; font-weight: 500;
  transition: background .15s, color .15s;
}
.nav__dropdown-menu a i { color: var(--emerald-500); opacity: .8; width: 16px; }
.nav__dropdown-menu a:hover { background: var(--mint-50); color: var(--emerald-600); }

.nav__actions { display: flex; align-items: center; gap: 10px; flex: none; }
.nav__actions .btn { padding: .75em 1.18em; font-size: .9rem; white-space: nowrap; }
.nav__actions .btn--ghost { color: var(--emerald-700); background: var(--mint-50); box-shadow: inset 0 0 0 1px var(--mint-100); }
.nav__actions .btn--ghost:hover { background: #fff; box-shadow: inset 0 0 0 1.5px var(--emerald-500); }

.nav__toggle {
  display: none; width: 44px; height: 44px; flex: none;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  position: relative; cursor: pointer;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
  transform: translate(-50%, -50%); transition: transform .3s var(--ease), opacity .2s;
}
.nav__toggle span::before { transform: translate(-50%, -7px); }
.nav__toggle span::after  { transform: translate(-50%,  5px); }
body.nav-open .nav__toggle span { background: transparent; }
body.nav-open .nav__toggle span::before { transform: translate(-50%, 0) rotate(45deg); }
body.nav-open .nav__toggle span::after  { transform: translate(-50%, 0) rotate(-45deg); }

.nav__backdrop {
  position: fixed; inset: 0; background: rgba(5,28,20,.4); z-index: 1040;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
body.nav-open .nav__backdrop { opacity: 1; pointer-events: auto; }

@media (max-width: 1120px) {
  .nav { gap: 12px; }
  .nav__menu > a,
  .nav__item--dropdown > .nav__menu-toggle { padding-inline: 9px; font-size: .9rem; }
  .nav__actions .btn { padding-inline: 1em; }
}

@media (max-width: 1060px) {
  .nav__toggle { display: block; }
  .nav__actions .btn:not(.nav__toggle) { display: none; }
  .nav__menu {
    position: fixed; top: 0; right: 0; z-index: 1045;
    height: 100dvh; width: min(84vw, 340px);
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 4px; padding: 100px 22px 32px; background: var(--cream);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%); transition: transform .35s var(--ease);
    overflow-y: auto;
  }
  body.nav-open .nav__menu { transform: translateX(0); }
  body.nav-open { overflow: hidden; }
  .nav__menu > a { padding: 14px 16px; font-size: 1.05rem; border-radius: 12px; }
  .nav__menu > a::after { display: none; }
  .nav__menu > a:hover, .nav__menu > a.is-active { background: var(--mint-100); }
  .nav__item--dropdown { width: 100%; }
  .nav__item--dropdown > .nav__menu-toggle { width: 100%; justify-content: space-between; padding: 14px 16px; }
  .nav__dropdown-menu {
    position: static; opacity: 1; pointer-events: auto; transform: none;
    box-shadow: none; border: none; background: var(--mint-50); margin: 4px 0 8px;
    display: none;
  }
  .nav__item--dropdown.is-open .nav__dropdown-menu { display: block; }
  .nav__menu .btn--mobile-donate { display: flex; margin-top: 18px; justify-content: center; }
  .nav__menu > a.nav__portal { display: flex; justify-content: center; margin-top: 6px; }
}

@media (max-width: 420px) {
  .brand__logo { height: 44px; }
  .nav { min-height: 70px; }
  .nav__menu { width: min(88vw, 340px); padding-inline: 18px; }
}

/* Bottom nav (mobile) */
.bkf-bottom-nav {
  position: fixed !important; bottom: 0 !important; left: 0 !important; right: 0 !important;
  height: 62px !important; background: #fff !important; border-top: 1px solid var(--line) !important;
  display: flex !important; align-items: center !important; z-index: 999 !important;
  box-shadow: 0 -2px 16px rgba(8,41,29,.08) !important; padding: 0 !important; margin: 0 !important;
}
@media (min-width: 992px) { .bkf-bottom-nav { display: none !important; } }
.bkf-bottom-nav-item {
  flex: 1 !important; display: flex !important; flex-direction: column !important; align-items: center !important;
  justify-content: center !important; color: var(--muted-soft) !important; font-size: 11px !important; font-weight: 600 !important;
  background: none !important; border: none !important; cursor: pointer !important; height: 62px !important; gap: 4px !important;
}
.bkf-bottom-nav-item i { font-size: 19px !important; }
.bkf-bottom-nav-item:hover, .bkf-bottom-nav-item.bkf-bottom-active { color: var(--emerald-600) !important; }
.bkf-bottom-nav-donate { color: var(--amber-600) !important; }
.bkf-bottom-nav-donate:hover { color: var(--amber) !important; }
@media (max-width: 991px) { body { padding-bottom: 62px; } }

/* ==========================================================================
   Editorial hero
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 80% at 0% 100%, rgba(50,102,91,.05), transparent 55%), var(--cream);
}
.hero::before {
  content: ""; position: absolute; left: 0; bottom: 0; width: 280px; height: 240px;
  background-image: radial-gradient(rgba(218,165,32,.32) 1.4px, transparent 1.4px);
  background-size: 17px 17px; opacity: .8; pointer-events: none;
  -webkit-mask-image: linear-gradient(135deg, #000, transparent 75%);
          mask-image: linear-gradient(135deg, #000, transparent 75%);
}
.hero__media { position: absolute; top: 0; right: 0; bottom: 0; width: 47vw; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--cream) 0%, rgba(247,246,241,.35) 12%, transparent 36%); }
.hero__tag {
  position: absolute; left: clamp(18px,3vw,40px); bottom: clamp(18px,3vw,40px); z-index: 2;
  display: inline-flex; align-items: center; gap: .55em;
  background: rgba(20,46,41,.82); backdrop-filter: blur(6px);
  color: #fff; padding: 9px 16px; border-radius: 999px; font-size: .82rem; font-weight: 600; box-shadow: var(--shadow);
}
.hero__tag b { color: var(--jade-300); font-weight: 700; }
.hero .container { position: relative; z-index: 1; }
.hero__text { max-width: 600px; padding-block: clamp(60px,11vh,132px); }
.hero__text .script { font-size: 1.7rem; margin-bottom: 4px; }
.hero h1 { font-size: clamp(3rem,6.6vw,5.2rem); letter-spacing: -0.04em; line-height: .98; margin-bottom: 0; }
.hero__lead { font-size: 1.16rem; max-width: 40ch; margin-bottom: 36px; }
.hero__cta { margin-bottom: 44px; }
@media (max-width: 900px) {
  .hero__media { position: relative; width: 100%; height: 56vw; max-height: 460px; }
  .hero__media::after { background: linear-gradient(0deg, var(--cream), transparent 30%); }
  .hero__text { padding-block: clamp(40px,7vw,64px) 36px; max-width: none; }
  .hero::before { display: none; }
}

/* ==========================================================================
   Page hero (interior pages)
   ========================================================================== */
.page-hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 80% at 100% 0%, rgba(50,102,91,.07), transparent 55%), var(--cream);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(52px, 8vw, 104px);
}
.page-hero::before {
  content: ""; position: absolute; right: 0; top: 0; width: 240px; height: 200px;
  background-image: radial-gradient(rgba(218,165,32,.3) 1.4px, transparent 1.4px);
  background-size: 17px 17px; opacity: .7; pointer-events: none;
  -webkit-mask-image: linear-gradient(225deg, #000, transparent 75%);
          mask-image: linear-gradient(225deg, #000, transparent 75%);
}
.page-hero .container { position: relative; }
.breadcrumb { display: flex; gap: 8px; font-size: .85rem; color: var(--muted); margin-bottom: 22px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--emerald-600); }
.breadcrumb span { color: var(--muted-soft); }
.page-hero h1 { font-size: clamp(2.6rem,5.6vw,4.2rem); letter-spacing: -0.035em; line-height: 1; margin: 14px 0 18px; max-width: 16ch; }
.page-hero p { font-size: clamp(1.08rem,1.6vw,1.22rem); max-width: 58ch; color: var(--muted); }

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 34px 30px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  position: relative; overflow: hidden;
}
.card::after {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--emerald-500), var(--jade-400));
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::after { transform: scaleX(1); }
.card__icon {
  width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 22px;
  background: var(--mint-50); color: var(--emerald-600); border: 1px solid var(--mint-100); font-size: 1.4rem;
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: .98rem; margin-bottom: 18px; }
.card__num {
  font-family: var(--font-display); font-size: 1rem; font-weight: 600;
  color: var(--emerald-500); position: absolute; top: 26px; right: 30px; opacity: .5;
}

/* ==========================================================================
   Split media block
   ========================================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px,6vw,80px); align-items: center; }
.split--media-right .split__media { order: 2; }
.split__text > p { margin-bottom: 16px; }
.split__text > p:last-child { margin-bottom: 0; }
.split__media { position: relative; }
.split__media img { width: 100%; border-radius: var(--radius-lg); object-fit: cover; box-shadow: var(--shadow); }
.split__badge {
  position: absolute; top: 24px; left: -22px;
  background: var(--forest-800); color: #fff; border-radius: var(--radius);
  padding: 18px 22px; box-shadow: var(--shadow); max-width: 180px;
}
.split__badge strong { font-family: var(--font-display); font-size: 2.2rem; display: block; line-height: 1; }
.split__badge span { font-size: .82rem; color: rgba(255,255,255,.78); }

.feature-list { display: grid; gap: 16px; margin: 26px 0 32px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list .tick { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; margin-top: 2px; background: var(--mint-100); color: var(--emerald-600); }
.feature-list strong { display: block; color: var(--ink); font-size: 1rem; }
.feature-list span { font-size: .92rem; color: var(--muted); }

/* ==========================================================================
   Impact stats band
   ========================================================================== */
.band-dark {
  background: radial-gradient(70% 120% at 85% 0%, rgba(50,102,91,.35), transparent 60%), radial-gradient(60% 100% at 0% 100%, rgba(218,165,32,.12), transparent 55%), var(--forest-900);
  color: #fff; position: relative; overflow: hidden;
}
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark p { color: rgba(255,255,255,.74); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 12px; }
.stat { text-align: center; padding: 30px 18px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.03); }
.stat__num { font-family: var(--font-display); font-size: clamp(2.4rem,4vw,3.2rem); font-weight: 700; line-height: 1; color: #fff; display: flex; align-items: baseline; justify-content: center; }
.stat__num em { font-style: normal; color: var(--jade-400); margin-left: 2px; }
.stat__label { font-size: .9rem; color: rgba(255,255,255,.72); margin-top: 10px; }

/* ==========================================================================
   Facts / risk lists
   ========================================================================== */
.facts { display: grid; gap: 18px; }
.fact { display: flex; gap: 20px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; transition: border-color .3s, transform .3s var(--ease); }
.fact:hover { border-color: var(--jade-400); transform: translateX(4px); }
.fact__no { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--emerald-500); flex: none; }
.fact h4 { margin-bottom: 4px; }
.fact p { font-size: .95rem; }

.risk-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(40px,6vw,88px); }
.risk-item { padding: 26px 0; border-top: 1px solid var(--line); }
.risk-item h4 { display: flex; align-items: baseline; gap: 12px; margin-bottom: 7px; font-weight: 700; }
.risk-item h4::before { content: ""; flex: none; width: 20px; height: 2px; border-radius: 2px; background: var(--amber); transform: translateY(-4px); }
.risk-item p { font-size: .95rem; color: var(--muted); margin: 0; max-width: 42ch; }
@media (max-width: 640px) { .risk-list { grid-template-columns: 1fr; } .risk-item { padding: 22px 0; } }

/* ==========================================================================
   Quotes / testimonials
   ========================================================================== */
.quote { background: var(--mint-50); border: 1px solid var(--mint-100); border-radius: var(--radius-lg); padding: clamp(36px,5vw,60px); position: relative; }
.quote__mark { font-family: var(--font-display); font-size: 6rem; line-height: .6; color: var(--jade-400); opacity: .5; height: 40px; }
.quote blockquote { font-family: var(--font-display); font-size: clamp(1.3rem,2.6vw,1.9rem); font-weight: 500; line-height: 1.4; color: var(--ink); margin: 14px 0 28px; letter-spacing: -0.01em; }
.quote__person { display: flex; align-items: center; gap: 14px; }
.quote__person img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.quote__person strong { display: block; color: var(--ink); }
.quote__person span { font-size: .88rem; color: var(--muted); }

.pullquote { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.7rem,3.6vw,2.9rem); line-height: 1.16; letter-spacing: -0.03em; color: var(--ink); margin: 6px 0; }
.pullquote--script { font-family: var(--font-script); font-weight: 600; letter-spacing: 0; color: var(--emerald-700); }
.lede { font-size: clamp(1.12rem,1.8vw,1.32rem); line-height: 1.6; color: var(--muted); max-width: 60ch; }

/* Founder portrait / in-memoriam */
.founder-card { position: relative; }
.founder-card img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.founder-card .name-plate { position: absolute; left: 18px; bottom: 18px; right: 18px; background: rgba(20,46,41,.86); backdrop-filter: blur(6px); border-radius: 14px; padding: 14px 18px; color: #fff; }
.founder-card .name-plate strong { font-family: var(--font-script); font-size: 1.5rem; font-weight: 600; display: block; line-height: 1; }
.founder-card .name-plate span { font-size: .82rem; color: rgba(255,255,255,.78); }
.memoriam { display: inline-flex; align-items: center; gap: .55em; font-size: .82rem; font-weight: 600; color: var(--amber-600); background: #fff6e2; border: 1px solid #f3e3b8; padding: 6px 14px; border-radius: 999px; }

/* ==========================================================================
   Full-bleed image band + CTA card
   ========================================================================== */
.bleed-band { position: relative; min-height: 60vh; display: grid; align-items: center; color: #fff; overflow: hidden; }
.bleed-band img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.bleed-band::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(20,46,41,.92) 0%, rgba(20,46,41,.7) 42%, rgba(20,46,41,.18) 100%); }
.bleed-band .container { position: relative; z-index: 2; }
.bleed-band h2, .bleed-band h3 { color: #fff; }
.bleed-band p { color: rgba(255,255,255,.82); }

.cta-band { position: relative; }
.cta-card {
  background: radial-gradient(80% 140% at 90% 10%, rgba(50,102,91,.35), transparent 55%), var(--forest-900);
  border-radius: var(--radius-xl); color: #fff; padding: clamp(44px,6vw,80px);
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; overflow: hidden; position: relative;
}
.cta-card h2 { color: #fff; margin-bottom: 16px; }
.cta-card p { color: rgba(255,255,255,.8); font-size: 1.05rem; }
.cta-card__actions { display: flex; flex-direction: column; gap: 14px; align-items: stretch; width: fit-content; }
.cta-card__actions .btn { justify-content: center; }
.cta-card .ribbon-watermark { position: absolute; right: 4%; bottom: -20%; width: 240px; opacity: .12; }

/* Apply / support CTA panel */
.apply-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: clamp(18px,3vw,40px);
  max-width: 1040px; margin-inline: auto;
  background: radial-gradient(120% 160% at 0% 0%, rgba(50,102,91,.08), transparent 55%), linear-gradient(120deg, var(--mint-50), #fff 75%);
  border: 1px solid var(--mint-100); border-radius: var(--radius-lg);
  padding: clamp(22px,3.4vw,32px) clamp(22px,4vw,40px); box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
}
.apply-cta::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(var(--emerald-500), var(--amber)); }
.apply-cta__text { display: flex; align-items: center; gap: 16px; flex: 1 1 300px; min-width: 0; }
.apply-cta__icon { width: 52px; height: 52px; flex: none; border-radius: 16px; display: grid; place-items: center; background: var(--emerald-500); color: #fff; box-shadow: 0 10px 22px -10px rgba(50,102,91,.7); font-size: 1.4rem; }
.apply-cta h3 { font-size: clamp(1.1rem,1.7vw,1.3rem); margin-bottom: 3px; }
.apply-cta p { font-size: .92rem; margin: 0; color: var(--muted); }
@media (max-width: 640px) {
  .apply-cta { gap: 18px; } .apply-cta__text { flex: 1 1 100%; } .apply-cta .btn-row { width: 100%; } .apply-cta .btn { flex: 1 1 auto; justify-content: center; }
}

/* ==========================================================================
   Events
   ========================================================================== */
.event { display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; transition: border-color .3s, box-shadow .3s; }
.event:hover { border-color: var(--mint-100); box-shadow: var(--shadow-sm); }
.event__date { text-align: center; background: var(--mint-50); border: 1px solid var(--mint-100); border-radius: 14px; padding: 12px 16px; min-width: 78px; }
.event__date strong { font-family: var(--font-display); font-size: 1.7rem; color: var(--emerald-600); display: block; line-height: 1; }
.event__date span { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.event__meta { font-size: .85rem; color: var(--muted); display: flex; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.event__meta span { display: inline-flex; align-items: center; gap: .4em; }

.tag { display: inline-flex; align-items: center; gap: .45em; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; background: var(--mint-100); color: var(--emerald-700); }
.tag--gold { background: #fbf0d3; color: var(--amber-600); }
.tag--past { background: #ececec; color: #777; }
.tag--live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--jade-400); box-shadow: 0 0 0 0 rgba(218,165,32,.6); animation: pulse 2s infinite; }
@keyframes pulse { to { box-shadow: 0 0 0 10px rgba(218,165,32,0); } }

.ev-card { display: flex; flex-direction: column; }
.ev-card .ev-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ev-card h3 { margin-bottom: 10px; }
.ev-card > p { font-size: .96rem; margin-bottom: 16px; }
.ev-meta { display: grid; gap: 9px; margin-bottom: 20px; }
.ev-meta li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.ev-meta i { width: 16px; color: var(--emerald-500); flex: none; margin-top: 3px; }
.ev-meta strong { color: var(--ink); font-weight: 600; }
.ev-card .ev-cta { margin-top: auto; }

.ev-feature { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(24px,4vw,48px); align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.ev-feature__poster { align-self: stretch; }
.ev-feature__poster img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 320px; }
.ev-feature__body { padding: clamp(28px,3.5vw,48px) clamp(28px,3.5vw,48px) clamp(28px,3.5vw,48px) 0; }
.ev-stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 24px; }
.ev-stat { background: var(--mint-50); border: 1px solid var(--mint-100); border-radius: 12px; padding: 12px 18px; }
.ev-stat strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: var(--emerald-700); line-height: 1; }
.ev-stat span { font-size: .76rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.ev-note { display: flex; gap: 12px; align-items: flex-start; background: var(--mint-50); border: 1px solid var(--mint-100); border-radius: 12px; padding: 14px 16px; margin: 20px 0 22px; font-size: .92rem; color: var(--muted); }
.ev-note strong { color: var(--ink); }
@media (max-width: 860px) { .ev-feature { grid-template-columns: 1fr; } .ev-feature__poster img { min-height: 0; max-height: 460px; } .ev-feature__body { padding: 0 clamp(24px,5vw,36px) clamp(28px,6vw,40px); } }

.ev-banner { width: 100%; height: clamp(200px,30vw,340px); object-fit: cover; object-position: center 42%; border-radius: var(--radius-lg); box-shadow: var(--shadow); display: block; }

.ev-list { border-top: 1px solid var(--line); }
.ev-row { display: grid; grid-template-columns: 200px 1fr auto; gap: clamp(18px,3vw,44px); align-items: center; padding: clamp(24px,3vw,34px) 6px; border-bottom: 1px solid var(--line); transition: background .25s var(--ease); }
.ev-row:hover { background: var(--mint-50); }
.ev-row__cat { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.ev-row--flagship .tag { background: var(--emerald-500); color: #fff; }
.ev-row__status { display: inline-flex; align-items: center; gap: .5em; font-size: .82rem; color: var(--muted); }
.ev-row__status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); flex: none; }
.ev-row__status--recurring::before { background: var(--emerald-500); }
.ev-row__status--past::before { background: #b6b6b6; }
.ev-row__body h3 { font-size: clamp(1.18rem,1.8vw,1.4rem); margin-bottom: 6px; }
.ev-row__body p { font-size: .94rem; color: var(--muted); margin: 0; max-width: 62ch; }
.ev-row__action { flex: none; white-space: nowrap; }
.ev-row--past { opacity: .72; }
.ev-row__soon {
  display: inline-flex; align-items: center; gap: .5em; white-space: nowrap;
  font-size: .82rem; font-weight: 600; color: var(--emerald-700);
  background: var(--mint-50); border: 1px solid var(--mint-100);
  padding: 8px 15px; border-radius: 999px;
}
.ev-row__soon i { font-size: .8rem; }
@media (max-width: 820px) { .ev-row { grid-template-columns: 1fr; gap: 12px; padding: 24px 0; align-items: flex-start; } .ev-row__cat { flex-direction: row; align-items: center; gap: 14px; } }

/* ==========================================================================
   Story timeline
   ========================================================================== */
.timeline { position: relative; display: grid; gap: 4px; margin-top: 8px; }
.timeline::before { content: ""; position: absolute; left: 13px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--emerald-500), var(--amber)); opacity: .35; }
.tl { position: relative; padding: 14px 0 18px 44px; }
.tl__dot { position: absolute; left: 6px; top: 18px; width: 16px; height: 16px; border-radius: 50%; background: var(--emerald-500); border: 3px solid var(--cream); box-shadow: 0 0 0 2px var(--mint-100); }
.tl__date { font-family: var(--font-script); font-size: 1.3rem; color: var(--amber-600); line-height: 1; }
.tl h4 { margin: 4px 0 4px; }
.tl p { font-size: .96rem; }

/* ==========================================================================
   Photo gallery
   ========================================================================== */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 860px; margin-inline: auto; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 425 / 495; box-shadow: var(--shadow-sm); background: var(--mint-50); }
.gallery img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .5s var(--ease); }
.gallery figure:hover img { transform: scale(1.06); }

/* ==========================================================================
   Newsletter (inline, cream section)
   ========================================================================== */
.newsletter { background: var(--mint-50); border: 1px solid var(--mint-100); border-radius: var(--radius-lg); padding: clamp(34px,5vw,56px); display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.newsletter h3 { margin-bottom: 8px; }
.form-inline { display: flex; gap: 10px; flex-wrap: wrap; }
.form-inline input { flex: 1; min-width: 240px; padding: 14px 18px; font: inherit; border: 1px solid var(--line); border-radius: 999px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.form-inline input:focus { outline: none; border-color: var(--emerald-500); box-shadow: 0 0 0 4px rgba(50,102,91,.12); }

/* ==========================================================================
   Forms — contact / patient-facing pages
   ========================================================================== */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(28px,4vw,44px); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: .9rem; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; font: inherit; color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px; background: var(--cream);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--emerald-500); background: #fff; box-shadow: 0 0 0 4px rgba(50,102,91,.12); }
.field textarea { min-height: 140px; resize: vertical; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #d9534f; box-shadow: 0 0 0 4px rgba(217,83,79,.1); }
.field__error { font-size: .82rem; color: #d9534f; margin-top: 6px; display: none; }
.field.invalid .field__error { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.form-note { margin-top: 18px; padding: 14px 18px; border-radius: 12px; background: var(--mint-50); border: 1px solid var(--mint-100); color: var(--emerald-700); font-size: .92rem; font-weight: 500; display: none; }
.form-note.show { display: block; }
.form-note.error { background: #fdecea; border-color: #f2c1bd; color: #b3261e; }

.info-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; gap: 16px; align-items: flex-start; }
.info-tile .ic { width: 46px; height: 46px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--mint-50); color: var(--emerald-600); border: 1px solid var(--mint-100); }
.info-tile strong { display: block; color: var(--ink); margin-bottom: 3px; }
.info-tile span, .info-tile a { font-size: .94rem; color: var(--muted); }

.contact-grid { grid-template-columns: 0.82fr 1.18fr; align-items: start; }
.contact-list { display: grid; margin-top: clamp(24px,3vw,32px); }
.contact-list li { display: flex; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list li:first-child { border-top: 1px solid var(--line); }
.contact-list .ic { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--mint-50); border: 1px solid var(--mint-100); color: var(--emerald-600); }
.contact-list .lbl { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-soft); margin-bottom: 3px; }
.contact-list .val, .contact-list a { font-size: 1.04rem; font-weight: 600; color: var(--ink); }
.contact-list a:hover { color: var(--emerald-600); }

.contact-note { display: flex; gap: 16px; align-items: flex-start; background: var(--mint-50); border: 1px solid var(--mint-100); border-left: 4px solid var(--amber); border-radius: var(--radius); padding: 22px 26px; margin-top: clamp(36px,5vw,56px); }
.contact-note strong { display: block; color: var(--ink); margin-bottom: 3px; font-size: 1.05rem; }
.contact-note p { font-size: .95rem; margin: 0; max-width: 80ch; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* Human verification radio-image captcha */
.verify-options { display: flex; gap: 12px; flex-wrap: wrap; }
.verify-option { position: relative; }
.verify-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.verify-option label {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  width: 84px; padding: 12px 8px; border: 1.5px solid var(--line); border-radius: var(--radius);
  background: var(--cream); cursor: pointer; font-size: .78rem; font-weight: 600; color: var(--muted);
  transition: border-color .2s, background .2s, color .2s;
}
.verify-option label i { font-size: 1.3rem; color: var(--muted-soft); }
.verify-option input:checked + label { border-color: var(--emerald-500); background: var(--mint-50); color: var(--emerald-700); }
.verify-option input:checked + label i { color: var(--emerald-600); }
.verify-option input:focus-visible + label { box-shadow: 0 0 0 4px rgba(50,102,91,.15); }

/* ==========================================================================
   FAQ accordion (standalone .faq component, faq.php)
   ========================================================================== */
.faq { display: grid; gap: 12px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq__q { width: 100%; text-align: left; background: none; border: 0; padding: 22px 26px; font-size: 1.08rem; font-weight: 600; color: var(--ink); font-family: var(--font-display); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq__q .pm { flex: none; width: 26px; height: 26px; position: relative; transition: transform .3s var(--ease); }
.faq__q .pm::before, .faq__q .pm::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--emerald-500); transform: translate(-50%,-50%); border-radius: 2px; }
.faq__q .pm::before { width: 14px; height: 2px; }
.faq__q .pm::after { width: 2px; height: 14px; transition: transform .3s var(--ease); }
.faq__item.open .pm::after { transform: translate(-50%,-50%) scaleY(0); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq__a p { padding: 0 26px 24px; font-size: .98rem; }
.faq__cat { margin: 40px 0 18px; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--emerald-600); }
.faq__cat:first-child { margin-top: 0; }

/* Bootstrap-collapse-driven accordions (footer teaser, payment.php) — retint to match */
.accordion-item { border: 1px solid var(--line) !important; border-radius: var(--radius) !important; box-shadow: none; margin-bottom: 10px; overflow: hidden; background: #fff; }
.accordion-button { background: #fff !important; color: var(--ink) !important; font-weight: 600; font-size: .98rem; padding: 20px 24px; box-shadow: none !important; font-family: var(--font-display); }
.accordion-button:not(.collapsed) { color: var(--emerald-600) !important; }
.accordion-button::after { filter: invert(28%) sepia(40%) saturate(600%) hue-rotate(115deg) brightness(90%); }
.accordion-body { background: var(--mint-50); color: var(--muted); font-size: .95rem; line-height: 1.7; padding: 4px 24px 22px; border-top: 1px solid var(--line); }

/* ==========================================================================
   Pledge / partner tiers
   ========================================================================== */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tier { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px 28px; text-align: center; position: relative; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.tier:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.tier.is-featured { border-color: var(--emerald-500); box-shadow: var(--shadow); }
.tier__flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--emerald-500); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 14px; border-radius: 999px; }
.tier__amount { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; color: var(--ink); }
.tier__amount span { font-size: 1rem; color: var(--muted); }
.tier p { font-size: .94rem; margin: 12px 0 22px; }
@media (max-width: 960px) { .tiers { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; } }

/* ==========================================================================
   Donate / M-Pesa box (payment.php, register-easter-egg-hunt.php)
   ========================================================================== */
.donate-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(28px,4vw,40px); box-shadow: var(--shadow-sm); }
.donate-steps { display: grid; gap: 16px; margin: 6px 0 0; }
.donate-step { display: flex; gap: 16px; align-items: flex-start; }
.donate-step .n { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--emerald-500); color: #fff; font-weight: 700; font-size: .95rem; }
.donate-step strong { color: var(--ink); display: block; }
.donate-step span { font-size: .94rem; color: var(--muted); }
.paybill { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--mint-50); border: 1px dashed var(--emerald-500); border-radius: 14px; padding: 16px 20px; margin-top: 6px; }
.paybill .label { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; }
.paybill .code { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; color: var(--emerald-700); letter-spacing: .02em; }
.mpesa-badge { height: 30px; width: auto; }

/* Amount selector chips */
.amount-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 6px 0 20px; }
.amount-chip { display: block; text-align: center; padding: 14px 8px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--cream); font-weight: 700; color: var(--ink); cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.amount-chip.is-active, .amount-chip:hover { border-color: var(--emerald-500); background: var(--mint-50); color: var(--emerald-700); }

.member-card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; position: relative; }
.member-card__remove { position: absolute; top: 16px; right: 16px; width: 30px; height: 30px; border-radius: 50%; border: none; background: #fdecea; color: #b3261e; display: grid; place-items: center; cursor: pointer; }

/* ==========================================================================
   Footer — rebuilt 1:1 on the reference's .footer/.footer__* BEM system
   ========================================================================== */
.footer {
  position: relative; overflow: hidden;
  background: radial-gradient(circle at 8% 85%, rgba(50,102,91,.4) 0%, transparent 45%), radial-gradient(circle at 88% 12%, rgba(218,165,32,.1) 0%, transparent 40%), var(--forest-900);
  color: rgba(255,255,255,.72);
}
.footer a { color: rgba(255,255,255,.72); transition: color .2s; }
.footer a:hover { color: #fff; }
.footer .container { position: relative; }

.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-block: clamp(54px,7vw,80px); }
.footer__about p { margin: 18px 0 22px; font-size: .95rem; max-width: 34ch; color: rgba(255,255,255,.6); }
.footer h5 { font-family: var(--font-sans); font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer__links { display: grid; gap: 11px; font-size: .95rem; list-style: none; padding: 0; margin: 0; }
.footer__contact { list-style: none; padding: 0; margin: 0; }
.footer__contact li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; font-size: .95rem; }
.footer__contact i { color: var(--jade-400); flex: none; width: 16px; margin-top: 4px; }
.footer__socials { display: flex; gap: 12px; margin-top: 4px; }
.footer__socials a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.16); transition: background .2s, border-color .2s, transform .2s;
}
.footer__socials a:hover { background: var(--emerald-500); border-color: var(--emerald-500); transform: translateY(-2px); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding-block: 24px; font-size: .85rem;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer__bottom a { text-decoration: none; }

/* Extras beyond the reference (medical notice + newsletter) — same footer tokens */
.footer__notice { background: rgba(218,165,32,.06); border: 1px solid rgba(218,165,32,.18); border-radius: 12px; padding: 1.1rem 1.25rem; }
.footer__divider { border: none; border-top: 1px solid rgba(255,255,255,.07); margin: 0; }
.footer__nl input { background: rgba(255,255,255,.07) !important; border: 1px solid rgba(255,255,255,.14) !important; border-radius: 999px !important; color: #fff !important; padding: .7rem 1.25rem !important; font-size: .91rem !important; transition: border-color .2s, background .2s !important; }
.footer__nl input::placeholder { color: rgba(255,255,255,.35) !important; }
.footer__nl input:focus { background: rgba(255,255,255,.1) !important; border-color: rgba(218,165,32,.5) !important; box-shadow: 0 0 0 3px rgba(218,165,32,.1) !important; color: #fff !important; outline: none !important; }
.footer__nl-btn { background: linear-gradient(135deg, var(--jade-400) 0%, var(--amber-600) 100%); color: #1a1a1a; font-weight: 700; font-size: .88rem; border: none; border-radius: 999px; padding: .7rem 1.5rem; white-space: nowrap; transition: filter .2s, transform .2s; cursor: pointer; }
.footer__nl-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.footer__nl-btn:disabled { opacity: .7; cursor: not-allowed; transform: none; }

@media (max-width: 960px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__top { grid-template-columns: 1fr; } }

/* ==========================================================================
   Blog cards
   ========================================================================== */
.blog-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.blog-card__img { aspect-ratio: 16/10; overflow: hidden; }
.blog-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.blog-card:hover .blog-card__img img { transform: scale(1.06); }
.blog-card__body { padding: 26px 28px 30px; }
.blog-card__meta { display: flex; gap: 12px; align-items: center; font-size: .8rem; color: var(--muted-soft); margin-bottom: 10px; }

/* ==========================================================================
   Reveal-on-scroll animation
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .split, .cta-card, .newsletter { grid-template-columns: 1fr; }
  .split--media-right .split__media { order: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .cta-card__actions { width: 100%; }
}
@media (max-width: 760px) {
  .amount-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .hero__cta { width: 100%; gap: 12px; }
  .hero__cta .btn { flex: 1 1 100%; justify-content: center; }
  .cols-2, .cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .gallery { gap: 10px; }
  .form-row { grid-template-columns: 1fr; }
  .event { grid-template-columns: auto 1fr; }
  .event .btn { grid-column: 2; justify-self: start; }
}
