/* =========================================================
   Pamela Darlington School of Dance — Homepage
   Stage-light palette from the crest: rose, coral, butter, plum.
   EB Garamond (classical display) + Cabin (UI).
   Ported verbatim from the supplied static homepage; the only
   changes are theme-relative font paths, the hero photo moving
   to an inline style (ACF-editable), and focus-only skip-link
   styles appended at the end.
   ========================================================= */

/* ---------- Fonts: latin subset, self-hosted ---------- */
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/eb-garamond-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/eb-garamond-italic-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cabin';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/cabin-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cabin';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/cabin-italic-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  /* Palette pulled from the crest and stage-light photos */
  --cream:        #FBF3E7;   /* primary background — warm butter */
  --cream-2:      #F5E6D0;   /* secondary section */
  --blush:        #F7BAD5;   /* soft pink */
  --blush-2:      #EE93B8;   /* mid pink */
  --pink:         #EF5B99;   /* brand hot pink — from the crest */
  --pink-soft:    #F9C6DE;   /* pale pink */
  --pink-deep:    #C93B77;   /* deep pink */
  --coral:        #E85A93;   /* CTA pink */
  --coral-deep:   #C93B77;
  --plum:         #2E1A2C;   /* deep theatre plum — primary text */
  --plum-2:       #4A2D45;
  --berry:        #A82A5E;   /* deep berry-pink accent */
  --gold-warm:    #D4A256;
  --gold-deep:    #A87831;
  --teal:         #2F6E6B;   /* secondary accent for variety */

  --font-display: 'EB Garamond', Garamond, 'Iowan Old Style', Georgia, serif;
  --font-ui:      'Cabin', 'Avenir Next', 'Trebuchet MS', sans-serif;

  /* Spacing */
  --space-2xs: 4px;
  --space-xs:  8px;
  --space-sm:  12px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 128px;

  /* Corners: tickets, not pills */
  --r-tick: 3px;    /* buttons, chips, tabs */
  --r-card: 6px;    /* cards, panels */

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 200ms;
  --dur-med:  400ms;
  --dur-slow: 800ms;
}

/* ---------- Reset & base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
a { color: inherit; text-decoration: none; }
html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--plum);
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, blockquote {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0;
}

:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}

.container {
  width: 88%;
  max-width: 1360px;
  margin: 0 auto;
}

/* Tracked caps label — the one recurring device, used sparingly */
.kicker {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* =========================================================
   HERO + integrated header (full-width, over photo)
   ========================================================= */
.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  background: var(--plum);
  isolation: isolate;
}
.hero-photo {
  position: absolute; inset: 0;
  /* background-image is set inline from WordPress (ACF-editable) */
  background-size: cover;
  background-position: center 32%;
}
/* Stage-light wash: two coloured lamps plus a legibility scrim.
   The 100deg layer darkens the left column where the headline sits. */
.hero-photo::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(28,14,26,0.78) 0%, rgba(28,14,26,0.52) 38%, rgba(28,14,26,0.12) 68%, transparent 85%),
    radial-gradient(ellipse at 22% 78%, rgba(239,91,153,0.44) 0%, transparent 55%),
    radial-gradient(ellipse at 88% 22%, rgba(215,116,100,0.30) 0%, transparent 55%),
    linear-gradient(180deg, rgba(28,14,26,0.88) 0%, rgba(28,14,26,0.6) 12%, rgba(46,26,44,0.4) 28%, rgba(46,26,44,0.44) 55%, rgba(46,26,44,0.90) 100%);
}

.site-header {
  position: relative;
  z-index: 5;
  padding: 28px 0;
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-xl);
  width: 92%;
  max-width: 1480px;
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  color: var(--cream);
  text-shadow: 0 1px 16px rgba(20,10,18,0.8);
}
.logo .badge {
  width: 92px; height: 92px;
  border-radius: 50%;
  background: var(--cream);
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px -10px rgba(0,0,0,0.5);
  border: 2px solid var(--pink);
}
.logo .badge img { width: 84%; height: 84%; object-fit: contain; }
.logo .txt { display: flex; flex-direction: column; gap: 2px; }
.logo .mark {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 27px;
  line-height: 1;
}
.logo .sub {
  font-family: var(--font-ui);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--blush);
  margin-top: 5px;
}

.header-center {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.85;
}
.header-center::before, .header-center::after {
  content: "";
  width: 24px; height: 1px;
  background: var(--blush);
  opacity: 0.7;
}

.nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 30px;
}
.nav a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  text-shadow: 0 1px 16px rgba(20,10,18,0.8);
  padding: 6px 0;
  position: relative;
  transition: color var(--dur-med) var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--blush);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--dur-med) var(--ease);
}
.nav a:hover { color: var(--blush); }
.nav a:hover::after { transform: scaleX(1); }
.nav .enrol {
  background: var(--coral);
  color: var(--cream);
  text-shadow: none;
  padding: 12px 22px;
  border-radius: var(--r-tick);
  transition: background var(--dur-med) var(--ease), color var(--dur-med) var(--ease);
}
.nav .enrol::after { display: none; }
.nav .enrol:hover {
  background: var(--cream);
  color: var(--coral-deep);
}

/* Mobile menu toggle — hidden above 720px */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.nav-toggle .bar {
  width: 26px;
  height: 2px;
  background: var(--cream);
  transition: transform var(--dur-med) var(--ease);
}
body.nav-open .nav-toggle .bar:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
body.nav-open .nav-toggle .bar:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

/* Hero content */
.hero-content {
  position: relative;
  z-index: 4;
  width: 92%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 80px 0 120px;
  color: var(--cream);
}
.hero-eyebrow {
  display: inline-block;
  color: var(--pink-soft);
  margin-bottom: var(--space-xl);
}
.hero h1 {
  font-size: clamp(48px, 8vw, 116px);
  line-height: 1.02;
  max-width: 16ch;
  color: var(--cream);
}
.hero h1 .accent { color: var(--coral); }
.hero-sub {
  margin-top: var(--space-lg);
  font-size: clamp(19px, 1.6vw, 23px);
  color: var(--cream);
  opacity: 0.92;
  max-width: 42ch;
  line-height: 1.5;
}
.hero-actions {
  margin-top: var(--space-2xl);
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 15px 28px;
  border-radius: var(--r-tick);
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background var(--dur-med) var(--ease), color var(--dur-med) var(--ease), border-color var(--dur-med) var(--ease);
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--coral);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--cream);
  color: var(--coral-deep);
}
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(251,243,231,0.5);
}
.btn-ghost:hover {
  background: var(--cream);
  color: var(--plum);
  border-color: var(--cream);
}
.btn svg { width: 14px; height: 14px; }

/* Hero footer ribbon */
.hero-ribbon {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  z-index: 4;
  background: rgba(38,20,36,0.88);
  border-top: 1px solid rgba(247,186,213,0.25);
  padding: 18px 0;
  color: var(--cream);
}
.hero-ribbon-inner {
  width: 92%;
  max-width: 1480px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}
.hero-ribbon .item {
  font-size: 15.5px;
  line-height: 1.4;
}
.hero-ribbon .item strong {
  font-weight: 700;
  color: var(--pink-soft);
}

/* =========================================================
   INTRO — warm cream, generous
   ========================================================= */
.intro {
  padding: var(--space-5xl) 0 var(--space-4xl);
}
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-4xl);
  align-items: start;
}
.intro-label {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.intro-label .kicker { color: var(--berry); }
/* Free-standing quote, set like a printed pull-quote */
.intro-label .quote {
  margin-top: var(--space-xl);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 27px;
  line-height: 1.45;
  color: var(--plum);
}
/* Hang the opening quote mark into the margin, print-style */
.intro-label .quote p {
  margin: 0;
  text-indent: -0.45ch;
  hanging-punctuation: first;
}
.intro-label .quote .who {
  margin-top: 20px;
}
.intro-label .quote .who {
  display: block;
  margin-top: var(--space-md);
  font-family: var(--font-ui);
  font-style: normal;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--berry);
}

.intro h2 {
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1.08;
  margin-bottom: var(--space-xl);
  color: var(--plum);
  max-width: 18ch;
}
.intro p {
  line-height: 1.65;
  color: var(--plum-2);
  max-width: 58ch;
  margin-bottom: var(--space-md);
}

/* Credentials — a ruled band, like the credits line of a printed programme */
.creds {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(46,26,44,0.3);
  border-bottom: 1px solid rgba(46,26,44,0.3);
}
.cred {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
  padding: 34px 20px 30px;
  border-right: 1px solid rgba(46,26,44,0.12);
}
.cred:last-child { border-right: 0; }
.cred .cred-name {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
  color: var(--berry);
}
.cred .cred-sub {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--plum-2);
}

/* =========================================================
   ARCHIVE — photo triptych on brand pink
   ========================================================= */
.archive {
  background: var(--pink);
  padding: var(--space-5xl) 0;
}
.archive-head {
  text-align: center;
  margin-bottom: var(--space-3xl);
}
.archive-head .kicker {
  color: var(--pink-soft);
  display: block;
  margin-bottom: var(--space-md);
}
.archive-head h3 {
  font-size: clamp(36px, 5vw, 66px);
  line-height: 1.06;
  color: var(--cream);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-lg);
  align-items: start;
}
.archive-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--plum);
  box-shadow: 0 24px 48px -24px rgba(46,26,44,0.4);
  transition: transform var(--dur-slow) var(--ease);
}
.archive-card:hover { transform: translateY(-6px); }
.archive-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}
.archive-card:hover img { transform: scale(1.05); }
.archive-card:nth-child(1) { grid-column: 1 / span 4; aspect-ratio: 4 / 5; }
.archive-card:nth-child(2) { grid-column: 5 / span 4; aspect-ratio: 4 / 5; }
.archive-card:nth-child(3) { grid-column: 9 / span 4; aspect-ratio: 4 / 5; }
/* Bottom scrim so captions read over pale studio floors */
.archive-card::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 38%;
  background: linear-gradient(180deg, transparent 0%, rgba(28,14,26,0.62) 100%);
  pointer-events: none;
}
.archive-card .caption {
  z-index: 1;
  position: absolute;
  left: 18px; bottom: 18px;
  color: var(--cream);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 21px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

/* =========================================================
   FEATURE TILES
   ========================================================= */
.features {
  padding: var(--space-5xl) 0;
  background: var(--cream);
}
.features-head {
  margin-bottom: var(--space-3xl);
}
.features-head h3 {
  font-size: clamp(36px, 5vw, 66px);
  line-height: 1.06;
  color: var(--plum);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 280px;
  gap: var(--space-lg);
}
.feature {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-card);
  isolation: isolate;
  color: var(--cream);
  transition: transform var(--dur-slow) var(--ease), box-shadow var(--dur-slow) var(--ease);
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 64px -32px rgba(46,26,44,0.4);
}
.feature .bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transition: transform var(--dur-slow) var(--ease);
}
.feature:hover .bg { transform: scale(1.06); }
/* Legibility scrim over photo tiles */
.feature .wash {
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(46,26,44,0.15) 0%, rgba(201,59,119,0.88) 100%);
  transition: opacity var(--dur-slow) var(--ease);
}
.feature:hover .wash { opacity: 0.85; }
.feature .body {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.feature h4 {
  font-size: clamp(24px, 2.4vw, 33px);
  line-height: 1.12;
  margin-bottom: var(--space-xs);
}
.feature p {
  margin-bottom: 14px;
  font-size: 14.5px;
  line-height: 1.55;
  opacity: 0.92;
  max-width: 38ch;
}
.feature .arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: gap var(--dur-med) var(--ease);
}
.feature:hover .arrow { gap: 18px; }
.feature .arrow svg { width: 18px; height: 10px; }

/* Tile placements & individual colours */
.feature.f-classes { grid-column: 1 / span 7; grid-row: span 2; }
.feature.f-modern  { grid-column: 8 / span 5; }
.feature.f-show    { grid-column: 8 / span 5; }
.feature.f-time    { grid-column: 1 / span 6; background: var(--plum); }
.feature.f-trial   { grid-column: 7 / span 6; background: var(--pink); }

/* =========================================================
   TIMETABLE
   ========================================================= */
.timetable {
  padding: var(--space-5xl) 0;
  background: var(--cream-2);
}
.tt-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-3xl);
  align-items: end;
  margin-bottom: var(--space-2xl);
}
.tt-head h3 {
  font-size: clamp(36px, 4.8vw, 62px);
  line-height: 1.06;
  color: var(--plum);
  max-width: 14ch;
}
.tt-head .live {
  background: var(--plum);
  color: var(--cream);
  padding: 24px 28px;
  border-radius: var(--r-card);
  box-shadow: 0 16px 40px -20px rgba(46,26,44,0.4);
}
.tt-head .live .now {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: var(--blush);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}
.tt-head .live .now::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--coral);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(215,116,100,0.25);
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(215,116,100,0.25); }
  50%     { box-shadow: 0 0 0 9px rgba(215,116,100,0.05); }
}
.tt-head .live .next-label {
  margin-top: 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blush);
}
.tt-head .live .next-class {
  font-family: var(--font-display);
  font-size: 22px;
  margin-top: var(--space-2xs);
  color: var(--cream);
  line-height: 1.2;
}
.tt-head .live .next-meta {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: rgba(251,243,231,0.75);
  margin-top: 6px;
}

.tt-tabs {
  display: flex;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}
.tt-tab {
  flex: 1;
  min-width: 110px;
  padding: 16px 12px;
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--plum-2);
  background: var(--cream);
  border: 0;
  border-radius: var(--r-tick);
  cursor: pointer;
  transition: background var(--dur-med) var(--ease), color var(--dur-med) var(--ease);
}
.tt-tab:hover { background: var(--blush); color: var(--plum); }
.tt-tab .today-dot { display: none; }
.tt-tab.is-today .today-dot {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--coral);
  margin-left: var(--space-xs);
  transform: translateY(-2px);
}
.tt-tab.is-active {
  background: var(--coral);
  color: var(--cream);
}
.tt-tab.is-active.is-today .today-dot { background: var(--cream); }
.tt-tab .day-num {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0;
  margin-top: 6px;
  text-transform: none;
}

.tt-list {
  background: var(--cream);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: 0 16px 40px -24px rgba(46,26,44,0.18);
}
.tt-row {
  display: grid;
  grid-template-columns: 140px 1fr 130px 140px 120px;
  align-items: center;
  padding: 26px 30px;
  border-bottom: 1px solid rgba(46,26,44,0.08);
  transition: background var(--dur-med) var(--ease);
}
.tt-row:last-child { border-bottom: 0; }
.tt-row:hover { background: var(--cream-2); }
.tt-row.is-now { background: rgba(232,90,147,0.13); }
.tt-time {
  font-size: 15px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--plum);
}
.tt-class .name {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--plum);
  line-height: 1.15;
  display: block;
}
.tt-class .desc {
  font-size: 14.5px;
  color: var(--plum-2);
  opacity: 0.85;
  display: block;
  margin-top: 2px;
}
.tt-age {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: var(--plum-2);
}
.tt-teacher {
  font-style: italic;
  font-size: 15.5px;
  color: var(--plum-2);
}
.tt-status {
  text-align: right;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 12px;
  border-radius: var(--r-tick);
  justify-self: end;
}
.tt-status.open    { background: rgba(47,110,107,0.15); color: var(--teal); }
.tt-status.limited { background: rgba(212,162,86,0.2); color: var(--gold-deep); }
.tt-status.full    { background: rgba(142,42,74,0.15); color: var(--berry); }
.tt-status.audition{ background: rgba(46,26,44,0.1); color: var(--plum); }
.tt-status.closed  { background: rgba(46,26,44,0.08); color: var(--plum-2); opacity: 0.7; }
.tt-status.now     { background: var(--coral); color: var(--cream); }

.tt-empty {
  padding: 80px 32px;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 25px;
  color: var(--coral-deep);
}
.tt-empty .small {
  display: block;
  margin-top: var(--space-xs);
  font-size: 14px;
  font-style: normal;
  font-family: var(--font-ui);
  color: var(--plum-2);
}

.tt-foot {
  margin-top: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}
.tt-foot .note {
  font-size: 14px;
  color: var(--plum-2);
  max-width: 60ch;
}
.tt-foot a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--coral);
  padding: 14px 26px;
  border-radius: var(--r-tick);
  transition: background var(--dur-med) var(--ease);
}
.tt-foot a:hover { background: var(--coral-deep); }

/* =========================================================
   PULLQUOTE — the school motto, poster-plain on plum
   ========================================================= */
.pullquote {
  padding: 144px 0;
  background: var(--plum);
  color: var(--cream);
  text-align: center;
}
.pullquote blockquote {
  margin: 0 auto;
  max-width: 24ch;
  font-style: italic;
  font-size: clamp(34px, 4.8vw, 66px);
  line-height: 1.16;
}
.pullquote .attr {
  margin-top: var(--space-xl);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blush);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-foot {
  background: var(--plum);
  color: var(--cream);
  padding: var(--space-4xl) 0 40px;
  border-top: 1px solid rgba(247,186,213,0.25);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.foot-grid h5 {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blush);
  margin-bottom: var(--space-md);
}
.foot-mark {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 32px;
  line-height: 1;
  margin-bottom: var(--space-md);
  color: var(--cream);
}
.foot-blurb {
  color: rgba(251,243,231,0.75);
  font-size: 14.5px;
  line-height: 1.65;
  max-width: 36ch;
  margin-bottom: var(--space-lg);
}
.foot-addr {
  font-style: normal;
  font-size: 16px;
  line-height: 1.55;
  color: var(--cream);
}
.foot-addr .label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blush);
  margin-bottom: var(--space-sm);
}
.foot-addr a {
  display: table;
  margin-top: var(--space-md);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  border-bottom: 1px solid rgba(251,243,231,0.3);
  padding-bottom: 4px;
  transition: border-color var(--dur-med) var(--ease);
}
.foot-addr a:hover { border-color: var(--pink); }
.foot-list {
  list-style: none;
  display: flex; flex-direction: column; gap: var(--space-sm);
}
.foot-list a {
  font-size: 15px;
  color: rgba(251,243,231,0.75);
  transition: color var(--dur-med) var(--ease);
}
.foot-list a:hover { color: var(--blush); }

.social {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.social a {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  color: rgba(251,243,231,0.85);
  transition: color var(--dur-med) var(--ease);
}
.social a:hover { color: var(--blush); }
.social .ico {
  width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--blush);
}
.social .ico svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.6; }

.foot-bottom {
  margin-top: 80px;
  padding-top: 28px;
  border-top: 1px solid rgba(251,243,231,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}
.foot-bottom .copy {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: rgba(251,243,231,0.5);
}
.foot-bottom .creds-mini {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}
.foot-bottom .creds-mini span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blush);
}

/* =========================================================
   Reveal — visible by default; JS opts in
   ========================================================= */
.reveal { opacity: 1; transform: none; }
html.js-reveal .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
html.js-reveal .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js-reveal .reveal { opacity: 1; transform: none; transition: none; }
  .tt-head .live .now::before { animation: none; }
  .archive-card, .archive-card img, .feature, .feature .bg { transition: none; }
  .nav, .nav-toggle .bar { transition: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .header-inner { grid-template-columns: 1fr 1fr; }
  .header-center { display: none; }
  .intro-grid { grid-template-columns: 1fr; gap: var(--space-2xl); }
  .archive-card:nth-child(1),
  .archive-card:nth-child(2),
  .archive-card:nth-child(3) {
    grid-column: span 12;
    aspect-ratio: 4 / 3;
  }
  .feature-grid { grid-auto-rows: auto; }
  .feature.f-classes,
  .feature.f-modern,
  .feature.f-show,
  .feature.f-time,
  .feature.f-trial { grid-column: span 12; min-height: 280px; }
  .creds { grid-template-columns: repeat(2, 1fr); }
  .cred:nth-child(2) { border-right: 0; }
  .cred:nth-child(1), .cred:nth-child(2) { border-bottom: 1px solid rgba(46,26,44,0.1); }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .tt-row { grid-template-columns: 100px 1fr 100px; }
  .tt-row .tt-teacher, .tt-row .tt-status { display: none; }
}
@media (max-width: 720px) {
  /* Burger right, logo truly centered via matching 44px side columns */
  .header-inner {
    grid-template-columns: 44px 1fr 44px;
    gap: var(--space-xs);
  }
  .logo {
    grid-column: 2;
    justify-content: center;
    gap: 10px;
  }
  .logo .badge { width: 56px; height: 56px; }
  .logo .mark { font-size: 20px; }
  .logo .sub { font-size: 9px; letter-spacing: 0.22em; }
  .nav-toggle { display: inline-flex; grid-column: 3; }

  /* Nav becomes a slide-down panel under the header */
  .nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    z-index: 20;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px 24px 28px;
    background: #261424;
    border-top: 1px solid rgba(247,186,213,0.2);
    border-bottom: 1px solid rgba(247,186,213,0.2);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity var(--dur-med) var(--ease), transform var(--dur-med) var(--ease), visibility 0s linear var(--dur-med);
  }
  body.nav-open .nav {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity var(--dur-med) var(--ease), transform var(--dur-med) var(--ease);
  }
  .nav a {
    font-family: var(--font-display);
    font-size: 24px;
    letter-spacing: 0.02em;
    text-transform: none;
    text-shadow: none;
    padding: 16px 0;
    border-bottom: 1px solid rgba(247,186,213,0.14);
  }
  .nav a::after { display: none; }
  .nav .enrol {
    display: block;
    margin-top: 20px;
    text-align: center;
    font-family: var(--font-ui);
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 16px 22px;
    border-bottom: 0;
  }
  .container { width: 92%; }
  .creds { grid-template-columns: 1fr; }
  .cred { border-right: 0; border-bottom: 1px solid rgba(46,26,44,0.1); }
  .cred:last-child { border-bottom: 0; }
  .foot-grid { grid-template-columns: 1fr; gap: var(--space-xl); }

  /* ---- Timetable: parent-friendly mobile ---- */
  .tt-head { grid-template-columns: 1fr; gap: 22px; margin-bottom: 28px; }
  .tt-head .live { order: 2; }
  .tt-tabs {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: var(--space-2xs);
  }
  .tt-tab {
    flex: none; min-width: 0;
    padding: 10px 2px;
    font-size: 9px;
    letter-spacing: 0.04em;
  }
  .tt-tab .day-num { font-size: 15px; margin-top: 3px; }
  .tt-tab.is-today .today-dot { margin-left: 3px; width: 4px; height: 4px; }

  /* Class rows become stacked cards */
  .tt-row {
    display: block;
    padding: 18px 20px 20px;
    position: relative;
  }
  .tt-time {
    font-size: 13px;
    color: var(--pink-deep);
    margin-bottom: 6px;
    padding-right: 90px;
  }
  .tt-class { margin-bottom: 10px; }
  .tt-class .name { font-size: 20px; }
  .tt-row .tt-age,
  .tt-row .tt-teacher { display: inline-block; }
  .tt-age { font-size: 13px; }
  .tt-teacher { font-size: 14px; margin-left: 6px; }
  .tt-teacher::before { content: "·"; margin-right: 8px; color: var(--plum-2); font-style: normal; }
  .tt-row .tt-status {
    display: block;
    position: absolute;
    top: 16px; right: 16px;
    justify-self: auto;
  }
  .tt-foot { flex-direction: column; align-items: flex-start; gap: 20px; }
  .tt-foot a { width: 100%; text-align: center; }
}

/* =========================================================
   Timetable v2 — term timetables with venues, cancellations,
   class notes and popups. Same tokens and voice as the rest
   of the design; none of this renders until those features
   are used, so the original page is untouched.
   ========================================================= */

/* Commencing line + notice under the section heading */
.tt-title-meta {
  margin-top: 14px;
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pink-deep);
}
.tt-notice {
  margin-top: 8px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  color: var(--plum-2);
}

/* Two venue columns per day (Dance Studio / Quay Hall) */
.tt-venues {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.tt-venues.is-single { grid-template-columns: 1fr; }
.tt-venue {
  min-width: 0;
  border-right: 1px solid rgba(46,26,44,0.08);
}
.tt-venue:last-child { border-right: 0; }
.tt-venue-head {
  padding: 20px 30px 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--berry);
  border-bottom: 1px solid rgba(46,26,44,0.08);
}
.tt-venues .tt-row {
  grid-template-columns: 88px 1fr auto;
  padding: 20px 30px;
}

/* Cancelled classes: crossed out, quietened */
.tt-status.cancelled { background: rgba(168,42,94,0.14); color: var(--berry); }
.tt-row.is-cancelled .tt-class .name {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(168,42,94,0.6);
  opacity: 0.6;
}
.tt-row.is-cancelled .tt-time,
.tt-row.is-cancelled .tt-class .desc { opacity: 0.55; }

/* "View note" — opens the class popup */
.tt-note-btn {
  display: inline-block;
  margin-top: 7px;
  padding: 0 0 2px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(201,59,119,0.4);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral-deep);
  cursor: pointer;
  transition: color var(--dur-med) var(--ease), border-color var(--dur-med) var(--ease);
}
.tt-note-btn:hover { color: var(--coral); border-color: var(--coral); }

/* Popup — class notes and studio announcements */
.pdsd-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(28,14,26,0.66);
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--dur-med) var(--ease), visibility 0s linear var(--dur-med);
}
.pdsd-modal.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity var(--dur-med) var(--ease);
}
.pdsd-modal-panel {
  background: var(--cream);
  color: var(--plum);
  border-radius: var(--r-card);
  max-width: 520px;
  width: 100%;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 40px 44px 36px;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,0.55);
  transform: translateY(10px);
  transition: transform var(--dur-med) var(--ease);
}
.pdsd-modal.is-open .pdsd-modal-panel { transform: none; }
.pdsd-modal-kicker {
  display: block;
  color: var(--berry);
  margin-bottom: var(--space-sm);
}
.pdsd-modal-title {
  font-size: 30px;
  line-height: 1.15;
  margin-bottom: var(--space-sm);
}
.pdsd-modal-body {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--plum-2);
}
.pdsd-modal-close {
  margin-top: var(--space-lg);
  display: inline-flex;
  align-items: center;
  padding: 13px 26px;
  background: var(--coral);
  color: var(--cream);
  border: 0;
  border-radius: var(--r-tick);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--dur-med) var(--ease);
}
.pdsd-modal-close:hover { background: var(--coral-deep); }
body.pdsd-modal-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .pdsd-modal, .pdsd-modal-panel { transition: none; }
}
@media (max-width: 1100px) {
  .tt-venues { grid-template-columns: 1fr; }
  .tt-venue { border-right: 0; }
  .tt-venues .tt-row { grid-template-columns: 88px 1fr auto; }
  .tt-venues .tt-row .tt-status { display: block; }
}
@media (max-width: 720px) {
  .tt-venue-head { padding: 16px 20px 12px; }
  .tt-notice { font-size: 15.5px; }
  .pdsd-modal-panel { padding: 30px 26px 28px; }
  .pdsd-modal-title { font-size: 24px; }
}

/* =========================================================
   WordPress additions — invisible unless focused.
   Standard screen-reader-text pattern; the skip link becomes
   visible only on keyboard focus, so the rendered design is
   unchanged for sighted mouse users.
   ========================================================= */
.screen-reader-text {
  border: 0;
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}
.skip-link:focus,
.skip-link:focus-visible {
  clip-path: none;
  width: auto;
  height: auto;
  position: fixed !important;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 14px 24px;
  background: var(--cream);
  color: var(--plum);
  border-radius: var(--r-tick);
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 0 10px 28px -10px rgba(0,0,0,0.5);
}

/* =========================================================
   Interior pages — plum header band, single-column prose,
   optional photo gallery. Same tokens and voice as the
   homepage; nothing here touches homepage selectors.
   ========================================================= */

/* Header band: the site header on plum, then the page title —
   everything centred on a contained middle column, like the
   archive section heading. */
.page-hero {
  position: relative;
  background: var(--plum);
  color: var(--cream);
}
.page-hero-inner {
  width: 92%;
  max-width: 880px;
  margin: 0 auto;
  padding: 56px 0 84px;
  text-align: center;
}
.page-kicker {
  display: block;
  color: var(--blush);
  margin-bottom: var(--space-md);
}
.page-title {
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.06;
  max-width: 16ch;
  margin: 0 auto;
  color: var(--cream);
}
.page-lede {
  margin: 20px auto 0;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--cream);
  opacity: 0.9;
  max-width: 52ch;
}

/* Single-column text — a readable printed-programme measure,
   contained in the middle of the page */
.page-content {
  padding: var(--space-4xl) 0;
}
.prose {
  max-width: 640px;
  margin: 0 auto;
}
.prose h2,
.prose h3,
.prose h4 {
  color: var(--plum);
  line-height: 1.12;
  margin: var(--space-2xl) 0 var(--space-md);
}
.prose h2 { font-size: clamp(28px, 3.2vw, 40px); }
.prose h3 { font-size: clamp(23px, 2.4vw, 29px); }
.prose h4 { font-size: 21px; }
.prose h2:first-child,
.prose h3:first-child,
.prose p:first-child { margin-top: 0; }
.prose p {
  color: var(--plum-2);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}
.prose a {
  color: var(--berry);
  border-bottom: 1px solid rgba(168,42,94,0.35);
  transition: color var(--dur-med) var(--ease), border-color var(--dur-med) var(--ease);
}
.prose a:hover { color: var(--coral); border-color: var(--coral); }
.prose ul,
.prose ol {
  margin: 0 0 var(--space-md);
  padding-left: 1.3em;
  color: var(--plum-2);
}
.prose li { margin-bottom: var(--space-xs); line-height: 1.6; }
.prose blockquote {
  margin: var(--space-xl) 0;
  padding-left: var(--space-lg);
  border-left: 2px solid var(--blush-2);
  font-style: italic;
  font-size: 24px;
  line-height: 1.45;
  color: var(--plum);
}
.prose blockquote p {
  color: inherit;
  line-height: inherit;
  margin-bottom: var(--space-sm);
}
.prose blockquote cite {
  display: block;
  margin-top: var(--space-sm);
  font-family: var(--font-ui);
  font-style: normal;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--berry);
}
.prose hr {
  border: 0;
  height: 1px;
  background: rgba(46,26,44,0.3);
  margin: var(--space-2xl) 0;
}
.prose figure {
  margin: var(--space-xl) 0;
}
.prose figure img {
  border-radius: var(--r-card);
  width: 100%;
  height: auto;
}
.prose figcaption {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--plum-2);
  opacity: 0.85;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  margin: var(--space-lg) 0;
}
.prose th {
  font-family: var(--font-ui);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: left;
  color: var(--berry);
  padding: 10px 16px 10px 0;
  border-bottom: 1px solid rgba(46,26,44,0.3);
}
.prose td {
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid rgba(46,26,44,0.12);
  color: var(--plum-2);
  font-size: 15.5px;
}

/* Page gallery — the archive-card look, any number of photos */
.page-gallery {
  padding: 0 0 var(--space-5xl);
}
.pg-head {
  text-align: center;
  margin-bottom: var(--space-3xl);
}
.pg-head .kicker {
  color: var(--berry);
  display: block;
  margin-bottom: var(--space-md);
}
.pg-head h2 {
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.06;
  color: var(--plum);
}
.pg-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
}
.pg-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--plum);
  box-shadow: 0 24px 48px -24px rgba(46,26,44,0.4);
  aspect-ratio: 4 / 5;
  transition: transform var(--dur-slow) var(--ease);
}
.pg-card:hover { transform: translateY(-6px); }
.pg-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}
.pg-card:hover img { transform: scale(1.05); }
.pg-card.has-caption::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 38%;
  background: linear-gradient(180deg, transparent 0%, rgba(28,14,26,0.62) 100%);
  pointer-events: none;
}
.pg-card .caption {
  z-index: 1;
  position: absolute;
  left: 18px; bottom: 14px;
  margin: 0;
  color: var(--cream);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 21px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

@media (prefers-reduced-motion: reduce) {
  .pg-card, .pg-card img { transition: none; }
}
@media (max-width: 1100px) {
  .pg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-card { aspect-ratio: 4 / 3; }
}
@media (max-width: 720px) {
  .page-hero-inner { padding: 28px 0 52px; }
  .page-content { padding: var(--space-3xl) 0; }
  .page-gallery { padding: 0 0 var(--space-4xl); }
  .pg-grid { grid-template-columns: 1fr; }
  .prose blockquote { font-size: 21px; }
}
