/**
 * hero.css — Full-screen hero section
 */

/* ── HERO CONTAINER ─────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* ── BACKGROUND ─────────────────────────────────────────────── */
.hero__bg {
  position: absolute;
  inset: 0;
  background-color: var(--color-dark);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* will-change hints browser to composite this layer for parallax */
  will-change: transform;
}

.hero__bg.parallax-active {
  transform: translateY(var(--parallax-offset, 0px));
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  /* Inline opacity is set by PHP/ACF — this is the fallback */
  background: rgba(8, 15, 36, 0.60);
}

/* ── CONTENT ─────────────────────────────────────────────────── */
.hero__content {
  position: relative;
  z-index: var(--z-raised);
  width: 100%;
  padding-top: var(--nav-height);
}

.hero__inner {
  max-width: 800px;
}

.hero__headline {
  font-size: var(--text-hero);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  color: var(--color-accent);
  letter-spacing: -0.02em;
  margin-top: var(--space-4);
  margin-bottom: var(--space-6);
}

.hero__subheadline {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.75);
  line-height: var(--leading-loose);
  max-width: 560px;
  margin-bottom: var(--space-10);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}

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

.scroll-indicator__mouse {
  width: 24px;
  height: 40px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
}

.scroll-indicator__wheel {
  width: 3px;
  height: 8px;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 2px;
  animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {
  0%   { transform: translateY(0);    opacity: 1;   }
  60%  { transform: translateY(10px); opacity: 0;   }
  100% { transform: translateY(0);    opacity: 0;   }
}

.scroll-indicator__label {
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.40);
}

/* ── PARALLAX FEATURE SECTION ────────────────────────────────── */
.parallax-feature {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.parallax-feature__bg {
  position: absolute;
  inset: -20%;
  background-color: var(--color-dark);
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.parallax-feature__bg.parallax-active {
  transform: translateY(var(--parallax-offset, 0px));
}

.parallax-feature__overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 15, 36, 0.75);
}

.parallax-feature__content {
  position: relative;
  z-index: var(--z-raised);
  padding-block: var(--space-32);
}

.parallax-feature__inner {
  max-width: 640px;
}

.parallax-feature__title {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-6);
}

.parallax-feature__desc {
  font-size: var(--text-lg);
  margin-bottom: var(--space-10);
  max-width: none;
}
