/* ==========================================================================
   HERO 1 (#hero) — Abertura Cinematográfica & Animação Gradient Mesh / Aurora
   --------------------------------------------------------------------------
   Requisitos técnicos atendidos com rigor:
   - CSS puro (sem JS, sem canvas, sem bibliotecas externas)
   - Camada de fundo com position: absolute e z-index: 0
   - Conteúdo acima com position: relative e z-index: 10
   - Loop contínuo e fluido de 15 segundos
   - Somente propriedades aceleradas por GPU animadas: transform e opacity
   - Sem animação de filter, background-position, width, height, top ou left
   - Suporte obrigatório a @media (prefers-reduced-motion: reduce)
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  min-height: 680px;
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--color-forest-deep);
  color: var(--color-on-dark);
  padding-top: calc(var(--header-height) + 2.5rem);
  padding-bottom: 5rem;
}

/* Camada de Fundo: Fotografia panorâmica + Auroras Gradient Mesh (z-index: 0) */
.hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  opacity: 0.56;
  transform: scale(1.03);
}

/* Camada de Gradient Mesh / Auroras Orgânicas em CSS Puro */
.hero__aurora {
  position: absolute;
  inset: -18%;
  pointer-events: none;
  contain: layout style paint;
}

.hero__aurora-orb {
  position: absolute;
  border-radius: 50%;
  will-change: transform, opacity;
}

/* Aurora 1 — Verde-floresta profundo (#183D30) */
.hero__aurora-orb--forest {
  top: -12%;
  left: -10%;
  width: 72vmax;
  height: 72vmax;
  background: radial-gradient(
    circle at center,
    rgba(24, 61, 48, 0.88) 0%,
    rgba(24, 61, 48, 0.48) 38%,
    rgba(24, 61, 48, 0) 70%
  );
  animation: auroraFloatForest 15s ease-in-out infinite;
}

/* Aurora 2 — Verde-musgo orgânico (#526B4E) */
.hero__aurora-orb--moss {
  top: 14%;
  right: -12%;
  width: 68vmax;
  height: 68vmax;
  background: radial-gradient(
    circle at center,
    rgba(82, 107, 78, 0.62) 0%,
    rgba(82, 107, 78, 0.28) 40%,
    rgba(82, 107, 78, 0) 72%
  );
  animation: auroraFloatMoss 15s ease-in-out infinite;
}

/* Aurora 3 — Dourado discreto de amanhecer na serra (#B99A60) */
.hero__aurora-orb--gold {
  bottom: -18%;
  left: 22%;
  width: 62vmax;
  height: 62vmax;
  background: radial-gradient(
    circle at center,
    rgba(185, 154, 96, 0.42) 0%,
    rgba(185, 154, 96, 0.16) 38%,
    rgba(185, 154, 96, 0) 70%
  );
  animation: auroraFloatGold 15s ease-in-out infinite;
}

/* Aurora 4 — Névoa creme luminosa (#F4F0E5) */
.hero__aurora-orb--cream {
  top: 28%;
  left: 46%;
  width: 54vmax;
  height: 54vmax;
  background: radial-gradient(
    circle at center,
    rgba(244, 240, 229, 0.24) 0%,
    rgba(244, 240, 229, 0.08) 42%,
    rgba(244, 240, 229, 0) 70%
  );
  animation: auroraFloatCream 15s ease-in-out infinite;
}

/* Gradiente de proteção para legibilidade impecável do texto */
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      110deg,
      rgba(14, 38, 29, 0.86) 0%,
      rgba(24, 61, 48, 0.62) 48%,
      rgba(16, 43, 34, 0.46) 100%
    ),
    linear-gradient(
      180deg,
      rgba(14, 38, 29, 0.45) 0%,
      rgba(14, 38, 29, 0) 28%,
      rgba(14, 38, 29, 0.72) 100%
    );
}

/* Keyframes exclusivamente acelerados por GPU: transform e opacity (15s loop) */
@keyframes auroraFloatForest {
  0%,
  100% {
    transform: translate3d(0%, 0%, 0) scale(1);
    opacity: 0.92;
  }
  50% {
    transform: translate3d(8%, 6%, 0) scale(1.1);
    opacity: 0.78;
  }
}

@keyframes auroraFloatMoss {
  0%,
  100% {
    transform: translate3d(0%, 0%, 0) scale(1);
    opacity: 0.72;
  }
  50% {
    transform: translate3d(-9%, -7%, 0) scale(1.12);
    opacity: 0.92;
  }
}

@keyframes auroraFloatGold {
  0%,
  100% {
    transform: translate3d(0%, 0%, 0) scale(1);
    opacity: 0.52;
  }
  50% {
    transform: translate3d(-7%, -9%, 0) scale(1.14);
    opacity: 0.78;
  }
}

@keyframes auroraFloatCream {
  0%,
  100% {
    transform: translate3d(0%, 0%, 0) scale(0.96);
    opacity: 0.4;
  }
  50% {
    transform: translate3d(-10%, 7%, 0) scale(1.08);
    opacity: 0.68;
  }
}

/* Conteúdo do Hero — sempre acima da camada de fundo (z-index: 10) */
.hero__content {
  position: relative;
  z-index: 10;
}

.hero__inner {
  max-width: 780px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  margin-bottom: 1.5rem;
  animation: heroFadeUp 900ms var(--ease-editorial) both;
}

.hero__eyebrow::before {
  content: '';
  width: 34px;
  height: 1px;
  background-color: var(--color-gold);
}

.hero__title {
  color: var(--color-warm-white);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 1.45rem;
  text-shadow: 0 4px 28px rgba(7, 20, 15, 0.35);
  animation: heroFadeUp 950ms var(--ease-editorial) 120ms both;
}

.hero__subtitle {
  max-width: 600px;
  font-size: clamp(1.0625rem, 1rem + 0.36vw, 1.25rem);
  line-height: 1.72;
  color: rgba(250, 249, 244, 0.9);
  margin-bottom: 2.35rem;
  animation: heroFadeUp 950ms var(--ease-editorial) 240ms both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  animation: heroFadeUp 950ms var(--ease-editorial) 360ms both;
}

.hero__highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.25rem;
  margin-top: 3.25rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--color-border-on-dark);
  list-style: none;
  padding-left: 0;
  animation: heroFadeUp 950ms var(--ease-editorial) 480ms both;
}

.hero__highlight-item {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.hero__highlight-label {
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold-light);
}

.hero__highlight-value {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-warm-white);
}

/* Indicador de Rolagem Discreto */
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  z-index: 10;
  transform: translate3d(-50%, 0, 0);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: rgba(250, 249, 244, 0.82);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color var(--duration-fast) var(--ease-smooth);
}

.hero__scroll:hover {
  color: var(--color-gold-light);
}

.hero__scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, var(--color-gold), rgba(185, 154, 96, 0));
  transform-origin: top center;
  animation: scrollPulse 2.6s var(--ease-smooth) infinite;
}

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

@keyframes scrollPulse {
  0%,
  100% {
    transform: scaleY(0.55) translate3d(0, 0, 0);
    opacity: 0.45;
  }
  50% {
    transform: scaleY(1) translate3d(0, 5px, 0);
    opacity: 1;
  }
}

/* Desativação completa das animações para usuários com prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .hero__aurora-orb,
  .hero__aurora-orb--forest,
  .hero__aurora-orb--moss,
  .hero__aurora-orb--gold,
  .hero__aurora-orb--cream,
  .hero__eyebrow,
  .hero__title,
  .hero__subtitle,
  .hero__actions,
  .hero__highlights,
  .hero__scroll-line {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  .hero__aurora-orb--forest {
    opacity: 0.86;
  }
  .hero__aurora-orb--moss {
    opacity: 0.7;
  }
  .hero__aurora-orb--gold {
    opacity: 0.55;
  }
  .hero__aurora-orb--cream {
    opacity: 0.42;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 94svh;
    padding-top: calc(var(--header-height) + 1.5rem);
    padding-bottom: 4.5rem;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero__scroll {
    display: none;
  }
}
