/* ==========================================================================
   CCD — Catalyst for Change and Development
   Global stylesheet.  Vanilla CSS, no build step.
   Structure:
     1.  Design tokens (CSS variables)
     2.  Reset & base
     3.  Typography helpers
     4.  Layout: container / section rhythm
     5.  Buttons
     6.  Header & navigation
     7.  Hero
     8.  Who We Are (split)
     9.  Stat counter band
    10.  Thematic areas grid
    11.  Founder / CEO feature
    12.  Journey timeline
    13.  National impact map
    14.  Team
    15.  Vision / Mission / Values
    16.  CTA band
    17.  Footer
    18.  Inner-page banner & content blocks
    19.  Contact page
    20.  Scroll-reveal animation utilities
    21.  Responsive breakpoints
   ========================================================================== */

/* ------------------------------------------------------------------ *
 * 1. DESIGN TOKENS
 * ------------------------------------------------------------------ */
:root {
  /* Brand — drawn from the CCD logo + org profile deck */
  --navy:        #1B3A6B;
  --navy-deep:   #12294d;
  --blue:        #5B9BD5;
  --blue-soft:   #eaf2fb;
  --blue-tint:   #f4f8fd;
  --orange:      #E2711D;
  --orange-dark: #c65f12;
  --green:       #2E5E3A;

  /* Neutrals — clean white + blue */
  --bg:          #ffffff;   /* clean white base */
  --panel:       #ffffff;
  --dark:        #14181c;   /* near-black CTA band */
  --white:       #ffffff;
  --ink:         #1A1A1A;
  --muted:       #6B7280;
  --line:        #e7ecf2;

  /* Effects */
  --radius:      16px;
  --radius-sm:   12px;
  --radius-lg:   24px;
  --shadow-sm:   0 4px 14px rgba(27, 58, 107, .06);
  --shadow:      0 14px 40px rgba(27, 58, 107, .10);
  --shadow-lg:   0 28px 70px rgba(27, 58, 107, .16);
  --ease:        cubic-bezier(.22, .61, .36, 1);

  /* Type — bold grotesque headlines + clean sans body, matching the reference */
  --serif: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; /* legacy alias → now the display font */
  --head:  "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Rhythm */
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(64px, 9vw, 120px);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

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

/* ------------------------------------------------------------------ *
 * 3. TYPOGRAPHY
 * ------------------------------------------------------------------ */
h1, h2, h3, h4 { font-family: var(--head); font-weight: 800; line-height: 1.08; color: var(--navy); letter-spacing: -.02em; }

h1 { font-size: clamp(2.5rem, 5.6vw, 4.2rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); font-weight: 700; }

p { color: #33383f; }
.lead { font-size: 1.18rem; color: #444b54; }

/* Emphasis word — bold sans in the brand orange (theme uses solid, not italic) */
.accent-serif { font-family: var(--head); font-style: normal; font-weight: 800; color: var(--orange); }
.text-blue { color: var(--blue); }
.text-orange { color: var(--orange); }

/* Eyebrow / kicker above headings */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 18px;
}
.kicker::before {
  content: "";
  width: 28px; height: 2px;
  background: var(--orange);
  display: inline-block;
}
.kicker.center { justify-content: center; }

.section-head { max-width: 760px; margin-bottom: clamp(38px, 5vw, 60px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 18px; color: var(--muted); font-size: 1.08rem; }

/* ------------------------------------------------------------------ *
 * 4. LAYOUT
 * ------------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
section { padding-block: var(--section-y); }
.bg-tint  { background: var(--blue-tint); }
.bg-soft  { background: var(--blue-soft); }
.bg-navy  { background: var(--navy); color: #fff; }
.bg-navy h1, .bg-navy h2, .bg-navy h3 { color: #fff; }

/* ------------------------------------------------------------------ *
 * 5. BUTTONS
 * ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: .84rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 16px 30px;
  border-radius: 3px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
  white-space: nowrap;
  line-height: 1;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 10px 24px rgba(226,113,29,.26); }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-3px); box-shadow: 0 16px 32px rgba(226,113,29,.34); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); transform: translateY(-3px); box-shadow: var(--shadow); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: #4785bf; transform: translateY(-3px); box-shadow: var(--shadow); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: #244b2e; transform: translateY(-3px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.55); }
.btn-ghost:hover { background: #fff; color: var(--navy); transform: translateY(-3px); }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.btn-lg { padding: 18px 36px; font-size: .9rem; }

/* ------------------------------------------------------------------ *
 * 6. HEADER & NAVIGATION
 * ------------------------------------------------------------------ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), padding .35s var(--ease);
  padding: 16px 0;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { height: 54px; width: auto; transition: height .35s var(--ease); }
.brand-name { display: none; }

/* transparent hero state: put logo on a subtle chip so it reads on photos */
.site-header .brand img {
  background: rgba(255,255,255,.92);
  border-radius: 12px;
  padding: 6px 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}
.site-header.scrolled {
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(140%) blur(10px);
  box-shadow: 0 2px 16px rgba(20,40,80,.08);
  padding: 10px 0;
}
.site-header.scrolled .brand img { height: 46px; background: transparent; box-shadow: none; padding: 0; }

/* nav */
.main-nav ul { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  display: block;
  font-weight: 600;
  font-size: .96rem;
  padding: 10px 16px;
  border-radius: 8px;
  color: #fff;
  transition: color .25s, background .25s;
}
.main-nav a:hover, .main-nav a.active { color: #fff; background: rgba(255,255,255,.16); }
.site-header.scrolled .main-nav a { color: var(--navy); }
.site-header.scrolled .main-nav a:hover,
.site-header.scrolled .main-nav a.active { color: var(--orange); background: var(--blue-soft); }

.header-cta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
/* the in-menu CTA is only for the mobile slide-out; hidden on desktop */
.main-nav .mobile-cta { display: none; }

/* hamburger */
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 10px; position: relative; background: rgba(255,255,255,.16); }
.site-header.scrolled .nav-toggle { background: var(--blue-soft); }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 2px;
  background: #fff; transform: translate(-50%,-50%); transition: .3s var(--ease);
}
.site-header.scrolled .nav-toggle span,
.site-header.scrolled .nav-toggle span::before,
.site-header.scrolled .nav-toggle span::after { background: var(--navy); }
.nav-toggle span::before { transform: translate(-50%, -8px); }
.nav-toggle span::after  { transform: translate(-50%,  8px); }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translate(-50%,0) rotate(45deg); background: var(--navy); }
body.nav-open .nav-toggle span::after  { transform: translate(-50%,0) rotate(-45deg); background: var(--navy); }

/* ------------------------------------------------------------------ *
 * 7. HERO
 * ------------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: #fff;
  padding-top: 120px;
  padding-bottom: 80px;
  overflow: hidden;
  /* image comes from an inline background-image (resolves relative to the page) */
  background-position: center 38%;
  background-size: cover;
  background-repeat: no-repeat;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(103deg, rgba(11,23,44,.94) 0%, rgba(11,23,44,.82) 50%, rgba(11,23,44,.66) 100%),
    linear-gradient(180deg, rgba(11,23,44,.52) 0%, rgba(11,23,44,.40) 45%, rgba(11,23,44,.72) 100%);
  z-index: -2;
}
.hero::after { /* subtle brand wash, kept light so the photo reads */
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(1100px 560px at 85% 15%, rgba(91,155,213,.18), transparent 62%);
  z-index: -1;
}
.hero-inner { max-width: 720px; }
.hero .kicker { color: #ffd9b3; }
.hero .kicker::before { background: var(--orange); }
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero h1 .accent-serif { color: #ffc89b; }
.hero p { color: rgba(255,255,255,.9); font-size: 1.2rem; max-width: 600px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  margin-top: 54px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,.2);
}
.hero-stats .num { font-family: var(--serif); font-size: 2.1rem; font-weight: 700; color: #fff; line-height: 1; }
.hero-stats .lbl { font-size: .82rem; letter-spacing: .04em; color: rgba(255,255,255,.8); margin-top: 6px; }

/* scroll cue */
.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  color: rgba(255,255,255,.7); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroll-cue::after { content: ""; width: 1px; height: 34px; background: rgba(255,255,255,.5); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0%,100%{ transform: scaleY(.4); opacity:.4; transform-origin: top;} 50%{ transform: scaleY(1); opacity:1;} }

/* --- Charity-is-Hope style hero: huge bold headline on cream, full-bleed image, dark CTA band --- */
.hero-clean {
  background: transparent;
  padding-top: clamp(140px, 16vh, 200px);
  padding-bottom: clamp(40px, 6vw, 78px);
}
.hero-clean .kicker { color: var(--orange); }
.hero-top {
  display: grid;
  grid-template-columns: 1.5fr .5fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
}
.hero-clean h1 {
  font-size: clamp(2.9rem, 7.4vw, 6rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -.03em;
  color: #16233b;
  margin: 0;
}
.hero-clean h1 .accent-serif { color: var(--orange); }
.hero-sub {
  color: #575e68;
  font-size: 1.06rem;
  line-height: 1.65;
  padding-bottom: 10px;
}
.hero-clean .hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: clamp(30px, 4vw, 44px); }

/* full-bleed banner image, edge to edge, no border */
.hero-banner { padding: 0; }
.banner-full { width: 100%; overflow: hidden; }
.banner-full img {
  width: 100%;
  height: clamp(380px, 70vh, 820px);
  object-fit: cover;
  /* anchor to the bottom so Nabeel + the children are never cropped
     (only the sky / top of the truck is trimmed on wide screens) */
  object-position: center bottom;
  display: block;
}

/* dark CTA band directly under the image */
.cta-dark { background: var(--dark); color: #fff; padding-block: clamp(44px, 6vw, 78px); }
.cta-dark .inner { display: flex; align-items: center; justify-content: space-between; gap: clamp(28px, 5vw, 64px); flex-wrap: wrap; }
.cta-dark h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.7rem); max-width: 640px; line-height: 1.12; }
.cta-dark h2 .accent-serif { color: #ffb877; }
.cta-dark .actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* right-hand vertical icon rail (like the reference's orange squares) */
.side-rail {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%);
  z-index: 90; display: flex; flex-direction: column; gap: 2px;
}
.side-rail a {
  width: 54px; height: 54px; background: var(--orange); color: #fff;
  display: grid; place-items: center; transition: background .3s var(--ease);
}
.side-rail a:hover { background: var(--orange-dark); }
.side-rail a svg { width: 20px; height: 20px; }
.side-rail a:first-child { border-top-left-radius: 6px; }
.side-rail a:last-child { border-bottom-left-radius: 6px; }

@media (max-width: 1160px) { .side-rail { display: none; } }
@media (max-width: 860px) {
  .hero-top { grid-template-columns: 1fr; align-items: start; }
  .hero-sub { padding-top: 6px; }
  .banner-full img { height: clamp(280px, 54vh, 460px); }
  .cta-dark .inner { flex-direction: column; align-items: flex-start; }
}

/* ------------------------------------------------------------------ *
 * 8. WHO WE ARE — split
 * ------------------------------------------------------------------ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 84px); align-items: center; }
.split.reverse .split-media { order: 2; }

.split-media { position: relative; }
.split-media .frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.split-media .frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3.4; }
/* decorative accent behind image */
.split-media::before {
  content: ""; position: absolute; inset: auto -18px -18px auto;
  width: 62%; height: 62%; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--blue), var(--navy)); z-index: -1; opacity: .16;
}
/* floating badge card */
.float-badge {
  position: absolute; left: -24px; bottom: 28px;
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px 22px;
  display: flex; align-items: center; gap: 14px; max-width: 260px;
}
.float-badge .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--blue-soft); color: var(--navy); display: grid; place-items: center; flex-shrink: 0; }
.float-badge .ico svg { width: 24px; height: 24px; }
.float-badge b { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--navy); line-height: 1; }
.float-badge span { font-size: .8rem; color: var(--muted); }

.split-body p + p { margin-top: 16px; }
.who-points { margin-top: 26px; display: grid; gap: 14px; }
.who-points li { display: flex; gap: 13px; align-items: flex-start; font-weight: 500; color: #2c333c; }
.who-points .tick { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; margin-top: 2px; }
.who-points .tick svg { width: 14px; height: 14px; }

/* ------------------------------------------------------------------ *
 * 9. STAT COUNTER BAND
 * ------------------------------------------------------------------ */
.stats-band { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.stats-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(800px 400px at 15% 20%, rgba(91,155,213,.35), transparent 55%),
              radial-gradient(700px 400px at 90% 90%, rgba(226,113,29,.22), transparent 55%);
}
.stats-band .container { position: relative; }
.stats-band h2, .stats-band h3 { color: #fff; }
.stats-band .section-head p { color: rgba(255,255,255,.8); }
.stats-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; text-align: center; }
.stat { padding: 14px 8px; }
.stat .num { font-family: var(--serif); font-size: clamp(2.2rem, 3.6vw, 3.3rem); font-weight: 700; color: #fff; line-height: 1; display: flex; justify-content: center; align-items: baseline; gap: 2px; }
.stat .num .suffix { color: var(--orange); }
.stat .lbl { margin-top: 10px; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.78); font-weight: 600; }
.stat .sub { margin-top: 6px; font-size: .78rem; color: rgba(255,255,255,.55); }

/* ------------------------------------------------------------------ *
 * 10. THEMATIC AREAS GRID
 * ------------------------------------------------------------------ */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.cause-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  position: relative;
  overflow: hidden;
}
.cause-card::after {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.cause-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.cause-card:hover::after { transform: scaleX(1); }
.cause-ico {
  width: 66px; height: 66px; border-radius: 18px;
  display: grid; place-items: center; margin-bottom: 22px;
  background: var(--blue-soft); color: var(--navy);
  transition: background .35s, color .35s, transform .35s var(--ease);
}
.cause-ico svg { width: 32px; height: 32px; }
.cause-card:hover .cause-ico { background: var(--navy); color: #fff; transform: rotate(-6deg) scale(1.05); }
.cause-num { position: absolute; top: 26px; right: 30px; font-family: var(--serif); font-size: 2.4rem; color: var(--blue-soft); font-weight: 700; }
.cause-card h3 { margin-bottom: 12px; }
.cause-card p { color: var(--muted); font-size: .98rem; }
.cause-more { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; font-weight: 600; font-size: .92rem; color: var(--orange); }
.cause-more svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.cause-card:hover .cause-more svg { transform: translateX(5px); }

/* ------------------------------------------------------------------ *
 * 11. FOUNDER / CEO FEATURE
 * ------------------------------------------------------------------ */
.founder { position: relative; overflow: hidden; background: var(--navy-deep); color: #fff; }
.founder::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 500px at 90% 0%, rgba(91,155,213,.3), transparent 55%);
}
.founder .container { position: relative; }
.founder-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.founder-media { position: relative; }
.founder-media .frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.founder-media .frame img { width: 100%; aspect-ratio: 4/4.4; object-fit: cover; object-position: center 20%; }
.founder-quote {
  position: absolute; right: -20px; bottom: -26px; max-width: 320px;
  background: var(--orange); color: #fff; padding: 26px 28px; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); font-family: var(--serif); font-style: italic; font-size: 1.18rem; line-height: 1.4;
}
.founder-quote::before { content: "\201C"; font-size: 4rem; line-height: 0; position: absolute; top: 30px; left: 14px; opacity: .25; }
.founder h2 { color: #fff; }
.founder .kicker { color: #ffc89b; }
.founder .kicker::before { background: var(--orange); }
.founder-body p { color: rgba(255,255,255,.86); }
.founder-body p + p { margin-top: 16px; }
.founder-sign { margin-top: 30px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.founder-sign .name { font-family: var(--serif); font-size: 1.5rem; color: #fff; }
.founder-sign .role { font-size: .9rem; color: rgba(255,255,255,.7); }
.founder-sign .divider { width: 1px; height: 40px; background: rgba(255,255,255,.25); }

/* ------------------------------------------------------------------ *
 * 12. JOURNEY TIMELINE
 * ------------------------------------------------------------------ */
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top: 20px; }
.timeline::before {
  content: ""; position: absolute; left: 0; right: 0; top: 34px; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--orange)); border-radius: 3px; z-index: 0;
}
.tl-item { position: relative; z-index: 1; }
.tl-dot { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 4px solid var(--navy); margin: 26px auto 0; box-shadow: 0 0 0 6px var(--bg); transition: border-color .3s, transform .3s var(--ease); }
.tl-item:hover .tl-dot { border-color: var(--orange); transform: scale(1.15); }
.tl-card {
  margin-top: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s;
}
.tl-item:hover .tl-card { transform: translateY(-6px); box-shadow: var(--shadow); }
.tl-year { font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--orange); line-height: 1; }
.tl-card h3 { font-size: 1.15rem; margin: 8px 0 10px; }
.tl-card p { font-size: .93rem; color: var(--muted); }

/* ------------------------------------------------------------------ *
 * 13. NATIONAL IMPACT MAP
 * ------------------------------------------------------------------ */
.impact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(36px, 5vw, 64px); align-items: center; }
.map-wrap { position: relative; background: linear-gradient(160deg, var(--blue-soft), #fff); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
.map-wrap svg { width: 100%; height: auto; overflow: visible; }
.map-land { fill: #d6e4f4; stroke: var(--blue); stroke-width: 2; transition: fill .4s; }
.map-wrap:hover .map-land { fill: #cfe0f2; }
.map-pin { cursor: default; }
.map-pin circle.dot { fill: var(--orange); }
.map-pin circle.pulse { fill: var(--orange); opacity: .35; transform-origin: center; animation: pinpulse 2.4s ease-out infinite; }
.map-pin:nth-of-type(2) circle.pulse { animation-delay: .4s; }
.map-pin:nth-of-type(3) circle.pulse { animation-delay: .8s; }
.map-pin:nth-of-type(4) circle.pulse { animation-delay: 1.2s; }
.map-pin:nth-of-type(5) circle.pulse { animation-delay: 1.6s; }
.map-pin text { font-family: var(--sans); font-size: 13px; font-weight: 600; fill: var(--navy); }
@keyframes pinpulse { 0%{ r: 6; opacity:.5;} 100%{ r: 20; opacity: 0;} }

/* accurate Pakistan map */
.pk-map { width: 100%; height: auto; overflow: visible; display: block; }
.pk-land { fill: #d3e3f5; transition: fill .4s; filter: drop-shadow(0 14px 26px rgba(27,58,107,.16)); }
.map-wrap:hover .pk-land { fill: #c6d9ef; }
.pk-pins text {
  font-family: var(--head); font-size: 26px; font-weight: 700; fill: var(--navy);
  paint-order: stroke; stroke: #fff; stroke-width: 5px; stroke-linejoin: round;
}
.pk-pins .map-pin circle.dot { fill: var(--orange); stroke: #fff; stroke-width: 3px; }
.pk-pins .map-pin circle.pulse { fill: var(--orange); opacity: .35; transform-origin: center; animation: pkpulse 2.4s ease-out infinite; }
@keyframes pkpulse { 0% { r: 11; opacity: .5; } 100% { r: 34; opacity: 0; } }

.city-list { columns: 2; column-gap: 22px; margin-top: 26px; }
.city-list li { break-inside: avoid; display: flex; align-items: center; gap: 10px; padding: 9px 0; font-weight: 500; color: #2c333c; }
.city-list .marker { width: 12px; height: 12px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(226,113,29,.16); flex-shrink: 0; }

/* ------------------------------------------------------------------ *
 * 14. TEAM
 * ------------------------------------------------------------------ */
.team-lead { display: grid; grid-template-columns: 320px 1fr; gap: clamp(30px, 4vw, 56px); align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 40px); box-shadow: var(--shadow-sm); margin-bottom: 40px; }
.team-lead .photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.team-lead .photo img { width: 100%; aspect-ratio: 1/1; object-fit: cover; object-position: center 25%; }
.team-lead h3 { font-size: 1.7rem; }
.team-lead .role { color: var(--orange); font-weight: 600; margin: 4px 0 16px; }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.member { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; }
.member:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.member .photo { aspect-ratio: 1/1; overflow: hidden; background: linear-gradient(160deg, var(--navy), var(--blue)); }
.member .photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.member-avatar { width: 100%; height: 100%; display: grid; place-items: center; color: #fff; font-family: var(--serif); font-size: 3.2rem; }
.member .body { padding: 22px 24px; }
.member h3 { font-size: 1.2rem; }
.member .role { color: var(--orange); font-weight: 600; font-size: .92rem; margin-top: 3px; }
.member .bio { color: var(--muted); font-size: .92rem; margin-top: 12px; }

.field-note { margin-top: 34px; display: flex; gap: 18px; align-items: center; background: var(--blue-soft); border-radius: var(--radius); padding: 24px 28px; }
.field-note .ico { width: 54px; height: 54px; border-radius: 14px; background: var(--navy); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.field-note h3 { font-size: 1.15rem; margin-bottom: 4px; }
.field-note p { color: var(--muted); font-size: .95rem; }

/* ------------------------------------------------------------------ *
 * 15. VISION / MISSION / VALUES
 * ------------------------------------------------------------------ */
.vmv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.vmv-card { background: #fff; border-radius: var(--radius); padding: 40px 38px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); position: relative; }
.vmv-card .ico { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 20px; }
.vmv-card.vision .ico { background: var(--blue-soft); color: var(--navy); }
.vmv-card.mission .ico { background: rgba(226,113,29,.12); color: var(--orange); }
.vmv-card .ico svg { width: 30px; height: 30px; }
.vmv-card h3 { font-size: 1.5rem; margin-bottom: 12px; }
.vmv-card p { color: #444b54; }

.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 26px; }
.value {
  background: var(--navy); color: #fff; border-radius: var(--radius); padding: 30px 26px; position: relative; overflow: hidden;
  transition: transform .35s var(--ease);
}
.value:nth-child(2) { background: var(--blue); }
.value:nth-child(3) { background: var(--green); }
.value:nth-child(4) { background: var(--orange); }
.value:hover { transform: translateY(-6px); }
.value .n { font-family: var(--serif); font-size: 1rem; opacity: .55; }
.value h3 { color: #fff; font-size: 1.28rem; margin: 8px 0 12px; }
.value p { color: rgba(255,255,255,.86); font-size: .92rem; }

/* ------------------------------------------------------------------ *
 * 16. CTA BAND
 * ------------------------------------------------------------------ */
.cta-band { position: relative; color: #fff; overflow: hidden; text-align: center; }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-deep) 55%, #0d1f3a 100%);
}
.cta-band::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 400px at 20% 20%, rgba(226,113,29,.28), transparent 55%),
              radial-gradient(700px 400px at 85% 90%, rgba(91,155,213,.35), transparent 55%);
}
.cta-band .container { position: relative; max-width: 780px; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.88); font-size: 1.15rem; margin: 18px auto 32px; max-width: 560px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ------------------------------------------------------------------ *
 * 17. FOOTER
 * ------------------------------------------------------------------ */
.site-footer { background: #0f1f38; color: rgba(255,255,255,.72); padding-top: clamp(56px, 7vw, 88px); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 48px; }
.footer-brand img { height: 56px; background: #fff; border-radius: 12px; padding: 8px 12px; margin-bottom: 20px; }
.footer-brand p { color: rgba(255,255,255,.62); font-size: .95rem; max-width: 320px; }
.footer-social { display: flex; gap: 12px; margin-top: 22px; }
.footer-social a { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #fff; transition: background .3s, transform .3s var(--ease); }
.footer-social a:hover { background: var(--orange); transform: translateY(-4px); }
.footer-social svg { width: 18px; height: 18px; }

.footer-col h4 { color: #fff; font-family: var(--sans); font-size: 1.02rem; font-weight: 700; margin-bottom: 20px; letter-spacing: .01em; }
.footer-col ul { display: grid; gap: 12px; }
.footer-col a, .footer-col li { color: rgba(255,255,255,.68); font-size: .95rem; transition: color .25s; }
.footer-col a:hover { color: var(--orange); }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; color: var(--blue); flex-shrink: 0; margin-top: 3px; }

.newsletter p { font-size: .92rem; margin-bottom: 16px; }
.news-form { position: relative; }
.news-form input {
  width: 100%; padding: 15px 56px 15px 18px; border-radius: 50px; border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06); color: #fff; font-family: inherit; font-size: .95rem;
}
.news-form input::placeholder { color: rgba(255,255,255,.5); }
.news-form input:focus { outline: none; border-color: var(--orange); background: rgba(255,255,255,.1); }
.news-form button {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center;
  transition: background .3s, transform .3s;
}
.news-form button:hover { background: var(--orange-dark); transform: translateY(-50%) scale(1.06); }
.news-msg { font-size: .85rem; margin-top: 10px; min-height: 18px; }
.news-msg.ok { color: #6ee7a8; }
.news-msg.err { color: #ff9c9c; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 24px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .88rem; color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: var(--orange); }

/* ------------------------------------------------------------------ *
 * 18. INNER-PAGE BANNER & CONTENT
 * ------------------------------------------------------------------ */
.page-banner {
  position: relative; color: #fff; padding: 190px 0 90px; overflow: hidden;
  isolation: isolate; /* own stacking context so the ::before overlay sits above the bg image */
  /* image comes from an inline background-image (resolves relative to the page) */
  background-position: center 32%;
  background-size: cover;
  background-repeat: no-repeat;
}
.page-banner::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(13,25,46,.94) 0%, rgba(13,25,46,.86) 55%, rgba(13,25,46,.74) 100%),
    linear-gradient(180deg, rgba(13,25,46,.55) 0%, rgba(13,25,46,.30) 45%, rgba(13,25,46,.55) 100%);
  z-index: -1;
}
.page-banner h1 { color: #fff; margin-bottom: 14px; }
.page-banner p { color: rgba(255,255,255,.85); max-width: 620px; font-size: 1.12rem; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: .9rem; color: rgba(255,255,255,.72); margin-bottom: 20px; }
.crumbs a:hover { color: var(--orange); }
.crumbs span { opacity: .5; }

.prose { max-width: 760px; }
.prose h2 { margin: 40px 0 16px; }
.prose h3 { margin: 30px 0 12px; }
.prose p { margin-bottom: 16px; color: #3a4048; }
.prose ul.bullets { display: grid; gap: 12px; margin: 18px 0; }
.prose ul.bullets li { display: flex; gap: 12px; }
.prose ul.bullets .tick { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; margin-top: 3px; }
.prose ul.bullets .tick svg { width: 13px; height: 13px; }

/* work detail rows */
.work-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,5vw,64px); align-items: center; padding: clamp(40px,6vw,72px) 0; border-bottom: 1px solid var(--line); }
.work-row:last-child { border-bottom: none; }
.work-row.reverse .work-media { order: 2; }
.work-media .frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.work-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.work-body .cause-ico { margin-bottom: 20px; }
.work-body .tl-year { font-size: 1rem; color: var(--blue); letter-spacing: .1em; }

/* ------------------------------------------------------------------ *
 * 19. CONTACT PAGE
 * ------------------------------------------------------------------ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(36px, 5vw, 64px); align-items: start; }
.contact-info .info-card { display: flex; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-info .info-card:last-child { border-bottom: none; }
.contact-info .ico { width: 52px; height: 52px; border-radius: 14px; background: var(--blue-soft); color: var(--navy); display: grid; place-items: center; flex-shrink: 0; }
.contact-info h4 { font-family: var(--sans); font-size: 1rem; color: var(--navy); margin-bottom: 3px; }
.contact-info p, .contact-info a { color: var(--muted); font-size: .96rem; }
.contact-info a:hover { color: var(--orange); }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; color: var(--navy); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px;
  font-family: inherit; font-size: 1rem; color: var(--ink); background: #fbfcfe; transition: border-color .25s, box-shadow .25s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(91,155,213,.16); background: #fff; }
.form-note { font-size: .84rem; color: var(--muted); margin-top: 6px; }
.form-status { margin-top: 18px; padding: 16px 18px; border-radius: 12px; font-size: .95rem; display: none; }
.form-status.ok { display: block; background: rgba(46,94,58,.1); color: var(--green); border: 1px solid rgba(46,94,58,.25); }
.form-status.err { display: block; background: rgba(226,113,29,.1); color: var(--orange-dark); border: 1px solid rgba(226,113,29,.25); }
.form-success { display: none; text-align: center; padding: 30px 10px; }
.form-success.show { display: block; }
.form-success .ico { width: 72px; height: 72px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; margin: 0 auto 20px; }
.form-success h3 { margin-bottom: 8px; }
.form-success p { color: var(--muted); }

.map-embed { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); margin-top: 40px; border: 1px solid var(--line); }
.map-embed iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ------------------------------------------------------------------ *
 * 20. SCROLL-REVEAL
 * ------------------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s var(--ease), transform .7s var(--ease); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
.reveal.d5 { transition-delay: .40s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .scroll-cue::after, .map-pin circle.pulse { animation: none; }
}

/* ------------------------------------------------------------------ *
 * 21. RESPONSIVE
 * ------------------------------------------------------------------ */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 30px 16px; }
  .cards-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .founder-grid { grid-template-columns: 1fr; }
  .founder-media { max-width: 460px; margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
}

@media (max-width: 860px) {
  /* mobile nav */
  .nav-toggle { display: block; z-index: 120; }
  .header-cta .btn { display: none; }
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px);
    background: #fff; box-shadow: -20px 0 60px rgba(0,0,0,.18);
    transform: translateX(100%); transition: transform .4s var(--ease);
    padding: 100px 26px 40px; z-index: 110; overflow-y: auto;
  }
  body.nav-open .main-nav { transform: translateX(0); }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav a, .site-header .main-nav a { color: var(--navy); font-size: 1.08rem; padding: 14px 16px; border-radius: 10px; }
  .main-nav a.active, .main-nav a:hover { background: var(--blue-soft); color: var(--orange); }
  .main-nav .mobile-cta { display: block; margin-top: 18px; }
  .main-nav .mobile-cta .btn { width: 100%; justify-content: center; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(15,31,56,.5); opacity: 0; visibility: hidden; transition: .3s; z-index: 105; }
  body.nav-open .nav-backdrop { opacity: 1; visibility: visible; }

  .split, .impact-grid, .contact-grid, .work-row, .work-row.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-media, .work-row.reverse .work-media { order: 0; }
  .float-badge { left: auto; right: 16px; bottom: 16px; }
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline::before { left: 9px; right: auto; top: 0; bottom: 0; width: 3px; height: auto; }
  .tl-dot { margin: 0; position: absolute; left: 0; top: 4px; }
  .tl-item { padding-left: 40px; padding-bottom: 30px; }
  .tl-card { margin-top: 0; }
  .team-lead { grid-template-columns: 1fr; text-align: center; }
  .team-lead .photo { max-width: 280px; margin-inline: auto; }
  .founder-quote { position: static; max-width: none; margin-top: 22px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid, .team-grid, .values-grid, .vmv-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .city-list { columns: 1; }
  .hero { min-height: 88vh; }
  .hero-stats { gap: 24px; }
  .btn { padding: 14px 24px; }
}
