/* =========================================================
   In-Spire Pilates — site styles
   Every brand colour is a CSS variable. The JamFam Hub
   "Theme" fields overwrite these at runtime (see js/site.js),
   so a seasonal re-theme never needs a code change.
   ========================================================= */
:root {
  --pink: #E0157A;      /* Primary — buttons, links, highlights */
  --blue: #4F8FEA;      /* Secondary — schedule, info, accents */
  --orange: #F47A38;    /* Accent — promos, "Buy a pass", HOT tags */
  --blush: #FFE4F1;     /* Soft pink section background */
  --sky: #E4EEFF;       /* Soft blue section background */
  --ink: #2A1236;       /* Main text colour */
  --cream: #FFF9F4;     /* Page background */
  --on-pink: #FFFFFF;   /* Text on pink buttons */
  --on-orange: #2A1236; /* Text on orange buttons */

  --ink-soft: color-mix(in srgb, var(--ink) 72%, var(--cream));
  --line: color-mix(in srgb, var(--ink) 12%, transparent);
  --card: #FFFFFF;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 10px 30px -12px color-mix(in srgb, var(--ink) 30%, transparent);
  --display: "Agbalumo", "Cooper Black", Georgia, serif;
  --body: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pink); text-underline-offset: 3px; }
[hidden] { display: none !important; }
[data-jamfam-generated], [data-jamfam-fallback].contents { display: contents; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; margin: 0 0 .4em; letter-spacing: .005em; }
h1 { font-size: clamp(2.6rem, 7vw, 5rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
.eyebrow { font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--pink); margin-bottom: .6em; display: inline-block; }
.lede { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--ink-soft); max-width: 60ch; }

/* ---------- Buttons: the two sales doors ---------- */
.btn {
  --bg: var(--pink); --fg: var(--on-pink);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 28px; border-radius: 999px; border: 0;
  background: var(--bg); color: var(--fg);
  font: 700 1.02rem/1 var(--body); letter-spacing: .01em; text-decoration: none;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, filter .15s;
  box-shadow: 0 6px 0 -1px color-mix(in srgb, var(--bg) 55%, var(--ink));
}
.btn:hover { transform: translateY(-2px); filter: saturate(1.1); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 -1px color-mix(in srgb, var(--bg) 55%, var(--ink)); }
.btn-buy { --bg: var(--orange); --fg: var(--on-orange); }
.btn-blue { --bg: var(--blue); --fg: #fff; }
.btn-ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Promo bar ---------- */
.promo-bar { background: var(--ink); color: #fff; font-size: .92rem; text-align: center; }
.promo-bar a { color: inherit; text-decoration: none; display: block; padding: 9px var(--gutter); }
.promo-bar a:hover span:last-child { text-decoration: underline; }
.promo-bar .spark { color: var(--orange); margin-right: .4em; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--cream) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.brand { display: block; flex-shrink: 0; }
.brand img { height: 54px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: 999px; font-size: .98rem; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--blush); color: var(--pink); }
.header-cta { display: flex; gap: 10px; }
.menu-btn { display: none; margin-left: auto; width: 48px; height: 48px; border-radius: 14px; border: 2px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.menu-btn svg { margin: auto; }

@media (max-width: 1040px) {
  .header-cta { display: none; }
}
@media (max-width: 860px) {
  .menu-btn { display: grid; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(340px, 86vw); flex-direction: column; gap: 6px;
    background: var(--cream); padding: 96px 24px 24px; margin: 0; box-shadow: var(--shadow);
    transform: translateX(24px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: transform .22s ease, opacity .22s ease, visibility 0s linear .22s; z-index: 45;
  }
  body.menu-open .nav { opacity: 1; visibility: visible; pointer-events: auto; transition: transform .22s ease, opacity .22s ease; }
  .nav a { font-size: 1.2rem; padding: 12px 16px; }
  body.menu-open .nav { transform: none; }
  body.menu-open .menu-btn { position: relative; z-index: 50; }
  .nav-scrim { position: fixed; inset: 0; background: color-mix(in srgb, var(--ink) 40%, transparent); z-index: 44; opacity: 0; pointer-events: none; transition: opacity .2s; }
  body.menu-open .nav-scrim { opacity: 1; pointer-events: auto; }
  .brand img { height: 46px; }
}

/* ---------- Mobile: always-on two-button bar ---------- */
.sticky-cta { display: none; }
@media (max-width: 860px) {
  .sticky-cta {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 39;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--cream) 94%, transparent); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
  }
  .sticky-cta .btn { min-height: 50px; padding: 0 10px; font-size: .98rem; }
  body { padding-bottom: 80px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; isolation: isolate; overflow: hidden; }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media { z-index: -2; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, color-mix(in srgb, var(--ink) 88%, transparent) 0%, color-mix(in srgb, var(--pink) 55%, transparent) 55%, color-mix(in srgb, var(--blue) 45%, transparent) 100%);
}
.hero .wrap { padding-top: clamp(72px, 12vw, 150px); padding-bottom: clamp(72px, 12vw, 150px); }
.hero h1 { max-width: 15ch; text-shadow: 0 4px 30px rgba(0,0,0,.25); }
.hero .lede { color: rgba(255,255,255,.92); }
.hero .btn-row { margin-top: 30px; }
.hero .btn { min-height: 58px; font-size: 1.1rem; padding: 0 34px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; font-weight: 600; font-size: .95rem; opacity: .95; }
.hero-meta span::before { content: "✦"; color: var(--orange); margin-right: .45em; }

.page-hero { background: var(--blush); padding: clamp(48px, 8vw, 92px) 0 clamp(36px, 6vw, 64px); position: relative; overflow: hidden; }
.page-hero.sky { background: var(--sky); }
.page-hero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--orange) 40%, transparent), transparent 70%); }

/* ---------- Sections ---------- */
section.block { padding: clamp(56px, 9vw, 104px) 0; }
.block.tint { background: var(--blush); }
.block.sky { background: var(--sky); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 34px; }
.section-head p { margin: 0; }

.grid { display: grid; gap: clamp(16px, 2.5vw, 26px); grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); }

/* ---------- Two doors ---------- */
.doors { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.door { border-radius: var(--radius); padding: clamp(26px, 4vw, 40px); background: var(--card); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.door::after { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; right: -50px; bottom: -60px; background: var(--blush); z-index: 0; }
.door.buy::after { background: color-mix(in srgb, var(--orange) 22%, var(--cream)); }
.door > * { position: relative; z-index: 1; }
.door .num { font-family: var(--display); font-size: 1.1rem; color: var(--pink); }
.door.buy .num { color: var(--orange); }

/* ---------- Cards (promos, classes, passes, team) ---------- */
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; height: 100%; }
.card-media { aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--blush), var(--sky)); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.promo-card .card-media:has(> img[hidden]), .class-card .card-media:has(> img[hidden]),
.promo-card .card-media:not(:has(img)), .class-card .card-media:not(:has(img)) { display: none; }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { margin: 0; }
.card-body .rich p:last-child { margin-bottom: 0; }
.card-body .btn { margin-top: auto; align-self: flex-start; }
.card-body .rich { color: var(--ink-soft); }
.card-body > .btn:first-of-type { margin-top: 14px; }

.badge { align-self: flex-start; display: inline-block; font-weight: 800; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; background: var(--blush); color: var(--pink); }
.badge:empty { display: none; }

/* Promotions get a colour band that cycles through the brand trio */
.promo-card { border-top: 8px solid var(--pink); }
.promo-grid .contents > .promo-card:nth-child(3n+2),
.promo-grid > [data-jamfam-generated]:nth-child(3n+2 of [data-jamfam-generated]) .promo-card { border-top-color: var(--blue); }
.promo-grid .contents > .promo-card:nth-child(3n+3),
.promo-grid > [data-jamfam-generated]:nth-child(3n+3 of [data-jamfam-generated]) .promo-card { border-top-color: var(--orange); }
.promo-card .badge { background: color-mix(in srgb, var(--orange) 20%, white); color: color-mix(in srgb, var(--orange) 60%, var(--ink)); }
.promo-card .card-media { aspect-ratio: 16 / 9; }

/* Class cards */
.class-card .meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: .9rem; font-weight: 600; color: var(--ink-soft); }
.class-card .meta span:not(:empty)::before { content: "•"; margin-right: 8px; color: var(--pink); }
.class-card .meta span:first-child::before { content: none; }
.tag-hot { background: color-mix(in srgb, var(--orange) 22%, white); color: color-mix(in srgb, var(--orange) 55%, var(--ink)); }
.tag-warm { background: var(--blush); color: var(--pink); }
.tag-cool { background: var(--sky); color: color-mix(in srgb, var(--blue) 60%, var(--ink)); }

/* Pass cards */
.pass-card { text-align: left; border: 2px solid transparent; }
.pass-card .price { font-family: var(--display); font-size: clamp(2.4rem, 5vw, 3rem); line-height: 1; color: var(--pink); margin: 8px 0 2px; }
.pass-card .price-note { font-size: .9rem; color: var(--ink-soft); }
.pass-grid .contents > .pass-card:nth-child(2),
.pass-grid > [data-jamfam-generated]:nth-child(2 of [data-jamfam-generated]) .pass-card { border-color: var(--orange); }

/* Team */
.coach-card .card-media { aspect-ratio: 4 / 5; display: grid; place-items: center; }
.coach-card .card-media img { object-position: 50% 20%; }
.coach-card .card-media::before { content: attr(data-initial); font-family: var(--display); font-size: 5rem; color: color-mix(in srgb, var(--pink) 70%, white); grid-area: 1 / 1; }
.coach-card .card-media img { grid-area: 1 / 1; position: relative; }
.coach-card .role { font-weight: 700; color: var(--pink); font-size: .92rem; }
.coach-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

/* ---------- Walla schedule frame ---------- */
.walla-frame { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(10px, 2vw, 22px); min-height: 520px; position: relative; }
.walla-frame .walla-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-soft); font-weight: 600; pointer-events: none; }
.walla-frame .walla-widget-root iframe { border-radius: var(--radius-sm); }
.walla-frame.loaded .walla-loading { display: none; }
.walla-help { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); margin: 0 0 26px; padding: 0; list-style: none; counter-reset: step; }
.walla-help li { background: var(--card); border-radius: var(--radius-sm); padding: 16px 18px 16px 58px; position: relative; box-shadow: var(--shadow); font-weight: 600; }
.walla-help li::before { counter-increment: step; content: counter(step); position: absolute; left: 16px; top: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--pink); color: #fff; display: grid; place-items: center; font-family: var(--display); }

/* ---------- About split ---------- */
.split { display: grid; gap: clamp(28px, 5vw, 64px); grid-template-columns: 1fr 1fr; align-items: center; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.split-media::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border-radius: var(--radius); background: var(--orange); z-index: -1; }
.split-media { isolation: isolate; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } .split-media::before { inset: 12px -10px -12px 10px; } }
.rich ul { padding-left: 1.2em; }
.signature { font-family: var(--display); font-size: 1.6rem; color: var(--pink); }

/* ---------- Gallery ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip { border: 2px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 8px 16px; font: 600 .95rem var(--body); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--pink); border-color: var(--pink); color: var(--on-pink); }
.gallery-grid { columns: 3 260px; column-gap: 16px; }
.shot { break-inside: avoid; margin: 0 0 16px; position: relative; border-radius: var(--radius-sm); overflow: hidden; background: var(--sky); cursor: zoom-in; }
.shot img { width: 100%; transition: transform .3s ease; }
.shot:hover img { transform: scale(1.03); }
.shot figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; color: #fff; font-weight: 600; font-size: .92rem; background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.shot figcaption .cls { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: color-mix(in srgb, var(--orange) 50%, white); }
.shot.is-filtered { display: none; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.strip img { border-radius: var(--radius-sm); aspect-ratio: 3/4; object-fit: cover; scroll-snap-align: start; }

dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); max-height: 92vh; }
dialog.lightbox::backdrop { background: color-mix(in srgb, var(--ink) 85%, black); }
dialog.lightbox img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: 12px; }
dialog.lightbox p { color: #fff; text-align: center; margin: 12px 0 0; font-weight: 600; }
dialog.lightbox button { position: fixed; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font-size: 1.6rem; cursor: pointer; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 26px; grid-template-columns: 1fr 1.2fr; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.info-list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 14px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .ic { flex: 0 0 44px; height: 44px; border-radius: 14px; background: var(--blush); color: var(--pink); display: grid; place-items: center; }
.info-list strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); }
.info-list a { color: var(--ink); font-weight: 600; text-decoration: none; }
.info-list a:hover { color: var(--pink); }
.map { border: 0; width: 100%; height: 280px; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--sky); }
form.contact { background: var(--card); padding: clamp(22px, 4vw, 36px); border-radius: var(--radius); box-shadow: var(--shadow); display: grid; gap: 16px; }
form.contact .two { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { form.contact .two { grid-template-columns: 1fr; } }
label { font-weight: 600; font-size: .92rem; display: grid; gap: 6px; }
input, select, textarea { font: 400 1rem var(--body); color: var(--ink); background: var(--cream); border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--pink); outline: none; }
textarea { min-height: 140px; resize: vertical; }
.form-status { font-weight: 600; margin: 0; }
.form-status.ok { color: #1c7c4a; }
.form-status.err { color: #b3261e; }

/* ---------- Social ---------- */
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--card); color: var(--ink); box-shadow: var(--shadow); transition: transform .15s, background .15s, color .15s; }
.socials a:hover { transform: translateY(-2px); background: var(--pink); color: #fff; }
.social-band { background: linear-gradient(110deg, var(--pink), color-mix(in srgb, var(--pink) 50%, var(--orange)) 55%, var(--orange)); color: #fff; text-align: center; }
.social-band .socials { justify-content: center; }
.social-band .btn { --bg: #fff; --fg: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: color-mix(in srgb, #fff 82%, var(--ink)); padding: 56px 0 30px; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.foot-grid { display: grid; gap: 30px; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-family: var(--display); font-weight: 400; font-size: 1.3rem; margin: 0 0 12px; color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-logo { background: #fff; border-radius: 18px; padding: 12px 16px; display: inline-block; margin-bottom: 14px; }
.foot-logo img { height: 56px; width: auto; }
.site-footer .socials a { background: color-mix(in srgb, #fff 10%, var(--ink)); color: #fff; box-shadow: none; }
.fine { border-top: 1px solid color-mix(in srgb, #fff 14%, transparent); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .85rem; }

/* Hidden Hub settings (theme, logo, SEO) */
.hub-settings { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* Instructor without a photo yet: shorter initial tile */
.coach-card .card-media:not(:has(img:not([hidden]))) { aspect-ratio: 5 / 2; }
.coach-card .card-media:not(:has(img:not([hidden])))::before { font-size: 3.6rem; }

/* Team group photo (instructors page) */
.team-photo { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.team-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.team-photo figcaption { position: absolute; left: 16px; bottom: 16px; background: var(--cream); color: var(--ink); font-family: var(--display); font-size: 1.3rem; padding: 6px 16px; border-radius: 999px; }

/* Forms */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.forms { background: var(--card); padding: clamp(22px, 4vw, 36px); border-radius: var(--radius); box-shadow: var(--shadow); }
.forms form.contact { background: none; padding: 0; box-shadow: none; }
.form-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.form-tabs button { border: 2px solid var(--line); background: var(--cream); color: var(--ink); border-radius: 999px; padding: 9px 14px; font: 600 .9rem var(--body); cursor: pointer; }
.form-tabs button[aria-selected="true"] { background: var(--pink); border-color: var(--pink); color: var(--on-pink); }
label small { font-weight: 400; color: var(--ink-soft); }
button[disabled] { opacity: .6; cursor: wait; }
.newsletter { display: grid; gap: 8px; margin-bottom: 6px; }
.newsletter input { background: color-mix(in srgb, #fff 8%, var(--ink)); border-color: color-mix(in srgb, #fff 18%, transparent); color: #fff; }
.newsletter input::placeholder { color: color-mix(in srgb, #fff 60%, var(--ink)); }
.newsletter .btn { justify-self: start; }
.site-footer .form-status.ok { color: #9be7bd; }
.site-footer .form-status.err { color: #ffb4ab; }

/* ---------- SEO pages: breadcrumbs, profiles, class pages, FAQ ---------- */
a.plain { color: inherit; text-decoration: none; }
a.plain:hover { color: var(--pink); }
.crumbs { padding-top: 18px; font-size: .88rem; color: var(--ink-soft); }
.crumbs a { color: var(--ink-soft); }
.crumbs span[aria-current] { color: var(--ink); font-weight: 600; }
.block.profile { padding-top: 28px; }
.profile .split-media img { aspect-ratio: 4 / 5; object-position: 50% 20%; }
.profile h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: .1em; }
.role-lg { font-weight: 700; color: var(--pink); margin-bottom: 14px; }
.teaches a { font-weight: 600; }
.class-badge { margin-bottom: 8px; }
.class-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-weight: 600; color: var(--ink-soft); margin-bottom: 14px; }
.class-meta span:not(:first-child)::before { content: "•"; margin-right: 16px; color: var(--pink); }
.h3 { font-size: 1.5rem; margin-top: 18px; }
.expect ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.expect li { padding-left: 30px; position: relative; }
.expect li::before { content: "✦"; position: absolute; left: 4px; color: var(--orange); }
.chip-links { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-link { display: inline-flex; align-items: center; gap: 8px; background: var(--card); color: var(--ink); text-decoration: none; font-weight: 600; padding: 10px 16px; border-radius: 999px; box-shadow: var(--shadow); }
.chip-link b { font-size: .68rem; letter-spacing: .1em; color: var(--pink); background: var(--blush); padding: 3px 8px; border-radius: 999px; }
.chip-link:hover { color: var(--pink); }
.avatars { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 16px; }
.avatar { text-decoration: none; color: var(--ink); text-align: center; font-weight: 700; }
.avatar img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 20%; border-radius: 50%; border: 4px solid var(--card); box-shadow: var(--shadow); margin-bottom: 8px; transition: transform .15s; }
.avatar:hover img { transform: translateY(-3px); }
.mini-coaches { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); }
.mini-coach { display: flex; align-items: center; gap: 14px; background: var(--card); border-radius: var(--radius-sm); padding: 10px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.mini-coach img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; flex: none; }
.mini-coach b { display: block; }
.mini-coach small { color: var(--ink-soft); }
.wrap.narrow { max-width: 860px; }
.faq-list { display: grid; gap: 10px; }
.faq-item { background: var(--card); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.faq-item summary { cursor: pointer; padding: 16px 48px 16px 20px; font-weight: 700; list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--pink); }
.faq-item[open] summary::after { content: "–"; }
.faq-item .rich { padding: 0 20px 16px; color: var(--ink-soft); }
.faq-peek { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.faq-peek a { display: block; background: var(--card); padding: 14px 18px; border-radius: var(--radius-sm); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; font-weight: 600; }
.faq-peek a::after { content: " →"; color: var(--pink); }
.foot-links { margin-top: 34px; font-size: .88rem; line-height: 1.9; }
.foot-links p { margin: 0 0 6px; }
.foot-links strong { color: #fff; margin-right: 6px; }

/* =========================================================
   Mobile lock-down: no sideways movement, comfortable taps
   ========================================================= */
html { overscroll-behavior-x: none; }
body { overflow-wrap: break-word; -webkit-tap-highlight-color: transparent; }
a, button, summary, .chip, .chip-link, input, select, textarea { touch-action: manipulation; }
iframe, video, embed { max-width: 100%; }
[id] { scroll-margin-top: 96px; }
.split > *, .contact-grid > *, .grid > *, .doors > *, .foot-grid > *, .ps-split > * { min-width: 0; }

/* Menu + lightbox open → page behind stays put */
body.menu-open, body.no-scroll { overflow: hidden; touch-action: none; }
body.menu-open .nav { overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; }

/* Bigger, easier taps */
.chip-link, .chip, .form-tabs button { min-height: 44px; }
.badge { font-size: .8rem; }
.coach-card h3 a, .class-card h3 a { display: inline-block; padding: 4px 0; }
.ps-hex input, .ps-hex button { min-height: 44px; }

@media (max-width: 860px) {
  /* Photo strip: a tidy 2-column grid instead of a sideways swipe */
  .strip { grid-auto-flow: row; grid-template-columns: 1fr 1fr; grid-auto-columns: auto; overflow: visible; scroll-snap-type: none; padding-bottom: 0; }
  .strip img { aspect-ratio: 1; }
  .section-head { align-items: flex-start; }
  .hero .btn-row .btn { flex: 1 1 140px; }
  .door .btn, .card-body .btn { min-height: 46px; }
  .foot-links { line-height: 2.2; }
  .fine a { display: inline-block; padding: 8px 0; }
}
@media (max-width: 420px) {
  :root { --gutter: 16px; }
  h1 { font-size: clamp(2.2rem, 11vw, 3rem); }
  .hero .wrap { padding-top: 56px; padding-bottom: 56px; }
  .btn { padding: 0 20px; }
  .walla-frame { padding: 6px; border-radius: 16px; }
  .forms, form.contact { padding: 18px; }
  .pv-body { grid-template-columns: 1fr; }
  .pv-head span { display: none; }
}
.coach-card h3 a, .class-card h3 a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; }

/* Article (What is Pilates?) */
.byline { color: var(--ink-soft); font-size: .92rem; margin: 0; }
.article-body { font-size: 1.06rem; }
.article-img { border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 30px; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.article-sec { margin-bottom: 30px; }
.article-sec h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.article-sec ul { padding-left: 1.2em; }
.article-sec li { margin: 6px 0; }
.cta-box { background: var(--blush); border-radius: var(--radius); padding: clamp(22px, 4vw, 32px); margin: 36px 0; }
.cta-box h2 { font-size: 1.8rem; }
.keep-reading { display: grid; gap: 10px; }
.keep-reading h2 { font-size: 1.6rem; margin: 0 0 4px; }
.keep-reading a { display: grid; background: var(--card); border-radius: var(--radius-sm); padding: 14px 18px; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; min-height: 44px; }
.keep-reading a span { color: var(--ink-soft); font-size: .92rem; }
.keep-reading a:hover b { color: var(--pink); }
.tap-row { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.tap-row .btn { min-height: 44px; }
.page-hero .wrap.narrow { position: relative; z-index: 1; }

/* Phone menu: the header's blur would trap the fixed drawer inside the header — disable it on phones */
@media (max-width: 860px) {
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--cream); }
  .nav { top: 0; bottom: 0; height: 100dvh; max-height: 100dvh; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .nav-scrim { height: 100dvh; }
  body.menu-open .sticky-cta { visibility: hidden; }
}
.nav-cta { display: none; }
@media (max-width: 860px) {
  .nav-cta { display: grid; gap: 10px; margin-top: auto; padding-top: 20px; }
  .nav-cta .btn { width: 100%; }
  .nav a.btn { padding: 0 20px; font-size: 1.05rem; }
  .nav a.btn:hover { background: var(--bg); color: var(--fg); }
  .menu-btn[aria-expanded="true"] svg { display: none; }
  .menu-btn[aria-expanded="true"]::after { content: "✕"; font-size: 1.3rem; line-height: 1; margin: auto; }
}

/* =========================================================
   POLISH PASS — cleaner, more professional finish
   ========================================================= */
/* Buttons: flat pills, subtle lift on hover */
.btn { box-shadow: none; font-weight: 700; letter-spacing: 0; transition: background-color .15s, box-shadow .15s, transform .15s; }
.btn:hover { transform: translateY(-1px); filter: none; box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--bg) 80%, transparent); }
.btn:active { transform: none; box-shadow: none; }
.btn-ghost { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 22%, transparent); background: transparent; }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); transform: none; }

/* Type: display font for big headings only; clean sans for everything smaller */
h3, .h3 { font-family: var(--body); font-weight: 700; letter-spacing: -.01em; font-size: 1.2rem; line-height: 1.25; }
.card-body h3 { font-size: 1.18rem; }
.eyebrow { text-transform: none; letter-spacing: 0; font-size: .98rem; font-weight: 600; margin-bottom: .5em; }
.hero-eyebrow { color: #fff; opacity: .92; }
.lede { color: var(--ink-soft); }
.badge { letter-spacing: .06em; font-size: .72rem; padding: 4px 10px; }

/* Cards: quiet border + soft shadow (not one heavy shadow everywhere) */
.card { box-shadow: 0 1px 2px color-mix(in srgb, var(--ink) 6%, transparent), 0 12px 28px -20px color-mix(in srgb, var(--ink) 40%, transparent); border: 1px solid var(--line); }
.promo-card { border-top-width: 5px; }
.door { box-shadow: none; border: 1px solid var(--line); }
.door::after, .page-hero::after { display: none; }
.walla-frame, .forms, .faq-item, .mini-coach, .chip-link, .faq-peek a, .keep-reading a, .info-list .ic { box-shadow: none; border: 1px solid var(--line); }
.walla-help li { box-shadow: none; border: 1px solid var(--line); }

/* Meta as tidy pills, not dot-separated strings */
.class-card .meta span::before, .class-meta span::before { content: none !important; }
.class-card .meta, .class-meta { gap: 6px; }
.class-card .meta span, .class-meta span { background: var(--sky); color: var(--ink); font-size: .82rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--blush); color: var(--ink); font-size: .88rem; font-weight: 600; text-decoration: none; }
.tag:hover { background: var(--pink); color: var(--on-pink); }
.teaches-label { font-weight: 700; margin: 18px 0 8px; }
.profile .btn-row { margin-top: 22px; }

/* Promo bar: one clean line */
.promo-bar a { text-decoration: none; }
.promo-bar a:hover span:last-child { text-decoration: underline; }

/* Home: photo strip as an even grid */
.strip { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; scroll-snap-type: none; padding: 0; }
.strip img { width: 100%; aspect-ratio: 4 / 5; }
.section-head h2 { margin: 0; }
.chip-link { box-shadow: none; }
.avatars { grid-template-columns: repeat(6, 1fr); }

/* Footer columns */
.foot-lists { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; padding-top: 30px; border-top: 1px solid color-mix(in srgb, #fff 14%, transparent); }
.foot-lists ul { display: grid; gap: 6px; }
.foot-lists a { color: color-mix(in srgb, #fff 78%, var(--ink)); }
.foot-lists a:hover { color: #fff; }

/* Desktop: roomier hero */
@media (min-width: 861px) {
  .hero { min-height: min(720px, 80vh); display: flex; align-items: center; }
  .hero .wrap { width: 100%; }
  .hero h1 { font-size: clamp(3.4rem, 6.5vw, 5.6rem); }
}

/* Phones: compact, thumb-friendly layouts */
@media (max-width: 860px) {
  section.block { padding: 52px 0; }
  .page-hero { padding: 36px 0 30px; }
  .grid { gap: 14px; }
  .section-head { margin-bottom: 22px; }
  .hero { min-height: 74svh; display: flex; align-items: flex-end; }
  .hero .wrap { width: 100%; padding-top: 48px; padding-bottom: 36px; }
  .hero-meta { gap: 6px 16px; font-size: .88rem; margin-top: 24px; }
  .promo-bar { font-size: .84rem; }
  .promo-bar a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 8px 16px; }
  .strip { grid-template-columns: 1fr 1fr; gap: 10px; }
  .avatars { grid-template-columns: repeat(3, 1fr); gap: 14px 10px; }
  .doors { gap: 14px; }
  .door { padding: 22px; }
  .door h2 { font-size: 1.9rem; }
  .class-card .card-media { aspect-ratio: 16 / 9; }
  .promo-card .card-media { aspect-ratio: 2 / 1; }
  .card-body { padding: 18px 18px 20px; }
  /* Instructor cards side-by-side photo + text on phones */
  .grid .coach-card { flex-direction: row; }
  .grid .coach-card .card-media { flex: 0 0 38%; aspect-ratio: auto; min-height: 100%; }
  .grid .coach-card .card-media img { height: 100%; }
  .grid .coach-card .card-body { padding: 14px; gap: 4px; }
  .grid .coach-card .tags { margin-top: 4px; }
  .grid .coach-card .tag { min-height: 32px; padding: 0 10px; font-size: .78rem; }
  .grid .coach-card .coach-links { flex-direction: column; gap: 6px; margin-top: 10px; }
  .grid .coach-card .coach-links .btn { width: 100%; min-height: 42px; }
  .split { gap: 26px; }
  .profile .split-media img { aspect-ratio: 1; }
  .foot-grid { gap: 26px; }
  .foot-lists { grid-template-columns: 1fr 1fr; gap: 22px; }
  .foot-lists > div:last-child { grid-column: 1 / -1; }
  .site-footer { padding-bottom: 20px; }
}

.faq-peek a::after { content: none; }
.faq-peek a:hover { border-color: var(--pink); color: var(--pink); }

.promo-bar a, .promo-bar a span { text-decoration: none !important; }

.info-list strong { text-transform: none; letter-spacing: 0; font-size: .9rem; color: var(--ink-soft); font-weight: 600; }
.badge { font-size: 12px; }
@media (max-width: 860px) {
  .promo-bar a { display: flex; justify-content: center; gap: 4px; }
  .promo-bar a span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 860px) {
  .promo-bar a { padding: 11px 16px; }
  .grid .coach-card .tag { min-height: 40px; }
}

/* =========================================================
   DESKTOP REFINEMENT — balanced on laptops and big monitors
   ========================================================= */
@media (min-width: 861px) {
  :root { --wrap: 1240px; }
  .brand img { height: 62px; }
  .site-header .wrap { min-height: 84px; }
  /* Centered, confident hero */
  .hero { min-height: min(760px, 84vh); text-align: center; }
  .hero::before { background:
      linear-gradient(180deg, color-mix(in srgb, var(--ink) 55%, transparent) 0%, color-mix(in srgb, var(--ink) 35%, transparent) 40%, color-mix(in srgb, var(--ink) 75%, transparent) 100%),
      linear-gradient(100deg, color-mix(in srgb, var(--pink) 45%, transparent), color-mix(in srgb, var(--blue) 35%, transparent)); }
  .hero-media img { object-position: 50% 62%; }
  .hero h1 { max-width: none; font-size: clamp(4rem, 7vw, 6.6rem); margin-bottom: .25em; }
  .hero .lede { margin: 0 auto; max-width: 46ch; font-size: 1.3rem; }
  .hero .btn-row { justify-content: center; margin-top: 34px; }
  .hero .btn { min-width: 190px; }
  .hero-meta { justify-content: center; }
  /* Calmer rhythm */
  section.block { padding: 96px 0; }
  .section-head { margin-bottom: 40px; }
  .split { gap: 72px; }
}
@media (min-width: 1500px) {
  :root { --wrap: 1360px; }
  body { font-size: 18px; }
  .grid { gap: 30px; }
}
/* Cards always fill the row (no empty column on wide screens) */
.grid { grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); }
@media (min-width: 1100px) {
  .promo-grid, .pass-grid { grid-template-columns: repeat(3, 1fr); }
  .promo-grid > .contents, .pass-grid > .contents { display: contents; }
}
@media (min-width: 1100px) { .coach-grid { grid-template-columns: repeat(3, 1fr); } }
