/* ========================================
   WODFEST EXPERIENCE — hub + seminar pages
   Depends on the tokens defined in style.css
======================================== */

.xp-page {
  padding-top: 96px;
}

/* --- Shared page hero --- */
.xp-hero {
  padding: 56px 0 40px;
  background: var(--black);
}
.xp-kicker {
  display: block;
  margin-bottom: 14px;
  color: var(--blue-light);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.xp-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 8vw, 5rem);
  letter-spacing: 0.015em;
  line-height: 1;
  margin-bottom: 18px;
}
.xp-hero-lead {
  max-width: 62ch;
  color: var(--gray-light);
  font-size: 1.02rem;
}
.xp-hero-meta {
  margin-top: 20px;
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
}

/* --- Hub: seminar cards --- */
.xp-section {
  padding: 64px 0;
}
/* The fixed navbar would otherwise cover the heading the index jumps to. */
.xp-section,
.xp-perks { scroll-margin-top: 88px; }
/* Title and one-line context share a row, so the heading leads and the
   context reads as a caption instead of a second paragraph. */
.xp-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 40px;
  margin-bottom: 32px;
}
.xp-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  letter-spacing: 0.015em;
  line-height: 1;
}
.xp-section-sub {
  max-width: 46ch;
  color: var(--gray-light);
  font-size: 0.92rem;
}

/* Fixed column counts instead of auto-fit: auto-fit left a lone card on its
   own row (3 + 1) at common desktop widths. */
.xp-seminar-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.xp-seminar-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: var(--surface-card-border);
  border-radius: var(--radius-lg);
  background: var(--surface-card-bg);
  transition: border-color 0.25s ease;
}
.xp-seminar-card:hover {
  border-color: rgba(33, 150, 243, 0.28);
}
.xp-seminar-media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: linear-gradient(150deg, var(--dark3) 0%, var(--dark) 100%);
}
/* Absolute so the photo fills the frame without its intrinsic height
   overriding the aspect ratio (cards with and without photo must line up). */
.xp-seminar-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Portraits keep the face in frame when a breakpoint crops them wider. */
  object-position: center 22%;
}
/* The organisation's photos come from different cameras and phones; black and
   white is what makes them read as one set. */
.xp-seminar-media img,
.xp-show-media img,
.xp-detail-media img {
  filter: grayscale(1) contrast(1.05);
}
/* Placeholder shown until the official coach photography arrives */
.xp-media-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: rgba(255, 255, 255, 0.16);
  font-size: 3rem;
}
.xp-seminar-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px 18px 18px;
}
.xp-seminar-card h3 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  letter-spacing: 0.02em;
  line-height: 1;
}
.xp-seminar-title {
  margin: 6px 0 12px;
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
}
.xp-seminar-tagline {
  margin-bottom: 18px;
  color: var(--gray-light);
  font-size: 0.85rem;
  line-height: 1.55;
}
.xp-seminar-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  margin-bottom: 18px;
}
.xp-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--gray-light);
  font-size: 0.75rem;
  white-space: nowrap;
}
.xp-chip i { color: var(--blue-light); font-size: 0.9rem; }
.xp-chip-price {
  border-color: rgba(33, 150, 243, 0.32);
  background: rgba(33, 150, 243, 0.1);
  color: var(--white);
  font-weight: 700;
}
.xp-chip-free {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.1);
  color: var(--green);
  font-weight: 700;
}
.xp-chip-seats-low { border-color: rgba(201, 168, 76, 0.4); color: var(--gold); }
.xp-chip-sold-out { border-color: rgba(239, 68, 68, 0.4); color: var(--red); }

/* The card's only visible affordance. Its ::after is stretched over the whole
   card so the tap target stays as large as when the card itself was a link. */
.xp-seminar-cta {
  display: block;
  width: 100%;
  padding: 13px 20px;
  text-align: center;
}
.xp-seminar-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
}
/* A transform here would turn the button into the containing block for that
   ::after and collapse the hit area back down to the button itself. */
.xp-seminar-cta:hover {
  transform: none;
  box-shadow: none;
}

/* --- Detail page --- */
/* Hero: the coach leads, as on the hub card. Copy on the left, a portrait
   frame on the right so vertical photos keep the face in shot. */
.xp-detail-hero {
  padding: 56px 0 24px;
  background: var(--black);
}
.xp-detail-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 56px;
  align-items: center;
}
.xp-detail-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  letter-spacing: 0.015em;
  line-height: 0.95;
}
.xp-detail-format {
  margin: 12px 0 16px;
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 600;
}
.xp-detail-jump:not([hidden]) { display: inline-flex; margin-top: 20px; }
.xp-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--gray-light);
  font-size: 0.82rem;
  font-weight: 600;
  transition: color var(--transition);
}
.xp-back:hover { color: var(--white); }

.xp-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 48px;
  align-items: start;
}
.xp-detail-media {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  width: 100%;
  max-height: 480px;
  justify-self: end;
  border: var(--surface-card-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--dark3) 0%, var(--dark) 100%);
}
.xp-detail-media img,
.xp-detail-media iframe {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  object-position: center 22%;
}

.xp-block { margin-bottom: 48px; }
.xp-block:last-child { margin-bottom: 0; }
.xp-block h2 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: 16px;
}
.xp-block p { max-width: 62ch; color: var(--gray-light); line-height: 1.65; }
/* Plain rows split by hairlines: the content is the point, not a check icon. */
.xp-list li {
  max-width: 62ch;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--gray-light);
  font-size: 0.92rem;
  line-height: 1.6;
}
.xp-list li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }

/* Coach bio: text only, the portrait already leads the page. */
.xp-coach h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  margin-bottom: 2px;
}
.xp-coach-role {
  margin-bottom: 10px;
  color: var(--blue-light);
  font-size: 0.8rem;
  font-weight: 600;
}
.xp-coach-bio { font-size: 0.92rem; }
.xp-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.xp-social {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--gray-light);
  font-size: 0.78rem;
  transition: border-color var(--transition), color var(--transition);
}
.xp-social:hover { border-color: rgba(33, 150, 243, 0.4); color: var(--white); }

/* --- Booking panel --- */
.xp-booking {
  position: sticky;
  top: 96px;
  padding: 28px;
  /* Flat surface on purpose: the blue belongs to the CTA button below, and two
     accents in one panel cancel each other out. */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  background: var(--surface-card-bg);
}
.xp-booking-price {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  letter-spacing: 0.02em;
}
.xp-booking-price-note {
  margin-bottom: 20px;
  color: var(--gray);
  font-size: 0.8rem;
}
.xp-booking-facts {
  display: grid;
  gap: 10px;
  padding: 18px 0;
  margin-bottom: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.xp-fact {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.86rem;
}
.xp-fact dt { color: var(--gray); }
.xp-fact dd { color: var(--white); font-weight: 600; text-align: right; }
.xp-seats-low { color: var(--gold); }
.xp-seats-none { color: var(--red); }

.xp-booking .form-group { margin-bottom: 14px; }
/* Scoped to .form-group on purpose: an unscoped `.xp-booking label` also hit
   the consent row and outranked .checkbox-label, which cost it its flex
   layout and rendered it bold. */
.xp-booking .form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.xp-booking .required { color: var(--blue-light); }
.xp-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
/* The consent row itself is .checkbox-label, defined in css/forms.css. Only
   its spacing inside this narrow panel belongs here. */
.xp-booking .checkbox-label { margin: 16px 0 18px; padding-left: 0; padding-right: 0; }
.xp-booking .btn { width: 100%; justify-content: center; text-align: center; }
.xp-booking-note {
  margin-top: 14px;
  color: var(--gray);
  font-size: 0.74rem;
  line-height: 1.5;
  text-align: center;
}

.xp-feedback {
  display: none;
  padding: 12px 14px;
  margin-top: 14px;
  border-radius: var(--radius);
  font-size: 0.82rem;
  line-height: 1.5;
}
.xp-feedback.is-visible { display: block; }
.xp-feedback-error {
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
}
.xp-feedback-info {
  border: 1px solid rgba(33, 150, 243, 0.3);
  background: rgba(33, 150, 243, 0.08);
  color: var(--gray-light);
}

/* Coming-soon state replaces the form entirely */
.xp-booking-price-note + .xp-coming-soon {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.xp-coming-soon h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin-bottom: 8px;
}
.xp-coming-soon p { color: var(--gray-light); font-size: 0.88rem; }

/* Booking options: one day or the weekend pack */
.xp-options {
  display: grid;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}
.xp-options legend {
  margin-bottom: 8px;
  color: var(--white);
  font-size: 0.86rem;
  font-weight: 600;
}
.xp-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.xp-option input {
  grid-row: span 2;
  accent-color: var(--blue-light);
  width: 18px;
  height: 18px;
}
.xp-option-name { color: var(--white); font-size: 0.95rem; font-weight: 700; }
.xp-option-details { color: var(--gray-light); font-size: 0.82rem; }
.xp-option:hover { border-color: rgba(255, 255, 255, 0.22); }
.xp-option:has(input:checked) {
  border-color: var(--blue-light);
  background: rgba(33, 150, 243, 0.08);
}
.xp-option:has(input:focus-visible) { outline: 2px solid var(--blue-light); outline-offset: 2px; }
.xp-option:has(input:disabled) { opacity: 0.45; cursor: not-allowed; }

.xp-field-hint {
  margin: -2px 0 8px;
  color: var(--gray);
  font-size: 0.8rem;
  line-height: 1.45;
}
#bookingInjuries { resize: vertical; min-height: 84px; }

.xp-confirmation-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.xp-confirmation-header i { font-size: 1.7rem; color: var(--blue-light); }
.xp-booking-confirmation h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.02em;
  line-height: 1;
}
.xp-booking-confirmation h3:focus { outline: none; }
.xp-confirmation-what {
  margin-bottom: 18px;
  color: var(--white);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.4;
}
.xp-booking-confirmation .xp-booking-facts { margin-bottom: 16px; }
.xp-booking-reference {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.06em;
}
.xp-confirmation-note { color: var(--gray); font-size: 0.82rem; line-height: 1.55; }
.xp-booking-confirmation a { color: var(--blue-light); text-underline-offset: 3px; }

/* --- How to book: online only, limited seats --- */
.xp-booking-options {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: 16px 48px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.xp-booking-options h3 {
  grid-row: span 2;
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.02em;
  line-height: 1.05;
}
.xp-booking-option-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.xp-booking-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 14px;
  padding: 20px 22px;
  border: var(--surface-card-border);
  border-radius: var(--radius-lg);
  background: var(--surface-card-bg);
}
.xp-booking-option i {
  grid-row: span 2;
  color: var(--blue-light);
  font-size: 1.5rem;
  line-height: 1.2;
}
.xp-booking-option h4 {
  margin-bottom: 4px;
  color: var(--white);
  font-size: 0.98rem;
  font-weight: 700;
}
.xp-booking-option p {
  color: var(--gray-light);
  font-size: 0.86rem;
  line-height: 1.55;
}

/* --- Stage acts: photo-led, the name sits on the image --- */
.xp-show-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.xp-show-card {
  position: relative;
  overflow: hidden;
  border: var(--surface-card-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--dark3) 0%, var(--dark) 100%);
}
.xp-show-media { overflow: hidden; aspect-ratio: 16 / 9; }
.xp-show-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}
/* Duo act: one portrait per performer, side by side, with a hairline seam. */
.xp-show-media-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: minmax(0, 1fr);
  gap: 2px;
  background: var(--black);
}
.xp-show-media-pair img { min-width: 0; min-height: 0; }
/* A group shot: anchor the top so no head is cropped in the 16:9 frame. */
.xp-show-media img.xp-show-media-top { object-position: center top; }
.xp-show-body {
  position: absolute;
  inset: auto 0 0;
  padding: 48px 24px 22px;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0) 100%);
}
.xp-show-body h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.02em;
  line-height: 1;
}
.xp-show-body p {
  margin-top: 4px;
  color: var(--gray-light);
  font-size: 0.86rem;
}

/* --- Perks list reused from the homepage --- */
.xp-perks { padding: 64px 0; background: var(--dark); }
/* The homepage centres the list under a centred header; here the header is
   left-aligned, so the list spans the container to share its left edge. */
.xp-perks .exp-grid { max-width: none; }

@media (max-width: 1100px) {
  .xp-seminar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xp-seminar-media { aspect-ratio: 4 / 3; }
}

@media (max-width: 900px) {
  .xp-detail-grid { grid-template-columns: 1fr; gap: 40px; }
  .xp-detail-hero-grid { grid-template-columns: 1fr; gap: 24px; }
  /* Photo first on narrow screens, then who and what. */
  .xp-detail-media { order: -1; aspect-ratio: 4 / 3; max-height: none; }
  .xp-detail-jump:not([hidden]) { display: inline-flex; margin-top: 20px; }
  .xp-booking-options { grid-template-columns: 1fr; }
  .xp-booking-options h3 { grid-row: auto; }
  .xp-booking { position: static; }
}

@media (max-width: 600px) {
  .xp-page { padding-top: 72px; }
  .xp-hero { padding: 40px 0 28px; }
  .xp-section { padding: 44px 0; }
  .xp-detail-hero { padding: 24px 0 8px; }
  .xp-detail-jump:not([hidden]) { display: flex; justify-content: center; width: 100%; }
  .xp-form-row { grid-template-columns: 1fr; }
  .xp-section-head { margin-bottom: 24px; }
  .xp-seminar-grid,
  .xp-show-grid,
  .xp-booking-option-list { grid-template-columns: 1fr; }
  .xp-seminar-media { aspect-ratio: 16 / 10; }
  .xp-show-media { aspect-ratio: 4 / 3; }
  .xp-booking-options { margin-top: 40px; }
  .xp-booking { padding: 22px; }
}

/* Stand-alone pack: the purchase is the main task, including on a phone. */
.media-pack-jump { margin-top: 20px; }
.media-pack-page #mediaPackPanel { scroll-margin-top: 96px; }
.media-pack-page #mediaPackPriceStatus {
  color: var(--gray-light);
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.media-pack-page #mediaPackPriceRetry { margin-bottom: 16px; }
.media-pack-page #mediaPackPriceRetry[hidden] { display: none; }
@media (max-width: 900px) {
  .media-pack-page .xp-booking { order: -1; }
}
