/* ==========================================================================
   assets/css/tpt-onepage.css
   Single-page homepage for the non-PartyPlex brands (The Private Theatre,
   Maya Darbar, BingeNplex).

   Design source: the static prototype at
   theprivatetheatre-static-site/theprivatetheatre-site/assets/styles.css
   (section structure, cinema-noir palette, card/occasion layouts).

   Two rules govern this file:

   1. EVERY selector is scoped under .tpt-op. The shared header/footer are
      Tailwind-based and brand-tokenised, and the booking wizard ships its own
      large stylesheet (assets/css/booking-wizard.css). An unscoped `.hero`,
      `.btn` or `.card` here would silently restyle all three. .tpt-op is the
      one-page root, so the blast radius is exactly the sections we own.

   2. Colours come from the app's --brand-* tokens (emitted by brandCssVars()
      in includes/header.new.php), not from the prototype's hardcoded hexes.
      The prototype values are kept only as fallbacks, so the page still themes
      correctly if this sheet is ever loaded without the token block.
   ========================================================================== */

.tpt-op {
  /* prototype token -> brand token, prototype value as fallback */
  --tpt-bg: var(--brand-bg, #070707);
  --tpt-panel: var(--brand-surface, #111);
  --tpt-panel-2: color-mix(in srgb, var(--brand-surface, #171513) 88%, var(--brand-primary, #671e25));
  --tpt-text: var(--brand-text, #f6f1e8);
  --tpt-muted: var(--brand-muted, #a9a29a);
  --tpt-gold: var(--brand-accent, #d6ad63);
  --tpt-gold-2: color-mix(in srgb, var(--brand-accent, #d6ad63) 72%, #fff);
  --tpt-line: color-mix(in srgb, var(--brand-text, #f6f1e8) 10%, transparent);
  --tpt-red: var(--brand-primary, #671e25);

  background: var(--tpt-bg);
  color: var(--tpt-text);
  font: 16px/1.6 var(--brand-font-body, Inter), system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.tpt-op a { color: inherit; text-decoration: none; }
.tpt-op img { max-width: 100%; height: auto; display: block; }

/* Only scroll when the user asked for it (anchors + the wizard's own smooth
   scroll call sites both land here). */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  /* Offset sticky-header anchors so a jump does not hide the section heading. */
  .tpt-op [id] { scroll-margin-top: 84px; }
}

/* ---------------------------------------------------------------- buttons */
.tpt-op .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 11px 18px; border-radius: 999px; border: 1px solid transparent;
  font-size: 14px; font-weight: 700; cursor: pointer; text-align: center;
  transition: transform .15s ease, filter .15s ease, border-color .15s ease;
}
.tpt-op .btn-lg { padding: 14px 24px; font-size: 15px; }
.tpt-op .btn-full { width: 100%; }
.tpt-op .btn-gold {
  background: linear-gradient(180deg, var(--tpt-gold-2), var(--tpt-gold));
  color: #15110d;
  box-shadow: 0 8px 30px color-mix(in srgb, var(--tpt-gold) 16%, transparent);
}
.tpt-op .btn-gold:hover { transform: translateY(-1px); filter: brightness(1.06); }
.tpt-op .btn-dark {
  background: #151515; border-color: #34312d; color: var(--tpt-text);
}
.tpt-op .btn-dark:hover { border-color: var(--tpt-gold); }
.tpt-op .btn-ghost {
  border-color: color-mix(in srgb, var(--tpt-gold) 45%, transparent);
  background: transparent; color: var(--tpt-text);
}
.tpt-op .btn-ghost:hover { border-color: var(--tpt-gold); }
.tpt-op .btn-primary {
  background: var(--tpt-red); color: #fff;
}
.tpt-op .btn-primary:hover { filter: brightness(1.12); }
.tpt-op .btn:focus-visible,
.tpt-op a:focus-visible {
  outline: 2px solid var(--tpt-gold); outline-offset: 3px; border-radius: 6px;
}

/* ------------------------------------------------------------------- type */
.tpt-op .eyebrow {
  margin: 0 0 .5rem; font-size: .72rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--tpt-gold);
}
.tpt-op h1, .tpt-op h2, .tpt-op h3 {
  font-family: var(--brand-font-head, Georgia, serif);
  letter-spacing: -.02em; margin: 0 0 .5rem; line-height: 1.12;
}
.tpt-op h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
.tpt-op h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.tpt-op h3 { font-size: 1.15rem; }
.tpt-op h1 em, .tpt-op h2 em { font-style: normal; color: var(--tpt-gold); }
.tpt-op .lead {
  margin: 0 0 1.5rem; max-width: 56ch; color: var(--tpt-muted);
  font-size: clamp(1rem, 1.6vw, 1.12rem);
}
.tpt-op .section { padding: clamp(56px, 8vw, 104px) 5vw; }
.tpt-op .section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 1rem; margin-bottom: 2.25rem;
}
.tpt-op .text-link {
  color: var(--tpt-gold); font-size: .9rem; font-weight: 600;
  border-bottom: 1px solid color-mix(in srgb, var(--tpt-gold) 40%, transparent);
  padding-bottom: 2px;
}
.tpt-op .text-link:hover { border-bottom-color: var(--tpt-gold); }

/* ------------------------------------------------------------------- hero */
.tpt-op .hero {
  position: relative; overflow: hidden;
  min-height: clamp(560px, 82vh, 760px);
  display: grid; place-items: center;
}
.tpt-op .hero-bg { position: absolute; inset: 0; }
.tpt-op .hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 65%,
      color-mix(in srgb, var(--tpt-red) 22%, transparent), transparent 28%),
    linear-gradient(180deg, rgb(0 0 0 / .1), rgb(0 0 0 / .92)),
    repeating-linear-gradient(90deg, rgb(255 255 255 / .02) 0 1px, transparent 1px 90px);
}
.tpt-op .hero-content {
  position: relative; z-index: 1; width: min(1100px, 100%);
  padding: clamp(60px, 10vw, 120px) 5vw; text-align: center;
}
.tpt-op .hero-actions {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  margin-bottom: 2.5rem;
}
.tpt-op .hero-meta {
  display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center;
  color: var(--tpt-muted); font-size: .82rem;
  letter-spacing: .14em; text-transform: uppercase;
}
.tpt-op .hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.tpt-op .hero-meta span::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--tpt-gold);
}

/* ------------------------------------------------------------------ cards */
.tpt-op .card-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.tpt-op .theatre-card {
  display: flex; flex-direction: column;
  background: var(--tpt-panel);
  border: 1px solid var(--tpt-line); border-radius: 18px;
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease;
}
.tpt-op .theatre-card:hover { transform: translateY(-3px); border-color: var(--tpt-gold); }
.tpt-op .theatre-art {
  position: relative; aspect-ratio: 16 / 10;
  background:
    radial-gradient(circle at 50% 120%,
      color-mix(in srgb, var(--tpt-red) 55%, transparent), transparent 60%),
    linear-gradient(180deg, var(--tpt-panel-2), var(--tpt-bg));
  display: grid; place-items: center;
}
.tpt-op .theatre-art img { width: 100%; height: 100%; object-fit: cover; }
.tpt-op .theatre-art .art-badge {
  position: absolute; top: 12px; left: 12px;
  background: rgb(0 0 0 / .55); border: 1px solid color-mix(in srgb, var(--tpt-gold) 40%, transparent);
  color: var(--tpt-gold-2); font-size: .68rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; backdrop-filter: blur(6px);
}
.tpt-op .art-screen {
  width: 46%; aspect-ratio: 16 / 9; border-radius: 6px;
  border: 2px solid color-mix(in srgb, var(--tpt-gold) 45%, transparent);
  display: grid; place-items: center; color: var(--tpt-gold);
  font-size: 1.4rem; background: rgb(0 0 0 / .35);
}
.tpt-op .theatre-body {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 14px; padding: 18px 18px 12px; flex-wrap: wrap;
}
.tpt-op .kicker {
  margin: 0 0 4px; font-size: .68rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--tpt-muted);
}
.tpt-op .theatre-body h3 { margin: 0; }
.tpt-op .price {
  font-family: var(--brand-font-head, Georgia, serif);
  font-size: 1.35rem; font-weight: 700; color: var(--tpt-gold);
  white-space: nowrap;
}
.tpt-op .price small {
  display: block; font-family: inherit; font-size: .68rem;
  font-weight: 500; color: var(--tpt-muted); text-align: right;
}
.tpt-op .card-bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 0 18px 18px; margin-top: auto;
  color: var(--tpt-muted); font-size: .74rem;
}
.tpt-op .card-bottom .btn { padding: 9px 16px; font-size: .82rem; }

/* ------------------------------------------------------------------ split */
.tpt-op .split {
  display: grid; gap: clamp(28px, 5vw, 64px); align-items: center;
  grid-template-columns: 1.05fr .95fr;
}
.tpt-op .stat-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px; margin-top: 2rem;
}
.tpt-op .stat-row div {
  border-top: 1px solid var(--tpt-line); padding-top: 12px;
}
.tpt-op .stat-row strong {
  display: block; font-family: var(--brand-font-head, Georgia, serif);
  font-size: 1.6rem; color: var(--tpt-gold);
}
.tpt-op .stat-row span { font-size: .84rem; color: var(--tpt-muted); }

.tpt-op .feature-panel {
  min-height: 380px; display: grid; place-items: center;
  border: 1px solid var(--tpt-line); border-radius: 22px;
  background:
    radial-gradient(circle at 50% 40%,
      color-mix(in srgb, var(--tpt-red) 30%, transparent), transparent 65%),
    var(--tpt-panel);
  padding: 24px;
}
.tpt-op .feature-panel-inner { text-align: center; }
.tpt-op .screen-glow {
  width: min(280px, 80%); margin: 0 auto 26px; aspect-ratio: 16 / 9;
  border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(180deg, rgb(255 255 255 / .1), rgb(0 0 0 / .3));
  border: 1px solid color-mix(in srgb, var(--tpt-gold) 35%, transparent);
  box-shadow: 0 0 60px color-mix(in srgb, var(--tpt-red) 45%, transparent);
  color: var(--tpt-gold); font-size: .8rem; font-weight: 700; letter-spacing: .2em;
}
.tpt-op .seats {
  display: flex; gap: 8px; justify-content: center; margin-bottom: 14px;
}
.tpt-op .seats i {
  width: 38px; height: 42px; border-radius: 8px 8px 4px 4px;
  background: color-mix(in srgb, var(--tpt-red) 60%, var(--tpt-bg));
  border: 1px solid var(--tpt-line);
}
.tpt-op .feature-panel p {
  margin: 0; font-size: .68rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--tpt-muted);
}

/* -------------------------------------------------------------- occasions */
.tpt-op .occasion-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.tpt-op .occasion-grid article {
  background: var(--tpt-panel); border: 1px solid var(--tpt-line);
  border-radius: 16px; padding: 26px 22px;
  transition: border-color .18s ease, transform .18s ease;
}
.tpt-op .occasion-grid article:hover { border-color: var(--tpt-gold); transform: translateY(-3px); }
.tpt-op .occasion-grid span {
  display: grid; place-items: center; width: 42px; height: 42px;
  margin-bottom: 14px; border-radius: 50%;
  background: color-mix(in srgb, var(--tpt-red) 40%, transparent);
  color: var(--tpt-gold-2); font-size: 1.1rem;
}
.tpt-op .occasion-grid h3 { margin: 0 0 6px; }
.tpt-op .occasion-grid p { margin: 0; color: var(--tpt-muted); font-size: .92rem; }

/* ------------------------------------------------------- booking (embed) */
/* The wizard ships booking-wizard.css and expects to own its own box. All we do
   here is give it a labelled section on the page and make sure our section
   padding does not fight its internal 100vh-ish layout. */
.tpt-op .section-book { padding-top: clamp(40px, 6vw, 72px); }
.tpt-op .section-book > .section-head { margin-bottom: 1.25rem; }

/* -------------------------------------------------------------------- cta */
.tpt-op .cta {
  margin: 0 5vw clamp(48px, 7vw, 80px);
  padding: clamp(32px, 5vw, 56px);
  border: 1px solid var(--tpt-line); border-radius: 24px;
  background:
    radial-gradient(circle at 15% 0%,
      color-mix(in srgb, var(--tpt-red) 40%, transparent), transparent 60%),
    var(--tpt-panel);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.tpt-op .cta h2 { margin: 0; }
.tpt-op .cta .eyebrow { margin-bottom: .35rem; }

/* ------------------------------------------------------------ empty state */
.tpt-op .empty {
  border: 1px dashed var(--tpt-line); border-radius: 16px;
  padding: 34px 24px; text-align: center; color: var(--tpt-muted);
}
.tpt-op .empty h3 { color: var(--tpt-text); margin-bottom: .35rem; }

/* ------------------------------------------------------------ breakpoints */
@media (max-width: 900px) {
  .tpt-op .split { grid-template-columns: 1fr; }
  .tpt-op .hero { min-height: 560px; }
  .tpt-op .cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .tpt-op .section { padding-left: 20px; padding-right: 20px; }
  .tpt-op .stat-row { grid-template-columns: 1fr; }
  .tpt-op .theatre-body { flex-direction: column; }
  .tpt-op .card-bottom { flex-direction: column; align-items: flex-start; }
  .tpt-op .feature-panel { min-height: 300px; }
  .tpt-op .seats i { width: 34px; height: 38px; }
  .tpt-op .cta { margin-left: 20px; margin-right: 20px; }
  .tpt-op .hero-actions .btn { width: 100%; }
}
