/* ============================================================
   Yayasan Amal Mulia Berbagi — Stylesheet
   ============================================================ */

:root {
  --dark: #0f2e22;
  --dark-2: #123a2a;
  --primary: #1c5c3f;
  --primary-2: #217a4c;
  --primary-light: #e8f2ec;
  --gold: #e8a13d;
  --cream: #f8f6f0;
  --text: #1c2620;
  --muted: #5c6b62;
  --border: #e3e0d6;
  --white: #ffffff;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px -12px rgba(15, 46, 34, 0.18);
  --shadow-sm: 0 4px 14px -6px rgba(15, 46, 34, 0.15);
  font-size: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 72px 0; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-2);
  margin-bottom: 10px;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}

.section-head h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--muted);
  margin-top: 12px;
  font-size: 16px;
}

h1, h2, h3, h4 { font-family: "Plus Jakarta Sans", sans-serif; line-height: 1.2; }

.accent { color: var(--primary-2); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--dark-2); transform: translateY(-2px); }

.btn-outline {
  background: var(--white);
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }

.btn-light {
  background: var(--white);
  color: var(--primary);
}
.btn-light:hover { background: var(--primary-light); transform: translateY(-2px); }

.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* ============= Header ============= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand img { height: 40px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  position: relative;
  padding: 6px 0;
}

.main-nav a.active,
.main-nav a:hover { color: var(--primary); }

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--primary-2);
  border-radius: 2px;
}

.header-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px; height: 2px;
  background: var(--text);
  position: relative;
  transition: 0.2s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ============= Hero ============= */
.hero {
  padding: 64px 0 56px;
  background:
    radial-gradient(900px 500px at 85% -10%, #e8f2ec 0%, transparent 60%),
    var(--white);
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(32px, 4.6vw, 52px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero h1 .line-2 { color: var(--primary-2); }

.hero p.lead {
  margin-top: 20px;
  font-size: 17px;
  color: var(--muted);
  max-width: 460px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.hero-art {
  position: relative;
  aspect-ratio: 4 / 3.1;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.14) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  opacity: 0.5;
}

.hero-art .hero-icon {
  position: relative;
  width: 58%;
  color: rgba(255,255,255,0.92);
}

.hero-badge {
  position: absolute;
  left: 24px;
  bottom: 24px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-badge .num { font-size: 22px; font-weight: 800; color: var(--primary); line-height: 1; }
.hero-badge .lbl { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* ============= Program cards ============= */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.program-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.program-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.program-icon svg { width: 26px; height: 26px; }

.program-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.program-card p { font-size: 14.5px; color: var(--muted); margin-bottom: 14px; }

.program-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.program-link svg { width: 15px; height: 15px; transition: transform 0.15s; }
.program-card:hover .program-link svg { transform: translateX(3px); }

/* ============= Stats band ============= */
.stats-band {
  background: linear-gradient(120deg, var(--dark) 0%, var(--dark-2) 100%);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  color: var(--white);
  display: grid;
  grid-template-columns: 1.3fr repeat(4, 1fr);
  gap: 24px;
  align-items: center;
}

.stats-band .stats-title h3 { font-size: 19px; font-weight: 700; }
.stats-band .stats-title p { font-size: 13.5px; color: rgba(255,255,255,0.65); margin-top: 6px; }

.stat-item { text-align: center; border-left: 1px solid rgba(255,255,255,0.14); padding-left: 24px; }
.stat-item .stat-num { font-size: 26px; font-weight: 800; color: var(--gold); }
.stat-item .stat-lbl { font-size: 13px; color: rgba(255,255,255,0.72); margin-top: 4px; }

/* ============= CTA strip ============= */
.cta-strip {
  margin-top: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--primary-light);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
}

.cta-strip .cta-left { display: flex; align-items: center; gap: 16px; }
.cta-strip .cta-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.cta-strip .cta-icon svg { width: 24px; height: 24px; }
.cta-strip h3 { font-size: 17px; font-weight: 700; }
.cta-strip p { font-size: 14px; color: var(--muted); margin-top: 3px; }

/* ============= Donation section ============= */
.donate-section { background: var(--cream); }

.donate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 0.85fr;
  gap: 22px;
  align-items: stretch;
}

.donate-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 26px;
}

.donate-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.donate-card h3 svg { width: 20px; height: 20px; color: var(--primary); }
.donate-card > p.desc { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }

.qris-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
  max-width: 220px;
  margin: 0 auto;
}
.qris-box img { border-radius: 6px; }

.pay-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 18px 0;
}
.pay-logos span {
  font-size: 11.5px;
  font-weight: 700;
  background: var(--primary-light);
  color: var(--primary);
  padding: 5px 10px;
  border-radius: 999px;
}

.bank-box {
  background: var(--cream);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  margin-bottom: 16px;
}
.bank-box .bank-name { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.bank-box .bank-number { font-size: 22px; font-weight: 800; letter-spacing: 0.02em; color: var(--dark); }
.bank-box .bank-holder { font-size: 13px; color: var(--muted); margin-top: 4px; }

.copy-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--primary);
  margin-bottom: 14px;
}
.copy-row svg { width: 15px; height: 15px; flex-shrink: 0; }

.other-methods { display: flex; flex-direction: column; gap: 10px; }
.method-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s, background 0.15s;
}
.method-row:hover { border-color: var(--primary-2); background: var(--primary-light); }
.method-row .m-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.method-row .m-icon svg { width: 19px; height: 19px; }
.method-row .m-text strong { display: block; font-size: 14px; font-weight: 700; }
.method-row .m-text span { font-size: 12.5px; color: var(--muted); }
.method-row .m-arrow { margin-left: auto; color: var(--muted); }
.method-row .m-arrow svg { width: 16px; height: 16px; }

/* ============= Zakat calculator ============= */
.zakat-section .zakat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 46px;
  align-items: center;
}

.zakat-info .eyebrow { margin-bottom: 8px; }
.zakat-info h2 { font-size: 26px; font-weight: 800; margin-bottom: 12px; }
.zakat-info p { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.zakat-info .nishab-note {
  font-size: 13px;
  color: var(--primary);
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.zakat-info .nishab-note svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }

.zakat-form label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.field-group { margin-bottom: 16px; }

.field-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.field-wrap .prefix {
  position: absolute;
  left: 16px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14.5px;
}
.field-wrap input {
  width: 100%;
  padding: 13px 16px 13px 42px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.15s;
}
.field-wrap input:focus { outline: none; border-color: var(--primary-2); }

.zakat-result {
  background: var(--dark);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.zakat-result .r-label { font-size: 13px; color: rgba(255,255,255,0.7); }
.zakat-result .r-value { font-size: 22px; font-weight: 800; color: var(--gold); }

/* ============= FAQ ============= */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--white);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  font-size: 15.5px;
  font-weight: 700;
  text-align: left;
}

.faq-q .plus {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform 0.2s;
}
.faq-item.open .faq-q .plus { transform: rotate(45deg); background: var(--primary); color: var(--white); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-a p { padding: 0 22px 20px; color: var(--muted); font-size: 14.5px; }

.faq-more { text-align: center; margin-top: 26px; }
.faq-more a { font-weight: 700; color: var(--primary); display: inline-flex; align-items: center; gap: 6px; }

/* ============= Footer ============= */
.site-footer { background: var(--dark); color: rgba(255,255,255,0.82); padding-top: 64px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-brand img { height: 38px; margin-bottom: 16px; background: var(--white); padding: 8px 12px; border-radius: 10px; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.6); max-width: 300px; margin-bottom: 20px; }

.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.social-row a:hover { background: var(--primary-2); }
.social-row svg { width: 16px; height: 16px; }

.footer-col h4 { font-size: 14.5px; font-weight: 700; color: var(--white); margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a, .footer-col li { font-size: 14px; color: rgba(255,255,255,0.65); }
.footer-col a:hover { color: var(--white); }

.footer-contact li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 14px;
}
.footer-contact svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 2px; color: var(--gold); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom .legal-links { display: flex; gap: 20px; }

/* ============= Toast ============= */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  background: var(--dark);
  color: var(--white);
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 8px;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast svg { width: 16px; height: 16px; color: #6fd39a; }

/* ============= Responsive ============= */
@media (max-width: 1080px) {
  .donate-grid { grid-template-columns: 1fr 1fr; }
  .donate-grid .donate-card:nth-child(3) { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 460px; margin: 0 auto; width: 100%; }
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-band { grid-template-columns: 1fr 1fr; }
  .stats-band .stats-title { grid-column: span 2; }
  .stat-item { border-left: none; border-top: 1px solid rgba(255,255,255,0.14); padding-left: 0; padding-top: 16px; }
  .zakat-section .zakat-card { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  section { padding: 52px 0; }
  .cta-strip { flex-direction: column; align-items: flex-start; }
  .cta-strip .btn { width: 100%; }
  .donate-grid { grid-template-columns: 1fr; }
  .donate-grid .donate-card:nth-child(3) { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-brand { grid-column: span 2; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .programs-grid { grid-template-columns: 1fr; }
  .header-actions .btn span.full { display: none; }
}

/* Mobile nav drawer */
.mobile-nav {
  position: fixed;
  inset: 82px 0 0 0;
  background: var(--white);
  z-index: 99;
  padding: 24px;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  overflow-y: auto;
}
.mobile-nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-nav a {
  display: block;
  padding: 16px 4px;
  font-size: 17px;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}
.mobile-nav .btn { margin-top: 20px; }
