/* =========================================================
   🎬 HERO – COMPONENT (GLOBAL)
   ========================================================= */

.hero-section {
  position: relative;
  width: 100%;

  min-height: clamp(280px, 40vw, 520px);
  padding: var(--spacing-xl) var(--spacing-lg);

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  color: #fff;

  overflow: hidden;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


/* =========================================================
   📦 INNER CONTENT
   ========================================================= */

.hero-inner {
  position: relative;
  z-index: 2;

  max-width: 800px;
  margin: 0 auto;

  padding: var(--spacing-lg) var(--spacing-md);

  background: rgba(0,0,0,0.3);
  border-radius: var(--radius-lg);
}

.hero-inner h1 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: var(--spacing-sm);
  text-shadow: 0 2px 6px rgba(0,0,0,.5);
}

.intro-text {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #f0f0f0;

  text-shadow: 0 1px 3px rgba(0,0,0,.4);
}


/* =========================================================
   🌑 OVERLAY
   ========================================================= */

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 1;
  pointer-events: none;
}


/* =========================================================
   🖼️ BACKGROUND (IMG / VIDEO)
   ========================================================= */

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}


/* =========================================================
   🎥 VIDEO MODE
   ========================================================= */

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-section.has-video {
  height: 100vh;
  min-height: 100vh;
  padding: 0;
}

.hero-section.has-video .hero-video {
  position: absolute;
  top: 50%;
  left: 50%;

  min-width: 100%;
  min-height: 100%;

  transform: translate(-50%, -50%);
}


/* =========================================================
   📱 RESPONSIVE VIDEO FIX
   ========================================================= */

@media (max-width: 768px) {

  .hero-section.has-video {
    min-height: 100svh;
  }

  .hero-section.has-video .hero-video {
    width: 100%;
    height: 100%;
    transform: none;
    top: 0;
    left: 0;
  }

}