/* Munviko — sticky split-panel shell + sections */

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 150;
  background: rgba(244, 237, 228, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
}
.header__bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1rem 0; }
.logo { display: flex; align-items: center; gap: 0.6rem; font-family: "Fraunces", serif; font-weight: 600; font-size: 1.2rem; color: var(--color-ink); }
.logo__mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-2));
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.3rem;
}
.nav-desktop a { font-weight: 600; font-size: 0.875rem; color: var(--color-muted); padding: 0.55rem 1rem; border-radius: 999px; transition: background var(--duration-base) ease, color var(--duration-base) ease; }
.nav-desktop a:hover { color: var(--color-ink); }
.nav-desktop a.is-active { background: var(--color-primary); color: #fff; }
.header__actions { display: flex; align-items: center; gap: 0.75rem; }
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

/* ---------- Mobile menu (sibling of header — safe from transform/backdrop-filter containing-block bug) ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--color-bg);
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--duration-base) ease, visibility var(--duration-base) ease;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.5rem 2rem;
  overflow-y: auto;
}
.mobile-menu.is-open { visibility: visible; opacity: 1; }
.mobile-menu__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.mobile-menu__links { display: flex; flex-direction: column; gap: 0.25rem; flex: 1; }
.mobile-menu__links a { padding: 0.9rem 0.25rem; font-weight: 700; font-size: 1.1rem; border-bottom: 1px solid var(--color-border); }
.mobile-menu__foot { padding-top: 1.5rem; }
body.menu-open { overflow: hidden; }

/* ---------- Split shell ---------- */
.split-shell { display: flex; align-items: flex-start; }

.split-aside {
  flex: 0 0 var(--aside-w);
  width: var(--aside-w);
  max-width: 100%;
  position: sticky;
  top: 73px;
  height: calc(100vh - 73px);
  background: linear-gradient(200deg, var(--color-primary) 0%, var(--color-primary-2) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(2rem, 3vw, 3rem);
  overflow: hidden;
}
.split-aside::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(209, 160, 84, 0.35), transparent 70%);
  top: -60px;
  right: -80px;
  pointer-events: none;
}
.split-aside__top { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.split-aside__kicker { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; color: var(--color-accent); }
.split-aside__quote { font-family: "Fraunces", serif; font-size: 1.4rem; font-weight: 600; line-height: 1.35; transition: opacity 0.5s ease; }
.split-aside__quote-author { font-size: 0.875rem; color: rgba(255, 255, 255, 0.7); margin-top: 0.75rem; }
.split-aside__mini {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.split-aside__mini-title { font-weight: 700; font-size: 0.875rem; }
.split-aside__mini-row { display: flex; justify-content: space-between; font-size: 0.8125rem; color: rgba(255, 255, 255, 0.85); }

.split-main { flex: 1; min-width: 0; padding: 0 clamp(1.5rem, 3vw, 3rem); }
.split-section { max-width: 640px; padding: clamp(2.25rem, 2rem + 2vw, 3.5rem) 0; border-bottom: 1px solid var(--color-border); }
.split-section:last-child { border-bottom: none; }
.split-section--first { padding-top: clamp(2.5rem, 2rem + 3vw, 4rem); }

/* ---------- Class-type list ---------- */
.class-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.class-item {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.4rem;
}
.class-item__icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.class-item:nth-child(4n+2) .class-item__icon { background: var(--color-accent-soft); color: var(--color-accent); }
.class-item:nth-child(4n+3) .class-item__icon { background: var(--color-clay-soft); color: var(--color-clay); }
.class-item:nth-child(4n+4) .class-item__icon { background: var(--color-primary-soft); color: var(--color-primary-2); }
.class-item__title { font-family: "Fraunces", serif; font-weight: 600; font-size: 1.05rem; }
.class-item__desc { color: var(--color-muted); font-size: 0.9375rem; margin-top: 0.25rem; }

/* ---------- Vertical timeline (philosophy / how it works) ---------- */
.vtimeline { position: relative; margin-top: 2rem; padding-left: 2.75rem; }
.vtimeline::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--color-border);
}
.vtimeline-item { position: relative; padding-bottom: 2rem; }
.vtimeline-item:last-child { padding-bottom: 0; }
.vtimeline-item__num {
  position: absolute;
  left: -2.75rem;
  top: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Fraunces", serif;
  font-weight: 600;
  border: 4px solid var(--color-bg);
}
.vtimeline-item:nth-child(3n+2) .vtimeline-item__num { background: var(--color-clay); }
.vtimeline-item:nth-child(3n+3) .vtimeline-item__num { background: var(--color-primary-2); }
.vtimeline-item__title { font-family: "Fraunces", serif; font-weight: 600; margin-bottom: 0.35rem; }
.vtimeline-item__body { color: var(--color-muted); font-size: 0.9375rem; }

/* ---------- Instructor horizontal-scroll cards ---------- */
.instructor-strip {
  display: flex;
  gap: 1.1rem;
  overflow-x: auto;
  padding: 0.25rem 0.25rem 1.1rem;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  margin-top: 2rem;
}
.instructor-card {
  scroll-snap-align: start;
  flex: 0 0 200px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
}
.instructor-card__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Fraunces", serif;
  font-weight: 600;
}
.instructor-card:nth-child(4n+2) .instructor-card__avatar { background: var(--color-clay); }
.instructor-card:nth-child(4n+3) .instructor-card__avatar { background: var(--color-accent); color: var(--color-ink); }
.instructor-card:nth-child(4n+4) .instructor-card__avatar { background: var(--color-primary-2); }
.instructor-card__name { font-weight: 700; font-size: 0.9375rem; }
.instructor-card__role { color: var(--color-primary); font-size: 0.8125rem; font-weight: 600; }
.instructor-card__bio { color: var(--color-muted); font-size: 0.8125rem; }

/* ---------- Stats row ---------- */
.stats-row { display: flex; flex-wrap: wrap; gap: 1.75rem; margin-top: 2rem; }
.stats-row__item { flex: 1 1 130px; }
.stats-row__value { font-family: "Fraunces", serif; font-weight: 600; font-size: 1.85rem; color: var(--color-primary); }
.stats-row__item:nth-child(4n+2) .stats-row__value { color: var(--color-clay); }
.stats-row__item:nth-child(4n+3) .stats-row__value { color: var(--color-accent); }
.stats-row__item:nth-child(4n+4) .stats-row__value { color: var(--color-primary-2); }
.stats-row__label { color: var(--color-muted); font-size: 0.8125rem; margin-top: 0.2rem; }

/* ---------- Testimonials (stacked cards) ---------- */
.quote-grid { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 2rem; }
.quote-card {
  flex: 1 1 260px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.quote-card__mark { font-family: "Fraunces", serif; font-size: 2rem; line-height: 1; color: var(--color-accent); }
.quote-card__text { font-size: 0.9375rem; }
.quote-card__name { font-weight: 700; font-size: 0.875rem; }
.quote-card__role { color: var(--color-muted); font-size: 0.8125rem; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 2rem; }
.faq-item { border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); overflow: hidden; }
.faq-item__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.35rem;
  font-weight: 700;
  text-align: left;
}
.faq-item__icon { flex: none; position: relative; width: 18px; height: 18px; }
.faq-item__icon::before, .faq-item__icon::after {
  content: "";
  position: absolute;
  background: var(--color-ink);
  border-radius: 2px;
  transition: transform var(--duration-base) ease;
}
.faq-item__icon::before { width: 100%; height: 2px; top: 8px; left: 0; }
.faq-item__icon::after { width: 2px; height: 100%; left: 8px; top: 0; }
.faq-item.is-open .faq-item__icon::after { transform: scaleY(0); }
.faq-item__panel { max-height: 0; overflow: hidden; transition: max-height var(--duration-base) ease; }
.faq-item__panel-inner { padding: 0 1.35rem 1.1rem; color: var(--color-muted); font-size: 0.9375rem; }
.faq-teaser-link { display: inline-block; margin-top: 1.5rem; font-weight: 700; color: var(--color-primary); }

/* ---------- CTA + lead form ---------- */
.cta-final { background: linear-gradient(135deg, var(--color-primary-2) 0%, var(--color-primary) 100%); color: #fff; border-radius: var(--radius-lg); padding: clamp(2rem, 1.5rem + 3vw, 3rem); }
.cta-final .heading { color: #fff; }
.cta-final .eyebrow { color: var(--color-accent); }
.cta-final .lede { color: rgba(255, 255, 255, 0.8); }
.lead-form { display: flex; flex-direction: column; gap: 0.85rem; margin-top: 1.75rem; }
.lead-form__row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.lead-form__row input, .lead-form__row select {
  flex: 1 1 160px;
  min-width: 0;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  min-height: 44px;
}
.lead-form__row input::placeholder { color: rgba(255, 255, 255, 0.65); }
.lead-form__row select option { color: var(--color-ink); }
.lead-form__error { color: #ffd9c9; font-size: 0.875rem; }
.lead-form__error[hidden] { display: none; }
.lead-form__note { font-size: 0.8125rem; color: rgba(255, 255, 255, 0.65); }
.lead-form__note a { text-decoration: underline; color: #fff; }
.lead-form[hidden] { display: none; }
.lead-form__success[hidden] { display: none; }
.lead-form__success { margin-top: 1.75rem; }

/* ---------- Footer (full width, outside split-shell) ---------- */
.footer { padding: 2.5rem 0 3rem; background: var(--color-surface); border-top: 1px solid var(--color-border); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.footer__brand { display: flex; flex-direction: column; gap: 0.75rem; max-width: 20rem; }
.footer__brand-logo { display: flex; align-items: center; gap: 0.5rem; font-family: "Fraunces", serif; font-weight: 600; }
.footer__cols { display: flex; flex-wrap: wrap; gap: 2.5rem; }
.footer__col { display: flex; flex-direction: column; gap: 0.6rem; }
.footer__col-title { font-weight: 700; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-muted); }
.footer__col a, .footer__col p { color: var(--color-muted); font-size: 0.9375rem; }
.footer__col a:hover { color: var(--color-ink); }
.footer__bottom { border-top: 1px solid var(--color-border); margin-top: 2rem; padding-top: 1.5rem; color: var(--color-muted); font-size: 0.8125rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; }

/* ---------- Legal / contact / faq page content (single-column, no split) ---------- */
.legal { max-width: 42rem; padding: 3rem 0 4rem; display: flex; flex-direction: column; gap: 1.25rem; }
.legal h1 { margin-bottom: 0.25rem; }
.legal h2 { font-size: 1.15rem; margin-top: 0.75rem; }
.legal p, .legal li { color: var(--color-muted); font-size: 0.9375rem; }
.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.legal table { width: 100%; min-width: 30rem; border-collapse: collapse; font-size: 0.875rem; }
.legal th, .legal td { text-align: left; padding: 0.6rem 0.75rem; border: 1px solid var(--color-border); word-break: break-word; }
.legal th { background: var(--color-bg); }

.contact-grid { display: flex; flex-wrap: wrap; gap: 2.5rem; margin-top: 2rem; }
.contact-info { flex: 1 1 260px; display: flex; flex-direction: column; gap: 1.25rem; }
.contact-info__item { display: flex; gap: 0.85rem; align-items: flex-start; }
.contact-info__item svg { flex: none; color: var(--color-primary); margin-top: 0.15rem; }
.contact-info__item:nth-child(3n+2) svg { color: var(--color-clay); }
.contact-info__item:nth-child(3n+3) svg { color: var(--color-accent); }
.contact-form { flex: 1 1 320px; display: flex; flex-direction: column; gap: 0.85rem; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow-card); }
.contact-form label { font-weight: 600; font-size: 0.875rem; display: flex; flex-direction: column; gap: 0.4rem; }
.contact-form input, .contact-form textarea {
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  min-height: 44px;
}
.contact-form textarea { min-height: 110px; resize: vertical; }

/* ---------- Cookie consent banner ---------- */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 250;
  background: var(--color-ink);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  box-shadow: 0 20px 45px -20px rgba(51, 41, 31, 0.55);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__text { flex: 1 1 280px; font-size: 0.875rem; color: rgba(255, 255, 255, 0.85); }
.cookie-banner__text a { text-decoration: underline; color: #fff; }
.cookie-banner__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.btn--ghost { background: rgba(255, 255, 255, 0.12); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.2); }
.cookie-status { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; }
.cookie-status__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--color-muted); }
.cookie-status[data-state="accepted"] .cookie-status__dot { background: var(--color-primary); }
.cookie-status[data-state="declined"] .cookie-status__dot { background: var(--color-clay); }

@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: flex; }
  .split-shell { flex-direction: column; }
  .split-aside {
    position: relative;
    top: auto;
    width: 100%;
    height: auto;
    flex: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }
  .split-main { width: 100%; padding: 0 1.25rem; }
  .split-section { max-width: none; }
}

@media (max-width: 480px) {
  .header__actions .btn--primary { display: none; }
}
