/* ============================================================
   EVOKE - shared stylesheet for the four class pages
   (Bright Beginners, Developing Dramatics, Funky Freshies,
    Upbeat Up-and-Comers). Linked via:
   <link rel="stylesheet" href="/assets/css/class-page.css">
   Page-specific tweaks (e.g. Funky Freshies hero ratio) are added
   as a small <style> block in that page's head.
   ============================================================ */

:root {
  --dark: #0d0a0f;
  --dark-2: #16111c;
  --dark-3: #1f1828;
  --card-bg: #1a1424;
  --purple: #8224e3;
  --purple-deep: #4a157c;
  --purple-light: #b07ee8;
  --plum: #2a1a3a;
  --gold: #f0c040;
  --gold-soft: #d4a738;
  --red: #cc2222;
  --white: #f5f1eb;
  --cream: #e8e4dc;
  --grey: rgba(232,228,220,0.7);
  --grey-soft: rgba(232,228,220,0.55);
}
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Mulish', sans-serif;
  background: var(--dark);
  color: var(--cream);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 32px; }

/* ── HERO ── */
.class-hero {
  position: relative;
  padding: 160px 0 80px;
  background: var(--dark);
  overflow: hidden;
}
.class-hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(130,36,227,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.class-hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 60px;
  align-items: center;
  position: relative;
}
@media (max-width: 900px) { .class-hero-grid { grid-template-columns: 1fr; gap: 40px; } }
.breadcrumb {
  font-family: 'Mulish', sans-serif;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--grey-soft);
  margin-bottom: 24px;
  font-weight: 600;
}
.breadcrumb a { color: var(--grey-soft); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { margin: 0 10px; opacity: 0.5; }
.class-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 18px;
}
.class-hero-tag::before {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--gold);
}
.class-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 300;
  line-height: 1.05;
  color: var(--white);
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}
.class-hero h1 em { font-style: italic; color: var(--gold); }
.class-hero .subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 22px;
  color: var(--purple-light);
  margin-bottom: 28px;
  font-weight: 400;
}
.class-hero p.lede {
  font-size: 17px;
  line-height: 1.65;
  color: var(--cream);
  margin-bottom: 32px;
}
.class-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 16px 32px;
  font-family: 'Mulish', sans-serif;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
  border-radius: 4px;
  transition: all 0.2s;
  cursor: pointer;
}
.btn-primary { background: var(--purple-deep); color: var(--white); }
.btn-primary:hover { background: var(--purple); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(130,36,227,0.4); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.25);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.class-hero-image {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}
.class-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Hero photo: load while hidden, then fade in (no glitch/pop) */
html.js .class-hero-image img { opacity: 0; transition: opacity 0.7s ease; }
html.js .class-hero-image img.imgshown { opacity: 1; }
@media (prefers-reduced-motion: reduce) { html.js .class-hero-image img { opacity: 1 !important; transition: none !important; } }
.class-hero-badge {
  position: absolute;
  top: 24px; right: 24px;
  background: var(--gold);
  color: var(--dark);
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ── DETAILS BAR ── */
.details-bar {
  background: var(--card-bg);
  border-top: 1px solid rgba(240,192,64,0.2);
  border-bottom: 1px solid rgba(240,192,64,0.2);
  padding: 32px 0;
}
.details-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 800px) { .details-grid { grid-template-columns: repeat(2, 1fr); } }
.detail-item-label {
  display: block;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--grey-soft);
  font-weight: 700;
  margin-bottom: 6px;
}
.detail-item-value {
  color: var(--white);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
}
.detail-item-value small {
  display: block;
  font-family: 'Mulish', sans-serif;
  font-style: normal;
  font-size: 12px;
  color: var(--grey);
  margin-top: 4px;
}

/* ── ABOUT THE CLASS ── */
.about-class { padding: 100px 0; background: var(--dark); }
.section-label {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--purple-light);
  font-weight: 700;
  margin-bottom: 16px;
}
.about-class h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 24px;
}
.about-class h2 em { font-style: italic; color: var(--gold); }
.about-class p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--cream);
  margin-bottom: 20px;
}
.about-class p strong { color: var(--white); font-weight: 700; }

/* ── RIGHT FOR MY CHILD ── */
.right-fit { padding: 100px 0; background: var(--dark-2); }
.right-fit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 50px;
}
@media (max-width: 800px) { .right-fit-grid { grid-template-columns: 1fr; gap: 40px; } }
.right-fit-grid h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 3.8vw, 40px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
}
.right-fit-grid h2 em { font-style: italic; color: var(--gold); }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  font-size: 16px;
  color: var(--cream);
  line-height: 1.6;
}
.check-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  margin-top: 4px;
}
.check-yes { background: rgba(240,192,64,0.15); color: var(--gold); }
.check-yes::before { content: '\2713'; }
.check-info { background: rgba(176,126,232,0.15); color: var(--purple-light); }
.check-info::before { content: 'i'; font-style: italic; font-family: 'Cormorant Garamond', serif; font-size: 14px; }

/* ── KATE Q&A ── */
.kate-qa { padding: 100px 0; background: var(--dark); }
.kate-qa-header { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.kate-qa-header .section-label { display: block; }
.kate-qa-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 14px;
}
.kate-qa-header h2 em { font-style: italic; color: var(--gold); }
.kate-qa-header p { color: var(--grey); font-size: 16px; }
.kate-qa-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 32px; }
.qa-block {
  padding: 32px;
  background: var(--card-bg);
  border-radius: 6px;
  border-left: 3px solid var(--purple);
}
.qa-question {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 22px;
  color: var(--gold);
  margin-bottom: 14px;
  line-height: 1.3;
  font-weight: 400;
}
.qa-question::before {
  content: 'Q. ';
  color: var(--purple-light);
  font-style: normal;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-right: 4px;
}
.qa-answer { color: var(--cream); font-size: 16px; line-height: 1.7; }
.qa-answer-by {
  display: block;
  margin-top: 16px;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--grey-soft);
  font-weight: 700;
}

/* ── PERFORMANCE BANNER ── */
.performance-banner {
  padding: 60px 0;
  background-size: cover;
  background-position: center;
  background-blend-mode: multiply;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.performance-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(240,192,64,0.18) 0%, transparent 60%);
  pointer-events: none;
}
.performance-banner-inner { position: relative; max-width: 760px; margin: 0 auto; }
.performance-banner h3 {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 400;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.3;
}
.performance-banner h3 em { color: var(--gold); }
.performance-banner p { color: rgba(255,255,255,0.85); font-size: 15px; line-height: 1.65; }
.performance-banner-dates {
  display: inline-block;
  margin-top: 24px;
  padding: 18px 32px;
  background: rgba(240,192,64,0.12);
  border: 2px solid var(--gold);
  border-radius: 4px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(20px, 2.5vw, 28px);
  letter-spacing: 0.5px;
  color: var(--gold);
  font-weight: 500;
  line-height: 1.3;
}
.performance-banner-dates strong {
  display: block;
  font-family: 'Mulish', sans-serif;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(240,192,64,0.7);
  font-weight: 700;
  margin-bottom: 8px;
}
.performance-banner-detail {
  display: block;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(240,192,64,0.25);
  font-family: 'Mulish', sans-serif;
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.5px;
  color: rgba(240,192,64,0.75);
  font-weight: 500;
  line-height: 1.5;
}

/* ── UPCOMING TERMS ── */
.upcoming-terms { padding: 100px 0; background: var(--dark); }
.upcoming-terms h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 4.5vw, 44px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 14px;
}
.upcoming-terms h2 em { font-style: italic; color: var(--gold); }
.upcoming-terms-sub { color: var(--grey); font-size: 16px; margin-bottom: 40px; max-width: 540px; }
.terms-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 800px) { .terms-grid { grid-template-columns: 1fr; } }
.term-card {
  padding: 28px;
  background: var(--card-bg);
  border-radius: 6px;
  border-top: 3px solid var(--purple);
}
.term-card.current { border-top-color: var(--gold); }
.term-card-num {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--purple-light);
  margin-bottom: 8px;
  font-weight: 400;
}
.term-card.current .term-card-num { color: var(--gold); }
.term-card-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 12px;
}
.term-card-fee { font-family: 'Mulish', sans-serif; font-size: 14px; color: var(--cream); font-weight: 600; }
.term-card-fee strong { color: var(--gold); font-size: 18px; }
.term-card small { display: block; margin-top: 6px; color: var(--grey-soft); font-size: 12px; line-height: 1.5; }

/* ── BOOK CTA ── */
.book-cta {
  padding: 80px 0;
  background-size: cover;
  background-position: center;
  background-blend-mode: multiply;
  text-align: center;
}
.book-cta h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 14px;
}
.book-cta h2 em { font-style: italic; color: var(--gold); }
.book-cta p { color: rgba(255,255,255,0.9); font-size: 17px; max-width: 560px; margin: 0 auto 28px; }
.book-cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── OTHER CLASSES ── */
.other-classes { padding: 100px 0; background: var(--dark-2); }
.other-classes h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 14px;
  text-align: center;
}
.other-classes h2 em { font-style: italic; color: var(--gold); }
.other-classes-sub { text-align: center; color: var(--grey); max-width: 580px; margin: 0 auto 50px; font-size: 16px; }
.other-classes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 800px) { .other-classes-grid { grid-template-columns: 1fr; } }
.other-class-card {
  background: var(--card-bg);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.3s;
  display: block;
}
.other-class-card:hover { transform: translateY(-4px); }
.other-class-card img { width: 100%; height: 180px; object-fit: cover; }
.other-class-card-body { padding: 24px; }
.other-class-card-tag {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--purple-light);
  font-weight: 700;
  margin-bottom: 10px;
}
.other-class-card-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.1;
}
.other-class-card-meta { font-size: 13px; color: var(--grey); line-height: 1.5; }
.other-class-card-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}

/* ── COMMON MOBILE ── */
@media (max-width: 767px) {
  .container, .container-narrow { padding: 0 18px; }
  .section-label { font-size: 10px; letter-spacing: 2px; }
  .btn { padding: 14px 24px; font-size: 11px; }
}

/* ── CLASS PAGE MOBILE ── */
@media (max-width: 767px) {
  .class-hero { padding: 110px 0 50px; }
  .class-hero-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 30px; }
  .class-hero-image { aspect-ratio: 4/3; max-width: 100%; }
  .class-hero h1 { font-size: 36px; }
  .class-hero .subtitle { font-size: 13px; }
  .class-hero p.lede { font-size: 15px; }
  .class-hero-actions { flex-direction: column; gap: 10px; }
  .class-hero-actions .btn { text-align: center; width: 100%; }
  .details-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px; }
  .right-fit-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 30px; }
  .kate-qa-list { gap: 10px; }
  .performance-banner { padding: 50px 0; }
  .performance-banner h3 { font-size: 22px; }
  .performance-banner-dates { padding: 16px 20px; }
  .terms-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .term-card { padding: 24px 20px; }
  .other-classes-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .other-class-card { flex-direction: row; gap: 16px; }
  .book-cta { padding: 70px 0; }
  .book-cta h2 { font-size: 28px; }
  .book-cta-actions { flex-direction: column; gap: 10px; align-items: center; }
  .book-cta-actions .btn { width: 100%; max-width: 280px; text-align: center; }
}

/* ── NUCLEAR MOBILE FIX ── */
@media (max-width: 767px) {
  html, body { overflow-x: clip !important; }
  section, footer, header, nav, div { max-width: 100vw; }
  section { overflow-x: hidden !important; }
  main img, section img, footer img { max-width: 100% !important; width: 100% !important; height: auto !important; }
  .container, .container-narrow {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
    overflow: hidden;
  }
  [class*="-grid"], [class*="-row"], [class*="grid-"] {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
  }
  [class*="-actions"], [class*="-links"], [class*="-social"],
  [class*="-list"]:not(ul):not(ol) { flex-wrap: wrap !important; }
  .btn { width: 100% !important; max-width: 320px !important; text-align: center !important; box-sizing: border-box !important; }
  [class*="-card"] { width: 100% !important; max-width: 100% !important; }
  .faq-item, details { width: 100% !important; max-width: 100% !important; }
  .faq-item summary, details summary { white-space: normal !important; word-break: break-word !important; }
  iframe { max-width: 100% !important; width: 100% !important; }
  input, textarea, select { max-width: 100% !important; width: 100% !important; box-sizing: border-box !important; }
  h1, h2, h3, h4, h5, h6, p, span, a, li {
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    max-width: 100% !important;
  }
  .details-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .terms-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .other-classes-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .right-fit-grid { grid-template-columns: minmax(0, 1fr) !important; }
}

/* ── ENTRANCE ANIMATIONS ── */
@media (prefers-reduced-motion: reduce) {
  .anim-word, .anim-fade, .anim-item {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}
.anim-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(60px);
  animation: wordRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes wordRise { to { opacity: 1; transform: translateY(0); } }
.anim-fade {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes fadeRise { to { opacity: 1; transform: translateY(0); } }
.anim-item {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
.anim-item.is-visible { opacity: 1; transform: translateY(0); }

/* SEO keyword subtitle - visually hidden, readable by Google */
.hero-keyword-sub {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
