/* ==========================================================
   ThinkAIQ — Reviews coverflow carousel
   LIGHT theme. Vanilla Swiper (coverflow effect). No React.
   Accent gradient: cyan -> purple.
   ========================================================== */

.reviews-section {
  background: #f8fafc;
  position: relative;
  overflow: hidden;
}

.reviews-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
  padding: 0 16px;
}

.reviews-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(6, 182, 212, 0.25);
  background: rgba(6, 182, 212, 0.08);
  color: #0891b2;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.reviews-title {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  margin: 0 0 12px;
}

.reviews-subtitle {
  font-size: 15px;
  color: #64748b;
  line-height: 1.55;
  margin: 0;
}

/* ---------- Carousel ---------- */
.reviews-coverflow {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 0 28px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.reviews-coverflow .swiper-wrapper {
  align-items: stretch;
}

.reviews-coverflow .swiper-slide {
  height: auto;
  transition: opacity 0.35s ease, filter 0.35s ease;
}

.reviews-coverflow .swiper-slide:not(.swiper-slide-active) {
  opacity: 0.6;
  filter: blur(1.4px);
}

/* ---------- Review card ---------- */
.review-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 280px;
  padding: 28px 24px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.review-stars {
  color: #f59e0b;
  font-size: 16px;
  letter-spacing: 2px;
  line-height: 1;
  margin-bottom: 16px;
}

.review-quote {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  color: #0f172a;
  font-style: italic;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.06);
  margin: 20px 0;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.review-avatar {
  position: relative;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.review-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.review-avatar.is-fallback img {
  display: none;
}

.review-name {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.review-role {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

/* ---------- Controls ---------- */
.reviews-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 6px;
}

.reviews-prev,
.reviews-next {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.reviews-prev:hover,
.reviews-next:hover {
  border-color: #06b6d4;
  color: #06b6d4;
  transform: translateY(-2px);
}

.reviews-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  width: auto;
}

.reviews-dots .swiper-pagination-bullet {
  width: 7px;
  height: 7px;
  margin: 0 !important;
  background: #cbd5e1;
  opacity: 1;
  transition: all 0.25s ease;
}

.reviews-dots .swiper-pagination-bullet-active {
  width: 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #06b6d4, #8b5cf6);
}

/* ═══════════════════════════════════════════
   TABLET (≥ 768px)
═══════════════════════════════════════════ */
@media (min-width: 768px) {
  .reviews-title {
    font-size: 32px;
  }

  .reviews-subtitle {
    font-size: 16px;
  }
}

/* ═══════════════════════════════════════════
   DESKTOP (≥ 1024px)
═══════════════════════════════════════════ */
@media (min-width: 1024px) {
  .reviews-title {
    font-size: 36px;
  }
}

/* ═══════════════════════════════════════════
   REDUCED MOTION
═══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .reviews-coverflow .swiper-slide:not(.swiper-slide-active) {
    opacity: 1;
    filter: none;
  }

  .review-card:hover,
  .reviews-prev:hover,
  .reviews-next:hover {
    transform: none;
  }
}
