/* ============================================
   JFF Theatre Group — Spotlight
   Tokens — single dark background throughout
   ============================================ */
:root {
  --stage-black: #0E0D0C;
  --curtain: #1C1A17;
  --curtain-line: #322E28;
  --spotlight: #FFF200;
  --spotlight-dim: #E0D400;
  --marquee-red: #ED1C24;
  --white-soft: #F5F3EE;
  --stage-grey: #B7B2A6;
  --radius-sm: 6px;
  --radius-md: 14px;
  --font-display: "Fredoka", sans-serif;
  --font-body: "Work Sans", sans-serif;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
#sessions-by-location, #upcoming-dates { scroll-margin-top: 90px; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--stage-grey);
  background: var(--stage-black);
  line-height: 1.6;
  font-size: 17px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--white-soft);
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-spotlight {
  background: var(--spotlight);
  color: var(--stage-black);
}
.btn-spotlight:hover { background: var(--spotlight-dim); }

.btn-outline-light {
  border-color: var(--white-soft);
  color: var(--white-soft);
  background: transparent;
}
.btn-outline-light:hover { background: var(--white-soft); color: var(--stage-black); }

/* ============================================
   Header / nav
   ============================================ */
.site-header {
  background: var(--stage-black);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--curtain-line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand img { width: 56px; height: 56px; border-radius: 50%; }
.brand-name {
  font-family: var(--font-display);
  color: var(--white-soft);
  font-size: 15px;
  line-height: 1.25;
}
.brand-name strong { color: var(--spotlight); display: block; font-size: 17px; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: block;
  text-decoration: none;
  color: var(--white-soft);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
}
.main-nav a:hover,
.main-nav a[aria-current="page"] { background: var(--curtain); color: var(--spotlight); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--curtain-line);
  border-radius: var(--radius-sm);
  color: var(--white-soft);
  width: 42px;
  height: 42px;
  font-size: 20px;
  cursor: pointer;
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    width: 100%;
    order: 3;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; padding: 8px 0 16px; }
  .site-header .wrap { flex-wrap: wrap; }
}

/* ============================================
   Hero (home)
   ============================================ */
.hero {
  position: relative;
  overflow: hidden;
}
.hero-beams {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  padding-top: 72px;
  padding-bottom: 72px;
}
.hero h1 {
  font-size: 44px;
  max-width: 15ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--spotlight);
}
.hero-sub {
  color: var(--stage-grey);
  font-size: 18px;
  max-width: 40ch;
  margin-bottom: 1.5em;
}
.locations-line {
  color: var(--white-soft);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}
.locations-line .dot { color: var(--spotlight); margin: 0 10px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-logo-wrap {
  display: flex;
  justify-content: center;
}
.hero-logo-wrap img {
  width: min(340px, 100%);
  height: auto;
}

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 40px; }
  .hero-logo-wrap { order: -1; }
  .hero-logo-wrap img { width: 180px; margin: 0 auto; }
  .hero h1 { font-size: 32px; max-width: none; }
}

/* ============================================
   Stat strip
   ============================================ */
.stat-strip {
  border-bottom: 1px solid var(--curtain-line);
}
.stat-strip .wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding-top: 28px;
  padding-bottom: 28px;
  text-align: center;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat strong {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--white-soft);
}
.stat span {
  font-size: 14px;
  color: var(--stage-grey);
}
.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--curtain-line);
}
@media (max-width: 600px) {
  .stat-divider { display: none; }
  .stat-strip .wrap { gap: 24px; }
}

/* ============================================
   Story section
   ============================================ */
.story {
  padding: 80px 0;
  border-bottom: 1px solid var(--curtain-line);
}
.story .wrap {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
}
.story-quote {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.35;
  color: var(--white-soft);
  border-left: 4px solid var(--marquee-red);
  padding-left: 24px;
}
.story-quote-photo {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin: 8px auto 0;
}
.story-body p { color: var(--stage-grey); font-size: 16px; }
.story-signoff {
  font-family: var(--font-display);
  color: var(--white-soft);
  margin-top: 1.2em;
}
.signoff-script {
  font-family: "Yellowtail", cursive;
  font-size: 29px;
  color: var(--stage-grey);
}
@media (max-width: 820px) {
  .story .wrap { grid-template-columns: 1fr; gap: 28px; }
}

/* ============================================
   Programme cards
   ============================================ */
.programmes {
  padding: 72px 0;
  border-bottom: 1px solid var(--curtain-line);
}
.programmes h2 { font-size: 28px; margin-bottom: 8px; }
.programmes .section-intro {
  color: var(--stage-grey);
  max-width: 50ch;
  margin-bottom: 36px;
}
.programme-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.programme-card {
  background: var(--curtain);
  border-left: 4px solid var(--spotlight);
  border-radius: var(--radius-sm);
  padding: 28px;
}
.programme-card:nth-child(2) { border-left-color: var(--marquee-red); }
.programme-card h3 { font-size: 21px; }
.programme-card p { color: var(--stage-grey); font-size: 15px; }
.programme-card a {
  display: inline-block;
  margin-top: 14px;
  color: var(--spotlight);
  font-family: var(--font-display);
  font-weight: 500;
  text-decoration: none;
  font-size: 15px;
}
.programme-card:nth-child(2) a { color: var(--marquee-red); }
.programme-card a:hover { text-decoration: underline; }
@media (max-width: 700px) {
  .programme-grid { grid-template-columns: 1fr; }
}

/* ============================================
   Slideshow
   ============================================ */
.slideshow-section {
  padding: 72px 0;
  border-bottom: 1px solid var(--curtain-line);
}
.slideshow-section h2 { font-size: 28px; margin-bottom: 8px; }
.slideshow-section .section-intro { color: var(--stage-grey); margin-bottom: 32px; }

.slideshow {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--curtain);
}
.slides {
  position: relative;
  aspect-ratio: 3 / 2;
}
.slideshow--4-3 .slides { aspect-ratio: 4 / 3; }
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: contain; }
.slide-placeholder {
  color: var(--stage-grey);
  font-family: var(--font-display);
  font-size: 15px;
  text-align: center;
  padding: 20px;
}
.slide-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.slide-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid var(--white-soft);
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.slide-dots button.is-active { background: var(--spotlight); border-color: var(--spotlight); }
@media (max-width: 600px) {
  .slides { aspect-ratio: 3 / 2; }
}

/* ============================================
   Gallery grid (gallery page)
   ============================================ */
.gallery-section { padding: 64px 0; }
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.photo-tile {
  aspect-ratio: 4 / 3;
  background: var(--curtain);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--stage-grey);
  font-size: 13px;
  text-align: center;
  padding: 16px;
  border: 1px dashed var(--curtain-line);
}
@media (max-width: 820px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   Inner page hero
   ============================================ */
.page-hero {
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--curtain-line);
}
.page-hero .eyebrow {
  color: var(--marquee-red);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}
.page-hero h1 {
  font-size: 36px;
  max-width: 20ch;
}
.page-hero p {
  color: var(--stage-grey);
  max-width: 56ch;
  font-size: 17px;
}
.announcement-heading {
  color: var(--spotlight);
  font-size: 19px;
  margin-top: 20px;
  margin-bottom: 8px;
}
.page-hero p.announcement {
  max-width: 72ch;
  margin-top: 10px;
}

.page-section { padding: 64px 0; }
.page-section h2 { font-size: 24px; }
.page-section + .page-section { border-top: 1px solid var(--curtain-line); }

/* ============================================
   Location / info cards
   ============================================ */
.location-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.location-grid--2col { grid-template-columns: repeat(2, 1fr); }
.location-card {
  background: var(--curtain);
  border: 1px solid var(--curtain-line);
  border-radius: var(--radius-md);
  padding: 24px;
}
.location-card h3 {
  font-size: 19px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.location-card h3::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--spotlight);
  flex-shrink: 0;
}
.info-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--curtain-line);
  font-size: 14px;
}
.info-row:first-of-type { border-top: none; margin-top: 14px; }
.info-row dt { color: var(--stage-grey); }
.info-row dd { margin: 0; font-weight: 500; text-align: right; color: var(--white-soft); }
.placeholder-text { color: var(--stage-grey); font-style: italic; font-weight: 400 !important; }

.card-cta {
  text-align: center;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--curtain-line);
}

.schedule {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--curtain-line);
}
.schedule-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  font-size: 13px;
}
.schedule-group { color: var(--stage-grey); }
.schedule-time { color: var(--white-soft); font-weight: 500; text-align: right; white-space: nowrap; }

@media (max-width: 900px) {
  .location-grid { grid-template-columns: 1fr; }
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--stage-black);
  color: var(--stage-grey);
  padding: 48px 0 28px;
  border-top: 1px solid var(--curtain-line);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--curtain-line);
}
.footer-brand { display: flex; gap: 12px; align-items: flex-start; }
.footer-brand img { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; }
.footer-brand strong { color: var(--white-soft); font-family: var(--font-display); display: block; }
.footer-col h4 {
  color: var(--white-soft);
  font-size: 14px;
  margin-bottom: 12px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; font-size: 14px; }
.footer-col a { text-decoration: none; color: var(--stage-grey); }
.footer-col a:hover { color: var(--spotlight); }
.footer-social-link { display: inline-flex; align-items: center; }
.footer-social-link svg { width: 36px; height: 36px; fill: #1877F2; transition: opacity 0.15s ease; }
.footer-social-link:hover svg { opacity: 0.8; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: var(--stage-grey); text-decoration: none; }
.footer-bottom a:hover { color: var(--spotlight); }

@media (max-width: 760px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ============================================
   Privacy page
   ============================================ */
.policy-body h2 { font-size: 20px; margin-top: 1.6em; }
.policy-body p, .policy-body li { color: var(--stage-grey); }
.policy-body { max-width: 74ch; }
