/* =========================
   DEPOIMENTOS — Mobile First
========================= */

.depoimentos {
  padding: var(--space-14) 0 var(--space-12);
  background-color: var(--bg-light);
}

/* --- Cabeçalho --- */
.depoimentos__header {
  text-align: center;
  margin-bottom: var(--space-10);
}

.depoimentos__title {
  font-family: var(--font-main);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-6);
}

/* Divisor igual ao do hero, centralizado */
.depoimentos__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  max-width: 180px;
  margin: 0 auto;
}

.depoimentos__divider::before,
.depoimentos__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: var(--primary-dark);
  opacity: 0.35;
}

.depoimentos__divider-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  filter: invert(15%) sepia(90%) saturate(2500%) hue-rotate(315deg)
    brightness(80%) contrast(95%);
}

/* --- Track scrollável no mobile --- */
.depoimentos__track-wrapper {
  width: 100%;
  overflow: hidden;
  padding: var(--space-3) 0 var(--space-8);
}

.depoimentos__track {
  display: flex;
  gap: var(--space-6);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scroll-padding-left: 5vw;
  padding: var(--space-3) 5vw;
  scrollbar-width: none;
}

.depoimentos__track::-webkit-scrollbar {
  display: none;
}

/* --- Card --- */
.depoimento-card {
  scroll-snap-align: start;
  flex: 0 0 85%;
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow:
    0 2px 8px var(--shadow-dark-sm),
    0 1px 2px var(--shadow-dark-xs);
  padding: var(--space-9);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

/* Aspas decorativas */
.depoimento-card__quote {
  font-size: 3.5rem;
  line-height: 1;
  color: var(--primary-color);
  font-family: Georgia, serif;
  user-select: none;
}

/* Texto do depoimento */
.depoimento-card__text {
  font-size: var(--fs-md);
  color: var(--text-dark);
  line-height: 1.7;
  flex: 1; /* empurra o rodapé para baixo */
}

/* Rodapé: nome + estrelas */
.depoimento-card__footer {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.depoimento-card__name {
  font-family: var(--font-main);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--text-dark);
}

.depoimento-card__stars {
  color: #f4b942; /* amarelo dourado das estrelas */
  font-size: var(--fs-base);
  letter-spacing: 2px;
}

/* --- Dots de navegação --- */
.depoimentos__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

/* Desktop dots ocultos no mobile */
.depoimentos__dots--desktop {
  display: none;
}

/* Área de toque 44×44px (WCAG 2.5.5); visual via ::after */
.depoimentos__dot {
  width: 44px;
  height: 44px;
  border-radius: 0;
  background-color: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
}

.depoimentos__dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: var(--dot-size);
  height: var(--dot-size);
  border-radius: var(--radius-full);
  background-color: var(--primary-color);
  transition:
    background-color var(--transition-fast) ease,
    transform var(--transition-fast) ease;
}

.depoimentos__dot:hover::after {
  background-color: var(--primary-dark);
}

.depoimentos__dot--active::after {
  background-color: var(--primary-dark);
  transform: translate(-50%, -50%) scale(1.25);
}

/* =========================
   DESKTOP (≥ 768px)
========================= */
@media (min-width: 768px) {
  .depoimentos__title {
    font-size: var(--fs-3xl);
  }

  /* Mantém o scroll snap com 3 cards visíveis + padding lateral */
  .depoimentos__track {
    scroll-padding-left: 5%;
    padding: var(--space-3) 5%;
  }

  /* 3 cards por página: (90% da track - 2 gaps) / 3 */
  .depoimento-card {
    flex: 0 0 calc(90% / 3 - var(--space-6) * 2 / 3);
  }

  /* Mobile dots ocultos, desktop dots visíveis */
  .depoimentos__dots--mobile {
    display: none;
  }

  .depoimentos__dots--desktop {
    display: flex;
  }
}
