/* =====================================================
   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;
}

/* =====================================================
   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; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* =====================================================
   HERO — section terpisah di luar .wrap (lihat PHP), full-bleed
   dengan margin kecil seperti About. Background pakai gradient
   default; kalau classesv1_hero_background diisi, PHP nimpa
   lewat inline style background-image.
===================================================== */
.section-head {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--radius);
    margin: 16px 16px 64px 16px;
    background: linear-gradient(155deg, #2A1010 0%, var(--burgundy) 55%, #4A1414 100%);
}
.section-head__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(10,4,4,0.78) 0%, rgba(10,4,4,0.4) 55%, rgba(10,4,4,0.15) 100%);
    z-index: 0;
}
.section-head__content {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin-inline: auto;
    padding: 40px 32px 60px;
    text-align: center;
}

.section-head .eyebrow {
    font-family: var(--font-family);
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--gold-lt);
    margin-bottom: 20px;
}

/* Title dipecah jadi 2 baris: bold-line (putih, tebal) + accent (gold, tipis) */
.section-head .section-title {
    display: flex;
    flex-direction: column;
    font-family: var(--font-family);
    font-size: clamp(2.8rem, 8vw, 4.5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    line-height: 0.95;
}
.section-head .section-title .bold-line { color: #fff; font-weight: 900; }
.section-head .section-title .accent    { color: var(--gold-lt); font-weight: 300; }

.section-head .body-text {
    font-family: var(--font-family);
    font-size: 0.85rem;
    font-weight: 400;
    color: rgba(255,255,255,0.85);
    max-width: 520px;
    margin: 22px auto 0;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .section-head {
        min-height: 70vh;
        margin: 12px 12px 48px 12px;
    }
    .section-head__content { padding: 32px 22px 40px; }
}

/* =====================================================
   SECTION HEAD (spacing untuk wrapper page, bukan hero)
===================================================== */
.classes-page { padding-block: var(--section-gap); }

/* =====================================================
   CLASS ROWS — alternating image / description
===================================================== */
.class-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  margin-bottom: 88px;
}
.class-row:last-child { margin-bottom: 0; }
.class-row:nth-child(even) .class-row__media { order: 2; }
.class-row:nth-child(even) .class-row__content { order: 1; }

.class-row__media {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 3.4; border: 1px solid var(--border);
  background: linear-gradient(155deg, #2A1010 0%, var(--burgundy) 55%, #4A1414 100%);
}
.class-row__media-placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 24px; text-align: center; font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.35);
}

/* =====================================================
   CLASS ROW — image overlay (synced with homev1 .format-card)
===================================================== */
.format-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 26, 24, 0.1) 0%, rgba(28, 26, 24, 0.75) 100%);
  z-index: 1;
}

/* Tag — posisi/ukuran punya sendiri, visual (color/border/blur/bg) dari format-card */
.class-row__tag {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
    font-family: var(--font-family);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffd4a8;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    backdrop-filter: blur(4px);
}

.class-row__content h3 {
  font-family: var(--font-family);
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--text-dark);
}
.class-row__content p {
  font-family: var(--font-family);
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-mid);
  line-height: 1.9;
  margin-bottom: 24px;
}
.class-row__level {
  display: inline-block;
  font-family: var(--font-family);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--burgundy);
  border: 1px solid var(--border);
  padding: 10px 18px;
  border-radius: 8px;
  margin-bottom: 24px;
}
.class-row__actions { display: flex; }

@media (max-width: 860px) {
  .class-row { grid-template-columns: 1fr; gap: 28px; margin-bottom: 56px; }
  .class-row:nth-child(even) .class-row__media,
  .class-row:nth-child(even) .class-row__content { order: initial; }
}

/* =====================================================
   CLASS CTA WRAPPER & POPUP — now shown as a centered modal
===================================================== */
.class-row__cta-wrapper {
    margin-top: 16px;
}

.class-studio-popup {
    position: relative;
    margin-top: 12px;
    padding: 24px 28px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

/* ---------- when opened, the popup becomes a fixed centered modal ---------- */
.rezerv-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 998;
    background: rgba(18,7,7,0.6);
}
.rezerv-overlay.is-open { display: block; }

.class-studio-popup.is-open {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
    width: calc(100% - 48px);
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
    margin-top: 0;
    box-shadow: 0 30px 70px rgba(0,0,0,0.35);
}

.class-studio-popup__close {
    display: none;
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    color: var(--text-mid);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}
.class-studio-popup.is-open .class-studio-popup__close { display: flex; }
.class-studio-popup__close:hover {
    background: var(--burgundy);
    color: #fff;
    border-color: var(--burgundy);
}

body.rezerv-modal-open { overflow: hidden; }

@media (max-width: 640px) {
    .class-studio-popup.is-open {
        width: calc(100% - 24px);
        padding: 24px 20px 28px;
    }
}

.class-studio-popup__eyebrow {
    font-family: var(--font-family);
    font-size: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--burgundy);
    margin-bottom: 8px;
}

.class-studio-popup__title {
    font-family: var(--font-family);
    font-size: 1.15rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.class-studio-popup__class {
    font-family: var(--font-family);
    font-size: 0.78rem;
    color: var(--text-mid);
    margin-bottom: 20px;
}

.class-studio-popup__option {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 8px;
    text-align: left;
    transition: all 0.2s ease;
    background: #fff;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-dark);
}
.class-studio-popup__option:last-child {
    margin-bottom: 0;
}
.class-studio-popup__option:hover {
    border-color: var(--burgundy);
    background: var(--burg-glow);
}

.class-studio-popup__option-name {
    font-family: var(--font-family);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-dark);
}

.class-studio-popup__option-location {
    display: block;
    font-family: var(--font-family);
    font-size: 0.68rem;
    color: var(--text-light);
    margin-top: 2px;
}

.class-studio-popup__option-badge {
    font-family: var(--font-family);
    font-size: 0.6rem;
    color: var(--text-light);
    margin-left: 8px;
}

.class-studio-popup__option-go {
    font-family: var(--font-family);
    font-size: 0.9rem;
    color: var(--burgundy);
    transition: transform 0.2s ease;
}
.class-studio-popup__option:hover .class-studio-popup__option-go {
    transform: translateX(4px);
}

/* =====================================================
   BUTTONS
===================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-family);
  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 .arrow { transition: transform 0.3s ease; display: inline-block; }
.btn:hover .arrow { transform: translateX(4px); }

/* =====================================================
   REZERV MODAL (dari static HTML — currently unused by the
   Classes v1 template, left as-is / untouched)
===================================================== */
.rezerv-modal { position: fixed; inset: 0; z-index: 999; display: none; align-items: center; justify-content: center; padding: 24px; }
.rezerv-modal.is-open { display: flex; }
.rezerv-modal__overlay { position: absolute; inset: 0; background: rgba(18,7,7,0.6); }
.rezerv-modal__dialog {
  position: relative; z-index: 1; background: var(--bg); border-radius: var(--radius);
  width: 100%; max-width: 640px; max-height: 90vh; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: 0 30px 70px rgba(0,0,0,0.35);
}
.rezerv-modal__close {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-subtle); border: 1px solid var(--border);
  color: var(--text-mid); font-size: 1.1rem; line-height: 1; cursor: pointer; transition: all 0.2s ease;
}
.rezerv-modal__close:hover { background: var(--burgundy); color: #fff; border-color: var(--burgundy); }

.rezerv-step { display: none; }
.rezerv-step.is-active { display: block; }
.rezerv-step--studios { padding: 40px 36px; }
.rezerv-step__eyebrow {
  font-family: var(--font-family);
  font-size: 0.5rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--burgundy); margin-bottom: 10px;
}
.rezerv-step__title {
  font-family: var(--font-family);
  font-size: 1.15rem; font-weight: 800; text-transform: uppercase; margin-bottom: 4px;
}
.rezerv-step__class {
  font-family: var(--font-family);
  font-size: 0.78rem; color: var(--text-mid); margin-bottom: 28px;
}

.studio-option {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border: 1px solid var(--border); border-radius: 12px;
  margin-bottom: 10px; text-align: left; transition: all 0.2s ease; background: #fff;
  cursor: pointer;
}
.studio-option:hover { border-color: var(--burgundy); background: var(--burg-glow); }
.studio-option .name { font-family: var(--font-family); font-size: 0.82rem; font-weight: 700; color: var(--text-dark); }
.studio-option .loc  { font-family: var(--font-family); font-size: 0.68rem; color: var(--text-light); margin-top: 2px; }
.studio-option .go   { font-family: var(--font-family); font-size: 0.9rem; color: var(--burgundy); transition: transform 0.2s ease; }
.studio-option:hover .go { transform: translateX(4px); }

.rezerv-step--widget { display: none; flex-direction: column; flex: 1; min-height: 0; }
.rezerv-step--widget.is-active { display: flex; }
.rezerv-step__back {
  display: inline-flex; align-items: center; gap: 6px; padding: 16px 20px 0;
  font-family: var(--font-family);
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-mid); cursor: pointer; flex-shrink: 0;
}
.rezerv-step__back:hover { color: var(--burgundy); }
.rezerv-modal__body { overflow-y: auto; flex: 1; min-height: 0; }
.rezerv-modal__body iframe { display: block; width: 100%; border: none; }

/* Iframe modal (Studio option = Iframe) */
.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, 16px);
  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: 640px) {
  .rezerv-modal { padding: 0; }
  .rezerv-modal__dialog { max-width: 100%; max-height: 100%; height: 100%; border-radius: 0; }
}

::-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; }