/* Koperasi Digital — style.css */
/* Palet: #1b5e20 primer, #a5d6a7 aksen, #f1f8e9 background */

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

:root {
  --primer: #1b5e20;
  --primer-dark: #145216;
  --primer-light: #2e7d32;
  --aksen: #a5d6a7;
  --aksen-dark: #81c784;
  --bg: #f1f8e9;
  --bg2: #e8f5e9;
  --putih: #ffffff;
  --teks: #1a2e1b;
  --teks-abu: #4a6741;
  --border: #c8e6c9;
  --shadow: 0 2px 12px rgba(27,94,32,0.10);
  --shadow-md: 0 4px 24px rgba(27,94,32,0.14);
  --radius: 10px;
  --radius-lg: 16px;
  --font: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--teks);
  line-height: 1.6;
  min-height: 100vh;
}

/* ===== DEMO BAR ===== */
.demo-bar {
  background: #1b5e20;
  color: #fff;
  text-align: center;
  font-size: 0.78rem;
  padding: 7px 16px;
  letter-spacing: 0.02em;
}
.demo-bar a { color: #a5d6a7; font-weight: 600; text-decoration: none; }
.demo-bar a:hover { text-decoration: underline; }

/* ===== HEADER & NAV ===== */
header {
  background: var(--putih);
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.nav-wrap {
  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;
  text-decoration: none;
  color: var(--primer);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.logo-icon {
  width: 38px; height: 38px;
  background: var(--primer);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-icon svg { width: 22px; height: 22px; }
.logo-text span { display: block; font-size: 0.65rem; font-weight: 400; color: var(--teks-abu); letter-spacing: 0.04em; text-transform: uppercase; }

/* Hamburger checkbox hack */
#nav-toggle { display: none; }
.nav-label {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}
.nav-label span {
  display: block;
  width: 24px; height: 2px;
  background: var(--primer);
  border-radius: 2px;
  transition: all 0.25s;
}
nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
}
nav ul li a {
  display: block;
  padding: 8px 13px;
  text-decoration: none;
  color: var(--teks);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 7px;
  transition: background 0.18s, color 0.18s;
}
nav ul li a:hover,
nav ul li a.aktif { background: var(--bg2); color: var(--primer); font-weight: 700; }
.nav-cta a {
  background: var(--primer) !important;
  color: #fff !important;
  padding: 8px 16px !important;
}
.nav-cta a:hover { background: var(--primer-dark) !important; }

@media (max-width: 768px) {
  .nav-label { display: flex; }
  nav {
    display: none;
    position: absolute;
    top: 62px; left: 0; right: 0;
    background: var(--putih);
    border-bottom: 2px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 10px 0 14px;
  }
  #nav-toggle:checked ~ nav { display: block; }
  nav ul { flex-direction: column; gap: 2px; padding: 0 16px; }
  nav ul li a { padding: 11px 14px; border-radius: 8px; }
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--primer) 0%, var(--primer-light) 55%, #388e3c 100%);
  color: #fff;
  padding: 68px 20px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(165,214,167,0.15) 0%, transparent 60%);
}
.hero-inner { max-width: 700px; margin: 0 auto; position: relative; }
.hero-badge {
  display: inline-block;
  background: rgba(165,214,167,0.22);
  border: 1px solid rgba(165,214,167,0.5);
  color: var(--aksen);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.18;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.hero h1 em { font-style: normal; color: var(--aksen); }
.hero p {
  font-size: 1.05rem;
  opacity: 0.92;
  margin-bottom: 32px;
  line-height: 1.65;
  max-width: 540px;
  margin-left: auto; margin-right: auto;
}
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primer {
  background: #fff;
  color: var(--primer);
}
.btn-primer:hover { background: var(--aksen); color: var(--primer-dark); }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.7);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn-hijau {
  background: var(--primer);
  color: #fff;
}
.btn-hijau:hover { background: var(--primer-dark); }
.btn-aksen {
  background: var(--aksen-dark);
  color: var(--primer-dark);
  font-weight: 700;
}
.btn-aksen:hover { background: var(--aksen); }

/* Hero stats */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 36px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.2);
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat strong { display: block; font-size: 1.7rem; font-weight: 900; color: var(--aksen); }
.hero-stat span { font-size: 0.8rem; opacity: 0.85; }

/* ===== SECTION UMUM ===== */
.section { padding: 60px 20px; }
.section-alt { background: var(--bg2); }
.section-putih { background: var(--putih); }
.container { max-width: 1100px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 {
  font-size: clamp(1.45rem, 3.5vw, 2rem);
  font-weight: 800;
  color: var(--primer);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.section-head p { color: var(--teks-abu); font-size: 1rem; max-width: 560px; margin: 0 auto; }
.label-seksi {
  display: inline-block;
  background: var(--bg2);
  color: var(--primer);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
}

/* ===== LAYANAN CARDS ===== */
.grid-layanan {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.card-layanan {
  background: var(--putih);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px 22px;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.card-layanan:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--aksen-dark);
}
.card-layanan .ikon {
  width: 56px; height: 56px;
  background: var(--bg2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.card-layanan .ikon svg { width: 28px; height: 28px; }
.card-layanan h3 { font-size: 0.95rem; font-weight: 700; color: var(--primer); margin-bottom: 6px; }
.card-layanan p { font-size: 0.83rem; color: var(--teks-abu); line-height: 1.5; }

/* ===== KEUNGGULAN ===== */
.grid-keunggulan {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}
.card-keunggulan {
  background: var(--putih);
  border-left: 4px solid var(--primer);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 20px;
  box-shadow: var(--shadow);
}
.card-keunggulan h3 { font-size: 0.97rem; font-weight: 700; color: var(--primer); margin-bottom: 6px; }
.card-keunggulan p { font-size: 0.84rem; color: var(--teks-abu); line-height: 1.55; }

/* ===== PRODUK TABLE ===== */
.produk-kategori { margin-bottom: 40px; }
.produk-kategori h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primer);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.tabel-produk {
  width: 100%;
  border-collapse: collapse;
  background: var(--putih);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.tabel-produk thead { background: var(--primer); color: #fff; }
.tabel-produk th {
  padding: 12px 14px;
  text-align: left;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.tabel-produk td {
  padding: 11px 14px;
  font-size: 0.87rem;
  border-bottom: 1px solid var(--border);
  color: var(--teks);
}
.tabel-produk tr:last-child td { border-bottom: none; }
.tabel-produk tr:hover td { background: var(--bg); }
.badge-stok {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 0.73rem;
  font-weight: 700;
}
.badge-ada { background: #e8f5e9; color: #2e7d32; }
.badge-habis { background: #ffebee; color: #c62828; }
.harga { font-weight: 700; color: var(--primer); }
.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
  border-radius: 6px;
}

/* ===== CARA ORDER ===== */
.langkah-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  max-width: 680px;
  margin: 0 auto;
}
.langkah-item {
  display: flex;
  gap: 20px;
  padding: 0 0 32px 0;
  position: relative;
}
.langkah-item:last-child { padding-bottom: 0; }
.langkah-num {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: var(--primer);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.05rem;
  position: relative;
  z-index: 1;
}
.langkah-item::before {
  content: '';
  position: absolute;
  left: 21px;
  top: 44px;
  width: 2px;
  height: calc(100% - 44px);
  background: var(--border);
}
.langkah-item:last-child::before { display: none; }
.langkah-isi { padding-top: 8px; }
.langkah-isi h3 { font-size: 1rem; font-weight: 700; color: var(--primer); margin-bottom: 5px; }
.langkah-isi p { font-size: 0.88rem; color: var(--teks-abu); line-height: 1.6; }

/* FAQ */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--putih);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-toggle { display: none; }
.faq-q {
  padding: 15px 18px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--primer);
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-q::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--aksen-dark);
  transition: transform 0.2s;
}
.faq-toggle:checked + .faq-q::after { content: '−'; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-toggle:checked ~ .faq-a { max-height: 300px; }
.faq-a p { padding: 0 18px 16px; font-size: 0.87rem; color: var(--teks-abu); line-height: 1.65; }

/* ===== CEK TRANSAKSI ===== */
.cek-wrap {
  max-width: 560px;
  margin: 0 auto;
  background: var(--putih);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-md);
  border: 1.5px solid var(--border);
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--primer);
  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-family: var(--font);
  font-size: 0.92rem;
  background: var(--bg);
  color: var(--teks);
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primer);
  background: var(--putih);
}
.form-group textarea { resize: vertical; min-height: 110px; }

/* Hasil cek dummy */
.hasil-cek {
  margin-top: 22px;
  padding: 18px;
  background: var(--bg2);
  border-radius: var(--radius);
  border-left: 4px solid var(--primer);
  display: none;
}
.hasil-cek.tampil { display: block; }
.hasil-cek h3 { font-size: 0.95rem; font-weight: 700; color: var(--primer); margin-bottom: 10px; }
.hasil-row { display: flex; justify-content: space-between; font-size: 0.85rem; padding: 5px 0; border-bottom: 1px solid var(--border); }
.hasil-row:last-child { border-bottom: none; }
.hasil-row span:first-child { color: var(--teks-abu); }
.hasil-row span:last-child { font-weight: 600; color: var(--teks); }
.status-sukses { color: #2e7d32 !important; font-weight: 700 !important; }
.status-gagal { color: #c62828 !important; font-weight: 700 !important; }

/* ===== KONTAK ===== */
.grid-kontak {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 700px) { .grid-kontak { grid-template-columns: 1fr; } }
.kontak-info-list { display: flex; flex-direction: column; gap: 16px; }
.kontak-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--putih);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.kontak-item .ikon {
  width: 44px; height: 44px;
  background: var(--bg2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.kontak-item .ikon svg { width: 22px; height: 22px; }
.kontak-item h4 { font-size: 0.87rem; font-weight: 700; color: var(--primer); margin-bottom: 3px; }
.kontak-item p { font-size: 0.84rem; color: var(--teks-abu); line-height: 1.5; }
.kontak-item a { color: var(--primer); font-weight: 600; text-decoration: none; }
.kontak-item a:hover { text-decoration: underline; }

/* Jam operasional */
.jam-wrap { background: var(--putih); border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-top: 16px; }
.jam-wrap h4 { background: var(--primer); color: #fff; padding: 10px 16px; font-size: 0.88rem; font-weight: 700; }
.jam-row { display: flex; justify-content: space-between; padding: 9px 16px; font-size: 0.84rem; border-bottom: 1px solid var(--border); }
.jam-row:last-child { border-bottom: none; }
.jam-row span:first-child { color: var(--teks-abu); }
.jam-row span:last-child { font-weight: 600; color: var(--teks); }

/* Form kontak */
.form-kontak { background: var(--putih); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.form-kontak h3 { font-size: 1rem; font-weight: 800; color: var(--primer); margin-bottom: 20px; }
.btn-full { width: 100%; text-align: center; padding: 13px; font-size: 0.95rem; }

/* ===== SIMPAN PINJAM BANNER ===== */
.sp-banner {
  background: linear-gradient(120deg, var(--primer) 0%, #388e3c 100%);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.sp-banner h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 8px; }
.sp-banner p { font-size: 0.9rem; opacity: 0.88; max-width: 400px; line-height: 1.6; }

/* ===== ANGGOTA SECTION ===== */
.grid-anggota { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.card-anggota {
  background: var(--putih);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
}
.card-anggota .ava {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--aksen) 0%, var(--aksen-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--primer-dark);
}
.card-anggota h4 { font-size: 0.92rem; font-weight: 700; color: var(--teks); margin-bottom: 4px; }
.card-anggota p { font-size: 0.8rem; color: var(--teks-abu); }
.card-anggota .rating { color: #f9a825; font-size: 0.85rem; margin-top: 6px; }

/* ===== FOOTER ===== */
footer {
  background: var(--primer-dark);
  color: rgba(255,255,255,0.87);
  padding: 48px 20px 24px;
}
.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand .logo { color: #fff; }
.footer-brand p { font-size: 0.85rem; opacity: 0.75; margin-top: 12px; line-height: 1.65; }
.footer-col h4 { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--aksen); margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { color: rgba(255,255,255,0.72); font-size: 0.86rem; text-decoration: none; transition: color 0.18s; }
.footer-col ul li a:hover { color: var(--aksen); }
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  opacity: 0.6;
  flex-wrap: wrap;
  gap: 8px;
}

/* ===== HIGHLIGHT BOX ===== */
.highlight-box {
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-top: 24px;
}
.highlight-box h4 { font-size: 0.92rem; font-weight: 700; color: var(--primer); margin-bottom: 8px; }
.highlight-box ul { padding-left: 18px; }
.highlight-box ul li { font-size: 0.86rem; color: var(--teks-abu); margin-bottom: 5px; line-height: 1.5; }

/* ===== TABS PRODUK ===== */
.tab-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.tab-btn {
  display: none;
}
.tab-label {
  padding: 9px 18px;
  border-radius: 22px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--putih);
  border: 1.5px solid var(--border);
  color: var(--teks-abu);
  transition: all 0.18s;
}
.tab-btn:checked + .tab-label {
  background: var(--primer);
  color: #fff;
  border-color: var(--primer);
}
.tab-content { display: none; }
#tab1:checked ~ .tab-area #area1 { display: block; }
#tab2:checked ~ .tab-area #area2 { display: block; }
#tab3:checked ~ .tab-area #area3 { display: block; }
#tab4:checked ~ .tab-area #area4 { display: block; }

/* ===== RESPONSIVE TABEL ===== */
@media (max-width: 600px) {
  .tabel-produk thead { display: none; }
  .tabel-produk tr { display: block; border-bottom: 2px solid var(--border); padding: 10px 0; }
  .tabel-produk td {
    display: flex;
    justify-content: space-between;
    border: none;
    padding: 5px 14px;
    font-size: 0.84rem;
  }
  .tabel-produk td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--teks-abu);
    font-size: 0.78rem;
    min-width: 110px;
  }
}

/* ===== MISC ===== */
.teks-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.cta-strip {
  background: linear-gradient(135deg, var(--primer) 0%, #2e7d32 100%);
  text-align: center;
  padding: 52px 20px;
  color: #fff;
}
.cta-strip h2 { font-size: 1.7rem; font-weight: 800; margin-bottom: 12px; }
.cta-strip p { opacity: 0.88; margin-bottom: 24px; font-size: 0.97rem; }

/* Scroll reveal animation placeholder */
@media (prefers-reduced-motion: no-preference) {
  .card-layanan, .card-keunggulan { transition: box-shadow 0.2s, transform 0.2s; }
}

/* WA float button */
.wa-float {
  position: fixed;
  bottom: 22px; right: 22px;
  background: #25d366;
  color: #fff;
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  text-decoration: none;
  z-index: 200;
  transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { width: 28px; height: 28px; }
