/* ─────────────────────────────────────────────────────────────────────────
   What's On — weekly favourites and upcoming events
   Rebuilt to Ashton's brief of 2026-09-16 (#371), lightened to her brief of
   2026-09-24 ("much more photography-led, lively and lighter"). Colour rhythm
   down the page: bright photo hero (a light scrim only behind the title) →
   cream weekly grid → soft-blue events grid → pale blue venue band and footer
   as one field, the monogram running through both. No navy below the hero.
   The filter bar, the dark recipes band and the newsletter band came off
   with the rebuild, and the page's own script with them: nothing on it is
   filtered or submitted any more.
   ───────────────────────────────────────────────────────────────────────── */

/* ── Hero: the shared .page-hero--photo, brighter ───────────────────────
   "Much brighter with far less of the dark overlay. The text should also be
   much smaller and lighter." The shared scrim covers the whole frame; here it
   only darkens the bottom-left corner the title sits in, which is what keeps
   cream type legible over a sunlit deck. */
.wo-hero {
  min-height: clamp(24rem, 62vh, 38rem);
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}
.wo-hero > .wrap { width: 100%; }
/* The dancers' heads sit about a quarter of the way down the frame, and a
   wide screen crops the 16:9 photo to a strip — centred, that strip was all
   torsos (Thomas, 2026-09-24). Anchoring near the top keeps the heads in at
   every width; a narrow screen crops the sides instead, so it costs nothing. */
.wo-hero .page-hero__bg { object-position: 50% 12%; }
.wo-hero.page-hero--photo::before {
  background:
    radial-gradient(70% 90% at 0% 100%, color-mix(in oklch, var(--c-navy) 62%, transparent), transparent 70%),
    linear-gradient(to top, color-mix(in oklch, var(--c-navy) 30%, transparent), transparent 45%);
}
.wo-hero .breadcrumbs { color: var(--c-cream); text-shadow: 0 1px 8px rgb(0 0 0 / 0.5); }
.wo-hero h1 {
  font-size: var(--t-h1);
  font-weight: 300;
  max-width: none;
  text-shadow: 0 2px 18px rgb(0 0 0 / 0.35);
}
@media (max-width: 720px) {
  .wo-hero.page-hero--photo::before {
    background: linear-gradient(to top, color-mix(in oklch, var(--c-navy) 60%, transparent), transparent 60%);
  }
}

/* ── Section colour-blocking ───────────────────────────────────────────── */
.wo-section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.wo-section--sky { background: var(--bg-sky); }

/* ── Section heading ───────────────────────────────────────────────────── */
.wo-head {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: var(--s-3);
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.wo-head .eyebrow { color: var(--c-clay-text); }
.wo-head h2 {
  font-family: var(--font-display);
  font-size: var(--t-h2);
  line-height: var(--leading-snug);
  font-weight: 350;
  font-variation-settings: 'opsz' 72, 'SOFT' 40;
  max-width: 24ch;
}
.wo-head h2 em { font-style: italic; color: var(--c-azul); }
/* Weekly band since 2026-09-24: the eyebrow alone, left, as on her mock-up.
   It is the band's h2, so it drops the h2 type. */
.wo-head--bare { text-align: left; justify-items: start; margin-bottom: clamp(1.5rem, 3vw, 2rem); }
.wo-head--bare h2.eyebrow {
  font-family: var(--font-body);
  font-size: var(--t-eyebrow);
  font-weight: 500;
  line-height: 1.4;
  max-width: none;
}
.wo-rule {
  width: 40px;
  height: 2px;
  background: var(--c-clay);
  margin-top: var(--s-2);
}

/* ── Card grid ─────────────────────────────────────────────────────────── */
.wo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.4vw, 1.75rem);
}
@media (max-width: 900px) {
  .wo-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .wo-grid { grid-template-columns: 1fr; }
}

/* Events: four columns so a featured card can take two. Dense so the smaller
   cards back-fill beside it. Picking a month (whats-on.js adds .is-month)
   brings the featured cards first and makes the first one the 2x2 lead —
   Beach Club and Spanish Night as "the two main visual features" of October,
   the Corporate Showcase dates as "smaller supporting cards". */
.wo-grid--events {
  grid-template-columns: repeat(4, 1fr);
  grid-auto-flow: row dense;
}
.wo-card--feature { grid-column: span 2; }
.wo-card--feature .wo-card__media { aspect-ratio: 16 / 9; }
.wo-grid--events.is-month .wo-card--feature { order: -1; }
@media (min-width: 901px) {
  .wo-grid--events .wo-card.is-lead { grid-row: span 2; }
  .wo-card.is-lead .wo-card__media { aspect-ratio: auto; flex: 1; min-height: 16rem; }
  .wo-card.is-lead .wo-card__body,
  .wo-card.is-lead .wo-card__desc { flex: none; }
}
@media (max-width: 900px) {
  .wo-grid--events { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .wo-grid--events { grid-template-columns: 1fr; }
  .wo-card--feature { grid-column: auto; }
  .wo-card--feature .wo-card__media { aspect-ratio: 4 / 3; }
}

/* ── Card ──────────────────────────────────────────────────────────────── */
.wo-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-lift);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  transition: transform var(--d-base) var(--ease-out-expo),
              box-shadow var(--d-base) var(--ease-out-expo),
              border-color var(--d-base) var(--ease-out-expo);
}
.wo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
  border-color: color-mix(in oklch, var(--c-azul) 40%, transparent);
}

/* ── Card media: a photograph over a gradient tile; the tile alone when a
   row has no photo yet ─────────────────────────────────────────────────── */
.wo-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
/* The card clips to its own radius, so the photo takes none (square-cornered
   photography, per the brand system). Absolute so a portrait frame crops to
   the 4:3 box instead of stretching it. */
.wo-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Gradient families — all built from Azul tokens (azul / clay / moss / ink) */
.wo-tile--azul  { background: linear-gradient(155deg, var(--c-azul-glow) 0%, var(--c-azul-deep) 100%); }
.wo-tile--night { background: linear-gradient(155deg, var(--c-azul) 0%, var(--bg-night) 100%); }
.wo-tile--clay  { background: linear-gradient(155deg, var(--c-clay) 0%, oklch(40% 0.12 35) 100%); }
.wo-tile--ember { background: linear-gradient(155deg, oklch(48% 0.13 40) 0%, oklch(26% 0.08 35) 100%); }
.wo-tile--moss  { background: linear-gradient(155deg, var(--c-moss) 0%, oklch(28% 0.045 150) 100%); }

/* ── Date chip: weekday / day / month, top-left as on her mock-up ──────── */
.wo-date {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 64px;
  padding: var(--s-2) var(--s-3);
  text-align: center;
  line-height: 1.1;
  background: var(--c-azul-deep);
  color: var(--c-bone);
}
.wo-date__dow,
.wo-date__mo {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-clay-soft);
}
.wo-date__day {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 450;
  font-variation-settings: 'opsz' 36, 'SOFT' 20;
}

/* ── Card body ─────────────────────────────────────────────────────────── */
.wo-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(1.5rem, 2.4vw, 1.9rem);
  border-top: 3px solid color-mix(in oklch, var(--c-azul) 18%, transparent);
}
.wo-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-clay-text);
  margin-bottom: var(--s-3);
}
.wo-card__title {
  font-family: var(--font-display);
  font-size: var(--t-h4);
  line-height: 1.18;
  font-weight: 420;
  font-variation-settings: 'opsz' 36, 'SOFT' 18;
  margin-bottom: var(--s-2);
}
.wo-card__title em { font-style: italic; color: var(--c-azul); }
/* The time line under the title: "12:30pm – 3:30pm", "From 6:30pm". */
.wo-card__when {
  font-size: 0.95rem;
  color: var(--c-azul);
  margin-bottom: var(--s-3);
}
.wo-card__desc {
  color: var(--fg-soft);
  font-size: 0.95rem;
  line-height: var(--leading-loose);
  flex: 1;
}
.wo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-5);
}
/* Primary action buttons: cream text on brand blue for legibility. */
.wo-actions .btn:not(.btn--ghost) {
  --btn-fg: var(--c-bone);
}
.wo-actions .btn:not(.btn--ghost):hover {
  --btn-bg: var(--c-azul-deep);
  --btn-line: var(--c-azul-deep);
}
/* A second button with no link ("Menu coming soon"): the outline stays so the
   card keeps its two-button shape, but it reads as a label, not a control. */
.wo-actions .wo-soon,
.wo-actions .wo-soon:hover {
  --btn-bg: transparent;
  --btn-fg: var(--fg-soft);
  --btn-line: color-mix(in oklch, currentColor 30%, transparent);
  border-style: dashed;
  cursor: default;
  transform: none;
}
.wo-actions .btn:focus-visible {
  outline: 2px solid var(--c-azul-glow);
  outline-offset: 3px;
}

/* The offer as a list ("make the offer really clear" — Ashton on Beach Club,
   2026-09-24). A row's Highlights column, one item per line. */
.wo-highlights {
  display: grid;
  gap: 0.35rem;
  margin: 0 0 var(--s-4);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--c-ink);
}
.wo-highlights li { display: flex; gap: 0.6rem; align-items: baseline; }
.wo-highlights li::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  transform: rotate(45deg) translateY(-2px);
  background: var(--c-clay);
}

/* ── Venue band: soft sky blue with the monogram (was the navy .visit-cta) ─ */
.wo-venue {
  position: relative;
  overflow: hidden;
  /* The footer's pale blue, on purpose (Thomas, 2026-09-24): band and footer
     read as one field with the monogram running through both, the same
     device as the navy .visit-cta + footer on other pages. */
  background: var(--wo-pale);
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.wo-venue__monogram {
  position: absolute;
  inset: 0;
  color: var(--c-navy-2);
  opacity: 0.07;
  pointer-events: none;
}
/* Bottom-anchored and a whole number of 180px tiles tall, so the pattern is
   in phase with the footer's at the seam — see .visit-cta__monogram svg in
   components.css for the full reasoning. */
.wo-venue__monogram svg { position: absolute; inset: auto 0 0 0; width: 100%; height: 1800px; display: block; }
.wo-venue__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.wo-venue h2 {
  font-family: var(--font-display);
  font-size: var(--t-h2);
  line-height: var(--leading-snug);
  font-weight: 350;
  font-variation-settings: 'opsz' 72, 'SOFT' 40;
  max-width: 22ch;
}
.wo-venue__side {
  display: grid;
  gap: var(--s-4);
  justify-items: start;
  padding-left: clamp(1.5rem, 3vw, 2.5rem);
  border-left: 1px solid color-mix(in oklch, var(--c-navy) 25%, transparent);
}
.wo-venue__side p { color: var(--fg-soft); max-width: 38ch; }
.wo-venue .btn { --btn-fg: var(--c-cream); }
.wo-venue .btn:hover { --btn-bg: var(--c-azul-deep); --btn-line: var(--c-azul-deep); }
@media (max-width: 800px) {
  .wo-venue__inner { grid-template-columns: 1fr; }
  .wo-venue__side { padding-left: 0; border-left: 0; }
}

/* ── Footer, this page only: pale blue and compact ──────────────────────
   Ashton, 2026-09-24: the footer "feels very dark and heavy … lighter and
   more compact". Thomas scoped it to /whats-on; every other page keeps the
   navy close (#363). data-footer="short" on <body> gives the compact layout.
   .footer is in the dark-section list in tokens.css, which flips the accents
   to cream, so they are flipped back here or links go cream-on-pale. */
/* Sky blue sampled off Ashton's 24 Sep mock-up (her venue band, #DBEFFD). She
   read the earlier soft-blue/warm-white mix as "light grey" (25 Sep). Every
   text colour on it clears AA: navy 11.5:1, clay 5.0:1, grey-deep 6.2:1. */
:root { --wo-pale: #DBEFFD; }
body[data-page="whats-on"] .footer {
  --c-saffron: var(--c-navy-2);
  --c-on-saffron: var(--c-cream);
  --c-azul: var(--c-navy-2);
  --focus-ring: var(--c-navy-2);
  --c-clay-text: #A34A28;
  background: var(--wo-pale);
  color: var(--fg);
}
/* The monogram matches the venue band's so the seam vanishes. */
body[data-page="whats-on"] .footer-monogram { color: var(--c-navy-2); opacity: 0.07; }
body[data-page="whats-on"] .footer h2 { color: var(--c-mute); }
body[data-page="whats-on"] .footer-hours li > span { opacity: 0.75; }
body[data-page="whats-on"] .footer-bottom {
  color: var(--c-mute);
  border-top-color: color-mix(in oklch, var(--c-navy) 12%, transparent);
}
body[data-page="whats-on"] .footer-bottom a:hover { color: var(--fg); }

/* ── Month filter on the events band ─────────────────────────────────────── */
.wo-months {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin: 0 0 var(--s-5);
}
.wo-month {
  font: 500 0.8rem/1 var(--font-body);
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.6rem 1rem;
  border: 1px solid color-mix(in oklch, var(--c-azul) 35%, transparent);
  border-radius: 999px;
  background: transparent; color: var(--c-azul);
  cursor: pointer;
}
.wo-month:hover { border-color: var(--c-azul); }
.wo-month.is-active { background: var(--c-azul); color: var(--c-cream); border-color: var(--c-azul); }
.wo-month:focus-visible { outline: 2px solid var(--c-azul); outline-offset: 2px; }
.wo-card[hidden] { display: none; }
