/* =========================================================
   Brigade Granada — Section 1: Hero
   ========================================================= */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-dark);
}

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

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

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 39, 32, 0.62) 0%,
    rgba(20, 39, 32, 0.46) 30%,
    rgba(20, 39, 32, 0.64) 68%,
    rgba(20, 39, 32, 0.92) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
  padding-top: var(--header-height);
}

.hero__title {
  font-size: clamp(2.1rem, 4.6vw, 4rem);
  line-height: 1.18;
  font-weight: 600;
  color: var(--color-cream);
  letter-spacing: 0.005em;
  margin-bottom: 26px;
  opacity: 0;
  animation: heroFadeUp 1.1s var(--ease-luxe) 0.4s forwards;
}

.hero__title-line {
  display: block;
}

.hero__title-kicker {
  position: relative;
  display: inline-block;
  vertical-align: baseline;
}

.hero__title-kicker-placeholder {
  visibility: hidden;
}

.hero__title-kicker-word {
  position: absolute;
  top: 0;
  left: 0;
  white-space: nowrap;
  will-change: opacity;
  animation: kickerBlink 6s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.hero__title-kicker-word--b {
  animation-delay: -3s;
}

@keyframes kickerBlink {
  0% {
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  38% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.hero__subtitle {
  font-size: clamp(0.95rem, 1.3vw, 1.12rem);
  line-height: 1.8;
  font-weight: 300;
  color: var(--color-cream-dim);
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.8),
    0 2px 12px rgba(0, 0, 0, 0.55);
  max-width: 640px;
  margin: 0 auto 40px;
  opacity: 0;
  animation: heroFadeUp 1.1s var(--ease-luxe) 0.6s forwards;
}

.hero__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  opacity: 0;
  animation: heroFadeUp 1.1s var(--ease-luxe) 0.8s forwards;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-cream-dim);
  opacity: 0;
  animation: heroFadeUp 1s var(--ease-luxe) 1.1s forwards;
}

.hero__scroll-cue span {
  width: 1px;
  height: 34px;
  background: linear-gradient(180deg, var(--color-accent) 0%, transparent 100%);
  position: relative;
  overflow: hidden;
}

.hero__scroll-cue span::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-cream);
  animation: scrollCue 2.2s ease-in-out infinite;
}

@keyframes scrollCue {
  0% {
    top: -100%;
  }
  60% {
    top: 100%;
  }
  100% {
    top: 100%;
  }
}

@media (max-width: 640px) {
  .hero__content {
    padding-top: var(--header-height-mobile);
  }

  .hero__cta {
    flex-direction: column;
    width: 100%;
  }

  .hero__cta .btn {
    width: 100%;
  }

  .hero__scroll-cue {
    bottom: 22px;
  }
}

@media (min-width: 861px) {
  .hero__content {
    text-align: left;
    margin-inline: 0;
    max-width: none;
  }

  .hero__title {
    max-width: 920px;
    font-size: clamp(1.85rem, 2.35vw, 2.5rem);
  }

  .hero__title-line {
    white-space: nowrap;
  }

  .hero__subtitle {
    margin: 0 0 40px;
    max-width: 820px;
    font-size: clamp(0.92rem, 1vw, 1rem);
    line-height: 1.7;
  }

  .hero__cta {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__title,
  .hero__subtitle,
  .hero__cta,
  .hero__scroll-cue {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .hero__title-kicker-word {
    animation: none;
    opacity: 1;
  }

  .hero__title-kicker-word--b {
    display: none;
  }

  .hero__scroll-cue span::after {
    animation: none;
  }
}
