/* =========================================================
   LUNAR ACADEMY — Design tokens (dari DESIGN.md)
   ========================================================= */
:root {
  --color-primary: #1E3A8A;
  --color-primary-dark: #172554;
  --color-secondary: #0F172A;
  --color-tertiary: #D97706;
  --color-tertiary-dark: #92400E;
  --color-neutral: #64748B;

  --bg-base: #F8FAFC;
  --bg-elevated: #FFFFFF;
  --bg-recessed: #F1F5F9;

  --text-main: #0B1C30;
  --text-muted: #444651;
  --outline: #CBD5E1;
  --outline-soft: rgba(15, 23, 42, 0.08);

  --badge-bg: #EFF6FF;
  --badge-text: #1E3A8A;
  --badge-honor-bg: #FEF3C7;
  --badge-honor-text: #92400E;

  --radius-base: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  --shadow-1: 0 1px 3px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.03);
  --shadow-2: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 12px 24px -4px rgba(30, 58, 138, 0.06);
  --shadow-3: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.04);

  --container-max: 80rem;
  --gutter: 1.5rem;

  color-scheme: light;
}

html[data-theme="dark"] {
  --bg-base: #0B1220;
  --bg-elevated: #0F1B33;
  --bg-recessed: #101B2E;

  --text-main: #EAF1FF;
  --text-muted: #B6C2D9;
  --outline: #26375A;
  --outline-soft: rgba(234, 241, 255, 0.08);

  --badge-bg: rgba(30, 58, 138, 0.35);
  --badge-text: #B6C4FF;
  --badge-honor-bg: rgba(217, 119, 6, 0.2);
  --badge-honor-text: #FBBF6C;

  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", -apple-system, sans-serif;
  background: var(--bg-base);
  color: var(--text-main);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.2s ease, color 0.2s ease;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { padding: 4rem 0; }
@media (max-width: 767px) {
  section { padding: 2.75rem 0; }
  :root { --gutter: 1rem; }
}

h1, h2, h3, h4 { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 700; letter-spacing: -0.02em; margin: 0; color: var(--text-main); }
p { margin: 0; color: var(--text-muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary);
  background: var(--badge-bg);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.section-head { max-width: 42rem; margin-bottom: 2.5rem; }
.section-head h2 { font-size: 2rem; line-height: 1.25; margin-bottom: 0.75rem; }
@media (max-width: 767px) { .section-head h2 { font-size: 1.5rem; } }
.section-head p { font-size: 1.05rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-base);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); box-shadow: var(--shadow-2); }
.btn-secondary { background: transparent; color: var(--text-main); border: 1.5px solid var(--outline); }
.btn-secondary:hover { background: var(--bg-recessed); }
.btn-accent { background: var(--color-tertiary); color: #fff; }
.btn-accent:hover { background: var(--color-tertiary-dark); }
.btn-wa { background: #25D366; color: #fff; }
.btn-wa:hover { background: #1DA851; }
.btn-lg { padding: 0.95rem 1.75rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--outline-soft);
}
html[data-theme="dark"] .site-header { background: rgba(11, 18, 32, 0.86); }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.85rem 0; }
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand img { height: 40px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a { font-size: 0.92rem; font-weight: 500; color: var(--text-muted); padding: 0.3rem 0; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a.active { color: var(--color-primary); border-color: var(--color-primary); }

.nav-actions { display: flex; align-items: center; gap: 0.6rem; }
.icon-btn {
  width: 36px; height: 36px; border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--outline); background: transparent; cursor: pointer;
  color: var(--text-main); font-size: 0.8rem; font-weight: 700;
}
.icon-btn:hover { background: var(--bg-recessed); }

.lang-switch { display: flex; align-items: center; border: 1px solid var(--outline); border-radius: var(--radius-full); overflow: hidden; }
.lang-switch button {
  border: none; background: transparent; padding: 0.35rem 0.65rem; font-size: 0.75rem; font-weight: 700;
  color: var(--text-muted); cursor: pointer;
}
.lang-switch button.active-lang { background: var(--color-primary); color: #fff; }

.nav-toggle { display: none; }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}
/* Di layar kecil tombol Konsultasi disembunyikan karena sudah ada tombol WhatsApp mengambang */
@media (max-width: 600px) {
  .nav-actions .btn-primary { display: none; }
}

.mobile-menu { display: none; flex-direction: column; gap: 0.25rem; padding: 0.75rem 0 1rem; border-top: 1px solid var(--outline-soft); }
.mobile-menu.open { display: flex; }
@media (min-width: 901px) { .mobile-menu.open { display: none; } }
.mobile-menu a { padding: 0.65rem 0.75rem; font-weight: 600; color: var(--text-main); border-radius: var(--radius-base); }
.mobile-menu a:hover { background: var(--bg-recessed); }
.mobile-menu a.active { color: var(--color-primary); background: var(--badge-bg); }

/* ---------- Hero ---------- */
.hero { padding: 3.5rem 0 3rem; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 2rem; } }
.hero h1 { font-size: 2.75rem; line-height: 1.15; margin-bottom: 1.1rem; }
@media (max-width: 767px) { .hero h1 { font-size: 1.9rem; } }
.hero p.lead { font-size: 1.1rem; margin-bottom: 1.75rem; max-width: 34rem; }

.cta-split { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 1.5rem; }
.cta-note { font-size: 0.85rem; color: var(--text-muted); }

.hero-visual {
  border-radius: var(--radius-xl);
  background: linear-gradient(155deg, var(--color-secondary), var(--color-primary));
  padding: 2rem;
  color: #fff;
  min-height: 300px;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: var(--shadow-3);
}
.hero-visual .tag { font-size: 0.78rem; font-weight: 600; opacity: 0.75; letter-spacing: 0.02em; }
.hero-visual .headline { font-size: 1.4rem; font-weight: 700; margin: 0.75rem 0; }
.hero-visual .figure { font-size: 3rem; font-weight: 700; color: var(--color-tertiary); }
.hero-visual .figure-label { font-size: 0.85rem; opacity: 0.8; }

/* ---------- Stat strip ---------- */
.stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
  padding: 2rem 0; border-top: 1px solid var(--outline-soft); border-bottom: 1px solid var(--outline-soft);
}
@media (max-width: 767px) { .stat-strip { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }
.stat-item .num { font-size: 1.9rem; font-weight: 700; color: var(--color-primary); }
.stat-item .label { font-size: 0.85rem; color: var(--text-muted); }

.placeholder-tag {
  display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.02em;
  color: var(--color-tertiary-dark); background: var(--badge-honor-bg);
  padding: 0.1rem 0.5rem; border-radius: var(--radius-full); margin-left: 0.4rem; vertical-align: middle;
}

/* ---------- Grid / Cards ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
/* Kolom grid boleh menyempit, teks panjang tanpa spasi (email, nomor AHU) dipotong ke baris baru agar tidak keluar layar HP */
.grid-2 > *, .grid-3 > *, .grid-4 > *, .grid-5 > * { min-width: 0; }
.card, .form-card { overflow-wrap: anywhere; }

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--outline-soft);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-1);
}
@media (max-width: 767px) { .card { padding: 1.15rem; } }
.card .icon-wrap {
  width: 44px; height: 44px; border-radius: var(--radius-base);
  background: var(--badge-bg); color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 1rem;
}
.card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.card p { font-size: 0.92rem; }
.card ul { margin: 0.75rem 0 0; padding-left: 1.1rem; font-size: 0.88rem; color: var(--text-muted); }
.card ul li { margin-bottom: 0.3rem; }

.card-featured { border: 1.5px solid var(--color-primary); position: relative; }
.card-featured .ribbon {
  position: absolute; top: -0.65rem; left: 1.25rem;
  background: var(--color-tertiary); color: #fff; font-size: 0.7rem; font-weight: 700;
  padding: 0.2rem 0.7rem; border-radius: var(--radius-full);
}

/* ---------- Chip / badge ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.78rem; font-weight: 600;
  padding: 0.25rem 0.75rem; border-radius: var(--radius-full);
  background: var(--badge-bg); color: var(--badge-text);
}
.chip-honor { background: var(--badge-honor-bg); color: var(--badge-honor-text); }

/* ---------- Testimonial ---------- */
.testimonial { background: var(--bg-elevated); border: 1px solid var(--outline-soft); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-1); }
.testimonial .stars { color: var(--color-tertiary); font-size: 0.9rem; margin-bottom: 0.75rem; }
.testimonial p.quote { font-size: 0.94rem; color: var(--text-main); font-style: italic; margin-bottom: 1.1rem; }
.testimonial .person { display: flex; align-items: center; gap: 0.7rem; }
.avatar-initials {
  width: 40px; height: 40px; border-radius: var(--radius-full);
  background: var(--color-primary); color: #fff; font-weight: 700; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.person-name { font-size: 0.9rem; font-weight: 700; }
.person-role { font-size: 0.8rem; color: var(--text-muted); }

/* ---------- Mentor card ---------- */
.mentor-card { background: var(--bg-elevated); border: 1px solid var(--outline-soft); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-1); }
.mentor-photo {
  height: 190px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(155deg, var(--color-secondary), var(--color-primary));
  color: #fff; font-size: 2.6rem; font-weight: 700;
}
.mentor-body { padding: 1.35rem; }
.mentor-body .role { font-size: 0.78rem; font-weight: 600; color: var(--color-primary); text-transform: none; margin-bottom: 0.3rem; }
.mentor-body h3 { font-size: 1.15rem; margin-bottom: 0.25rem; }
.mentor-body .exp { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.8rem; }

/* ---------- Timeline / steps ---------- */
.step-item { padding: 1.35rem; background: var(--bg-elevated); border: 1px solid var(--outline-soft); border-radius: var(--radius-lg); }
.step-num { font-size: 1.7rem; font-weight: 700; color: var(--outline); margin-bottom: 0.6rem; }

/* ---------- Form ---------- */
.form-card { background: var(--bg-elevated); border: 1px solid var(--outline-soft); border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow-1); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.65rem 0.85rem; border-radius: var(--radius-base);
  border: 1px solid var(--outline); background: var(--bg-base); color: var(--text-main);
  font-family: inherit; font-size: 0.92rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(30,58,138,0.15);
}
.field-full { grid-column: 1 / -1; }

/* ---------- Dark banner / CTA block ---------- */
.banner-dark {
  background: linear-gradient(155deg, var(--color-secondary), var(--color-primary));
  color: #fff; border-radius: var(--radius-xl); padding: 2.5rem;
}
.banner-dark h2, .banner-dark p { color: #fff; }
.banner-dark p { opacity: 0.85; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-secondary); color: #cbd5e1; padding: 3rem 0 1.5rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 0.92rem; margin-bottom: 0.9rem; }
.site-footer p { color: #94a3b8; font-size: 0.88rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 0.55rem; font-size: 0.88rem; }
.site-footer ul li a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.9rem; }
.footer-brand img { height: 26px; }
.footer-brand span { color: #fff; font-weight: 700; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.25rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; font-size: 0.8rem; color: #94a3b8; }

/* ---------- WhatsApp floating button ---------- */
.wa-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 60;
  width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
  background: #25D366; color: #fff; border-radius: var(--radius-full);
  box-shadow: var(--shadow-3); transition: transform 0.2s ease, background-color 0.2s ease;
}
.wa-float:hover { background: #1DA851; transform: scale(1.06); }
@media (max-width: 600px) {
  .wa-float { width: 52px; height: 52px; bottom: 1rem; right: 1rem; }
  /* Ruang kosong di bawah footer agar teks terakhir tidak tertutup tombol WhatsApp */
  .site-footer { padding-bottom: 5rem; }
}

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.data-note {
  font-size: 0.82rem; color: var(--text-muted); background: var(--bg-recessed);
  border: 1px dashed var(--outline); border-radius: var(--radius-base); padding: 0.85rem 1rem; margin-top: 0.75rem;
}
.lang-en { display: none; }
html[data-lang="en"] .lang-en { display: inline; }
html[data-lang="en"] .lang-id { display: none; }
