/* Yayasan Bina At-Tazkiyyah — styles (light institutional theme) */

:root {
  --bg: #f8faf8;
  --surface: #ffffff;
  --border: #e2e8e4;
  --border-strong: #cfd9d3;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 16px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, 0.04), 0 12px 32px rgba(15, 23, 42, 0.07);

  --green: #0c6239;
  --green-dark: #084d2c;
  --green-deep: #063b22;
  --green-50: #eaf5ef;
  --green-100: #dcf0e4;

  --gold: #d97706;
  --gold-dark: #b45309;
  --gold-50: #fef3c7;
  --gold-soft: #f5c451;

  --heading: #0f172a;
  --text: #334155;
  --muted: #64748b;

  --font-sans: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-arabic: "Amiri", "Scheherazade New", "Noto Naskh Arabic", "Traditional Arabic", "Arabic Typesetting", "Geeza Pro", "Times New Roman", serif;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --header-h: 72px;
  --gutter: 1.25rem;
}

/* ---------- Reset & base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  color: var(--heading);
  line-height: 1.25;
  font-weight: 700;
}

ul, ol { list-style: none; }
a { color: inherit; }
address { font-style: normal; }
svg { display: block; }
cite { font-style: italic; }

:focus-visible {
  outline: 3px solid rgba(12, 98, 57, 0.45);
  outline-offset: 2px;
  border-radius: 4px;
}

[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.muted { color: var(--muted); }

.ico {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.arabic {
  font-family: var(--font-arabic);
  font-weight: 400;
  line-height: 1.9;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -100px;
  z-index: 200;
  padding: 0.7rem 1rem;
  background: var(--green);
  color: #fff;
  font-weight: 600;
  border-radius: var(--r-sm);
  text-decoration: none;
}
.skip-link:focus { top: 0.75rem; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.65rem 1.25rem;
  border: 1.5px solid transparent;
  border-radius: var(--r-sm);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.btn-primary {
  background: var(--green);
  color: #fff;
}
.btn-primary:hover { background: var(--green-dark); }

.btn-outline {
  background: var(--surface);
  color: var(--green);
  border-color: var(--green);
}
.btn-outline:hover { background: var(--green-50); }

.btn-wa {
  background: #1f9d55;
  color: #fff;
}
.btn-wa:hover { background: #18834a; }

.btn-lg {
  min-height: 52px;
  padding: 0.8rem 1.6rem;
  font-size: 1rem;
}

.btn-block { width: 100%; }

.btn[hidden] { display: none; }

/* ---------- Top bar ---------- */

.topbar {
  background: var(--green-dark);
  color: #e6f2eb;
  font-size: 0.85rem;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 40px;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

.topbar-mail {
  flex: none;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.topbar-mail:hover { text-decoration: underline; }

/* ---------- Header & nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--border);
}

.site-header.is-scrolled { box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06); }

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex: none;
}

.brand-emblem {
  width: 46px;
  height: 46px;
  flex: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  color: var(--green-dark);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-sub {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: auto;
}

.nav-links a {
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: 0.93rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s, background-color 0.15s;
}

.nav-links a:hover { color: var(--green); background: var(--green-50); }
.nav-links a.is-active { color: var(--green); font-weight: 600; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-nav { min-height: 42px; padding: 0.55rem 1.1rem; }

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  margin-left: -10px;
  background: var(--heading);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle-bar { top: 50%; margin-top: -1px; }
.nav-toggle-bar::before,
.nav-toggle-bar::after { content: ""; left: 0; margin-left: 0; }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 4.5rem 0 5rem;
  background-color: #ffffff;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 55%, var(--bg) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%230c6239' stroke-opacity='.07' stroke-width='1'%3E%3Crect x='22' y='22' width='28' height='28'/%3E%3Crect x='22' y='22' width='28' height='28' transform='rotate(45 36 36)'/%3E%3Cpath d='M0 36h8M64 36h8M36 0v8M36 64v8'/%3E%3C/g%3E%3C/svg%3E");
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
  gap: 3.5rem;
  align-items: center;
}

.pill {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: 0.4rem 0.95rem;
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: 999px;
  color: var(--green-dark);
  font-size: 0.85rem;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.15rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 17ch;
}

.hero-lead {
  margin-top: 1.25rem;
  max-width: 58ch;
  font-size: 1.1rem;
  color: var(--text);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.hero-badges li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--heading);
  font-size: 0.93rem;
  font-weight: 600;
}

.hero-badges .ico {
  width: 22px;
  height: 22px;
  padding: 3px;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  stroke-width: 3;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hero-donation-box .hero-card-head {
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, #0c6239, #084d2c);
  color: #fff;
  text-align: center;
}

.hero-donation-box .badge-gold {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  background: rgba(245, 196, 81, 0.25);
  border: 1px solid #f5c451;
  color: #fef3c7;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.hero-donation-box h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.2rem;
}

.hero-donation-body {
  padding: 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.donation-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  background: var(--green-50);
  padding: 0.25rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--green-100);
}

.d-tab {
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0.5rem 0.25rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.d-tab.active {
  background: #ffffff;
  color: var(--green-dark);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.nominal-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.nominal-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.nominal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.btn-nominal {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  color: var(--heading);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.6rem 0.5rem;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-nominal:hover {
  border-color: var(--green);
  color: var(--green);
}

.btn-nominal.active {
  background: var(--green-50);
  border-color: var(--green);
  color: var(--green-dark);
}

.rek-box {
  background: #fdfbf7;
  border: 1px dashed var(--gold);
  border-radius: var(--r-sm);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.rek-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
}

.rek-box-bank {
  font-weight: 800;
  color: #0c6239;
}

.rek-box-status {
  color: var(--gold-dark);
  font-weight: 600;
}

.rek-box-number {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--heading);
}

.rek-box-name {
  font-size: 0.82rem;
  color: var(--muted);
}

.donation-actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.donation-trust {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

.hero-card-head {
  padding: 1.75rem 1.5rem 1.5rem;
  background: var(--green);
  color: #fff;
  text-align: center;
}

.hero-card-head .arabic {
  font-size: 2.1rem;
  line-height: 1.6;
}

.hero-card-motto {
  margin-top: 0.4rem;
  color: #d7ece0;
  font-size: 0.95rem;
}

.facts { padding: 0.5rem 1.5rem; }

.facts > div {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}
.facts > div:last-child { border-bottom: 0; }

.facts dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.facts dd {
  margin-top: 0.15rem;
  color: var(--heading);
  font-weight: 500;
}

.hero-card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0.9rem 1.5rem;
  background: var(--green-50);
  border-top: 1px solid var(--green-100);
  color: var(--green-dark);
  font-weight: 600;
  font-size: 0.93rem;
  text-decoration: none;
}
.hero-card-link:hover { background: var(--green-100); }

/* ---------- Sections ---------- */

.section { padding: 5rem 0; }

.section-tint {
  background: var(--green-50);
  border-top: 1px solid var(--green-100);
  border-bottom: 1px solid var(--green-100);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.eyebrow-gold { color: var(--gold-dark); }

.section-head h2 {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  letter-spacing: -0.015em;
}

.section-sub {
  margin-top: 0.9rem;
  color: var(--text);
  font-size: 1.05rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 2rem;
}

.card-title {
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
}

.card-title-sm {
  margin: 1.75rem 0 1rem;
  font-size: 1.05rem;
}

.subhead {
  margin: 3.5rem 0 1.5rem;
  font-size: 1.35rem;
  text-align: center;
}

.checklist li {
  position: relative;
  padding-left: 1.75rem;
  margin-top: 0.55rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--green-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c6239' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 0.7rem no-repeat;
  border: 1px solid var(--green-100);
}

/* ---------- Profil ---------- */

.profil-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.hadith {
  margin-bottom: 1.25rem;
  padding: 1.5rem;
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: var(--r-md);
  text-align: center;
}

.arabic-lg {
  color: var(--green-deep);
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  line-height: 1.7;
}

.hadith-latin {
  margin-top: 0.4rem;
  color: var(--green-dark);
  font-weight: 700;
  font-style: italic;
}

.hadith-id {
  margin-top: 0.35rem;
  color: var(--heading);
  font-size: 1.05rem;
}

.hadith figcaption {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.misi {
  counter-reset: misi;
}

.misi li {
  counter-increment: misi;
  position: relative;
  padding-left: 2.4rem;
  margin-top: 0.8rem;
}

.misi li::before {
  content: counter(misi);
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 1.65rem;
  height: 1.65rem;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  font-size: 0.82rem;
  font-weight: 700;
}

.sambutan {
  border-top: 4px solid var(--gold);
}

.sambutan-body p + p { margin-top: 0.9rem; }

.salam {
  color: var(--green-dark);
  font-weight: 600;
  font-style: italic;
}

.signature {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.signature > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.signature strong { color: var(--heading); }
.signature span span { color: var(--muted); font-size: 0.9rem; }

.avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: none;
  background: var(--gold-50);
  border: 1px solid #f6dd9a;
  border-radius: 50%;
  color: var(--gold-dark);
  font-weight: 700;
}

.values {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.value {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}

.value-icon,
.program-icon,
.kontak-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: var(--r-md);
  color: var(--green);
}
.value-icon .ico,
.program-icon .ico,
.kontak-icon .ico { width: 24px; height: 24px; }

.value h4 {
  margin: 1rem 0 0.35rem;
  font-size: 1.1rem;
}

.value p {
  color: var(--text);
  font-size: 0.95rem;
}

/* ---------- Program ---------- */

.program-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.program {
  display: flex;
  flex-direction: column;
}

.program-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.tag {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: 999px;
  color: var(--green-dark);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.tag-gold {
  background: var(--gold-50);
  border-color: #f6dd9a;
  color: var(--gold-dark);
}

.program h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.program .checklist {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px dashed var(--border-strong);
}

.program > p { margin-bottom: 1.1rem; }

/* ---------- Pesantren ---------- */

.pesantren-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.stages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  counter-reset: stage;
}

.stages li {
  counter-increment: stage;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--green);
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
}

.stages h3 {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
}

.stages h3::before {
  content: "0" counter(stage);
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 700;
}

.stages p { font-size: 0.95rem; }

.aside-card {
  border-top: 4px solid var(--green);
}

.aside-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.btn-stack {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

/* ---------- Donasi ---------- */

.donasi-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.tabs {
  display: flex;
  gap: 0.4rem;
  padding: 0.35rem;
  margin-bottom: 1.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}

.tabs button {
  flex: 1 1 0;
  min-height: 46px;
  padding: 0.5rem 0.75rem;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}

.tabs button:hover { color: var(--green); background: var(--green-50); }

.tabs button[aria-selected="true"] {
  background: var(--green);
  color: #fff;
  box-shadow: 0 1px 3px rgba(8, 77, 44, 0.25);
}

.tab-panel h3 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.tab-panel .checklist { margin-top: 1rem; }

.ayah {
  margin-top: 2rem;
  padding: 1.25rem 1.4rem;
  background: var(--gold-50);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}

.ayah blockquote {
  color: #78350f;
  font-style: italic;
}

.ayah figcaption {
  margin-top: 0.5rem;
  color: var(--gold-dark);
  font-size: 0.88rem;
  font-weight: 700;
}

.donasi-side {
  display: grid;
  gap: 1.5rem;
}

.rek-card {
  border: 2px solid var(--green);
  box-shadow: var(--shadow-lg);
}

.rek-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 1.1rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--border);
}

.rek-head > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.rek-bank-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: none;
  background: #00a39d;
  color: #fff;
  border-radius: var(--r-md);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.rek-label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rek-bank {
  color: var(--heading);
  font-weight: 700;
}

.rek-num-label {
  color: var(--muted);
  font-size: 0.85rem;
}

.rek-num {
  margin: 0.15rem 0 0.35rem;
  color: var(--heading);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  word-break: break-word;
}

.rek-num.is-pending {
  color: var(--gold-dark);
  font-size: 1.3rem;
  letter-spacing: 0;
}

.rek-name { color: var(--text); }

.rek-for {
  margin: 0.75rem 0 1.25rem;
  padding: 0.55rem 0.8rem;
  background: var(--green-50);
  border-radius: var(--r-sm);
  color: var(--green-dark);
  font-size: 0.9rem;
}

.btn-copy { min-height: 52px; font-size: 1rem; }

.btn-copy.is-copied {
  background: var(--green-deep);
}

.rek-note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.konfirmasi h3 {
  margin-bottom: 1rem;
  font-size: 1.15rem;
}

.steps {
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2.2rem;
  margin-top: 0.7rem;
  font-size: 0.95rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 1.5rem;
  height: 1.5rem;
  display: grid;
  place-items: center;
  background: var(--gold-50);
  border: 1px solid #f6dd9a;
  color: var(--gold-dark);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
}

.konfirmasi-mail {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

.konfirmasi-mail a,
.link {
  color: var(--green);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-word;
}

/* ---------- Transparansi ---------- */

.legal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.kv { margin-bottom: 1.5rem; }

.kv > div {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--border);
}
.kv > div:first-child { padding-top: 0; }

.kv dt {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.kv dd { color: var(--heading); }

.kv dd .muted {
  display: block;
  font-size: 0.88rem;
}

.kv dd > .muted:first-child,
.kv dd > span.muted:only-child { display: inline; }

.komitmen {
  background: var(--green-50);
  border-color: var(--green-100);
  box-shadow: none;
}

.komitmen .checklist li::before { background-color: #fff; }

/* ---------- Kontak ---------- */

.kontak-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.kontak-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.kontak-card h3 {
  margin-top: 0.5rem;
  font-size: 1.15rem;
}

.kontak-card .muted { font-size: 0.92rem; }

.kontak-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.kontak-card address,
.kontak-card p:last-of-type { margin-bottom: 0.75rem; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--green-deep);
  color: #c9e2d4;
  font-size: 0.93rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  padding-top: 3.5rem;
  padding-bottom: 3rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-logo > span {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.footer-logo strong { color: #fff; font-size: 1.05rem; }
.footer-logo span span { color: #a8cbb7; font-size: 0.85rem; }

.footer-brand p { max-width: 42ch; }

.footer-motto {
  margin-top: 0.9rem;
  color: var(--gold-soft);
  font-style: italic;
  font-weight: 600;
}

.footer-col h2 {
  margin-bottom: 0.9rem;
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

.footer-col li + li { margin-top: 0.5rem; }

.footer-col a {
  color: #c9e2d4;
  text-decoration: none;
  word-break: break-word;
}
.footer-col a:hover { color: #fff; text-decoration: underline; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.1rem 0;
  font-size: 0.85rem;
  color: #a8cbb7;
}

.site-footer :focus-visible { outline-color: var(--gold-soft); }

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 300;
  max-width: calc(100% - 2rem);
  padding: 0.85rem 1.2rem;
  background: var(--heading);
  color: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.93rem;
  font-weight: 500;
  transform: translate(-50%, 12px);
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.is-error { background: #9a3412; }

/* ---------- Responsive ---------- */

@media (max-width: 880px) {
  .nav-toggle { display: block; }

  .nav-actions { margin-left: auto; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0.5rem var(--gutter) 1rem;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  }

  .nav-links.is-open { display: flex; }

  .nav-links a {
    padding: 0.85rem 0.5rem;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    font-size: 1rem;
  }
  .nav-links li:last-child a { border-bottom: 0; }

  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero h1 { max-width: 20ch; }
  .hero-card { max-width: 560px; }

  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 880px) {
  .section { padding: 4rem 0; }

  .profil-grid,
  .program-grid,
  .pesantren-grid,
  .donasi-grid,
  .legal-grid { grid-template-columns: 1fr; }

  .kontak-grid { grid-template-columns: 1fr; }
  .kontak-card .btn { align-self: stretch; }

  .topbar-mail { display: none; }
}

@media (max-width: 600px) {
  :root { --header-h: 64px; --gutter: 1rem; }

  body { font-size: 15.5px; }

  .topbar { font-size: 0.8rem; }
  .topbar-inner { justify-content: center; text-align: center; }

  .brand-emblem { width: 40px; height: 40px; }
  .brand-name { font-size: 1.02rem; }
  .brand-sub { display: none; }

  .btn-nav { padding: 0.5rem 0.8rem; font-size: 0.88rem; }

  .hero { padding: 2.75rem 0 3.5rem; }
  .hero-lead { font-size: 1.02rem; }
  .hero-cta .btn { width: 100%; }
  .hero-badges { flex-direction: column; }

  .section { padding: 3.25rem 0; }
  .section-head { margin-bottom: 2rem; }

  .card { padding: 1.4rem; }

  .values,
  .stages { grid-template-columns: 1fr; }

  .tabs { flex-direction: column; }

  .rek-num { font-size: 1.55rem; }

  .kv > div { grid-template-columns: 1fr; gap: 0.2rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 360px) {
  .btn-nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
