/* ==========================================================================
   UNTERRO - HERO SECTION COMPONENT (MOBILE-FIRST)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Main Hero Container (.hero)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center; /* Vertically center align layout on the left */
  padding-bottom: 0; /* Centered layout has no bottom padding offset */
  background-color: var(--color-bg-dark);
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   2. Background Video, Slides & Overlay
   -------------------------------------------------------------------------- */
.hero__video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Responsive video visibility: mobile (< 768px) vs desktop (>= 768px) */
.hero__video--desktop {
  display: none;
}

.hero__video--mobile {
  display: block;
}

@media (min-width: 768px) {
  .hero__video--desktop {
    display: block !important;
  }
  .hero__video--mobile {
    display: none !important;
  }
}

.hero__slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0; /* Animated via GSAP */
  transform: scale(1.02); /* Starting scale for zoom transitions */
  will-change: transform, opacity;
}

/* Legibility overlay gradient */
.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(16, 15, 14, 0.45) 0%,   /* Darken top to highlight header */
    rgba(16, 15, 14, 0.15) 45%,  /* Transparent center for image details */
    rgba(16, 15, 14, 0.75) 100%  /* Dense dark at bottom for description contrast */
  );
  z-index: 2;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   3. Content Columns & Typography
   -------------------------------------------------------------------------- */
.hero__content {
  position: relative;
  z-index: 3;
  width: 100%;
}

.hero__layout-wrapper {
  max-width: 100%;
  display: flex;
  flex-direction: column;
}

/* Title wrapper masking the GSAP slide reveal */
.hero__title-mask {
  overflow: hidden;
  line-height: 1.15;
}

.hero__title {
  font-family: var(--font-family-sans);
  font-size: clamp(2.75rem, 2.5rem + 2vw, 3.5rem); /* Proportional tablet scaling */
  font-weight: var(--font-weight-bold);
  line-height: 1.05; /* Snug editorial line height for stacked words matching Canva */
  color: #ffffff;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  transform: translateY(0); /* Controlled via JS */
  will-change: transform;
}

/* Thin horizontal rule accent */
.hero__divider {
  border: none;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.3);
  margin: var(--space-md) 0;
  width: 100%;
  max-width: 320px; /* Custom width boundary */
  transform-origin: left;
  will-change: transform;
}

/* Supporting description */
.hero__subtitle {
  font-family: var(--font-family-sans);
  font-size: 11px; /* Delicate typography */
  font-weight: var(--font-weight-medium);
  line-height: 1.8;
  letter-spacing: 0.16em; /* Elegant wide tracking */
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  margin: 0;
  will-change: transform, opacity;
}

/* --------------------------------------------------------------------------
   4. Mobile-Specific Adjustments (max-width: 767px)
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .hero {
    height: 100dvh; /* Support dynamic mobile viewports */
    padding-bottom: 0; /* Centered layout has no bottom padding offset */
  }

  .hero__title {
    font-size: clamp(2rem, 1.8rem + 3vw, 2.75rem); /* Safer fluid typography on small mobile screens */
  }

  .hero__divider {
    margin: 16px 0;
    max-width: 140px; /* Shorter accent line for mobile balance */
  }

  .hero__subtitle {
    font-size: 9.5px; /* Refined micro-typography for better mobile fits */
    letter-spacing: 0.12em;
    line-height: 1.7;
  }
}

/* --------------------------------------------------------------------------
   5. Tablet & Desktop Responsive Scaling
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  .hero {
    padding-bottom: 0;
  }

  .hero__divider {
    margin: var(--space-md) 0;
    max-width: 420px;
  }

  .hero__subtitle {
    font-size: 12px;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding-bottom: 0;
  }

  .hero__title {
    font-size: clamp(3.5rem, 3.2rem + 2vw, 4.75rem); /* Refined, elegant desktop scale */
  }

  .hero__divider {
    max-width: 480px;
  }

  .hero__subtitle {
    font-size: 13px;
    letter-spacing: 0.18em;
  }
}

@media (min-width: 1440px) {
  .hero__title {
    font-size: clamp(4.25rem, 3.8rem + 2vw, 5.25rem); /* Increased slightly for large screens */
  }

  .hero__divider {
    max-width: 540px;
  }

  .hero__subtitle {
    font-size: 14.5px;
    letter-spacing: 0.2em;
  }
}

@media (min-width: 1920px) {
  .hero__title {
    font-size: clamp(5.25rem, 4.6rem + 2vw, 6.25rem); /* Proportional scaling on ultra-wide screens */
  }

  .hero__divider {
    max-width: 620px;
  }

  .hero__subtitle {
    font-size: 16.5px;
    letter-spacing: 0.22em;
  }
}

/* Background YouTube Video Cover */
.hero__video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.hero__video-wrapper iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw; /* 100 * 9 / 16 */
  min-height: 100vh;
  min-width: 177.77vh; /* 100 * 16 / 9 */
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* Floating Audio Control Button */
.hero__sound-btn {
  position: absolute;
  bottom: 80px;
  right: 40px;
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(16, 15, 14, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  outline: none;
  padding: 0;
  margin: 0;
}

.hero__sound-btn:hover {
  background: #ffffff;
  color: var(--color-bg-dark);
  border-color: #ffffff;
  transform: scale(1.05);
}

@media (max-width: 767px) {
  .hero__sound-btn {
    bottom: 40px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
}

/* Responsive visibility helper classes */
@media (max-width: 1023px) {
  .u-hide-mobile {
    display: none !important;
  }
}
@media (min-width: 1024px) {
  .u-hide-desktop {
    display: none !important;
  }
}


