/*
  © 2026 In-Tents Events Brisbane. Hero 3D Showcase styles.
  Canvas/hero layout · overlay caption · CTA buttons · reduced-motion + fallback.
  Mobile-first (80% of traffic). The Cloudinary poster <img> is the LCP element and
  must paint instantly; the <canvas> fades in over it once Three.js boots.
*/

/* ── Showcase stage shell (relocated below hero — was .hero) ──── */
.hs-stage {
  position: relative;
  width: 100%;
  min-height: 78vh;
  min-height: 78svh;
  overflow: hidden;
  background: #06101f;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

/* ── Poster (LCP) — full-bleed, painted before JS runs ──────── */
.hs-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  /* slight darken so white captions read; matches old hero-overlay vibe */
  filter: brightness(0.82) saturate(1.02);
}

/* ── Canvas — sits over the poster, fades in when ready ─────── */
#hero-showcase {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.6s ease;
  touch-action: pan-y;            /* let the page scroll past the hero on touch */
  pointer-events: none;           /* cinematic is hands-off; CTA captures taps */
}
#hero-showcase.ready { opacity: 1; }

/* ── Scrim gradient for text legibility (top + bottom) ──────── */
.hs-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(4,12,24,0.45) 0%, rgba(4,12,24,0) 28%),
    linear-gradient(0deg,  rgba(4,12,24,0.62) 0%, rgba(4,12,24,0) 42%);
}

/* ── Overlay — captions, H1/stats, CTA ──────────────────────── */
.hs-overlay {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 24px 20px 40px;
  text-align: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  pointer-events: none;           /* only interactive children re-enable */
}
.hs-overlay a,
.hs-overlay button { pointer-events: auto; }

/* ── Cinematic caption (driven by Director) ─────────────────── */
.hs-caption {
  min-height: 2.4em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2,0.8,0.2,1);
  will-change: opacity, transform;
}
.hs-caption.show { opacity: 1; transform: translateY(0); }
.hs-cap-main {
  font-size: clamp(1.0rem, 3.4vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.9), 0 2px 16px rgba(0,0,0,0.55);
}
.hs-cap-sub {
  font-size: clamp(0.74rem, 2.2vw, 0.9rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d4af37;
  text-shadow: 0 1px 2px rgba(0,0,0,0.92), 0 1px 10px rgba(0,0,0,0.7);
}

/* ── CTA buttons ────────────────────────────────────────────── */
.hs-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2,0.8,0.2,1);
}
.hs-cta.show { opacity: 1; transform: translateY(0); }

.hs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;                /* thumb-friendly tap target */
  padding: 13px 26px;
  border-radius: 12px;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.hs-btn:active { transform: translateY(1px) scale(0.99); }

.hs-btn-primary {
  background: linear-gradient(135deg, #b8912a, #d4af37);
  color: #0a0800;
  box-shadow: 0 8px 28px rgba(212,175,55,0.4);
}
.hs-btn-primary:hover { box-shadow: 0 10px 34px rgba(212,175,55,0.55); }

.hs-btn-secondary {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.5);
  color: #fff;
  backdrop-filter: blur(8px);
}
.hs-btn-secondary:hover { background: rgba(255,255,255,0.16); }

/* ── Fallback / reduced-motion: poster + static caption + CTA ── */
.hs-overlay.hs-static .hs-caption { opacity: 1; transform: none; }
.hs-overlay.hs-static .hs-cta { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  #hero-showcase { display: none; }
  .hs-caption, .hs-cta { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ── Mobile tuning (80% of traffic) ─────────────────────────── */
@media (max-width: 720px) {
  .hs-stage { min-height: 56vh; }
  .hs-overlay { padding: 20px 16px 32px; gap: 13px; }
  .hs-cta { width: 100%; }
  .hs-btn { flex: 1 1 auto; }
}
