/* ==========================================================================
   Hero Component
   Reusable full-width hero section with background media and overlay
   ========================================================================== */

/* --------------------------------------------------------------------------
   Base Hero Block
   -------------------------------------------------------------------------- */
.hero {
margin-top: 7rem;
  position: relative;
  min-height: calc(100vh - 7rem);
  display: flex;
  align-items: flex-start;
  padding-inline: clamp(2rem, 7vw, 6rem);
  padding-bottom: clamp(5rem, 14vh, 9rem);
  padding-top: clamp(8rem, 15vh, 10rem);
  overflow: hidden;
}

/* Modifier: Full viewport height */
.hero--fullscreen {
  min-height: 100vh;
}

/* Modifier: Shorter hero (70vh) */
.hero--compact {
  min-height: 70vh;
}

/* Modifier: Align content at top */
.hero--top {
  align-items: flex-start;
  padding-top: clamp(8rem, 15vh, 10rem);
  padding-bottom: clamp(5rem, 14vh, 9rem);
}

/* Modifier: Center content vertically and horizontally */
.hero--centered {
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Hero Elements
   -------------------------------------------------------------------------- */

/* Background media container */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img,
.hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05);
}

/* Gradient overlay */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.25) 0%, rgba(18, 18, 18, 0.6) 100%);
  z-index: 1;
}

/* Overlay modifier for bottom-only gradient */
.hero__overlay--bottom {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 50%);
}

/* Content container */
.hero__content {
  position: relative;
  z-index: 2;
  max-width: min(68vw, 840px);
  display: flex;
  flex-direction: column;
  gap: clamp(1.4rem, 3vw, 2.1rem);
  align-items: flex-start;
}

/* Centered content modifier */
.hero__content--centered {
  align-items: center;
  text-align: center;
}

/* Hero title */
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 7.2rem);
  line-height: 1.08;
  letter-spacing: 0.02em;
  color: var(--color-background);
  text-transform: none;
}

.hero__title span {
  display: block;
}

/* Hero subtitle/kicker */
.hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  letter-spacing: 0.35em;
  text-transform: none;
  color: rgba(249, 248, 246, 0.75);
}

.hero__subtitle--story {
  margin-top: 1rem;
  opacity: 0.9;
  letter-spacing: 0.1em;
  max-width: 60ch;
}

/* Scroll indicator or meta info (location/date) */
.hero__scroll-indicator,
.hero__location-info {
  position: absolute;
  bottom: clamp(2.5rem, 6vh, 4rem);
  left: 50%;
  transform: translateX(-50%) !important;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(249, 248, 246, 0.75);
  width: 100%;
  text-align: center;
  padding-inline: 1rem;
}

.hero__location-info {
  bottom: clamp(4rem, 10vh, 6rem);
}

.hero__scroll-line {
  display: block;
  width: 1px;
  height: 52px;
  background: rgba(249, 248, 246, 0.75);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-background);
  transform: translateY(-100%);
  animation: hero-scroll-pulse 2.4s ease-in-out infinite;
}

@keyframes hero-scroll-pulse {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  40% {
    transform: translateY(0%);
    opacity: 1;
  }
  100% {
    transform: translateY(100%);
    opacity: 0;
  }
}

/* --------------------------------------------------------------------------
   Responsive Adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .hero {
    min-height: calc(100vh - 5rem);
    padding-inline: clamp(1.5rem, 6vw, 4rem);
  }
}

@media (max-width: 720px) {
  .hero {
    padding-inline: clamp(1.4rem, 7vw, 2.5rem);
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__title {
    font-size: clamp(2.4rem, 12vw, 4.4rem);
  }

  .hero__scroll-indicator {
    font-size: 0.6rem;
    letter-spacing: 0.32em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__scroll-line::after {
    animation: none;
  }
}
