/* DonasiMudah — Platform Donasi & Zakat Digital */
/* Warna: #004d40 primer, #80cbc4 aksen, #e0f2f1 background */

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

:root {
  --primer: #004d40;
  --primer-dark: #00251a;
  --primer-mid: #00695c;
  --aksen: #80cbc4;
  --aksen-light: #b2dfdb;
  --bg: #e0f2f1;
  --bg2: #f1fffe;
  --teks: #1a2e2b;
  --teks-muted: #546e6a;
  --putih: #ffffff;
  --border: #b2dfdb;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0,77,64,0.10);
  --shadow-hover: 0 6px 24px rgba(0,77,64,0.18);
}

body {
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--teks);
  font-size: 16px;
  line-height: 1.6;
}

a { color: var(--primer); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; }

/* ===== DEMO BAR ===== */
.demo-bar {
  background: #1a2e2b;
  color: #80cbc4;
  text-align: center;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.demo-bar a { color: var(--aksen); text-decoration: underline; }
.demo-bar a:hover { color: #fff; }

/* ===== HEADER / NAV ===== */
header {
  background: var(--primer);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--putih);
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--aksen);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo span.tagline {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--aksen-light);
  display: block;
  letter-spacing: 0;
}

/* Checkbox hack nav */
.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle-label span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
}
nav ul li a {
  color: var(--aksen-light);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.93rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
  display: block;
}
nav ul li a:hover, nav ul li a.active {
  background: rgba(128,203,196,0.18);
  color: #fff;
  text-decoration: none;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--primer) 0%, var(--primer-mid) 60%, #00897b 100%);
  color: #fff;
  padding: 72px 20px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -80px;
  width: 380px; height: 380px;
  background: rgba(128,203,196,0.10);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -60px;
  width: 300px; height: 300px;
  background: rgba(128,203,196,0.08);
  border-radius: 50%;
}

.hero-inner {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  background: rgba(128,203,196,0.22);
  border: 1px solid rgba(128,203,196,0.4);
  color: var(--aksen);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(1.8rem, 5vw, 2.9rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: normal;
  color: var(--aksen);
}

.hero p {
  font-size: 1.08rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 0.97rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--aksen);
  color: var(--primer);
}
.btn-primary:hover { background: #a7ffeb; text-decoration: none; }

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); text-decoration: none; }

.btn-primer {
  background: var(--primer);
  color: #fff;
}
.btn-primer:hover { background: var(--primer-dark); text-decoration: none; }

.btn-green {
  background: #00c853;
  color: #fff;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
}
.btn-green:hover { background: #00a844; text-decoration: none; }

/* ===== STATS STRIP ===== */
.stats-strip {
  background: var(--putih);
  box-shadow: var(--shadow);
}
.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat-item strong {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--primer);
}
.stat-item span {
  font-size: 0.85rem;
  color: var(--teks-muted);
}

/* ===== SECTION ===== */
section { padding: 60px 20px; }

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 42px;
}
.section-title h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--primer);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.section-title p {
  color: var(--teks-muted);
  max-width: 520px;
  margin: 0 auto;
}

.section-alt { background: var(--putih); }
.section-teal { background: linear-gradient(135deg, var(--primer) 0%, var(--primer-mid) 100%); color: #fff; }
.section-teal .section-title h2 { color: #fff; }
.section-teal .section-title p { color: rgba(255,255,255,0.8); }

/* ===== GRID PROGRAM ===== */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* ===== CARD PROGRAM ===== */
.card {
  background: var(--putih);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
  border: 1px solid var(--border);
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }

.card-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primer);
  margin-bottom: 8px;
}

.card p {
  font-size: 0.9rem;
  color: var(--teks-muted);
  line-height: 1.55;
}

.card-progress {
  margin-top: 16px;
}
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  margin-bottom: 6px;
  color: var(--teks-muted);
}
.progress-bar {
  height: 8px;
  background: var(--bg);
  border-radius: 4px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--primer), var(--aksen));
}
.progress-target {
  font-size: 0.82rem;
  color: var(--primer);
  font-weight: 600;
  margin-top: 6px;
}

/* ===== FITUR ===== */
.fitur-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.fitur-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.fitur-item h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primer);
  margin-bottom: 4px;
}
.fitur-item p { font-size: 0.88rem; color: var(--teks-muted); }

/* ===== TABEL PRODUK ===== */
.tabel-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--putih);
  font-size: 0.93rem;
}
thead th {
  background: var(--primer);
  color: #fff;
  padding: 14px 18px;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}
tbody tr:nth-child(even) { background: var(--bg); }
tbody td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
}
.badge-green { background: #e8f5e9; color: #2e7d32; }
.badge-blue { background: #e3f2fd; color: #1565c0; }
.badge-orange { background: #fff3e0; color: #e65100; }
.badge-teal { background: var(--bg); color: var(--primer); }

/* ===== LANGKAH ===== */
.steps {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 680px;
  margin: 0 auto;
}
.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.step-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--primer);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-body h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primer);
  margin-bottom: 6px;
}
.step-body p { font-size: 0.9rem; color: var(--teks-muted); }

/* ===== FAQ ===== */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  background: var(--putih);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  color: var(--primer);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.97rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--aksen);
  font-weight: 700;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p {
  padding: 0 20px 16px;
  color: var(--teks-muted);
  font-size: 0.92rem;
}

/* ===== FORM ===== */
.form-wrap {
  max-width: 520px;
  margin: 0 auto;
  background: var(--putih);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.form-wrap h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primer);
  margin-bottom: 24px;
  text-align: center;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--teks);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--teks);
  background: var(--bg2);
  transition: border 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primer);
  background: #fff;
}
.form-group textarea { resize: vertical; min-height: 90px; }

.status-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  margin-top: 18px;
}
.status-box .status-label {
  font-size: 0.82rem;
  color: var(--teks-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.status-box .status-val {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primer);
  margin: 6px 0 4px;
}
.status-box .status-desc { font-size: 0.88rem; color: var(--teks-muted); }

/* ===== KONTAK ===== */
.kontak-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}
.kontak-info h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primer);
  margin-bottom: 20px;
}
.kontak-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.kontak-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.kontak-item h4 { font-size: 0.9rem; font-weight: 600; color: var(--primer); margin-bottom: 3px; }
.kontak-item p { font-size: 0.88rem; color: var(--teks-muted); }

/* ===== CTA SECTION ===== */
.cta-box {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.cta-box h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 14px;
}
.cta-box p {
  color: rgba(255,255,255,0.82);
  margin-bottom: 28px;
  font-size: 1.03rem;
}

/* ===== TESTIMONI ===== */
.testi-card {
  background: var(--putih);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.testi-card blockquote {
  font-size: 0.93rem;
  color: var(--teks-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  font-style: italic;
}
.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testi-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--primer);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}
.testi-name { font-weight: 700; font-size: 0.92rem; color: var(--primer); }
.testi-loc { font-size: 0.8rem; color: var(--teks-muted); }
.stars { color: #ffb300; font-size: 0.85rem; margin-bottom: 12px; }

/* ===== FOOTER ===== */
footer {
  background: var(--primer-dark);
  color: rgba(255,255,255,0.75);
  padding: 48px 20px 24px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
.footer-brand .logo { font-size: 1.1rem; }
.footer-brand p {
  margin-top: 12px;
  font-size: 0.86rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.55;
}
.footer-col h4 {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
}
.footer-col ul li a:hover { color: var(--aksen); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.45);
}

/* ===== PAGE HEADER ===== */
.page-header {
  background: linear-gradient(135deg, var(--primer) 0%, var(--primer-mid) 100%);
  color: #fff;
  padding: 52px 20px 44px;
  text-align: center;
}
.page-header h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.page-header p {
  color: rgba(255,255,255,0.82);
  font-size: 1.02rem;
  max-width: 500px;
  margin: 0 auto;
}

/* ===== TABS ===== */
.tab-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 32px;
}
.tab-btn {
  padding: 9px 20px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--putih);
  color: var(--teks-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.tab-btn.active, .tab-btn:hover {
  background: var(--primer);
  color: #fff;
  border-color: var(--primer);
}

/* ===== PRODUK CARDS ===== */
.produk-card {
  background: var(--putih);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}
.produk-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.produk-card .icon-wrap {
  width: 64px; height: 64px;
  border-radius: 16px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.produk-card h3 { font-size: 1rem; font-weight: 700; color: var(--primer); margin-bottom: 6px; }
.produk-card p { font-size: 0.86rem; color: var(--teks-muted); margin-bottom: 14px; }
.nominal-list { list-style: none; text-align: left; margin-bottom: 16px; }
.nominal-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid var(--bg);
  font-size: 0.88rem;
}
.nominal-list li:last-child { border-bottom: none; }
.nominal-list .harga { font-weight: 700; color: var(--primer); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .kontak-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .form-wrap { padding: 24px 18px; }

  .nav-toggle-label { display: flex; }
  nav {
    display: none;
    position: absolute;
    top: 62px;
    left: 0; right: 0;
    background: var(--primer-dark);
    padding: 12px 0 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  }
  .nav-toggle:checked ~ nav { display: block; }
  nav ul { flex-direction: column; gap: 2px; padding: 0 16px; }
  nav ul li a { padding: 10px 14px; }
}

@media (max-width: 420px) {
  .grid-4 { grid-template-columns: 1fr; }
}
