/* =========================================================
   HERO
   Controla a area de abertura do site com carrossel de fundo,
   sobreposicao escura, titulo principal e botoes de conversao.
   ========================================================= */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 88vh;
  padding-top: 0;
  overflow: hidden;
  --hero-cta-bg: rgba(171, 115, 92, 0.72);
  --hero-cta-border: rgba(245, 223, 210, 0.66);
  --hero-cta-hover-bg: rgba(188, 128, 103, 0.88);
  --hero-cta-hover-border: rgba(255, 236, 225, 0.9);
  --hero-cta-shadow: rgba(89, 46, 30, 0.28);
}

.hero-slider {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1);
  transition: opacity 0.9s ease;
}

.hero-slide-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: contrast(1.04) saturate(1.03);
}

.hero-slide.is-active {
  opacity: 1;
}

/* Camada escura para garantir contraste entre a imagem e o texto. */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 46, 74, 0.34) 0%, rgba(11, 46, 74, 0.18) 45%, rgba(11, 46, 74, 0.26) 100%),
    radial-gradient(circle at top left, rgba(199, 164, 90, 0.06), transparent 34%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 980px;
  margin-inline: auto;
  padding-inline: clamp(12px, 3vw, 40px);
  padding-block: 120px 96px;
  text-align: center;
}

.hero-content h1,
.hero-description,
.hero .section-kicker {
  margin-inline: auto;
}

.hero-content h1,
.hero .section-kicker {
  max-width: 680px;
}

.hero-content h1 {
  margin-top: clamp(34px, 6vh, 78px);
  margin-bottom: 22px;
  color: var(--white);
  font-size: clamp(2.8rem, 5vw, 4.7rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.035em;
  transition: opacity 0.35s ease;
}

.hero-title-only-first.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.hero-title-line {
  display: block;
}

.hero-title-light {
  font-family: var(--font-sans);
  font-weight: 300;
}

.hero-title-accent {
  font-style: italic;
  font-weight: 400;
}

.hero-description {
  max-width: 600px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
  line-height: 1.65;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: clamp(160px, 22vh, 240px);
}

/* O kicker do hero fica mais claro porque esta sobre fundo escuro. */
.hero .section-kicker {
  margin-bottom: 26px;
  color: var(--gold-300);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
}

/* O botao outline do hero precisa de contraste diferente do restante do site. */
.hero .btn-outline {
  border-color: var(--hero-cta-border);
  background: var(--hero-cta-bg);
  box-shadow: 0 16px 34px var(--hero-cta-shadow);
  backdrop-filter: blur(10px);
  color: var(--white);
  transition:
    transform 0.2s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.hero .btn-outline:hover {
  border-color: var(--hero-cta-hover-border);
  background: var(--hero-cta-hover-bg);
  box-shadow: 0 18px 38px var(--hero-cta-shadow);
}

.hero-pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.hero-dot.is-active {
  background: var(--white);
  transform: scale(1.08);
}

@media (max-width: 980px) {
  .hero {
    min-height: 92vh;
    align-items: flex-end;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg,
        rgba(11, 46, 74, 0.20) 0%,
        rgba(11, 46, 74, 0.05) 40%,
        rgba(11, 46, 74, 0.35) 70%,
        rgba(11, 46, 74, 0.70) 88%,
        rgba(11, 46, 74, 0.82) 100%
      );
  }

  .hero-content {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    padding-block: 24px 36px;
    text-align: center;
  }

  .hero-content h1,
  .hero-description,
  .hero .section-kicker {
    max-width: 100%;
    margin-inline: auto;
  }

  .hero-title-light,
  .hero-title-accent {
    font-family: var(--font-serif);
    font-style: normal;
    font-weight: 400;
  }

  .hero-buttons {
    justify-content: center;
    margin-top: 14px;
  }

  .hero-slide-image {
    object-position: center 15%;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 88vh;
    align-items: flex-end;
  }

  .hero-content {
    padding-block: 20px 40px;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-content h1 {
    font-size: clamp(2.2rem, 9vw, 3.2rem);
    line-height: 1.08;
    margin-top: 0;
    margin-bottom: 10px;
  }

  .hero-pagination {
    margin-top: 16px;
  }

  .hero-buttons {
    margin-top: 10px;
  }

  .hero-slide-image {
    object-position: center 15%;
  }
}
