/* =============================================
   CINEMATIC HERO — Dark Amber Premium Theme
   Desktop: cover fullscreen sharp
   Mobile: blurred bg + sharp full-width video (no crop)
   ============================================= */

/* ── Amber custom properties ── */
:root {
  --ember-950: #0d0700;
  --ember-900: #1a0e00;
  --ember-800: #2e1800;
  --ember-700: #4a2800;
  --ember-600: #6b3d00;
  --ember-500: #8f5200;
  --ember-400: #b86a00;
  --ember-300: #e08330;
  --ember-200: #f0a855;
  --ember-100: #f9d4a0;
  --ember-50:  #fdf2e4;

  --gold:      #f8cd30;
  --gold-dim:  rgba(248,205,48,0.18);

  --hero-height: 100svh;
}

/* ── Hero main shell ── */
.premium-hero {
  position: relative;
  width: 100%;
  height: var(--hero-height);
  min-height: 640px;
  overflow: hidden;
  background: var(--ember-950);
  isolation: isolate;
}

/* ── Slideshow container ── */
.hero-slideshow-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ── Individual slide ── */
.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

/* =============================================
   VIDEO SLIDE
   ============================================= */
.hero-slide-video-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ❌ Blurred background video – hidden on desktop */
.hero-video-bg {
  display: none;
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

/* ✅ Main sharp video – Desktop: cover */
.hero-slide-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  pointer-events: none;
  will-change: transform;
}

/* =============================================
   CINEMATIC OVERLAYS
   ============================================= */
.hero-video-overlays {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.hero-video-overlays::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 85% 80% at 50% 50%,
    transparent 40%,
    rgba(13,7,0,0.25) 75%,
    rgba(13,7,0,0.4) 100%
  );
}

.hero-video-overlays::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 40%,
    rgba(13,7,0,0.25) 70%,
    rgba(13,7,0,0.6) 100%
  );
}

.hero-side-left,
.hero-side-right {
  background: transparent !important;
}

.hero-glow-strip {
  position: absolute;
  top: 15%;
  bottom: 15%;
  left: 0;
  width: 3px;
  z-index: 5;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--ember-400) 30%,
    var(--gold) 50%,
    var(--ember-400) 70%,
    transparent
  );
  opacity: 0.55;
  filter: blur(4px);
  animation: glowPulse 4s ease-in-out infinite;
}

.hero-scanlines {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 3px,
    rgba(0,0,0,0.04) 3px,
    rgba(0,0,0,0.04) 4px
  );
  opacity: 0.6;
}

.hero-amber-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  z-index: 6;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(74,40,0,0.35) 0%,
    transparent 100%
  );
}

/* =============================================
   TEXT CONTENT
   ============================================= */
.hero-content-wrapper {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: flex-end;
  padding-bottom: 5rem;
  pointer-events: none;
}

.hero-text-block {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease 0.2s, transform 0.9s ease 0.2s;
  pointer-events: none;
  width: 100%;
}

.hero-text-block.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hero-text-inner {
  max-width: 760px;
  color: #fff;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(248,205,48,0.12);
  border: 1px solid rgba(248,205,48,0.35);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  padding: 0.35rem 1rem;
  border-radius: 30px;
  margin-bottom: 1.1rem;
  backdrop-filter: blur(8px);
}

.hero-title-accent {
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(to right, var(--gold), var(--ember-300));
  border-radius: 2px;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -1px;
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    #f9d4a0 40%,
    #ffffff 65%,
    #f0a855 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 2.2rem;
  opacity: 0.85;
  font-weight: 400;
  max-width: 540px;
  line-height: 1.65;
  color: var(--ember-100);
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 2.2rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--ember-300) 100%);
  color: var(--ember-900);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
  box-shadow: 0 4px 20px rgba(248,205,48,0.30), 0 0 0 0 rgba(248,205,48,0);
  letter-spacing: 0.3px;
}

.btn-hero:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
  box-shadow: 0 8px 32px rgba(248,205,48,0.40), 0 0 40px rgba(248,205,48,0.15);
  color: var(--ember-900);
}

.btn-hero i {
  transition: transform 0.3s ease;
}

.btn-hero:hover i {
  transform: translateX(4px);
}

/* =============================================
   SOUND TOGGLE
   ============================================= */
.hero-sound-toggle {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  z-index: 20;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(248,205,48,0.30);
  background: rgba(30,15,0,0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--ember-200);
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
}

.hero-sound-toggle:hover {
  background: rgba(248,205,48,0.15);
  border-color: rgba(248,205,48,0.55);
  color: var(--gold);
  transform: scale(1.1);
}

/* =============================================
   NAVIGATION DOTS
   ============================================= */
.hero-dots-container {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
}

.hero-nav-dots {
  display: flex;
  gap: 10px;
  align-items: center;
}

.hero-nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(240,168,85,0.35);
  border: 1.5px solid rgba(240,168,85,0.6);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.hero-nav-dot.active {
  background: var(--gold);
  border-color: var(--gold);
  width: 28px;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(248,205,48,0.55);
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes glowPulse {
  0%, 100% { opacity: 0.35; transform: scaleY(1); }
  50%       { opacity: 0.70; transform: scaleY(1.04); }
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  overflow: hidden;
}

.hero-particle {
  position: absolute;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  animation: particleDrift var(--dur, 8s) ease-in-out infinite var(--delay, 0s);
}

@keyframes particleDrift {
  0%   { opacity: 0;    transform: translateY(0) scale(0.6); }
  20%  { opacity: 0.55; }
  80%  { opacity: 0.30; }
  100% { opacity: 0;    transform: translateY(-120px) scale(1); }
}

/* =============================================
   STATIC IMAGE SLIDE (fallback)
   ============================================= */
.hero-slide-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.75) saturate(1.1);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 992px) {
  .hero-content-wrapper {
    padding-bottom: 4rem;
  }
}

/*
   ⚡ MOBILE: cinematic widescreen look
   - Blurred background fills entire screen
   - Sharp video: width 100%, height auto (full width, no crop)
   - Beautiful red/pinkish ambiance
*/
@media (max-width: 768px) {
  /* 1. Blurred background video (full screen) */
  .hero-video-bg {
    display: block !important;
    position: absolute;
    inset: -10%;
    width: 120%;
    height: 120%;
    object-fit: cover;
    filter: blur(30px) brightness(0.55) saturate(2);  /* brighter, richer colors */
    transform: scale(1.05);
    will-change: transform;
    z-index: 1;
  }

  /* 2. Sharp foreground video – full width, auto height (no crop) */
  .hero-slide-video {
    position: absolute;
    width: 100%;
    height: auto;
    /* center vertically */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: contain;           /* just in case, though width/height handles it */
    max-height: 100vh;             /* never exceed screen height */
    z-index: 2;
    /* optional: add a subtle cinematic shadow to make it pop */
    box-shadow: 0 0 60px rgba(0,0,0,0.6);
    border-radius: 4px;
  }

  /* 3. Tiny text blocks */
  .hero-content-wrapper {
    padding-bottom: 1.5rem;
    align-items: flex-end;
    z-index: 15;                   /* above the video shadow but below sound toggle */
  }

  .hero-text-inner {
    max-width: 260px;
    padding: 0 0.5rem;
    text-align: left;
  }

  .hero-badge {
    font-size: 0.6rem;
    padding: 0.2rem 0.6rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
  }

  .hero-title-accent {
    width: 32px;
    margin-bottom: 0.5rem;
  }

  .hero-title {
    font-size: 1.4rem !important;
    line-height: 1.2;
    background: none;
    -webkit-text-fill-color: #ffffff;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
  }

  .hero-subtitle {
    font-size: 0.8rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    max-width: 230px;
    line-height: 1.4;
  }

  .btn-hero {
    padding: 0.5rem 1.3rem;
    font-size: 0.75rem;
    gap: 0.4rem;
  }

  .btn-hero i {
    font-size: 1rem;
  }

  .hero-sound-toggle {
    bottom: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .hero-particles {
    opacity: 0.3;
  }

  /* side gradients hidden */
  .hero-side-left,
  .hero-side-right {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-text-inner {
    max-width: 220px;
  }
  .hero-title {
    font-size: 1.2rem !important;
  }
  .hero-subtitle {
    font-size: 0.72rem;
    max-width: 200px;
  }
  .btn-hero {
    padding: 0.4rem 1rem;
    font-size: 0.7rem;
  }
}

/* =============================================
   REDUCED MOTION
   ============================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-text-block,
  .hero-text-block.active,
  .hero-glow-strip,
  .hero-particle,
  .btn-hero:hover,
  .hero-sound-toggle:hover {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  .hero-text-block { opacity: 1; }
}