/* Hero Scroll Animation Styles - RESPONSIVE */

/* CSS Custom Properties */
:root {
  --hero-content-max-width: 900px;
  --hero-overlay-padding: 2rem;
}

@media (max-width: 768px) {
  :root {
    --hero-content-max-width: 100%;
    --hero-overlay-padding: 1rem;
  }
}

/* Hero Section - Pinned Container */
.hero-container {
  position: relative;
  height: 500vh;
  background: var(--bg-primary);
  z-index: 100;
}

/* Full coverage overlay to block next section completely */
.hero-container::before {
  content: '';
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg-primary);
  z-index: 99;
  pointer-events: none;
}

.hero-pinned {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: var(--bg-primary);
  z-index: 100;
}

/* Page Background Overlay - closes in around video */
.page-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  z-index: 2;
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Video Viewport - the opening that shows the video */
.video-viewport {
  position: relative;
  width: 100vw;
  height: 100vh;
  border-radius: 0px 0px 0px 0px;
  overflow: hidden;
  will-change: transform, opacity;
}

/* Video inside viewport */
.video-viewport video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.18);
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

/* Hero Content Overlay - Appears on top, fades out on scroll */
.hero-content-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  opacity: 1;
  width: 90%;
  max-width: var(--hero-content-max-width);
  text-align: center;
  pointer-events: auto;
  padding: 0 var(--hero-overlay-padding);
}

.hero-content-overlay h1 {
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 700;
  color: #ffffff !important;
  margin-bottom: 1.5rem;
  letter-spacing: -0.025em;
  line-height: 1.05;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero-content-overlay > p {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  color: #ffffff !important;
  line-height: 1.65;
  margin-bottom: 2.5rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.95;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.hero-content-overlay .hero-ctas-inline {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-content-overlay .hero-ctas-inline .btn {
  min-width: 180px;
  padding: 1rem 2rem;
  font-size: 1.0625rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-content-overlay .hero-proof-inline {
  font-size: 0.9375rem;
  color: #ffffff !important;
  opacity: 0.85;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.hero-content-overlay .hero-proof-inline span {
  color: #ffffff !important;
}

.hero-content-overlay .hero-proof-inline .separator {
  opacity: 0.5;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .hero-container {
    height: 400vh;
  }

  .hero-content-overlay {
    width: 95%;
    padding: 0 1rem;
  }

  .hero-content-overlay h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }

  .hero-content-overlay > p {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .hero-content-overlay .hero-ctas-inline {
    flex-direction: column;
    gap: 0.75rem;
  }

  .hero-content-overlay .hero-ctas-inline .btn {
    width: 100%;
    min-width: auto;
  }

  .hero-content-overlay .hero-proof-inline {
    font-size: 0.8125rem;
  }
}

@media (max-width: 480px) {
  .hero-content-overlay h1 {
    font-size: 2rem;
  }

  .hero-content-overlay > p {
    font-size: 0.9375rem;
  }
}
