/* ==========================================================================
   SEÇÃO HERO (SLIDER PRINCIPAL DA HOMEPAGE) - MOBILE FIRST
   ========================================================================== */

.hero-section {
  padding-top: clamp(16px, 3vw, 32px);
  padding-bottom: clamp(24px, 4vw, 48px);
}

.hero-container {
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(16px, 3vw, 32px);
  padding-right: clamp(16px, 3vw, 32px);
}

/* Slider Container */
.hero-card {
  position: relative;
  width: 100%;
  max-width: 1216px;
  height: clamp(380px, 60vh, 500px);
  border-radius: var(--radius-xl, 24px);
  overflow: hidden;
  display: flex;
  background-color: #251910;
}

@media (min-width: 769px) {
  .hero-card {
    height: 700px;
  }
}

/* Slides */
.hero-slides-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

/* Overlay Escuro */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(37, 25, 16, 0) 30%, rgba(37, 25, 16, 0.1) 40.83%, rgba(37, 25, 16, 0.3) 45.34%, rgba(37, 25, 16, 0.58) 60%, rgba(37, 25, 16, 0.8) 100%);
  z-index: 1;
  pointer-events: none;
}

@media (min-width: 769px) {
  .hero-overlay {
    background: linear-gradient(180deg,
        rgba(37, 25, 16, 0) 0%,
        rgba(37, 25, 16, 0.1) 60.83%,
        rgba(37, 25, 16, 0.3) 65.34%,
        rgba(37, 25, 16, 0.58) 80%,
        rgba(37, 25, 16, 0.8) 100%);
  }
}

/* Content Wrapper (Texts + Controls) */
.hero-content-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: clamp(20px, 4vw, 32px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 24px;
}

@media (min-width: 769px) {
  .hero-content-wrapper {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

/* Text Content */
.hero-content {
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2vw, 16px);
}

@media (min-width: 769px) {
  .hero-content {
    max-width: 600px;
  }
}

/* Tipografia */
.hero-title {
  font-family: var(--font-family-title-serif, 'Fraunces', serif);
  font-weight: 700;
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.1;
  /* 110% */
  letter-spacing: 0.02em;
  /* 2% */
  color: var(--color-base-white, #F5F4F4);
  text-shadow: 0px 1px 10px rgba(42, 28, 18, 0.45);
  margin: 0;
}

.hero-description {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.6;
  /* 160% */
  color: var(--color-base-white, #F5F4F4);
  margin: 0;
}

/* Slider Controls */
.hero-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 20px;
}

/* Nav Buttons */
.hero-nav {
  position: absolute;
  top: 56%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  display: none; /* Hidden on mobile */
  justify-content: space-between;
  padding: 0 clamp(16px, 3vw, 32px);
  pointer-events: none;
  z-index: 3;
}

@media (min-width: 769px) {
  .hero-nav {
    display: flex;
  }
}

.hero-nav-btn {
  pointer-events: auto;
  width: 48px;
  height: 48px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.14);
  border: 1px solid transparent;
  color: var(--color-terracota-500, #D96A3D);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.hero-nav-btn:nth-child(2) svg{
  left: 1px;
  position: relative;
}

.hero-nav-btn:nth-child(1) svg{
  left: -1px;
  position: relative;
}

.hero-nav-btn:hover {
  border: 1px solid var(--color-terracota-500, #D96A3D);
}

/* Pagination */
.hero-pagination {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-bullet {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  padding: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: width 0.3s ease, background 0.3s ease;
}

/* Active bullet stretches to show progress */
.hero-bullet.active {
  width: 25px;
  background: rgba(255, 255, 255, 0.2);
}

.hero-bullet-progress {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background: var(--color-base-white, #ffffff);
  border-radius: 4px;
  transform-origin: left;
  transform: scaleX(0);
}

/* Animation triggered via JS class */
.hero-bullet.active.animating .hero-bullet-progress {
  animation: slideProgress 10s linear forwards;
}

@keyframes slideProgress {
  0% {
    transform: scaleX(0);
  }

  100% {
    transform: scaleX(1);
  }
}