/* =========================================================
   HERO CAROUSEL GLOBAL
========================================================= */

.hero-carousel {
  position: relative;
  width: 100%;
  min-width: 100%;
  min-height: 100svh;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(135deg, var(--color-blue), var(--color-sage));
}

.hero-carousel--compact {
  min-height: 78svh;
}

.hero-slides,
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-slides {
  margin: 0;
  padding: 0;
}

.hero-slide {
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.hero-slide {
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.2s ease, transform 6.5s var(--ease-out);
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: var(--slide-position, center center);
  filter: saturate(0.95) contrast(0.98);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 23, 31, 0.63) 0%, rgba(14, 23, 31, 0.30) 44%, rgba(14, 23, 31, 0.14) 100%),
    linear-gradient(0deg, rgba(14, 23, 31, 0.58) 0%, transparent 44%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: inherit;
  display: grid;
  align-items: end;
  padding: calc(var(--header-h) + 60px) 0 clamp(58px, 8vw, 98px);
}

.hero-content-inner {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
  max-width: 860px;
  justify-self: start;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.hero-kicker::before {
  content: "";
  width: 42px;
  height: 1px;
  background: currentColor;
}

.hero-title {
  max-width: 900px;
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(4.2rem, 10.2vw, 10.2rem);
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.hero-text {
  max-width: 660px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.83);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.9;
}

.hero-actions {
  margin-top: 32px;
}

.hero-progress {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 26px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 32px;
  height: 2px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.34);
  overflow: hidden;
}

.hero-dot span {
  display: block;
  width: 100%;
  height: 100%;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
}

.hero-dot.is-active span {
  animation: heroDotProgress var(--hero-duration, 6500ms) linear forwards;
}

.hero-scroll {
  position: absolute;
  z-index: 4;
  right: clamp(18px, 3vw, 42px);
  bottom: 22px;
  writing-mode: vertical-rl;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

@keyframes heroDotProgress {
  to { transform: scaleX(1); }
}

@media (max-width: 760px) {
  .hero-carousel,
  .hero-carousel--compact {
    min-height: 88svh;
  }

  .hero-content {
    padding: calc(var(--header-h) + 54px) 0 72px;
  }

  .hero-content-inner {
    width: min(100% - 28px, var(--container));
  }

  .hero-title {
    font-size: clamp(3.5rem, 18vw, 6.4rem);
  }

  .hero-slide::after {
    background:
      linear-gradient(90deg, rgba(14, 23, 31, 0.68), rgba(14, 23, 31, 0.22)),
      linear-gradient(0deg, rgba(14, 23, 31, 0.64), transparent 52%);
  }

  .hero-scroll {
    display: none;
  }
}

/* =========================================================
   HERO — VARIAÇÕES CONTROLADAS PELO ADMIN
========================================================= */

.hero-slide[data-overlay="dark"]::after {
  background:
    linear-gradient(90deg, rgba(14, 23, 31, 0.66) 0%, rgba(14, 23, 31, 0.34) 44%, rgba(14, 23, 31, 0.16) 100%),
    linear-gradient(0deg, rgba(14, 23, 31, 0.58) 0%, transparent 44%);
}

.hero-slide[data-overlay="soft"]::after {
  background:
    linear-gradient(90deg, rgba(14, 23, 31, 0.46) 0%, rgba(14, 23, 31, 0.20) 48%, rgba(14, 23, 31, 0.08) 100%),
    linear-gradient(0deg, rgba(14, 23, 31, 0.38) 0%, transparent 48%);
}

.hero-slide[data-overlay="light"]::after {
  background:
    linear-gradient(90deg, rgba(245, 241, 232, 0.72) 0%, rgba(245, 241, 232, 0.32) 48%, rgba(245, 241, 232, 0.08) 100%),
    linear-gradient(0deg, rgba(245, 241, 232, 0.42) 0%, transparent 54%);
}

.hero-slide[data-overlay="none"]::after {
  background: transparent;
}

.hero-slide[data-header-theme="light"] ~ .hero-content,
.hero-carousel:has(.hero-slide.is-active[data-header-theme="light"]) .hero-content {
  color: var(--color-blue-strong);
}

.hero-carousel:has(.hero-slide.is-active[data-header-theme="light"]) .hero-kicker,
.hero-carousel:has(.hero-slide.is-active[data-header-theme="light"]) .hero-text {
  color: rgba(36, 56, 79, 0.78);
}

.hero-carousel:has(.hero-slide.is-active[data-header-theme="light"]) .btn--light {
  background: var(--color-blue);
  color: var(--color-ivory);
}

.hero-carousel:has(.hero-slide.is-active[data-header-theme="light"]) .btn--outline {
  border-color: rgba(36, 56, 79, 0.34);
  color: var(--color-blue-strong);
}

@media (max-width: 760px) {
  .hero-slide[data-overlay="dark"]::after {
    background:
      linear-gradient(90deg, rgba(14, 23, 31, 0.72), rgba(14, 23, 31, 0.28)),
      linear-gradient(0deg, rgba(14, 23, 31, 0.68), transparent 52%);
  }

  .hero-slide[data-overlay="soft"]::after {
    background:
      linear-gradient(90deg, rgba(14, 23, 31, 0.55), rgba(14, 23, 31, 0.18)),
      linear-gradient(0deg, rgba(14, 23, 31, 0.52), transparent 52%);
  }

  .hero-slide[data-overlay="light"]::after {
    background:
      linear-gradient(90deg, rgba(245, 241, 232, 0.82), rgba(245, 241, 232, 0.38)),
      linear-gradient(0deg, rgba(245, 241, 232, 0.62), transparent 58%);
  }
}