/* ============================================
   HERO VIDEO VARIANT
   Overrides and additions for the video-background hero.
   Loaded AFTER styles.css — only contains what's different.
   ============================================ */

/* --- Video container & overlay --- */
.hero--video {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Dark gradient overlay — ensures text is always readable
   regardless of what's playing in the video */
.hero__video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(10, 15, 26, 0.85) 0%,
      rgba(10, 15, 26, 0.60) 40%,
      rgba(10, 15, 26, 0.70) 70%,
      rgba(10, 15, 26, 0.95) 100%
    );
  z-index: 1;
}

/* --- Content positioning (centered layout) --- */
.hero__inner--centered {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100vh;
  padding-top: var(--space-24);
  padding-bottom: var(--space-16);
}

.hero__content--center {
  max-width: 800px;
  margin: 0 auto;
}

.hero__content--center .hero__title {
  font-size: var(--font-size-4xl);
}

.hero__content--center .hero__subtitle {
  margin-left: auto;
  margin-right: auto;
  max-width: 600px;
}

/* Actions row — buttons side by side */
.hero__actions--center {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
  justify-content: center;
}

/* Ghost / outline button */
.btn--ghost {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  box-shadow: none;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

/* --- Scroll indicator --- */
.hero__scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 50%;
  background: white;
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
  0%   { top: -50%; }
  100% { top: 150%; }
}

/* --- Responsive — mobile: video stays full BG, reduced height --- */
@media (max-width: 768px) {
  .hero--video {
    min-height: 85svh;
  }

  .hero__inner--centered {
    min-height: 85svh;
    padding-top: var(--space-20);
    padding-bottom: var(--space-12);
  }

  .hero__content--center .hero__title {
    font-size: var(--font-size-2xl);
  }

  .hero__content--center .hero__subtitle {
    font-size: var(--font-size-base);
  }

  .hero__actions--center {
    width: 100%;
  }

  .hero__actions--center .btn--lg {
    width: 100%;
    text-align: center;
  }
}

/* Extra small */
@media (max-width: 480px) {
  .hero--video {
    min-height: 80svh;
  }

  .hero__inner--centered {
    min-height: 80svh;
    padding-top: var(--space-16);
    padding-bottom: var(--space-10);
  }

  .hero__content--center .hero__title {
    font-size: var(--font-size-xl);
  }

  .hero__content--center .hero__subtitle {
    font-size: var(--font-size-sm);
  }
}

/* --- Responsive — above small mobile --- */
@media (min-width: 640px) {
  .hero__actions--center {
    flex-direction: row;
  }
}

@media (min-width: 768px) {
  .hero__content--center .hero__title {
    font-size: var(--font-size-5xl);
  }
}

@media (min-width: 1024px) {
  .hero__content--center .hero__title {
    font-size: var(--font-size-6xl);
  }

  .hero__inner--centered {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
  }
}

@media (min-width: 1280px) {
  .hero__content--center .hero__title {
    font-size: 4.25rem;
  }
}

/* Reduce motion — respect user preference */
@media (prefers-reduced-motion: reduce) {
  .hero__video {
    animation: none;
  }

  .hero__scroll-line::after {
    animation: none;
    top: 0;
    height: 100%;
    opacity: 0.5;
  }
}
