/* ================================================
   LumaVid Hero v1.0.1
   Layout: bottom-left content + right-side scene switcher
   ================================================ */

.lvh-hero *, .lvh-hero *::before, .lvh-hero *::after {
  box-sizing: border-box; margin: 0; padding: 0;
}

.lvh-hero {
  --lvh-glow:        #C9A84C;
  --lvh-overlay:     #000000;
  --lvh-trans:       700ms;
  --lvh-ease:        cubic-bezier(0.4,0,0.2,1);
  --lvh-content-pad: 48px;   /* left/bottom padding for content */
  --lvh-sw-width:    420px;  /* switcher zone width on right */

  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: #060a12;
  font-family: 'DM Sans', 'Manrope', sans-serif;
  color: #fff;
}

/* ── VIDEO STAGE ─────────────────────────────────── */
.lvh-video-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.lvh-video-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--lvh-trans) var(--lvh-ease);
}

.lvh-video-layer.active  { opacity: 1; z-index: 1; }
.lvh-video-layer.exiting { opacity: 0; z-index: 0; }

.lvh-video-el {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  z-index: 1;
}

.lvh-poster-bg {
  position: absolute;
  inset: 0;
  /* FIX 1: raised from z-index:0 to z-index:2 — must sit above .lvh-video-el
     which is z-index:1, otherwise the poster is always hidden behind the video */
  z-index: 2;
  background-color: #060a12; /* FIX 6: fallback when no poster URL is set */
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.lvh-poster-bg.visible { opacity: 1; }

.lvh-poster-fallback {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

/* ── IFRAME EMBED WRAPPER ─────────────────────────────── */
.lvh-iframe-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

/* Override the inline padding-top:56.25% wrapper that Cloudflare Stream injects,
   forcing it to fill the entire layer instead */
.lvh-iframe-wrapper > div[style*="padding-top"] {
  position: absolute !important;
  inset: 0 !important;
  padding-top: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

.lvh-iframe-wrapper iframe {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border: none !important;
  object-fit: cover;
  /* Scale up to cover aspect-ratio letterboxing for 16:9 iframes on non-16:9 viewports */
  transform: scale(1.2);
  transform-origin: center center;
}

/* Dark gradient overlay — heavier on left/bottom for text legibility */
.lvh-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(to right,  rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.35) 55%, rgba(0,0,0,0.10) 100%),
    linear-gradient(to top,    rgba(0,0,0,0.80) 0%, rgba(0,0,0,0.30) 50%, rgba(0,0,0,0.05) 100%);
  transition: opacity 0.6s ease;
}

.lvh-ambient-glow {
  position: absolute;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, var(--lvh-glow) 0%, transparent 70%);
  opacity: 0.06;
  z-index: 2;
  pointer-events: none;
  transition: background 0.7s ease;
  animation: lvhGlow 5s ease-in-out infinite alternate;
}

@keyframes lvhGlow {
  from { opacity: 0.04; transform: translateX(-50%) scale(1); }
  to   { opacity: 0.10; transform: translateX(-50%) scale(1.06); }
}

/* ── BOTTOM-LEFT CONTENT ─────────────────────────── */
.lvh-content {
  position: absolute;
  bottom: var(--lvh-content-pad);
  left: var(--lvh-content-pad);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 25px;
  max-width:800px;
  margin-bottom: 6px;
  width: calc(100% - var(--lvh-sw-width) - var(--lvh-content-pad) * 2);
}

/* Badge pill */
.lvh-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.9);
  animation: lvhFadeUp 0.6s ease both;
}

.lvh-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.8;
  animation: lvhPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes lvhPulse {
  0%,100% { opacity: 0.8; transform: scale(1); }
  50%     { opacity: 0.3; transform: scale(0.6); }
}

/* Headline group */
.lvh-headline-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: lvhFadeUp 0.6s 0.1s ease both;
}

.lvh-eyebrow {
  font-family: 'Manrope', sans-serif;
    font-size: clamp(0.95rem, 1.4vw, 2.5rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  opacity: 0.9;
	margin-bottom:5px;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.lvh-headline {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(1.8rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
	text-align:center;
  color: #fff;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.lvh-subheading {
  font-size: clamp(0.88rem, 1.4vw, 1rem);
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  margin-top: 6px;
  max-width: 480px;
}

/* CTA Button */
.lvh-cta {
    display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-family: Manrope, sans-serif;
	font-size: 18px;
	font-weight: 500;
	color: rgb(255, 255, 255);
	line-height: 25px;
	letter-spacing: 0.02em;
	box-shadow: rgba(211, 45, 39, 0.3) 0px 0px 0px 10px !important;
	gap: 0px;
	padding: 18px 48px;
	border-radius: 100px;
	border-width: medium;
	border-style: none;
	border-color: currentcolor;
	border-image: initial;
	text-decoration: none;
	overflow: hidden;
	background: linear-gradient(135deg, rgb(198, 40, 34), rgb(233, 138, 144))!important;
	transition: background 0.2s, box-shadow 0.2s, transform 0.15s, padding 0.35s cubic-bezier(0.77, 0, 0.175, 1), gap 0.35s cubic-bezier(0.77, 0, 0.175, 1);
}

.lvh-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(229,57,53,0.6);
  filter: brightness(1.08);
  color: #fff;
  text-decoration: none;
}

.lvh-cta:active { transform: translateY(0); }

/* ── SCENE TEXT TRANSITIONS ──────────────────────── */
.lvh-eyebrow, .lvh-headline, .lvh-subheading { will-change: opacity, transform; }

.lvh-text-exit {
  opacity: 0 !important;
  transform: translateY(-8px) !important;
  transition: opacity 0.25s ease, transform 0.25s ease !important;
}

.lvh-text-enter {
  opacity: 0;
  transform: translateY(10px);
}

.lvh-text-active {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: opacity 0.45s ease, transform 0.45s ease !important;
}

/* ══════════════════════════════════════════════════
   RIGHT-SIDE COVERFLOW — 3D perspective carousel
   Matches Canstar Lights Hero design language:
   · Active card: front-center, full size, white border
   · Side cards:  rotateY + translateZ + scale shrink
   · Far cards:   hidden (opacity 0)
   · Red gradient arrow buttons
   · Frosted glass label pill below
   ════════════════════════════════════════════════ */

/* Outer column wrapper */
.lvh-switcher {
  position: absolute;
  right: 32px;
  bottom: var(--lvh-content-pad);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: var(--lvh-sw-width);
  flex-shrink: 0;
}

/* Coverflow stage — perspective container */
.lvh-cf-stage {
  position: relative;
  width: 100%;
  height: 150px;
  perspective: 900px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Arrow buttons — red radial gradient matching Canstar style */
.lvh-sw-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background:
    radial-gradient(ellipse 55% 80% at 22% 50%, #ff6868 0%, transparent 70%),
    radial-gradient(ellipse at 50% 30%, #e03535 0%, #b01e1e 60%, #7a0f0f 100%);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 18px rgba(0,0,0,0.55);
  flex-shrink: 0;
  color: #fff;
}

.lvh-sw-arrow:hover {
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 4px 22px rgba(160,20,20,0.6);
}

.lvh-sw-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.lvh-sw-arrow svg { width: 16px; height: 16px; pointer-events: none; }

.lvh-sw-prev { left: 0; }
.lvh-sw-next { right: 0; }

/* Cards container — 3D preserved, centered */
.lvh-cf-cards {
  position: absolute;
  left: 50px;
  right: 50px;
  top: 0;
  bottom: 0;
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Individual coverflow card */
.lvh-cf-card {
  position: absolute;
  width: 150px;
  height: 100px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    transform    0.55s cubic-bezier(0.77,0,0.175,1),
    opacity      0.45s ease,
    border-color 0.3s ease;
  transform-origin: center center;
  transform-style: preserve-3d;
  box-shadow: 0 8px 32px rgba(0,0,0,0.7);
}

/* Active card — front, full, white border */
.lvh-cf-card.active {
  border-color: #fff;
  z-index: 5;
}

/* Thumbnail image */
.lvh-cf-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%!important;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Placeholder when no image */
.lvh-cf-card__placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
}

/* Color tint overlay (optional per-scene tint) */
.lvh-cf-card__tint {
  position: absolute;
  inset: 0;
/*   mix-blend-mode: color; */
  z-index: 1;
  pointer-events: none;
	display:none;
}

/* Dim overlay — fades out on active card */
.lvh-cf-card__dim {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.42);
  transition: opacity 0.4s ease;
  z-index: 3;
  border-radius: 9px;
}

.lvh-cf-card.active .lvh-cf-card__dim { opacity: 0; }

/* Checkmark badge on active card */
.lvh-cf-card__check {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--lvh-glow, #C9A84C);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  z-index: 5;
  animation: lvhCheckPop 0.3s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes lvhCheckPop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* Label pill below coverflow */
.lvh-sw-label {
  font-family: 'Manrope', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  text-align: center;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 8px 36px;
/*   white-space: nowrap; */
  min-width: 140px;
  box-shadow: inset 3px 3px 10px rgba(255,255,255,0.18);
  transition: color 0.35s ease,
              border-color 0.35s ease,
              box-shadow 0.35s ease;
}

/* ── ANIMATIONS ──────────────────────────────────── */
@keyframes lvhFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .lvh-hero *, .lvh-hero *::before, .lvh-hero *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── RESPONSIVE — TABLET ≤ 960px ─────────────────── */
@media (max-width: 960px) {
  .lvh-hero {
    --lvh-content-pad: 36px;
    --lvh-sw-width:    340px;
  }

  .lvh-headline { font-size: clamp(1.6rem, 4vw, 2.6rem); text-align: left; }

  .lvh-cf-stage { height: 130px; }
  .lvh-cf-card  { width: 118px; height: 80px; }
}

/* ── RESPONSIVE — MOBILE ≤ 640px ─────────────────── */
@media (max-width: 640px) {

  .lvh-hero{
    --lvh-content-pad:20px;
    --lvh-sw-width:100%;

    min-height:auto;
    padding-bottom:30px;
    background:#020817;
  }

  /* VIDEO AREA */
  .lvh-video-stage{
/*     position:relative; */
    height:210px;
    min-height:210px;
	  top:18%;
  }

  /* CONTENT */
   .lvh-content{
	   bottom: auto;
	   top: 60%;
	   transform: translateY(-50%);
	   left: var(--lvh-content-pad);
	   right: var(--lvh-content-pad);
	   width: auto;
	   gap: 20px;
	   max-width: 100%;
	   align-items: center;
    }

  /* BADGE */
  .lvh-badge{
    font-size:10px;
    padding:5px 12px;
  }

  /* TEXT */
  .lvh-headline-group{
    width:100%;
    align-items:center;
  }

  .lvh-eyebrow{
    font-size:15px;
    margin-bottom:4px;
  }
  .lvh-subheading{
    text-align:center;
  }

  /* CTA */
  .lvh-cta{
    padding: 8px 20px;
    font-size: 0.85rem;
    box-shadow: rgba(211, 45, 39, 0.3) 0px 0px 0px 6px !important;
    line-height: 20px;
  }

  /* SWITCHER */
  .lvh-switcher{
    right: auto;
	  left: 50%;
	  transform: translateX(-50%);
	  bottom: 24px;
	  width: calc(100% - 32px);
	  max-width: 100%;
  }

  /* COVERFLOW */
  .lvh-cf-stage{
    height:110px;
    width:100%;
  }

  .lvh-cf-cards{
    left:36px;
    right:36px;
  }

  .lvh-cf-card{
    width: 145px;
    height: 100px;
    border-radius:14px;
  }

  .lvh-cf-card.active{
    transform:translateX(0) scale(1)!important;
  }

  /* ARROWS */
  .lvh-sw-arrow{
    width:34px;
    height:34px;
  }

  /* LABEL */
/*.lvh-sw-label{
    width:84%;
    max-width:300px;
    padding:16px 24px;
    font-size:15px;
    border-radius:999px;
    background:rgba(255,255,255,.08);
    border:1px solid rgba(255,255,255,.22);
    backdrop-filter:blur(14px);
    box-shadow:
      0 0 20px rgba(255,255,255,.06),
      inset 0 0 20px rgba(255,255,255,.04);
  }
 */
}
/* ── RESPONSIVE — SMALL MOBILE ≤ 400px ──────────── */
@media (max-width: 400px) {
  .lvh-headline { font-size: clamp(1.3rem, 6vw, 1.8rem); text-align: center;}
  .lvh-cf-stage { height: 100px; }
  .lvh-cf-card  { width: 120px;height: 80px;}
}
