/* ==============================================
   SEÇÃO DEPOIMENTOS - Carrossel Moderno e Elegante
   Com fotos circulares no canto superior esquerdo
============================================== */

.testimonials {
  position: relative;
  padding: 120px 0;
  background: 
    linear-gradient(
      135deg,
      #faf7f2 0%,
      #f5efe6 25%,
      #e8dcc6 50%,
      #d4c4a8 75%,
      #b8a082 100%
    );
  background-size: 400% 400%;
  animation: testimonialsBgGradient 15s ease infinite;
  overflow: hidden;
}

/* Animação do gradiente de fundo */
@keyframes testimonialsBgGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Efeitos de fundo decorativos */
.testimonials::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse at 20% 10%, rgba(139, 90, 60, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 90%, rgba(160, 115, 85, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 40% 70%, rgba(101, 67, 33, 0.04) 0%, transparent 30%);
  opacity: 0.8;
  pointer-events: none;
}

/* Padrão geométrico de fundo */
.testimonials::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(30deg, rgba(255,255,255,0.1) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.1) 87.5%, rgba(255,255,255,0.1)),
    linear-gradient(150deg, rgba(255,255,255,0.1) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.1) 87.5%, rgba(255,255,255,0.1)),
    linear-gradient(30deg, rgba(255,255,255,0.05) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.05) 87.5%, rgba(255,255,255,0.05)),
    linear-gradient(150deg, rgba(255,255,255,0.05) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.05) 87.5%, rgba(255,255,255,0.05));
  background-size: 80px 80px, 80px 80px, 40px 40px, 40px 40px;
  background-position: 0 0, 0 0, 40px 40px, 40px 40px;
  opacity: 0.3;
  pointer-events: none;
}

@keyframes testimonialsBg {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.1); }
}

/* Container e título */
.testimonials .container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header da seção */
.testimonials-header {
  text-align: center;
  margin-bottom: 80px;
  animation: fadeInUp 0.8s ease-out;
}

.testimonials .section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(139, 90, 60, 0.15), rgba(160, 115, 85, 0.15));
  color: #8b5a3c;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 24px;
  border: 1px solid rgba(139, 90, 60, 0.25);
}

.testimonials .badge-icon {
  font-size: 1.1rem;
}

.testimonials .section-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #3d2914;
  margin-bottom: 1rem;
  position: relative;
}

.testimonials .highlight-text {
  background: linear-gradient(135deg, #8b5a3c, #a0735b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.testimonials .section-subtitle {
  font-size: 1.2rem;
  color: #5d4e37;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.9;
}

/* Carrossel de Depoimentos */
.testimonials-carousel {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.testimonials-slider {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

/* Slides dos Depoimentos */
.testimonial-slide {
  display: none;
  opacity: 0;
  transform: translateX(100px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-slide.active {
  display: block;
  opacity: 1;
  transform: translateX(0);
}

/* Card de depoimento */
.testimonial-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
  backdrop-filter: blur(20px);
  padding: 70px 40px 40px 40px;
  border-radius: 24px;
  box-shadow: 
    0 32px 64px rgba(0, 0, 0, 0.12),
    0 16px 32px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  position: relative;
  text-align: center;
  margin: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 40px 80px rgba(0, 0, 0, 0.16),
    0 20px 40px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #457b9d, #e63946, #8b5a3c);
  border-radius: 24px 24px 0 0;
}

/* Efeito de brilho no card */
.testimonial-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 70%
  );
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.testimonial-card:hover::after {
  opacity: 1;
}

/* Foto do autor no canto superior esquerdo */
.author-photo-corner {
  position: absolute;
  top: 5px;
  left: 25px;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #faf7f2;
  box-shadow: 
    0 15px 30px rgba(139, 90, 60, 0.2),
    0 8px 16px rgba(139, 90, 60, 0.15),
    0 0 0 2px rgba(160, 115, 85, 0.2);
  z-index: 10;
  transition: all 0.3s ease;
  background: #faf7f2;
}

.author-photo-corner:hover {
  transform: scale(1.1);
  border-color: #e8dcc6;
  box-shadow: 
    0 20px 40px rgba(139, 90, 60, 0.25),
    0 12px 24px rgba(139, 90, 60, 0.2),
    0 0 0 3px rgba(160, 115, 85, 0.3);
}

.author-photo-corner .author-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  display: block;
  transition: transform 0.3s ease;
}

.author-photo-corner:hover .author-img {
  transform: scale(1.05);
}

/* Avaliação com estrelas */
.testimonial-rating {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  justify-content: center;
  margin-top: 10px;
}

.star {
  color: #d4af37;
  font-size: 1.3rem;
  text-shadow: 0 1px 2px rgba(139, 90, 60, 0.3);
}

/* Aspas decorativas */
.quote-icon {
  font-size: 4rem;
  color: rgba(139, 90, 60, 0.2);
  margin-bottom: 20px;
  display: block;
  line-height: 1;
  font-family: 'Georgia', serif;
}

/* Texto do depoimento */
.testimonial-text {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #4a3729;
  margin-bottom: 30px;
  font-style: italic;
  position: relative;
  font-weight: 300;
  letter-spacing: 0.3px;
}

/* Informações do autor */
.testimonial-author-info {
  padding-top: 20px;
  border-top: 1px solid rgba(139, 90, 60, 0.2);
}

.author-name {
  font-weight: 700;
  color: #3d2914;
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.author-role {
  font-size: 0.95rem;
  color: #8b5a3c;
  font-weight: 500;
  opacity: 0.8;
}

/* Controles do Carrossel */
.testimonials-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-top: 50px;
}

/* Botões de navegação */
.testimonial-prev,
.testimonial-next {
  background: linear-gradient(135deg, #8b5a3c, #a0735b);
  color: #faf7f2;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 8px 16px rgba(139, 90, 60, 0.3),
    0 4px 8px rgba(139, 90, 60, 0.2);
  position: relative;
  overflow: hidden;
}

.testimonial-prev:hover,
.testimonial-next:hover {
  transform: translateY(-3px) scale(1.05);
  background: linear-gradient(135deg, #a0735b, #b8a082);
  box-shadow: 
    0 12px 24px rgba(139, 90, 60, 0.4),
    0 6px 12px rgba(139, 90, 60, 0.3);
}

.testimonial-prev:active,
.testimonial-next:active {
  transform: translateY(-1px) scale(1.02);
}

/* Indicadores (dots) */
.testimonial-dots {
  display: flex;
  gap: 12px;
  align-items: center;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(139, 90, 60, 0.3);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.dot.active {
  background: #8b5a3c;
  transform: scale(1.2);
  box-shadow: 0 2px 8px rgba(139, 90, 60, 0.4);
}

.dot:hover {
  background: #a0735b;
  transform: scale(1.1);
}

/* Elementos decorativos flutuantes */
.testimonials-floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.floating-shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(139, 90, 60, 0.1), rgba(160, 115, 85, 0.1));
  filter: blur(1px);
}

.floating-shape.shape-1 {
  width: 120px;
  height: 120px;
  top: 10%;
  left: 15%;
  animation: float1 12s ease-in-out infinite;
}

.floating-shape.shape-2 {
  width: 80px;
  height: 80px;
  top: 60%;
  right: 20%;
  animation: float2 15s ease-in-out infinite reverse;
}

.floating-shape.shape-3 {
  width: 150px;
  height: 150px;
  bottom: 20%;
  left: 10%;
  animation: float3 18s ease-in-out infinite;
}

.floating-shape.shape-4 {
  width: 100px;
  height: 100px;
  top: 30%;
  right: 10%;
  animation: float4 20s ease-in-out infinite reverse;
}

.floating-dots {
  position: absolute;
  width: 100%;
  height: 100%;
}

.floating-dots .dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background: linear-gradient(45deg, #8b5a3c, #a0735b);
  border-radius: 50%;
  opacity: 0.6;
}

.floating-dots .dot-1 {
  top: 25%;
  left: 25%;
  animation: dotFloat1 10s ease-in-out infinite;
}

.floating-dots .dot-2 {
  top: 70%;
  right: 30%;
  animation: dotFloat2 8s ease-in-out infinite reverse;
}

.floating-dots .dot-3 {
  bottom: 30%;
  left: 70%;
  animation: dotFloat3 12s ease-in-out infinite;
}

/* Animações dos elementos flutuantes */
@keyframes float1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(30px, -20px) rotate(90deg); }
  50% { transform: translate(-10px, -40px) rotate(180deg); }
  75% { transform: translate(-30px, -10px) rotate(270deg); }
}

@keyframes float2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-25px, 30px) scale(1.1); }
  66% { transform: translate(20px, -15px) scale(0.9); }
}

@keyframes float3 {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  50% { transform: translate(40px, -30px) rotate(180deg) scale(1.2); }
}

@keyframes float4 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-20px, 25px); }
  50% { transform: translate(15px, -20px); }
  75% { transform: translate(-10px, 10px); }
}

@keyframes dotFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
  50% { transform: translate(25px, -30px) scale(1.5); opacity: 1; }
}

@keyframes dotFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
  50% { transform: translate(-30px, 20px) scale(1.2); opacity: 0.8; }
}

@keyframes dotFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
  50% { transform: translate(20px, -25px) scale(1.3); opacity: 0.9; }
}

/* Responsividade */
@media (max-width: 768px) {
  .testimonials {
    padding: 80px 0;
  }
  
  .testimonials-carousel {
    max-width: 100%;
    margin: 0 10px;
  }
  
  .testimonial-card {
    padding: 60px 25px 30px 25px;
    margin: 10px;
  }
  
  .author-photo-corner {
    top: 8px;
    left: 20px;
    width: 55px;
    height: 55px;
    border: 3px solid #faf7f2;
  }
  
  .testimonial-text {
    font-size: 1.1rem;
  }
  
  .testimonials .section-title {
    font-size: 2.5rem;
  }
  
  .testimonials .section-subtitle {
    font-size: 1.1rem;
  }
  
  .testimonials-controls {
    gap: 20px;
    margin-top: 30px;
  }
  
  .testimonial-prev,
  .testimonial-next {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
}
