/* ASI Dance Elite — classes & about pages
   Palette derived from the live site: #5C239F (brand purple, 49 uses),
   #21093C (deep), #E8B1FF (lavender), #ECDEC9 (warm cream).
   Deliberately light-only to match the WordPress theme — every color is
   painted explicitly so nothing inherits from a host page. */

:root {
  --brand:       #5C239F;
  --brand-hover: #6E2FB8;
  --brand-ink:   #21093C;
  --lav:         #E8B1FF;
  --lav-soft:    #F4E7FF;
  --cream:       #ECDEC9;
  --cream-soft:  #F8F2E7;

  --ground:      #FFFFFF;
  --surface:     #FAF7FC;
  --surface-2:   #F2ECF7;
  --ink:         #1A1420;
  --ink-soft:    #443B50;
  --muted:       #6B6076;
  --faint:       #8E8499;
  --rule:        #E4DCEB;

  --ok:          #1E7A5A;

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: ui-serif, Georgia, "Times New Roman", serif;

  --shadow-sm: 0 1px 2px rgba(33, 9, 60, .06), 0 4px 12px -8px rgba(33, 9, 60, .18);
  --shadow-md: 0 2px 4px rgba(33, 9, 60, .07), 0 16px 36px -22px rgba(33, 9, 60, .30);

  --wrap: 1120px;
  --radius: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(18px, 4vw, 32px); }
.wrap-narrow { max-width: 780px; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-hover); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand); color: #fff; padding: 12px 20px; border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; }

/* ---------- header ---------- */

.site-header {
  background: var(--ground);
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 50;
}

.header-inner {
  display: flex; align-items: center; gap: 20px;
  min-height: 68px;
}

.brand-mark {
  font-weight: 800; font-size: 19px; letter-spacing: -.02em;
  color: var(--brand-ink); text-decoration: none; white-space: nowrap;
}
.brand-mark span { color: var(--brand); }

.nav-toggle {
  margin-left: auto; display: none;
  background: var(--surface-2); border: 1px solid var(--rule); border-radius: 8px;
  padding: 9px 13px; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink);
  cursor: pointer;
}

.site-nav { margin-left: auto; }
.site-nav ul {
  display: flex; align-items: center; gap: 4px;
  list-style: none; margin: 0; padding: 0;
}
.site-nav a {
  display: block; padding: 9px 13px; border-radius: 7px;
  font-size: 15px; font-weight: 550; color: var(--ink-soft); text-decoration: none;
}
.site-nav a:hover { background: var(--surface-2); color: var(--brand-ink); }
.site-nav a[aria-current="page"] { color: var(--brand); background: var(--lav-soft); }

.nav-phone {
  font-weight: 650; color: var(--brand-ink) !important; white-space: nowrap;
}

.btn {
  display: inline-block; text-decoration: none; text-align: center;
  font: inherit; font-weight: 650; font-size: 15px;
  padding: 11px 20px; border-radius: 8px; border: 2px solid transparent;
  cursor: pointer; transition: background-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); color: #fff; }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--rule); }
.btn-ghost:hover { background: var(--lav-soft); border-color: var(--lav); }
.btn-lg { font-size: 17px; padding: 15px 30px; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; width: 100%; order: 3;
    border-top: 1px solid var(--rule); padding: 10px 0 16px;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav a { padding: 12px 10px; }
  .header-inner { flex-wrap: wrap; }
}

/* ---------- breadcrumbs ---------- */

.crumbs { padding: 14px 0 0; font-size: 13.5px; color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.crumbs li::after { content: "/"; margin-left: 8px; color: var(--faint); }
.crumbs li:last-child::after { content: ""; }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--ink-soft); font-weight: 600; }

/* ---------- hero ---------- */

.hero { background: var(--cream-soft); border-bottom: 1px solid var(--rule); padding: clamp(36px, 6vw, 68px) 0; }
.hero-purple { background: var(--brand-ink); border-bottom: none; }
.hero-purple, .hero-purple h1, .hero-purple .hero-lede { color: #fff; }
.hero-purple .eyebrow { color: var(--lav); }
.hero-purple .hero-lede { color: #E6DCF0; }

.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand); margin: 0 0 14px;
}

h1 {
  font-size: clamp(31px, 5vw, 47px); line-height: 1.08; letter-spacing: -.025em;
  font-weight: 800; margin: 0 0 18px; text-wrap: balance; max-width: 20ch;
}

.hero-lede { font-size: clamp(17.5px, 2vw, 20px); line-height: 1.55; color: var(--ink-soft); max-width: 62ch; margin: 0; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero-facts {
  display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 26px;
  font-size: 14.5px; color: var(--ink-soft); list-style: none; padding: 0;
}
.hero-purple .hero-facts { color: #D9CDE8; }
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts li::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); flex: none;
}
.hero-purple .hero-facts li::before { background: var(--lav); }

/* ---------- sections ---------- */

section { padding: clamp(40px, 6vw, 72px) 0; }
section.tint { background: var(--surface); border-block: 1px solid var(--rule); }

h2 {
  font-size: clamp(24px, 3.4vw, 33px); line-height: 1.18; letter-spacing: -.02em;
  font-weight: 800; margin: 0 0 16px; text-wrap: balance;
}
h3 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; margin: 0 0 8px; }
h4 { font-size: 16px; font-weight: 650; margin: 0 0 6px; }

p { margin: 0 0 18px; max-width: 68ch; color: var(--ink-soft); }
p:last-child { margin-bottom: 0; }
.lede { font-size: 19px; color: var(--ink-soft); }

.section-head { margin-bottom: 30px; }
.section-head p { margin-top: 0; }

blockquote {
  margin: 28px 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--lav);
  font-family: var(--serif); font-size: 20px; font-style: italic; line-height: 1.5; color: var(--brand-ink);
}
blockquote cite { display: block; margin-top: 10px; font: 600 14px/1.4 var(--sans); font-style: normal; color: var(--muted); }

/* ---------- style cards (hub) ---------- */

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 18px; }

.card {
  display: flex; flex-direction: column;
  background: var(--ground); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 22px; text-decoration: none; color: inherit;
  transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease;
}
a.card:hover { border-color: var(--lav); box-shadow: var(--shadow-md); transform: translateY(-2px); }

.card h3 { color: var(--brand-ink); }
.card p { font-size: 15px; margin-bottom: 0; }
.card-ages {
  display: inline-block; align-self: flex-start;
  background: var(--lav-soft); color: var(--brand); border-radius: 20px;
  padding: 3px 11px; font-size: 12.5px; font-weight: 650; margin-bottom: 12px;
}
.card-more { margin-top: 14px; font-size: 14.5px; font-weight: 650; color: var(--brand); }

/* ---------- filters ---------- */

.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 26px; }
.filters-label { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }

.chip {
  font: inherit; font-size: 14.5px; font-weight: 600;
  background: var(--ground); color: var(--ink-soft);
  border: 1px solid var(--rule); border-radius: 20px; padding: 7px 15px; cursor: pointer;
}
.chip:hover { border-color: var(--lav); background: var(--lav-soft); }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }

.filter-empty { display: none; color: var(--muted); font-style: italic; }
.filter-empty.show { display: block; }

/* ---------- schedule table ---------- */

.table-scroll { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--ground); }

table.schedule { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15.5px; }
table.schedule caption { text-align: left; padding: 16px 18px 0; font-size: 14px; color: var(--muted); }
table.schedule th {
  text-align: left; font-size: 11.5px; letter-spacing: .11em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; padding: 16px 18px 10px; border-bottom: 1px solid var(--rule);
  white-space: nowrap;
}
table.schedule td { padding: 13px 18px; border-bottom: 1px solid var(--rule); color: var(--ink-soft); vertical-align: top; }
table.schedule tr:last-child td { border-bottom: none; }
table.schedule td.cls { color: var(--ink); font-weight: 650; }
table.schedule td.when { white-space: nowrap; font-variant-numeric: tabular-nums; }

.level-note { font-size: 14.5px; color: var(--muted); margin-top: 14px; }

/* ---------- progression ---------- */

.levels { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.level {
  display: grid; grid-template-columns: 60px 1fr; gap: 20px; align-items: start;
  background: var(--ground); border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px 20px;
}
.level-badge {
  font-weight: 800; font-size: 15px; color: var(--brand);
  background: var(--lav-soft); border-radius: 7px; padding: 7px 0; text-align: center;
}
.level h4 { color: var(--brand-ink); }
.level p { font-size: 15px; margin: 0; }

@media (max-width: 520px) {
  .level { grid-template-columns: 1fr; gap: 10px; }
  .level-badge { justify-self: start; padding: 5px 14px; }
}

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 10px; }
.faq details { background: var(--ground); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.faq summary {
  cursor: pointer; padding: 16px 20px; font-weight: 650; font-size: 16.5px; color: var(--ink);
  list-style: none; display: flex; gap: 12px; align-items: baseline;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; color: var(--brand); font-weight: 800; width: 13px; flex: none; }
.faq details[open] summary::before { content: "\2013"; }
.faq details[open] summary { border-bottom: 1px solid var(--rule); }
.faq .faq-body { padding: 15px 20px 18px 45px; }
.faq .faq-body p { font-size: 15.5px; }

/* ---------- CTA ---------- */

.cta { background: var(--brand-ink); color: #fff; border-radius: var(--radius); padding: clamp(28px, 5vw, 46px); }
.cta h2 { color: #fff; margin-bottom: 12px; }
.cta p { color: #DDD1EC; max-width: 56ch; }
.cta .btn-primary { background: #fff; color: var(--brand-ink); }
.cta .btn-primary:hover { background: var(--lav); color: var(--brand-ink); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.cta .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.cta .btn-ghost:hover { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.6); }

/* ---------- trial strip ---------- */

.strip {
  display: flex; flex-wrap: wrap; gap: 18px 34px; align-items: center; justify-content: space-between;
  background: var(--lav-soft); border: 1px solid var(--lav); border-radius: var(--radius);
  padding: 20px 24px;
}
.strip p { margin: 0; color: var(--brand-ink); font-weight: 600; }

/* ---------- info / NAP ---------- */

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 26px; }
.info-grid h3 { font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.info-grid p, .info-grid address { font-style: normal; font-size: 15.5px; color: var(--ink-soft); margin: 0; }

/* ---------- prose lists ---------- */

.ticks { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; color: var(--ink-soft); max-width: 66ch; }
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: .55em;
  width: 9px; height: 9px; border-radius: 50%; background: var(--brand); opacity: .5;
}

/* ---------- footer ---------- */

.site-footer { background: var(--brand-ink); color: #CFC3DE; padding: 46px 0 30px; margin-top: 0; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 30px; }
.site-footer h3 { color: #fff; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.site-footer address { font-style: normal; font-size: 15px; line-height: 1.7; }
.footer-base {
  margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14);
  font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
}
