/* =====================================================
   TOKENS (Synced with homev1)
===================================================== */
:root {
  --bg: #FFFFFF;
  --bg-subtle: #F9F9F9;
  --border: #EBEBEB;
  --text-dark: #1A1A1A;
  --text-mid: #5A5A5A;
  --text-light: #AAAAAA;
  --burgundy: #7A1E1E;
  --burg-hover: #921F1F;
  --burg-glow: rgba(122,30,30,0.12);
  --gold: #C8A36A;
  --gold-lt: #D9BC8F;

  --font-family: 'Montserrat', sans-serif;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --max-w: 1240px;
  --pad-x: 32px;
  --section-gap: 112px;
  --radius: 20px;
  --radius-pill: 999px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--font-family);
  background: var(--bg);
  color: var(--text-dark);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { border: 0; background: none; cursor: pointer; font: inherit; }

.wrap { max-width: var(--max-w); margin-inline: auto; padding-inline: var(--pad-x); }

.eyebrow {
  font-size: 0.52rem; font-weight: 700; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--burgundy); margin-bottom: 16px;
}
.section-title {
  font-weight: 800; font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  text-transform: uppercase; letter-spacing: -0.01em; line-height: 1.15;
  color: var(--text-dark); margin-bottom: 18px;
}
.section-title em { font-style: normal; color: var(--burgundy); }
.body-text { font-size: 0.82rem; color: var(--text-mid); line-height: 1.9; }
.section-head { max-width: 620px; margin-bottom: 48px; }

/* =====================================================
   ICONS
===================================================== */
.icon-svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; display: block; }

/* =====================================================
   BUTTONS
===================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase;
  height: 48px; padding: 0 28px; border-radius: var(--radius-pill);
  border: 1.5px solid transparent; cursor: pointer; transition: all 0.2s ease;
  position: relative; overflow: hidden;
}
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.18) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform 0.8s var(--ease); pointer-events: none;
}
.btn:hover::after { transform: translateX(120%); }
.btn:hover { transform: translateY(-2px); }
.btn--fill { background: var(--burgundy); color: #fff; border-color: var(--burgundy); box-shadow: 0 8px 25px rgba(122,30,30,0.25); }
.btn--fill:hover { background: var(--burg-hover); border-color: var(--burg-hover); }
.btn--outline { background: transparent; color: var(--text-dark); border-color: var(--border); }
.btn--outline:hover { background: var(--bg-subtle); border-color: var(--text-mid); }
.btn--ghost-light { background: rgba(255,255,255,0.15); color: #fff; border-color: rgba(255,255,255,0.35); }
.btn--ghost-light:hover { background: #fff; color: var(--burgundy); border-color: #fff; }
.btn .arrow { transition: transform 0.3s ease; display: inline-block; }
.btn:hover .arrow { transform: translateX(4px); }

/* =====================================================
   REVEAL
===================================================== */
[data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.26s; }
[data-reveal-delay="4"] { transition-delay: 0.34s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 6px rgba(122,30,30,0.12); }
  50% { box-shadow: 0 0 0 12px rgba(122,30,30,0); }
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes carouselScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* =====================================================
   HERO
===================================================== */
.hero-banner { padding: 40px 0 var(--section-gap); }
.hero-banner__card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  min-height: 560px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(155deg, #2A1010 0%, var(--burgundy) 55%, #4A1414 100%);
}
.hero-banner__card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(10,4,4,0.75) 0%, rgba(10,4,4,0.35) 55%, rgba(10,4,4,0.15) 100%);
}
.hero-banner__content {
  position: relative; z-index: 2; max-width: 680px; margin-inline: auto;
  padding: 48px 24px; display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hero-banner__badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 20px 7px 16px;
  border-radius: var(--radius-pill); background: rgba(217,179,130,0.15);
  border: 1px solid rgba(217,179,130,0.25); margin-bottom: 24px;
  opacity: 0; animation: fadeUp 0.9s ease both;
}
.hero-banner__badge .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-lt); animation: pulse-dot 2s ease-in-out infinite; }
.hero-banner__badge span { font-size: 0.58rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-lt); }
.hero-banner__title {
  font-weight: 900; font-size: clamp(2.1rem, 5vw, 3.6rem); text-transform: uppercase;
  letter-spacing: -0.02em; line-height: 1.05; color: #fff;
  opacity: 0; animation: fadeUp 0.9s 0.1s ease both;
}
.hero-banner__title em,
.hero-banner__title .accent {
  font-style: normal; /* penting: <em> default-nya italic di browser, ini buat matiin itu */
  color: var(--gold-lt);
  font-weight: 300;
}
.hero-banner__desc {
  margin-top: 20px; font-size: 0.88rem; color: rgba(255,255,255,0.82); max-width: 520px;
  line-height: 1.9; opacity: 0; animation: fadeUp 0.9s 0.2s ease both;
}
.hero-banner__actions {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 32px;
  opacity: 0; animation: fadeUp 0.9s 0.3s ease both;
}
@media (max-width: 640px) {
  .hero-banner__card { min-height: 460px; }
  .hero-banner__actions .btn { width: 100%; max-width: 300px; }
}

/* =====================================================
   SHOWCASE
===================================================== */
.showcase { padding-block: var(--section-gap); background: var(--bg); }
.showcase__head { max-width: 640px; margin-bottom: 40px; }

.tabs {
  display: inline-flex; gap: 4px; padding: 4px; background: var(--bg-subtle);
  border: 1px solid var(--border); border-radius: var(--radius-pill); margin-bottom: 36px;
}
.tab-btn {
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 10px 22px; border-radius: var(--radius-pill); color: var(--text-mid);
  transition: all 0.25s ease;
}
.tab-btn.is-active { background: var(--burgundy); color: #fff; }

.carousel-wrap {
  overflow: hidden; border-radius: var(--radius); position: relative;
  background: var(--bg-subtle); border: 1px solid var(--border);
}
.carousel-track {
  display: flex; gap: 16px; width: max-content; animation: carouselScroll 30s linear infinite;
  will-change: transform; padding: 16px;
}
.carousel-wrap:hover .carousel-track { animation-play-state: paused; }
.carousel-track .slide {
  flex: 0 0 280px; height: 340px; border-radius: var(--radius); overflow: hidden;
  position: relative; border: 1px solid var(--border); transition: transform 0.3s ease;
  background: linear-gradient(150deg, #2A1010 0%, var(--burgundy) 55%, #4A1414 100%);
}
.carousel-track .slide:hover { transform: translateY(-4px); }
.carousel-track .slide::before {
  content: attr(data-label); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 20px; font-size: 0.58rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.5);
}
@media (max-width: 640px) {
  .carousel-track .slide { flex: 0 0 210px; height: 260px; }
  .carousel-track { padding: 10px; gap: 10px; }
}

/* =====================================================
   EXPECT
===================================================== */
.expect { padding-block: var(--section-gap); background: var(--bg); }
.expect__head { max-width: 620px; margin-bottom: 48px; }
.expect__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.expect-step { background: var(--bg-subtle); border: 1px solid var(--border); border-radius: 16px; padding: 30px 24px; }
.expect-step__num { font-size: 1.7rem; font-weight: 900; color: var(--burgundy); letter-spacing: -0.02em; margin-bottom: 16px; }
.expect-step h4 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; margin-bottom: 8px; letter-spacing: 0.01em; }
.expect-step p { font-size: 0.78rem; color: var(--text-mid); line-height: 1.75; }

@media (max-width: 980px) { .expect__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .expect__grid { grid-template-columns: 1fr; } }

/* =====================================================
   FACILITIES
===================================================== */
.facilities { padding-block: var(--section-gap); background: var(--bg-subtle); }
.facilities__head { max-width: 620px; margin-bottom: 48px; }
.facilities__grid { display: grid; grid-template-columns: repeat(var(--facility-cols, 3), 1fr); gap: 20px; }

.facility-card {
  display: flex; align-items: center; gap: 16px; background: var(--bg);
  border: 1px solid var(--border); border-radius: 14px; padding: 22px 22px;
}
.facility-card__icon {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--burg-glow); color: var(--burgundy);
}
.facility-card h4 { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; margin-bottom: 3px; letter-spacing: 0.01em; }
.facility-card p { font-size: 0.72rem; color: var(--text-mid); }

@media (max-width: 860px) { .facilities__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .facilities__grid { grid-template-columns: 1fr; } }

/* Icon image (facility & how-to card), fallback SVG tetap seperti semula */
.icon-mask {
  display: block;
  width: 20px;
  height: 20px;
  background-color: currentColor;
  -webkit-mask-image: var(--icon-src);
  mask-image: var(--icon-src);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

/* =====================================================
   PATHS + PROGRAMS
   (disamakan dengan .format-card di homev1: card lebih pendek,
   tag pill terpisah di atas, title/desc/BOOK numpuk di bawah)
===================================================== */
.paths { padding-block: var(--section-gap); background: var(--bg); }
.paths__head { max-width: 620px; margin-bottom: 48px; }

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

.program-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px 28px 28px;
  color: #fff;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  border: 1px solid var(--border);
  background: linear-gradient(155deg, #2A1010 0%, var(--burgundy) 55%, #4A1414 100%);
}
.program-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px -12px rgba(0,0,0,0.35);
}

/* Kalau ada foto (dari Class), kasih overlay gradasi biar teks kebaca */
.program-card.has-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,4,4,0.1) 0%, rgba(10,4,4,0.8) 100%);
  z-index: 1;
}

.program-card__tag {
  position: absolute;
  top: 24px;
  left: 28px;
  z-index: 2;
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-lt);
  padding: 5px 16px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(4px);
  background: rgba(255,255,255,0.06);
}

.program-card h4 {
  position: relative;
  z-index: 2;
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 8px;
}
.program-card p {
  position: relative;
  z-index: 2;
  font-size: 0.78rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.78);
  font-weight: 300;
  margin-bottom: 20px;
  min-height: 62px;
}
.program-card .book-link {
  position: relative;
  z-index: 2;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-lt);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  transition: gap 0.25s ease;
}
.program-card .book-link:hover { gap: 12px; }
.program-card .book-link .arrow { display: inline-block; transition: transform 0.25s ease; }
.program-card .book-link:hover .arrow { transform: translateX(4px); }

@media (max-width: 860px) {
  .program-grid { grid-template-columns: 1fr 1fr; }
  .program-card { min-height: 320px; }
}
@media (max-width: 560px) {
  .program-grid { grid-template-columns: 1fr; }
  .program-card { min-height: 280px; }
}

/* =====================================================
   HOW TO JOIN
===================================================== */
.how-to {
  padding-block: var(--section-gap);
  background: var(--bg-subtle);
}
.how-to__head { max-width: 620px; margin-bottom: 48px; }

.cta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.cta-card {
  display: block;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px 32px;
  text-align: center;
  transition: all 0.3s var(--ease);
  position: relative;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.cta-card:hover {
  border-color: var(--burgundy);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(122,30,30,0.08);
}
.cta-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--burg-glow);
  color: var(--burgundy);
}
.cta-card h4 {
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}
.cta-card p {
  font-size: 0.8rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 0;
}
.cta-card::after {
  content: '→';
  position: absolute;
  bottom: 16px;
  right: 20px;
  font-size: 1.1rem;
  color: var(--burgundy);
  opacity: 0.3;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.cta-card:hover::after {
  opacity: 1;
  transform: translateX(4px);
}

@media (max-width: 860px) {
  .cta-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .cta-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   CONTACT + MAP
===================================================== */
.contact-section { padding-block: var(--section-gap); background: var(--bg); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

.contact-title { font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.3rem); text-transform: uppercase; letter-spacing: -0.01em; line-height: 1.2; margin-bottom: 18px; }
.contact-title em { font-style: normal; color: var(--burgundy); }
.contact-desc { font-size: 0.85rem; color: var(--text-mid); line-height: 1.9; max-width: 440px; margin-bottom: 28px; }

.contact-icons { display: flex; gap: 12px; }
.contact-icons a {
  width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dark); transition: all 0.2s ease;
}
.contact-icons a:hover { border-color: var(--burgundy); color: var(--burgundy); transform: translateY(-2px); }

.map-card { background: var(--bg-subtle); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; overflow: hidden; }
.map-card__title { font-size: 1rem; font-weight: 800; text-transform: uppercase; color: var(--burgundy); margin-bottom: 4px; }
.map-card__sub { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-light); margin-bottom: 16px; display: block; }
.map-card__frame { border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: var(--bg); }
.map-card__frame iframe { display: block; width: 100%; height: 320px; border: none; }
.map-card__tags { margin-top: 14px; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-light); }

/* =====================================================
   IFRAME MODAL (Program BOOK bertipe Iframe / Rezerv)
===================================================== */
.rezerv-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(10, 4, 4, 0.6);
}
.rezerv-overlay.is-open { display: block; }

.class-iframe-modal {
  display: none;
  position: fixed;
  z-index: 10001;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 720px);
  height: min(85vh, 780px);
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.class-iframe-modal.is-open { display: block; }
.class-iframe-modal__frame { width: 100%; height: 100%; border: 0; display: block; }
.class-iframe-modal__close {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.55); color: #fff; border: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; cursor: pointer;
}
@media (max-width: 640px) {
  .class-iframe-modal { width: 96vw; height: 90vh; }
}

@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--bg-subtle); }
::-webkit-scrollbar-thumb { background: var(--burgundy); border-radius: 9px; border: 2px solid var(--bg-subtle); }
::-webkit-scrollbar-thumb:hover { background: var(--burg-hover); }
::selection { background: var(--burgundy); color: #fff; }