/* PODDANCE v2: public site layer.
   Load after tokens.css and bundle.css. Page layout only: header extras, sections,
   footer and the few public-page patterns bundle.css does not cover. Tokens only. */

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; min-height: 100vh; }
[hidden] { display: none !important; }
img { max-width: 100%; }
a:not([class]) { color: var(--cobalt); }
a:not([class]):hover { color: var(--ink); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
section[id], footer[id] { scroll-margin-top: var(--header-height); }

/* ---------- Header ---------- */
.site-header-social { display: none; }
.site-header-social .pd-social a { width: 40px; height: 40px; box-shadow: none; }
.pd-burger .site-icon-close { display: none; }
.pd-burger[aria-expanded="true"] .site-icon-open { display: none; }
.pd-burger[aria-expanded="true"] .site-icon-close { display: block; }
.pd-menu { z-index: 19; overflow-y: auto; }
.site-menu-extra { margin-top: var(--space-8); display: grid; gap: var(--space-6); justify-items: start; }
.site-menu-extra .pd-social a { color: var(--on-night); }
@media (min-width: 900px) {
  .pd-menu { display: none !important; }
  .pd-nav { gap: var(--space-5); margin-left: var(--space-8); }
}
@media (min-width: 1240px) { .site-header-social { display: block; } }
/* Black header with white PODDANCE, matching the footer (all public, booking and admin pages) */
.pd-header-dark .pd-logo span { color: var(--on-night); }
.pd-header-dark .pd-nav a, .pd-header-dark .pd-nav a:hover, .pd-header-dark .pd-burger, .pd-header-dark .pd-social a { color: var(--on-night); }
.pd-header-dark .pd-nav a { opacity: .85; }
.pd-header-dark .pd-iconbtn { color: var(--on-night); }
.pd-header-dark .pd-iconbtn:hover { background: rgba(255,255,255,.1); }
.pd-header-dark .pd-social a:hover { background: var(--blush); color: var(--on-blush); }
.pd-header-dark a:focus-visible, .pd-header-dark button:focus-visible { outline-color: var(--on-night); }

/* ---------- Home hero: class photo as the background ---------- */
/* A bright group photo, so a stronger night overlay than the default hero: an even tint over
   the whole picture, deepening towards the bottom where the text sits. */
.site-hero-photo .pd-hero-img { object-position: center 55%; }
.site-hero-photo::after { background: linear-gradient(180deg, rgba(27,20,32,.5) 0%, rgba(27,20,32,.58) 45%, rgba(27,20,32,.9) 100%); }
/* Phones, home page hero: the tall, narrow hero shows the whole square photo with the group right behind
   the text. Zoom in 1.5x, anchored at the bottom edge, so the faces move up into the space above the
   heading (some people at the sides drop out of shot). The bookings home's shorter hero is unchanged. */
@media (max-width: 599px) {
  .pd-hero.site-hero-photo:not(.site-hero-compact) .pd-hero-img { transform: scale(1.5); transform-origin: 50% 100%; }
}

/* Home page class card: name with the pink highlight badge to its right, as on the booking cards */
.site-class-titlerow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.site-class-titlerow .pd-class-name { margin: 0; }
.site-class-titlerow .pd-badge { text-transform: uppercase; letter-spacing: .04em; }   /* highlight badge in capitals */

/* "Christmas offer: +2 weeks" label on the home page bundle cards (21 November - 31 December) */
.site-festive-badge { margin-left: 6px; white-space: nowrap; vertical-align: middle; }
.pd-pass-featured .site-festive-badge { background: var(--ink); color: var(--on-ink); }   /* readable on the pink POD INTRO card */

/* "Give as a gift" on the pass cards: light pink by default so it stands out, stronger on hover */
.site-pass-actions .site-gift-link { background: var(--blush-soft); padding: 0 var(--space-4); }
.site-pass-actions .site-gift-link:hover { background: var(--blush); }
.pd-pass-featured .site-pass-actions .site-gift-link:hover { background: var(--surface-raised); }   /* the POD INTRO card is already pink */

/* Gift section under the home page pass cards (shown by site.js while gift sales are on) */
.site-gift-band { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-5); margin-top: var(--space-8); padding: var(--space-6); border-radius: var(--radius-lg); background: var(--blush); color: var(--on-blush); }
.site-gift-band-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--night); color: var(--on-night); }
.site-gift-band-text { display: grid; gap: 4px; min-width: 0; }
.site-gift-band-text h3 { margin: 0; font-family: var(--font-display); font-size: clamp(22px, 3vw, 28px); font-weight: 700; letter-spacing: -.01em; }
.site-gift-band-text p { margin: 0; max-width: 62ch; }
@media (max-width: 720px) {
  .site-gift-band { grid-template-columns: auto 1fr; padding: var(--space-5); }
  .site-gift-band > .pd-btn { grid-column: 1 / -1; justify-self: stretch; }
}

/* "How bundles work": ? button (home page, booking pages) and its popup (#bundleHelp) */
.site-help-btn { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin: -4px 0 -4px 2px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; opacity: .75; cursor: pointer; vertical-align: middle; transition: opacity var(--dur-fast), background-color var(--dur-fast); }
.site-help-btn:hover { opacity: 1; background: rgba(27, 20, 32, .08); }
.pd-pass-dark .site-help-btn:hover { background: rgba(255, 248, 250, .14); }
.site-help-btn:focus-visible { opacity: 1; outline: 2px solid var(--focus); outline-offset: 1px; }
.site-help-body { display: grid; gap: var(--space-5); font-size: 15px; line-height: 1.55; }
.site-help-body > div { display: grid; gap: var(--space-5); }
.site-help-body h3 { margin: 0 0 4px; font-family: var(--font-display); font-size: 17px; font-weight: 700; }
.site-help-body p { margin: 0; }
.site-help-step { display: grid; grid-template-columns: 32px 1fr; gap: var(--space-3); align-items: start; }
.site-help-num { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--blush-soft); color: var(--action-text); font-family: var(--font-display); font-weight: 700; }
.site-help-table { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: grid; gap: 6px; }
.site-help-table li { display: flex; justify-content: space-between; gap: var(--space-3); padding: 8px 12px; border-radius: var(--radius-sm); background: var(--surface-sunken); font-size: 14px; }
.site-help-note { display: flex; gap: 6px; align-items: flex-start; margin-top: var(--space-2) !important; font-size: 14px; color: var(--action-text); }
.site-help-note svg { flex: none; margin-top: 2px; }
.site-help-example { padding: var(--space-4); border-radius: var(--radius-md); background: var(--blush-soft); }
.site-help-sub { margin-bottom: -8px !important; }
.site-help-list { margin: 0; padding-left: 18px; display: grid; gap: var(--space-2); font-size: 14px; }
.site-help-foot { font-size: 13px; color: var(--ink-muted); }
.site-help-foot a { color: var(--cobalt); }

/* ---------- Plain page title (no background image), e.g. Privacy Policy ---------- */
.site-pagetitle { background: var(--surface); padding: var(--space-12) var(--space-5) var(--space-4); }
.site-pagetitle-text { margin: 0; color: var(--ink); line-height: 1; }
.site-pagetitle-text span { display: block; font-weight: 300; color: var(--action-text); }
@media (min-width: 900px) { .site-pagetitle { padding: var(--space-16) var(--space-10) var(--space-4); } }

/* ---------- Sections ---------- */
/* Section spacing on desktop: half the design-system default (96px), so neighbouring sections sit
   96px apart instead of 192px. Phones keep the default 48px. */
@media (min-width: 900px) { .pd-section { padding-top: var(--space-12); padding-bottom: var(--space-12); } }
.site-wrap { max-width: var(--container); margin: 0 auto; }
.site-sunken { background: var(--surface-sunken); }
.site-head { display: grid; gap: var(--space-3); margin-bottom: var(--space-8); align-content: start; }
@media (min-width: 900px) { .pd-grid-2 > .site-head { position: sticky; top: calc(var(--header-height) + var(--space-8)); align-self: start; } }
.site-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-4); flex-wrap: wrap; }
.site-head .pd-lead { margin-top: var(--space-2); }
.site-textlink { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap-min); font-size: 15px; font-weight: 600; color: var(--cobalt); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.site-textlink:hover { color: var(--ink); }
.site-textlink svg { flex: none; transition: transform var(--dur) var(--ease-spring); }
.site-textlink:hover svg { transform: translateX(3px); }

/* ---------- Hero ---------- */
.site-hero-login { color: var(--on-night); font-size: 15px; margin: 0; }
.site-hero-login a { color: var(--on-night); font-weight: 600; text-underline-offset: 4px; }
.site-hero-login a:hover { color: var(--blush); }

.site-hero-compact { min-height: 340px; }
.site-hero-compact .site-hero-title { font-size: clamp(44px, 8vw, 96px); }
@media (min-width: 900px) { .site-hero-compact { min-height: 440px; } }

/* ---------- Long text (privacy and terms) ---------- */
.site-prose { margin: 0 auto; }
.site-prose ul { padding-left: var(--space-6); }
.site-prose .pd-toc ol { list-style: none; padding-left: 0; }
.site-prose h2:first-of-type { margin-top: var(--space-10); }
.site-prose-foot { max-width: var(--prose); margin: var(--space-8) auto 0; }

/* ---------- Weekly classes ---------- */
.site-days { display: grid; gap: var(--space-10); }
.site-day { display: grid; gap: var(--space-3); }
.site-day-title { margin: 0; font-family: var(--font-sans); font-size: 12px; line-height: 1.3; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--action-text); }
.site-classes { display: grid; gap: var(--space-3); }
.site-class .pd-class-time b { font-size: 20px; }
.site-class-desc { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
@media (min-width: 900px) { .site-classes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); } }

/* ---------- Coaches (instructors page) ---------- */
.site-coaches { display: grid; gap: var(--space-12); }
.site-coach { display: grid; gap: var(--space-5); align-items: start; }
.site-coach .pd-coach { max-width: 480px; }
.site-coach .pd-coach-name { font-size: 28px; }
.site-coach-text { display: grid; gap: var(--space-4); align-content: start; }
.site-coach-text .pd-profile-bio p { margin: 0; }
.site-center { display: flex; justify-content: center; margin-top: var(--space-12); }
@media (min-width: 900px) {
  .site-coaches { gap: var(--space-16); }
  .site-coach { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--space-10); }
  .site-coach .pd-coach-name { font-size: 36px; }
  .site-coach-text { padding-top: var(--space-6); }
}

/* ---------- Passes ---------- */
.site-pass-desc { margin: 0; font-size: 15px; line-height: 1.5; }
.pd-pass .pd-pass-name { padding-right: 150px; }
.pd-pass:not(:has(.pd-pass-tag)) .pd-pass-name { padding-right: 0; }
.site-pass-actions { display: grid; gap: var(--space-1); margin-top: auto; }
.site-pass-actions .pd-btn-ghost { justify-self: center; }
.pd-pass-dark .pd-btn-ghost { color: var(--on-night); }
.pd-pass-dark .pd-btn-ghost:hover { background: rgba(255,255,255,.1); }
.pd-pass { grid-template-rows: auto; }
@media (min-width: 900px) { .pd-pass-row { gap: var(--space-4); } .pd-pass { display: flex; flex-direction: column; } }

/* ---------- Quote ---------- */
.site-quote .pd-quote figcaption { color: var(--on-blush); }

/* Founder quote over the background video (home page). Dark like the old section, white text.
   With no video (reduced motion, data saver, blocked) it is a plain night panel. */
.site-quote-video { position: relative; overflow: hidden; isolation: isolate; background: var(--night); color: var(--on-night); min-height: 494px; display: flex; align-items: center; }
.site-quote-video > .site-wrap { position: relative; z-index: 2; width: 100%; }
.site-quote-video .pd-quote figcaption { color: var(--on-night); }
.site-quote-video .pd-quote figcaption::before { content: ""; width: 32px; height: 2px; background: var(--blush); }
.site-quote-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; container-type: size; pointer-events: none; }
/* Self-hosted portrait clip (1080x1248) filling the section like background-size: cover */
.site-quote-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; display: block; }
/* Desktop shows a wide, short slice of the portrait clip: frame it higher so the dancers' heads stay in */
/* Desktop: the clip is scaled to the panel's width (1080x1248, so its height is 1.1556 x the width).
   The visible area starts 25% down from the top of the video at any screen width (0.25 x 1.1556 = 0.2889),
   just above the dancers' heads, so little of the wall above them shows. */
@media (min-width: 900px) { .site-quote-media video { object-position: 50% calc(100cqw * -0.2889); } }
.site-quote-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27,20,32,.5), rgba(27,20,32,.64)); }   /* 20% lighter than before */
.site-quote-toggle { position: absolute; z-index: 3; right: var(--space-4); bottom: var(--space-4); width: var(--tap-min); height: var(--tap-min); padding: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(27,20,32,.55); color: var(--on-night); cursor: pointer; display: grid; place-items: center; }
.site-quote-toggle[hidden] { display: none; }
.site-quote-toggle:hover { background: rgba(27,20,32,.8); }
.site-quote-toggle:focus-visible { outline: 2px solid var(--on-night); outline-offset: 2px; }
.site-quote-toggle .site-icon-play, .site-quote-toggle[data-state="paused"] .site-icon-pause { display: none; }
.site-quote-toggle[data-state="paused"] .site-icon-play { display: block; }
@media (min-width: 900px) { .site-quote-video { min-height: 468px; } .site-quote-toggle { right: var(--space-6); bottom: var(--space-6); } }

/* ---------- Location ---------- */
.site-map { position: relative; overflow: hidden; }
.site-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
@media (min-width: 900px) { .site-location .pd-location-media { grid-row: 1 / span 6; grid-column: 2; aspect-ratio: 4 / 3; } }

/* ---------- Forms ---------- */
.site-formcard { background: var(--surface-raised); border-radius: var(--radius-lg); box-shadow: var(--lift-1); padding: var(--space-6) var(--space-5); }
@media (min-width: 768px) { .site-formcard { padding: var(--space-8); } }
.site-formcard h3 { margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.pd-field-errtext[hidden] { display: none !important; }
.site-formmsg { min-height: 1.25rem; margin: 0; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.site-formmsg[data-tone="warn"] { color: var(--warning); }
.site-formmsg[data-tone="ok"] { color: var(--success); }
.site-formnote { margin: 0; font-size: 14px; color: var(--ink-muted); }
textarea.pd-field-input { min-height: 120px; padding-top: var(--space-3); padding-bottom: var(--space-3); resize: vertical; }

/* ---------- Instagram feed (Electric Blaze widget) ---------- */
#eb-instagram-feed-n, #eb-instagram-feed-n * { font-family: var(--font-sans) !important; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--on-night); padding: var(--space-12) var(--space-5) var(--space-10); }
.site-footer-grid { max-width: var(--container); margin: 0 auto; display: grid; gap: var(--space-8); }
.site-footer .pd-logo { color: var(--on-night); }
.site-footer-about { display: grid; gap: var(--space-4); justify-items: start; }
.site-footer-about p { margin: 0; font-size: 15px; line-height: 1.6; color: rgba(251,241,245,.82); max-width: var(--prose); }
.site-footer .pd-eyebrow { color: var(--blush); margin-bottom: var(--space-3); }
.site-footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-1); }
.site-footer-list a { color: var(--on-night); text-decoration: none; font-size: 15px; display: inline-flex; align-items: center; min-height: 36px; }
.site-footer-list a:hover { color: var(--blush); text-decoration: underline; text-underline-offset: 4px; }
.site-footer-copy { margin: 0; padding-top: var(--space-6); border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; color: var(--blush); }
@media (min-width: 900px) {
  .site-footer { padding: var(--space-16) var(--space-10) var(--space-10); }
  .site-footer-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--space-10); }
  .site-footer-copy { grid-column: 1 / -1; }
}
