/* ==========================================================================
   BRAVO THEME - Hero Section
   Supports: self-hosted video, YouTube, image, slider
   All variants are full-viewport (100vh × 100vw)
   ========================================================================== */

/* ------------------------------------------------------------------
   1. HERO WRAPPER (common)
   ------------------------------------------------------------------ */
.bravo-hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: calc(-50vw + 50%);
}

/* Dark overlay gradient */
.bravo-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0.6) 100%
  );
  z-index: 1;
  pointer-events: none;
}


/* ------------------------------------------------------------------
   2. HERO CONTENT (text overlay)
   ------------------------------------------------------------------ */
.bravo-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: var(--bravo-container-lg);
  padding: 0 var(--bravo-container-padding);
  animation: bravoFadeInUp 1s ease-out 0.3s both;
}

.bravo-hero__subtitle {
  font-family: var(--bravo-font-body);
  font-size: var(--bravo-fs-md);
  font-weight: var(--bravo-fw-medium);
  color: var(--bravo-primary);
  text-transform: uppercase;
  letter-spacing: var(--bravo-ls-wider);
  margin-bottom: var(--bravo-space-4);
}

.bravo-hero__title {
  font-family: var(--bravo-font-heading);
  font-size: var(--bravo-fs-5xl);
  font-weight: var(--bravo-fw-extrabold);
  color: var(--bravo-text-light);
  line-height: var(--bravo-lh-tight);
  letter-spacing: var(--bravo-ls-tight);
  margin-bottom: var(--bravo-space-6);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.bravo-hero__description {
  font-size: var(--bravo-fs-lg);
  color: rgba(255, 255, 255, 0.85);
  line-height: var(--bravo-lh-normal);
  max-width: 600px;
  margin: 0 auto var(--bravo-space-8);
}

.bravo-hero__actions {
  display: flex;
  gap: var(--bravo-space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll indicator */
.bravo-hero__scroll-indicator {
  position: absolute;
  bottom: var(--bravo-space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--bravo-space-2);
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--bravo-fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--bravo-ls-wider);
  animation: bravoPulse 2s ease-in-out infinite;
}

.bravo-hero__scroll-indicator .scroll-arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid rgba(255, 255, 255, 0.7);
  border-bottom: 2px solid rgba(255, 255, 255, 0.7);
  transform: rotate(45deg);
}


/* ------------------------------------------------------------------
   3. SELF-HOSTED VIDEO
   ------------------------------------------------------------------ */
.bravo-hero--video .bravo-hero__media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.bravo-hero--video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Video play/pause button */
.bravo-hero__video-toggle {
  position: absolute;
  bottom: var(--bravo-space-8);
  right: var(--bravo-space-8);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: var(--bravo-radius-full);
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--bravo-transition-fast);
  color: var(--bravo-text-light);
}

.bravo-hero__video-toggle:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.bravo-hero__video-toggle svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}


/* ------------------------------------------------------------------
   4. YOUTUBE VIDEO
   ------------------------------------------------------------------ */
.bravo-hero--youtube .bravo-hero__media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.bravo-hero--youtube .bravo-hero__youtube-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  /* Scale up to hide YouTube black bars */
  width: 120%;
  height: 120%;
  transform: translate(-50%, -50%);
}

.bravo-hero--youtube .bravo-hero__youtube-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

/* YouTube poster fallback (when autoplay blocked) */
.bravo-hero--youtube .bravo-hero__poster {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-size: cover;
  background-position: center;
  transition: opacity var(--bravo-transition-slow);
}

.bravo-hero--youtube .bravo-hero__poster.is-hidden {
  opacity: 0;
  pointer-events: none;
}


/* ------------------------------------------------------------------
   5. IMAGE HERO
   ------------------------------------------------------------------ */
.bravo-hero--image .bravo-hero__media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}


/* ------------------------------------------------------------------
   6. SLIDER HERO
   ------------------------------------------------------------------ */
.bravo-hero--slider .bravo-hero__slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.bravo-hero__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-size: cover;
  background-position: center center;
}

.bravo-hero__slide.is-active {
  opacity: 1;
}

/* Slider dots */
.bravo-hero__slider-dots {
  position: absolute;
  bottom: var(--bravo-space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: var(--bravo-space-2);
}

.bravo-hero__slider-dot {
  width: 12px;
  height: 12px;
  border-radius: var(--bravo-radius-full);
  background-color: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all var(--bravo-transition-fast);
  padding: 0;
}

.bravo-hero__slider-dot.is-active,
.bravo-hero__slider-dot:hover {
  background-color: var(--bravo-primary);
  border-color: var(--bravo-primary);
  transform: scale(1.2);
}
