/* ============================================================
   TÉMOIGNAGES / NOS CLIENTS - Enhanced Redesign
   Mobile-First Responsive Design
   ============================================================ */

/* Utility - Visually Hidden (Accessibility) */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border-width: 0 !important;
}

/* ──────────────────────────────────────────────────────────
   Section Container
   ────────────────────────────────────────────────────────── */

.testimonials-section {
  position: relative;
  overflow: hidden;
  overflow-x: clip;
  padding: clamp(60px, 10vh, 140px) 0;
  background:
    linear-gradient(180deg, rgba(5, 6, 9, 0.9) 0%, rgba(5, 6, 9, 0) 32%),
    linear-gradient(0deg, rgba(5, 6, 9, 0.9) 0%, rgba(5, 6, 9, 0) 32%),
    linear-gradient(180deg, #0a0505 0%, #140808 50%, #0a0505 100%);
  color: #f7f7f7;
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 800ms cubic-bezier(0.4, 0, 0.2, 1),
              transform 800ms cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  max-width: 100vw;
}

.testimonials-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animated Background */
.testimonials-bg {
  position: absolute;
  inset: -20% -40% -30% -40%;
  background:
    radial-gradient(circle at 20% 20%, rgba(185, 5, 4, 0.30), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(211, 47, 47, 0.18), transparent 60%),
    radial-gradient(circle at 50% 50%, rgba(185, 5, 4, 0.15), transparent 70%);
  filter: blur(70px);
  opacity: 0.85;
  z-index: 0;
  pointer-events: none;
  animation: testimonialsAmbient 20s ease-in-out infinite alternate;
}

.testimonials-shell {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 28px) clamp(12px, 3vw, 20px);
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 6vw, 48px);
  background: linear-gradient(180deg, rgba(12, 12, 12, 0.65) 0%, rgba(12, 12, 12, 0.35) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 32px;
  box-shadow:
    0 18px 64px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.testimonials-edge {
  position: absolute;
  left: 0;
  right: 0;
  height: 140px;
  pointer-events: none;
  z-index: 1;
}

.testimonials-edge--top {
  top: 0;
  background: var(--section-fade-top);
}

.testimonials-edge--bottom {
  bottom: 0;
  background: var(--section-fade-bottom);
}

@keyframes testimonialsAmbient {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.85;
  }
  50% {
    transform: translate(3%, -3%) scale(1.05);
    opacity: 0.75;
  }
  100% {
    transform: translate(-2%, 2%) scale(0.98);
    opacity: 0.90;
  }
}

/* ──────────────────────────────────────────────────────────
   Enhanced Header
   ────────────────────────────────────────────────────────── */

.testimonials-header {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto clamp(32px, 7vw, 56px);
  width: 100%;
}

/* Eyebrow Text */
.testimonials-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red, #d32f2f);
  margin-bottom: 16px;
}

.testimonials-eyebrow-line {
  display: inline-block;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red, #d32f2f));
}

/* Title */
.testimonials-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(32px, 5.5vw, 54px);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 32px;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  line-height: 1.2;
}

/* Enhanced Rating Display */
.testimonials-rating-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 4vw, 32px);
  flex-wrap: wrap;
  margin-bottom: 40px;
  padding: clamp(20px, 3vw, 28px) clamp(24px, 4vw, 40px);
  background: rgba(12, 12, 12, 0.80);
  backdrop-filter: blur(20px);
  border-radius: 999px;
  border: 1px solid rgba(185, 5, 4, 0.25);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.rating-score {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rating-number {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  color: var(--red, #d32f2f);
  line-height: 1;
  text-shadow: 0 0 20px rgba(185, 5, 4, 0.6);
}

.rating-stars {
  display: flex;
  gap: 4px;
}

.rating-stars .star {
  font-size: clamp(20px, 2.5vw, 28px);
  color: #FFD700;
  text-shadow: 0 2px 8px rgba(255, 215, 0, 0.5);
  line-height: 1;
  display: inline-block;
  transform-origin: center center;
  animation: starShinePopUp 2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 0;
  transform: scale(0.3) rotateY(-180deg);
}

/* Cascading animation delays for left-to-right effect */
.rating-stars .star:nth-child(1) { animation-delay: 0ms; }
.rating-stars .star:nth-child(2) { animation-delay: 150ms; }
.rating-stars .star:nth-child(3) { animation-delay: 300ms; }
.rating-stars .star:nth-child(4) { animation-delay: 450ms; }
.rating-stars .star:nth-child(5) { animation-delay: 600ms; }

/* Star Shine & Pop-Up Animation */
@keyframes starShinePopUp {
  0% {
    opacity: 0;
    transform: scale(0.3) rotateY(-180deg) translateY(20px);
    filter: brightness(0.5) blur(2px);
    text-shadow: 0 0 0 rgba(255, 215, 0, 0);
  }

  30% {
    opacity: 1;
    transform: scale(1.4) rotateY(0deg) translateY(-8px);
    filter: brightness(2.5) blur(0px);
    text-shadow:
      0 0 30px rgba(255, 215, 0, 1),
      0 0 60px rgba(255, 215, 0, 0.8),
      0 4px 12px rgba(255, 215, 0, 0.6);
  }

  50% {
    transform: scale(1.15) rotateY(0deg) translateY(-4px) rotateZ(10deg);
    filter: brightness(2) blur(0px);
    text-shadow:
      0 0 25px rgba(255, 215, 0, 0.9),
      0 0 50px rgba(255, 215, 0, 0.7),
      0 4px 12px rgba(255, 215, 0, 0.6);
  }

  70% {
    transform: scale(0.95) rotateY(0deg) translateY(0px) rotateZ(-5deg);
    filter: brightness(1.5) blur(0px);
  }

  85% {
    transform: scale(1.05) rotateY(0deg) translateY(0px) rotateZ(0deg);
    filter: brightness(1.2) blur(0px);
  }

  100% {
    opacity: 1;
    transform: scale(1) rotateY(0deg) translateY(0px) rotateZ(0deg);
    filter: brightness(1) blur(0px);
    text-shadow:
      0 2px 8px rgba(255, 215, 0, 0.5),
      0 0 15px rgba(255, 215, 0, 0.3);
  }
}

/* Continuous subtle pulse for ongoing shine effect */
.testimonials-section.is-visible .rating-stars .star {
  animation: starShinePopUp 2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
             starPulseGlow 3s ease-in-out 2s infinite;
}

@keyframes starPulseGlow {
  0%, 100% {
    filter: brightness(1);
    text-shadow:
      0 2px 8px rgba(255, 215, 0, 0.5),
      0 0 15px rgba(255, 215, 0, 0.3);
  }

  50% {
    filter: brightness(1.3);
    text-shadow:
      0 2px 12px rgba(255, 215, 0, 0.7),
      0 0 25px rgba(255, 215, 0, 0.5),
      0 0 35px rgba(255, 215, 0, 0.3);
  }
}

.rating-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.rating-count {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(14px, 1.5vw, 16px);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
}

.rating-link {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(13px, 1.4vw, 15px);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.4);
  transition: color 250ms ease, border-color 250ms ease;
  width: fit-content;
}

.rating-link:hover,
.rating-link:focus-visible {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.8);
}

/* Social Proof Metrics */
.testimonials-metrics {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 5vw, 48px);
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.metric-value {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  text-shadow: 0 4px 16px rgba(185, 5, 4, 0.4);
}

.metric-suffix {
  font-size: 0.6em;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

.metric-label {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(12px, 1.3vw, 14px);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  text-transform: lowercase;
  letter-spacing: 0.03em;
}

.metric-divider {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg,
    transparent,
    rgba(255, 255, 255, 0.2) 50%,
    transparent
  );
}

/* ──────────────────────────────────────────────────────────
   Filter System
   ────────────────────────────────────────────────────────── */

.testimonials-filters {
  position: relative;
  z-index: 3;
  display: none;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 auto clamp(24px, 5vw, 40px);
  max-width: 960px;
}

.filter-btn {
  padding: 10px 20px;
  background: rgba(25, 10, 10, 0.60);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.filter-btn:hover {
  background: rgba(30, 12, 12, 0.80);
  border-color: rgba(185, 5, 4, 0.4);
  color: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
}

.filter-btn.is-active {
  background: linear-gradient(135deg, rgba(185, 5, 4, 0.35), rgba(211, 47, 47, 0.25));
  border-color: rgba(185, 5, 4, 0.5);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(185, 5, 4, 0.3);
}

.filter-count {
  display: inline-block;
  margin-left: 6px;
  font-size: 12px;
  opacity: 0.7;
}

/* Show filters on desktop */
@media (min-width: 768px) {
  .testimonials-filters {
    display: flex;
  }
}

/* ──────────────────────────────────────────────────────────
   Testimonials Layout Container
   ────────────────────────────────────────────────────────── */

.testimonials-container {
  position: relative;
  z-index: 2;
  margin: 0 auto clamp(40px, 7vw, 72px);
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

/* Desktop: Featured + Grid Layout */
.testimonials-layout {
  display: none;
  gap: 32px;
  margin-bottom: 64px;
}

@media (min-width: 1024px) {
  .testimonials-layout {
    display: grid;
    grid-template-columns: minmax(400px, 1fr) 2fr;
    align-items: start;
  }


  .testimonials-layout.testimonials-layout--single {
    grid-template-columns: 1fr;
  }

  .testimonials-layout.testimonials-layout--single .testimonials-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }
}

@media (min-width: 1280px) {
  .testimonials-layout {
    gap: 40px;
  }
}

/* Secondary Testimonials Grid */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (min-width: 1280px) {
  .testimonials-grid {
    gap: 32px;
  }
}

/* ──────────────────────────────────────────────────────────
   Testimonial Cards (Shared Styles)
   ────────────────────────────────────────────────────────── */

.testimonial-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px;
  background: rgba(25, 10, 10, 0.75);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(185, 5, 4, 0.20);
  border-radius: 24px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 350ms cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  animation: cardFadeIn 600ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  word-wrap: break-word;
}

@keyframes cardFadeIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.testimonial-card[data-card-index="0"] { animation-delay: 100ms; }
.testimonial-card[data-card-index="1"] { animation-delay: 200ms; }
.testimonial-card[data-card-index="2"] { animation-delay: 300ms; }
.testimonial-card[data-card-index="3"] { animation-delay: 400ms; }
.testimonial-card[data-card-index="4"] { animation-delay: 500ms; }
.testimonial-card[data-card-index="5"] { animation-delay: 600ms; }

.testimonial-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.06) 0%,
    transparent 50%,
    rgba(185, 5, 4, 0.08) 100%
  );
  opacity: 0;
  transition: opacity 400ms ease;
  pointer-events: none;
}

.testimonial-card:hover::before,
.testimonial-card:focus-within::before {
  opacity: 1;
}

.testimonial-card:hover,
.testimonial-card:focus-within {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(185, 5, 4, 0.40);
  box-shadow:
    0 20px 60px rgba(185, 5, 4, 0.25),
    0 0 0 1px rgba(185, 5, 4, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Featured Testimonial (Larger, Desktop Only) */
.testimonial-featured {
  grid-row: span 2;
  gap: 24px;
  padding: 40px;
  background: rgba(30, 12, 12, 0.85);
}

.testimonial-featured .card-quote p {
  font-size: clamp(18px, 1.9vw, 22px);
  line-height: 1.7;
}

.testimonial-featured .profile-photo {
  width: 80px;
  height: 80px;
}

.testimonial-featured .profile-name {
  font-size: 18px;
}

.testimonial-featured .profile-vehicle {
  font-size: 16px;
}

/* Badge Group */
.card-badge-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.service-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: linear-gradient(135deg, rgba(185, 5, 4, 0.20), rgba(211, 47, 47, 0.15));
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.90);
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(52, 168, 83, 0.15);
  border: 1px solid rgba(52, 168, 83, 0.3);
  border-radius: 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: rgba(52, 168, 83, 1);
}

.verified-icon {
  flex-shrink: 0;
}

/* Quote */
.card-quote {
  margin: 0;
  flex: 1;
}

.card-quote p {
  font-family: 'Lora', serif;
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.94);
  margin: 0;
  position: relative;
}

.card-quote p::before {
  content: '«';
  position: absolute;
  left: -0.35em;
  color: var(--red, #d32f2f);
  font-size: 1.3em;
  opacity: 0.5;
}

/* Star Rating */
.card-rating {
  display: flex;
  gap: 4px;
}

.card-rating .star {
  font-size: 20px;
  color: #FFD700;
  text-shadow: 0 2px 6px rgba(255, 215, 0, 0.4);
  line-height: 1;
  display: inline-block;
  transform-origin: center center;
  animation: cardStarPopIn 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 0;
}

/* Cascading animation for card stars */
.card-rating .star:nth-child(1) { animation-delay: 100ms; }
.card-rating .star:nth-child(2) { animation-delay: 200ms; }
.card-rating .star:nth-child(3) { animation-delay: 300ms; }
.card-rating .star:nth-child(4) { animation-delay: 400ms; }
.card-rating .star:nth-child(5) { animation-delay: 500ms; }

/* Card Star Pop-In Animation */
@keyframes cardStarPopIn {
  0% {
    opacity: 0;
    transform: scale(0.2) translateY(15px) rotateZ(-45deg);
    filter: brightness(0.3);
    text-shadow: 0 0 0 rgba(255, 215, 0, 0);
  }

  40% {
    opacity: 1;
    transform: scale(1.25) translateY(-3px) rotateZ(5deg);
    filter: brightness(2);
    text-shadow:
      0 0 20px rgba(255, 215, 0, 0.9),
      0 2px 8px rgba(255, 215, 0, 0.6);
  }

  65% {
    transform: scale(0.9) translateY(0px) rotateZ(-2deg);
    filter: brightness(1.3);
  }

  80% {
    transform: scale(1.05) translateY(0px) rotateZ(0deg);
    filter: brightness(1.1);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0px) rotateZ(0deg);
    filter: brightness(1);
    text-shadow: 0 2px 6px rgba(255, 215, 0, 0.4);
  }
}

/* Subtle hover effect on card stars */
.testimonial-card:hover .card-rating .star {
  animation: cardStarHoverGlow 0.6s ease-in-out forwards;
}

@keyframes cardStarHoverGlow {
  0%, 100% {
    filter: brightness(1);
    text-shadow: 0 2px 6px rgba(255, 215, 0, 0.4);
  }

  50% {
    filter: brightness(1.4);
    text-shadow:
      0 2px 10px rgba(255, 215, 0, 0.7),
      0 0 20px rgba(255, 215, 0, 0.5);
    transform: scale(1.1);
  }
}

/* Profile Section */
.card-profile {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-photo {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.testimonial-card:hover .profile-photo {
  transform: scale(1.08);
}

.profile-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 600;
  font-style: normal;
  color: #ffffff;
  margin: 0;
}

.profile-vehicle {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

.profile-service {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.60);
  margin: 0;
}

.profile-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.50);
  margin-top: 2px;
}

.profile-location {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.meta-divider {
  color: rgba(255, 255, 255, 0.3);
}

.profile-date {
  font-style: normal;
}

/* Google Link */
.card-google-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: all 250ms ease;
  width: fit-content;
}

.card-google-link:hover,
.card-google-link:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  transform: translateX(4px);
}

.google-icon {
  flex-shrink: 0;
}

/* ──────────────────────────────────────────────────────────
   Mobile Carousel
   ────────────────────────────────────────────────────────── */

.testimonials-carousel-mobile {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 8px 4px 32px 4px;
  -webkit-overflow-scrolling: touch;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-track .testimonial-card {
  flex: 0 0 calc(100% - 32px);
  max-width: calc(100% - 32px);
  scroll-snap-align: center;
  animation: none;
  opacity: 1;
  transform: none;
  min-width: 280px;
}

/* Pagination Dots */
.carousel-pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  padding: 0 16px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  cursor: pointer;
  transition: all 300ms ease;
  padding: 0;
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.4);
}

.carousel-dot.is-active {
  width: 28px;
  border-radius: 5px;
  background: var(--red, #d32f2f);
  box-shadow: 0 0 12px rgba(185, 5, 4, 0.6);
}

/* Carousel Controls */
.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.carousel-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(25, 10, 10, 0.80);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.carousel-btn:hover {
  background: rgba(30, 12, 12, 0.95);
  border-color: rgba(185, 5, 4, 0.4);
  color: #ffffff;
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(185, 5, 4, 0.3);
}

.carousel-btn:active {
  transform: scale(0.96);
}

.carousel-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* Hide mobile carousel on desktop */
@media (min-width: 1024px) {
  .testimonials-carousel-mobile {
    display: none;
  }
}

/* ──────────────────────────────────────────────────────────
   Enhanced CTA Section
   ────────────────────────────────────────────────────────── */

.testimonials-cta {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: clamp(48px, 8vw, 70px) clamp(32px, 6vw, 60px);
  background: linear-gradient(135deg, rgba(185, 5, 4, 0.15), rgba(211, 47, 47, 0.08));
  backdrop-filter: blur(24px);
  border: 1px solid rgba(185, 5, 4, 0.25);
  border-radius: 32px;
  box-shadow:
    0 16px 60px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-align: center;
}

.cta-content {
  max-width: 600px;
}

.cta-heading {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 12px;
  line-height: 1.3;
}

.cta-subtext {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(15px, 1.8vw, 18px);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.80);
  margin: 0;
}

.cta-subtext strong {
  color: var(--red, #d32f2f);
  font-weight: 700;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* Primary CTA Button */
.btn-primary-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 36px;
  background: linear-gradient(135deg, var(--red, #d32f2f) 0%, #b71c1c 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(15px, 1.6vw, 17px);
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow:
    0 12px 32px rgba(185, 5, 4, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}

.btn-primary-large:hover,
.btn-primary-large:focus-visible {
  transform: translateY(-4px);
  box-shadow:
    0 20px 50px rgba(185, 5, 4, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-primary-large:active {
  transform: translateY(-2px);
}

.btn-arrow {
  transition: transform 250ms ease;
}

.btn-primary-large:hover .btn-arrow {
  transform: translateX(4px);
}

/* Secondary CTA Button */
.btn-secondary-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  background: rgba(25, 10, 10, 0.60);
  backdrop-filter: blur(12px);
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(15px, 1.6vw, 17px);
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.btn-secondary-outline:hover,
.btn-secondary-outline:focus-visible {
  background: rgba(30, 12, 12, 0.85);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.btn-icon {
  transition: transform 250ms ease;
}

.btn-secondary-outline:hover .btn-icon {
  transform: rotate(8deg) scale(1.1);
}

/* Ghost Button */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(14px, 1.5vw, 16px);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: all 250ms ease;
  cursor: pointer;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

/* ──────────────────────────────────────────────────────────
   Responsive Breakpoints
   ────────────────────────────────────────────────────────── */

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .carousel-track .testimonial-card {
    flex: 0 0 min(75%, 500px);
    max-width: min(75%, 500px);
  }

  .cta-actions {
    flex-direction: row;
  }
}

/* Mobile Landscape / Small Tablet */
@media (min-width: 560px) and (max-width: 767px) {
  .carousel-track .testimonial-card {
    flex: 0 0 calc(100% - 40px);
    max-width: calc(100% - 40px);
  }

  .testimonials-rating-display {
    flex-direction: row;
  }

  .rating-meta {
    text-align: left;
  }
}

/* Mobile (< 560px) */
@media (max-width: 559px) {
  .testimonials-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .testimonials-header {
    margin-bottom: 32px;
  }

  .testimonials-title {
    font-size: clamp(28px, 8vw, 36px);
    margin-bottom: 24px;
  }

  .testimonials-eyebrow {
    font-size: 11px;
    gap: 8px;
  }

  .testimonials-eyebrow-line {
    width: 30px;
  }

  .testimonials-rating-display {
    flex-direction: column;
    text-align: center;
    padding: 16px 20px;
    gap: 16px;
  }

  .rating-meta {
    text-align: center;
  }

  .testimonials-metrics {
    gap: 16px;
    margin-bottom: 32px;
  }

  .metric-divider {
    display: none;
  }

  .testimonials-container {
    margin-bottom: 40px;
  }

  .carousel-track {
    gap: 12px;
    padding: 4px 2px 24px 2px;
  }

  .carousel-track .testimonial-card {
    flex: 0 0 calc(100% - 24px);
    max-width: calc(100% - 24px);
    min-width: 260px;
    padding: 24px 20px;
    gap: 16px;
  }

  .testimonial-card .card-quote p {
    font-size: 15px;
    line-height: 1.6;
  }

  .testimonial-card .profile-photo {
    width: 48px;
    height: 48px;
  }

  .testimonial-card .profile-name {
    font-size: 15px;
  }

  .testimonial-card .profile-vehicle {
    font-size: 13px;
  }

  .testimonial-card .profile-service {
    font-size: 12px;
  }

  .carousel-pagination {
    margin-top: 16px;
    gap: 8px;
  }

  .carousel-dot {
    width: 8px;
    height: 8px;
  }

  .carousel-dot.is-active {
    width: 24px;
  }

  .testimonials-cta {
    padding: 32px 20px;
    gap: 24px;
    border-radius: 24px;
  }

  .cta-heading {
    font-size: clamp(22px, 6vw, 28px);
  }

  .cta-subtext {
    font-size: 14px;
  }

  .cta-actions {
    width: 100%;
    flex-direction: column;
    gap: 12px;
  }

  .btn-primary-large,
  .btn-secondary-outline,
  .btn-ghost {
    width: 100%;
    padding: 14px 24px;
    font-size: 14px;
  }

  .carousel-controls {
    display: none;
  }
}

/* Extra small mobile (< 360px) */
@media (max-width: 359px) {
  .testimonials-section {
    padding-left: 12px;
    padding-right: 12px;
  }

  .carousel-track .testimonial-card {
    flex: 0 0 calc(100% - 16px);
    max-width: calc(100% - 16px);
    min-width: 240px;
    padding: 20px 16px;
  }

  .testimonials-rating-display {
    padding: 14px 16px;
  }

  .testimonials-cta {
    padding: 24px 16px;
  }
}

/* ──────────────────────────────────────────────────────────
   Accessibility & Reduced Motion
   ────────────────────────────────────────────────────────── */

.testimonial-card:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 3px;
}

.filter-btn:focus-visible,
.carousel-btn:focus-visible,
.carousel-dot:focus-visible,
.btn-primary-large:focus-visible,
.btn-secondary-outline:focus-visible,
.btn-ghost:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .testimonials-section {
    opacity: 1;
    transform: none;
  }

  .testimonials-bg {
    animation: none;
  }

  .testimonial-card {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .carousel-track {
    scroll-behavior: auto;
  }

  .rating-stars .star,
  .card-rating .star {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

/* ──────────────────────────────────────────────────────────
   Loading States & Skeleton
   ────────────────────────────────────────────────────────── */

.testimonial-card.is-loading {
  pointer-events: none;
  opacity: 0.5;
}

.testimonial-card.is-hidden {
  display: none;
}

/* Fade transition for filtered testimonials */
.testimonial-card.fade-out {
  animation: fadeOut 300ms ease-out forwards;
}

.testimonial-card.fade-in {
  animation: fadeIn 400ms ease-in forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
