/* ==========================================================================
   Hero section
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  padding-block: calc(var(--space-9) + 64px) var(--space-9);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  animation: hero-kenburns 22s ease-in-out infinite alternate;
}

@keyframes hero-kenburns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.08);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      180deg,
      rgba(10, 8, 6, 0.5) 0%,
      rgba(10, 8, 6, 0.42) 40%,
      rgba(10, 8, 6, 0.72) 82%,
      rgba(10, 8, 6, 0.92) 100%
    ),
    radial-gradient(120% 90% at 50% 15%, transparent 40%, rgba(8, 6, 5, 0.55) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-title {
  font-size: var(--fs-3xl);
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.45);
  margin-top: var(--space-2);
}

.hero-sub {
  margin-top: var(--space-6);
  font-size: var(--fs-md);
  color: rgba(237, 231, 220, 0.86);
  max-width: 46ch;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

.hero-cta {
  margin-top: var(--space-7);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  width: 100%;
}

.hero-cta .btn {
  flex: 0 1 auto;
}

.hero-badge {
  margin-top: var(--space-7);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-wide);
  color: rgba(237, 231, 220, 0.75);
}

.hero-badge svg {
  flex-shrink: 0;
}

.hero-scroll-cue {
  position: absolute;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  color: rgba(237, 231, 220, 0.7);
  font-size: 0.6875rem;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  transition: color var(--dur-fast) var(--ease);
}

.hero-scroll-cue:hover {
  color: var(--gold-light);
}

.hero-scroll-line {
  position: relative;
  width: 1px;
  height: 42px;
  background: linear-gradient(180deg, currentColor, transparent);
  overflow: hidden;
}

.hero-scroll-line::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-light);
  animation: hero-scroll-dot 2.2s ease-in-out infinite;
}

@keyframes hero-scroll-dot {
  0% {
    top: -8px;
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    top: 40px;
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-img {
    animation: none;
  }
  .hero-scroll-line::before {
    animation: none;
    opacity: 1;
    top: 12px;
  }
}

/* Small phones: stack CTAs full-width for confident tap targets */
@media (max-width: 400px) {
  .hero-cta {
    flex-direction: column;
  }
  .hero-cta .btn {
    width: 100%;
  }
}

/* Hide the scroll cue on short / landscape viewports so it never
   collides with the CTA row. */
@media (max-height: 560px) {
  .hero-scroll-cue {
    display: none;
  }
  .hero {
    padding-block: calc(var(--space-8) + 64px) var(--space-7);
  }
}

@media (min-width: 640px) {
  .hero-title {
    margin-top: var(--space-3);
  }
}
