/* Devine Cheer Athletics & More
   Palette from Kae's blueprint (lavender + earthy green). Every text/background
   pair below was contrast-checked and passes WCAG AA. Re-check if you change one.

   Signature: the tumbling pass — the skill progression drawn as a strip of
   folding panel mats. That is the one bold moment; everything else stays quiet. */

@font-face { font-family: "Big Shoulders Display"; src: url("fonts/big-shoulders-display-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Big Shoulders Display"; src: url("fonts/big-shoulders-display-latin-900-normal.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --plum: #3e2a55;        /* headlines — 12.11:1 on chalk */
  --lavender: #755496;    /* buttons, monogram — chalk on it 5.83:1 */
  --lavender-deep: #5e4279;
  --lilac: #ece4f6;       /* quiet panels — plum on it 10.19:1 */
  --mat: #3f6150;         /* mat panels — chalk on it 6.65:1 */
  --mat-deep: #34513f;    /* the alternate panel */
  --sage: #dfebe3;        /* sage on mat 5.64:1 */
  --chalk: #fbfafd;       /* page */
  --ink: #2a2230;         /* body text — 14.74:1 */
  --muted: #5f5766;       /* secondary — 6.64:1 */
  --seam: #d9cfe6;

  /* Preview-only markers, deliberately outside the palette. Never shown to visitors. */
  --flag-ink: #7a4e07; --flag-bg: #fdf5e7; --flag-line: #d9b273;

  --display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--chalk); color: var(--ink); font: 18px/1.6 var(--body); margin: 0; }
img { height: auto; max-width: 100%; }
a { color: var(--lavender-deep); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--mat); outline-offset: 3px; }

h1, h2, h3 { color: var(--plum); font-family: var(--display); font-weight: 900; letter-spacing: .005em; line-height: .95; margin: 0 0 .4em; text-transform: uppercase; }
h1 { font-size: clamp(3rem, 9vw, 6.6rem); }
h2 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h3 { font-size: 1.7rem; font-weight: 800; line-height: 1; }
p { margin: 0 0 1em; max-width: 64ch; }
.muted { color: var(--muted); }
.kicker { color: var(--mat); font-size: .8rem; font-weight: 700; letter-spacing: .14em; margin: 0 0 1em; text-transform: uppercase; }
.lede { font-size: 1.22rem; }

.wrap { margin: 0 auto; max-width: var(--max); padding: 0 var(--gutter); }
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section.alt { background: var(--lilac); }
.skip { left: -999px; position: absolute; }
.skip:focus { background: var(--chalk); left: 8px; padding: 8px 12px; top: 8px; z-index: 10; }

/* ---------- header ---------- */
.site-header { border-bottom: 2px solid var(--lilac); }
.site-header .wrap { align-items: center; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; padding-bottom: 14px; padding-top: 14px; }
.brand { align-items: center; color: var(--plum); display: flex; gap: 12px; text-decoration: none; }
.monogram {
  align-items: center; background: var(--lavender); border-radius: 12px 4px 12px 4px; color: var(--chalk);
  display: inline-flex; font: 900 1.45rem/1 var(--display); height: 46px; justify-content: center; letter-spacing: .04em;
  transform: skewX(-9deg); width: 62px;
}
.monogram span { transform: skewX(9deg); }
.brand-name { font: 800 1.35rem/1 var(--display); text-transform: uppercase; }
.brand-name small { color: var(--muted); display: block; font: 400 .78rem/1.4 var(--body); letter-spacing: 0; margin-top: 3px; text-transform: none; }
.nav { align-items: center; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.nav a { color: var(--ink); font-weight: 700; padding: 6px 0; text-decoration: none; }
.nav a:hover { color: var(--lavender-deep); }
.nav a[aria-current="page"] { color: var(--plum); text-decoration: underline; text-decoration-color: var(--lavender); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.nav a.btn, .nav a.btn:hover { color: var(--chalk); padding: 10px 18px; text-decoration: none; }

/* ---------- buttons ---------- */
.btn {
  align-items: center; background: var(--lavender); border: 2px solid var(--lavender); border-radius: 10px; color: var(--chalk);
  cursor: pointer; display: inline-flex; font: 700 1rem/1.2 var(--body); justify-content: center; min-height: 48px; padding: 12px 24px; text-decoration: none;
}
.btn:hover { background: var(--lavender-deep); border-color: var(--lavender-deep); }
.btn.secondary { background: transparent; color: var(--lavender-deep); }
.btn.secondary:hover { background: var(--lilac); }
.btn[disabled] { background: #e6e2ea; border-color: #e6e2ea; color: #6b6670; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- hero: her sentence, then the prices ---------- */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); }
/* Two columns only when the hero carries the price panel beside it. */
.hero .wrap:has(> aside) { align-items: end; display: grid; gap: 40px; grid-template-columns: minmax(0, 1.6fr) minmax(260px, .9fr); }
.hero h1 { max-width: 12ch; }
.hero .lede { max-width: 40ch; }

.price-tag { background: #fff; border: 2px solid var(--lilac); border-radius: 14px; border-top: 8px solid var(--lavender); margin: 8px 0; padding: 18px 22px; }
.price-tag::before { color: var(--mat); content: "Private lessons"; display: block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; margin-bottom: 6px; text-transform: uppercase; }
.prices { list-style: none; margin: 0; padding: 0; }
.price-row { align-items: baseline; display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: space-between; padding: 8px 0; }
.price-row + .price-row { border-top: 1px solid var(--lilac); }
.price-row .len { font-weight: 700; }
.price-row .now { color: var(--plum); font: 900 2.3rem/1 var(--display); }
.price-row .was { color: var(--muted); font-size: 1.05rem; }
.price-row .deal { background: var(--sage); border-radius: 999px; color: var(--mat); flex-basis: 100%; font-size: .82rem; font-weight: 700; padding: 3px 10px; text-align: center; }

/* ---------- SIGNATURE: the tumbling pass ---------- */
.pass-section { padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 8vw, 104px); }
.pass-head { display: grid; gap: 8px 48px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-bottom: 32px; }
.pass-head h2 { margin: 0; }
.pass { counter-reset: step; display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; list-style: none; margin: 0; padding: 0; perspective: 1400px; }
.pass li {
  background: var(--mat); box-shadow: inset -2px 0 0 rgba(223, 235, 227, .28); color: var(--chalk); counter-increment: step;
  display: flex; flex-direction: column; justify-content: space-between; min-height: 210px; padding: 16px 14px 18px; position: relative;
}
.pass li:nth-child(even) { background: var(--mat-deep); }
.pass li:first-child { border-radius: 10px 0 0 10px; }
.pass li:last-child { border-radius: 0 10px 10px 0; box-shadow: none; }
.pass li::before { color: var(--sage); content: counter(step); font: 700 .85rem/1 var(--body); letter-spacing: .08em; }
.pass li::after { background: rgba(223, 235, 227, .22); border-radius: 3px; content: ""; height: 6px; left: 14px; position: absolute; right: 14px; top: 38px; }
.pass li span { font: 800 clamp(1.15rem, 1.7vw, 1.55rem)/1.02 var(--display); hyphens: auto; overflow-wrap: anywhere; text-transform: uppercase; }
.pass-foot { color: var(--muted); display: flex; font-size: .92rem; justify-content: space-between; margin-top: 12px; }

@media (prefers-reduced-motion: no-preference) {
  .pass li { animation: unfold .55s cubic-bezier(.2, .7, .2, 1) both; transform-origin: left center; }
  .pass li:nth-child(2) { animation-delay: .08s; } .pass li:nth-child(3) { animation-delay: .16s; }
  .pass li:nth-child(4) { animation-delay: .24s; } .pass li:nth-child(5) { animation-delay: .32s; }
  .pass li:nth-child(6) { animation-delay: .40s; } .pass li:nth-child(7) { animation-delay: .48s; }
  .pass li:nth-child(8) { animation-delay: .56s; } .pass li:nth-child(n+9) { animation-delay: .64s; }
}
@keyframes unfold { from { opacity: 0; transform: rotateY(-80deg); } to { opacity: 1; transform: none; } }

/* ---------- photographs ---------- */
.photo { background: var(--lilac); border-radius: 14px; margin: 0; overflow: hidden; position: relative; }
.photo img { display: block; height: 100%; object-fit: cover; width: 100%; }
.photo figcaption { color: var(--muted); font-size: .92rem; padding: 10px 2px 0; }
.photo:has(figcaption) { background: none; border-radius: 0; overflow: visible; }
.photo:has(figcaption) img { border-radius: 14px; }
.photo .flag { left: 10px; position: absolute; top: 10px; }
.photo-needed { align-items: center; display: flex; min-height: 160px; padding: 12px; }

/* Hero: the photo, with the price card overlapping its lower edge. */
.hero .wrap:has(.hero-media) { align-items: center; grid-template-columns: minmax(0, 1.15fr) minmax(300px, 1fr); }
/* Landscape, anchored low: a mat on the floor is the subject, not the ceiling. */
.hero .wrap:has(.hero-media) h1 { font-size: clamp(3rem, 6.4vw, 5.6rem); }
.hero-photo { aspect-ratio: 5 / 4; }
.hero-photo img { object-position: 50% 80%; }
.hero-media .price-tag { margin: -72px 0 0 -36px; position: relative; width: calc(100% + 12px); }

/* What to expect: one large photo, the rest stacked beside it. */
.gallery { display: grid; gap: 24px; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); margin-top: 28px; }
/* Each photo is a column: picture, then caption — the caption can never be
   pushed out under the next photo. */
.gallery .photo { display: flex; flex-direction: column; }
.gallery .photo img { aspect-ratio: 4 / 3; height: auto; }
/* The large photo stretches to the height of the two beside it. */
.gallery .photo:first-child { grid-row: span 2; }
.gallery .photo:first-child img { aspect-ratio: auto; flex: 1 1 0; height: 0; min-height: 320px; }
.gallery .photo:only-child { grid-column: 1 / -1; }
.gallery .photo:only-child img { aspect-ratio: 16 / 9; flex: none; height: auto; }

.thumb { aspect-ratio: 4 / 3; margin-top: 16px; max-width: 320px; }
.coach-grid { align-items: center; display: grid; gap: 48px; grid-template-columns: minmax(220px, .8fr) minmax(0, 1.4fr); }
.coach-photo { aspect-ratio: 4 / 5; }

/* ---------- pathways: a list with seams, not a grid of boxes ---------- */
.pathways { border-bottom: 2px solid var(--seam); list-style: none; margin: 8px 0 0; padding: 0; }
.pathways > li { border-top: 2px solid var(--seam); display: grid; gap: 4px 40px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); padding: 26px 0; }
.pathways h3 { margin: 0; }
.pathways h3 a { color: inherit; text-decoration: none; }
.pathways h3 a:hover { color: var(--lavender-deep); }
.pathways p { margin: 0; }
.pathway { scroll-margin-top: 16px; }
.pathway .skills { columns: 2 220px; column-gap: 32px; margin: 14px 0 0; padding-left: 1.1em; }
.pathway .goal { border-left: 4px solid var(--mat); margin-top: 14px; padding-left: 12px; }
.boundary { background: var(--sage); border-radius: 8px; color: var(--plum); font-weight: 700; margin-top: 14px; padding: 12px 14px; }

/* ---------- why private: four points split by seams ---------- */
.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin-top: 8px; }
.points > div { border-left: 2px solid var(--seam); padding: 4px 24px 8px; }
.points h3 { font-size: 1.45rem; }
.points p { color: var(--muted); }

/* ---------- coach ---------- */
.quote { color: var(--plum); font: 900 clamp(1.8rem, 4vw, 2.6rem)/1 var(--display); max-width: 22ch; text-transform: uppercase; }

/* ---------- closing band ---------- */
.band { background: var(--mat); color: var(--chalk); padding: clamp(48px, 7vw, 88px) 0; }
.band h2 { color: var(--chalk); }
.band p { color: var(--sage); }
.band .btn { background: var(--chalk); border-color: var(--chalk); color: var(--plum); }
.band .btn:hover { background: var(--sage); border-color: var(--sage); }
.band .btn.secondary { background: transparent; border-color: var(--sage); color: var(--chalk); }
.band .btn.secondary:hover { background: var(--mat-deep); }
.band a:not(.btn) { color: var(--chalk); }

/* ---------- plain cards (policies, contact) ---------- */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.card { background: #fff; border: 2px solid var(--lilac); border-radius: 14px; padding: 22px; }
.card h3 { font-size: 1.5rem; }
.card.link { color: inherit; display: block; text-decoration: none; transition: border-color .15s; }
.card.link:hover { border-color: var(--lavender); }
.card.link h3::after { content: " →"; color: var(--lavender); }
.kicker.spaced { margin-top: 40px; }
.card p:last-child { margin-bottom: 0; }
.callout { background: var(--sage); border-left: 6px solid var(--mat); border-radius: 8px; padding: 18px 20px; }

/* ---------- forms ---------- */
.form { background: #fff; border: 2px solid var(--lilac); border-radius: 14px; display: grid; gap: 18px; padding: 24px; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 700; }
.field .hint { color: var(--muted); font-size: .92rem; }
.field input, .field select, .field textarea { background: var(--chalk); border: 1px solid #b9aec3; border-radius: 8px; color: var(--ink); font: inherit; min-height: 48px; padding: 10px 12px; width: 100%; }
.field textarea { min-height: 110px; resize: vertical; }
.field textarea.large { min-height: 170px; }
.check { align-items: flex-start; display: flex; font-weight: 700; gap: 10px; }
.check input { flex: none; height: 22px; margin-top: 3px; width: 22px; }
.req { color: var(--lavender-deep); }

/* ---------- footer ---------- */
.site-footer { background: var(--plum); color: var(--lilac); padding: 44px 0; }
.site-footer a { color: var(--chalk); }
.site-footer .wrap { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.site-footer strong { color: var(--chalk); font: 800 1.3rem/1.1 var(--display); text-transform: uppercase; }
.site-footer .brick { color: var(--chalk); font-weight: 700; }

.coming-soon { align-items: center; display: flex; min-height: 100vh; }
.coming-soon .wrap { display: block; }
.coming-soon .kicker { margin-top: 24px; }

/* ---------- preview markers (admin preview only) ---------- */
.preview-bar { background: var(--flag-bg); border-bottom: 2px solid var(--flag-line); color: var(--flag-ink); font-size: .9rem; padding: 8px var(--gutter); text-align: center; }
.is-draft { outline: 2px dashed var(--flag-line); outline-offset: 3px; }
.flag { background: var(--flag-bg); border: 1px dashed var(--flag-line); border-radius: 999px; color: var(--flag-ink); display: inline-block; font: 700 .72rem/1.4 var(--body); letter-spacing: .04em; margin-left: 6px; padding: 1px 8px; text-transform: uppercase; vertical-align: middle; }
.needs { background: var(--flag-bg); border: 1px dashed var(--flag-line); border-radius: 8px; color: var(--flag-ink); display: block; font-size: .92rem; margin: 6px 0; padding: 10px 12px; text-transform: none; }
.needs b { display: block; }

/* ---------- small screens ---------- */
@media (max-width: 820px) {
  .hero .wrap:has(> aside), .pass-head, .pathways > li { grid-template-columns: 1fr; }
  .pass { grid-auto-flow: row; }
  .pass li { align-items: center; box-shadow: inset 0 -2px 0 rgba(223, 235, 227, .28); flex-direction: row; gap: 16px; justify-content: flex-start; min-height: 0; padding: 16px 18px; }
  .pass li::after { display: none; }
  .pass li:first-child { border-radius: 10px 10px 0 0; }
  .pass li:last-child { border-radius: 0 0 10px 10px; }
  .pass li span { font-size: 1.45rem; }
  .points > div { border-left: 0; border-top: 2px solid var(--seam); padding: 18px 0 6px; }
  .hero .wrap:has(.hero-media), .gallery, .coach-grid { grid-template-columns: 1fr; }
  .hero-photo { aspect-ratio: 4 / 3; }
  .hero-media .price-tag { margin: -40px 12px 0; width: auto; }
  .gallery .photo:first-child { grid-row: auto; }
  .gallery .photo:first-child img { aspect-ratio: 4 / 3; flex: none; height: auto; min-height: 0; }
  .coach-photo { aspect-ratio: 1 / 1; max-width: 360px; }
  .thumb { max-width: none; }
}
@media (max-width: 820px) and (prefers-reduced-motion: no-preference) {
  .pass li { animation-name: unfold-down; transform-origin: center top; }
}
@keyframes unfold-down { from { opacity: 0; transform: rotateX(-80deg); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) {
  body { font-size: 17px; }
  .nav { gap: 2px 16px; width: 100%; }
  .actions .btn { width: 100%; }
}
@media print { .site-header .nav, .actions, .preview-bar { display: none; } }
