:root {
  --ink: #211433; --ink-soft: #4a3d63;
  --cream: #faf6ef; --cream-deep: #f1e9d8;
  --plum: #2d1b4e; --plum-deep: #1a0f30;
  --gold: #e2a53c; --gold-deep: #c6832a;
  --rose: #c1436e; --wa: #1fa855;
  --line: #e6ddc9; --card: #ffffff;
  --shadow: 0 18px 40px -22px rgba(26,15,48,.45);
  --radius: 18px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: 'Heebo', Arial, sans-serif;
  background: var(--cream); color: var(--ink);
  line-height: 1.65; -webkit-font-smoothing: antialiased;
}
body.loading main, body.loading .hero .wrap, body.loading footer { opacity: 0; }
main, .hero .wrap, footer { transition: opacity .2s; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.wrap { max-width: 640px; margin: 0 auto; padding: 0 16px; }

/* Hero */
.hero {
  position: relative; color: var(--on-day, #fff); overflow: hidden;
  background: linear-gradient(160deg, var(--plum) 0%, var(--plum-deep) 100%);
  padding: 28px 0 88px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: var(--hero-img) center/cover no-repeat;
  opacity: .22; transition: background-image .3s;
}
.light-day .hero::before { opacity: .1; filter: grayscale(1); }
.light-day .lead, .light-day .brand span { opacity: 1; }
.light-day .brand-logo { filter: none; }
.hero .wrap { position: relative; }
.brand { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.brand-logo { width: min(86%, 380px); height: auto; filter: drop-shadow(0 4px 14px rgba(0,0,0,.35)); }
.brand span { font-weight: 700; font-size: .95rem; letter-spacing: .3px; opacity: .9; }
h1 {
  font-size: clamp(2.3rem, 10vw, 3.3rem); line-height: 1.05;
  margin: 20px 0 10px; font-weight: 900; letter-spacing: -.5px;
}
h1 .l1 { display: block; }
h1 .l2 { display: block; color: var(--on-day-accent, var(--gold)); }
.tag {
  display: inline-block; padding: 4px 12px; border-radius: 99px;
  background: var(--rose); color: #fff; font-weight: 700; font-size: .9rem;
}
.lead { font-size: 1.08rem; margin: 10px 0 0; opacity: .92; max-width: 34ch; }

/* Group picker */
.picker {
  position: relative; margin-top: -60px;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 8px; display: grid; gap: 6px;
}
.picker button {
  font: inherit; border: 0; cursor: pointer; border-radius: 13px;
  padding: 12px 8px; background: transparent; color: var(--ink-soft);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  transition: background .2s, color .2s;
}
.picker button strong { font-size: 1.15rem; font-weight: 900; }
.picker button small { font-size: .85rem; }
.picker button[aria-selected="true"] { background: var(--plum); color: var(--on-day, #fff); }
.picker button { border-top: 4px solid var(--day, transparent); }
.hero, .picker button, .hall-head { transition: background .3s, color .2s; }
.picker button[aria-selected="true"] small { color: var(--on-day-accent, var(--gold)); }
.picker button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Cards */
.card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px; margin-top: 18px;
}
.card h2 { margin: 0 0 12px; font-size: 1.25rem; font-weight: 900; }
.facts { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.facts li { display: grid; grid-template-columns: 38px 1fr; gap: 10px; align-items: start; }
.facts .ic {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: var(--cream-deep); font-size: 1.2rem;
}
.facts .k { font-size: .82rem; color: var(--ink-soft); }
.facts .v { font-weight: 700; font-size: 1.05rem; }
.facts .sub { font-size: .9rem; color: var(--ink-soft); font-weight: 400; }

/* Schedule */
.halls { display: grid; gap: 14px; }
.hall { border: 2px solid var(--line); border-radius: 14px; overflow: hidden; }
.hall-head { background: var(--plum); color: var(--on-day, #fff); padding: 10px 14px; }
.hall-head h3 { margin: 0; font-size: 1.1rem; font-weight: 900; }
.hall-head p { margin: 0; font-size: .9rem; color: var(--on-day-accent, var(--gold)); font-weight: 500; }
.slots { list-style: none; margin: 0; padding: 0; }
.slots li {
  display: grid; grid-template-columns: 62px 1fr; gap: 10px; align-items: center;
  padding: 9px 14px; border-top: 1px solid var(--line); font-size: 1rem;
}
.slots li:first-child { border-top: 0; }
.slots li:nth-child(even) { background: var(--cream); }
.slots time { font-weight: 900; color: var(--rose); font-variant-numeric: tabular-nums; direction: ltr; text-align: right; }
.slots .empty { color: var(--ink-soft); }
.team { margin: 0 0 12px; color: var(--ink-soft); font-size: .95rem; }

/* Actions */
.actions { display: grid; gap: 10px; margin-top: 18px; }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 12px 18px; border-radius: 14px;
  font: inherit; font-weight: 700; font-size: 1.05rem; border: 0; cursor: pointer;
}
.btn-wa { background: var(--wa); color: #fff; }
.wa-ic { width: 26px; height: 26px; flex: none; }
.btn-gold { background: #33ccff; color: #08263a; }
.btn-ghost { background: var(--card); color: var(--ink); border: 2px solid var(--line); }
.btn:active { transform: translateY(1px); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cal-choices { display: none; gap: 10px; grid-template-columns: 1fr 1fr; }
.cal-choices.open { display: grid; }

/* Instructor */
.instructor { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: center; }
.instructor img {
  width: 110px; height: 140px; object-fit: cover; object-position: top;
  border-radius: 14px; background: var(--cream-deep);
}
.instructor h2 { margin-bottom: 4px; }
.instructor p { margin: 0; font-size: .97rem; }

/* Perks */
.perks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding: 0; list-style: none; }
.perks li {
  background: var(--cream); border-radius: 14px; padding: 12px; font-size: .95rem;
  display: flex; gap: 8px; align-items: flex-start;
}
.perks li span:first-child { font-size: 1.2rem; line-height: 1.3; }
.about p { margin: 0 0 8px; }

footer {
  text-align: center; padding: 30px 16px 40px; color: var(--ink-soft); font-size: .92rem;
}
footer strong { color: var(--ink); }

@media (max-width: 380px) {
  .perks, .row { grid-template-columns: 1fr; }
}

/* Schedule page (opens over the landing page; #schedule in the address, phone Back closes it) */
.btn-sched { background: var(--plum); color: var(--on-day, #fff); }
/* Same hero stays on top; the details/picker are swapped for the schedule */
body.sched-open main { display: none; }
.sched-view { position: relative; max-width: 640px; margin: -60px auto 0; padding: 0 16px; }
.sched-top {
  position: sticky; top: 8px; z-index: 1; display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: var(--radius); background: var(--plum); color: var(--on-day, #fff); box-shadow: var(--shadow);
}
.sched-top h2 { margin: 0; font-size: 1.15rem; font-weight: 900; }
.back {
  font: inherit; font-weight: 700; font-size: 1rem; border: 0; cursor: pointer; border-radius: 10px;
  padding: 8px 12px; background: rgba(255,255,255,.18); color: inherit; flex: none;
}
.light-day .back { background: rgba(0,0,0,.1); }
.sched-body { padding: 16px 0 10px; }
.back-bottom { width: 100%; margin-top: 18px; }
/* Schedule + WhatsApp side by side (WhatsApp full width when a day has no schedule) */
.row.solo { grid-template-columns: 1fr; }
#row-top .btn-wa { font-size: .92rem; line-height: 1.25; gap: 6px; padding: 10px 10px; }
#row-top .btn-wa .wa-ic { width: 22px; height: 22px; }
@media (max-width: 380px) { #row-top:not(.solo) { grid-template-columns: 1fr 1fr; } }
body.sched-open .hero .lead { display: none; }

/* Learned-dances videos */
.btn-yt { background: var(--plum); color: var(--on-day, #fff); }
.videos h2 { margin-bottom: 12px; }
@media (max-width: 380px) { #videos-row:not(.solo) { grid-template-columns: 1fr 1fr; } }
