/* ==========================================================================
   Charlie and the Chocolate Factory JR. — Bendigo 2026
   Palette taken from the show artwork: deep purple, magenta glow, foil gold.
   ========================================================================== */

:root {
  --purple-900: #1b0629;
  --purple-800: #2b0a3d;
  --purple-700: #3d1155;
  --purple-600: #52186f;
  --magenta:    #c8189c;
  --magenta-hi: #ec2fb9;
  --gold:       #f5c518;
  --gold-hi:    #ffe07a;
  --gold-deep:  #c8931a;
  --cream:      #fdf7ec;
  --ink:        #1a1020;
  --muted:      #cbb6d8;

  --maxw: 1160px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 18px 50px rgba(10, 2, 20, .35);
  --font-display: 'Fredoka', 'Trebuchet MS', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--cream);
  background: var(--purple-900);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 .5em; }

.wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, 780px); }
.center { text-align: center; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--gold); color: var(--purple-900); padding: .75rem 1.25rem;
  font-weight: 700; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

:where(a, button, summary, input, iframe):focus-visible {
  outline: 3px solid var(--gold-hi);
  outline-offset: 3px;
  border-radius: 6px;
}

/* --------------------------------------------------------- Buttons ------ */
.btn {
  --btn-py: .85rem; --btn-px: 1.5rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: var(--btn-py) var(--btn-px);
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  line-height: 1.2; text-decoration: none; border: 0; border-radius: 999px;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  text-align: center;
}
.btn-sm { --btn-py: .6rem; --btn-px: 1.1rem; font-size: .95rem; }
.btn-lg { --btn-py: 1.05rem; --btn-px: 2.25rem; font-size: 1.15rem; }
.btn-block { display: flex; width: 100%; }

.btn-gold {
  background: linear-gradient(160deg, var(--gold-hi), var(--gold) 45%, var(--gold-deep));
  color: #2b1500;
  box-shadow: 0 10px 26px rgba(245, 197, 24, .28);
}
.btn-gold:hover, .btn-gold:focus-visible { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(245, 197, 24, .4); }
.btn-gold:active { transform: translateY(0); }

.btn-ghost {
  background: rgba(255, 255, 255, .06);
  color: var(--cream);
  border: 2px solid rgba(255, 255, 255, .3);
}
.btn-ghost:hover, .btn-ghost:focus-visible { background: rgba(255, 255, 255, .14); border-color: var(--gold); transform: translateY(-2px); }

/* --------------------------------------------------------- Header ------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(27, 6, 41, .72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: background .25s ease, box-shadow .25s ease;
}
.site-header.is-stuck { background: rgba(27, 6, 41, .95); box-shadow: 0 8px 30px rgba(0, 0, 0, .45); }

.header-inner { display: flex; align-items: center; gap: 1rem; padding: .7rem 0; }

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: inherit; margin-right: auto; }
.brand-logo { width: 44px; height: 44px; object-fit: contain; flex: none; }
.brand-text { display: flex; flex-direction: column; }
.brand-title { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; color: var(--gold); line-height: 1.15; }
.brand-title em { font-style: normal; }
.brand-amp { color: var(--cream); }
.brand-sub { font-size: .78rem; color: var(--muted); letter-spacing: .02em; }

.site-nav { display: flex; align-items: center; }
.nav-list { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  color: var(--cream); text-decoration: none; font-weight: 500; font-size: .97rem;
  padding: .3rem 0; border-bottom: 2px solid transparent;
}
.nav-list a:hover, .nav-list a:focus-visible { color: var(--gold); border-bottom-color: var(--gold); }

.nav-toggle {
  display: none; width: 44px; height: 44px; background: transparent;
  border: 1px solid rgba(255, 255, 255, .25); border-radius: 12px; cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 20px; height: 2px; background: var(--cream); margin-inline: auto;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ''; position: relative; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 4px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 900px) {
  .header-cta { display: none; }
  .nav-toggle { display: block; }
  .nav-list {
    position: absolute; inset: 100% 0 auto 0; flex-direction: column; gap: 0;
    background: var(--purple-800); border-bottom: 1px solid rgba(255, 255, 255, .1);
    padding: .5rem 1.25rem 1.25rem; display: none;
  }
  .nav-list.is-open { display: flex; }
  .nav-list a { display: block; padding: .85rem 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .brand-title { font-size: .92rem; }
}

/* --------------------------------------------------------- Hero --------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 700px at 50% 12%, rgba(236, 47, 185, .55), transparent 62%),
    linear-gradient(180deg, var(--purple-800), var(--purple-900) 78%);
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 5.5rem);
}
.hero-inner {
  position: relative; display: grid; gap: clamp(1.75rem, 4vw, 3.5rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center;
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-facts { display: inline-block; text-align: left; }
  .hero-cta { justify-content: center; }
}

.hero-art { position: relative; }
/* The key art is shown square and unclipped — rounding the corners would crop
   the pink burst, which the MTI style guide does not permit. The shadow sits
   behind the image and does not alter the artwork itself. */
.hero-art img { width: 100%; box-shadow: var(--shadow); }

.eyebrow {
  margin: 0 0 .6rem; text-transform: uppercase; letter-spacing: .16em;
  font-size: .78rem; font-weight: 600; color: var(--gold-hi);
}
.hero h1 { font-size: clamp(2.1rem, 5.6vw, 3.5rem); margin-bottom: .6rem; }
.gold {
  background: linear-gradient(170deg, var(--gold-hi), var(--gold) 50%, var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.jr { color: var(--gold-hi); }
.lede { font-size: clamp(1.05rem, 2.1vw, 1.25rem); color: #f0e4f7; max-width: 46ch; margin: 0 0 1.5rem; }
@media (max-width: 900px) { .lede { margin-inline: auto; } }

.hero-facts { list-style: none; margin: 0 0 1.9rem; padding: 0; display: grid; gap: .65rem; }
.hero-facts li { display: flex; align-items: center; gap: .65rem; color: #ecdff4; font-size: 1rem; }
.hero-facts svg {
  width: 22px; height: 22px; flex: none; fill: none; stroke: var(--gold);
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: .85rem; }
.hero-note { margin: 1rem 0 0; font-size: .87rem; color: var(--muted); }

/* --------------------------------------------------------- Sections ----- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-title { font-size: clamp(1.7rem, 3.6vw, 2.5rem); color: var(--gold); }
.section-intro { max-width: 62ch; color: #e6d8ef; margin: 0 0 2rem; font-size: 1.05rem; }

.section-tickets {
  background: linear-gradient(180deg, var(--purple-900), var(--purple-700) 55%, var(--purple-800));
  border-block: 1px solid rgba(255, 255, 255, .08);
}
.section-dates { background: var(--purple-900); }
.section-about { background: linear-gradient(180deg, var(--purple-800), var(--purple-900)); }
.section-gallery { background: var(--purple-900); }
.section-venue { background: var(--purple-800); }
.section-company { background: var(--cream); color: var(--ink); }
.section-company .section-title { color: var(--purple-700); }
.section-company a { color: var(--magenta); }
.section-faq { background: var(--purple-900); }

/* --------------------------------------------------------- Tickets ------ */
.ticket-panel {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-lg);
  padding: clamp(1rem, 2.5vw, 1.75rem);
  box-shadow: var(--shadow);
}
.trybooking-mount { min-height: 320px; }
.trybooking-mount iframe {
  width: 100%; min-height: 780px; border: 0; border-radius: var(--radius);
  background: #fff;
}
.ticket-fallback { text-align: center; padding: clamp(1.5rem, 5vw, 3.5rem) 1rem; }
.ticket-fallback-kicker {
  margin: 0 0 .5rem; text-transform: uppercase; letter-spacing: .2em;
  font-size: .75rem; color: var(--gold-hi); font-weight: 600;
}
.ticket-fallback-text { font-family: var(--font-display); font-size: clamp(1.3rem, 3vw, 1.9rem); color: var(--cream); margin: 0 0 .5rem; }
.ticket-fallback-sub { color: var(--muted); margin: 0 0 1.75rem; }
.ticket-help { margin-top: 1.25rem; text-align: center; color: var(--muted); }

/* --------------------------------------------------------- Dates -------- */
.date-grid {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 1.15rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.date-card {
  display: flex; flex-direction: column; gap: .35rem;
  background: linear-gradient(165deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03));
  border: 1px solid rgba(245, 197, 24, .28);
  border-radius: var(--radius); padding: 1.5rem 1.25rem;
  transition: transform .2s ease, border-color .2s ease;
}
.date-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.date-day { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--gold-hi); font-weight: 600; }
.date-num { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--cream); }
.date-num span { font-size: 1.1rem; color: var(--muted); }
.date-time { font-size: 1.35rem; font-weight: 600; color: var(--gold); font-family: var(--font-display); }
.date-tag { font-size: .87rem; color: var(--muted); margin-bottom: 1rem; min-height: 2.4em; }
.date-foot { margin-top: 1.75rem; color: var(--muted); font-size: .95rem; }

/* --------------------------------------------------------- About -------- */
.about-grid { display: grid; gap: clamp(1.75rem, 4vw, 3rem); grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.about-copy p { color: #ecdff4; margin: 0 0 1.1rem; }
.about-copy .btn { margin-top: .75rem; }

.ticket-card {
  background: linear-gradient(150deg, var(--gold-hi), var(--gold) 40%, var(--gold-deep));
  border-radius: var(--radius); padding: .5rem; box-shadow: var(--shadow); margin-bottom: 1.5rem;
  transform: rotate(-2deg);
}
.ticket-card-inner {
  border: 2px dashed rgba(43, 21, 0, .45); border-radius: 12px;
  padding: 1.4rem 1rem; text-align: center; display: grid; gap: .25rem; color: #2b1500;
}
.ticket-card-kicker { text-transform: uppercase; letter-spacing: .22em; font-size: .7rem; font-weight: 700; }
.ticket-card-title { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; }
.ticket-card-sub { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; }

.fact-list { margin: 0; display: grid; gap: .9rem; }
.fact-list div { border-left: 3px solid var(--magenta); padding-left: .9rem; }
.fact-list dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .14em; color: var(--gold-hi); font-weight: 600; }
.fact-list dd { margin: .15rem 0 0; color: var(--cream); }

/* --------------------------------------------------------- Gallery ------ */
.gallery-grid {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.gallery-item { border-radius: var(--radius); overflow: hidden; background: rgba(255, 255, 255, .04); }
.gallery-item img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-item.is-placeholder {
  display: grid; place-items: center; aspect-ratio: 4 / 3;
  border: 2px dashed rgba(245, 197, 24, .3); color: var(--muted);
  font-size: .9rem; letter-spacing: .05em;
}

/* --------------------------------------------------------- Venue -------- */
.venue-grid { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; }
@media (max-width: 860px) { .venue-grid { grid-template-columns: 1fr; } }
.venue-name { font-family: var(--font-display); font-size: 1.4rem; color: var(--cream); margin: 0 0 .35rem; }
.venue-addr { color: #e6d8ef; margin: 0 0 1.25rem; }
.venue-points { list-style: none; margin: 0 0 1.75rem; padding: 0; display: grid; gap: .6rem; }
.venue-points li { position: relative; padding-left: 1.6rem; color: #ecdff4; }
.venue-points li::before { content: '✦'; position: absolute; left: 0; color: var(--gold); }
.venue-cta { display: flex; flex-wrap: wrap; gap: .75rem; }
.venue-map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid rgba(255, 255, 255, .12); }
.venue-map iframe { width: 100%; height: 380px; border: 0; display: block; filter: saturate(.9); }

/* --------------------------------------------------------- Company ------ */
.company-grid { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: minmax(0, .55fr) minmax(0, 1fr); align-items: center; }
@media (max-width: 860px) { .company-grid { grid-template-columns: 1fr; } }
.company-logo img { margin-inline: auto; max-width: 320px; }
.company-logo-fallback { display: none; }
.company-logo.is-missing img { display: none; }
.company-logo.is-missing .company-logo-fallback {
  display: block; text-align: center; font-family: var(--font-display);
  font-size: 2rem; color: var(--purple-700);
}
.section-company p { color: #392b45; }

/* --------------------------------------------------------- FAQ ---------- */
.faq-list { display: grid; gap: .75rem; }
.faq-list details {
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius); padding: 0 1.25rem;
}
.faq-list details[open] { border-color: rgba(245, 197, 24, .45); }
.faq-list summary {
  cursor: pointer; padding: 1.1rem 0; font-family: var(--font-display);
  font-size: 1.08rem; color: var(--cream); list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; color: var(--gold); font-size: 1.5rem; line-height: 1; flex: none; }
.faq-list details[open] summary::after { content: '\2013'; }
.faq-list p { margin: 0 0 1.1rem; color: #e2d4ec; }

/* --------------------------------------------------------- Final CTA ---- */
.section-final {
  background:
    radial-gradient(700px 380px at 50% 0%, rgba(236, 47, 185, .5), transparent 65%),
    linear-gradient(180deg, var(--purple-700), var(--purple-900));
}
.final-title { font-size: clamp(1.9rem, 4.4vw, 3rem); color: var(--gold); }
.final-sub { color: #efe2f7; margin: 0 0 1.9rem; }

/* --------------------------------------------------------- Footer ------- */
.site-footer { background: #150520; padding: clamp(2.5rem, 5vw, 3.5rem) 0 2rem; border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.footer-title { font-size: 1.05rem; color: var(--gold); margin-bottom: .6rem; }
.footer-links, .footer-social { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer-links a, .site-footer a { color: #e9dcf1; text-decoration: none; }
.footer-links a:hover, .site-footer a:hover { color: var(--gold); text-decoration: underline; }
.footer-links.plain li { color: var(--muted); }
.footer-legal {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .82rem; color: #9d88ad;
}
.footer-legal p { margin: 0 0 .5rem; }

/* --------------------------------------------------------- Sticky CTA --- */
.sticky-cta {
  position: fixed; inset: auto 0 0 0; z-index: 90;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .75rem 1.1rem calc(.75rem + env(safe-area-inset-bottom));
  background: rgba(27, 6, 41, .96); backdrop-filter: blur(12px);
  border-top: 1px solid rgba(245, 197, 24, .35);
  transform: translateY(110%); transition: transform .28s ease;
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta-text { display: flex; flex-direction: column; line-height: 1.25; }
.sticky-cta-text strong { color: var(--gold); font-family: var(--font-display); }
.sticky-cta-text span { font-size: .8rem; color: var(--muted); }
@media (min-width: 901px) { .sticky-cta { display: none; } }
@media (max-width: 400px) { .sticky-cta-text span { display: none; } }
