/* ==========================================================================
   Rabia Sanctuary — design system
   Palette taken from the Rabia Sanctuary mark and held to three accents:
   the sun's orange, the children's green and the horizon's blue. Everything
   else is white or one soft neutral, so the site reads as a single brand.
   ========================================================================== */

:root {
  /* Colour */
  --ink:        #0F3548;   /* deepened logo blue — body headings */
  --body:       #40606F;   /* body copy */
  --muted:      #6E8794;   /* captions, meta */

  /* The three logo colours, sampled from the official mark */
  --orange:     #F7931E;   /* logo orange */
  --orange-deep:#B85E00;   /* same hue, darkened so it reads as text on white */
  --orange-dark:#E07C0A;   /* button hover */
  --green:      #71BF45;   /* logo green */
  --green-deep: #2C6B18;   /* same hue, darkened for headings and links */
  --blue:       #1A87C7;   /* logo blue */
  --blue-deep:  #145E8E;
  --blue-light: #7CC3E8;   /* logo blue lightened, for use on the dark footer */

  /* Backgrounds: white plus one very light wash of the logo blue */
  --paper:      #FFFFFF;
  --surface:    #EAF3FA;   /* the tinted band — logo blue at low strength */
  --surface-2:  #F5FAFD;
  --mist:       var(--surface);
  --sand:       var(--surface);
  --line:       #D8E7F0;

  --alert:      #A8443F;   /* reserved for form error messages only */

  /* Type */
  --display: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --text:    "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Space */
  --gutter: 24px;
  --max: 1180px;
  --band: clamp(42px, 5vw, 76px);
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;

  --shadow-soft: 0 18px 44px -24px rgba(15, 53, 72, .38);
  --shadow-lift: 0 26px 60px -28px rgba(15, 53, 72, .5);
}

/* --------------------------------------------------------------- reset -- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h2 { font-size: clamp(27px, 3.3vw, 42px); letter-spacing: -0.028em; color: var(--green-deep); }
h3 { font-size: 20px; letter-spacing: -0.015em; }
h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.022em;
  margin: 0 0 .5em;
}
h2 { color: var(--green-deep); }   /* section headings in logo green */

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

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* -------------------------------------------------------------- layout -- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.band { padding-block: var(--band); }
.band--mist { background: var(--mist); }
.band--sand { background: var(--sand); }
.band--ink  { background: var(--surface); color: var(--body); }
.band--ink h2, .band--ink h3 { color: var(--ink); }

.lede {
  font-size: clamp(18px, 1.9vw, 21px);
  line-height: 1.6;
  color: var(--body);
  max-width: 60ch;
}
.measure { max-width: 62ch; }

/* Section heading block */
.head { max-width: none; margin-bottom: clamp(18px, 2.1vw, 28px); }
.head--wide { max-width: none; }
.head--center { margin-inline: auto; text-align: center; }
.head p { margin-top: 11px; color: var(--body); max-width: 54ch; width: 54ch; }
@media (max-width: 900px){ .head p { width: auto; } }
.head--center p { margin-inline: auto; }

/* Small colour-arc rule taken from the logo's sun rays */
.rays { display: flex; gap: 6px; margin-bottom: 22px; }
.rays span { width: 22px; height: 5px; border-radius: 99px; display: block; }
.rays span:nth-child(1) { background: var(--orange); }
.rays span:nth-child(2) { background: var(--green); width: 14px; }
.rays span:nth-child(3) { background: var(--blue); width: 10px; }
.rays span:nth-child(4) { background: rgba(26,135,199,.45); width: 6px; }
.head--center .rays { justify-content: center; }

@media (min-width: 901px) {
  .head h2, .hope h2, .trust-top h2 { white-space: nowrap; }
}

/* ------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--text); font-weight: 600; font-size: 16px;
  padding: 15px 28px; border-radius: 99px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .25s ease, background-color .25s ease, border-color .25s ease, color .25s ease;
}
.btn--solid { background: var(--orange); color: var(--ink); }
.btn--solid:hover { background: var(--orange-dark); transform: translateY(-2px); }
.btn--ghost { border-color: var(--green); color: var(--green-deep); background: #fff; }
.btn--ghost:hover { border-color: var(--green-deep); background: rgba(113,191,69,.12); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { transform: translateY(-2px); }

.textlink {
  display: inline-flex; align-items: baseline; gap: 8px;
  font-weight: 600; color: var(--blue-deep); text-decoration: none;
  border-bottom: 2px solid rgba(28, 127, 191, .28);
  padding-bottom: 2px;
  transition: border-color .25s ease, color .25s ease;
}
.textlink:hover { border-color: var(--orange); color: var(--orange-deep); }

/* -------------------------------------------------------------- header -- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.site-header.is-stuck { border-color: var(--line); box-shadow: 0 8px 24px -22px rgba(15,53,72,.7); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 96px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; min-width: 0; }
.brand img { width: auto; height: 68px; flex: none; display: block; }
.brand-name {
  display: block;
  font-family: var(--display); font-weight: 700; font-size: 18px;
  color: var(--ink); line-height: 1.1; letter-spacing: -0.01em;
}
.brand-sub { display: block; font-size: 11.5px; color: var(--muted); letter-spacing: .04em; line-height: 1.4; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-size: 15.5px; font-weight: 500; color: var(--ink); text-decoration: none;
  padding: 10px 15px; border-radius: 99px;
  transition: background-color .22s ease, color .22s ease;
}
.nav a:hover { background: var(--mist); }
.nav a[aria-current="page"] { color: var(--green-deep); background: rgba(113,191,69,.16); }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line);
  border-radius: 12px; background: #fff; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 19px; height: 2px; background: var(--ink); position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 19px; height: 2px; background: var(--ink);
  transition: transform .28s ease, opacity .2s ease;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* ---------------------------------------------------------------- hero -- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(28px, 3.1vw, 46px) clamp(30px, 3.2vw, 48px);
  background:
    linear-gradient(180deg, var(--surface) 0%, #FFFFFF 82%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(31px, 4.05vw, 51px);
  line-height: 1.05;
  letter-spacing: -0.032em;
  font-weight: 800;
  margin-bottom: 16px;
  text-wrap: balance;
}
.hero-content p {
  font-size: clamp(17px, 1.75vw, 21px);
  line-height: 1.62;
  color: var(--body);
  max-width: 46ch;
  margin-bottom: 24px;
}
.hero .btn { padding: 16px 30px; font-size: 16.5px; }

.hero-photo {
  position: relative;
  margin: 0;
  justify-self: end;
  width: 100%;
  max-width: 520px;
}
.hero-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 50% 50%;
  border-radius: 240px 240px 28px 28px;
  box-shadow: 0 44px 86px -44px rgba(15,53,72,.5);
}
.hero-photo::before {
  content: "";
  position: absolute;
  left: 50%; top: 22px;
  width: calc(100% + 30px); height: calc(100% + 30px);
  transform: translate(calc(-50% + 20px), 0);
  border-radius: 255px 255px 34px 34px;
  border: 1.5px solid rgba(247,147,30,.42);
}

/* ------------------------------------------------------------ who we are */
.who-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.who-photo { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-soft); }
.who-photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: 50% 50%; }

.facts { display: grid; gap: 2px; margin-top: 22px; }
.fact { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 13px 0; border-top: 1px solid var(--line); }
.fact:last-child { border-bottom: 1px solid var(--line); }
.fact-icon {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(26,135,199,.10); color: var(--blue-deep);
}
.fact:nth-child(2) .fact-icon { background: rgba(247,147,30,.13); color: var(--orange-deep); }
.fact:nth-child(3) .fact-icon { background: rgba(113,191,69,.14); color: var(--green-deep); }
.fact-icon svg { width: 22px; height: 22px; }
.fact h3 { font-size: 18px; margin: 2px 0 4px; }
.fact p { font-size: 15.5px; color: var(--body); }

.keyfacts {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start;
  gap: 28px; margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line);
}
.keyfacts dt { font-size: 13px; color: var(--muted); letter-spacing: .02em; margin-bottom: 4px; }
.keyfacts dd {
  margin: 0; font-family: var(--display); font-weight: 700; font-size: 19px;
  color: var(--ink); line-height: 1.15;
}
.keyfacts div:last-child dd { white-space: nowrap; }
.keyfacts div:nth-child(1) dd { color: var(--orange-deep); }
.keyfacts div:nth-child(2) dd { color: var(--orange-deep); }
@media (max-width: 640px) {
  .keyfacts { grid-template-columns: 1fr 1fr; gap: 24px; }
  .keyfacts div:last-child { grid-column: 1 / -1; }
}

/* --------------------------------------------------- mission and vision -- */
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mv-card {
  background: #fff; border-radius: var(--r-lg); padding: clamp(22px, 2.5vw, 32px);
  border: 1px solid var(--line); position: relative; overflow: hidden;
}
.mv-card::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 5px;
  background: var(--orange);
}
.mv-card:nth-child(2)::after { background: var(--green); }
.mv-card h3 { font-size: clamp(22px, 2.3vw, 28px); margin-bottom: 14px; }
.mv-card p { font-size: 17px; }
.mv-mark { width: 40px; height: 40px; margin-bottom: 20px; color: var(--orange); }
.mv-card:nth-child(2) .mv-mark { color: var(--blue); }
.mv-mark svg { width: 100%; height: 100%; }

/* ---------------------------------------------------------------- care -- */
.care { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.care-card img { aspect-ratio: 4/3; }
.care-card { display: flex; flex-direction: column; }
.care-body { flex: 1; }
.care-card {
  background: #fff; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.care-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); border-color: #CFE2EC; }
.care-card figure { margin: 0; overflow: hidden; }
.care-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.3,1); }
.care-card:hover img { transform: scale(1.045); }
.care-body { padding: 28px 28px 32px; }
.care-body h3 { font-size: 20px; margin-bottom: 10px; line-height: 1.22; text-wrap: balance; }
.care-body p { font-size: 15.5px; }
.care-tag {
  display: inline-block; font-size: 12.5px; font-weight: 600; letter-spacing: .02em;
  padding: 5px 12px; border-radius: 99px; margin-bottom: 14px;
}
.tag-blue  { background: rgba(26,135,199,.11); color: var(--blue-deep); }
.tag-green { background: rgba(113,191,69,.15); color: var(--green-deep); }
.tag-amber { background: rgba(247,147,30,.14); color: var(--orange-deep); }

/* ------------------------------------------------------------ onboarding */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 26px; counter-reset: step; }
.step { position: relative; padding-top: 26px; border-top: 2px solid var(--line); counter-increment: step; }
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; top: -1px; left: 0; transform: translateY(-50%);
  background: var(--orange); color: var(--ink);
  font-family: var(--display); font-weight: 700; font-size: 12.5px;
  padding: 3px 10px; border-radius: 99px;
}
.band--mist .step::before { background: var(--orange); }
.step h3 { font-size: 17.5px; margin-bottom: 7px; }
.step p { font-size: 14.5px; color: var(--body); line-height: 1.55; }
.steps-note {
  margin-top: 44px; padding: 24px 28px; border-radius: var(--r-md);
  background: #fff; border: 1px solid var(--line);
  display: flex; gap: 18px; align-items: flex-start;
}
.steps-note svg { width: 24px; height: 24px; flex: none; color: var(--green); margin-top: 2px; }
.steps-note p { font-size: 15.5px; }

/* -------------------------------------------------------- inauguration -- */
.inaug { display: grid; grid-template-columns: 1fr; gap: 22px; }
.inaug-photo { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-soft); }
.inaug-photo img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.inaug-text { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 4vw, 64px); align-items: start; }

/* -------------------------------------------------------------- family -- */
/* Cell shapes are matched to each photograph's orientation so the crop stays
   shallow; object-position is then set per image, inline, from where the
   faces actually sit in that frame. */
.mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(150px, 15.5vw, 200px);
  grid-auto-flow: row dense;
  gap: 12px;
}
.mosaic a { display: block; border-radius: var(--r-md); overflow: hidden; position: relative; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.3,1); }
.mosaic a:hover img { transform: scale(1.06); }
.mosaic .big  { grid-column: span 2; grid-row: span 2; }
.mosaic .tall { grid-row: span 2; }

/* --------------------------------------------------------------- trust -- */
.programs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.program {
  padding: 28px 26px 30px; border-radius: var(--r-md);
  background: #fff; border: 1px solid var(--line);
  transition: box-shadow .3s ease, transform .3s ease, border-color .3s ease;
}
.program:hover { box-shadow: var(--shadow-soft); border-color: #CFE2EC; transform: translateY(-4px); }
.program h3 { font-size: 19px; margin-bottom: 6px; }
.program .hash { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 12px; }
.program p { font-size: 14.5px; color: var(--body); line-height: 1.55; }
.h-green { color: var(--green-deep); } .h-amber { color: var(--orange-deep); } .h-sky { color: var(--blue-deep); }
.trust-top { margin-bottom: clamp(20px, 2.4vw, 30px); }
.trust-top .lede { margin-bottom: clamp(16px, 2vw, 24px); }
.trust-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.trust-photos img { border-radius: var(--r-md); aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.band--ink .lede { color: var(--body); }
.band--ink .textlink { color: var(--blue-deep); border-color: rgba(26,135,199,.28); }
.band--ink .textlink:hover { color: var(--ink); border-color: var(--orange); }

/* ------------------------------------------------------------- message -- */
.message { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 68px); align-items: center; }
.message-photo { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-soft); }
.message-photo img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
blockquote.pull {
  margin: 0; font-family: var(--display); font-weight: 600;
  font-size: clamp(21px, 2.6vw, 30px); line-height: 1.42; color: var(--ink);
  letter-spacing: -0.022em;
}
blockquote.pull::before {
  content: "“"; display: block; font-size: 72px; line-height: .6; color: var(--orange);
  margin-bottom: 12px;
}
.byline { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.byline strong { display: block; color: var(--ink); font-family: var(--display); font-size: 17px; font-weight: 700; }
.byline span { font-size: 14.5px; color: var(--muted); }
.byline .textlink { margin-top: 16px; }

/* ---------------------------------------------------------------- hope -- */
.hope {
  position: relative;
  overflow-x: clip;
  text-align: center;
  padding-block: var(--band);
}
.hope .wrap { position: relative; }
/* growing-sapling mark: hope, care and a future, in the three logo colours */
.hope-mark {
  display: block;
  width: clamp(84px, 8.6vw, 116px);
  height: auto;
  margin: 0 auto clamp(10px, 1.4vw, 16px);
}
.hope h2 { font-size: clamp(32px, 4.6vw, 52px); margin-bottom: 16px; color: var(--orange-deep); }
.hope p { font-size: clamp(17px, 1.8vw, 20px); max-width: 64ch; margin-inline: auto; }
.hope-actions { margin-top: 28px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* -------------------------------------------------------------- footer -- */
.site-footer {
  background: var(--ink); color: #A9C6D6;
  padding-block: clamp(34px, 3.8vw, 50px) 24px;
  border-top: 5px solid var(--orange);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.footer-brand { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }
.footer-brand img {
  width: auto; height: 84px; flex: none;
  background: #fff; border-radius: 16px; padding: 9px 12px;
}
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: #8DAEC1; }
.site-footer h4 { color: #fff; font-size: 14.5px; font-weight: 700; letter-spacing: 0; margin-bottom: 16px; letter-spacing: .01em; }
.site-footer p, .site-footer li { font-size: 14.5px; line-height: 1.6; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: #A9C6D6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.contact-row { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; }
.contact-row svg { width: 18px; height: 18px; margin-top: 3px; color: var(--blue-light); }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255,255,255,.08); transition: background-color .25s ease, transform .25s ease;
}
.socials a:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.socials svg { width: 19px; height: 19px; }
.footer-base {
  margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 13.5px; color: #85A7BA;
}

/* ------------------------------------------------------------- reveals -- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.3,1); }
.reveal.is-in { opacity: 1; transform: none; }

.hero h1, .hero-content p, .hero-content .btn, .hero-photo {
  animation: rise .95s cubic-bezier(.2,.7,.3,1) both;
}
.hero-photo { animation-delay: .1s; }
.hero-content p   { animation-delay: .12s; }
.hero-content .btn { animation-delay: .22s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------- responsive -- */
@media (max-width: 1040px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 30px 26px; }
  .programs { grid-template-columns: repeat(2, 1fr); }
  .care { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav {
    position: fixed; inset: 96px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 14px var(--gutter) 22px;
    box-shadow: 0 24px 40px -30px rgba(15,53,72,.8);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav a { padding: 14px 12px; border-radius: 12px; font-size: 17px; }
  .nav-toggle { display: flex; }

  .who-grid, .mv, .message, .inaug-text { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-content { order: 2; }
  .hero-photo { order: 1; justify-self: center; max-width: 400px; }
  .hero-photo::before { display: none; }
  .hero h1 { text-align: left; }
  .message-photo { max-width: 340px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 16.5px; }
  :root { --gutter: 20px; }
  .steps, .mosaic { grid-template-columns: 1fr 1fr; }
  .mosaic { grid-auto-rows: 40vw; }
  .programs { grid-template-columns: 1fr; }
  .care { grid-template-columns: 1fr; }
  .care-card img { aspect-ratio: 16/10; }
  .hero-photo { max-width: 320px; }
  .hero h1 { font-size: 32px; }
  .brand-sub { display: none; }
  .brand img { height: 52px; }
  .header-inner { min-height: 78px; }
  .nav { inset: 78px 0 auto 0; }
  .trust-photos { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .steps-note { flex-direction: column; gap: 12px; }
}

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

/* ======================================================================== */
/* INNER PAGES                                                              */
/* ======================================================================== */

/* ---------------------------------------------------------- page hero -- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(24px, 2.8vw, 40px) clamp(26px, 3vw, 42px);
  background:
    linear-gradient(180deg, var(--surface) 0%, #FFFFFF 82%);
}
.page-hero-grid {
  display: grid;
  grid-template-columns: 1fr .82fr;
  gap: clamp(36px, 5vw, 76px);
  align-items: center;
}
.page-hero .rays { margin-bottom: 18px; }
.page-hero h1 {
  font-size: clamp(34px, 4.3vw, 54px);
  font-weight: 800;
  letter-spacing: -0.032em;
  line-height: 1.06;
  margin-bottom: 13px;
}
.page-hero p {
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.62;
  color: var(--body);
  max-width: 46ch;
  margin: 0;
}
.page-hero-photo {
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.page-hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 42%;
  display: block;
}
.crumb {
  display: inline-block;
  font-size: 13.5px; font-weight: 600; letter-spacing: .02em;
  color: var(--blue-deep);
  background: rgba(26,135,199,.10);
  padding: 6px 14px; border-radius: 99px;
  margin-bottom: 20px;
}

/* ------------------------------------------------------------- story -- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.story + .story { margin-top: clamp(26px, 3.2vw, 44px); }
.story-photo { margin: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-soft); }
.story-photo img { width: 100%; object-fit: cover; display: block; }
.story-photo--tall img { aspect-ratio: 4 / 3; object-position: 50% 40%; }
.story-photo--wide img { aspect-ratio: 16 / 9; object-position: 50% 46%; }
.story-text p { font-size: 17px; }
.story-text p + p { margin-top: 1.05em; }
.story--reverse .story-photo { order: -1; }

.milestones {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: clamp(22px, 2.6vw, 34px);
}
.milestone { padding-top: 22px; border-top: 2px solid var(--line); }
.milestone dt {
  font-weight: 700; font-size: 22px; color: var(--orange-deep);
  letter-spacing: -0.02em; margin-bottom: 6px;
}
.milestone:nth-child(2) dt { color: var(--orange-deep); }
.milestone:nth-child(3) dt { color: var(--green-deep); }
.milestone dd { margin: 0; font-size: 15px; color: var(--body); line-height: 1.55; }

/* -------------------------------------------------------- leadership -- */
.leader {
  display: grid; grid-template-columns: .62fr 1fr;
  gap: clamp(32px, 4.5vw, 64px);
  align-items: start;
}
.leader + .leader {
  margin-top: clamp(26px, 3.2vw, 44px);
  padding-top: clamp(26px, 3.2vw, 44px);
  border-top: 1px solid var(--line);
}
.leader--reverse { grid-template-columns: 1fr .62fr; }
.leader--reverse .leader-aside { order: 2; }
.leader-aside { position: sticky; top: 120px; }
.leader-photo { margin: 0 0 16px; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-soft); }
.leader-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.leader-name { font-size: 21px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; margin: 0 0 3px; }
.leader-role { font-size: 14.5px; color: var(--muted); margin: 0; }
.leader-body p { font-size: 16.5px; line-height: 1.68; }
.leader-body p + p { margin-top: 1.05em; }
.leader-open {
  font-size: clamp(19px, 2.1vw, 25px);
  font-weight: 600; color: var(--ink);
  line-height: 1.45; letter-spacing: -0.02em;
  margin-bottom: 1.1em;
}
.leader-sign { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.leader-sign strong { display: block; color: var(--ink); font-weight: 700; font-size: 16.5px; }

/* ------------------------------------------------------- initiatives -- */
.initiatives { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.initiative {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 26px 24px 28px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.initiative::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 4px;
  background: var(--blue);
}
.initiative:nth-child(2)::after,
.initiative:nth-child(6)::after { background: var(--green); }
.initiative:nth-child(3)::after,
.initiative:nth-child(4)::after { background: var(--orange); }
.initiative:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); border-color: #CFE2EC; }
.initiative-icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  margin-bottom: 16px; background: rgba(26,135,199,.10); color: var(--blue-deep);
}
.initiative-icon svg { width: 23px; height: 23px; }
.initiative:nth-child(2) .initiative-icon { background: rgba(113,191,69,.14); color: var(--green-deep); }
.initiative:nth-child(3) .initiative-icon { background: rgba(247,147,30,.13); color: var(--orange-deep); }
.initiative:nth-child(4) .initiative-icon { background: rgba(247,147,30,.13); color: var(--orange-deep); }
.initiative:nth-child(5) .initiative-icon { background: rgba(26,135,199,.10); color: var(--blue-deep); }
.initiative:nth-child(6) .initiative-icon { background: rgba(113,191,69,.14); color: var(--green-deep); }
.initiative h3 { font-size: 18px; margin-bottom: 4px; }
.initiative .hash { display: block; font-size: 13px; font-weight: 700; color: var(--blue-deep); margin-bottom: 10px; }
.initiative:nth-child(2) .hash { color: var(--green-deep); }
.initiative:nth-child(3) .hash { color: var(--orange-deep); }
.initiative p { font-size: 14.5px; line-height: 1.55; }

@media (max-width: 1040px) {
  .initiatives { grid-template-columns: repeat(2, 1fr); }
  .milestones { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 900px) {
  .page-hero-grid, .story, .leader { grid-template-columns: 1fr; }
  .page-hero-photo { order: -1; }
  .story--reverse .story-photo, .leader--reverse .leader-aside { order: 0; }
  .leader-aside { position: static; }
  .leader-photo { max-width: 380px; }
}

@media (max-width: 640px) {
  .initiatives { grid-template-columns: 1fr; }
}

/* ---------------------------------------------- activities & programs -- */
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14.5px; font-weight: 600; color: var(--ink);
  background: #fff; border: 1px solid var(--line);
  padding: 9px 16px 9px 12px; border-radius: 99px;
}
.band--mist .chip { background: #fff; }
.chip svg { width: 17px; height: 17px; color: var(--orange-deep); flex: none; }
.chip:nth-child(2) svg { color: var(--green-deep); }
.chip:nth-child(3) svg { color: var(--blue-deep); }
.chip:nth-child(4) svg { color: var(--blue-deep); }

.act-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.act-photos figure { margin: 0; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-soft); }
.act-photos img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
  transition: transform .7s cubic-bezier(.2,.7,.3,1);
}
.act-photos figure:hover img { transform: scale(1.05); }
.act-photos figcaption {
  font-size: 13.5px; color: var(--muted); padding: 10px 14px 14px;
}
.act-photos--duo { grid-template-columns: repeat(2, 1fr); gap: 18px; }

@media (max-width: 900px) {
  .act-photos { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .act-photos, .act-photos--duo { grid-template-columns: 1fr; }
}

/* ======================================================================== */
/* GALLERY                                                                  */
/* ======================================================================== */

.gallery-hero { padding-block: clamp(22px, 2.5vw, 34px) clamp(16px, 1.8vw, 24px); }
.gallery-hero .rays { margin-bottom: 16px; }
.gallery-hero h1 { font-size: clamp(32px, 3.9vw, 48px); font-weight: 800; letter-spacing: -0.032em; margin-bottom: 10px; }
.gallery-hero p { font-size: clamp(16.5px, 1.6vw, 19px); color: var(--body); max-width: 52ch; margin: 0; }

/* ------------------------------------------------------------ filters -- */
.filters-wrap {
  position: sticky; top: 96px; z-index: 40;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.filters {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 12px 0; scrollbar-width: none; -ms-overflow-style: none;
}
.filters::-webkit-scrollbar { display: none; }
.filter {
  flex: none; cursor: pointer; white-space: nowrap;
  font-family: inherit; font-size: 14.5px; font-weight: 600; color: var(--ink);
  background: transparent; border: 1px solid var(--line);
  padding: 9px 17px; border-radius: 99px;
  transition: background-color .22s ease, border-color .22s ease, color .22s ease;
}
.filter:hover { background: var(--mist); }
.filter[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.filter .count { opacity: .55; font-weight: 500; margin-left: 5px; }

/* ------------------------------------------------------------ masonry -- */
.masonry { columns: 4; column-gap: 16px; margin-top: 4px; }
.masonry figure {
  break-inside: avoid; margin: 0 0 16px; position: relative;
  border-radius: var(--r-md); overflow: hidden;
  background: var(--mist);
  cursor: zoom-in;
}
.masonry img {
  width: 100%; height: auto; display: block;   /* natural ratio — never cropped */
  transition: transform .6s cubic-bezier(.2,.7,.3,1), filter .3s ease;
}
.masonry figure:hover img { transform: scale(1.04); }
.masonry figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 30px 16px 16px;
  line-height: 1.45;
  font-size: 13px; color: #fff;
  background: linear-gradient(to top, rgba(8,32,45,.82), rgba(8,32,45,0));
  opacity: 0; transform: translateY(6px);
  transition: opacity .3s ease, transform .3s ease;
}
.masonry figure:hover figcaption, .masonry figure:focus-within figcaption { opacity: 1; transform: none; }
.masonry figure:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.masonry figure[hidden] { display: none; }

.empty-cat {
  border: 1px dashed #BBD9EC; border-radius: var(--r-md);
  padding: clamp(36px, 5vw, 60px) 28px; text-align: center; background: var(--mist);
}
.empty-cat h3 { font-size: 19px; margin-bottom: 8px; }
.empty-cat p { font-size: 15.5px; max-width: 46ch; margin-inline: auto; }

/* ----------------------------------------------------------- lightbox -- */
.lb {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(7,26,36,.94);
  display: none; align-items: center; justify-content: center;
  padding: clamp(16px, 4vw, 48px);
}
.lb.is-open { display: flex; }
.lb-stage { position: relative; max-width: 100%; max-height: 100%; text-align: center; }
.lb-stage img {
  display: block; margin-inline: auto;
  max-width: min(92vw, 1200px); max-height: 82vh;
  width: auto; height: auto;                 /* small originals are never blown up */
  border-radius: 10px;
}
.lb-cap { color: #C9DEE9; font-size: 14px; margin-top: 14px; min-height: 1.2em; }
.lb-count { color: #7FA3B6; font-size: 13px; margin-top: 4px; }
.lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 99px; cursor: pointer;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22);
  display: grid; place-items: center; color: #fff;
  transition: background-color .22s ease;
}
.lb-btn:hover { background: rgba(255,255,255,.26); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-prev { left: clamp(-12px, -2vw, 0px); }
.lb-next { right: clamp(-12px, -2vw, 0px); }
.lb-close {
  position: fixed; top: 18px; right: 18px;
  width: 48px; height: 48px; border-radius: 99px; cursor: pointer;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22);
  display: grid; place-items: center; color: #fff;
}
.lb-close:hover { background: rgba(255,255,255,.26); }
.lb-close svg { width: 20px; height: 20px; }
body.lb-locked { overflow: hidden; }

@media (min-width: 761px) { .filters { flex-wrap: wrap; overflow: visible; row-gap: 10px; } }
@media (max-width: 1100px) { .masonry { columns: 3; } }
@media (max-width: 760px)  { .masonry { columns: 2; column-gap: 14px; } .masonry figure { margin-bottom: 14px; } }
@media (max-width: 760px)  { .filters-wrap { top: 78px; } }
@media (max-width: 560px) {
  .lb-prev { left: -6px; } .lb-next { right: -6px; }
  .lb-btn { width: 44px; height: 44px; }
  .masonry figcaption { opacity: 1; transform: none; font-size: 12px; padding: 26px 13px 14px; }
}

/* ======================================================================== */
/* CONTACT                                                                  */
/* ======================================================================== */

.contact-grid {
  display: grid; grid-template-columns: .85fr 1.15fr;
  gap: clamp(32px, 5vw, 72px); align-items: start;
}

/* ------------------------------------------------- contact information -- */
.ci-list { display: grid; gap: 2px; margin-top: 8px; }
.ci-row {
  display: grid; grid-template-columns: 48px 1fr; gap: 18px;
  padding: 17px 0; border-top: 1px solid var(--line);
}
.ci-row:last-child { border-bottom: 1px solid var(--line); }
.ci-icon {
  width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center;
  background: rgba(26,135,199,.10); color: var(--blue-deep);
}
.ci-row:nth-child(2) .ci-icon { background: rgba(247,147,30,.13); color: var(--orange-deep); }
.ci-row:nth-child(3) .ci-icon { background: rgba(113,191,69,.14); color: var(--green-deep); }
.ci-icon svg { width: 22px; height: 22px; }
.ci-label { font-size: 13px; color: var(--muted); letter-spacing: .02em; margin: 3px 0 5px; }
.ci-value { font-size: 17px; font-weight: 600; color: var(--ink); line-height: 1.45; margin: 0; }
.ci-value a { color: var(--ink); text-decoration: none; border-bottom: 2px solid rgba(26,135,199,.3); }
.ci-value a:hover { border-color: var(--orange); }
.ci-note { font-size: 14.5px; color: var(--muted); margin: 6px 0 0; font-weight: 400; }

.ci-socials { display: flex; gap: 10px; margin-top: 20px; }
.ci-socials a {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  background: var(--mist); color: var(--blue-deep);
  transition: background-color .25s ease, transform .25s ease;
}
.ci-socials a:hover { background: rgba(26,135,199,.14); transform: translateY(-2px); }
.ci-socials svg { width: 19px; height: 19px; }

/* --------------------------------------------------------------- form -- */
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(26px, 3.4vw, 44px);
  box-shadow: var(--shadow-soft);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field .req { color: var(--orange); }
.field input, .field textarea {
  font-family: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px;
  padding: 13px 15px; width: 100%;
  transition: border-color .22s ease, box-shadow .22s ease;
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: #9FB4BF; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(26,135,199,.13);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--alert); }
.field-error { font-size: 13px; color: var(--alert); margin-top: 6px; min-height: 1em; }
.form-actions { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.form-status {
  margin-top: 20px; padding: 16px 18px; border-radius: 12px;
  font-size: 15px; line-height: 1.55;
  background: rgba(247,147,30,.10); border: 1px solid rgba(247,147,30,.30); color: var(--orange-deep);
}
.form-status[data-kind="ok"] {
  background: rgba(113,191,69,.12); border-color: rgba(113,191,69,.38); color: var(--green-deep);
}
.form-status[data-kind="error"] {
  background: rgba(168,68,63,.08); border-color: rgba(168,68,63,.30); color: var(--alert);
}
.form-status[hidden] { display: none; }
.form-actions .btn[disabled] { opacity: .65; cursor: progress; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
}


/* ------------------------------------------------- anchor destinations -- */
/* The header is sticky, so linked sections need room above them. */
#leadership-messages,
#al-rehman-welfare-trust,
#contact-form {
  scroll-margin-top: 116px;
}
@media (max-width: 640px) {
  #leadership-messages,
  #al-rehman-welfare-trust,
  #contact-form {
    scroll-margin-top: 98px;
  }
}

/* ------------------------------------------------------- video frame -- */
.video-frame {
  margin: 0 auto;
  max-width: 960px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #0B2A3A;
  box-shadow: var(--shadow-lift);
  line-height: 0;
}
.video-frame video {
  display: block;
  width: 100%;
  height: auto;          /* the file's own 16:9 ratio, never cropped or stretched */
  aspect-ratio: 16 / 9;
  background: #0B2A3A;
}
@media (max-width: 640px) {
  .video-frame { border-radius: var(--r-md); }
}

/* ------------------------------------------- interactive process flow -- */
.flow {
  list-style: none; margin: clamp(20px, 2.4vw, 32px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 26px;
}
.flow-step { position: relative; margin: 0; }

/* the chevron sitting in the gap between tiles */
.flow-step::after {
  content: ""; position: absolute; top: 50%; left: calc(100% + 9px);
  width: 8px; height: 8px;
  border-top: 2.2px solid var(--c); border-right: 2.2px solid var(--c);
  transform: translateY(-50%) rotate(45deg);
  opacity: .55;
}
.flow-step:nth-child(4n)::after, .flow-step:last-child::after { display: none; }

/* colour cycle: orange, green, blue */
.flow-step            { --c: var(--orange); --c-deep: var(--orange-deep); --c-soft: rgba(247,147,30,.12); --c-soft2: rgba(247,147,30,.22); }
.flow-step:nth-child(3n+2) { --c: var(--green);  --c-deep: var(--green-deep);  --c-soft: rgba(113,191,69,.14); --c-soft2: rgba(113,191,69,.26); }
.flow-step:nth-child(3n+3) { --c: var(--blue);   --c-deep: var(--blue-deep);   --c-soft: rgba(26,135,199,.11); --c-soft2: rgba(26,135,199,.20); }

.flow-tile {
  font: inherit; cursor: pointer; width: 100%; height: 100%;
  display: block; text-align: center;
  background: var(--c-soft);
  border: 2px solid transparent;
  border-radius: 16px;
  padding: 15px 10px 13px;
  transition: background-color .25s ease, border-color .25s ease, transform .25s ease;
}
.flow-tile:hover { background: var(--c-soft2); transform: translateY(-3px); }
.flow-icon {
  width: 46px; height: 46px; margin: 0 auto 9px;
  border-radius: 14px; display: grid; place-items: center;
  background: #fff; color: var(--c-deep);
  transition: background-color .25s ease, color .25s ease, transform .25s ease;
}
.flow-icon svg { width: 23px; height: 23px; }
.flow-num {
  display: block; font-size: 10.5px; font-weight: 700;
  letter-spacing: .08em; color: var(--c-deep); opacity: .8; margin-bottom: 2px;
}
.flow-title {
  display: block; font-size: 13.5px; font-weight: 700;
  line-height: 1.28; color: var(--ink); letter-spacing: -0.012em;
  text-wrap: balance;
}

/* selected state */
.flow-tile[aria-selected="true"] {
  background: var(--c-soft2);
  border-color: var(--c);
  box-shadow: 0 10px 26px -16px rgba(15,53,72,.45);
}
.flow-tile[aria-selected="true"] .flow-icon {
  background: var(--c); color: #fff; transform: scale(1.06);
}
.flow-step:nth-child(3n+2) .flow-tile[aria-selected="true"] .flow-icon { color: #123A06; }
.flow-tile[aria-selected="true"] .flow-num { opacity: 1; }
/* pointer toward the detail panel */
.flow-tile[aria-selected="true"]::after {
  content: ""; position: absolute; left: 50%; bottom: -9px;
  width: 15px; height: 15px; background: var(--c-soft2);
  border-right: 2px solid var(--c); border-bottom: 2px solid var(--c);
  transform: translateX(-50%) rotate(45deg);
}

/* the detail panel */
.flow-detail {
  margin-top: 20px;
  border-radius: var(--r-md);
  padding: clamp(22px, 2.6vw, 32px) clamp(22px, 3vw, 38px);
  background: rgba(247,147,30,.10);
  border-left: 4px solid var(--orange);
  transition: background-color .3s ease, border-color .3s ease;
}
.flow-detail[data-c="green"] { background: rgba(113,191,69,.13); border-left-color: var(--green); }
.flow-detail[data-c="blue"]  { background: rgba(26,135,199,.10); border-left-color: var(--blue); }
.flow-detail h3 { font-size: 19px; margin-bottom: 7px; color: var(--ink); }
.flow-detail p  { font-size: 16px; line-height: 1.6; max-width: 70ch; margin: 0; }
.flow-detail .flow-detail-num {
  font-size: 12px; font-weight: 700; letter-spacing: .09em;
  color: var(--muted); display: block; margin-bottom: 4px;
}
.flow-note {
  margin-top: 16px; font-size: 14.5px; line-height: 1.6; color: var(--body);
}
.flow-note strong { color: var(--ink); font-weight: 700; }

/* one compact row — only above the width where titles stay comfortable */
@media (min-width: 1180px) {
  .flow { grid-template-columns: repeat(8, 1fr); gap: 20px; }
  .flow-step::after { display: block; }
  .flow-step:nth-child(4n)::after { display: block; }
  .flow-step:last-child::after { display: none; }
}

/* small desktop and tablet keep the 4 + 4 layout */
@media (max-width: 1179px) {
  .flow { grid-template-columns: repeat(4, 1fr); gap: 14px 22px; }
  .flow-step::after { display: block; left: calc(100% + 7px); }
  .flow-step:nth-child(4n)::after, .flow-step:last-child::after { display: none; }
}

/* narrow tablets: two across */
@media (max-width: 760px) {
  .flow { grid-template-columns: repeat(2, 1fr); gap: 14px 22px; }
  .flow-step:nth-child(4n)::after { display: block; }
  .flow-step:nth-child(2n)::after, .flow-step:last-child::after { display: none; }
}

@media (max-width: 620px) {
  /* vertical journey: one tappable row per step */
  .flow { grid-template-columns: 1fr; gap: 12px; }
  .flow-step::after { display: none !important; }
  .flow-tile {
    display: grid; grid-template-columns: 54px 1fr; align-items: center;
    column-gap: 16px; text-align: left; padding: 14px 16px;
  }
  .flow-icon { width: 54px; height: 54px; margin: 0; grid-row: 1 / 3; border-radius: 16px; }
  .flow-icon svg { width: 26px; height: 26px; }
  .flow-num   { grid-column: 2; align-self: end; }
  .flow-title { grid-column: 2; align-self: start; font-size: 16px; }
  .flow-tile[aria-selected="true"]::after { display: none; }
  .flow-detail { margin-top: 18px; }
}


/* a lead line that may run the full column width (keeps to one line on desktop) */
.head p.lede-wide { max-width: none; width: auto; }

/* ======================================================================== */
/* OUR STORY — Al-Rehman Welfare Trust section only                          */
/* ======================================================================== */

#al-rehman-welfare-trust {
  padding-block: clamp(32px, 3.8vw, 58px);
}
#al-rehman-welfare-trust .head { margin-bottom: clamp(14px, 1.7vw, 22px); }
#al-rehman-welfare-trust .head p {
  max-width: none;          /* use the full column instead of a 54ch measure */
  width: auto;
  margin-top: 8px;
}

/* programme cards: a blue / green / orange cycle, lightly tinted */
#al-rehman-welfare-trust .initiatives { gap: 14px; }

#al-rehman-welfare-trust .initiative {
  --c: var(--blue);
  --c-deep: var(--blue-deep);
  --c-soft: rgba(26,135,199,.08);
  --c-chip: rgba(26,135,199,.16);
  background: var(--c-soft);
  border-color: rgba(26,135,199,.22);
  padding: 20px 20px 22px;
}
#al-rehman-welfare-trust .initiative:nth-child(3n+2) {
  --c: var(--green); --c-deep: var(--green-deep);
  --c-soft: rgba(113,191,69,.11); --c-chip: rgba(113,191,69,.22);
  border-color: rgba(113,191,69,.28);
}
#al-rehman-welfare-trust .initiative:nth-child(3n+3) {
  --c: var(--orange); --c-deep: var(--orange-deep);
  --c-soft: rgba(247,147,30,.09); --c-chip: rgba(247,147,30,.20);
  border-color: rgba(247,147,30,.26);
}
#al-rehman-welfare-trust .initiative::after { background: var(--c); }
#al-rehman-welfare-trust .initiative:hover { border-color: var(--c); }

#al-rehman-welfare-trust .initiative-icon,
#al-rehman-welfare-trust .initiative:nth-child(2) .initiative-icon,
#al-rehman-welfare-trust .initiative:nth-child(3) .initiative-icon,
#al-rehman-welfare-trust .initiative:nth-child(4) .initiative-icon,
#al-rehman-welfare-trust .initiative:nth-child(5) .initiative-icon,
#al-rehman-welfare-trust .initiative:nth-child(6) .initiative-icon {
  background: var(--c-chip);
  color: var(--c-deep);
  width: 42px; height: 42px; border-radius: 13px; margin-bottom: 12px;
}
#al-rehman-welfare-trust .initiative-icon svg { width: 21px; height: 21px; }

#al-rehman-welfare-trust .initiative h3 { color: var(--c-deep); margin-bottom: 3px; }
#al-rehman-welfare-trust .initiative .hash,
#al-rehman-welfare-trust .initiative:nth-child(2) .hash,
#al-rehman-welfare-trust .initiative:nth-child(3) .hash {
  color: var(--c-deep); margin-bottom: 8px;
}
#al-rehman-welfare-trust .initiative p { color: var(--body); }

/* the CTA sits closer to the cards */
#al-rehman-welfare-trust .initiatives + p { margin-top: 22px !important; }

/* ======================================================================== */
/* ACTIVITIES & PROGRAMS page only                                           */
/* ======================================================================== */

/* --- section accent colour, cycling blue / green / orange --------------- */
.page-activities main > section:nth-of-type(2),
.page-activities main > section:nth-of-type(5) {
  --sc: var(--blue);  --sc-deep: var(--blue-deep);
  --sc-soft: rgba(26,135,199,.10); --sc-chip: rgba(26,135,199,.16);
}
.page-activities main > section:nth-of-type(3),
.page-activities main > section:nth-of-type(6) {
  --sc: var(--green); --sc-deep: var(--green-deep);
  --sc-soft: rgba(113,191,69,.13); --sc-chip: rgba(113,191,69,.22);
}
.page-activities main > section:nth-of-type(4),
.page-activities main > section:nth-of-type(7) {
  --sc: var(--orange); --sc-deep: var(--orange-deep);
  --sc-soft: rgba(247,147,30,.11); --sc-chip: rgba(247,147,30,.20);
}

/* the three tinted bands take their own soft logo colour */
.page-activities main > section:nth-of-type(3),
.page-activities main > section:nth-of-type(5),
.page-activities main > section:nth-of-type(7) { background: var(--sc-soft); }

/* headings, tags and chips follow the section's colour */
.page-activities main > section h2 { color: var(--sc-deep); }
.page-activities .care-tag,
.page-activities .care-tag.tag-blue,
.page-activities .care-tag.tag-green,
.page-activities .care-tag.tag-amber {
  background: var(--sc-chip); color: var(--sc-deep);
}
.page-activities .chip { border-color: var(--sc-chip); }
.page-activities .chip svg,
.page-activities .chip:nth-child(2) svg,
.page-activities .chip:nth-child(3) svg,
.page-activities .chip:nth-child(4) svg { color: var(--sc-deep); }
.page-activities .act-photos figcaption { color: var(--sc-deep); font-weight: 600; }

/* --- the two long lead lines use the full column ----------------------- */
.page-activities .head p { max-width: none; width: auto; }

/* --- tighter spacing throughout the page ------------------------------- */
.page-activities main > section.band { padding-block: clamp(30px, 3.4vw, 52px); }
.page-activities .page-hero { padding-block: clamp(22px, 2.5vw, 36px) clamp(22px, 2.6vw, 36px); }
.page-activities .head { margin-bottom: clamp(14px, 1.7vw, 22px); }
.page-activities .head p { margin-top: 8px; }
.page-activities .care-tag { margin-bottom: 10px; }
.page-activities .story { gap: clamp(26px, 3.2vw, 48px); align-items: center; }
.page-activities .story-text p + p { margin-top: .8em; }
.page-activities .chips { margin-top: 14px; gap: 8px; }
.page-activities .chip { padding: 8px 14px 8px 11px; font-size: 14px; }
.page-activities .act-photos { gap: 12px; }
.page-activities .act-photos--duo { gap: 16px; }
.page-activities .act-photos figcaption { font-size: 13px; padding: 9px 14px 13px; }

/* ======================================================================== */
/* CONTACT page only                                                         */
/* ======================================================================== */

/* --- embedded map, sitting under the details in the left column -------- */
.page-contact .ci-map {
  margin: 20px 0 0;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  line-height: 0;
}
.page-contact .ci-map iframe {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
}
.page-contact .ci-map-link {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 10px;
  font-size: 14.5px; font-weight: 600; text-decoration: none;
  color: var(--blue-deep);
  border-bottom: 2px solid rgba(26,135,199,.28);
  padding-bottom: 2px;
  transition: color .22s ease, border-color .22s ease;
}
.page-contact .ci-map-link:hover { color: var(--orange-deep); border-color: var(--orange); }
.page-contact .ci-map-link svg { width: 15px; height: 15px; }

/* --- brand colour: phone blue, address orange, socials green ----------- */
.page-contact .ci-row:nth-child(1) .ci-icon { background: rgba(26,135,199,.14); color: var(--blue-deep); }
.page-contact .ci-row:nth-child(2) .ci-icon { background: rgba(247,147,30,.18); color: var(--orange-deep); }
.page-contact .ci-value a { border-bottom-color: rgba(26,135,199,.35); }
.page-contact .ci-row:nth-child(2) .ci-value a { border-bottom-color: rgba(247,147,30,.45); }
.page-contact .ci-socials a { background: rgba(113,191,69,.16); color: var(--green-deep); }
.page-contact .ci-socials a:nth-child(2) { background: rgba(247,147,30,.16); color: var(--orange-deep); }
.page-contact .ci-socials a:hover { background: rgba(113,191,69,.28); }
.page-contact .ci-socials a:nth-child(2):hover { background: rgba(247,147,30,.28); }

/* --- the form card picks up a green rule; required marks stay orange --- */
.page-contact .form-card { border-top: 4px solid var(--green); }
.page-contact .field label { color: var(--ink); }
.page-contact .field input:focus,
.page-contact .field textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(113,191,69,.18);
}

/* --- tighter, better balanced spacing ---------------------------------- */
.page-contact .page-hero { padding-block: clamp(22px, 2.5vw, 34px) clamp(16px, 1.8vw, 24px); }
.page-contact main > section.band { padding-block: clamp(26px, 3vw, 44px) clamp(34px, 3.8vw, 58px); }
.page-contact .contact-grid { gap: clamp(26px, 3.4vw, 52px); }
.page-contact .ci-list { margin-top: 4px; }
.page-contact .ci-row { padding: 13px 0; gap: 16px; }
.page-contact .ci-socials { margin-top: 16px; }
.page-contact .form-card { padding: clamp(22px, 2.6vw, 34px); }
.page-contact .form-card h2 { margin-bottom: 4px; }
.page-contact .form-grid { gap: 13px; }
.page-contact .field label { margin-bottom: 5px; }
.page-contact .field input, .page-contact .field textarea { padding: 11px 14px; }
.page-contact .field textarea { min-height: 112px; }
.page-contact .field-error { min-height: 0; margin-top: 4px; }
.page-contact .form-actions { margin-top: 16px; }

/* Contact information: no dividers — spacing alone separates the items */
.page-contact .ci-list { gap: 22px; margin-top: 18px; }
.page-contact .ci-row { padding: 0; border-top: 0; }
.page-contact .ci-row:last-child { border-bottom: 0; }
.page-contact .ci-socials { margin-top: 22px; }

/* Contact information: links carry no underline — colour alone marks them */
.page-contact .ci-value a,
.page-contact .ci-row:nth-child(2) .ci-value a {
  border-bottom: 0;
  text-decoration: none;
}
