/* =============================================
   ASHAB CENDEKIA — style.css
   Yayasan Pendidikan & Sosial Kuningan
   ============================================= */

/* ===== RESET & ROOT ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --hijau:       #3CB96A;
  --hijau-gelap: #1E8A45;
  --hijau-tua:   #16633A;
  --hijau-muda:  #E8F8EE;
  --putih:       #FFFFFF;
  --abu-terang:  #F6FAF7;
  --abu:         #6B7B72;
  --hitam:       #1A2E22;
  --font:        'Poppins', sans-serif;
  --radius-sm:   10px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --shadow-sm:   0 2px 12px rgba(0,0,0,0.06);
  --shadow-md:   0 8px 30px rgba(0,0,0,0.10);
  --shadow-grn:  0 8px 30px rgba(60,185,106,0.35);
  --trans:       0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--hitam);
  background: var(--putih);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; }
ul { list-style: none; }

/* ===== UTILITY ===== */
.container {
  max-width: 1140px;
  margin: 0 auto;
  width: 100%;
}

.section-label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--hijau-gelap);
  text-transform: uppercase;
  margin-bottom: 10px;
  text-align: center;
}

.section-title {
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--hitam);
  margin-bottom: 10px;
  text-align: center;
  line-height: 1.25;
}

.section-sub {
  font-size: 15px;
  color: var(--abu);
  max-width: 520px;
  margin: 0 auto 48px;
  line-height: 1.75;
  text-align: center;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--trans);
  text-decoration: none;
}

.btn-primary {
  background: var(--hijau);
  color: #fff;
  box-shadow: var(--shadow-grn);
}

.btn-primary:hover {
  background: var(--hijau-gelap);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(60,185,106,0.45);
}

.btn-outline {
  border: 2px solid var(--hijau);
  color: var(--hijau-gelap);
  background: transparent;
}

.btn-outline:hover {
  background: var(--hijau);
  color: #fff;
}

.btn-wa {
  background: #25D366;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 16px 36px;
  box-shadow: 0 6px 24px rgba(37,211,102,0.42);
}

.btn-wa:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(37,211,102,0.55);
}

/* ===== NAVBAR ===== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 13px 5%;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(60,185,106,0.10);
  transition: box-shadow var(--trans);
}

#navbar.scrolled {
  box-shadow: 0 2px 24px rgba(0,0,0,0.08);
}

#nav-content {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo svg {
  width: 42px;
  height: 42px;
}

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

.nav-brand-text .nb-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--hijau-gelap);
}

.nav-brand-text .nb-sub {
  font-size: 10.5px;
  font-weight: 400;
  color: var(--abu);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--abu);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 50px;
  transition: color var(--trans), background var(--trans);
}

.nav-link:hover {
  color: var(--hijau-gelap);
  background: var(--hijau-muda);
}

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

/* ===== HERO ===== */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 5% 64px;
  background: linear-gradient(140deg, #eef9f2 0%, #e4f5eb 45%, #f8fdf9 100%);
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: -140px; right: -140px;
  width: 560px; height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(60,185,106,0.13) 0%, transparent 65%);
  pointer-events: none;
}

#hero::after {
  content: '';
  position: absolute;
  bottom: -90px; left: -80px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(60,185,106,0.08) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(60,185,106,0.12);
  color: var(--hijau-gelap);
  padding: 7px 16px;
  border-radius: 50px;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 22px;
}

.hero-badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--hijau);
  animation: pulse 2.2s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.4); }
}

.hero-content h1 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 800;
  line-height: 1.22;
  color: var(--hitam);
  margin-bottom: 18px;
}

.hero-content h1 .aksen {
  color: var(--hijau);
  display: block;
}

.hero-desc {
  font-size: 15.5px;
  line-height: 1.78;
  color: var(--abu);
  margin-bottom: 34px;
}

.hero-desc strong {
  color: var(--hitam);
  font-weight: 600;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.stat-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.stat-chip .num {
  font-size: 20px;
  font-weight: 800;
  color: var(--hijau);
  line-height: 1;
}

.stat-chip .lbl {
  font-size: 11.5px;
  color: var(--abu);
  font-weight: 500;
  line-height: 1.3;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.logo-ring {
  width: 230px;
  height: 230px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 60px rgba(60,185,106,0.22), 0 4px 20px rgba(0,0,0,0.06);
  padding: 32px;
  animation: float 4.5s ease-in-out infinite;
}

.logo-ring svg {
  width: 100%;
  height: 100%;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-14px); }
}

.hero-cards {
  display: flex;
  gap: 12px;
}

.h-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  flex: 1;
}

.h-card .hc-num {
  font-size: 20px;
  font-weight: 800;
  color: var(--hijau);
}

.h-card .hc-lbl {
  font-size: 11px;
  color: var(--abu);
  font-weight: 500;
  margin-top: 2px;
}

/* ===== HOOK (dark section) ===== */
#hook {
  padding: 72px 5%;
  background: var(--hitam);
  position: relative;
  overflow: hidden;
}

#hook::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--hijau), var(--hijau-gelap));
}

.hook-inner {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.hook-inner h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.45;
  margin-bottom: 16px;
}

.hook-inner h2 em {
  color: var(--hijau);
  font-style: normal;
}

.hook-inner > p {
  font-size: 15.5px;
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
  margin-bottom: 42px;
}

.hook-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.hook-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(60,185,106,0.18);
  border-radius: var(--radius-md);
  padding: 26px 20px;
  text-align: left;
  transition: border-color var(--trans), background var(--trans);
}

.hook-card:hover {
  border-color: rgba(60,185,106,0.45);
  background: rgba(60,185,106,0.06);
}

.hook-card .ic {
  font-size: 30px;
  margin-bottom: 14px;
  display: block;
}

.hook-card h3 {
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.hook-card p {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
}

/* ===== PROGRAM ===== */
#program {
  padding: 80px 5%;
  background: var(--abu-terang);
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.prog-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  border: 2px solid transparent;
  transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
  position: relative;
  overflow: hidden;
}

.prog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(60,185,106,0.25);
}

.prog-card.featured {
  background: linear-gradient(148deg, var(--hijau-gelap) 0%, var(--hijau-tua) 100%);
}

.prog-badge {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--hijau);
  margin-bottom: 6px;
  display: block;
}

.prog-card.featured .prog-badge { color: rgba(255,255,255,0.65); }

.prog-card h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--hitam);
  margin-bottom: 4px;
}

.prog-card.featured h3 { color: #fff; }

.prog-equiv {
  font-size: 13px;
  color: var(--abu);
  margin-bottom: 18px;
}

.prog-card.featured .prog-equiv { color: rgba(255,255,255,0.6); }

.prog-free {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--hijau-muda);
  color: var(--hijau-gelap);
  padding: 7px 14px;
  border-radius: 50px;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 22px;
}

.prog-card.featured .prog-free {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.prog-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.prog-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--abu);
  line-height: 1.5;
}

.prog-card.featured .prog-list li { color: rgba(255,255,255,0.72); }

.prog-list li::before {
  content: '✓';
  width: 20px;
  height: 20px;
  background: var(--hijau-muda);
  color: var(--hijau-gelap);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

.prog-card.featured .prog-list li::before {
  background: rgba(255,255,255,0.18);
  color: #fff;
}

/* ===== KENAPA KAMI ===== */
#kenapa {
  padding: 80px 5%;
  background: var(--putih);
}

.kenapa-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.kenapa-visual-box {
  background: linear-gradient(135deg, var(--hijau-muda), rgba(60,185,106,0.10));
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  text-align: center;
}

.kenapa-visual-box svg {
  width: 130px;
  height: 130px;
  margin: 0 auto 20px;
}

.kenapa-quote {
  font-size: 14.5px;
  font-style: italic;
  color: var(--hijau-tua);
  line-height: 1.75;
  font-weight: 500;
}

.kenapa-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.kenapa-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.kenapa-icon {
  width: 50px;
  height: 50px;
  background: var(--hijau-muda);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.kenapa-text h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--hitam);
  margin-bottom: 4px;
}

.kenapa-text p {
  font-size: 13.5px;
  color: var(--abu);
  line-height: 1.65;
}

/* ===== DAFTAR ===== */
#daftar {
  padding: 80px 5%;
  background: linear-gradient(135deg, var(--hijau-gelap) 0%, var(--hijau-tua) 100%);
  position: relative;
  overflow: hidden;
}

#daftar::after {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}

#daftar .section-label { color: rgba(255,255,255,0.55); }
#daftar .section-title { color: #fff; }
#daftar .section-sub { color: rgba(255,255,255,0.65); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

.step-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: background var(--trans);
}

.step-card:hover { background: rgba(255,255,255,0.11); }

.step-num {
  width: 34px;
  height: 34px;
  background: var(--hijau);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.step-text strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.step-text span {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
}

.cta-box {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 38px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.cta-box h3 {
  font-size: 21px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.cta-box p {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 24px;
  line-height: 1.65;
}

/* ===== LOKASI ===== */
#lokasi {
  padding: 72px 5%;
  background: var(--abu-terang);
}

.lokasi-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: start;
}

.lokasi-info h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--hitam);
  margin-bottom: 22px;
}

.lokasi-rows {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.lokasi-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.lokasi-row .lic { font-size: 22px; flex-shrink: 0; margin-top: 1px; }

.lokasi-row strong {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--hitam);
  margin-bottom: 2px;
  letter-spacing: 0.3px;
}

.lokasi-row span {
  font-size: 13.5px;
  color: var(--abu);
  line-height: 1.55;
}

.lokasi-row a {
  color: var(--hijau);
  font-weight: 600;
  font-size: 13.5px;
}

.lokasi-map-box {
  background: var(--hijau-muda);
  border-radius: var(--radius-lg);
  border: 2px solid rgba(60,185,106,0.2);
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 32px;
}

.lokasi-map-box .map-ic { font-size: 52px; }

.lokasi-map-box p {
  font-size: 13.5px;
  color: var(--abu);
  line-height: 1.65;
}

/* ===== TESTIMONI ===== */
#testi {
  padding: 80px 5%;
  background: var(--putih);
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.testi-card {
  background: var(--abu-terang);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid rgba(60,185,106,0.10);
  transition: box-shadow var(--trans), transform var(--trans);
}

.testi-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.testi-stars { color: #f59e0b; font-size: 14px; margin-bottom: 12px; }

.testi-body {
  font-size: 13.5px;
  color: var(--abu);
  line-height: 1.72;
  font-style: italic;
  margin-bottom: 18px;
}

.testi-author { display: flex; align-items: center; gap: 12px; }

.testi-ava {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--hijau), var(--hijau-gelap));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
}

.testi-name { font-size: 13px; font-weight: 700; color: var(--hitam); }
.testi-prog { font-size: 11.5px; color: var(--hijau-gelap); font-weight: 500; }

/* ===== FOOTER ===== */
#footer {
  background: var(--hitam);
  padding: 52px 5% 28px;
  color: rgba(255,255,255,0.55);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 44px;
  margin-bottom: 40px;
}

.footer-brand-logo svg {
  width: 50px;
  height: 50px;
  margin-bottom: 14px;
}

.footer-brand h3 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.72;
}

.footer-col h4 {
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 10px;
  transition: color var(--trans);
}

.footer-col a:hover { color: var(--hijau); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 22px;
  text-align: center;
  font-size: 12.5px;
}

.footer-bottom a {
  color: var(--hijau);
  text-decoration: none;
}

/* ===== FLOATING WA ===== */
#wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.wa-tip {
  background: var(--hitam);
  color: #fff;
  padding: 8px 15px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  animation: fadeSlide 0.4s ease;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateX(10px); }
  to   { opacity: 1; transform: translateX(0); }
}

.wa-circle {
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 28px rgba(37,211,102,0.48);
  text-decoration: none;
  animation: waPulse 3.2s ease-in-out infinite;
  transition: transform var(--trans);
}

.wa-circle:hover { transform: scale(1.1); }

.wa-circle svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}

@keyframes waPulse {
  0%, 100% { box-shadow: 0 6px 28px rgba(37,211,102,0.48); }
  50% { box-shadow: 0 10px 40px rgba(37,211,102,0.65); }
}

/* ===== REVEAL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .hero-btns { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-content h1 { text-align: center; }
  .hero-badge { margin: 0 auto 22px; }
  .hero-desc { text-align: center; }

  .hook-grid { grid-template-columns: 1fr; }
  .program-grid { grid-template-columns: 1fr; }
  .kenapa-inner { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .lokasi-inner { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  #navbar { padding: 12px 4%; }
  #hero { padding: 90px 4% 52px; }
  .nb-sub { display: none; }
  .hero-cards { flex-wrap: wrap; }
  .hero-stats { flex-direction: column; align-items: center; }
  .logo-ring { width: 180px; height: 180px; }
}

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