/* ============================================
   HFT PAKISTAN — Happiness Foundation Trust
   White theme only. No dark mode.
   Primary blue #1970BD · Nature green #2E9E5B
   ============================================ */

:root {
  color-scheme: light;

  /* Brand blue */
  --blue-800: #0E3F6C;
  --blue-700: #14558F;
  --blue-600: #1663A6;
  --blue-500: #1970BD;
  --blue-400: #4A91CF;
  --blue-200: #B9D6EC;
  --blue-50:  #E8F2FA;

  /* Nature green */
  --green-700: #17603A;
  --green-600: #1F7A45;
  --green-500: #2E9E5B;
  --green-400: #5BB983;
  --green-200: #B9E2CA;
  --green-50:  #E7F6ED;

  --amber-500: #D98B22;

  /* Surfaces — white and very light grey/green tints */
  --bg: #FFFFFF;
  --bg-alt: #F6F9FB;
  --bg-tint: #F2F9F5;
  --card: #FFFFFF;

  /* Text */
  --t-hi: #0E2230;
  --t-mid: rgba(14, 34, 48, 0.78);
  --t-low: rgba(14, 34, 48, 0.68);
  --t-faint: rgba(14, 34, 48, 0.62);
  --on-dark: #FFFFFF;

  --line: rgba(14, 34, 48, 0.10);
  --line-strong: rgba(14, 34, 48, 0.17);

  --grad-brand: linear-gradient(116deg, var(--blue-500) 0%, #1A86A0 55%, var(--green-500) 100%);
  --grad-soft: linear-gradient(116deg, var(--blue-50) 0%, var(--green-50) 100%);
  --grad-text: linear-gradient(100deg, var(--blue-600) 0%, #1A86A0 52%, var(--green-600) 100%);

  --shadow-xs: 0 1px 3px rgba(14, 34, 48, 0.05);
  --shadow-sm: 0 3px 14px rgba(14, 34, 48, 0.07);
  --shadow-md: 0 14px 34px -14px rgba(14, 34, 48, 0.20);
  --shadow-lg: 0 30px 66px -28px rgba(14, 34, 48, 0.30);

  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --shell: 1200px;
  --gut: 24px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;
  --section-y: clamp(64px, 8vw, 118px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
html.lock { overflow: hidden; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--t-mid);
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--blue-500); color: #fff; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .rv { opacity: 1 !important; transform: none !important; }
}

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--t-hi);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.026em;
}
h1 { font-size: clamp(2.2rem, 5.2vw, 3.9rem); line-height: 1.06; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.85rem); }
h3 { font-size: clamp(1.18rem, 1.8vw, 1.45rem); }
h4 { font-size: 1.04rem; }
p { text-wrap: pretty; }

.lede { font-size: clamp(1.03rem, 1.45vw, 1.2rem); line-height: 1.64; color: var(--t-mid); }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Layout ---------- */
.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gut); }
.shell-wide { max-width: 1340px; }
.shell-read { max-width: 820px; }
.section { padding-block: var(--section-y); position: relative; }
.section-tight { padding-block: clamp(46px, 5.5vw, 78px); }
.bg-alt { background: var(--bg-alt); }
.bg-tint { background: var(--bg-tint); }

.grid { display: grid; gap: clamp(18px, 2.2vw, 28px); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Shared ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display);
  font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--blue-700);
  padding: 7px 15px 7px 12px;
  border-radius: var(--r-pill);
  background: var(--blue-50);
}
.eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green-500); }
.eyebrow.leaf { background: var(--green-50); color: var(--green-600); }
.eyebrow.leaf::before { background: var(--blue-500); }
.eyebrow.on-dark { background: rgba(255,255,255,.18); color: #fff; backdrop-filter: blur(6px); }
.eyebrow.on-dark::before { background: var(--green-400); }

.section-head { max-width: 740px; margin-bottom: clamp(34px, 4.2vw, 58px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-block: 18px 15px; }
.section-head .lede { max-width: 64ch; }
.section-head.center .lede { margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 0.95rem; font-weight: 700;
  padding: 14px 28px; border-radius: var(--r-pill);
  border: 2px solid transparent;
  transition: transform .3s var(--ease), background .25s, border-color .25s, box-shadow .3s, color .25s;
  white-space: nowrap; text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: 0 10px 24px -10px rgba(25,112,189,.7); }
.btn-primary:hover { box-shadow: 0 16px 32px -10px rgba(25,112,189,.85); }
.btn-green { background: var(--green-600); color: #fff; }
.btn-green:hover { background: var(--green-700); }
.btn-ghost { border-color: var(--line-strong); color: var(--t-hi); background: #fff; }
.btn-ghost:hover { border-color: var(--blue-500); color: var(--blue-700); background: var(--blue-50); }
.btn-on-dark { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-on-dark:hover { background: rgba(255,255,255,.16); border-color: #fff; }
.btn-white { background: #fff; color: var(--blue-700); }
.btn-white:hover { background: var(--blue-50); }
.btn-lg { padding: 17px 34px; font-size: 1rem; }
.btn-sm { padding: 10px 19px; font-size: .87rem; }
.btn-block { width: 100%; }
.btn .ico { transition: transform .3s var(--ease); }
.btn:hover .ico { transform: translateX(4px); }

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(22px, 2.3vw, 32px);
  box-shadow: var(--shadow-xs);
  transition: transform .4s var(--ease), box-shadow .4s, border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blue-200); }

.card-ico {
  width: 52px; height: 52px; display: grid; place-items: center;
  border-radius: 15px; background: var(--blue-50); color: var(--blue-600);
  margin-bottom: 18px;
}
.card-ico.leaf { background: var(--green-50); color: var(--green-600); }
.card-ico svg { width: 24px; height: 24px; }

.ticks { display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks svg { width: 21px; height: 21px; flex: none; color: var(--green-500); margin-top: 3px; }

/* ---------- Header ---------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--blue-600); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

.hdr {
  position: sticky; top: 0; z-index: 900;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding-block: 10px;
  transition: box-shadow .3s, padding .3s var(--ease);
}
.hdr.stuck { box-shadow: var(--shadow-sm); padding-block: 7px; }
.hdr-in { display: flex; align-items: center; justify-content: space-between; gap: 18px; }

.brand { display: inline-flex; align-items: center; flex: none; }
.brand-logo { height: 54px; width: auto; transition: height .3s var(--ease); }
.hdr.stuck .brand-logo { height: 46px; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  padding: 9px 13px; font-size: .93rem; font-weight: 500;
  color: var(--t-mid); border-radius: var(--r-pill);
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--blue-700); background: var(--blue-50); }
.nav a.on { color: var(--blue-700); font-weight: 700; background: var(--blue-50); }

.hdr-cta { display: flex; align-items: center; gap: 10px; }

.burger {
  display: none; width: 44px; height: 44px; flex: none;
  border: 1px solid var(--line-strong); border-radius: 12px;
  position: relative; background: #fff;
}
.burger span {
  position: absolute; left: 12px; width: 20px; height: 2px;
  background: var(--t-hi); border-radius: 2px;
  transition: transform .35s var(--ease), opacity .22s;
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
body.nav-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Slide-in drawer */
.drawer-scrim {
  position: fixed; inset: 0; z-index: 940;
  background: rgba(14, 34, 48, .45);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
body.nav-open .drawer-scrim { opacity: 1; visibility: visible; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 950;
  width: min(360px, 86vw);
  background: #fff;
  box-shadow: -14px 0 40px rgba(14,34,48,.18);
  padding: 20px var(--gut) 30px;
  display: flex; flex-direction: column; gap: 2px;
  transform: translateX(104%);
  transition: transform .4s var(--ease);
  overflow-y: auto;
}
body.nav-open .drawer { transform: none; }
.drawer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.drawer-close {
  width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: 12px;
  display: grid; place-items: center; color: var(--t-hi);
}
.drawer-close svg { width: 18px; height: 18px; }
.drawer a.d-link {
  font-family: var(--font-display); font-size: 1.12rem; font-weight: 700;
  color: var(--t-hi); padding: 14px 0; border-bottom: 1px solid var(--line);
}
.drawer a.d-link:hover { color: var(--blue-700); }
.drawer .btn { margin-top: 20px; }
.drawer-meta { margin-top: auto; padding-top: 24px; font-size: .92rem; color: var(--t-low); display: grid; gap: 8px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: min(84vh, 760px);
  display: flex; align-items: center;
  padding-block: clamp(60px, 8vw, 110px);
}
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(8,32,50,.93) 0%, rgba(8,32,50,.80) 44%, rgba(8,32,50,.46) 100%);
}
.hero-in { max-width: 740px; color: #fff; }
.hero-in h1 { color: #fff; margin-block: 20px 18px; }
.hero-in .lede { color: rgba(255,255,255,.90); max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero-strip {
  position: relative; z-index: 2;
  margin-top: clamp(34px, 4.5vw, 58px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: rgba(255,255,255,.22);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--r-lg); overflow: hidden;
}
.hero-strip div { background: rgba(8,32,50,.76); backdrop-filter: blur(8px); padding: 18px 20px; }
.hero-strip b {
  display: block; font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.5vw, 2rem); font-weight: 800;
  color: #fff; letter-spacing: -.035em; line-height: 1.1;
}
.hero-strip b span { display: inline; font: inherit; letter-spacing: inherit; text-transform: none; color: inherit; }
.hero-strip > div > span { display: block; margin-top: 6px; font-size: .79rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.86); }

/* ---------- Page hero ---------- */
.page-hero {
  position: relative; overflow: hidden;
  padding-block: clamp(44px, 5.5vw, 76px) clamp(36px, 4.5vw, 60px);
  background: var(--grad-soft);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { margin-block: 16px 14px; font-size: clamp(2rem, 4.4vw, 3.1rem); }
.page-hero .lede { max-width: 62ch; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: .86rem; color: var(--t-faint); margin-bottom: 16px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--blue-700); text-decoration: underline; }
.crumbs svg { width: 13px; height: 13px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.8vw, 24px); }
.stat {
  text-align: center; padding: clamp(22px, 2.4vw, 34px) 16px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-xs);
}
.stat b {
  display: block; font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 2.9rem); font-weight: 800;
  letter-spacing: -.04em; line-height: 1.1;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat b span { display: inline; font: inherit; letter-spacing: inherit; text-transform: none; color: inherit; }
.stat > span { display: block; margin-top: 10px; font-size: .83rem; letter-spacing: .09em; text-transform: uppercase; color: var(--t-low); }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 4.5vw, 64px); align-items: center; }
.split-media { position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.split-media img { width: 100%; aspect-ratio: 4/3.2; object-fit: cover; }
.split-media.tall img { aspect-ratio: 3/3.4; }

.badge-float {
  position: absolute; left: 18px; right: 18px; bottom: 18px;
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
  border-radius: var(--r-md); padding: 15px 17px;
  display: flex; align-items: center; gap: 13px; box-shadow: var(--shadow-md);
}
.badge-float b { font-family: var(--font-display); color: var(--t-hi); display: block; font-size: 1.02rem; }
.badge-float span { font-size: .85rem; color: var(--t-low); }

/* ---------- Programmes ---------- */
.prog {
  position: relative; isolation: isolate;
  border-radius: var(--r-xl); overflow: hidden; min-height: 380px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(22px, 2.4vw, 32px); color: #fff;
}
.prog img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.prog::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8,32,50,.95) 10%, rgba(8,32,50,.58) 50%, rgba(8,32,50,.22) 100%); }
.prog:hover img { transform: scale(1.06); }
.prog h3 { color: #fff; margin-bottom: 9px; }
.prog p { color: rgba(255,255,255,.88); font-size: .96rem; }
.prog-tag {
  align-self: flex-start; margin-bottom: auto;
  font-size: .71rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase;
  padding: 7px 13px; border-radius: var(--r-pill);
  background: rgba(8,32,50,.62); backdrop-filter: blur(6px); color: #fff;
  border: 1px solid rgba(255,255,255,.24);
}
.prog-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-family: var(--font-display); font-weight: 700; font-size: .9rem; color: #9FE3BC; }

/* ---------- Steps / timeline ---------- */
.steps { display: grid; gap: clamp(12px, 1.6vw, 18px); grid-template-columns: repeat(5, 1fr); counter-reset: s; }
.step { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(18px, 2vw, 26px); box-shadow: var(--shadow-xs); }
.step::before {
  content: '0' counter(s);
  font-family: var(--font-display); font-weight: 800; font-size: .84rem; letter-spacing: .07em;
  color: var(--blue-500); display: block; margin-bottom: 12px;
}
.step h3 { margin-bottom: 7px; font-size: .99rem; }
.step p { font-size: .91rem; }

.timeline { display: grid; }
.tl-item { display: grid; grid-template-columns: 54px 1fr; gap: clamp(13px, 1.8vw, 26px); padding-block: clamp(18px, 2.2vw, 28px); border-top: 1px solid var(--line); }
.tl-item:last-child { border-bottom: 1px solid var(--line); }
.tl-num {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blue-50); color: var(--blue-700);
  font-family: var(--font-display); font-weight: 800; font-size: .94rem;
}
.tl-item h3 { margin-bottom: 7px; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(9px, 1.1vw, 15px); }
.gallery figure { position: relative; border-radius: var(--r-md); overflow: hidden; background: var(--bg-alt); }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; transition: transform .6s var(--ease); }
.gallery figure:nth-child(1), .gallery figure:nth-child(6) { grid-row: span 2; }
.gallery figure:nth-child(1) img, .gallery figure:nth-child(6) img { aspect-ratio: 1/2.06; }
.gallery figure:hover img { transform: scale(1.06); }

/* ---------- Pillars ---------- */
.pillar { text-align: center; }
.pillar .card-ico { margin-inline: auto; }
.pillar h3 { margin-bottom: 10px; }

/* ---------- Testimonial carousel ---------- */
.tst-rail {
  display: flex; gap: clamp(14px, 1.8vw, 22px);
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 4px 16px; scrollbar-width: none;
}
.tst-rail::-webkit-scrollbar { display: none; }
.tst {
  flex: 0 0 min(410px, 84vw); scroll-snap-align: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(22px, 2.4vw, 30px); display: flex; flex-direction: column;
  box-shadow: var(--shadow-xs);
}
.tst-mark { font-family: var(--font-display); font-size: 2.5rem; line-height: 1; color: var(--blue-200); margin-bottom: 8px; }
.tst blockquote { font-size: .97rem; line-height: 1.68; color: var(--t-mid); margin-bottom: 20px; }
.tst-who { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); display: flex; gap: 13px; align-items: center; }
.tst-av {
  width: 46px; height: 46px; flex: none; border-radius: 50%;
  display: grid; place-items: center; background: var(--grad-brand);
  color: #fff; font-family: var(--font-display); font-weight: 800; font-size: .93rem;
  overflow: hidden;
}
.tst-av img { width: 100%; height: 100%; object-fit: cover; }
.tst-who b { display: block; font-family: var(--font-display); font-size: .96rem; color: var(--t-hi); }
.tst-who span { font-size: .81rem; color: var(--t-low); line-height: 1.45; display: block; }

.rail-nav { display: flex; gap: 10px; justify-content: flex-end; margin-top: 6px; }
.rail-btn {
  width: 46px; height: 46px; border: 1px solid var(--line-strong); border-radius: 50%;
  display: grid; place-items: center; color: var(--t-hi); background: #fff;
  transition: background .2s, border-color .2s, transform .2s, color .2s;
}
.rail-btn:hover { background: var(--blue-50); border-color: var(--blue-500); color: var(--blue-700); transform: translateY(-2px); }
.rail-btn svg { width: 18px; height: 18px; }

/* ---------- Partner marquee (two rows, opposite directions) ---------- */
.marquee { position: relative; overflow: hidden; padding-block: 6px; }
.marquee::before, .marquee::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: clamp(40px, 8vw, 130px); z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg-alt), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--bg-alt), transparent); }

.marquee-row { display: flex; width: max-content; }
.marquee-row + .marquee-row { margin-top: clamp(10px, 1.2vw, 16px); }
.marquee-track {
  display: flex; align-items: center; gap: clamp(14px, 2vw, 28px);
  padding-right: clamp(14px, 2vw, 28px);
  flex: none;
  animation: marquee-l 46s linear infinite;
}
.marquee-row.rev .marquee-track { animation-name: marquee-r; animation-duration: 54s; }
@keyframes marquee-l { from { transform: translateX(0); }     to { transform: translateX(-100%); } }
@keyframes marquee-r { from { transform: translateX(-100%); } to { transform: translateX(0); } }

/* Pause on hover or keyboard focus within */
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track { animation-play-state: paused; }

.partner {
  flex: none;
  width: clamp(150px, 16vw, 210px); height: clamp(84px, 9vw, 108px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  display: grid; place-items: center; padding: 14px 20px;
  box-shadow: var(--shadow-xs);
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.partner img {
  max-height: 100%; max-width: 100%; width: auto; object-fit: contain;
  filter: grayscale(1); opacity: .72;
  transition: filter .3s, opacity .3s;
}
.partner:hover { border-color: var(--blue-200); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.partner:hover img { filter: grayscale(0); opacity: 1; }
.partner b { font-family: var(--font-display); color: var(--t-low); font-size: .95rem; text-align: center; }

/* Reduced motion: no scrolling, fall back to a static wrapped grid */
@media (prefers-reduced-motion: reduce) {
  .marquee::before, .marquee::after { display: none; }
  .marquee-row { width: auto; }
  .marquee-row.rev { display: none; }           /* duplicate row adds nothing when static */
  .marquee-track {
    animation: none; flex-wrap: wrap; justify-content: center;
    width: auto; padding-right: 0;
  }
  .marquee-track[data-clone="true"] { display: none; }  /* hide the seamless-loop clone */
}

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.8vw, 24px); }
.member {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-xs);
  transition: transform .4s var(--ease), box-shadow .4s, border-color .3s;
  display: flex; flex-direction: column;
}
.member:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--blue-200); }
.member-photo { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--blue-50); }
.member-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.member:hover .member-photo img { transform: scale(1.05); }
.member-initials {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 2.2rem;
  color: var(--blue-600); background: var(--grad-soft);
}
.member-body { padding: 16px 18px 20px; border-top: 1px solid var(--line); flex: 1; display: flex; flex-direction: column; }
.member-body h3 { font-size: 1rem; margin-bottom: 5px; }
.member-body p { font-size: .845rem; color: var(--t-low); line-height: 1.5; }
.member-social { display: flex; gap: 7px; margin-top: 13px; }
.member-social a {
  width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 9px;
  display: grid; place-items: center; color: var(--t-low); transition: all .2s;
}
.member-social a:hover { color: #fff; background: var(--blue-500); border-color: var(--blue-500); }
.member-social svg { width: 14px; height: 14px; }

/* ---------- CTA band ---------- */
.cta {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--r-xl);
  padding: clamp(36px, 5vw, 70px) clamp(22px, 4vw, 58px);
  text-align: center; color: #fff;
}
.cta::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--grad-brand); }
.cta::after {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .15;
  background-image: radial-gradient(rgba(255,255,255,.9) 1px, transparent 1px);
  background-size: 22px 22px;
}
.cta h2 { color: #fff; max-width: 20ch; margin-inline: auto; }
.cta .lede { color: rgba(255,255,255,.92); max-width: 58ch; margin: 16px auto 30px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-family: var(--font-display); font-size: .79rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--t-low); }
.field .req { color: var(--green-600); }
.field input, .field textarea, .field select {
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r-md);
  padding: 13px 15px; font-size: .98rem; color: var(--t-hi); width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 148px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--t-faint); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 0; border-color: var(--blue-500); box-shadow: 0 0 0 4px var(--blue-50);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #C0392B; box-shadow: 0 0 0 4px rgba(192,57,43,.09); }
.err { font-size: .82rem; color: #B03024; min-height: 0; }
.err:empty { display: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { border-radius: var(--r-md); padding: 14px 17px; font-size: .94rem; display: none; }
.alert.show { display: block; }
.alert-ok { background: var(--green-50); color: var(--green-700); border: 1px solid var(--green-200); }
.alert-bad { background: #FDECEA; color: #8E2318; border: 1px solid #F3C2BC; }

/* ---------- Contact info ---------- */
.contact-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(26px, 4vw, 54px); align-items: start; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-xs); }
.info-item { display: flex; gap: 15px; padding: clamp(18px, 2vw, 24px); border-bottom: 1px solid var(--line); align-items: flex-start; }
.info-item:last-child { border-bottom: 0; }
.info-ico { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-600); }
.info-ico svg { width: 20px; height: 20px; }
.info-item h3 { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--t-low); font-weight: 700; font-family: var(--font-display); }
.info-item p, .info-item a { display: block; font-size: 1rem; color: var(--t-hi); margin-top: 5px; }
.info-item a:hover { color: var(--blue-700); text-decoration: underline; }

.map-wrap { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-xs); }
.map-wrap iframe { width: 100%; height: clamp(280px, 38vw, 420px); border: 0; display: block; }

.socials { display: flex; gap: 9px; }
.socials a {
  width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 11px;
  display: grid; place-items: center; color: var(--t-low); transition: all .2s; background: #fff;
}
.socials a:hover { color: #fff; background: var(--blue-500); border-color: var(--blue-500); transform: translateY(-2px); }
.socials svg { width: 17px; height: 17px; }

/* ---------- Donate ---------- */
.donate-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(26px, 4vw, 52px); align-items: start; }
.amount-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.amount-opt { position: relative; }
.amount-opt input { position: absolute; opacity: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.amount-opt span {
  display: grid; place-items: center; padding: 13px 6px;
  border: 2px solid var(--line-strong); border-radius: var(--r-md);
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  color: var(--t-hi); transition: all .2s; text-align: center;
}
.amount-opt input:checked + span { border-color: var(--blue-500); background: var(--blue-50); color: var(--blue-700); }
.amount-opt input:focus-visible + span { outline: 3px solid var(--blue-500); outline-offset: 2px; }

.bank-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-xs); }
.bank-head { background: var(--grad-soft); padding: 20px 22px; border-bottom: 1px solid var(--line); }
.bank-head h3 { margin-bottom: 4px; }
.bank-head p { font-size: .88rem; }
.bank-row { display: flex; justify-content: space-between; gap: 14px; padding: 14px 22px; border-bottom: 1px solid var(--line); align-items: center; }
.bank-row:last-child { border-bottom: 0; }
.bank-row dt { font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--t-low); font-weight: 600; }
.bank-row dd { font-family: var(--font-display); font-weight: 700; color: var(--t-hi); text-align: right; font-size: .97rem; word-break: break-word; }

.placeholder-note {
  border-left: 4px solid var(--amber-500);
  background: rgba(217,139,34,.09);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 16px 20px; font-size: .92rem;
}
.placeholder-note strong { color: var(--t-hi); }

/* ---------- Prose / legal ---------- */
.legal-layout { display: grid; grid-template-columns: 248px 1fr; gap: clamp(26px, 4vw, 52px); align-items: start; }
.toc { position: sticky; top: 96px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-xs); }
.toc h2 { font-size: .74rem; letter-spacing: .13em; text-transform: uppercase; color: var(--t-faint); margin-bottom: 12px; font-family: var(--font-display); }
.toc a { display: block; font-size: .89rem; padding: 7px 10px; border-radius: 8px; color: var(--t-low); transition: all .2s; }
.toc a:hover, .toc a.active { color: var(--blue-700); background: var(--blue-50); }

.prose { max-width: 76ch; }
.prose h2 { font-size: clamp(1.3rem, 2vw, 1.7rem); margin-block: 42px 14px; scroll-margin-top: 100px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.06rem; margin-block: 24px 9px; }
.prose p { margin-bottom: 16px; }
.prose ul { display: grid; gap: 9px; margin-bottom: 18px; }
.prose ul li { display: flex; gap: 12px; }
.prose ul li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green-500); flex: none; margin-top: 10px; }
.prose strong { color: var(--t-hi); font-weight: 600; }
.prose a { color: var(--blue-700); text-decoration: underline; text-underline-offset: 3px; }

.pullquote {
  border-left: 4px solid var(--green-500);
  background: var(--green-50);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  padding: clamp(20px, 2.4vw, 30px);
  margin-block: 30px;
}
.pullquote p { font-family: var(--font-display); font-size: clamp(1.02rem, 1.5vw, 1.2rem); font-weight: 600; color: var(--t-hi); line-height: 1.5; margin: 0; }

.notice {
  border-left: 4px solid var(--amber-500);
  background: rgba(217,139,34,.09);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 18px 22px; margin-bottom: 28px;
}
.notice strong { color: var(--t-hi); }

/* ---------- Footer ---------- */
.ftr { background: var(--bg-alt); border-top: 1px solid var(--line); padding-top: clamp(44px, 5vw, 70px); }
.ftr-top { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.25fr; gap: clamp(24px, 3vw, 42px); padding-bottom: clamp(34px, 4vw, 52px); }
.ftr-about p { font-size: .93rem; margin-top: 14px; max-width: 42ch; }
.ftr h2 { font-family: var(--font-display); font-size: .77rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--t-faint); margin-bottom: 16px; }
.ftr-links { display: grid; gap: 10px; }
.ftr-links a { font-size: .94rem; color: var(--t-mid); transition: color .2s, transform .25s var(--ease); display: inline-block; }
.ftr-links a:hover { color: var(--blue-700); transform: translateX(3px); }
.ftr-contact { display: grid; gap: 12px; }
.ftr-contact a, .ftr-contact p { display: flex; gap: 11px; align-items: flex-start; font-size: .94rem; color: var(--t-mid); }
.ftr-contact svg { width: 17px; height: 17px; flex: none; color: var(--blue-500); margin-top: 3px; }
.ftr-contact a:hover { color: var(--blue-700); }
.ftr-bottom { border-top: 1px solid var(--line); padding-block: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .87rem; color: var(--t-faint); }

/* ---------- Utility ---------- */
.rv { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .8s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .06s; } .rv-d2 { transition-delay: .12s; }
.rv-d3 { transition-delay: .18s; } .rv-d4 { transition-delay: .24s; }

.totop {
  position: fixed; right: 18px; bottom: 18px; z-index: 800;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--blue-500); color: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all .3s var(--ease);
}
.totop.show { opacity: 1; visibility: visible; transform: none; }
.totop:hover { background: var(--blue-700); }
.totop svg { width: 18px; height: 18px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Responsive: 1366 / 768 / 390 ---------- */
@media (max-width: 1100px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .ftr-top { grid-template-columns: 1fr 1fr; }
  .ftr-about { grid-column: 1 / -1; }
  .legal-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
}
@media (max-width: 960px) {
  .nav { display: none; }
  .burger { display: block; }
  .split, .contact-grid, .donate-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .stats, .hero-strip { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .hdr-cta .btn-donate { display: none; }
}
@media (max-width: 680px) {
  :root { --gut: 18px; }
  .g-2, .g-3, .g-4, .steps { grid-template-columns: 1fr; }
  .stats, .hero-strip { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery figure:nth-child(1), .gallery figure:nth-child(6) { grid-row: span 1; }
  .gallery figure:nth-child(1) img, .gallery figure:nth-child(6) img { aspect-ratio: 1; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .member-body { padding: 13px 13px 16px; }
  .member-body h3 { font-size: .92rem; }
  .member-body p { font-size: .79rem; }
  .form-row, .amount-row { grid-template-columns: 1fr 1fr; }
  .hero-actions .btn { width: 100%; }
  .tl-item { grid-template-columns: 1fr; gap: 10px; }
  .ftr-top { grid-template-columns: 1fr; }
  .ftr-bottom { justify-content: center; text-align: center; }
  .rail-nav { justify-content: center; }
  .brand-logo, .hdr.stuck .brand-logo { height: 42px; }
  .bank-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .bank-row dd { text-align: left; }
}
@media (max-width: 420px) {
  .team-grid { grid-template-columns: 1fr; max-width: 320px; margin-inline: auto; }
}

@media print {
  .hdr, .drawer, .drawer-scrim, .totop, .cta, .hero-media, .marquee { display: none; }
  body { background: #fff; color: #111; }
}
/* ---------- Partner logos: same size, no box, clear row gap ---------- */
.marquee-row + .marquee-row { margin-top: clamp(28px, 4vw, 52px); }
.partner {
  display: flex; align-items: center; justify-content: center;
  width: clamp(150px, 18vw, 200px); height: clamp(82px, 8.5vw, 115px);
  padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none;
}
.partner:hover { border: 0; box-shadow: none; }
.partner img {
  display: block; width: 100%; height: 100%; min-height: 0;
  max-width: none; max-height: none; object-fit: contain;
  filter: none; opacity: 1;   /* full colour, no grayscale */
}
/* ---------- Certificates ---------- */
.certs { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
@media (max-width: 900px) { .certs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .certs { grid-template-columns: 1fr; } }
.cert {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-xs); padding: 8px; overflow: hidden;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.cert img { display: block; width: 100%; height: auto; aspect-ratio: 1.46 / 1; object-fit: contain; border-radius: 6px; }
.cert:hover { border-color: var(--blue-200); box-shadow: var(--shadow-sm); transform: translateY(-3px); }

.bank-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bank-logo {
  height: 50px;
  width: auto;
  object-fit: contain;
  margin-left: auto;
}
.card-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 18px;
}
.grid.g-2,
.grid.g-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 991px) {
  .grid.g-2,
  .grid.g-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grid.g-2,
  .grid.g-3 {
    grid-template-columns: 1fr;
  }
}

.page-banner {
  padding: 0 0 8px;
}

.banner-fig {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
}

.banner-fig img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- WordPress compatibility ---------- */
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
/* keep the sticky header and drawer below the WP admin bar when logged in */
.admin-bar .hdr { top: 32px; }
.admin-bar .drawer { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .hdr { top: 46px; }
  .admin-bar .drawer { top: 46px; }
}
@media (max-width: 600px) {
  .admin-bar .hdr { top: 0; }
}
/* editor content alignment helpers (used by the generic page template) */
.entry-content .alignleft { float: left; margin: 0 24px 16px 0; }
.entry-content .alignright { float: right; margin: 0 0 16px 24px; }
.entry-content .aligncenter { display: block; margin-inline: auto; }
.entry-content img { max-width: 100%; height: auto; }
.wp-caption-text, .entry-content figcaption { font-size: .88rem; color: var(--t-faint); margin-top: 6px; }

/* ---------- Justified text (site-wide) ---------- */
p, li, blockquote, dd, .lede, .prose {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}
/* blocks that are centred by design: justify the lines, keep the last line centred */
.section-head.center p, .pillar p, .stat p, .cta p, .ftr-bottom p {
  text-align: justify;
  text-align-last: center;
}
/* short labels / single values stay as designed */
.bank-row dd { text-align: right; hyphens: manual; }
@media (max-width: 760px) {
  .bank-row dd { text-align: left; }
  .ftr-bottom p { text-align: center; }
}
