/* ==========================================================================
   YAMB — Stylesheet utama
   Struktur: 1) Base  2) Layout  3) Komponen  4) Header/Footer/Nav
             5) Halaman: Beranda, Program, Detail, Tentang, Kontak
             6) Utilitas & overlay
   ========================================================================== */

/* 1) BASE ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--c-text);
  background: var(--c-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--r-xs); }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--c-navy-900); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
}
.skip-link:focus { top: 12px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}

/* 2) LAYOUT -------------------------------------------------------------- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2 * var(--gutter), 1200px); margin-inline: auto; }
.section { padding-block: var(--s-8); }
main { display: block; }
@media (max-width: 991.98px) {
  body { padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom)); }
}

/* 3) KOMPONEN ------------------------------------------------------------ */

/* Section title with green accent bar */
.section-title {
  font-size: var(--fs-xl); line-height: var(--lh-snug);
  font-weight: var(--fw-extrabold); color: var(--c-navy-900); letter-spacing: -.01em;
}
.section-title::after {
  content: ""; display: block; width: 36px; height: 4px; margin-top: 8px;
  border-radius: 4px; background: var(--c-green-600);
}
.section-sub { margin-top: 8px; color: var(--c-text-muted); font-size: var(--fs-sm); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-4); }
.link-more {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--c-navy-900);
}
.link-more .icon { width: 16px; height: 16px; }
.link-more:hover { color: var(--c-green-600); }

/* Buttons */
.btn {
  --_bg: var(--c-green-600); --_fg: #fff; --_bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--btn-h); padding: 0 22px; border-radius: var(--r-sm);
  background: var(--_bg); color: var(--_fg); border: 1.5px solid var(--_bd);
  font-weight: var(--fw-bold); font-size: var(--fs-base); line-height: 1.1; white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.btn .icon { width: 18px; height: 18px; }
.btn:hover { --_bg: var(--c-green-700); }
.btn:active { transform: translateY(1px); }
.btn--gold { --_bg: var(--c-gold-500); }
.btn--gold:hover { --_bg: var(--c-gold-600); }
.btn--outline { --_bg: #fff; --_fg: var(--c-navy-900); --_bd: var(--c-border-strong); }
.btn--outline:hover { --_bg: var(--c-bg-soft); --_bd: var(--c-navy-600); }
.btn--outline-green { --_bg: #fff; --_fg: var(--c-green-600); --_bd: var(--c-green-600); }
.btn--outline-green:hover { --_bg: var(--c-green-50); }
.btn--outline-navy { --_bg: #fff; --_fg: var(--c-navy-900); --_bd: var(--c-navy-800); }
.btn--outline-navy:hover { --_bg: var(--c-bg-hero); }
.btn--soft { --_bg: var(--c-bg-copy); --_fg: var(--c-navy-900); }
.btn--soft:hover { --_bg: #cfdde5; }
.btn--pill-soft { --_bg: var(--c-bg-pill); --_fg: var(--c-navy-900); border-radius: var(--r-md); font-weight: var(--fw-semibold); font-size: var(--fs-sm); }
.btn--pill-soft:hover { --_bg: #dbe5f0; }
.btn--sm { min-height: var(--btn-h-sm); padding: 0 16px; font-size: var(--fs-sm); }
.btn--block { width: 100%; }
.btn--icon { width: 36px; min-height: 36px; padding: 0; border-radius: var(--r-sm); }

/* Tag / badge kategori */
.tag {
  display: inline-flex; align-items: center; height: 24px; padding: 0 11px;
  border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: var(--fw-bold);
  background: var(--tag-green-bg); color: var(--tag-green-fg);
}
.tag--zakat, .tag--kebencanaan { background: var(--tag-blue-bg); color: var(--tag-blue-fg); }
.tag--kemanusiaan { background: var(--tag-gold-bg); color: var(--tag-gold-fg); }

/* Progress */
.progress { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 10px; }
.progress__bar { height: 9px; border-radius: var(--r-pill); background: var(--c-track); overflow: hidden; }
.progress__fill { height: 100%; border-radius: inherit; background: var(--c-green-400); }
.progress__pct { font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--c-navy-900); }

/* Program card */
.p-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--c-border);
  border-radius: var(--r-md); box-shadow: var(--sh-card); overflow: hidden; min-width: 0;
  transition: box-shadow var(--t-fast), transform var(--t-fast);
}
.p-card:hover { box-shadow: var(--sh-float); }
.p-card__media { position: relative; aspect-ratio: var(--card-ratio, 2.75); background: var(--c-bg-soft); overflow: hidden; }
.p-card__media img { width: 100%; height: 100%; object-fit: cover; }
.p-card__media .tag { position: absolute; left: 9px; top: 8px; }
.p-card__body { display: flex; flex-direction: column; flex: 1; padding: 12px 12px 14px; }
.p-card__title { font-size: var(--card-title, 1rem); line-height: 1.25; font-weight: var(--fw-extrabold); color: var(--c-navy-900); }
.p-card__title a:hover { color: var(--c-green-600); }
.p-card__desc { margin-top: 5px; font-size: var(--card-desc, .8125rem); line-height: 1.4; color: var(--c-text-muted); }
.p-card__stats { margin-top: auto; padding-top: 14px; }
.p-card__amounts { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.p-card__raised { font-size: var(--card-amount, .8125rem); font-weight: var(--fw-extrabold); color: var(--c-navy-900); }
.p-card__target { margin-left: auto; }
.p-card__raised small, .p-card__target { font-size: .65rem; font-weight: var(--fw-medium); color: var(--c-text-muted); }
.p-card__raised small { margin-left: 3px; }
.p-card__deadline { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: var(--fs-xs); color: var(--c-text-muted); }
.p-card__deadline .icon { width: 14px; height: 14px; color: var(--c-green-600); }
.p-card .btn { margin-top: 12px; min-height: 38px; font-size: var(--fs-sm); border-radius: var(--r-xs); }
.p-card .btn .icon { width: 16px; height: 16px; }

/* Grid program */
.program-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.empty-state {
  grid-column: 1 / -1; padding: 40px 20px; text-align: center; border: 1px dashed var(--c-border-strong);
  border-radius: var(--r-lg); color: var(--c-text-muted); background: var(--c-bg-soft);
}
.empty-state strong { display: block; color: var(--c-navy-900); font-size: var(--fs-md); margin-bottom: 4px; }

/* Category cards (Salurkan Kebaikan) */
.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cat-card {
  position: relative; display: flex; flex-direction: column; gap: 2px; min-height: 134px;
  padding: 14px 14px 14px; background: #fff; border: 1px solid var(--c-border);
  border-radius: var(--r-lg); box-shadow: var(--sh-xs); transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.cat-card:hover { border-color: var(--c-green-600); box-shadow: var(--sh-card); }
.cat-card__icon { width: 44px; height: 44px; color: var(--c-green-600); margin-bottom: 8px; stroke-width: 1.6; }
.cat-card__title { font-size: var(--fs-base); font-weight: var(--fw-extrabold); color: var(--c-navy-900); line-height: 1.25; }
.cat-card__desc { font-size: var(--fs-sm); color: var(--c-text-muted); line-height: 1.4; }
.cat-card__chev { position: absolute; right: 14px; top: 40px; width: 18px; height: 18px; color: var(--c-navy-900); }

/* Bank card & QRIS (Mudah Berbagi Kebaikan) */
.bank-card { border: 1px solid var(--c-border); border-radius: var(--r-md); background: #fff; padding: 0 0 12px; box-shadow: var(--sh-xs); }
.bank-card__top { display: grid; grid-template-columns: 104px 1fr; align-items: stretch; }
.bank-card__logo { display: grid; place-items: center; padding: 14px 12px; border-right: 1px solid var(--c-border); }
.bank-card__logo img { width: 76px; }
.bank-card__info { position: relative; padding: 14px 58px 14px 18px; }
.bank-card__name { font-size: var(--fs-sm); color: var(--c-text); }
.bank-card__number { font-size: 1.5rem; font-weight: var(--fw-extrabold); letter-spacing: .01em; color: var(--c-navy-900); line-height: 1.3; font-variant-numeric: tabular-nums; }
.bank-card__copy { position: absolute; right: 14px; top: 50%; transform: translateY(-40%); border: 1px solid var(--c-border-strong); background: #fff; color: var(--c-navy-900); }
.bank-card__copy:hover { background: var(--c-bg-soft); }
.bank-card .btn--soft { margin: 0 12px; width: calc(100% - 24px); min-height: 38px; font-size: var(--fs-sm); font-weight: var(--fw-semibold); }

.qris-card { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 16px; border-radius: var(--r-md); background: var(--c-bg-panel); text-align: center; }
.qris-card__title { font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--c-navy-900); }
.qris-card__img { width: 130px; border-radius: 6px; box-shadow: var(--sh-xs); background: #fff; }
.qris-card .btn { background: #fff; min-height: 36px; font-size: var(--fs-xs); font-weight: var(--fw-semibold); }
.data-note {
  display: flex; gap: 6px; align-items: flex-start; font-size: .6875rem; line-height: 1.35;
  color: #7a5a12; background: #fff7e3; border: 1px solid #f1dca6; border-radius: 6px; padding: 5px 8px; text-align: left;
}
.data-note .icon { width: 13px; height: 13px; margin-top: 1px; }
[hidden] { display: none !important; }

/* Zakat calculator */
.zakat-card { display: grid; gap: 16px; padding: 16px; background: var(--c-green-50); border: 1px solid #d6ebe2; border-radius: var(--r-md); }
.field-label { display: block; font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--c-text); margin-bottom: 8px; }
.money-input { position: relative; }
.money-input span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--c-text-soft); font-size: var(--fs-base); }
.money-input input {
  width: 100%; height: 48px; padding: 0 14px 0 44px; border: 1px solid var(--c-border-strong); border-radius: var(--r-sm);
  background: #fff; font-size: var(--fs-md); font-variant-numeric: tabular-nums;
}
.money-input input:focus { outline: none; border-color: var(--c-green-500); box-shadow: var(--focus-ring); }
.nisab-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 12px 0 14px; font-size: var(--fs-sm); color: var(--c-text-muted); }
.nisab-row__label { display: inline-flex; align-items: center; gap: 6px; }
.nisab-row__value { display: inline-flex; align-items: center; gap: 8px; font-weight: var(--fw-bold); color: var(--c-navy-900); }
.nisab-row button { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: var(--c-text-muted); }
.nisab-row button:hover { background: rgba(4, 46, 85, .07); color: var(--c-navy-900); }
.nisab-row .icon { width: 16px; height: 16px; }
.nisab-edit { display: flex; gap: 8px; margin: -4px 0 14px; }
.nisab-edit input { flex: 1; min-width: 0; height: 38px; padding: 0 10px; border: 1px solid var(--c-border-strong); border-radius: var(--r-xs); background: #fff; }
.zakat-result { display: flex; gap: 12px; padding: 14px; background: rgba(255, 255, 255, .65); border: 1px solid #d9e7e1; border-radius: var(--r-sm); }
.zakat-result__icon { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--c-bg-copy); color: var(--c-navy-900); }
.zakat-result__icon .icon { width: 15px; height: 15px; }
.zakat-result__title { font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--c-navy-900); }
.zakat-result__value { margin: 6px 0; font-size: var(--fs-lg); font-weight: var(--fw-extrabold); color: var(--c-navy-900); }
.zakat-result__value.is-ok { color: var(--c-green-600); }
.zakat-result__msg { font-size: var(--fs-sm); color: var(--c-text); margin-bottom: 6px; }
.zakat-result__note { font-size: var(--fs-xs); line-height: 1.5; color: var(--c-text-muted); }
.zakat-result__cta { margin-top: 10px; }
@media (min-width: 640px) {
  .zakat-card { grid-template-columns: 1.1fr 1fr; align-items: start; }
}

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--c-border); border-radius: var(--r-sm); background: #fff; box-shadow: var(--sh-xs); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none;
  padding: 11px 14px; cursor: pointer; font-size: var(--fs-sm); color: var(--c-text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 16px; height: 16px; transition: transform var(--t-fast); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details[open] summary { font-weight: var(--fw-semibold); color: var(--c-navy-900); }
.faq__answer { padding: 0 14px 14px; font-size: var(--fs-sm); color: var(--c-text-muted); line-height: 1.6; }
.faq__answer a { color: var(--c-green-600); font-weight: var(--fw-semibold); text-decoration: underline; }

/* Carousel dots */
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.dots button { width: 9px; height: 9px; border-radius: 50%; background: #cdd6df; }
.dots button[aria-current="true"] { background: var(--c-navy-900); }

/* Breadcrumb */
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--c-navy-900); }
.breadcrumb li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumb li + li::before { content: ""; width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-top: 1.6px solid currentColor; transform: rotate(45deg); margin-right: 4px; }
.breadcrumb a:hover { color: var(--c-green-600); }

/* 4) HEADER / NAV / FOOTER --------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60; height: var(--header-h);
  background: rgba(255, 255, 255, .96); backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid rgba(4, 46, 85, .06);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: var(--s-6); }
.brand { display: inline-flex; flex: none; }
.brand img { height: 42px; width: auto; }
.main-nav { display: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.header-search { display: none; width: 40px; height: 40px; border-radius: 50%; place-items: center; color: var(--c-navy-900); }
.header-search:hover { background: var(--c-bg-soft); }
.header-search .icon { width: 20px; height: 20px; }
.header-donate { min-height: 40px; padding: 0 18px; border-radius: var(--r-sm); font-size: var(--fs-sm); }
.header-donate .label-long { display: none; }
.menu-toggle { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-sm); color: var(--c-navy-900); }
.menu-toggle .icon { width: 26px; height: 26px; }

@media (min-width: 992px) {
  .brand img { height: 44px; }
  .main-nav { display: block; margin-left: clamp(24px, 8vw, 110px); }
  .main-nav ul { display: flex; gap: clamp(20px, 2.6vw, 38px); }
  .main-nav a {
    position: relative; display: block; padding: 18px 0; font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--c-navy-900);
  }
  .main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 3px; border-radius: 3px; background: var(--c-green-600); transform: scaleX(0); transition: transform var(--t-fast); }
  .main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
  .main-nav a[aria-current="page"] { color: var(--c-green-600); }
  .header-search { display: grid; }
  .header-donate .label-long { display: inline; }
  .header-donate .label-short { display: none; }
  .header-donate { padding: 0 22px; }
  .menu-toggle { display: none; }
}

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 120; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(2, 38, 71, .45); opacity: 0; transition: opacity .2s ease; }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(86vw, 340px); background: #fff; padding: 18px 20px 28px;
  transform: translateX(100%); transition: transform .25s ease; display: flex; flex-direction: column; gap: 18px; overflow-y: auto;
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; }
.drawer__head img { height: 38px; width: auto; }
.drawer nav a { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px; border-bottom: 1px solid var(--c-border); font-weight: var(--fw-semibold); color: var(--c-navy-900); }
.drawer nav a[aria-current="page"] { color: var(--c-green-600); }
.drawer nav .icon { width: 16px; height: 16px; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--c-navy-900); }
.icon-btn:hover { background: var(--c-bg-soft); }
.icon-btn .icon { width: 22px; height: 22px; }

/* Search form (drawer & dialog) */
.search-field { position: relative; }
.search-field .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--c-text-soft); pointer-events: none; }
.search-field input {
  width: 100%; height: 44px; padding: 0 12px 0 40px; border: 1px solid var(--c-border-strong); border-radius: var(--r-sm); background: #fff; font-size: var(--fs-sm);
}
.search-field input:focus { outline: none; border-color: var(--c-green-500); box-shadow: var(--focus-ring); }

/* Bottom nav (mobile) */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom); background: #fff; border-top: 1px solid var(--c-border);
  box-shadow: 0 -4px 18px rgba(10, 38, 71, .06);
}
.bottom-nav ul { height: var(--bottom-nav-h); display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: .6875rem; font-weight: var(--fw-medium); color: var(--c-navy-900); text-align: center; line-height: 1.15; }
.bottom-nav a .icon { width: 23px; height: 23px; stroke-width: 1.7; }
.bottom-nav a[aria-current="page"] { color: var(--c-green-600); font-weight: var(--fw-bold); }
.bottom-nav a[aria-current="page"] .icon--nav-fill { fill: currentColor; }
.bottom-nav .fab {
  width: 66px; height: 66px; margin-top: -30px; border-radius: 50%; justify-content: center; gap: 2px;
  background: var(--c-green-600); color: #fff; border: 4px solid #fff; box-shadow: var(--sh-fab); font-weight: var(--fw-semibold);
}
.bottom-nav .fab .icon { width: 22px; height: 22px; }
@media (min-width: 992px) { .bottom-nav { display: none; } }

/* Footer */
.site-footer { background: var(--c-navy-950); color: #d8e2ee; padding: 36px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 24px 20px; }
.footer-brand img { width: 118px; }
.footer-tagline { margin-top: 12px; font-size: var(--fs-base); line-height: 1.45; color: #fff; }
.footer-desc { display: none; margin-top: 16px; font-size: var(--fs-sm); line-height: 1.6; color: #c3d0de; }
.footer-col h2 { font-size: var(--fs-base); font-weight: var(--fw-bold); color: #fff; margin-bottom: 10px; }
.footer-col li + li { margin-top: 6px; }
.footer-col a { font-size: var(--fs-base); color: #d8e2ee; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-social { display: flex; gap: 14px; margin-top: 18px; }
.footer-social a { display: grid; place-items: center; width: 28px; height: 28px; color: #fff; }
.footer-social a:hover { color: var(--c-gold-300); }
.footer-social .icon { width: 26px; height: 26px; }
.footer-follow h2, .footer-contact, .footer-cta { display: none; }
.footer-contact li { display: flex; align-items: center; gap: 12px; font-size: var(--fs-sm); }
.footer-contact li + li { margin-top: 12px; }
.footer-contact .icon { width: 20px; height: 20px; color: #fff; }
.footer-bottom { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 18px; text-align: center; font-size: var(--fs-xs); color: #b9c7d6; }
.footer-cta .btn { min-height: 48px; padding: 0 30px; font-size: var(--fs-md); }
.footer-cta p { margin-top: 18px; font-size: var(--fs-xs); color: #b9c7d6; line-height: 1.6; }

@media (min-width: 992px) {
  .site-footer { padding: 26px 0 28px; }
  .footer-grid { grid-template-columns: minmax(0, 2.9fr) auto auto minmax(0, 1.5fr) minmax(0, 1.5fr); gap: 0; align-items: start; }
  .footer-grid > * { padding: 0 clamp(16px, 2.4vw, 36px); }
  .footer-grid > * + * { border-left: 1px solid rgba(255, 255, 255, .16); min-height: 96px; }
  .footer-grid > :first-child { padding-left: 0; display: grid; grid-template-columns: auto 1fr; gap: 0 36px; }
  .footer-grid > :last-child { border-left: 0; padding-right: 0; }
  .footer-brand img { width: 132px; }
  .footer-tagline { margin-top: 0; }
  .footer-desc { display: block; margin-top: 16px; }
  .footer-brand .footer-social { display: none; }
  .footer-col h2, .footer-follow h2 { font-size: var(--fs-sm); margin-bottom: 8px; }
  .footer-col a { font-size: var(--fs-sm); }
  .footer-follow h2 { display: block; }
  .footer-follow .footer-social { margin-top: 12px; }
  .footer-contact, .footer-cta { display: block; }
  .footer-bottom { display: none; }
  .footer-col li + li { margin-top: 4px; }
}
@media (max-width: 991.98px) { .footer-follow { display: none; } }

/* 5) HALAMAN ------------------------------------------------------------- */

/* ---------- Shared page hero (Program, Tentang, Kontak, Detail) ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--c-bg-hero); }
.page-hero__media { position: absolute; inset: 0 0 0 auto; width: 62%; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 30%; }
.page-hero__media::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, var(--c-bg-hero) 0%, rgba(236, 245, 253, .85) 12%, rgba(236, 245, 253, 0) 45%);
}
.page-hero__inner { position: relative; z-index: 2; padding-block: 26px 28px; min-height: 238px; display: flex; flex-direction: column; justify-content: center; }
.page-hero__title { margin-top: 14px; font-size: var(--fs-hero); line-height: 1.08; font-weight: var(--fw-extrabold); color: var(--c-navy-900); letter-spacing: -.02em; max-width: 13ch; }
.page-hero__title em { font-style: normal; color: var(--c-green-500); }
.page-hero__sub { margin-top: 10px; font-size: var(--fs-md); color: var(--c-text); max-width: 34ch; }
.trust-list { display: none; }
@media (max-width: 767.98px) {
  .page-hero__media { width: 58%; }
  .page-hero__media::before { background: linear-gradient(90deg, var(--c-bg-hero) 0%, rgba(236, 245, 253, .7) 25%, rgba(236, 245, 253, 0) 70%); }
  .page-hero__inner { min-height: 0; padding-block: 18px 22px; }
  .page-hero__title { font-size: 1.875rem; max-width: 11ch; text-shadow: 0 0 12px rgba(236, 245, 253, .9); }
  .page-hero--about .page-hero__media { width: 48%; }
  .page-hero--about .page-hero__sub { max-width: 26ch; }
  .page-hero__sub { font-size: var(--fs-sm); max-width: 22ch; color: var(--c-text-muted); }
}
@media (min-width: 992px) {
  .page-hero__media { width: 52%; right: 0; }
  .page-hero__title { font-size: clamp(2.5rem, 1.2rem + 2.6vw, 3.4rem); max-width: none; }
  .page-hero__sub { font-size: var(--fs-lg); max-width: 40ch; }
  .page-hero--program .page-hero__sub { max-width: none; }
  .trust-list { display: flex; flex-wrap: wrap; gap: 14px 22px; margin-top: 18px; }
  .trust-list li { display: flex; align-items: center; gap: 10px; }
  .trust-list .trust-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--c-green-600); box-shadow: var(--sh-xs); }
  .trust-list .icon { width: 20px; height: 20px; }
  .trust-list strong { display: block; font-size: var(--fs-sm); color: var(--c-navy-900); line-height: 1.2; }
  .trust-list span { font-size: var(--fs-xs); color: var(--c-text-muted); }
}

/* ---------- BERANDA ---------- */
.home-hero { position: relative; overflow: hidden; background: var(--c-bg-hero); }
.home-hero__media { position: absolute; inset: 0; }
.home-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.home-hero__media picture { display: contents; }
.home-hero__inner { position: relative; z-index: 2; }
.home-hero__eyebrow { font-size: var(--fs-sm); font-weight: var(--fw-semibold); letter-spacing: .04em; text-transform: uppercase; color: var(--c-navy-900); }
.home-hero__title { font-size: var(--fs-hero); line-height: 1.1; font-weight: var(--fw-extrabold); letter-spacing: -.02em; color: var(--c-navy-900); }
.home-hero__title span { display: block; color: var(--c-green-500); }
.home-hero__text { margin-top: 10px; font-size: var(--fs-base); color: var(--c-text); max-width: 46ch; }
.home-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.home-hero__actions .btn { min-width: 190px; justify-content: space-between; }

/* Mobile hero: foto penuh + overlay gelap */
@media (max-width: 991.98px) {
  .home-hero { margin: 0; border-radius: 18px 18px 0 0; background: #1b2530; }
  .home-hero__media .hero-wood { display: none; }
  .home-hero__media img { object-position: 50% 20%; }
  .home-hero__media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(8, 14, 20, .62) 0%, rgba(8, 14, 20, .42) 50%, rgba(8, 14, 20, 0) 78%),
                linear-gradient(0deg, rgba(8, 14, 20, .5) 0%, rgba(8, 14, 20, 0) 55%);
  }
  .home-hero__inner { display: flex; flex-direction: column; justify-content: flex-end; min-height: min(130vw, 540px); padding-block: 170px 44px; }
  .home-hero__eyebrow { display: none; }
  .home-hero__title { color: #fff; font-size: clamp(1.75rem, 8vw, 2.125rem); line-height: 1.12; max-width: 9.5ch; }
  .home-hero__title span { color: var(--c-gold-300); }
  .home-hero__text { color: #fff; font-size: clamp(1rem, 4.4vw, 1.125rem); line-height: 1.35; max-width: 20ch; }
  .home-hero__actions { flex-direction: column; gap: 12px; width: min(100%, 256px); }
  .home-hero__actions .btn { width: 100%; min-height: 46px; border-radius: 12px; }
  .home-hero__actions .btn--outline { --_bg: rgba(10, 16, 22, .35); --_fg: #fff; --_bd: rgba(255, 255, 255, .9); justify-content: center; gap: 12px; }
  .home-hero__actions .btn--primary { justify-content: center; gap: 12px; }
}

/* Mobile/tablet white sheet overlapping hero */
.home-body { position: relative; z-index: 3; background: #fff; }
@media (max-width: 991.98px) {
  .home-body { margin-top: -18px; border-radius: 20px 20px 0 0; padding-top: 22px; }
}

.home-layout { display: grid; gap: 34px; padding-bottom: 36px; }
.home-aside { display: contents; }
.home-cats { order: 1; } .home-programs { order: 2; } .home-gallery { order: 3; } .home-donate { order: 4; } .home-about { order: 5; } .home-faq { order: 6; }
.home-cats .section-sub { margin-bottom: 16px; }
.home-cats .cat--infak { order: 4; }
.home-cats__more { margin-top: 18px; }
.home-cats__more .btn { width: 100%; min-height: 46px; }

.home-programs .program-track { display: grid; grid-auto-flow: column; grid-auto-columns: 88%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 10px; scrollbar-width: none; margin-inline: -2px; }
.home-programs .program-track::-webkit-scrollbar { display: none; }
.home-programs .p-card { scroll-snap-align: start; --card-ratio: 2.75; --card-title: 1.125rem; --card-desc: .875rem; --card-amount: .875rem; }

.gallery-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 38%; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.gallery-strip::-webkit-scrollbar { display: none; }
.gallery-strip button { display: block; border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 1.65; }
.gallery-strip img, .gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery-strip button:hover img, .gallery-grid button:hover img { transform: scale(1.04); }
.gallery-grid { display: none; }
.home-gallery__more { display: flex; justify-content: center; margin-top: 14px; }
.home-gallery__more .btn { min-width: 76%; }
.home-gallery .section-head .link-more { display: none; }

.home-donate__grid { display: grid; gap: 14px; margin-top: 16px; }

.home-about__grid { display: grid; grid-template-columns: 1fr 42%; gap: 16px; align-items: start; }
.home-about__photo { border-radius: var(--r-md); overflow: hidden; aspect-ratio: .78; grid-row: 1 / span 2; grid-column: 2; }
.home-about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 35% 50%; }
.home-about__text { font-size: var(--fs-sm); color: var(--c-text); line-height: 1.55; margin-top: 16px; }
.home-about__card .btn { margin-top: 16px; min-height: 42px; width: 100%; justify-content: center; }
.home-about__title-desktop { display: none; }

.home-faq .faq { margin-top: 16px; }

@media (min-width: 640px) and (max-width: 991.98px) {
  .home-programs .program-track { grid-auto-columns: 48%; }
  .home-donate__grid { grid-template-columns: 1.3fr 1fr; align-items: start; }
  .gallery-strip { grid-auto-columns: 30%; }
}

/* Desktop home — satu alur vertikal:
   Hero → Salurkan Kebaikan → Program Unggulan → Rekening & QRIS → Kalkulator Zakat → FAQ
   → Dokumentasi Unggulan → Mengenal YAMB. (Tampilan mobile TIDAK diubah.) */
.home-dok { display: none; }
@media (min-width: 992px) {
  .home-hero__media { left: 44%; right: 0; }
  .home-hero__media img { object-position: 0 30%; }
  .home-hero__media::before {
    content: ""; position: absolute; inset: 0 auto 0 0; width: 140px; z-index: 1;
    background: linear-gradient(90deg, var(--c-bg-hero) 0%, rgba(236, 245, 253, .6) 45%, rgba(236, 245, 253, 0) 100%);
  }
  .home-hero__media .hero-wood { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 20% 50%; }
  .home-hero__media .hero-photo { -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent 100%); mask-image: linear-gradient(90deg, #000 86%, transparent 100%); position: relative; width: auto; height: 100%; max-width: none; aspect-ratio: 810 / 472; }
  .home-hero__inner { min-height: 330px; padding-block: 40px 40px; display: flex; align-items: center; }
  .home-hero__copy { max-width: 46%; }
  .home-hero__title { font-size: clamp(2rem, 1rem + 1.6vw, 2.75rem); margin-top: 8px; }
  .home-hero__text { font-size: var(--fs-md); max-width: 46ch; }
  .home-hero__actions { margin-top: 22px; }
  .home-hero__actions .btn { min-width: 0; min-height: 46px; gap: 18px; padding: 0 22px; }
  .home-hero__actions .btn--outline { padding: 0 28px; }

  .home-layout { grid-template-columns: minmax(0, 1fr); row-gap: 52px; padding-top: 40px; padding-bottom: 56px; }
  .home-cats { order: 1; } .home-programs { order: 2; } .home-donate { order: 3; } .home-faq { order: 4; }
  .home-dok { order: 5; display: block; } .home-about { order: 6; } .home-gallery { display: none; }

  /* Salurkan Kebaikan — tepat setelah hero */
  .home-cats .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .home-cats .cat--infak { order: 0; }
  .home-cats .cat-card { min-height: 0; padding: 18px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 14px; row-gap: 2px; align-items: center; }
  .home-cats .cat-card__icon { width: 46px; height: 46px; margin: 0; grid-column: 1; grid-row: 1 / 3; }
  .home-cats .cat-card__title { font-size: var(--fs-md); grid-column: 2; grid-row: 1; align-self: end; }
  .home-cats .cat-card__desc { font-size: var(--fs-sm); grid-column: 2; grid-row: 2; align-self: start; }
  .home-cats .cat-card__chev { position: static; grid-column: 3; grid-row: 1 / 3; }
  .home-cats__more { display: none; }

  /* Program Unggulan */
  .home-programs .section-head { margin-bottom: 18px; }
  .home-programs .program-track { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-columns: auto; overflow: visible; gap: 16px; padding: 0; margin: 0; }
  .home-programs .p-card { --card-ratio: 2.1; --card-title: 1rem; --card-desc: .8125rem; --card-amount: .8125rem; }
  .home-programs .dots { display: none; }

  /* Rekening & QRIS, lalu kalkulator zakat */
  .home-donate__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 20px; row-gap: 18px; margin-top: 0; align-items: stretch; }
  .home-donate__intro { grid-column: 1 / -1; }
  .home-donate .bank-card { display: flex; flex-direction: column; justify-content: center; padding: 8px 0 18px; }
  .home-donate .bank-card__top { grid-template-columns: 130px 1fr; }
  .home-donate .bank-card__logo img { width: 96px; }
  .home-donate .bank-card__number { font-size: 1.75rem; }
  .home-donate .bank-card .btn--soft { margin: 8px 18px 0; width: calc(100% - 36px); min-height: 42px; }
  .home-donate .qris-card { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto 1fr; align-items: start; justify-items: start; text-align: left; column-gap: 22px; row-gap: 10px; padding: 18px 22px; }
  .home-donate .qris-card > button:first-of-type { grid-column: 1; grid-row: 1 / 4; }
  .home-donate .qris-card > :not(button:first-of-type) { grid-column: 2; }
  .home-donate .qris-card__title { align-self: end; margin-top: 24px; }
  .home-donate .qris-card__img { width: 150px; }
  .home-donate .qris-card__title { font-size: var(--fs-md); font-weight: var(--fw-bold); }
  .home-zakat { margin-top: 44px; }
  .home-zakat .zakat-card { grid-template-columns: 1.2fr 1fr; padding: 20px; gap: 20px; }

  /* FAQ */
  .home-faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px; align-items: start; }
  .home-faq .faq { margin-top: 0; }
  .home-faq__aside { display: block; }
  .home-faq__aside p { margin-top: 12px; font-size: var(--fs-sm); color: var(--c-text-muted); max-width: 34ch; }
  .home-faq__aside .btn { margin-top: 16px; }

  /* Dokumentasi Unggulan */
  .dok-featured { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }

  /* Mengenal YAMB */
  .home-about__grid { grid-template-columns: 42% 1fr; gap: 28px; margin-top: 16px; align-items: stretch; }
  .home-about__photo { grid-column: 1; grid-row: 1; aspect-ratio: 2.3; }
  .home-about__photo img { object-position: 45% 35%; }
  .home-about__card { grid-column: 2; background: var(--c-bg-panel); border-radius: var(--r-md); padding: 28px; display: flex; flex-direction: column; justify-content: center; }
  .home-about__text { margin-top: 0; font-size: var(--fs-md); max-width: 52ch; }
  .home-about__card .btn { width: auto; align-self: flex-start; padding: 0 22px; background: #fff; }
  .home-layout .home-about > .section-title .t-mobile { display: none; }
  .home-layout .home-about > .section-title .t-desktop { display: inline; }
}
.home-faq__aside { display: contents; }
.home-faq__aside p, .home-faq__aside .btn { display: none; }
@media (min-width: 992px) {
  .home-faq .home-faq__aside { display: block; position: sticky; top: calc(var(--header-h) + 20px); }
  .home-faq__aside p { display: block; }
  .home-faq__aside .btn { display: inline-flex; }
}

/* Kartu foto dokumentasi (Beranda & halaman Dokumentasi) */
.dok-card { position: relative; display: block; width: 100%; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 3 / 4; background: var(--c-bg-soft); text-align: left; }
.dok-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.dok-card:hover img { transform: scale(1.04); }
.dok-card__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 14px 12px; color: #fff; font-size: var(--fs-sm); font-weight: var(--fw-semibold); line-height: 1.3; background: linear-gradient(0deg, rgba(4, 20, 36, .78), rgba(4, 20, 36, 0)); }
.home-about > .section-title .t-desktop { display: none; }

/* ---------- PROGRAM ---------- */
.program-page { padding-block: 16px 40px; }
.filter-chips {
  display: grid; grid-template-columns: repeat(4, calc((100% - 16px) / 3));
  gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px;
}
.filter-chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 12px;
  border: 1px solid var(--c-border); border-radius: var(--r-sm); background: #fff; box-shadow: var(--sh-xs);
  font-size: .78rem; font-weight: var(--fw-semibold); color: var(--c-navy-900); white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
@media (max-width: 767.98px) {
  .chip { border-radius: 12px; }
  .chip:nth-child(4) { order: 5; } .chip:nth-child(5) { order: 6; } .chip:nth-child(6) { order: 7; }
  .chip:nth-child(7) { order: 4; } .chip:nth-child(8) { order: 8; }
}
.chip .icon { width: 20px; height: 20px; color: var(--c-green-600); stroke-width: 1.6; }
.chip:hover { border-color: var(--c-green-600); }
.chip[aria-pressed="true"] { background: var(--c-navy-900); color: #fff; border-color: var(--c-navy-900); }
.chip[aria-pressed="true"] .icon { color: #fff; }
.program-toolbar { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 14px; align-items: center; }
.program-count { grid-column: 1 / -1; order: 3; font-size: var(--fs-sm); color: var(--c-text-muted); }
.program-toolbar .search-field input { height: 44px; }
.sort-select { display: none; position: relative; }
.sort-select select {
  appearance: none; height: 40px; min-width: 150px; padding: 0 36px 0 14px; border: 1px solid var(--c-border-strong); border-radius: var(--r-sm);
  background: #fff; font-size: var(--fs-sm); color: var(--c-text);
}
.sort-select .icon { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; pointer-events: none; }
.filter-btn { display: grid; place-items: center; width: 48px; height: 44px; border: 1px solid var(--c-border-strong); border-radius: var(--r-sm); background: #fff; color: var(--c-navy-900); }
.filter-btn .icon { width: 22px; height: 22px; }
.program-page .program-grid { margin-top: 16px; }
.program-page .p-card { --card-ratio: 3.3; --card-title: 1.0625rem; --card-desc: .875rem; --card-amount: .875rem; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.pagination button { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--c-border-strong); background: #fff; font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--c-navy-900); }
.pagination button[aria-current="page"] { background: var(--c-navy-900); border-color: var(--c-navy-900); color: #fff; }
.pagination button:disabled { opacity: .4; cursor: default; }
.pagination .icon { width: 16px; height: 16px; }

@media (min-width: 768px) {
  .program-page { padding-block: 16px 48px; }
  .filter-chips { display: flex; flex-wrap: wrap; overflow: visible; }
  .chip { flex: 1 1 auto; height: 44px; padding: 0 16px; font-size: var(--fs-sm); }
  .chip:first-child { flex: 1.4 1 auto; }
  .program-toolbar { grid-template-columns: 1fr minmax(220px, 300px) auto; margin-top: 22px; }
  .program-count { grid-column: 1; grid-row: 1; order: 0; }
  .program-toolbar .search-field input { height: 40px; }
  .sort-select { display: block; }
  .filter-btn { display: none; }
  .program-page .program-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
  .program-page .p-card { --card-ratio: 2.9; }
}
@media (min-width: 1200px) {
  .program-page .program-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
}

/* Sheet (mobile sort) */
.sheet { position: fixed; inset: 0; z-index: 130; visibility: hidden; }
.sheet.is-open { visibility: visible; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(2, 38, 71, .45); opacity: 0; transition: opacity .2s; }
.sheet.is-open .sheet__backdrop { opacity: 1; }
.sheet__panel { position: absolute; left: 0; right: 0; bottom: 0; background: #fff; border-radius: 20px 20px 0 0; padding: 18px 20px calc(24px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .25s ease; }
.sheet.is-open .sheet__panel { transform: none; }
.sheet__panel h2 { font-size: var(--fs-md); font-weight: var(--fw-bold); color: var(--c-navy-900); margin-bottom: 10px; }
.sheet__panel label { display: flex; align-items: center; gap: 10px; padding: 12px 2px; border-bottom: 1px solid var(--c-border); font-size: var(--fs-sm); }
.sheet__panel input[type="radio"] { accent-color: var(--c-green-600); width: 18px; height: 18px; }

/* ---------- DETAIL PROGRAM ---------- */
.detail { padding-block: 22px 44px; }
.detail__grid { display: grid; gap: 22px; }
.detail__media { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 2.4; background: var(--c-bg-soft); }
.detail__media img { width: 100%; height: 100%; object-fit: cover; }
.detail__media .tag { position: absolute; left: 14px; top: 14px; height: 28px; padding: 0 14px; font-size: var(--fs-sm); }
.detail__title { margin-top: 18px; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.125rem); line-height: 1.15; font-weight: var(--fw-extrabold); color: var(--c-navy-900); letter-spacing: -.01em; }
.detail__lead { margin-top: 10px; font-size: var(--fs-md); color: var(--c-text-muted); }
.detail__section { margin-top: 26px; }
.detail__section h2 { font-size: var(--fs-lg); }
.detail__section p { margin-top: 12px; font-size: var(--fs-base); color: var(--c-text); }
.pending-box { margin-top: 14px; padding: 16px; border: 1px dashed var(--c-border-strong); border-radius: var(--r-md); background: var(--c-bg-soft); font-size: var(--fs-sm); color: var(--c-text-muted); }
.pending-box strong { color: var(--c-navy-900); }
.detail__aside { display: grid; gap: 16px; align-content: start; }
.panel { background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-lg); box-shadow: var(--sh-card); padding: 18px; }
.stat-raised { font-size: 1.625rem; font-weight: var(--fw-extrabold); color: var(--c-navy-900); line-height: 1.2; }
.stat-label { font-size: var(--fs-sm); color: var(--c-text-muted); }
.stat-row { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; font-size: var(--fs-sm); color: var(--c-text-muted); }
.stat-row strong { color: var(--c-navy-900); }
.panel .progress { margin-top: 14px; }
.panel .progress__bar { height: 10px; }
.panel .progress__pct { font-size: var(--fs-sm); }
.amount-chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 12px 0; }
.amount-chips button { height: 42px; border: 1px solid var(--c-border-strong); border-radius: var(--r-sm); background: #fff; font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--c-navy-900); }
.amount-chips button[aria-pressed="true"] { background: var(--c-green-50); border-color: var(--c-green-600); color: var(--c-green-600); }
.donate-steps { margin-top: 14px; display: grid; gap: 12px; }
.donate-steps .qris-card { flex-direction: row; text-align: left; align-items: center; }
.donate-steps .qris-card__img { width: 92px; }
.donate-steps .qris-card > div { display: grid; gap: 8px; justify-items: start; }
.btn--wa { --_bg: var(--c-whatsapp); }
.btn--wa:hover { --_bg: #1d8a38; }
.share-row { display: flex; gap: 10px; }
.share-row .btn { flex: 1; }
.related { padding-block: 10px 48px; }
.related .program-grid { margin-top: 16px; }
.related .p-card { --card-ratio: 2.9; }
@media (min-width: 992px) {
  .detail { padding-block: 30px 56px; }
  .detail__grid { grid-template-columns: minmax(0, 1fr) 400px; gap: 36px; align-items: start; }
  .detail__aside { position: sticky; top: calc(var(--header-h) + 16px); }
  .related .program-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- TENTANG KAMI ---------- */
.page-hero--about .page-hero__inner { min-height: 222px; }
.page-hero--about .page-hero__title { max-width: 16ch; }
.about-intro { padding-block: 16px 8px; }
.about-intro__grid { display: grid; gap: 14px; }
.about-intro__photo { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 3.2; }
.about-intro__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 35%; }
.about-intro__title { font-size: var(--fs-lg); }
.about-intro__text p { margin-top: 12px; font-size: var(--fs-sm); color: var(--c-text); line-height: 1.6; }
.bidang { padding-block: 18px 6px; }
.bidang-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.bidang-card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-md); box-shadow: var(--sh-xs); overflow: hidden; text-align: center; }
.bidang-card__img { display: none; }
.bidang-card__body { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px 12px; }
.bidang-card__body .icon { width: 36px; height: 36px; color: var(--c-green-600); stroke-width: 1.5; }
.bidang-card h3 { font-size: .75rem; font-weight: var(--fw-bold); color: var(--c-navy-900); }
.bidang-card p { display: none; }
.dokumentasi { padding-block: 18px 22px; }
.doc-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 10px; margin-top: 12px; border-radius: var(--r-md); }
.doc-grid::-webkit-scrollbar { display: none; }
.doc-grid button { display: block; scroll-snap-align: start; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 2.8; }
.doc-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.doc-grid button:hover img { transform: scale(1.04); }
.cta-banner { position: relative; overflow: hidden; background: var(--c-bg-hero); }
.cta-banner__media { display: none; }
.cta-banner__inner { position: relative; z-index: 2; padding-block: 20px 26px; }
.cta-banner h2 { font-size: var(--fs-lg); font-weight: var(--fw-extrabold); color: var(--c-navy-900); }
.cta-banner p { margin-top: 4px; font-size: var(--fs-sm); color: var(--c-text-muted); }
.cta-banner__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.cta-banner__actions .btn { min-height: 40px; font-size: var(--fs-sm); padding: 0 12px; }
@media (min-width: 768px) {
  .bidang-grid { grid-template-columns: repeat(6, 1fr); }
  .doc-grid { grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; grid-template-columns: 1.35fr .85fr 1.05fr 1fr; grid-template-rows: 150px 168px; }
  .doc-grid button { aspect-ratio: auto; border-radius: var(--r-sm); }
  .doc-grid .d-1 { grid-row: 1 / span 2; }
  .doc-grid .d-5 { grid-column: 2; grid-row: 2; }
  .doc-grid .d-6 { grid-column: 3; grid-row: 2; }
  .doc-grid .d-7 { grid-column: 4; grid-row: 2; }
  .doc-dots { display: none; }
}
@media (min-width: 992px) {
  .about-intro { padding-block: 22px 12px; }
  .about-intro__grid { grid-template-columns: 33% 1fr; gap: 36px; align-items: center; }
  .about-intro__photo { aspect-ratio: 2.5; }
  .about-intro__title { font-size: var(--fs-xl); }
  .about-intro__text p { font-size: var(--fs-md); max-width: 60ch; }
  .bidang { padding-block: 26px 10px; }
  .bidang-grid { gap: 12px; margin-top: 16px; }
  .bidang-card { text-align: left; }
  .bidang-card__img { display: block; aspect-ratio: 2.35; }
  .bidang-card__img img { width: 100%; height: 100%; object-fit: cover; }
  .bidang-card__body { flex-direction: row; align-items: center; gap: 10px; padding: 12px 12px 14px; }
  .bidang-card__body .icon { width: 38px; height: 38px; }
  .bidang-card h3 { font-size: .875rem; }
  .bidang-card p { display: block; font-size: .72rem; line-height: 1.35; color: var(--c-text-muted); margin-top: 2px; }
  .dokumentasi { padding-block: 30px 28px; }
  .doc-grid { grid-template-rows: 118px 130px; gap: 10px; }
  .cta-banner__media { display: block; position: absolute; inset: 0 0 0 auto; width: 44%; }
  .cta-banner__media img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; }
  .cta-banner__media::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--c-bg-hero) 0%, rgba(236, 245, 253, 0) 45%); }
  .cta-banner__inner { padding-block: 22px 26px; text-align: center; max-width: 64%; margin-left: max(var(--gutter), calc((100% - var(--container)) / 2)); }
  .cta-banner h2 { font-size: var(--fs-2xl); }
  .cta-banner p { font-size: var(--fs-base); }
  .cta-banner__actions { display: flex; justify-content: center; gap: 12px; }
  .cta-banner__actions .btn { min-width: 150px; min-height: 42px; }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  .about-intro__grid { grid-template-columns: 1fr 1fr; align-items: center; }
}

/* ---------- KONTAK ---------- */
@media (max-width: 991.98px) { .page-hero--contact .page-hero__title { max-width: 10ch; } }
.contact-top { padding-block: 18px 6px; }
.contact-top__grid { display: grid; gap: 22px; }
.contact-list { display: grid; gap: 10px; margin-top: 14px; }
.contact-item {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 12px 14px;
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-md); box-shadow: var(--sh-xs);
}
.contact-item__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; background: var(--c-green-600); }
.contact-item__icon .icon { width: 20px; height: 20px; }
.contact-item__icon--wa { background: var(--c-whatsapp); }
.contact-item__icon--mail { background: #1464b4; }
.contact-item__icon--pin { background: var(--c-gold-500); }
.contact-item__label { font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--c-navy-900); }
.contact-item__value { font-size: var(--fs-md); font-weight: var(--fw-bold); color: var(--c-navy-900); line-height: 1.3; }
.contact-item__desc { display: none; font-size: var(--fs-sm); color: var(--c-text-muted); margin-top: 2px; }
.contact-item__actions { display: none; }
.contact-item__chev { width: 18px; height: 18px; color: var(--c-navy-900); }
.contact-item--desktop { display: none; }
.map-card { position: relative; margin-top: 14px; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--c-border); background: var(--c-bg-soft); }
.map-card img, .map-card iframe { width: 100%; height: 180px; object-fit: cover; border: 0; display: block; }
.map-card__btn { position: absolute; left: 10px; right: 10px; bottom: 10px; min-height: 40px; --_bg: var(--c-navy-900); font-size: var(--fs-sm); }
.map-card__btn:hover { --_bg: var(--c-navy-800); }
.map-card .data-note { position: absolute; left: 10px; top: 10px; right: auto; max-width: 70%; }
.socials { padding-block: 18px 6px; }
.social-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 14px; }
.social-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 2px; font-size: .65rem; color: var(--c-text); text-align: center; }
.social-card__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: #fff; }
.social-card__icon .icon { width: 20px; height: 20px; }
.social-card__name { font-weight: var(--fw-medium); }
.social-card__handle { display: none; }
.si-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.si-facebook { background: var(--c-facebook); border-radius: 50%; }
.si-tiktok { background: var(--c-tiktok); }
.si-youtube { background: var(--c-youtube); }
.si-website { background: var(--c-web); border-radius: 50%; }
.contact-bottom { padding-block: 18px 36px; }
.contact-bottom__grid { display: grid; gap: 22px; }
.posts { display: grid; grid-auto-flow: column; grid-auto-columns: 40%; gap: 10px; overflow-x: auto; scrollbar-width: none; margin-top: 12px; }
.posts::-webkit-scrollbar { display: none; }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-sm); overflow: hidden; box-shadow: var(--sh-xs); }
.post-card__img { aspect-ratio: 1.35; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 8px; }
.post-card__body p { font-size: .72rem; line-height: 1.35; color: var(--c-text); }
.post-card__meta { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: .62rem; color: var(--c-text-muted); }
.post-card__meta .icon { width: 13px; height: 13px; }
.post-card__meta .ic-ig { color: #d6249f; } .post-card__meta .ic-fb { color: var(--c-facebook); } .post-card__meta .ic-tt { color: #111; }
.contact-faq .faq { margin-top: 14px; }
.section-head--tight { margin-bottom: 0; }
@media (min-width: 768px) {
  .social-grid { grid-template-columns: repeat(5, 1fr); gap: 12px; }
  .social-card { flex-direction: row; justify-content: flex-start; text-align: left; gap: 12px; padding: 12px 14px; border: 1px solid var(--c-border); border-radius: var(--r-md); background: #fff; box-shadow: var(--sh-xs); font-size: var(--fs-sm); }
  .social-card__icon { width: 34px; height: 34px; }
  .social-card__name { font-weight: var(--fw-bold); color: var(--c-navy-900); display: block; }
  .social-card__handle { display: block; font-size: var(--fs-xs); color: var(--c-text-muted); }
  .posts { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(3, 1fr); overflow: visible; }
  .post-card__img { aspect-ratio: 2.5; }
  .post-card__body { padding: 10px 12px 12px; }
  .post-card__body p { font-size: var(--fs-sm); }
  .post-card__meta { font-size: var(--fs-xs); }
}
@media (min-width: 992px) {
  .contact-top { padding-block: 22px 8px; }
  .contact-top__grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .contact-list { gap: 10px; }
  .contact-item { grid-template-columns: auto 1fr auto; padding: 14px 18px; gap: 18px; }
  .contact-item--mobile { display: none; }
  .contact-item--desktop { display: grid; }
  .contact-item__icon { width: 46px; height: 46px; }
  .contact-item__icon .icon { width: 22px; height: 22px; }
  .contact-item__label { font-size: var(--fs-sm); }
  .contact-item__value { font-size: var(--fs-lg); }
  .contact-item__desc { display: block; }
  .contact-item__actions { display: flex; gap: 10px; }
  .contact-item__actions .btn { min-height: 38px; font-size: var(--fs-sm); padding: 0 18px; }
  .contact-item__chev { display: none; }
  .map-card { margin-top: 16px; }
  .map-card img, .map-card iframe { height: 326px; }
  .map-card__btn { left: auto; right: 12px; top: 12px; bottom: auto; --_bg: #fff; --_fg: var(--c-navy-900); box-shadow: var(--sh-card); min-height: 34px; padding: 0 14px; }
  .map-card__btn:hover { --_bg: var(--c-bg-soft); }
  .map-card .data-note { top: auto; bottom: 10px; }
  .socials { padding-block: 8px 8px; }
  .contact-bottom__grid { grid-template-columns: 1.1fr 1fr; gap: 28px; }
  .posts { gap: 12px; }
  .post-card__img { aspect-ratio: 2.45; }
}

/* 6) OVERLAYS: dialog, lightbox, toast ----------------------------------- */
.modal { border: 0; padding: 0; border-radius: var(--r-xl); max-width: min(92vw, 420px); width: 100%; box-shadow: var(--sh-float); }
.modal::backdrop { background: rgba(2, 38, 71, .55); }
.modal__body { padding: 22px; text-align: center; }
.modal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.modal__head h2 { font-size: var(--fs-md); font-weight: var(--fw-bold); color: var(--c-navy-900); text-align: left; }
.modal__qris { width: min(100%, 300px); margin: 0 auto; border-radius: 10px; box-shadow: var(--sh-card); }
.modal__body .data-note { margin-top: 12px; }
.modal__actions { display: grid; gap: 10px; margin-top: 16px; }
.modal--search { max-width: min(92vw, 560px); align-self: start; margin-top: 12vh; }
.modal--search .modal__body { text-align: left; }
.modal--search .search-field input { height: 50px; font-size: var(--fs-md); }
.modal--search .hint { margin-top: 10px; font-size: var(--fs-xs); color: var(--c-text-muted); }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(2, 16, 30, .88); }
.lightbox img { max-width: 94vw; max-height: 80vh; border-radius: 10px; }
.lightbox__close, .lightbox__nav { position: fixed; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, .28); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__nav--prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__close .icon, .lightbox__nav .icon { width: 22px; height: 22px; }
.lightbox__caption { margin-top: 10px; text-align: center; color: #e2e9f1; font-size: var(--fs-sm); }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--bottom-nav-h) + 20px + env(safe-area-inset-bottom)); z-index: 200;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px);
  padding: 12px 18px; border-radius: var(--r-pill); background: var(--c-navy-900); color: #fff;
  font-size: var(--fs-sm); font-weight: var(--fw-semibold); box-shadow: var(--sh-float); transition: opacity .2s ease, transform .2s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast .icon { width: 18px; height: 18px; color: #7ee39a; }
@media (min-width: 992px) { .toast { bottom: 28px; } }

/* Utilitas responsif */
@media (max-width: 767.98px) { .hide-mobile { display: none !important; } }
@media (min-width: 768px) { .show-mobile { display: none !important; } }
.footer-contact h2 { font-size: var(--fs-sm); font-weight: var(--fw-bold); color: #fff; margin-bottom: 12px; }
.nisab-row__label, .nisab-row__value { white-space: nowrap; }
.detail__grid > *, .home-layout > *, .contact-top__grid > *, .contact-bottom__grid > * { min-width: 0; }

/* Perbaikan overflow layar sempit & laptop */
.home-cats, .home-donate, .home-programs, .home-gallery, .home-about, .home-faq, .detail__aside > *, .donate-steps > * { min-width: 0; }
.cat-card__title, .cat-card__desc { overflow-wrap: anywhere; }
.bank-card__number { font-size: clamp(1.2rem, 5.2vw, 1.5rem); }
@media (max-width: 359.98px) {
  .cat-card { padding: 12px 10px; }
  .cat-card__chev { right: 8px; }
  .home-hero__actions { width: 100%; }
}
@media (min-width: 992px) {
  .footer-grid > * { min-width: 0; }
}
@media (min-width: 992px) and (max-width: 1365.98px) {
  .footer-grid { grid-template-columns: minmax(0, 2.4fr) auto auto minmax(0, 1.4fr) auto; }
  .footer-grid > * { padding: 0 16px; }
  .footer-grid > :first-child { gap: 0 20px; }
  .footer-cta .btn { padding: 0 18px; font-size: var(--fs-sm); min-height: 44px; }
  .footer-social { gap: 10px; }
}

}
@media (max-width: 359.98px) {
  .bank-card__top { grid-template-columns: 84px 1fr; }
  .bank-card__info { padding: 12px 48px 12px 12px; }
  .bank-card__copy { right: 8px; }
  .bank-card__logo img { width: 60px; }
}

/* Kontak: alamat lengkap (mobile) */
.contact-item__addr { display: block; font-size: var(--fs-xs); color: var(--c-text-muted); line-height: 1.35; margin-top: 2px; }
@media (min-width: 992px) and (max-width: 1199.98px) {
  .home-cats .cat-card { grid-template-columns: auto minmax(0, 1fr); padding: 16px 14px; column-gap: 10px; }
  .home-cats .cat-card__icon { width: 38px; height: 38px; }
  .home-cats .cat-card__chev { display: none; }
  .home-hero__copy { max-width: 52%; }
}

/* ---------- DOKUMENTASI (landing page) ---------- */
.page-hero--dok .page-hero__title { max-width: 14ch; }
.dok-page { padding-block: 26px 10px; }
.dok-page__head { display: grid; gap: 14px; margin-bottom: 16px; }
.dok-page__head .btn { justify-self: start; }
.dok-page__eyebrow { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: .06em; text-transform: uppercase; color: var(--c-gold-600); }
.dok-page__eyebrow .icon { width: 14px; height: 14px; }
.dok-featured--page { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dok-featured--page .dok-card__cap { font-size: var(--fs-xs); padding: 28px 10px 10px; }
.dok-page--gallery { padding-block: 30px 40px; }
.gal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.gal-item { margin: 0; }
.gal-item button { display: block; width: 100%; border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 16 / 10; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gal-item button:hover img { transform: scale(1.04); }
.gal-item figcaption { margin-top: 6px; font-size: var(--fs-xs); color: var(--c-text-muted); line-height: 1.35; }
@media (min-width: 768px) {
  .dok-featured--page { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .dok-featured--page .dok-card__cap { font-size: var(--fs-sm); padding: 36px 14px 12px; }
  .gal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .gal-item figcaption { font-size: var(--fs-sm); }
  .dok-page__head { grid-template-columns: 1fr auto; align-items: end; }
}
@media (min-width: 992px) {
  .dok-page { padding-block: 40px 10px; }
  .dok-page--gallery { padding-block: 44px 56px; }
}
.contact-item > span:not([class*="icon"]), .contact-item > div { min-width: 0; }
.contact-item__value { overflow-wrap: anywhere; }
@media (max-width: 359.98px) {
  .footer-grid { gap: 24px 12px; }
  .footer-col a { font-size: var(--fs-sm); }
  .contact-item__value { font-size: var(--fs-base); }
}
.bank-card__info { min-width: 0; }
@media (max-width: 359.98px) {
  .panel { padding: 14px; }
  .panel .bank-card__top { grid-template-columns: 70px 1fr; }
  .panel .bank-card__logo { padding: 10px 8px; }
  .panel .bank-card__number { font-size: 1.05rem; }
}
