/* ============================================
   Testimonials Section - Enhanced Visual Layers
   CSS-only texture, depth, and dynamism
   ============================================ */

/* --- Camada 1: Gradiente diagonal + setup para pseudo-elementos --- */
.testimonials-section {
  background: linear-gradient(
    135deg,
    #112d28 0%,
    #19513f 35%,
    #1d5e48 65%,
    #19513f 100%
  ) !important;
  position: relative !important;
  overflow: hidden !important;
  isolation: isolate;
}

/* --- Camada 2: Textura de pontos (::before) --- */
.testimonials-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.03) 1px,
    transparent 1px
  );
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

/* --- Camada 3: Brilho ambiente animado (::after) --- */
.testimonials-section::after {
  content: "";
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(ellipse 600px 400px at 20% 50%, rgba(29, 94, 72, 0.4), transparent),
    radial-gradient(ellipse 500px 350px at 80% 30%, rgba(29, 94, 72, 0.3), transparent),
    radial-gradient(ellipse 300px 300px at 60% 70%, rgba(201, 162, 39, 0.06), transparent);
  pointer-events: none;
  z-index: 0;
  animation: testimonials-ambient-glow 20s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes testimonials-ambient-glow {
  0% {
    transform: translate(0, 0);
  }
  33% {
    transform: translate(-3%, 2%);
  }
  66% {
    transform: translate(2%, -1%);
  }
  100% {
    transform: translate(-1%, -2%);
  }
}

/* --- Camada 4: Z-index do conteudo real --- */
.testimonials-section > .spacer-huge,
.testimonials-section > .w-layout-blockcontainer {
  position: relative;
  z-index: 1;
}

/* ============================================
   Glassmorphism nos Testimonial Cards
   ============================================ */
.home_testimonial_content {
  background: rgba(255, 255, 255, 0.04) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  padding: 2rem !important;
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.06),
    0 4px 24px rgba(0, 0, 0, 0.15);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.home_testimonial_content:hover {
  border-color: rgba(201, 162, 39, 0.35) !important;
  transform: translateY(-4px);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.08),
    0 8px 32px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(201, 162, 39, 0.1);
}

/* ============================================
   Shimmer nas Estrelas
   ============================================ */
.testimonial-stars {
  background: linear-gradient(
    90deg,
    #FFD700 0%,
    #FFF2B3 40%,
    #FFD700 80%,
    #FFF2B3 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: testimonials-star-shimmer 3s ease-in-out infinite alternate;
}

@keyframes testimonials-star-shimmer {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

/* ============================================
   Hover nos Botoes de Navegacao (setas)
   ============================================ */
.testimonials-section .slider-arrow {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.testimonials-section .slider-arrow:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* ============================================
   Acessibilidade: prefers-reduced-motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .testimonials-section::after {
    animation: none;
  }

  .testimonial-stars {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: #FFD700;
    animation: none;
  }

  .home_testimonial_content:hover {
    transform: none;
  }

  .testimonials-section .slider-arrow:hover {
    transform: none;
  }
}

/* ============================================
   Responsividade
   ============================================ */

/* Tablet */
@media (max-width: 991px) {
  .testimonials-section::before {
    background-size: 20px 20px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .testimonials-section::before {
    background-size: 16px 16px;
  }

  .testimonials-section::after {
    animation-duration: 30s;
  }

  .home_testimonial_content:hover {
    transform: translateY(-2px);
  }

  .home_testimonial_content {
    padding: 1.5rem !important;
  }
}
