/* ============================================
   FOLD: FEEDBACKS (05)
   ============================================ */

.fold-feedbacks {
  background-color: #f8fafc; /* Fundo claro premium */
  background-image: linear-gradient(to bottom, #f4f7f8, #ffffff);
  padding: 10rem 0;
  overflow: hidden; /* Importante para o marquee não gerar barra de rolagem */
  position: relative;
}

/* Grid Sutil de Fundo */
.fold-feedbacks__bg-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-size: 40px 40px;
  background-image: linear-gradient(to right, rgba(0,0,0,0.03) 1px, transparent 1px), linear-gradient(to bottom, rgba(0,0,0,0.03) 1px, transparent 1px);
}

/* Glow Central Suave */
.fold-feedbacks::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 800px;
  height: 400px;
  background: rgba(250, 182, 0, 0.05); /* Amarelo bem suave */
  filter: blur(100px);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* ── Cabeçalho ── */
.fold-feedbacks__header {
  text-align: center;
  max-width: var(--container-max);
  margin: 0 auto 4rem auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 10;
}

.fold-feedbacks__title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: #18181b; /* dark text */
  line-height: 1.1;
  margin-bottom: 1rem;
}

.fold-feedbacks__subtitle {
  font-size: 1.25rem;
  color: #52525b; /* muted dark text */
}

/* ── Container do Marquee ── */
.fold-feedbacks__marquee-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  z-index: 10;
}

/* Sombra nas bordas para suavizar a entrada e saída dos cards no fundo branco */
.fold-feedbacks__marquee-container::before,
.fold-feedbacks__marquee-container::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 15vw;
  z-index: 2;
  pointer-events: none;
}

.fold-feedbacks__marquee-container::before {
  left: 0;
  background: linear-gradient(to right, #f8fafc, transparent);
}

.fold-feedbacks__marquee-container::after {
  right: 0;
  background: linear-gradient(to left, #f8fafc, transparent);
}

/* ── Marquee Tracks ── */
.marquee {
  display: flex;
  overflow: hidden;
  user-select: none;
}

.marquee__track {
  display: flex;
  gap: 2rem;
  width: max-content;
  flex-shrink: 0;
  padding-right: 2rem; /* Mesmo valor do gap para o loop perfeito */
}

.marquee--left .marquee__track {
  animation: scroll-left 45s linear infinite;
}

.marquee--right .marquee__track {
  animation: scroll-right 40s linear infinite;
  /* Inicia a animação já deslocada para criar variedade */
  transform: translateX(-50%);
}

/* Pausa ao passar o mouse */
.marquee:hover .marquee__track {
  animation-play-state: paused;
}

/* ── Cards de Feedback ── */
.feedback-card {
  background-color: #111111; /* Fundo do card escuro */
  border: 1px solid rgba(255, 255, 255, 0.05); /* Borda suave */
  border-radius: 1.25rem;
  padding: 2.5rem 2rem;
  width: 420px; /* Pouquinho maior para acomodar a foto */
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
}

.feedback-card:hover {
  border-color: rgba(250, 182, 0, 0.4); /* Destaque amarelo suave na borda */
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.2), 0 0 20px rgba(250, 182, 0, 0.1);
}

.feedback-card__text {
  font-size: 1.05rem;
  color: #e4e4e7; /* Texto branco/cinza claro */
  line-height: 1.6;
  font-style: italic;
  position: relative;
}

/* Aspas decorativas via pseudo-elemento */
.feedback-card__text::before {
  content: "“";
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--primary); /* Amarelo ou Tiffany, usando o primary atual */
  position: absolute;
  top: -1.5rem;
  left: -1rem;
  opacity: 0.15;
  line-height: 1;
}

/* ── Rodapé do Card (Foto, Autor, Carro) ── */
.feedback-card__footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08); /* Linha divisória sutil */
  margin-top: auto;
}

.feedback-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
  filter: contrast(1.1) saturate(0.9);
}

.feedback-card__info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.feedback-card__author {
  font-weight: 600;
  color: #ffffff; /* Nome do autor branco */
  font-size: 1rem;
  line-height: 1;
  margin: 0;
}

.feedback-card__car {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: rgba(250, 182, 0, 0.15); /* Fundo amarelo suave */
  color: #FAB600; /* Cor amarela no texto */
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  display: inline-block;
  width: fit-content;
  font-weight: 700;
}

/* ── Animações ── */
@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes scroll-right {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* ── Mobile Responsiveness ── */
@media (max-width: 992px) {
  .fold-feedbacks {
    padding: 6rem 0;
  }

  .fold-feedbacks__title {
    font-size: 2.25rem;
  }

  .fold-feedbacks__subtitle {
    font-size: 1.1rem;
  }

  .feedback-card {
    width: 280px;
    padding: 1.5rem 1.2rem;
  }

  .feedback-card__text {
    font-size: 0.9rem;
  }
}
