@font-face{font-family:Bornomala;src:url(/fonts/Bornomala-Regular.woff2) format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:Bornomala;src:url(/fonts/Bornomala-Bold.woff2) format("woff2");font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:UbuntuSans;src:url(/fonts/UbuntuSans.woff2) format("woff2");font-weight:500 700;font-style:normal;font-display:swap}
:root {
  --primary: #008e48;
  --primary-dark: #006648;
  --primary-deep: #00443d;
  --primary-soft: #cef5e3;
  --primary-mist: #eef2f0;
  --ink: #1c252e;
  --muted: #637381;
  --surface: #ffffff;
  --bg: #fcfdfd;
  --line: rgba(145, 158, 171, 0.2);
  --shadow: 0 0 2px rgba(145, 158, 171, 0.2), 0 12px 24px -4px rgba(145, 158, 171, 0.12);
  --radius: 16px;
  --danger: #ff3b30;
  --sand: #ffffff;
  --success: #008e48;
  /* legacy aliases */
  --forest: var(--primary-deep);
  --forest-mid: var(--primary-dark);
  --leaf: var(--primary);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; height: 100%; overflow-x: clip; }
body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  font-family: UbuntuSans, Bornomala, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  overflow-x: clip;
}
main { flex: 1 1 auto; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.font-display { font-family: Bornomala, serif; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.narrow { max-width: 760px; }

/* ——— Header ——— */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(252, 253, 253, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 72px;
}
.brand { display: flex; align-items: center; gap: .7rem; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px; object-fit: cover;
  box-shadow: var(--shadow);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand strong {
  font-family: Bornomala, serif;
  font-size: 1.2rem; color: var(--primary-deep); font-weight: 700;
}
.brand span {
  font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}
.nav-links { display: none; gap: .55rem; align-items: center; }
.nav-links > a {
  font-size: .92rem; color: var(--muted); font-weight: 500;
  transition: color .15s ease; padding: .35rem .4rem;
}
.nav-links > a:hover, .nav-links > a.active { color: var(--primary); }
.nav-drop { position: relative; }
.nav-drop-btn {
  font: inherit; font-size: .92rem; font-weight: 500; color: var(--muted);
  background: transparent; border: 0; cursor: pointer; padding: .35rem .4rem;
}
.nav-drop:hover .nav-drop-btn,
.nav-drop.active .nav-drop-btn { color: var(--primary); }
.nav-drop-menu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 200px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: .45rem; z-index: 60;
}
.nav-drop:hover .nav-drop-menu { display: block; }
.nav-drop-menu a {
  display: block; padding: .55rem .75rem; border-radius: 8px;
  color: var(--ink); font-size: .9rem; font-weight: 500;
}
.nav-drop-menu a:hover { background: var(--primary-mist); color: var(--primary); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .35rem; border-radius: 10px; padding: .7rem 1.35rem;
  font-weight: 700; border: 0; cursor: pointer; font: inherit;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 8px 16px rgba(0, 142, 72, 0.24);
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:disabled { opacity: .65; cursor: wait; transform: none; }
.btn-light { background: #fff; color: var(--primary-deep); }
.btn-outline-light {
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255,255,255,.55);
}
.btn-outline-light:hover { background: rgba(255,255,255,.1); }
.btn-ghost {
  background: transparent; color: var(--primary);
  border: 1px solid rgba(0, 142, 72, 0.28); padding: .55rem 1.1rem;
}
.btn-ghost:hover { background: var(--primary-soft); }
.menu-btn {
  position: relative;
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; color: var(--primary-deep);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; cursor: pointer; padding: 0;
}
.menu-btn-bars,
.menu-btn-bars::before,
.menu-btn-bars::after {
  display: block; width: 18px; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease, top .2s ease;
  position: relative;
}
.menu-btn-bars::before,
.menu-btn-bars::after {
  content: ""; position: absolute; left: 0;
}
.menu-btn-bars::before { top: -6px; }
.menu-btn-bars::after { top: 6px; }
.menu-btn.is-open .menu-btn-bars { background: transparent; }
.menu-btn.is-open .menu-btn-bars::before { top: 0; transform: rotate(45deg); }
.menu-btn.is-open .menu-btn-bars::after { top: 0; transform: rotate(-45deg); }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
  max-height: min(78vh, 640px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-nav.open { display: block; }
.mobile-nav[hidden] { display: none !important; }
.mobile-nav.open[hidden] { display: block !important; }
.mobile-nav-inner { padding: 1rem 0 1.25rem; }
.mobile-nav-cta {
  width: 100%; margin-bottom: 1rem; padding: .9rem 1rem;
  font-size: 1rem;
}
.mobile-nav-grid {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr 1fr;
}
.mobile-nav-group {
  background: var(--primary-mist);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: .75rem .7rem .85rem;
}
.mobile-nav-label {
  margin: 0 0 .45rem;
  font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary); font-weight: 700;
}
.mobile-nav-group a {
  display: block;
  padding: .55rem .45rem;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 600;
  font-size: .92rem;
  line-height: 1.25;
}
.mobile-nav-group a:hover,
.mobile-nav-group a.active {
  background: #fff;
  color: var(--primary);
}
.mobile-donate-bar {
  display: none;
}

body.nav-open { overflow: hidden; }

/* ——— Hero (Assunnah-like) ——— */
.hero-as {
  position: relative;
  min-height: min(88vh, 820px);
  display: grid;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero-as > img.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transform: scale(1.02);
}
.hero-as .hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(0, 68, 61, 0.92) 0%, rgba(0, 102, 72, 0.78) 48%, rgba(0, 142, 72, 0.45) 100%);
}
.hero-grid {
  position: relative;
  display: grid;
  gap: 2rem;
  padding: 5.5rem 0 3.5rem;
  align-items: center;
}
.hero-copy { max-width: 560px; }
.hero-copy .hero-brand {
  font-family: Bornomala, serif;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 700; margin: 0 0 .85rem; line-height: 1.15;
  letter-spacing: -0.02em;
}
.hero-copy .hero-lead {
  margin: 0; font-size: 1.05rem; line-height: 1.7;
  color: rgba(255,255,255,.88); max-width: 34rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }

.donate-panel {
  background: #fff;
  color: var(--ink);
  border-radius: 20px;
  padding: 1.35rem 1.35rem 1.5rem;
  box-shadow: 0 24px 48px rgba(0, 68, 61, 0.28);
  width: 100%;
  max-width: 400px;
  justify-self: end;
}
.donate-panel h2 {
  margin: 0 0 1rem;
  font-family: Bornomala, serif;
  font-size: 1.35rem;
  color: var(--primary-deep);
}
.donate-panel label {
  display: block; font-size: .82rem; font-weight: 600;
  color: var(--muted); margin: .65rem 0 .3rem;
}
.donate-panel label .req { color: var(--danger); }
.donate-panel select,
.donate-panel input {
  width: 100%; border-radius: 10px; border: 1px solid var(--line);
  background: var(--primary-mist); padding: .75rem .9rem; font: inherit;
  color: var(--ink);
}
.donate-panel select:focus,
.donate-panel input:focus {
  outline: 2px solid rgba(0, 142, 72, 0.35);
  border-color: var(--primary);
  background: #fff;
}
.amount-row {
  display: flex; align-items: center; gap: .4rem;
  border-radius: 10px; border: 1px solid var(--line);
  background: var(--primary-mist); padding: 0 .75rem;
}
.amount-row:focus-within {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 142, 72, 0.15);
}
.amount-row span { font-weight: 700; color: var(--primary); font-size: 1.1rem; }
.amount-row input {
  border: 0; background: transparent; padding: .75rem .25rem; font-weight: 700;
  font-size: 1.1rem; color: var(--primary-deep);
}
.amount-row input:focus { outline: none; box-shadow: none; }
.donate-panel .btn { width: 100%; margin-top: 1rem; padding: .85rem 1rem; }
.donate-panel .tax-note {
  margin: .85rem 0 0; font-size: .78rem; color: var(--muted); line-height: 1.45;
  text-align: center;
}
.donate-panel .error {
  background: rgba(255, 59, 48, 0.08); color: var(--danger);
  padding: .65rem .8rem; border-radius: 10px; margin-top: .65rem; font-size: .85rem;
}

/* ——— Sections ——— */
.section { padding: 4rem 0; }
.section, .site-footer, .join-grid, .gallery-grid { content-visibility: auto; contain-intrinsic-size: 1px 640px; }
.section-alt { background: var(--primary-mist); }
.section-head {
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: flex-end; justify-content: space-between;
  margin-bottom: 1.75rem;
}
.section h2 {
  font-family: Bornomala, serif;
  color: var(--primary-deep); font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 .35rem;
}
.section-sub {
  margin: 0; color: var(--muted); font-size: 1.05rem; max-width: 36rem; line-height: 1.6;
}
.eyebrow {
  display: inline-block; font-size: .75rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--primary); font-weight: 700; margin: 0 0 .4rem;
}
.muted { color: var(--muted); line-height: 1.65; }

.mission-band {
  text-align: center; padding: 3.5rem 0 1rem;
}
.mission-band h2 {
  font-family: Bornomala, serif;
  color: var(--primary-deep); font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0;
}

.pillars {
  display: grid; gap: 1.25rem; margin-top: 1.5rem;
}
.pillar {
  background: #fff; border-radius: var(--radius); padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  text-align: center;
  transition: transform .2s ease;
}
.pillar:hover { transform: translateY(-3px); }
.pillar-icon {
  width: 56px; height: 56px; margin: 0 auto 1rem;
  border-radius: 16px; background: var(--primary-soft);
  display: grid; place-items: center;
  color: var(--primary); font-size: 1.5rem; font-weight: 700;
}
.pillar h3 {
  margin: 0 0 .55rem; color: var(--primary-deep);
  font-family: Bornomala, serif; font-size: 1.25rem;
}
.pillar p { margin: 0; font-size: .95rem; }

.grid-3, .grid-2, .grid-4 { display: grid; gap: 1.25rem; }

.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease;
}
a.card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(145, 158, 171, 0.2); }
.card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.card-body { padding: 1.15rem 1.2rem 1.35rem; }
.card-body h3 {
  margin: 0; color: var(--primary-deep);
  font-family: Bornomala, serif; font-size: 1.15rem;
}
.progress {
  height: .45rem; border-radius: 999px; background: rgba(0, 142, 72, 0.12);
  overflow: hidden; margin-top: .85rem;
}
.progress > span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
}
.meta {
  display: flex; justify-content: space-between;
  font-size: .78rem; color: var(--muted); margin-top: .55rem;
}

.funds-section { background: var(--primary-deep); color: #fff; }
.funds-section h2 { color: #fff; }
.funds-section .section-sub { color: rgba(255,255,255,.75); }
.funds-section .btn-ghost {
  border-color: rgba(255,255,255,.35); color: #fff;
}
.funds-section .btn-ghost:hover { background: rgba(255,255,255,.1); }
.funds-section .card { color: var(--ink); }

.video-section .video-frame {
  position: relative; border-radius: 20px; overflow: hidden;
  aspect-ratio: 16/9; background: var(--primary-deep);
  box-shadow: var(--shadow);
}
.video-section .video-frame iframe,
.video-section .video-frame img,
.video-frame .site-video {
  width: 100%; height: 100%; object-fit: cover; border: 0;
  display: block;
}
.video-frame-live .site-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  background: #00443d;
}
.video-veil {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 68, 61, 0.18) 0%, transparent 35%, rgba(0, 68, 61, 0.35) 100%);
}
.video-placeholder {
  position: absolute; inset: 0; display: grid; place-items: center;
  background:
    linear-gradient(135deg, rgba(0, 68, 61, 0.85), rgba(0, 142, 72, 0.7)),
    url("/assets/placeholder.svg") center/cover;
  color: #fff; text-align: center; padding: 2rem;
}
.video-placeholder .play {
  width: 72px; height: 72px; border-radius: 999px; background: #fff;
  color: var(--primary); display: grid; place-items: center;
  font-size: 1.6rem; margin: 0 auto 1rem;
  box-shadow: var(--shadow);
}

.join-grid { display: grid; gap: 1rem; margin-top: 1.5rem; }
.join-card {
  background: #fff; border-radius: var(--radius); padding: 1.4rem 1.2rem;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  text-align: center; transition: transform .2s ease;
}
.join-card:hover { transform: translateY(-3px); }
.join-card .join-ico {
  width: 48px; height: 48px; margin: 0 auto .85rem; border-radius: 14px;
  background: var(--primary-soft); color: var(--primary);
  display: grid; place-items: center; font-weight: 800;
}
.join-card h3 {
  margin: 0 0 .4rem; font-size: 1.05rem; color: var(--primary-deep);
  font-family: Bornomala, serif;
}
.join-card p { margin: 0; font-size: .88rem; color: var(--muted); }

.gallery-grid {
  display: grid; gap: .75rem;
  grid-template-columns: repeat(2, 1fr);
}
.gallery-grid a, .gallery-grid figure {
  margin: 0; border-radius: 14px; overflow: hidden;
  aspect-ratio: 4/3; box-shadow: var(--shadow);
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; }

.donor-list {
  background: #fff; border-radius: var(--radius);
  border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow);
}
.donor-item {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.2rem; border-bottom: 1px solid var(--line);
}
.donor-item:last-child { border-bottom: 0; }

.prose p { margin: 0 0 1rem; line-height: 1.7; }

.impact-strip {
  display: grid; gap: 1rem;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.25rem;
  box-shadow: var(--shadow);
}
.impact-strip > div { text-align: center; padding: .5rem; }
.impact-strip strong {
  display: block; font-family: Bornomala, serif;
  color: var(--primary-deep); font-size: 1.35rem; margin-bottom: .2rem;
}
.impact-strip span { font-size: .8rem; color: var(--muted); }

.cta-band {
  background: linear-gradient(120deg, var(--primary-deep), var(--primary));
  color: #fff;
}
.cta-band .wrap {
  display: flex; flex-wrap: wrap; gap: 1.25rem;
  align-items: center; justify-content: space-between;
  padding: 3rem 1rem;
}
.cta-band h2 {
  color: #fff; margin: 0; font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-family: Bornomala, serif;
}

/* ——— Inner pages ——— */
.page { padding: 3rem 0 4rem; }
.page h1 {
  font-family: Bornomala, serif;
  color: var(--primary-deep); font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin: 0 0 1rem;
}
.page-hero-strip {
  background: var(--primary-mist); border-bottom: 1px solid var(--line);
  padding: 2rem 0 1.5rem;
}

.form-box {
  background: #fff; border-radius: var(--radius); padding: 1.5rem;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
label { display: block; font-size: .9rem; font-weight: 600; margin: .8rem 0 .35rem; color: var(--ink); }
input, select, textarea {
  width: 100%; border-radius: 10px; border: 1px solid var(--line);
  background: var(--primary-mist); padding: .8rem 1rem; font: inherit; color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(0, 142, 72, 0.3); border-color: var(--primary); background: #fff;
}
.presets { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: .65rem; }
.presets button {
  border-radius: 10px; border: 1px solid var(--line); padding: .5rem 1rem; cursor: pointer;
  background: var(--primary-mist); color: var(--primary-deep); font-weight: 700; font: inherit;
}
.presets button.active, .presets button:hover {
  background: var(--primary); color: #fff; border-color: var(--primary);
}
.amount-field {
  display: flex; align-items: center; gap: .35rem;
  border-radius: 10px; border: 1px solid var(--line);
  background: var(--primary-mist); padding: 0 .2rem 0 1rem;
}
.amount-field:focus-within {
  border-color: var(--primary); background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 142, 72, 0.15);
}
.amount-prefix { font-size: 1.25rem; color: var(--primary); font-weight: 700; }
.amount-field input {
  border: 0; background: transparent; font-size: 1.25rem; font-weight: 700;
  padding: .9rem .9rem .9rem .2rem; color: var(--primary-deep);
}
.amount-field input:focus { outline: none; box-shadow: none; }
.field-hint { margin: .45rem 0 0; font-size: .78rem; color: var(--muted); }

.check-list { margin: 1.2rem 0 0; padding: 0; list-style: none; display: grid; gap: .55rem; }
.check-list li {
  position: relative; padding-left: 1.5rem; color: var(--muted); line-height: 1.45;
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .35rem;
  width: .85rem; height: .85rem; border-radius: 999px; background: var(--primary);
}
.trust-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-top: 1.6rem;
}
.trust-row div {
  background: var(--primary-mist); border: 1px solid var(--line);
  border-radius: 12px; padding: .8rem .6rem; text-align: center;
}
.trust-row strong { display: block; color: var(--primary-deep); font-size: .95rem; }
.trust-row span { font-size: .72rem; color: var(--muted); }

.checkbox { display: flex; align-items: center; gap: .6rem; margin: 1rem 0; font-size: .9rem; color: var(--muted); }
.checkbox input { width: auto; }
.error { background: rgba(255, 59, 48, 0.08); color: var(--danger); padding: .8rem 1rem; border-radius: 10px; margin-top: .8rem; }
.note { text-align: center; font-size: .75rem; color: var(--muted); margin-top: .7rem; }

.info-panels { display: grid; gap: 1rem; }
.faq-list { margin-top: 1.5rem; display: grid; gap: .75rem; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: .9rem 1.1rem; box-shadow: var(--shadow);
}
.faq-item summary {
  cursor: pointer; font-weight: 700; color: var(--primary-deep); list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; color: var(--primary); font-weight: 700; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: .7rem 0 0; }

.steps-grid { display: grid; gap: 1rem; margin-top: 1rem; }
.step-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem; box-shadow: var(--shadow);
}
.step-num {
  display: inline-flex; width: 2rem; height: 2rem; border-radius: 999px;
  align-items: center; justify-content: center;
  background: var(--primary); color: #fff; font-weight: 700; font-size: .9rem;
  margin-bottom: .75rem;
}
.step-card h3 { margin: 0 0 .4rem; color: var(--primary-deep); font-size: 1.1rem; }

.prose p { margin: 0 0 1rem; line-height: 1.7; }

/* ——— Footer ——— */
.site-footer {
  margin-top: auto; background: var(--primary-deep); color: rgba(255,255,255,.85);
}
.footer-grid {
  display: grid; gap: 2rem; padding: 3.25rem 0 2rem;
}
.footer-brand {
  font-family: Bornomala, serif;
  font-size: 1.6rem; margin: 0; font-weight: 700; color: #fff;
}
.site-footer a { color: rgba(255,255,255,.72); }
.site-footer a:hover { color: #fff; }
.footer-col h4 {
  margin: 0 0 .9rem; color: #fff; font-size: .95rem; font-weight: 700;
}
.footer-col p { margin: 0 0 .55rem; font-size: .9rem; }
.footer-help-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 .85rem;
}
.footer-seo-links {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .65rem;
  padding: 0 0 1rem;
}
.footer-seo-links a {
  font-size: .78rem;
  color: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: .35rem .65rem;
}
.footer-seo-links a:hover {
  color: #fff;
  border-color: rgba(255,255,255,.45);
}
.copy {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 1rem 0; font-size: .78rem; color: rgba(255,255,255,.5);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.fade-up { animation: fadeUp .75s ease both; }
.d1 { animation-delay: .12s; }
.d2 { animation-delay: .24s; }
.d3 { animation-delay: .36s; }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .menu-btn { display: none; }
  .mobile-nav, .mobile-donate-bar { display: none !important; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 2.5rem; }
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-2, .info-panels { grid-template-columns: 1fr 1fr; }
  .grid-4, .join-grid { grid-template-columns: repeat(4, 1fr); }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
  .impact-strip { grid-template-columns: repeat(4, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid.three { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
  .donate-layout { display: grid; grid-template-columns: 1fr 1.05fr; gap: 2.25rem; align-items: start; }
}

@media (max-width: 899px) {
  html { -webkit-text-size-adjust: 100%; }
  body { padding-bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px)); }
  .wrap { padding-left: 1rem; padding-right: 1rem; }
  .nav { min-height: 60px; gap: .65rem; }
  .brand { min-width: 0; }
  .brand-mark { width: 36px; height: 36px; border-radius: 10px; }
  .brand strong { font-size: 1.02rem; white-space: nowrap; }
  .brand span { font-size: .6rem; letter-spacing: .04em; }

  .hero-as { min-height: auto; }
  .hero-grid {
    padding: 1.5rem 0 1.25rem;
    gap: 1rem;
  }
  .hero-copy .hero-brand {
    font-size: clamp(1.75rem, 7.5vw, 2.2rem);
    margin-bottom: .45rem;
  }
  .hero-copy .hero-lead {
    font-size: .9rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hero-actions {
    margin-top: .9rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
  }
  .hero-actions .btn {
    width: 100%;
    padding: .65rem .7rem;
    font-size: .88rem;
  }
  .donate-panel {
    justify-self: stretch;
    max-width: none;
    border-radius: 16px;
    padding: 1rem .95rem 1.05rem;
    box-shadow: 0 14px 28px rgba(0, 68, 61, 0.2);
  }
  .donate-panel h2 { font-size: 1.1rem; margin-bottom: .55rem; }
  .donate-panel label { margin: .4rem 0 .2rem; font-size: .78rem; }
  .donate-panel select,
  .donate-panel input,
  .amount-row input,
  input, select, textarea {
    font-size: 16px;
    padding: .65rem .75rem;
  }
  .donate-panel .btn { margin-top: .75rem; padding: .75rem; }
  .donate-panel .tax-note { margin-top: .55rem; font-size: .72rem; }

  .section { padding: 1.65rem 0; }
  .section-head {
    margin-bottom: .9rem;
    gap: .5rem;
    flex-wrap: nowrap;
    align-items: center;
  }
  .section-head > div { min-width: 0; flex: 1; }
  .section-head .btn-ghost {
    flex-shrink: 0;
    padding: .4rem .7rem;
    font-size: .78rem;
  }
  .section h2 { font-size: clamp(1.2rem, 4.8vw, 1.5rem); margin-bottom: .15rem; }
  .section-sub {
    font-size: .82rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .eyebrow { margin-bottom: .2rem; font-size: .68rem; }
  .mission-band { padding: 1.35rem 0 .35rem; }
  .mission-band h2 { font-size: clamp(1.1rem, 4.5vw, 1.35rem); padding: 0 .25rem; }

  /* Pillars: icon left + text right,  compact rows */
  .pillars {
    gap: .55rem;
    margin-top: .75rem;
  }
  .pillar {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: .75rem;
    row-gap: .15rem;
    align-items: start;
    text-align: left;
    padding: .85rem .9rem;
  }
  .pillar-icon {
    grid-row: 1 / span 2;
    width: 40px; height: 40px; margin: 0;
    border-radius: 12px; font-size: 1.05rem;
    align-self: center;
  }
  .pillar h3 { font-size: .98rem; margin: 0; }
  .pillar p { font-size: .8rem; line-height: 1.4; }

  /* Cards: 2-up grids where space allows */
  .grid-2, .grid-4, .info-panels {
    grid-template-columns: 1fr 1fr;
    gap: .65rem;
  }
  .grid-3 {
    grid-template-columns: 1fr;
    gap: .55rem;
  }
  .join-grid { grid-template-columns: 1fr 1fr; gap: .55rem; }
  .join-card { padding: .85rem .65rem; }
  .join-card .join-ico {
    width: 40px; height: 40px; margin-bottom: .5rem;
    border-radius: 12px; font-size: .78rem;
  }
  .join-card h3 { font-size: .88rem; }
  .join-card p {
    font-size: .75rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Compact campaign cards — image left, body right */
  .grid-3 > .card,
  .funds-section .card {
    display: grid;
    grid-template-columns: 112px 1fr;
    align-items: stretch;
  }
  .grid-3 > .card > img,
  .funds-section .card > img {
    aspect-ratio: auto;
    height: 100%;
    min-height: 92px;
    object-fit: cover;
  }
  .card-body { padding: .7rem .8rem .75rem; }
  .card-body h3 {
    font-size: .95rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .card-body .muted { display: none; }
  .card-body .progress { margin-top: .45rem; }
  .card-body .meta { font-size: .72rem; margin-top: .35rem; gap: .35rem; }

  .impact-strip {
    grid-template-columns: repeat(4, 1fr);
    gap: .25rem;
    padding: .75rem .5rem;
  }
  .impact-strip > div { padding: .25rem .15rem; }
  .impact-strip strong { font-size: .95rem; margin-bottom: .1rem; }
  .impact-strip span { font-size: .65rem; line-height: 1.2; }

  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: .4rem;
  }
  .gallery-grid a,
  .gallery-grid figure { border-radius: 10px; aspect-ratio: 1; }

  .video-frame { border-radius: 14px; }
  .video-placeholder { padding: .85rem; }
  .video-placeholder .play { width: 48px; height: 48px; font-size: 1.1rem; margin-bottom: .55rem; }
  .video-placeholder p { font-size: .9rem !important; }

  .page { padding: 1.35rem 0 2.25rem; }
  .page-hero-strip { padding: 1.15rem 0 .9rem; }
  .page h1 { font-size: clamp(1.35rem, 5.5vw, 1.75rem); margin-bottom: .65rem; }
  .form-box { padding: 1rem; border-radius: 14px; }
  .trust-row { grid-template-columns: repeat(3, 1fr); gap: .45rem; }
  .trust-row div { padding: .55rem .35rem; }
  .trust-row strong { font-size: .8rem; }
  .trust-row span { font-size: .65rem; }
  .presets { gap: .35rem; }
  .presets button {
    min-height: 40px;
    flex: 1 1 calc(33.33% - .35rem);
    padding: .4rem .55rem;
    font-size: .85rem;
  }
  .steps-grid { grid-template-columns: 1fr 1fr; gap: .65rem; }
  .steps-grid.three { grid-template-columns: 1fr 1fr; }
  .step-card { padding: .9rem; }
  .step-card h3 { font-size: .95rem; }

  .cta-band .wrap {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    text-align: left;
    padding: 1.25rem 1rem;
    gap: .85rem;
  }
  .cta-band h2 {
    flex: 1;
    min-width: 0;
    font-size: 1.05rem;
    line-height: 1.35;
  }
  .cta-band .btn {
    flex-shrink: 0;
    width: auto;
    padding: .65rem 1rem;
    font-size: .88rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.15rem 1rem;
    padding: 1.75rem 0 1.15rem;
  }
  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
  .footer-brand { font-size: 1.25rem; }
  .footer-col h4 { margin-bottom: .45rem; font-size: .88rem; }
  .footer-col p { margin-bottom: .35rem; font-size: .82rem; }
  .footer-seo-links a { font-size: .72rem; padding: .32rem .55rem; }
  .copy { padding: .75rem 0 .9rem; }

  .donor-item {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .75rem .9rem;
  }

  .donate-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .mobile-donate-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    min-height: calc(3.1rem + env(safe-area-inset-bottom, 0px));
    padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(120deg, var(--primary-deep), var(--primary));
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 -8px 24px rgba(0, 68, 61, 0.2);
  }
  body.nav-open .mobile-donate-bar { display: none; }
  body.page-donate .mobile-donate-bar { display: none; }
  body.page-donate { padding-bottom: 0; }
}

@media (max-width: 420px) {
  .wrap { padding-left: .8rem; padding-right: .8rem; }
  .grid-3 > .card,
  .funds-section .card {
    grid-template-columns: 88px 1fr;
  }
  .impact-strip { grid-template-columns: 1fr 1fr; }
  .cta-band .wrap { flex-wrap: wrap; }
  .cta-band .btn { width: 100%; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .fade-up { animation: none; }
  .menu-btn-bars,
  .menu-btn-bars::before,
  .menu-btn-bars::after { transition: none; }
}
