/* ============================================================
   LANDING PAGE PUBLIK — Lembaga Wakaf Doa Bangsa
   Design System "Herbarium Ledger" (jade redup + kertas hangat)
   ============================================================ */
:root {
  --bg: #F2F2EC;
  --bg-2: #F7F7F1;
  --card: #FDFDFB;
  --border: #E0E2D6;
  --border-soft: #E9EAE0;
  --fg: #1D231E;
  --muted: #6E7A6E;
  --primary: #2E7D54;
  --primary-2: #256845;
  --primary-soft: rgba(46, 125, 84, 0.08);
  --gold: #A87B2F;
  --shadow-card: 0 1px 2px rgba(29, 35, 30, 0.04), 0 10px 28px -20px rgba(29, 35, 30, 0.18);
  --radius: 14px;
  --font: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: rgba(46, 125, 84, 0.2); }
img { max-width: 100%; }
a { color: inherit; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------------- TOPBAR ---------------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(242, 242, 236, 0.86);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid var(--border-soft);
}
.topbar-in { display: flex; align-items: center; gap: 16px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.brand-name { font-weight: 800; font-size: 15px; letter-spacing: -0.01em; line-height: 1.15; }
.brand-sub { font-size: 10.5px; color: var(--muted); font-weight: 500; }
.topnav { display: flex; gap: 4px; margin-left: 20px; }
.topnav a {
  font-size: 13px; font-weight: 600; color: var(--muted);
  text-decoration: none; padding: 8px 12px; border-radius: 10px;
  transition: background .2s ease, color .2s ease;
}
.topnav a:hover { background: var(--primary-soft); color: var(--primary); }
.topbar-cta { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-size: 13px; font-weight: 700;
  padding: 10px 18px; border-radius: 12px; cursor: pointer;
  text-decoration: none; border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .2s ease, border-color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; }
.btn-outline { border-color: var(--border); color: var(--fg); background: var(--card); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.btn-primary { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%); color: #fff; box-shadow: 0 10px 24px -12px rgba(46, 125, 84, 0.55); }
.btn-primary:hover { box-shadow: 0 14px 30px -12px rgba(46, 125, 84, 0.7); }
.btn-white { background: #fff; color: var(--primary-2); box-shadow: 0 10px 26px -12px rgba(0,0,0,.4); }
.btn-white:hover { transform: translateY(-1px); }
.btn-ghost { border-color: rgba(255,255,255,0.35); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }

/* ---------------- HERO ---------------- */
.hero {
  background: linear-gradient(150deg, #276A4A 0%, #1B5138 55%, #143D2A 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
/* --- Slider latar hero (hingga 4 gambar bergantian, diatur lewat pengaturan.php) --- */
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slides { z-index: 0; }
.hero-slide {
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.045);
  transition: opacity 1.4s ease, transform 7s linear;
  will-change: opacity, transform;
}
.hero-slide.active { opacity: 1; transform: scale(1); }
/* Lapisan gelap asimetris — sisi kiri (tempat teks) lebih pekat demi kontras
   WCAG, sisi kanan dibiarkan lebih terbuka agar FOTO TERLIHAT JELAS. */
.hero-veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(11,38,26,.30) 0%, rgba(11,38,26,0) 32%, rgba(11,38,26,0) 60%, rgba(11,38,26,.52) 100%),
    linear-gradient(97deg, rgba(11,38,26,.92) 0%, rgba(11,38,26,.78) 30%, rgba(11,38,26,.44) 62%, rgba(11,38,26,.14) 100%);
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,0.05) 0px, rgba(255,255,255,0.05) 1px, transparent 1px, transparent 34px);
  -webkit-mask-image: linear-gradient(115deg, transparent 52%, black 100%);
  mask-image: linear-gradient(115deg, transparent 52%, black 100%);
}
.hero::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent 62%);
  opacity: .8; z-index: 5;
}
/* Titik navigasi slider (dirender oleh landing.js) */
.hero-dots {
  position: absolute; right: 28px; bottom: 108px; z-index: 4;
  display: flex; gap: 9px;
}
.hero-dot {
  width: 13px; height: 13px; padding: 0; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.8); background: rgba(255,255,255,0.25);
  box-shadow: 0 1px 6px rgba(0,0,0,.45);
  transition: background .25s ease, width .25s ease, transform .2s ease;
}
.hero-dot:hover { background: rgba(255,255,255,0.55); transform: scale(1.15); }
.hero-dot[aria-current="true"] { width: 30px; background: #F0CE7A; border-color: #F5D98B; }
/* Panah navigasi slider (tampil layar lebar) */
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 44px; height: 44px; border-radius: 999px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.35); background: rgba(255,255,255,0.14);
  color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background .2s ease, transform .2s ease, opacity .2s ease;
  opacity: .85;
}
.hero-arrow svg { width: 20px; height: 20px; }
.hero-arrow:hover { background: rgba(255,255,255,0.30); opacity: 1; }
.hero-arrow:active { transform: translateY(-50%) scale(.94); }
.ha-prev { left: 20px; }
.ha-next { right: 20px; }
@media (max-width: 960px) { .hero-arrow { display: none; } }
.hero-in { position: relative; z-index: 3; padding: 76px 0 124px; max-width: 720px; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.24);
  color: #EAF7EF; font-size: 11.5px; font-weight: 700; letter-spacing: .06em;
  padding: 6px 14px; border-radius: 999px; text-transform: uppercase;
}
.hero-chip svg { width: 13px; height: 13px; }
.hero h1 {
  font-family: var(--font); font-weight: 700;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.12; letter-spacing: -0.02em;
  margin: 20px 0 16px; color: #fff;
}
.hero h1 em { font-style: normal; color: #CFE9D8; }
.hero p.lead {
  font-size: clamp(14px, 2vw, 16.5px); line-height: 1.75;
  color: rgba(255,255,255,0.85); margin: 0 0 30px; max-width: 620px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 34px; }
.hero-trust span {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,0.88);
}
.hero-trust svg { width: 15px; height: 15px; color: #9BDDBB; }

/* --- Pintasan login wakif di hero --- */
.hero-wakif {
  margin-top: 22px; display: inline-flex; align-items: center; flex-wrap: wrap;
  gap: 10px 14px; padding: 12px 18px; border-radius: 14px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
}
.hero-wakif .hw-label { font-size: 12.5px; color: rgba(255,255,255,0.85); }
.hero-wakif .hw-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 800; color: #9BDDBB; text-decoration: none;
  border-bottom: 1px dashed rgba(155,221,187,0.5); padding-bottom: 1px;
}
.hero-wakif .hw-link:hover { color: #C5EED6; border-bottom-color: #C5EED6; }
.hero-wakif .hw-link svg { width: 14px; height: 14px; }

/* ---------------- STATS BAND ----------------
   Kartu statistik DITURUNKAN menimpa bagian bawah hero slide
   (margin negatif). Tinggi tumpang-tindih -84px; ruang bawah hero
   (padding hero-in) dan posisi titik slider (hero-dots) sudah
   disesuaikan agar tidak tertutup kartu. */
.stats-band { margin-top: -84px; position: relative; z-index: 5; padding-bottom: 8px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-card {
  background: var(--primary); /* fallback bila kelas warna tidak terpasang */
  border: 1px solid rgba(255,255,255,0.30);
  border-radius: var(--radius); padding: 20px 22px;
  color: #fff;
  box-shadow: 0 18px 40px -22px rgba(11, 38, 26, 0.60);
  position: relative; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 26px 50px -22px rgba(11, 38, 26, 0.65); filter: saturate(1.06); }
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, rgba(255,255,255,.55), transparent 60%); opacity: .8; }
/* Warna BERBEDA per kartu — selaras palet grafik publik:
   hijau (terhimpun), biru (wakif), kuning-emas (transaksi), oranye (disalurkan) */
.sc-green  { background: linear-gradient(135deg, #2E7D54 0%, #1F5F3F 100%); }
.sc-blue   { background: linear-gradient(135deg, #2F6FBA 0%, #24568E 100%); }
.sc-gold   { background: linear-gradient(135deg, #B0802C 0%, #8A631F 100%); }
.sc-orange { background: linear-gradient(135deg, #C96524 0%, #9E4C15 100%); }
/* Ikon kartu statistik — di atas kartu berwarna: chip putih tembus pandang */
.stat-card .stat-ico { background: rgba(255,255,255,0.16); color: #fff; }
.stat-ico {
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  position: absolute; top: 18px; right: 18px;
}
.stat-ico svg { width: 20px; height: 20px; }
/* Teks kartu statistik berwarna — putih di atas gradien */
.stat-card .stat-label { color: rgba(255,255,255,0.92); text-shadow: 0 1px 2px rgba(0,0,0,.16); }
.stat-card .stat-value { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.14); }
.stat-card .stat-sub { color: rgba(255,255,255,0.80); }
.si-green { background: rgba(46,125,84,.10); color: #2E7D54; }
.si-blue { background: rgba(47,111,186,.10); color: #2F6FBA; }
.si-gold { background: rgba(168,123,47,.12); color: #A87B2F; }
.si-orange { background: rgba(217,115,46,.12); color: #D9732E; }
.stat-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); max-width: calc(100% - 52px); }
/* v4.11.0: angka kartu ditampilkan PENUH (Rp 2.240.000.000) — ukuran font
   diturunkan agar proporsional & tetap muat dalam kartu; nowrap + fit JS. */
.stat-value { font-size: clamp(15.5px, 1.6vw, 21px); font-weight: 800; letter-spacing: -0.02em; margin-top: 8px; font-feature-settings: 'tnum'; white-space: nowrap; }
.stat-sub { font-size: 11.5px; color: var(--muted); margin-top: 6px; }
/* Keterangan: .si-green/.si-blue/.si-gold/.si-orange di markup kini hanya
   penanda semantik — tampilan ikon ditentukan .stat-card .stat-ico (putih
   tembus pandang) karena kartu sudah berwarna penuh. */

/* ---------------- PRAKATA PENDIRI & DIREKTUR ----------------
   Dua kartu sambutan bergantian di bawah kartu statistik:
   Pendiri  : prakata KIRI, foto KANAN.
   Direktur : foto KIRI, prakata KANAN (.prakata-flip).
   Animasi kemunculan: kartu memudar naik (.reveal), teks & foto
   bergeser dari sisi masing-masing (.rv-left / .rv-right) via
   IntersectionObserver (landing.js) — tanpa JS konten tetap tampil. */
.prakata { padding: 46px 0 20px; }
.prakata-card {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px;
  gap: 30px; align-items: center;
  background: linear-gradient(180deg, var(--card) 0%, #FAFAF5 100%);
  border: 1px solid var(--border); border-radius: 18px;
  box-shadow: var(--shadow-card);
  padding: 32px 36px; margin-bottom: 20px;
  position: relative; overflow: hidden;
  transition: border-color .25s ease;
}
.prakata-card:hover { border-color: rgba(46, 125, 84, 0.3); }
.prakata-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), rgba(168, 123, 47, 0.12) 55%, transparent);
  opacity: .75; pointer-events: none;
}
.prakata-body { grid-column: 1; grid-row: 1; min-width: 0; }
.prakata-figure { grid-column: 2; grid-row: 1; padding: 4px 12px 14px 4px; transition-delay: .12s; }
.prakata-flip .prakata-body { grid-column: 2; transition-delay: .12s; }
.prakata-flip .prakata-figure { grid-column: 1; padding: 4px 4px 14px 12px; transition-delay: 0s; }

/* Tanda kutip dekoratif */
.prakata-quote {
  display: block; font-family: Georgia, 'Times New Roman', serif;
  font-size: 62px; line-height: .55; color: rgba(168, 123, 47, 0.42);
  margin: 0 0 10px; user-select: none;
}
.prakata-text p { margin: 0 0 12px; font-size: 14px; line-height: 1.85; color: #3E483E; }
.prakata-text p:last-child { margin-bottom: 0; }
/* Tanda tangan (nama + jabatan) di bawah prakata */
.prakata-sign { margin-top: 20px; display: flex; flex-direction: column; gap: 2px; }
.prakata-sign::before {
  content: ''; width: 46px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(168, 123, 47, 0.22));
  margin-bottom: 10px;
}
.prakata-nama { font-weight: 800; font-size: 15px; color: var(--primary-2); letter-spacing: -0.01em; }
.prakata-jabatan { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }

/* Foto dengan bingkai emas offset — arah offset mengikuti posisi foto */
.prakata-frame { position: relative; }
.prakata-frame::before {
  content: ''; position: absolute; inset: 12px -12px -12px 12px;
  border: 2px solid rgba(168, 123, 47, 0.32); border-radius: 20px;
  z-index: 0; pointer-events: none;
}
.prakata-flip .prakata-frame::before { inset: 12px 12px -12px -12px; }
.prakata-img, .prakata-avatar {
  position: relative; z-index: 1; display: block; width: 100%;
  aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px;
  box-shadow: 0 18px 40px -24px rgba(29, 35, 30, 0.5);
}
/* Placeholder foto (bila URL foto belum diatur di pengaturan.php) */
.prakata-avatar {
  background: linear-gradient(150deg, #E5ECE4 0%, #CBDCCB 100%);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: #8FA893;
}
.prakata-avatar svg { width: 36%; height: auto; max-width: 88px; }

/* ---------------- TESTIMONI WAKIF (v4.12.0) ----------------
   3 kartu testimoni setelah seksi Wakif Terbaru. Diatur lewat
   pengaturan.php (testimoni_1..3_nama/peran/foto/teks). */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.testi-card {
  margin: 0; background: linear-gradient(180deg, var(--card) 0%, #FAFAF5 100%);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-card); padding: 24px 22px 20px;
  position: relative; display: flex; flex-direction: column;
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1),
              border-color .25s ease, box-shadow .25s ease;
}
.testi-card:hover { border-color: rgba(46,125,84,.3); box-shadow: 0 22px 44px -26px rgba(11, 38, 26, 0.45); }
/* Aksen garis emas di tepi atas kartu (selaras prakata) */
.testi-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--gold), rgba(168, 123, 47, 0.12) 55%, transparent);
  opacity: .75; pointer-events: none;
}
/* Stagger kemunculan: kartu ke-2 & ke-3 menyusul sesudah ke-1 */
.testi-grid .testi-card:nth-child(2) { transition-delay: .12s; }
.testi-grid .testi-card:nth-child(3) { transition-delay: .24s; }
.testi-quote {
  display: block; font-family: Georgia, 'Times New Roman', serif;
  font-size: 46px; line-height: .6; color: rgba(168, 123, 47, 0.42);
  margin: 0 0 12px; user-select: none;
}
.testi-text {
  margin: 0 0 18px; flex: 1;
  font-size: 14px; line-height: 1.8; color: #3E483E;
}
.testi-person {
  display: flex; align-items: center; gap: 12px;
  border-top: 1px solid var(--border); padding-top: 16px; min-width: 0;
}
.testi-ava {
  width: 46px; height: 46px; border-radius: 50%; object-fit: cover;
  flex: 0 0 46px; box-shadow: 0 6px 14px -8px rgba(29, 35, 30, 0.4);
}
/* Placeholder bila foto kosong: lingkaran hijau berisi inisial nama */
.testi-init {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #2E7D54 0%, #1F5F3F 100%);
  color: #fff; font-weight: 800; font-size: 18px; letter-spacing: .02em;
}
.testi-id { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.testi-nama { font-weight: 800; font-size: 14px; color: var(--primary-2); letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.testi-peran { font-size: 11.5px; color: var(--muted); line-height: 1.45; }

/* ---------------- SECTIONS ---------------- */
.section { padding: 64px 0 20px; }
.section-head { max-width: 640px; margin-bottom: 30px; }
.kicker { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); }
.section-head h2 { font-size: clamp(22px, 3.4vw, 30px); font-weight: 700; letter-spacing: -0.018em; margin: 10px 0 10px; line-height: 1.2; }
.section-head p { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 0; }

.card {
  background: linear-gradient(180deg, var(--card) 0%, #FAFAF5 100%);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-card); padding: 24px;
  transition: border-color .25s ease;
}
.card:hover { border-color: rgba(46,125,84,.3); }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; margin-bottom: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
/* v4.10.0: automatic minimum size item grid tidak boleh melebar halaman di
   layar kecil (lebar atribut canvas Chart.js & angka nowrap ikut mendorong) */
.grid-2-1 > .card, .grid-2 > .card { min-width: 0; }
.chart-box { min-width: 0; overflow: hidden; }
.card h3 { margin: 0 0 4px; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.card .card-sub { font-size: 12px; color: var(--muted); margin: 0 0 16px; }

/* Target capaian */
.target-pct { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; color: var(--primary); font-feature-settings: 'tnum'; line-height: 1; }
.progress { height: 10px; background: var(--primary-soft); border-radius: 999px; overflow: hidden; margin: 16px 0 12px; border: 1px solid var(--border-soft); }
/* Oranye — variasi warna grafik (sinkron palet kuning/oranye publik) */
.progress > div { height: 100%; width: 0%; background: linear-gradient(90deg, #D9732E, #F2AC77); border-radius: 999px; transition: width 1.2s cubic-bezier(.22,1,.36,1); }
.target-rows { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.target-row { display: flex; justify-content: space-between; font-size: 12.5px; }
.target-row span:first-child { color: var(--muted); }
.target-row span:last-child { font-weight: 700; font-feature-settings: 'tnum'; }

/* Program bars — nama program interaktif (v4.10.0):
   hover MEMBESAR, klik membuka rincian Distribusi/Pengelolaan/Penyaluran */
.prog-list { display: flex; flex-direction: column; gap: 13px; }
.prog-item .prog-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 12.5px; margin-bottom: 6px; }
.prog-item .prog-top .prog-amt { color: var(--muted); font-feature-settings: 'tnum'; white-space: nowrap; }
.prog-name {
  display: flex; align-items: center; gap: 5px; min-width: 0;
  background: none; border: 0; padding: 0; margin: 0;
  font: inherit; font-weight: 700; color: inherit; text-align: left;
  cursor: pointer; transform-origin: left center;
  transition: transform .18s ease, color .18s ease;
}
.prog-name .prog-nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.prog-name .prog-chev { flex: 0 0 auto; width: 13px; height: 13px; color: var(--muted); transition: transform .2s ease, color .18s ease; }
.prog-name:hover, .prog-name:focus-visible { transform: scale(1.07); color: #2E7D54; }
.prog-name:hover .prog-chev, .prog-name:focus-visible .prog-chev { color: #2E7D54; }
.prog-name:focus-visible { outline: 2px solid #2E7D54; outline-offset: 3px; border-radius: 4px; }
.prog-item.open .prog-name { color: #2E7D54; }
.prog-item.open .prog-name .prog-chev { transform: rotate(180deg); }
.prog-bar { height: 7px; background: var(--primary-soft); border-radius: 999px; overflow: hidden; }
.prog-bar > div { height: 100%; width: 0%; background: linear-gradient(90deg, #2E7D54, #6FC79B); border-radius: 999px; transition: width 1s cubic-bezier(.22,1,.36,1); }

/* Panel rincian per program (accordion satu-terbuka, animasi muncul) */
.prog-detail { display: none; }
.prog-item.open .prog-detail { display: block; animation: pdIn .3s ease both; }
@keyframes pdIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.pd-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 11px; }
.pd-group { background: var(--bg-2); border: 1px solid var(--border-soft); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.pd-group.pd-dist { border-top: 2px solid #2E7D54; }
.pd-group.pd-kel { border-top: 2px solid #2F6FBA; }
.pd-group.pd-sal { border-top: 2px solid #D9732E; }
.pd-head { font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; margin-bottom: 6px; }
.pd-dist .pd-head { color: #2E7D54; }
.pd-kel .pd-head { color: #2F6FBA; }
.pd-sal .pd-head { color: #D9732E; }
.pd-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 11.5px; padding: 2.5px 0; }
.pd-row span { color: var(--muted); }
.pd-row b { font-weight: 700; font-feature-settings: 'tnum'; white-space: nowrap; }
.pd-row.pd-note-row { padding-top: 4px; }
.pd-note { font-size: 10px; font-style: italic; }
@media (prefers-reduced-motion: reduce) {
  .prog-name, .prog-name .prog-chev { transition: none; }
  .prog-name:hover, .prog-name:focus-visible { transform: none; }
  .prog-item.open .prog-detail { animation: none; }
}
@media (max-width: 640px) {
  .pd-grid { grid-template-columns: 1fr; }
  .pd-row b { white-space: normal; text-align: right; word-break: break-word; }
}

/* Mini stats */
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mini { background: var(--bg-2); border: 1px solid var(--border-soft); border-radius: 12px; padding: 14px 16px; }
.mini .mini-label { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.mini .mini-val { font-size: 17px; font-weight: 800; margin-top: 6px; font-feature-settings: 'tnum'; letter-spacing: -0.01em; }
/* Doughnut komposisi penyaluran (hijau/oranye/biru — variasi warna grafik) */
.dough-box { display: none; }
.js .dough-box {
  display: flex; align-items: center; gap: 18px;
  background: var(--bg-2); border: 1px solid var(--border-soft); border-radius: 12px;
  padding: 14px 18px; margin-bottom: 12px;
}
.dough-wrap { position: relative; width: 148px; height: 148px; flex: 0 0 148px; }
.dough-wrap canvas { position: absolute; inset: 0; }
.dough-legend { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.dough-legend .dl-item { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; }
.dough-legend .dl-swatch { width: 11px; height: 11px; border-radius: 4px; margin-top: 3px; flex: 0 0 auto; }
.dough-legend .dl-name { color: var(--muted); font-weight: 600; }
.dough-legend .dl-val { font-weight: 800; font-feature-settings: 'tnum'; white-space: nowrap; }
.dough-legend .dl-total { border-top: 1px dashed var(--border); padding-top: 8px; margin-top: 2px; }
@media (max-width: 480px) { .js .dough-box { flex-direction: column; align-items: stretch; } .dough-wrap { margin: 0 auto; } .mini-grid { grid-template-columns: 1fr; } }

/* Tabel wakif terbaru */
.table-wrap { overflow-x: auto; }
table.wakif { width: 100%; border-collapse: collapse; font-size: 13px; }
table.wakif th {
  text-align: left; font-size: 10.5px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); padding: 10px 12px;
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
table.wakif td { padding: 11px 12px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
table.wakif tr:last-child td { border-bottom: none; }
table.wakif tr:hover td { background: rgba(46, 125, 84, 0.045); }
.td-num { text-align: right; font-weight: 700; font-feature-settings: 'tnum'; white-space: nowrap; }
/* Badge program — warna diberi variasi oleh landing.js (hash nama program);
   default hijau utk kondisi tanpa JS */
.badge-soft { display: inline-block; background: var(--primary-soft); color: var(--primary); font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.table-note { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-top: 14px; font-size: 12px; color: var(--muted); }
.updated-at { display: inline-flex; align-items: center; gap: 6px; }
.updated-at svg { width: 13px; height: 13px; }

/* Cara berwakaf — nomor langkah dengan palet bervariasi (hijau/biru/oranye) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step { position: relative; padding: 24px; }
.step-num {
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-soft); color: var(--primary);
  font-weight: 800; font-size: 14px; border: 1px solid rgba(46,125,84,.2);
}
.step:nth-child(2) .step-num { background: rgba(47,111,186,.10); color: #2F6FBA; border-color: rgba(47,111,186,.25); }
.step:nth-child(3) .step-num { background: rgba(217,115,46,.12); color: #D9732E; border-color: rgba(217,115,46,.28); }
.step h3 { margin: 14px 0 8px; font-size: 14.5px; }
.step p { margin: 0; font-size: 13px; line-height: 1.7; color: var(--muted); }
.step a { color: var(--primary); font-weight: 700; text-decoration: none; }
.step a:hover { text-decoration: underline; }

/* CTA banner */
.cta-banner {
  margin: 56px 0 0; border-radius: 18px; padding: 44px 40px;
  background: linear-gradient(150deg, #276A4A 0%, #1B5138 55%, #143D2A 100%);
  color: #fff; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; width: 340px; height: 340px; border-radius: 999px;
  right: -110px; top: -140px; pointer-events: none;
  background: radial-gradient(circle at center, rgba(240,206,122,.22), transparent 65%);
}
.cta-banner .btn-white { margin-top: 2px; }

/* ---------------- KANTOR KAMI (di atas footer) ---------------- */
.lokasi { padding-bottom: 0; }
/* Urutan EKSPLISIT: gambar gedung di KIRI, peta + info di KANAN */
.lokasi-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 16px; align-items: stretch; }
.lokasi-img {
  margin: 0; grid-column: 1; grid-row: 1; order: 1;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-card); overflow: hidden;
  position: relative;
}
.lokasi-img img {
  display: block; width: 100%; height: 100%; min-height: 320px; max-height: 440px;
  object-fit: cover;
}
.lokasi-cap {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  background: rgba(18, 22, 15, 0.72); color: #fff; backdrop-filter: blur(4px);
  font-size: 11.5px; font-weight: 700; letter-spacing: .02em;
  padding: 7px 14px; border-radius: 999px;
}
.lokasi-side { grid-column: 2; grid-row: 1; order: 2; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.lokasi-side:only-child { grid-column: 1 / -1; }
.lokasi-map {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-card); overflow: hidden;
  flex: 1 1 auto; min-height: 240px;
}
.lokasi-map iframe { display: block; width: 100%; height: 100%; min-height: 240px; border: 0; }
.lokasi-info {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-card); padding: 16px 18px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.lokasi-pin {
  width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(217,115,46,.12); color: #D9732E;
}
.lokasi-pin svg { width: 20px; height: 20px; }
.lokasi-addr {
  font-style: normal; font-size: 12.5px; line-height: 1.65; color: var(--fg);
  white-space: pre-line; flex: 1 1 200px; min-width: 0;
}
.lokasi-btn { padding: 9px 16px; font-size: 12.5px; border-radius: 11px; flex: 0 0 auto; }
@media (max-width: 860px) {
  .lokasi-grid { grid-template-columns: 1fr; }
  .lokasi-img { grid-column: 1; grid-row: auto; }
  .lokasi-side { grid-column: 1; grid-row: auto; }
  .lokasi-img img, .lokasi-map iframe { min-height: 240px; max-height: 320px; }
}
.cta-banner::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,0.05) 0px, rgba(255,255,255,0.05) 1px, transparent 1px, transparent 34px);
  -webkit-mask-image: linear-gradient(115deg, transparent 52%, black 100%);
  mask-image: linear-gradient(115deg, transparent 52%, black 100%);
}
.cta-banner h2 { position: relative; z-index: 2; margin: 0 0 10px; font-size: clamp(20px, 3vw, 27px); letter-spacing: -0.015em; }
.cta-banner p { position: relative; z-index: 2; margin: 0 0 24px; color: rgba(255,255,255,0.85); font-size: 14px; line-height: 1.7; max-width: 560px; }
.cta-banner .btn { position: relative; z-index: 2; }

/* ---------------- FOOTER ----------------
   Latar putih gradasi abu-abu agar logo lembaga (berlatar putih)
   terlihat jelas; seluruh teks memakai warna gelap. */
footer.site {
  margin-top: 64px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F2F3ED 52%, #E4E6DD 100%);
  color: var(--fg);
  border-top: 1px solid var(--border);
}
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding: 48px 0 36px; }
.foot-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.foot-brand img { width: 40px; height: 40px; object-fit: contain; }
.foot-brand .brand-name { color: var(--fg); }
.foot-brand .brand-sub { color: var(--muted); }
footer.site p { font-size: 13px; line-height: 1.75; color: #5B665B; margin: 0; max-width: 380px; }
.foot-col h4 { color: var(--fg); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; margin: 4px 0 14px; }
.foot-col a { display: block; font-size: 13px; color: #4C574C; text-decoration: none; margin-bottom: 9px; }
.foot-col a:hover { color: var(--primary); }
.foot-bottom { border-top: 1px solid rgba(29,35,30,0.10); padding: 18px 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; font-size: 12px; color: #6B756B; }
.foot-bottom a { color: #55605A; text-decoration: none; }
.foot-bottom a:hover { color: var(--primary); }

/* Skeleton / empty */
.empty { color: var(--muted); font-size: 13px; padding: 28px 0; text-align: center; }
.skel { display: inline-block; background: linear-gradient(90deg, #E7E9DE, #F2F3EA, #E7E9DE); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 6px; color: transparent !important; user-select: none; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Reveal on scroll — HANYA jika JS aktif (html.js), agar konten
   tetap tampil bila JavaScript gagal/mati.
   .rv-left/.rv-right = varian geser dari samping (prakata). */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
.js .reveal.rv-left { transform: translateX(-30px); }
.js .reveal.rv-right { transform: translateX(30px); }
.js .reveal.in { opacity: 1; transform: none; }

/* Anchor tidak tertutup topbar sticky saat lompat perinta */
#transparansi, #prakata, #cara, #lokasi, #tentang { scroll-margin-top: 78px; }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 960px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2-1, .grid-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .topnav { display: none; }
  .foot-grid { grid-template-columns: 1fr; gap: 24px; }
  /* Prakata menumpuk: foto di atas, teks di bawah (kedua kartu) */
  .prakata-card, .prakata-card.prakata-flip { grid-template-columns: 1fr; gap: 20px; padding: 26px 24px; }
  .prakata-card .prakata-figure, .prakata-card.prakata-flip .prakata-figure { grid-column: 1; grid-row: 1; padding: 4px 4px 12px; width: 100%; max-width: 320px; margin: 0 auto; }
  .prakata-card .prakata-body, .prakata-card.prakata-flip .prakata-body { grid-column: 1; grid-row: 2; }
  /* Testimoni menumpuk 1 kolom; stagger di-nol-kan agar respons instan */
  .testi-grid { grid-template-columns: 1fr; gap: 14px; }
  .testi-grid .testi-card:nth-child(2), .testi-grid .testi-card:nth-child(3) { transition-delay: 0s; }
}
@media (max-width: 560px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stats-band { margin-top: -64px; }
  .hero-in { padding: 56px 0 108px; }
  .brand-sub { display: none; }
  .topbar-cta .btn-outline { display: none; }
  .hero-dots { right: 16px; bottom: 84px; }
  .cta-banner { padding: 32px 24px; }
}

/* ============================================================
   TAHAP 3 — AKSESIBILITAS: skip link keyboard
   ============================================================ */
.skip-link { position: fixed; top: -60px; left: 12px; z-index: 999; background: #2E7D54; color: #FFFFFF; padding: 10px 18px; border-radius: 0 0 12px 12px; font-size: 13px; font-weight: 700; text-decoration: none; transition: top 0.2s ease; }
.skip-link:focus { top: 0; }
a:focus-visible, button:focus-visible { outline: 2px solid #46A878; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none !important; opacity: 1 !important; transform: none !important; }
  .hero-slide { transition: none !important; transform: none !important; }
  .testi-grid .testi-card:nth-child(2), .testi-grid .testi-card:nth-child(3) { transition-delay: 0s !important; }
}
