/* Video Promo Structure — Component 16
   Skeleton: section wrapper, 16:9 container, poster overlay, curtain text
   Supports both poster-only (no video yet) and full video playback
   Poster creative (backgrounds, headline text, colors) stays page-level
   Button: use btn-hero-primary (global), not video-play-pill */

/* ---- Section Wrapper ---- */
.promo-video {
  background: var(--white);
  padding: 5px 0;
}

.promo-video--dark {
  background: var(--black);
}

/* ---- Container ---- */
.promo-video-wrap {
  max-width: 1600px;
  margin: 0 auto;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

/* ---- Video Element (when present) ---- */
.promo-video-wrap video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* ---- Poster Overlay ---- */
.video-poster {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: opacity 0.5s ease;
  overflow: hidden;
  border-radius: 4px;
  background: var(--white);
}

.promo-video--dark .video-poster {
  background: var(--black);
}

/* JS toggle — poster hides on play, returns on video end */
.video-poster.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ---- Poster Background Layer (optional page-level creative) ---- */
.video-poster-bg {
  position: absolute;
  inset: 0;
}

/* ---- Poster Content ---- */
.video-poster-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px;
}

/* ---- Curtain Text ---- */
.video-curtain-label {
  font-size: clamp(1rem, 2vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.22);
  margin-bottom: 20px;
  display: block;
}

.promo-video--dark .video-curtain-label {
  color: rgba(255,255,255,0.48);
}

.video-curtain-line {
  display: block;
  font-size: clamp(60px, 10vw, 140px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.90;
}

.video-curtain-line.gold { color: var(--gold); }
.video-curtain-line.white { color: var(--white); }
.video-curtain-line.electric-blue { color: var(--electric-blue); }
.video-curtain-line.electric-purple { color: var(--electric-purple); }

.video-poster-content .btn-hero-primary {
  margin-top: 48px;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .promo-video {
    padding: 40px 0;
  }

  .video-poster-content {
    padding: 20px;
  }

  .video-curtain-line {
    font-size: clamp(44px, 10vw, 60px);
  }

  .video-curtain-label {
    margin-bottom: 12px;
  }

  .video-poster-content .btn-hero-primary {
    margin-top: 28px;
    padding: 16px 44px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .video-poster-content {
    padding: 12px;
  }

  .video-curtain-line {
    font-size: clamp(36px, 9vw, 44px);
  }

  .video-curtain-label {
    font-size: clamp(0.75rem, 2vw, 1rem);
    margin-bottom: 8px;
    letter-spacing: 0.20em;
  }

  .video-poster-content .btn-hero-primary {
    margin-top: 20px;
    padding: 14px 36px;
    font-size: 15px;
  }
}
