/* ═══ VIDEO HERO (reusable) ═══════════════════════════════════════════════
   Headline + subline + signup button in a frosted glass panel (the Side Quests
   hero panel, value for value), and a video in the same glass that plays on click.
   Used on For Parents. Markup: <header class="vh vh--glass" data-video=...>.
   Swapping the video = changing data-video on the header (see video-hero.js).
   ═════════════════════════════════════════════════════════════════════════ */

.vh { --ink: #0A3A40; --teal: #088188; --cream: #FBF8F1; --orange: #E26B1A; --nav: 76px;
  position: relative; box-sizing: border-box; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; }
.vh *, .vh *::before, .vh *::after { box-sizing: border-box; }
.vh-body { position: relative; z-index: 2; flex: 1; width: 100%; margin: 0 auto;
  padding: calc(var(--nav) + clamp(12px, 3vh, 36px)) clamp(18px, 4.5vw, 64px) clamp(24px, 5vh, 60px); }

/* type: Picnic Club H1 like every page */
html body .vh h1.vh-title:not(#_pr) { line-height: 1.06 !important; letter-spacing: -.012em; margin: 0; text-wrap: balance; }
.vh-title .line { display: block; }
.vh-title em { font-style: italic; }
.vh-keep { white-space: nowrap; }   /* keeps the last words of a line together: no one-word last lines */
.vh-sub { margin: 18px 0 0; text-wrap: pretty; }
.vh-ctas { display: flex; flex-wrap: wrap; align-items: center; }

/* button base */
.vh-btn { display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none; }

/* the video button */
.vh-video { position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer; font: inherit; color: inherit; text-align: left; background: none; }
.vh-video:focus-visible { outline: 3px solid var(--orange); outline-offset: 6px; }
.vh-shot { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); }
.vh-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 600ms cubic-bezier(.2,.7,.2,1); }
.vh-shot::after { content: ''; position: absolute; inset: 0; transition: background 200ms; }
.vh-video:hover .vh-shot img { transform: scale(1.035); }
.vh-video:hover .vh-shot::after { background: rgba(10,58,64,.22); }
.vh-play { position: absolute; z-index: 2; left: 50%; top: 50%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: transform 220ms cubic-bezier(.2,.7,.2,1); }
/* the triangle sits on its optical centre (path drawn a hair right of the box centre, no margin hacks) */
.vh-play svg { width: 36%; height: 36%; }
.vh-play::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid; animation: vh-ring 2.6s 1.4s ease-out infinite; }
@keyframes vh-ring { 0% { transform: scale(1); opacity: .9; } 70%, 100% { transform: scale(1.5); opacity: 0; } }
.vh-video:hover .vh-play { transform: translate(-50%, -50%) scale(1.08); }

/* ─────────────────────────── GLASS ─────────────────────────── */
.vh--glass { color: var(--cream); background: var(--ink); }
.vh--glass .vh-bg { position: absolute; inset: 0; z-index: 0; }
.vh--glass .vh-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.vh--glass .vh-bg::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,58,64,.82) 0%, rgba(10,58,64,.5) 45%, rgba(10,58,64,.6) 100%), linear-gradient(0deg, rgba(10,58,64,.55), rgba(10,58,64,0) 40%); }
.vh--glass .vh-body { display: grid; grid-template-columns: min(640px, 58%) minmax(0, 1fr); gap: clamp(32px, 4.5vw, 72px); align-items: center;
  padding-left: clamp(16px, 2.4vw, 32px); padding-right: clamp(32px, 4.5vw, 72px); }

/* the copy panel = the Side Quests hero panel, value for value (side-questing.html .yp-panel, h1, p, submit button) */
.vh--glass .vh-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 640px; padding: clamp(26px, 3.2vw, 40px) clamp(26px, 3vw, 40px); border-radius: 26px;
  background: rgba(10,58,64,.62); border: 1px solid rgba(255,255,255,.14); color: #fff; box-shadow: 0 24px 60px rgba(4,26,33,.36);
  backdrop-filter: blur(14px) saturate(1.1); -webkit-backdrop-filter: blur(14px) saturate(1.1); }
html body .vh--glass h1.vh-title:not(#_pr) { font-size: clamp(48px, 6vw, 76px) !important; line-height: 1.04 !important; letter-spacing: -.01em; color: #fff; text-wrap: wrap; }
.vh--glass .vh-sub { margin: 0; font: 400 clamp(16px, 1.6vw, 18.5px)/1.6 'Raleway', system-ui, sans-serif; color: rgba(255,255,255,.86); max-width: 46ch; }
.vh--glass .vh-ctas { margin-top: 2px; gap: 12px; }
.vh--glass .vh-cta { padding: 15px 28px; background: #0B8A8F; color: #fff; font: 600 17px/1.3 'Raleway', system-ui, sans-serif; gap: 9px;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease, background .2s ease; }
.vh--glass .vh-cta:hover { background: #0A6B70; transform: translateY(-2px); box-shadow: 0 8px 18px -6px rgba(7,38,46,.35); }
.vh--glass .vh-cta:active { transform: translateY(0) scale(.98); }

/* the video panel: the same glass as the copy panel (tint, blur, hairline, radius, shadow) */
.vh--glass .vh-video { padding: 12px; border-radius: 26px; color: #fff;
  background: rgba(10,58,64,.62); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 24px 60px rgba(4,26,33,.36);
  backdrop-filter: blur(14px) saturate(1.1); -webkit-backdrop-filter: blur(14px) saturate(1.1); transition: transform .25s cubic-bezier(.2,.8,.2,1), border-color .2s; }
.vh--glass .vh-video:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.28); }
.vh--glass .vh-shot { border-radius: 16px; }
.vh--glass .vh-shot img { object-position: 50% 12%; }
.vh--glass .vh-shot::after { background: rgba(10,58,64,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); border-radius: inherit; }
.vh--glass .vh-play { width: clamp(64px, 5.8vw, 84px); background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.55);
  backdrop-filter: blur(12px) saturate(1.2); -webkit-backdrop-filter: blur(12px) saturate(1.2); }
.vh--glass .vh-play svg { fill: #fff; }
.vh--glass .vh-play::before { border-color: rgba(255,255,255,.6); }
.vh--glass .vh-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 10px 6px 12px; }
.vh--glass .vh-foot .t { font: 600 clamp(15px, 1.2vw, 17px)/1.35 'Raleway', system-ui, sans-serif; color: rgba(255,255,255,.92); }
.vh--glass .vh-foot .go { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px 10px 13px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.24); color: #fff; font: 600 14px/1 'Raleway', system-ui, sans-serif; transition: background .2s; }
.vh--glass .vh-foot .go svg { width: 11px; height: 11px; fill: currentColor; }
.vh--glass .vh-video:hover .vh-foot .go { background: rgba(255,255,255,.2); }

/* ─────────────────────────── tablets / phones ─────────────────────────── */
@media (max-width: 900px) {
  .vh { --nav: 68px; }
  .vh--glass .vh-body { grid-template-columns: 1fr; gap: 26px; align-content: center; }
}
@media (max-width: 760px) {
  .vh--glass .vh-body { padding: calc(var(--nav) + 8px) 14px 24px; }
  .vh--glass .vh-copy { max-width: none; }
}
@media (max-width: 620px) {
  .vh { --nav: 60px; }
  html body .vh--glass h1.vh-title:not(#_pr) { font-size: clamp(30px, 8.6vw, 38px) !important; }
  .vh--glass .vh-sub { font-size: 16px; }
  .vh-sub br { display: none; }
  .vh--glass .vh-video { padding: 8px; border-radius: 20px; }
  .vh--glass .vh-shot { border-radius: 13px; }
  .vh--glass .vh-foot { padding: 11px 4px 3px 6px; }
  .vh--glass .vh-foot .t { font-size: 14px; }
  .vh--glass .vh-foot .go { padding: 9px 13px 9px 10px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .vh-play::before { animation: none; display: none; } }

/* ─────────────────────────── player lightbox ─────────────────────────── */
.vh-ov { position: fixed; inset: 0; z-index: 9998; display: none; align-items: center; justify-content: center;
  padding: clamp(16px, 4vw, 40px); background: rgba(8,32,38,.86); backdrop-filter: blur(3px); }
.vh-ov[data-open] { display: flex; }
.vh-ov-card { position: relative; width: 100%; max-width: min(1100px, 100%); display: flex; justify-content: center; padding-top: 56px; }
.vh-ov-frame { position: relative; width: auto; max-width: 100%; height: min(70vh, 760px); aspect-ratio: 16 / 9; border-radius: 14px; background: #000; }
.vh-ov-frame iframe, .vh-ov-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; border-radius: 14px; }
.vh-ov-close { position: absolute; top: -56px; right: 0; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: #fff; color: #0A3A40; font-size: 19px; line-height: 1; display: flex; align-items: center; justify-content: center; }
@media (max-width: 860px) { .vh-ov-frame { height: auto; width: 100%; max-height: 64vh; } }
