/* ==========================================================================
   Nehemiah Trust Pakistan — design system & frontend styles (Phase 3)
   Aesthetic: refined nonprofit. Deep navy authority, warm orange accents,
   layered depth, generous whitespace, orchestrated motion.
   Vanilla CSS only. Responsive overrides live in responsive.css.
   ========================================================================== */

/* ---- Tokens -------------------------------------------------------------- */
:root {
  --navy:        #052b46;
  --navy-dark:   #031d31;
  --navy-soft:   #0a3a5c;
  --orange:      #ff7a1a;
  --orange-dark: #e76608;
  --orange-soft: #fff1e4;
  --white:       #ffffff;
  --light:       #f6f8fb;
  --light-2:     #eef2f7;
  --text:        #18324a;
  --muted:       #66788a;
  --border:      #dce4ec;

  --grad-navy:   linear-gradient(135deg, #073352 0%, #031d31 100%);
  --grad-orange: linear-gradient(135deg, #ff8d39 0%, #e76608 100%);

  --font-display: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  --shadow-sm: 0 2px 8px -2px rgba(5, 43, 70, 0.12);
  --shadow:    0 18px 40px -22px rgba(5, 43, 70, 0.32);
  --shadow-lg: 0 40px 80px -30px rgba(5, 43, 70, 0.45);
  --shadow-orange: 0 16px 30px -12px rgba(231, 102, 8, 0.5);

  --container: 1200px;
  --gutter: 24px;
  --header-h: 76px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html { scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: var(--orange-dark); text-decoration: none; transition: color .2s var(--ease); }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: 1.12;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: -0.01em;
}

::selection { background: var(--orange); color: #fff; }

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

/* ---- Layout helpers ------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding: clamp(56px, 8vw, 104px) 0; position: relative; }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.section--light { background: var(--light); }
.section--navy { background: var(--grad-navy); color: #fff; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }

.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--orange-dark);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--orange); border-radius: 2px; }
.section-head--center .eyebrow::before { display: none; }
.section-title { font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin: 14px 0 16px; }
.section-lead { color: var(--muted); font-size: 1.1rem; }
.hl { color: var(--orange); }
.section--navy .section-lead { color: rgba(255, 255, 255, 0.78); }
.section--navy .eyebrow { color: var(--orange); }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  --btn-bg: var(--orange);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1;
  border: 2px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--grad-orange); color: #fff; box-shadow: var(--shadow-orange); }
.btn--primary:hover { color: #fff; box-shadow: 0 22px 38px -12px rgba(231, 102, 8, 0.6); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--border); }
.btn--outline:hover { border-color: var(--navy); color: var(--navy); }
.btn--ghost { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { color: var(--orange-dark); }
.btn--lg { padding: 16px 32px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-display); font-weight: 600; color: var(--navy);
}
.btn-link svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn-link:hover { color: var(--orange-dark); }
.btn-link:hover svg { transform: translateX(4px); }

/* ---- Top utility bar ----------------------------------------------------- */
.topbar {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.85rem;
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 42px; gap: 16px; }
.topbar__contact { display: flex; gap: 22px; }
.topbar__contact a { color: rgba(255, 255, 255, 0.75); display: inline-flex; align-items: center; gap: 7px; }
.topbar__contact a:hover { color: #fff; }
.topbar__contact svg { width: 15px; height: 15px; color: var(--orange); }
.topbar__social { display: flex; gap: 6px; }
.topbar__social a {
  width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 50%; color: rgba(255, 255, 255, 0.75);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.topbar__social a svg { width: 15px; height: 15px; }
.topbar__social a:hover { background: var(--orange); color: #fff; }

/* ---- Header / navigation ------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.header.is-scrolled { box-shadow: var(--shadow-sm); border-color: var(--border); background: rgba(255, 255, 255, 0.97); }
.header__inner { display: flex; align-items: center; gap: 18px; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 12px; }
.brand:hover { text-decoration: none; }
.brand__logo { height: 46px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-display); font-weight: 700; color: var(--navy); font-size: 1.06rem; }
.brand__tag { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange-dark); font-weight: 600; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 10px 14px; border-radius: var(--r-pill);
  font-family: var(--font-display); font-weight: 500; font-size: 0.96rem;
  color: var(--text); transition: color .2s var(--ease), background .2s var(--ease);
}
.nav__link svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.nav__link:hover, .nav__item.is-open > .nav__link { color: var(--orange-dark); background: var(--orange-soft); }
.nav__item.is-active > .nav__link { color: var(--orange-dark); }
.nav__item { position: relative; }
.nav__item.is-open > .nav__link svg { transform: rotate(180deg); }

.nav__dropdown {
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 256px; background: #fff;
  border: 1px solid var(--border); border-radius: var(--r);
  box-shadow: var(--shadow); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.nav__item:hover > .nav__dropdown,
.nav__item.is-open > .nav__dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__dropdown a {
  display: block; padding: 10px 14px; border-radius: var(--r-sm);
  color: var(--text); font-size: 0.93rem; font-weight: 500;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.nav__dropdown a:hover { background: var(--light); color: var(--orange-dark); padding-left: 18px; }

.header__cta { margin-left: 8px; }
.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: var(--r-sm);
  color: var(--navy); place-items: center; margin-left: auto;
}
.nav-toggle svg { width: 26px; height: 26px; }
.nav-toggle .nav-toggle__close { display: none; }

/* ---- Mobile drawer ------------------------------------------------------- */
.mobile-nav {
  position: fixed; inset: 0 0 0 auto; width: min(360px, 86vw);
  background: var(--grad-navy); color: #fff; z-index: 200;
  transform: translateX(100%); transition: transform .35s var(--ease);
  padding: 24px 22px; overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.mobile-nav__head .brand__name { color: #fff; }
.mobile-nav__close { color: #fff; width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-sm); }
.mobile-nav__close:hover { background: rgba(255, 255, 255, 0.1); }
.m-item { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.m-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 4px; color: #fff; font-family: var(--font-display); font-weight: 500; width: 100%; text-align: left;
}
.m-link:hover { color: var(--orange); }
.m-link svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.m-item.is-open .m-toggle svg { transform: rotate(180deg); }
.m-sub { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.m-item.is-open .m-sub { max-height: 420px; }
.m-sub a { display: block; padding: 10px 4px 10px 16px; color: rgba(255, 255, 255, 0.78); font-size: 0.93rem; }
.m-sub a:hover { color: var(--orange); }
.mobile-nav__cta { margin-top: 22px; }
.overlay {
  position: fixed; inset: 0; background: rgba(3, 15, 26, 0.55); backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s; z-index: 150;
}
.overlay.is-open { opacity: 1; visibility: visible; }
body.no-scroll { overflow: hidden; }

/* ---- Hero ---------------------------------------------------------------- */
.hero {
  position: relative; color: #fff;
  background: var(--grad-navy);
  padding: clamp(64px, 9vw, 120px) 0 clamp(120px, 14vw, 180px);
  overflow: hidden;
}
.hero__glow {
  position: absolute; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 26, 0.35), transparent 65%);
  top: -160px; right: -120px; filter: blur(10px); pointer-events: none;
}
.hero__dots {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1.5px, transparent 1.5px);
  background-size: 30px 30px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 70%);
          mask-image: linear-gradient(to bottom, #000 0%, transparent 70%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero__content { max-width: 600px; }
.hero .eyebrow { color: var(--orange); }
.hero__title { color: #fff; font-size: clamp(2.3rem, 5.4vw, 4rem); margin: 18px 0 20px; }
.hero__subtitle { color: rgba(255, 255, 255, 0.82); font-size: 1.18rem; max-width: 520px; }
.hero__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 34px; }
.hero__actions .btn-link { color: #fff; }
.hero__actions .btn-link:hover { color: var(--orange); }
.hero__trust { margin-top: 34px; display: flex; align-items: center; gap: 14px; color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; }
.hero__trust .avatars { display: flex; }
.hero__trust .avatars span {
  width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--navy);
  margin-left: -12px; background: var(--grad-orange); display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 0.8rem; font-family: var(--font-display);
}
.hero__trust .avatars span:first-child { margin-left: 0; }

/* Hero media collage */
.hero__media { position: relative; min-height: 420px; }
.hero__img {
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden;
  border: 5px solid rgba(255, 255, 255, 0.08);
}
.hero__img img { width: 100%; height: 100%; object-fit: cover; }
.hero__img--main { position: relative; aspect-ratio: 4/5; max-width: 380px; margin-left: auto; }
.hero__img--sub {
  position: absolute; bottom: -34px; left: -10px; width: 210px; aspect-ratio: 4/3;
  z-index: 2;
}
.hero__statcard {
  position: absolute; top: 30px; left: -28px; z-index: 3;
  background: #fff; color: var(--navy); border-radius: var(--r);
  padding: 16px 20px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 14px;
}
.hero__statcard .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--orange-soft); color: var(--orange-dark); display: grid; place-items: center; }
.hero__statcard .ico svg { width: 24px; height: 24px; }
.hero__statcard b { font-family: var(--font-display); font-size: 1.5rem; display: block; line-height: 1; }
.hero__statcard span { font-size: 0.82rem; color: var(--muted); }

/* ---- Quick program cards (overlap hero) ---------------------------------- */
.quick-programs { position: relative; margin-top: -90px; z-index: 5; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.qcard {
  background: #fff; border-radius: var(--r-lg); padding: 28px 24px;
  box-shadow: var(--shadow); border: 1px solid var(--border);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  position: relative; overflow: hidden;
}
.qcard::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 100%;
  background: var(--grad-orange); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.qcard:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.qcard:hover::after { transform: scaleX(1); }
.qcard__ico {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
  background: var(--grad-navy); color: #fff; margin-bottom: 18px;
}
.qcard__ico svg { width: 28px; height: 28px; }
.qcard h3 { font-size: 1.2rem; margin-bottom: 8px; }
.qcard p { color: var(--muted); font-size: 0.95rem; margin-bottom: 16px; }
.qcard .btn-link { font-size: 0.9rem; }

/* ---- About preview ------------------------------------------------------- */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.about__media { position: relative; }
.about__media .frame {
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 5/4;
}
.about__media .frame img { width: 100%; height: 100%; object-fit: cover; }
.about__media .badge {
  position: absolute; right: -18px; bottom: -22px; background: var(--grad-orange);
  color: #fff; border-radius: var(--r); padding: 18px 22px; box-shadow: var(--shadow-orange);
  text-align: center;
}
.about__media .badge b { font-family: var(--font-display); font-size: 2.1rem; display: block; line-height: 1; }
.about__media .badge span { font-size: 0.82rem; opacity: 0.92; }
.about__media .dots {
  position: absolute; top: -20px; left: -20px; width: 120px; height: 120px; z-index: -1;
  background-image: radial-gradient(var(--border) 2px, transparent 2px); background-size: 18px 18px;
}
.checklist { margin: 22px 0 30px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); }
.checklist .tick { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--orange-soft); color: var(--orange-dark); display: grid; place-items: center; }
.checklist .tick svg { width: 16px; height: 16px; }

/* ---- Impact counters ----------------------------------------------------- */
.impact { position: relative; overflow: hidden; }
.impact__glow {
  position: absolute; width: 480px; height: 480px; border-radius: 50%; left: -160px; bottom: -200px;
  background: radial-gradient(circle, rgba(255, 122, 26, 0.25), transparent 65%); pointer-events: none;
}
.impact__grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 14px; }
.stat__ico { width: 60px; height: 60px; border-radius: 18px; margin: 0 auto 16px; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.08); color: var(--orange); border: 1px solid rgba(255, 255, 255, 0.12); }
.stat__ico svg { width: 28px; height: 28px; }
.stat__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4vw, 2.9rem); color: #fff; line-height: 1; }
.stat__num .plus { color: var(--orange); }
.stat__label { margin-top: 8px; color: rgba(255, 255, 255, 0.72); font-size: 0.95rem; }

/* ---- Programs feature grid ----------------------------------------------- */
.prog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.prog-card {
  background: #fff; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  display: flex; flex-direction: column;
}
.prog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.prog-card__media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.prog-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.prog-card:hover .prog-card__media img { transform: scale(1.06); }
.prog-card__tag {
  position: absolute; top: 14px; left: 14px; background: rgba(255, 255, 255, 0.92);
  color: var(--navy); font-family: var(--font-display); font-weight: 600; font-size: 0.74rem;
  padding: 6px 12px; border-radius: var(--r-pill); text-transform: uppercase; letter-spacing: 0.06em;
}
.prog-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.prog-card__body h3 { font-size: 1.25rem; margin-bottom: 10px; }
.prog-card__body p { color: var(--muted); font-size: 0.96rem; margin-bottom: 18px; flex: 1; }

/* ---- Gallery preview ----------------------------------------------------- */
.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 16px;
}
.gallery-grid .g-item {
  position: relative; border-radius: var(--r); overflow: hidden; cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.gallery-grid .g-item.tall { grid-row: span 2; }
.gallery-grid .g-item.wide { grid-column: span 2; }
.gallery-grid .g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-grid .g-item::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(3, 29, 49, 0.72), transparent 55%);
  opacity: 0; transition: opacity .3s var(--ease);
}
.gallery-grid .g-item:hover img { transform: scale(1.07); }
.gallery-grid .g-item:hover::before { opacity: 1; }
.gallery-grid .g-item figcaption {
  position: absolute; left: 16px; bottom: 14px; z-index: 2; color: #fff;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  transform: translateY(8px); opacity: 0; transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.gallery-grid .g-item:hover figcaption { transform: translateY(0); opacity: 1; }
.gallery-grid .g-item .zoom {
  position: absolute; top: 14px; right: 14px; z-index: 2; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.92); color: var(--navy); display: grid; place-items: center;
  transform: scale(0.6); opacity: 0; transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.gallery-grid .g-item:hover .zoom { transform: scale(1); opacity: 1; }
.gallery-grid .g-item .zoom svg { width: 18px; height: 18px; }

/* ---- CTA banner ---------------------------------------------------------- */
.cta-banner { position: relative; }
.cta-banner__box {
  position: relative; overflow: hidden;
  background: var(--grad-orange); color: #fff;
  border-radius: var(--r-xl); padding: clamp(36px, 6vw, 64px);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
  box-shadow: var(--shadow-orange);
}
.cta-banner__box::before {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px;
  border-radius: 50%; background: rgba(255, 255, 255, 0.12);
}
.cta-banner__box::after {
  content: ""; position: absolute; left: -60px; bottom: -90px; width: 240px; height: 240px;
  border-radius: 50%; background: rgba(3, 29, 49, 0.12);
}
.cta-banner__text { position: relative; z-index: 1; }
.cta-banner__text h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.cta-banner__text p { color: rgba(255, 255, 255, 0.92); margin-top: 12px; font-size: 1.08rem; max-width: 540px; }
.cta-banner__actions { position: relative; z-index: 1; display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }

/* ---- Page hero (inner pages) --------------------------------------------- */
.page-hero {
  position: relative; background: var(--grad-navy); color: #fff;
  padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 6vw, 72px); overflow: hidden;
}
.page-hero__glow {
  position: absolute; width: 520px; height: 520px; border-radius: 50%; right: -160px; top: -180px;
  background: radial-gradient(circle, rgba(255, 122, 26, 0.3), transparent 65%);
}
.page-hero__dots {
  position: absolute; inset: 0; opacity: 0.4;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1.5px, transparent 1.5px); background-size: 28px 28px;
}
.page-hero__inner { position: relative; }
.page-hero__title { color: #fff; font-size: clamp(2rem, 4.4vw, 3.1rem); }
.breadcrumb { display: flex; align-items: center; gap: 10px; margin-top: 14px; color: rgba(255, 255, 255, 0.65); font-size: 0.92rem; }
.breadcrumb a { color: rgba(255, 255, 255, 0.85); }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb .current { color: var(--orange); }

/* ---- Prose (page content) ------------------------------------------------ */
.prose { max-width: 760px; margin-left: auto; margin-right: auto; }
.prose p { margin-bottom: 18px; color: var(--text); }
.prose h2 { font-size: 1.6rem; margin: 32px 0 14px; }
.prose h3 { font-size: 1.3rem; margin: 26px 0 12px; }
.prose ul { margin: 0 0 18px; display: grid; gap: 10px; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }
.prose ol { margin: 0 0 18px; padding-left: 22px; display: grid; gap: 10px; }
.prose ol li { padding-left: 4px; }
.prose h4 { font-size: 1.12rem; margin: 22px 0 10px; }
.prose blockquote { margin: 0 0 20px; padding: 12px 20px; border-left: 4px solid var(--orange); background: var(--light); color: var(--text); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose a { font-weight: 600; }
.prose img { max-width: 100%; height: auto; border-radius: var(--r-sm); margin: 10px 0; }

/* ---- Lightbox ------------------------------------------------------------ */
.lightbox {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center;
  background: rgba(3, 15, 26, 0.9); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s; padding: 24px;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(92vw, 1000px); max-height: 82vh; border-radius: var(--r); box-shadow: var(--shadow-lg); }
.lightbox__close { position: absolute; top: 22px; right: 22px; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12); color: #fff; display: grid; place-items: center; }
.lightbox__close:hover { background: var(--orange); }
.lightbox__close svg { width: 26px; height: 26px; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12); color: #fff; display: grid; place-items: center; cursor: pointer; border: 0; transition: background .2s; }
.lightbox__nav:hover { background: var(--orange); }
.lightbox__nav svg { width: 28px; height: 28px; }
.lightbox__nav--prev { left: 22px; }
.lightbox__nav--next { right: 22px; }
@media (max-width: 600px) {
  .lightbox__nav { width: 42px; height: 42px; }
  .lightbox__nav--prev { left: 10px; }
  .lightbox__nav--next { right: 10px; }
}

/* ---- Footer -------------------------------------------------------------- */
.footer { background: var(--navy-dark); color: rgba(255, 255, 255, 0.7); padding-top: clamp(56px, 7vw, 84px); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.6fr; gap: 40px; padding-bottom: 48px; }
.footer__brand .brand__name { color: #fff; }
.footer__about { margin: 18px 0 22px; font-size: 0.95rem; line-height: 1.7; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, 0.07); color: #fff; display: grid; place-items: center; transition: background .2s var(--ease), transform .2s var(--ease); }
.footer__social a svg { width: 18px; height: 18px; }
.footer__social a:hover { background: var(--orange); transform: translateY(-3px); }
.footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 20px; }
.footer__links a { display: block; color: rgba(255, 255, 255, 0.7); padding: 6px 0; font-size: 0.95rem; transition: color .2s var(--ease), padding-left .2s var(--ease); }
.footer__links a:hover { color: var(--orange); padding-left: 6px; }
.footer__contact li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; font-size: 0.95rem; }
.footer__contact svg { width: 18px; height: 18px; color: var(--orange); flex: none; margin-top: 3px; }
.newsletter { display: flex; gap: 8px; margin-top: 14px; }
.newsletter input {
  flex: 1; min-width: 0; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06); color: #fff; font-family: inherit;
}
.newsletter input::placeholder { color: rgba(255, 255, 255, 0.5); }
.newsletter input:focus { outline: none; border-color: var(--orange); }
.newsletter button { width: 50px; flex: none; border-radius: var(--r-sm); background: var(--grad-orange); color: #fff; display: grid; place-items: center; }
.newsletter button svg { width: 20px; height: 20px; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 22px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.88rem; }
.footer__bottom a { color: rgba(255, 255, 255, 0.7); }
.footer__bottom a:hover { color: var(--orange); }

/* ---- Skip link (accessibility) ------------------------------------------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: #fff; color: var(--navy); padding: 10px 16px; border-radius: 0 0 8px 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---- Dev install notice -------------------------------------------------- */
.setup-bar {
  background: #fff5e6; color: #8a5300; border-bottom: 1px solid #ffd9a8;
  font-size: 0.9rem; text-align: center; padding: 9px 16px;
}
.setup-bar a { font-weight: 700; }

/* ---- Flash alerts -------------------------------------------------------- */
.flash-region { margin-top: 18px; display: grid; gap: 10px; }
.alert {
  display: flex; gap: 10px; align-items: center;
  padding: 14px 18px; border-radius: var(--r); font-weight: 500;
}
.alert svg { width: 20px; height: 20px; flex: none; }
.alert--success { background: #e9f8ef; color: #15692f; border: 1px solid #bce8cd; }
.alert--error { background: #fdecea; color: #b71c1c; border: 1px solid #f7c5c0; }

/* ---- Forms --------------------------------------------------------------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; margin-bottom: 7px; color: var(--navy); }
.field .req { color: var(--orange-dark); }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r-sm);
  font: inherit; font-size: 1rem; color: var(--text); background: #fff;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.15);
}
.field textarea { resize: vertical; min-height: 120px; }
.field.has-error input, .field.has-error textarea, .field.has-error select,
input.is-invalid, textarea.is-invalid { border-color: #e3342f; }
.field__error { display: block; color: #b71c1c; font-size: 0.85rem; margin-top: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

.form-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 30px; box-shadow: var(--shadow);
  /* As a grid item, allow shrinking below a wide child (e.g. the fixed
     304px reCAPTCHA) so it never blows the column out on small screens. */
  min-width: 0;
}

/* reCAPTCHA renders a fixed 304px-wide iframe; on narrow screens keep it
   inside the card (scroll the few extra px) instead of overflowing the page. */
.g-recaptcha { max-width: 100%; overflow-x: auto; }
.form-card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.form-card__lead { color: var(--muted); margin-bottom: 18px; font-size: 0.95rem; }

/* ---- Contact layout ------------------------------------------------------ */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.info-list { margin: 24px 0; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--orange-soft); color: var(--orange-dark); display: grid; place-items: center; flex: none; }
.info-ico svg { width: 22px; height: 22px; }
.info-list b { display: block; font-family: var(--font-display); color: var(--navy); }
.info-list span, .info-list a { color: var(--muted); }
.info-list a:hover { color: var(--orange-dark); }
.map-embed { margin-top: 14px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--border); }
.map-embed iframe { width: 100%; min-height: 240px; border: 0; display: block; }

/* ---- Partner options ----------------------------------------------------- */
.options-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.option-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.option-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.option-card__ico { width: 54px; height: 54px; border-radius: 14px; background: var(--grad-navy); color: #fff; display: grid; place-items: center; margin-bottom: 16px; }
.option-card__ico svg { width: 26px; height: 26px; }
.option-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.option-card p { color: var(--muted); font-size: 0.95rem; }
.partner-cta-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

/* ---- Donate -------------------------------------------------------------- */
.donate-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.donate-methods { display: grid; gap: 20px; margin: 28px 0; }
.method-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.method-card__ico { width: 48px; height: 48px; border-radius: 12px; background: var(--orange-soft); color: var(--orange-dark); display: grid; place-items: center; margin-bottom: 14px; }
.method-card h3 { font-size: 1.15rem; margin-bottom: 12px; }
.method-card__lead { color: var(--muted); font-size: 0.95rem; margin-bottom: 16px; }
.method-card--paypal { border-color: var(--orange); box-shadow: 0 10px 30px -18px rgba(255, 122, 26, 0.55); }
.paypal-form { display: grid; gap: 14px; }
.paypal-amount label { display: block; font-weight: 600; color: var(--navy); font-size: 0.9rem; margin-bottom: 6px; }
.paypal-amount input { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r); font: inherit; }
.paypal-amount input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.15); }
.bank-table { width: 100%; border-collapse: collapse; }
.bank-table th { text-align: left; color: var(--muted); font-weight: 500; padding: 9px 0; width: 42%; vertical-align: top; font-size: 0.92rem; }
.bank-table td { padding: 9px 0; font-family: var(--font-display); font-weight: 600; color: var(--navy); font-size: 0.95rem; word-break: break-word; }
.bank-table tr + tr th, .bank-table tr + tr td { border-top: 1px solid var(--light-2); }
.note-box { display: flex; gap: 12px; align-items: flex-start; background: var(--light); border: 1px solid var(--border); border-radius: var(--r); padding: 16px; margin-top: 14px; font-size: 0.95rem; }
.note-box svg { width: 22px; height: 22px; color: var(--orange-dark); flex: none; }
.note-box--trust svg { color: #1f9d55; }

/* ---- Empty state --------------------------------------------------------- */
.empty-state { text-align: center; padding: 50px 0; }
.empty-state__ico { width: 72px; height: 72px; border-radius: 20px; background: var(--orange-soft); color: var(--orange-dark); display: grid; place-items: center; margin: 0 auto 20px; }
.empty-state__ico svg { width: 34px; height: 34px; }
.empty-state h2 { margin-bottom: 10px; }
.empty-state p { margin-bottom: 24px; }

/* ---- Page hero with image ------------------------------------------------ */
.page-hero--image .page-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.22; }
.gallery-grid--full { grid-auto-rows: 220px; }
.album-block--spaced { margin-top: 64px; padding-top: 56px; border-top: 1px solid var(--border); }

/* Activity cards & detail */
.card-date { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.82rem; font-weight: 600; margin-bottom: 8px; }
.card-date svg { width: 15px; height: 15px; color: var(--orange-dark); }
.prog-card__body h3 a { color: inherit; }
.prog-card__body h3 a:hover { color: var(--orange-dark); }
.story-hero-img { width: 100%; border-radius: var(--r-lg); margin-bottom: 26px; box-shadow: var(--shadow); }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 52px; flex-wrap: wrap; }
.pagination__btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border: 1px solid var(--border); border-radius: var(--r-pill); color: var(--navy); font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; }
.pagination__btn svg { width: 16px; height: 16px; }
.pagination__btn:not(.pagination__btn--next) svg { transform: rotate(180deg); }
.pagination__btn:hover { border-color: var(--navy); text-decoration: none; }
.pagination__btn.is-disabled { opacity: 0.4; pointer-events: none; }
.pagination__page { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 8px; border-radius: 10px; border: 1px solid var(--border); color: var(--navy); font-family: var(--font-display); font-weight: 600; }
.pagination__page:hover { border-color: var(--navy); text-decoration: none; }
.pagination__page.is-active { background: var(--grad-orange); color: #fff; border-color: transparent; }
.pagination__dots { padding: 0 6px; color: var(--muted); }

/* ---- Reveal-on-scroll animation ------------------------------------------ */
/* Progressive enhancement: content is visible by default; only hidden (to be
   animated in) when JavaScript is active. No JS => everything still shows. */
.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* Hero entrance (runs on load) */
.hero__content > * { opacity: 0; transform: translateY(20px); animation: rise .8s var(--ease) forwards; }
.hero__content > *:nth-child(1) { animation-delay: .05s; }
.hero__content > *:nth-child(2) { animation-delay: .15s; }
.hero__content > *:nth-child(3) { animation-delay: .25s; }
.hero__content > *:nth-child(4) { animation-delay: .35s; }
.hero__content > *:nth-child(5) { animation-delay: .45s; }
.hero__media { opacity: 0; transform: translateY(24px) scale(.98); animation: rise .9s var(--ease) .35s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .hero__content > *, .hero__media { opacity: 1; transform: none; }
}
