:root {
  --cream: #FFF8EE;
  --cream-2: #FFF1D6;
  --paper: #FFFFFF;
  --olive: #0F6B4D;
  --olive-deep: #08281E;
  --olive-mid: #17835F;
  --olive-soft: #E5F5EE;
  --gold: #F5C400;
  --gold-2: #FFD84A;
  --gold-soft: #FFF4C7;
  --charcoal: #141414;
  --ink: #1A1A1A;
  --muted: #6B6560;
  --line: #EDE3D0;
  --white: #fff;
  --danger: #B42318;
  --shadow: 0 18px 50px rgba(8, 40, 30, 0.10);
  --shadow-sm: 0 8px 24px rgba(8, 40, 30, 0.07);
  --radius: 18px;
  --radius-sm: 12px;
  --serif: "Manrope", system-ui, sans-serif;
  --sans: "Manrope", system-ui, sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.7;
  font-size: 16.5px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--olive); text-decoration: none; }
a:hover { color: var(--olive-deep); }
h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 800;
  line-height: 1.12;
  color: var(--ink);
  letter-spacing: -0.03em;
}
h1 { font-size: clamp(2.2rem, 5vw, 4.1rem); margin: 0 0 0.35em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.7rem); margin: 0 0 0.4em; }
h3 { font-size: 1.2rem; margin: 0 0 0.4em; }
p { margin: 0 0 1em; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 46rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.skip-link {
  position: absolute; left: -999px; top: 8px; background: var(--olive); color: #fff; padding: 8px 14px; z-index: 1000;
}
.skip-link:focus { left: 8px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); font-weight: 800; margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 999px; padding: 13px 26px;
  font-family: var(--sans); font-weight: 800; font-size: 0.92rem; letter-spacing: 0.02em;
  cursor: pointer; transition: 0.22s ease; text-decoration: none;
}
.btn-primary { background: var(--olive); color: #fff; }
.btn-primary:hover { background: var(--olive-deep); color: #fff; transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: #111; }
.btn-gold:hover { background: var(--gold-2); color: #111; }
.btn-dark { background: #111; color: #fff; border-radius: 10px; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: #fff; color: #111; }
.btn-outline { background: transparent; color: var(--olive); border-color: var(--line); }
.btn-outline:hover { border-color: var(--olive); }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px;
}

.site-header {
  position: sticky; top: 0; z-index: 50; background: #fff;
  border-bottom: 1px solid var(--line);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: #d6d1c5; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.03em; }
.brand__dot { color: var(--gold); }
.brand__sub { font-size: 0.68rem; color: var(--olive); letter-spacing: 0.08em; margin-top: 3px; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { color: var(--ink); font-weight: 800; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; }
.site-nav a.is-active { color: var(--olive); }
.nav-cta { margin-left: 8px; text-transform: none; letter-spacing: 0; font-size: 0.9rem !important; }
.nav-toggle { display: none; background: none; border: 0; width: 42px; height: 42px; position: relative; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); transition: 0.2s; }
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 26px; }

.hero {
  position: relative; min-height: 78vh;
  display: flex; align-items: flex-end; color: #fff;
  isolation: isolate;
  padding-bottom: 90px;
  overflow: hidden;
  background: #111;
}
.hero-media {
  position: absolute; inset: 0; z-index: 0;
  display: grid; grid-template-columns: 1.05fr 0.95fr;
}
.hero-media__panel {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100%;
}
.hero-media__panel:first-child {
  clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%);
}
.hero-media__panel:last-child {
  margin-left: -8%;
}
.hero-media::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 52%;
  width: 4px;
  background: var(--gold);
  transform: translateX(-50%) rotate(6deg);
  box-shadow: 0 0 0 6px rgba(0,0,0,.18);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(8,8,8,.78) 0%, rgba(8,8,8,.42) 48%, rgba(8,8,8,.22) 100%);
}
.hero__inner { position: relative; z-index: 2; padding: 90px 0 48px; max-width: 760px; }
.hero h1 { color: #fff; text-transform: uppercase; max-width: 14ch; }
.hero .lead { color: rgba(255,255,255,.9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.hero-donate {
  width: min(1180px, calc(100% - 40px));
  margin: -70px auto 0;
  position: relative; z-index: 3;
  background: var(--gold);
  border: 0;
  border-radius: 18px;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 1.1fr 1.6fr auto;
  gap: 16px;
  align-items: center;
  box-shadow: var(--shadow);
}
.hero-donate h2, .hero-donate .donate-box__lead, .hero-donate .donate-box__note { display: none; }
.hero-donate__copy { color: #111; }
.hero-donate__copy strong { display: block; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.95rem; }
.hero-donate__copy span { font-size: 0.82rem; font-weight: 600; }
.hero-donate .amount-grid { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.hero-donate .amount-chip span {
  background: transparent; border-color: rgba(0,0,0,.18); color: #111; min-width: 64px; border-radius: 999px; padding: 8px 12px;
}
.hero-donate .amount-chip input:checked + span,
.hero-donate .amount-chip:hover span {
  background: #fff; border-color: #fff; color: #111;
}
.hero-donate .btn-dark { padding: 14px 28px; }
.hero-donate__custom { margin: 0; }
.hero-donate__custom input { background: #fff; border: 0; min-width: 90px; }

.stats-strip { margin-top: 28px; position: relative; z-index: 2; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 22px; text-align: center; box-shadow: var(--shadow-sm);
}
.stat-card strong { display: block; font-size: 2.2rem; color: var(--olive); font-weight: 800; }
.stat-card span { color: var(--muted); font-size: 0.86rem; letter-spacing: 0.04em; }

.section { padding: 88px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; text-align: center; }
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.split-mission { position: relative; }
.collage { display: grid; grid-template-columns: 1.2fr 0.8fr; grid-template-rows: 1fr 1fr; gap: 14px; min-height: 520px; }
.collage img { width: 100%; height: 100%; object-fit: cover; border-radius: 22px; }
.collage img:first-child { grid-row: 1 / span 2; }

.impact-orb {
  position: absolute; right: -20px; bottom: 30px; width: 150px; height: 150px;
  border-radius: 50%; background: #111; color: #fff; display: grid; place-items: center;
  text-align: center; box-shadow: var(--shadow); z-index: 2;
}
.impact-orb strong { display: block; font-size: 2rem; color: var(--gold); line-height: 1; }
.impact-orb span { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 800; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 32px; }
.value { background: var(--cream-2); border-radius: var(--radius-sm); padding: 18px; }
.value i { color: var(--olive); margin-bottom: 8px; }
.value h3 { font-size: 0.95rem; margin: 0 0 4px; }

.cards-3, .cards-4, .family-grid, .cause-grid, .story-grid { display: grid; gap: 22px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.family-grid { grid-template-columns: repeat(3, 1fr); }
.cause-grid { grid-template-columns: repeat(3, 1fr); }
.story-grid { grid-template-columns: repeat(3, 1fr); }

.icon-card, .story-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: 0.25s ease;
}
.cause-card {
  background: #fff; border: 1px solid #F1D98A; border-radius: 22px; padding: 28px;
  box-shadow: none; transition: 0.25s ease;
}
.icon-card:hover, .cause-card:hover, .story-card:hover, .family-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow);
}
.icon-card i, .cause-card .cause-icon {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold-soft); color: #B8860B; margin-bottom: 16px; font-size: 1.2rem;
}

.family-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 22px;
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.family-card__media { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; }
.family-card__media img { width: 100%; height: 100%; object-fit: cover; transition: 0.4s ease; }
.family-card:hover .family-card__media img { transform: scale(1.04); }
.family-card__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.family-card__meta { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 0.82rem; margin: 0; }
.family-card__meta i { color: var(--gold); margin-right: 4px; }
.family-card h3 a { color: var(--ink); }
.family-card__funds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; font-size: 0.9rem; }
.family-card__funds small { display: block; color: var(--muted); font-size: 0.72rem; }
.family-card .btn { margin-top: auto; }

.badge {
  position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,.94);
  color: var(--olive); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em;
  padding: 6px 10px; border-radius: 999px;
}
.badge--fully_supported { color: #0F6B4D; }
.badge--paused { color: #7a5b20; }
.badge--active { color: var(--olive); }

.progress { height: 8px; background: var(--cream-2); border-radius: 99px; overflow: hidden; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--olive), var(--gold)); border-radius: 99px; }

.page-hero {
  position: relative; min-height: 340px; display: flex; align-items: flex-end;
  background: linear-gradient(180deg, rgba(8,8,8,.45), rgba(8,8,8,.62)), var(--hero-image) center/cover no-repeat;
  color: #fff; padding: 80px 0 56px;
}
.page-hero h1 { color: #fff; }
.page-hero .lead { color: rgba(255,255,255,.86); }
.page-hero .eyebrow { color: var(--gold-2); }

.family-detail { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: start; }
.family-detail__media { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.family-detail__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.prose { font-size: 1.05rem; }
.prose h2 { font-size: 1.5rem; margin-top: 1.4em; }

.donate-box {
  background: var(--white); border: 1px solid var(--line); border-radius: 24px;
  padding: 28px; box-shadow: var(--shadow); position: sticky; top: 100px;
}
.donate-box.hero-donate {
  position: relative;
  top: auto;
  background: var(--gold);
  border: 0;
  box-shadow: var(--shadow);
}
.donate-box__lead, .donate-box__note { color: var(--muted); font-size: 0.9rem; }
.amount-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.amount-chip { cursor: pointer; }
.amount-chip input { position: absolute; opacity: 0; pointer-events: none; }
.amount-chip span {
  display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 8px; font-weight: 800; background: var(--cream); transition: 0.15s;
}
.amount-chip input:checked + span, .amount-chip:hover span {
  border-color: var(--olive); background: var(--gold); color: #111;
}
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; font-weight: 700; font-size: 0.88rem; }
.field em { font-weight: 400; color: var(--muted); font-style: normal; }
.field input, .field textarea, .field select, .form-control {
  font: inherit; font-weight: 500; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--paper); color: var(--charcoal); width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.hidden { display: none !important; }

.cta-band {
  background: linear-gradient(120deg, #08281E, #0F6B4D);
  color: #fff; text-align: center; padding: 88px 0; position: relative; overflow: hidden;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.82); }
.cta-band::after {
  content: ""; position: absolute; width: 420px; height: 420px; border: 1px solid rgba(245,196,0,.28);
  border-radius: 50%; right: -80px; top: -80px;
}

.impact-numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.impact-numbers article {
  background: var(--white); border-radius: var(--radius); padding: 28px 20px; text-align: center; border: 1px solid var(--line);
}
.impact-numbers strong { font-size: 2.4rem; color: var(--olive); display: block; font-weight: 800; }

.story-card img { width: 100%; height: 180px; object-fit: cover; border-radius: 14px; margin-bottom: 16px; }
.story-card time { color: var(--muted); font-size: 0.8rem; }

.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 40px; }
.contact-card { background: #111; color: #F4EBD0; border-radius: 24px; padding: 36px; }
.contact-card h2, .contact-card a { color: #fff; }
.contact-card p, .contact-card a { color: #F4EBD0; }

.site-footer { background: #0E0E0E; color: #d9d2c4; padding-top: 72px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 48px; }
.site-footer h2 { color: var(--gold); font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 8px; }
.site-footer a { color: #d9d2c4; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); }
.footer__bottom-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 0; font-size: 0.86rem; }
.footer__bottom-inner a { margin-left: 16px; }
.social-row { display: flex; gap: 10px; margin-top: 14px; }
.footer-person { margin: 0 0 18px; }
.footer-person .wa-btn { margin-top: 8px; }
.wa-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: #25D366; color: #fff !important; font-size: 1.25rem;
}
.wa-btn:hover { background: #1ebe5d; color: #fff; }
.btn-wa {
  background: #25D366; color: #fff; border-radius: 999px;
}
.btn-wa:hover { background: #1ebe5d; color: #fff; }
.contact-people { display: grid; gap: 22px; margin-bottom: 8px; }
.contact-people article + article { border-top: 1px solid rgba(255,255,255,.15); padding-top: 18px; }
.social-row a {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.15); color: #fff;
}

.flash-stack { width: min(1180px, calc(100% - 40px)); margin: 16px auto 0; }
.flash { padding: 12px 16px; border-radius: 12px; margin-bottom: 8px; }
.flash--success { background: var(--olive-soft); color: var(--olive-deep); }
.flash--error { background: #f6e4e1; color: var(--danger); }
.flash--info { background: var(--gold-soft); color: #111; }

.mobile-donate {
  display: none; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40;
  background: var(--gold); color: #111; text-align: center; padding: 14px; border-radius: 999px;
  font-weight: 800; box-shadow: var(--shadow);
}
.mobile-donate:hover { color: #111; }

.empty-state { text-align: center; padding: 48px 20px; color: var(--muted); background: var(--white); border: 1px dashed var(--line); border-radius: var(--radius); }

.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.chip {
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
  border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 0.86rem;
}
.chip.is-active { background: var(--gold); color: #111; border-color: var(--gold); }

.donate-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.legal { max-width: 760px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.mt-2 { margin-top: 16px; }
.section.alt { background: #fff; }

.reveal { opacity: 0; transform: translateY(16px); animation: rise 0.7s ease forwards; }
.reveal:nth-child(2) { animation-delay: .08s; }
.reveal:nth-child(3) { animation-delay: .16s; }
.reveal:nth-child(4) { animation-delay: .24s; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (max-width: 980px) {
  .split, .family-detail, .contact-grid, .footer__grid, .stats-grid, .impact-numbers, .donate-layout,
  .cards-4, .cards-3, .family-grid, .cause-grid, .story-grid, .values, .collage, .hero-donate {
    grid-template-columns: 1fr;
  }
  .collage { min-height: auto; }
  .collage img { height: 220px; }
  .donate-box { position: static; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; flex-direction: column; align-items: stretch; padding: 16px 20px 24px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .nav-cta { margin: 8px 0 0; }
  .mobile-donate { display: block; }
  body { padding-bottom: 76px; }
  .hero { min-height: 72vh; padding-bottom: 110px; }
  .hero-media { grid-template-columns: 1fr 1fr; }
  .hero-media__panel:first-child { clip-path: none; }
  .hero-media__panel:last-child { margin-left: 0; }
  .hero-media::after { left: 50%; transform: none; width: 3px; }
  .hero-donate { margin-top: -80px; }
  .impact-orb { right: 8px; bottom: -20px; width: 120px; height: 120px; }
}

@media (max-width: 640px) {
  .container { width: min(1180px, calc(100% - 28px)); }
  .section { padding: 64px 0; }
  .amount-grid { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { padding: 70px 0 36px; }
}
