/* ============================================================
   MAIN CSS — Sections di bawah fold
   ============================================================ */

/* ---------- Stats ---------- */
.stats { padding: 60px 0; background: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.stat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 20px; text-align: center; position: relative;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.stat-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.stat-number {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2.25rem); color: var(--navy);
  line-height: 1;
}
.stat-number-text { font-size: clamp(1rem, 3vw, 1.35rem); }
.stat-suffix { color: var(--accent); }
.stat-label { font-size: .85rem; color: var(--muted); margin-top: 6px; font-weight: 600; }
@media (min-width: 768px) {
  .stats { padding: 80px 0; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}

/* ---------- Pre-test ---------- */
.pretest { padding: 60px 0; background: linear-gradient(180deg, #F0F9FF 0%, #fff 100%); }
.pretest-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
.pretest-content .section-header { text-align: left; margin-left: 0; }
.pretest-features { display: grid; gap: 12px; margin: 24px 0; }
.pretest-features li { display: flex; gap: 12px; align-items: flex-start; }
.feature-icon {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px;
  background: var(--bg); color: var(--fg);
  display: inline-flex; align-items: center; justify-content: center;
}
.pretest-features strong { display: block; color: var(--navy); }
.pretest-features span { font-size: .9rem; color: var(--muted); }
.pretest-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pretest-visual { display: flex; justify-content: center; }
.pretest-circle {
  width: min(280px, 80vw); aspect-ratio: 1;
  border-radius: 50%; padding: 8px;
  background: conic-gradient(from 0deg, var(--pink), var(--yellow), var(--sky), var(--pink));
  animation: spin 12s linear infinite;
}
.pretest-circle-inner {
  width: 100%; height: 100%; background: #fff; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--navy); font-family: var(--font-display); font-weight: 700;
  animation: spin 12s linear infinite reverse;
}
.pretest-circle-inner .icon { color: var(--pink); margin-bottom: 8px; }
.pretest-circle-inner span:first-of-type { font-size: 1.5rem; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 768px) { .pretest-grid { grid-template-columns: 1.1fr .9fr; align-items: center; } }

/* ---------- Programs ---------- */
.programs { padding: 60px 0; background: var(--bg); }
.programs-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
.program-card {
  position: relative; background: #fff; border-radius: var(--radius-lg);
  padding: 26px; border: 2px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  display: flex; flex-direction: column;
}
.program-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}
.program-card-featured {
  border-color: var(--accent);
  box-shadow: 0 12px 32px color-mix(in srgb, var(--accent) 25%, transparent);
}
.program-badge {
  position: absolute; top: -12px; right: 20px;
  background: var(--accent); color: #fff;
  padding: 6px 14px; border-radius: 999px;
  font-size: .75rem; font-weight: 700; letter-spacing: .04em;
  box-shadow: var(--shadow);
}
.program-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.program-icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--accent-soft); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
}
.program-level {
  padding: 6px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: .75rem; font-weight: 700;
}
.program-name { font-size: 1.5rem; margin-bottom: 4px; }
.program-age { color: var(--accent); font-weight: 700; font-size: .85rem; margin-bottom: 12px; }
.program-desc { color: var(--muted); font-size: .95rem; margin-bottom: 16px; }
.program-specs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.program-specs li {
  background: var(--bg); padding: 6px 12px; border-radius: 999px;
  font-size: .78rem; font-weight: 600; color: var(--navy);
}
.program-foot {
  margin-top: auto; padding-top: 20px; border-top: 1px dashed var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.price-label { display: block; font-size: .75rem; color: var(--muted); font-weight: 600; }
.price-amount { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--navy); }
.price-amount span { font-size: .75rem; color: var(--muted); font-weight: 500; }
.btn-accent {
  background: var(--accent); color: #fff;
  padding: 10px 18px; font-size: .9rem;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 30%, transparent);
}
.btn-accent:hover { filter: brightness(1.05); }
.cta-mini {
  margin-top: 32px; padding: 20px 24px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy), #1a4a99);
  color: #fff; display: flex; flex-wrap: wrap; gap: 16px;
  align-items: center; justify-content: space-between;
}
.cta-mini-text { display: flex; align-items: center; gap: 12px; font-weight: 600; }
@media (min-width: 768px) {
  .programs { padding: 80px 0; }
  .programs-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

/* ---------- Method ---------- */
.method { padding: 60px 0; background: #fff; }
.method-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.method-card {
  position: relative; padding: 24px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.method-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--c);
}
.method-num {
  position: absolute; top: 16px; right: 20px;
  font-family: var(--font-display); font-weight: 700;
  font-size: 2rem; color: color-mix(in srgb, var(--c) 20%, transparent);
  line-height: 1;
}
.method-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: color-mix(in srgb, var(--c) 12%, transparent); color: var(--c);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.method-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.method-card p { color: var(--muted); font-size: .9rem; margin-bottom: 14px; }
.method-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.method-tags span {
  padding: 4px 10px; border-radius: 999px;
  background: var(--bg); color: var(--navy);
  font-size: .72rem; font-weight: 600;
}
@media (min-width: 640px) { .method-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .method { padding: 80px 0; } .method-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Advantages ---------- */
.advantages { padding: 60px 0; background: var(--bg); }
.adv-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.adv-card {
  background: #fff; border-radius: var(--radius); padding: 20px;
  border: 1px solid var(--line); text-align: center;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.adv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.adv-icon {
  width: 48px; height: 48px; border-radius: 14px; margin: 0 auto 12px;
  background: color-mix(in srgb, var(--c) 12%, transparent); color: var(--c);
  display: inline-flex; align-items: center; justify-content: center;
}
.adv-card h3 { font-size: 1rem; margin-bottom: 6px; }
.adv-card p { font-size: .85rem; color: var(--muted); }
@media (min-width: 768px) { .advantages { padding: 80px 0; } .adv-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

/* ---------- About ---------- */
.about { padding: 60px 0; background: #fff; }
.about-grid { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: center; }
.about-visual { position: relative; text-align: center; }
.about-visual img { border-radius: var(--radius-lg); margin: 0 auto; }
.about-name {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px; padding: 10px 18px; border-radius: 999px;
  background: #fff; box-shadow: var(--shadow);
  font-family: var(--font-display); font-weight: 700; color: var(--navy);
}
.about-name .icon { color: var(--pink); }
.about-content .section-header { text-align: left; margin-left: 0; }
.about-list { display: grid; gap: 10px; margin: 20px 0 24px; }
.about-list li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--navy); }
.about-list .icon { color: var(--pink); flex-shrink: 0; }
@media (min-width: 768px) { .about { padding: 80px 0; } .about-grid { grid-template-columns: 1fr 1.1fr; gap: 48px; } }

/* ---------- Testimonials ---------- */
.testimonials { padding: 60px 0; background: var(--bg); }
.testi-track {
  display: flex; gap: 16px; overflow-x: auto; padding: 4px 4px 20px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.testi-track::-webkit-scrollbar { display: none; }
.testi-card {
  flex: 0 0 85%; max-width: 360px; scroll-snap-align: start;
  background: #fff; border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.testi-stars { color: #F59E0B; font-size: 1.1rem; margin-bottom: 12px; letter-spacing: 2px; }
.testi-card p { color: var(--ink); font-size: .95rem; margin-bottom: 20px; font-style: italic; }
.testi-card footer { display: flex; align-items: center; gap: 12px; }
.testi-card footer img { border-radius: 50%; object-fit: cover; }
.testi-card footer strong { display: block; color: var(--navy); font-size: .95rem; }
.testi-card footer span { font-size: .8rem; color: var(--muted); }
@media (min-width: 768px) {
  .testimonials { padding: 80px 0; }
  .testi-track { display: grid; grid-template-columns: repeat(2, 1fr); overflow: visible; }
  .testi-card { flex: none; max-width: none; }
}
@media (min-width: 1024px) { .testi-track { grid-template-columns: repeat(4, 1fr); } }

/* ---------- FAQ ---------- */
.faq { padding: 60px 0; background: #fff; }
.faq-list { max-width: 800px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.faq-item[open] { border-color: var(--pink); box-shadow: var(--shadow-sm); }
.faq-item summary {
  padding: 20px 24px; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  color: var(--navy); display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.5rem; color: var(--pink);
  transition: transform .3s var(--ease); flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 24px 20px; color: var(--muted); }
.faq-body .btn { margin-top: 12px; }
.table-wrap { overflow-x: auto; margin: 12px 0; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table-wrap th, .table-wrap td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.table-wrap th { background: var(--bg); color: var(--navy); font-weight: 700; }
@media (min-width: 768px) { .faq { padding: 80px 0; } }

/* ---------- CTA ---------- */
.cta { padding: 60px 0; background: var(--bg); }
.cta-card {
  background: linear-gradient(135deg, var(--pink), #FF8FB1);
  color: #fff; padding: 40px 24px; border-radius: var(--radius-lg);
  text-align: center; position: relative; overflow: hidden;
  box-shadow: 0 20px 48px rgba(255,94,149,.35);
}
.cta-card::before {
  content: ""; position: absolute; inset: -50%;
  background: radial-gradient(circle, rgba(255,255,255,.2), transparent 60%);
  animation: shimmer 8s linear infinite;
}
@keyframes shimmer { to { transform: rotate(360deg); } }
.cta-card h2 { color: #fff; font-size: clamp(1.5rem, 4vw, 2.25rem); position: relative; }
.cta-card h2 span { color: var(--yellow); }
.cta-card p { color: rgba(255,255,255,.95); margin-bottom: 28px; position: relative; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; position: relative; }
.btn-wa {
  background: #25D366; color: #fff;
  box-shadow: 0 8px 20px rgba(37,211,102,.35);
}
.btn-wa:hover { background: #1ebe5b; }
.btn-ghost {
  background: rgba(255,255,255,.15); color: #fff;
  border-color: rgba(255,255,255,.5); backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,.25); }
@media (min-width: 768px) { .cta { padding: 80px 0; } .cta-card { padding: 60px 40px; } }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: rgba(255,255,255,.85); padding: 48px 0 24px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
.footer .brand-text { color: #fff; }
.footer .brand-text strong { color: var(--pink); }
.footer-brand p { margin: 16px 0; font-size: .9rem; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 12px;
  background: rgba(255,255,255,.1); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.footer-social a:hover { background: var(--pink); transform: translateY(-3px); }
.footer-col h3 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { font-size: .9rem; transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--pink); }
.footer-contact li { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.footer-contact .icon { color: var(--pink); flex-shrink: 0; }
.footer-bottom {
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center; font-size: .85rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; } }

/* ---------- Floating WhatsApp ---------- */
.float-wa {
  position: fixed; bottom: 20px; right: 20px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.45);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.float-wa:hover { transform: scale(1.08) translateY(-3px); box-shadow: 0 12px 32px rgba(37,211,102,.55); }
.float-wa-tip {
  position: absolute; right: calc(100% + 12px); top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: #fff; color: var(--navy);
  padding: 8px 14px; border-radius: 10px;
  font-size: .85rem; font-weight: 600; white-space: nowrap;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.float-wa:hover .float-wa-tip, .float-wa:focus-visible .float-wa-tip {
  opacity: 1; transform: translateY(-50%) translateX(0);
}
@media (min-width: 1024px) { .float-wa { width: 64px; height: 64px; bottom: 28px; right: 28px; } }

/* Focus visible (A11y) */
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }

/* ============================================================
   DESKTOP NAVBAR — FORCE HORIZONTAL (Anti-Overlay)
   ============================================================ */
@media (min-width: 992px) {

  /* Sembunyikan hamburger */
  .nav-toggle {
    display: none !important;
  }

  /* Container jadi flex horizontal */
  .nav-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    padding: 14px 24px !important;
  }

  /* Menu jadi horizontal */
  .nav-menu {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    position: static !important;
    padding: 0 !important;
    margin: 0 0 0 auto !important;
    gap: 4px !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    width: auto !important;
    list-style: none !important;
  }

  .nav-menu > li {
    display: inline-block !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  .nav-link {
    display: inline-block !important;
    padding: 8px 16px !important;
    font-size: 0.95rem !important;
    white-space: nowrap !important;
    border-radius: 10px !important;
  }

  .nav-cta {
    margin-left: 12px !important;
    padding: 0 !important;
  }

  .nav-cta .btn {
    width: auto !important;
    padding: 10px 20px !important;
  }

  /* Brand tetap di kiri */
  .brand {
    flex-shrink: 0 !important;
  }
}

/* ============================================================
   TABLET (768px - 991px) — masih pakai hamburger
   ============================================================ */
@media (min-width: 768px) and (max-width: 991px) {
  .nav-toggle {
    display: flex !important;
  }
  .nav-menu {
    /* tetap dropdown */
  }
}
/* ============================================================
   🔥 EMERGENCY FIX — MOBILE OVERFLOW & WHATSAPP BUTTON
   Tempel di paling bawah style.css
   ============================================================ */

/* 1. Global overflow protection */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw;
}
section, header, footer, main {
  max-width: 100vw;
  overflow-x: clip;
}
.container {
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}

/* 2. Floating WhatsApp — tooltip HANYA desktop */
.float-wa {
  position: fixed;
  bottom: max(20px, env(safe-area-inset-bottom));
  right: max(20px, env(safe-area-inset-right));
  width: 56px;
  height: 56px;
  z-index: 90;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.45);
}

.float-wa-tip {
  display: none !important; /* Sembunyikan total di mobile */
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  color: #0B2D6B;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: .85rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease;
}

@media (min-width: 1024px) and (hover: hover) {
  .float-wa-tip {
    display: block !important;
  }
  .float-wa:hover .float-wa-tip,
  .float-wa:focus-visible .float-wa-tip {
    opacity: 1;
  }
}

/* 3. Hero float card — fix posisi mobile */
.hero-float-card {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  padding: 8px 12px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15,23,42,.1);
  font-weight: 700;
  font-size: .75rem;
  color: #0B2D6B;
  z-index: 2;
  white-space: nowrap;
}

.hero-float-card-1 {
  top: 8%;
  left: 0;
  animation: float 3s ease-in-out infinite;
}
.hero-float-card-2 {
  bottom: 8%;
  right: 0;
  animation: float 3s ease-in-out infinite .5s;
}

@media (min-width: 768px) {
  .hero-float-card { padding: 10px 14px; font-size: .85rem; }
  .hero-float-card-1 { left: -4%; }
  .hero-float-card-2 { right: -4%; }
}

/* 4. Hero visual — cegah terpotong */
.hero-visual {
  position: relative;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-visual picture,
.hero-visual img {
  max-width: 100%;
  height: auto;
  display: block;
}
