/* ===========================================================
   DESIGN TOKENS — tema "Seru, Bukan Serem"
=========================================================== */
:root {
  --bg: #FFFDF8;
  --bg-soft: #FFF3E9;
  --ink: #26324A;
  --ink-soft: #6B7280;
  --white: #FFFFFF;

  --coral: #FF6B57;
  --coral-dark: #E5503D;
  --turquoise: #17B8A6;
  --turquoise-dark: #119084;
  --sunny: #FFC94D;
  --grape: #8B7CF6;
  --whatsapp: #25D366;

  --font-display: 'Baloo 2', 'Amiri', sans-serif;
  --font-arabic: 'Amiri', serif;
  --font-body: 'Nunito', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-pill: 999px;
  --max-width: 1160px;
  --header-h: 76px;
}

/* ===========================================================
   RESET
=========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); margin: 0 0 .5em; line-height: 1.2; font-weight: 700; }
p { margin: 0 0 1em; color: var(--ink-soft); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--ink);
  color: var(--white);
  padding: 12px 20px;
  z-index: 1000;
  border-radius: var(--radius-sm);
}
.skip-link:focus { left: 16px; top: 16px; }

:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--coral);
  margin: 0 0 .75em;
}

/* ===========================================================
   BUTTONS
=========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: .95rem;
  font-family: var(--font-body);
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  border: 2px solid transparent;
}
.btn-cta {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(255, 107, 87, .35);
}
.btn-cta:hover { background: var(--coral-dark); transform: translateY(-2px) scale(1.02); }
.btn-ghost {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--white); transform: translateY(-2px); }
.btn-ghost-light {
  border-color: rgba(255,255,255,.75);
  color: var(--white);
}
.btn-ghost-light:hover { background: var(--white); color: var(--ink); }

/* ===========================================================
   HEADER / NAV
   Default: solid untuk halaman non‑home.
   Home transparan di atas hero, solid setelah discroll.
=========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--bg);
  box-shadow: 0 2px 16px rgba(38,50,74,.08);
  transition: background .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
}
/* Halaman home */
body.home .site-header {
  background: transparent;
  box-shadow: none;
}
body.home .site-header.is-scrolled {
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 16px rgba(38,50,74,.08);
}
.header-inner { display: flex; align-items: center; gap: 32px; width: 100%; }
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-right: auto;
  color: var(--ink);
}
body.home .site-header:not(.is-scrolled) .logo { color: var(--white); }
.logo-glyph {
  font-family: var(--font-arabic);
  font-size: 1.6rem;
  color: var(--sunny);
  line-height: 1;
}
.main-nav ul { display: flex; gap: 28px; }
.nav-link {
  font-weight: 600;
  padding: 8px 2px;
  color: var(--ink);
  border-bottom: 2px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
body.home .site-header:not(.is-scrolled) .nav-link { color: var(--white); }
.nav-link:hover, .nav-link.is-active { color: var(--coral); border-color: var(--coral); }
.header-cta { white-space: nowrap; padding: 10px 22px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); display: block; transition: background .25s ease; }
body.home .site-header:not(.is-scrolled) .nav-toggle span { background: var(--white); }

/* ===========================================================
   HERO — hanya di home
=========================================================== */
.hero-full {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  margin-top: calc(-1 * var(--header-h));
  padding-top: var(--header-h);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  background-image: url('../assets/hero-photo.jpg'), linear-gradient(135deg, var(--turquoise) 0%, var(--grape) 55%, var(--coral) 100%);
  background-size: cover;
  background-position: center;
}
.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image: radial-gradient(circle, #FFFFFF 2px, transparent 2px);
  background-size: 28px 28px;
  mix-blend-mode: overlay;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(38,50,74,.15) 0%, rgba(38,50,74,.35) 45%, rgba(38,50,74,.88) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: 88px;
  color: var(--white);
  width: 100%;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.4);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 48px;
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  color: var(--white);
  text-shadow: 0 4px 24px rgba(0,0,0,.25);
}
.hero-tagline {
  font-size: 1.1rem;
  max-width: 52ch;
  color: rgba(255,255,255,.92);
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin: 28px 0 32px; }
.hero-chips { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-chip {
  background: rgba(255,255,255,.16);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.3);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: .85rem;
  color: var(--white);
}
.hero-chip strong { font-family: var(--font-mono); color: var(--sunny); margin-right: 4px; }

.scroll-cue {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--white);
  animation: bounce-cue 1.8s ease-in-out infinite;
}
@keyframes bounce-cue {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ===========================================================
   ABOUT / LOCATION
=========================================================== */
.about { padding: 88px 0; background: var(--bg-soft); }
.about-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; }
.about-location h3 { font-size: 1.15rem; margin-bottom: 12px; }
address { font-style: normal; color: var(--ink-soft); margin-bottom: 16px; }
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 24px rgba(38,50,74,.08); }
.map-embed iframe { width: 100%; height: 220px; border: 0; }

/* ===========================================================
   TESTIMONIALS
=========================================================== */
.testimonials { padding: 88px 0; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.testi-card {
  background: var(--white);
  border-top: 4px solid var(--turquoise);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(38,50,74,.06);
  transition: transform .2s ease;
}
.testi-card:nth-child(2) { border-top-color: var(--coral); }
.testi-card:nth-child(3) { border-top-color: var(--sunny); }
.testi-card:hover { transform: translateY(-4px); }
.testi-quote { font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; color: var(--ink); margin-bottom: 16px; }
.testi-name { font-weight: 700; color: var(--ink); }
.testi-role { font-size: .85rem; color: var(--ink-soft); }
.testi-stars { color: var(--sunny); font-size: .9rem; margin-bottom: 8px; letter-spacing: 2px; }

/* ===========================================================
   PROGRAM
=========================================================== */
.program { padding: 88px 0; background: var(--bg-soft); }
.program-grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: 24px; margin-bottom: 56px; }
.materi-card, .jadwal-card { background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: 0 8px 24px rgba(38,50,74,.06); }
.materi-card h3, .jadwal-card h3 { font-size: 1.2rem; }
.materi-list li { padding: 10px 0; border-bottom: 1px dashed #E5DED0; display: flex; gap: 10px; }
.materi-list li:last-child { border-bottom: none; }
.materi-list li::before { content: 'ـَ'; color: var(--coral); font-family: var(--font-arabic); font-weight: 700; }
.big-number { font-family: var(--font-mono); font-size: 3rem; color: var(--turquoise); margin: 8px 0 4px; }
.big-number span { display: block; font-size: .8rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .05em; }
.pricing-heading { font-size: 1.4rem; margin-bottom: 24px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.price-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(38,50,74,.06);
}
.price-card.is-featured { border-color: var(--coral); position: relative; }
.price-badge {
  position: absolute;
  top: -14px;
  right: 24px;
  background: var(--coral);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: .7rem;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}
.price-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.price-amount { font-family: var(--font-mono); font-size: 1.8rem; color: var(--coral); margin: 8px 0 20px; }
.price-amount span { font-size: .85rem; color: var(--ink-soft); }
.price-facilities { flex-grow: 1; margin-bottom: 24px; }
.price-facilities li { padding: 6px 0; font-size: .92rem; color: var(--ink-soft); display: flex; gap: 8px; }
.price-facilities li::before { content: '✓'; color: var(--turquoise); font-weight: 700; }

/* ===========================================================
   GALLERY
=========================================================== */
.gallery { padding: 88px 0; }
.gallery-intro { max-width: 60ch; }
.gallery-tabs { display: flex; gap: 12px; margin: 8px 0 32px; }
.gallery-tab {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .95rem;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  border: 2px solid #E5DED0;
  background: var(--white);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .15s ease;
}
.gallery-tab:hover { border-color: var(--turquoise); color: var(--ink); }
.gallery-tab.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 20px;
}
.photo-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 10px 10px 16px;
  box-shadow: 0 8px 20px rgba(38,50,74,.1);
  transform: rotate(-2deg);
  transition: transform .2s ease;
}
.photo-card:nth-child(even) { transform: rotate(2deg); }
.photo-card:hover { transform: rotate(0deg) translateY(-4px); }
.photo-card-media {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 10px;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: .75rem;
  background:
    linear-gradient(180deg, rgba(38,50,74,0) 45%, rgba(38,50,74,.75) 100%),
    var(--tile-color, var(--turquoise));
}
.photo-card img { width: 100%; height: 100%; object-fit: cover; }
.photo-caption { margin: 10px 4px 0; font-size: .85rem; color: var(--ink-soft); }
.gallery-empty { color: var(--ink-soft); font-style: italic; padding: 24px 0; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.video-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(38,50,74,.08);
}
.video-embed { position: relative; aspect-ratio: 16 / 9; background: var(--ink); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-title { padding: 14px 18px; margin: 0; font-weight: 700; font-size: .95rem; color: var(--ink); }

/* ===========================================================
   CONTACT
=========================================================== */
.contact { padding: 88px 0; background: var(--bg-soft); }
.contact-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.contact-list li { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px dashed #E5DED0; flex-wrap: wrap; gap: 4px; }
.contact-label { font-family: var(--font-mono); font-size: .8rem; text-transform: uppercase; color: var(--ink-soft); }
.contact-list a:hover { color: var(--coral); }
.contact-cta-card {
  background: linear-gradient(135deg, var(--coral), var(--grape));
  color: var(--white);
  padding: 32px;
  border-radius: var(--radius);
}
.contact-cta-card h3 { color: var(--white); }
.contact-cta-card p { color: rgba(255,255,255,.85); }
.contact-cta-card .btn-cta { background: var(--white); color: var(--coral-dark); box-shadow: none; }
.contact-cta-card .btn-cta:hover { background: #FFF3E9; }

/* ===========================================================
   FOOTER
=========================================================== */
.site-footer { padding: 32px 0; border-top: 4px solid; border-image: linear-gradient(90deg, var(--coral), var(--sunny), var(--turquoise)) 1; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; }
.footer-inner nav { display: flex; gap: 20px; }
.footer-copy { font-size: .85rem; color: var(--ink-soft); margin: 0; }

/* ===========================================================
   WHATSAPP FLOAT
=========================================================== */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  z-index: 90;
  transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.08); }

/* ===========================================================
   RESPONSIVE
=========================================================== */
@media (max-width: 900px) {
  .about-inner, .contact-inner { grid-template-columns: 1fr; }
  .program-grid { grid-template-columns: 1fr; }
  .testi-grid, .pricing-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--bg);
    border-bottom: 1px solid #E5DED0;
    transform: translateY(-110%);
    transition: transform .2s ease;
  }
  .main-nav.is-open { transform: translateY(0); }
  .main-nav ul { flex-direction: column; padding: 16px 24px 24px; gap: 4px; }
  .main-nav .nav-link { color: var(--ink) !important; display: block; padding: 12px 0; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .hero-chips { flex-wrap: wrap; }
  .gallery-tabs { flex-wrap: wrap; }
}