/* styles/sections/depoimentos.css */

.depoimentos {
  background-color: var(--color-white);
  padding: var(--space-6xl) 0;
}

.depoimentos__header {
  text-align: center;
  margin-bottom: var(--space-5xl);
}

.depoimentos__title {
  font-family: var(--font-primary);
  font-size: var(--font-size-4xl);
  color: var(--color-black);
  margin-bottom: var(--space-lg);
  line-height: 1.2;
}

/* Lista de depoimentos */
.depoimentos__list {
  max-width: 1000px;
  margin: 0 auto;
}

.depoimento {
  background-color: var(--color-off-white);
  padding: var(--space-2xl);
  border-radius: var(--border-radius-lg);
  text-align: center;
  transition: var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.depoimento:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

/* Elemento decorativo */
.depoimento::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-family: var(--font-primary);
  font-size: 4rem;
  color: var(--color-primary);
  opacity: 0.3;
  line-height: 1;
}

.depoimento__stars {
  font-size: var(--font-size-lg);
  color: var(--color-accent);
  margin-bottom: var(--space-md);
  display: flex;
  justify-content: center;
  gap: 2px;
}

.depoimento__stars iconify-icon {
  width: 20px;
  height: 20px;
}

.depoimento__text {
  font-family: var(--font-secondary);
  font-size: var(--font-size-lg);
  color: var(--color-black);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
  flex-grow: 1;
  font-style: italic;
}

.depoimento__author {
  font-family: var(--font-secondary);
  font-size: var(--font-size-base);
  color: var(--color-primary);
  font-weight: var(--font-weight-medium);
  position: relative;
}

.depoimento__author::before {
  content: '—';
  margin-right: var(--space-sm);
  color: var(--color-gray-medium);
}

/* Variação com foto do cliente */
.depoimento--with-photo {
  padding-top: var(--space-3xl);
}

.depoimento__photo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto var(--space-lg);
  border: 3px solid var(--color-primary);
}

/* Destaque para depoimento principal */
.depoimento--featured {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  transform: scale(1.05);
}

.depoimento--featured .depoimento__text {
  color: var(--color-white);
}

.depoimento--featured .depoimento__author {
  color: var(--color-white);
  opacity: 0.9;
}

.depoimento--featured .depoimento__stars {
  color: var(--color-accent);
}

.depoimento--featured::before {
  color: rgba(255, 255, 255, 0.3);
}

/* Seção de estatísticas */
.depoimentos__stats {
  display: flex;
  justify-content: center;
  gap: var(--space-4xl);
  margin-top: var(--space-5xl);
  padding-top: var(--space-3xl);
  border-top: 1px solid var(--color-gray-light);
}

.depoimentos__stat {
  text-align: center;
}

.depoimentos__stat-number {
  font-family: var(--font-primary);
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  display: block;
  line-height: 1;
}

.depoimentos__stat-label {
  font-family: var(--font-secondary);
  font-size: var(--font-size-base);
  color: var(--color-gray-medium);
  margin-top: var(--space-sm);
}

/* Responsividade */
@media (max-width: 767px) {
  .depoimentos {
    padding: var(--space-4xl) 0;
  }
  
  .depoimentos__header {
    margin-bottom: var(--space-3xl);
  }
  
  .depoimentos__title {
    font-size: var(--font-size-3xl);
  }
  
  .depoimentos__list .grid--3-cols {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .depoimento {
    padding: var(--space-xl);
  }
  
  .depoimento__text {
    font-size: var(--font-size-base);
  }
  
  .depoimento--featured {
    transform: none;
    order: -1;
  }
  
  .depoimentos__stats {
    flex-direction: column;
    gap: var(--space-2xl);
    margin-top: var(--space-3xl);
  }
  
  .depoimentos__stat-number {
    font-size: var(--font-size-3xl);
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .depoimentos__list .grid--3-cols {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    max-width: 600px;
    margin: 0 auto;
  }
  
  .depoimento--featured {
    transform: none;
  }
}

@media (min-width: 1200px) {
  .depoimentos__title {
    font-size: var(--font-size-5xl);
  }
  
  .depoimentos__stats {
    gap: var(--space-6xl);
  }
}

/* Animações de entrada */
.depoimento {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-slow);
}

.depoimento.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.depoimento:nth-child(1).animate-in { transition-delay: 0.1s; }
.depoimento:nth-child(2).animate-in { transition-delay: 0.2s; }
.depoimento:nth-child(3).animate-in { transition-delay: 0.3s; }

/* Animação das estrelas */
@media (prefers-reduced-motion: no-preference) {
  .depoimento__stars {
    animation: sparkle 2s ease-in-out infinite;
  }
}

@keyframes sparkle {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}
