﻿/* ===========================================
   COMPONENT: Testimonials â€” Centered Carousel
   =========================================== */

.testimonials-section *, .testimonials-section *::before, .testimonials-section *::after { box-sizing: border-box; }
.testimonials-section p { margin: 0; }

/* Rating bar */
.testimonials-rating-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding: 1rem 1.75rem;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-highlight), var(--shadow-sm);
  flex-wrap: wrap;
}
.rating-big {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1;
}
.rating-stars-big { color: #FBBF24; font-size: 1.25rem; margin-bottom: 2px; }
.rating-label { font-family: 'Inter', sans-serif; font-size: 0.875rem; color: var(--color-text-muted); }

/* â”€â”€ Carousel wrapper â”€â”€ */
.tc-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
}

.tc-arrow {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.50);
  box-shadow: 0 4px 16px rgba(124,58,237,.14), 0 1px 4px rgba(0,0,0,.08);
  color: #0F172A;
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
  flex-shrink: 0;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.tc-arrow:hover {
  background: rgba(255,255,255,.95);
  transform: scale(1.08);
  box-shadow: 0 6px 22px rgba(124,58,237,.22), 0 2px 8px rgba(0,0,0,.10);
}

/* â”€â”€ Viewport â”€â”€ */
.tc-viewport {
  flex: 1;
  overflow: hidden;
  padding: 48px 0;   /* room for lifted cards + shadows */
  margin: 0 12px;
}

/* â”€â”€ Track â”€â”€ */
.tc-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.52s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

/* â”€â”€ Card base â”€â”€ */
.testimonial-card {
  flex: 0 0 460px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  border-radius: 1.5rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  /* default: side card â€” dimmed, smaller */
  opacity: 0.52;
  transform: scale(0.88);
  filter: brightness(0.92);
  transition:
    opacity  0.46s ease,
    transform 0.46s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    filter   0.46s ease,
    box-shadow 0.46s ease;
  will-change: transform, opacity;
  cursor: pointer;
  /* glass base */
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-top: 3px solid var(--tc-color, #ec4899);
  box-shadow: var(--glass-highlight), var(--shadow-sm);
}

/* Active center card */
.testimonial-card.tc-active {
  opacity: 1;
  transform: scale(1);
  filter: brightness(1);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.95),
    0 6px 20px rgba(124,58,237,.16),
    0 18px 44px rgba(59,130,246,.12),
    0 32px 60px rgba(236,72,153,.08);
}

/* Adjacent cards (1 away) */
.testimonial-card.tc-adjacent {
  opacity: 0.75;
  transform: scale(0.93);
  filter: brightness(0.97);
}

/* Color per nth-child */
.testimonial-card:nth-child(6n+1)  { --tc-color: #ec4899; }
.testimonial-card:nth-child(6n+2)  { --tc-color: #7c3aed; }
.testimonial-card:nth-child(6n+3)  { --tc-color: #0ea5e9; }
.testimonial-card:nth-child(6n+4)  { --tc-color: #0e8b7f; }
.testimonial-card:nth-child(6n+5)  { --tc-color: #f97316; }
.testimonial-card:nth-child(6n+6)  { --tc-color: #0F9F8F; }

/* â”€â”€ Card inner â”€â”€ */
.tc-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.testimonial-stars {
  display: flex;
  gap: 3px;
  color: #FBBF24;
  font-size: 0.9375rem;
}
.tc-tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--tc-color, #ec4899);
  background: color-mix(in srgb, var(--tc-color, #ec4899) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--tc-color, #ec4899) 30%, transparent);
  padding: 3px 10px;
  border-radius: 999px;
}
.testimonial-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--color-navy-light);
  flex: 1;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0,0,0,.06);
  margin-top: auto;
}
.testimonial-avatar-placeholder {
  width: 44px; height: 44px;
  border-radius: var(--radius-full);
  background: var(--gradient-teal);
  display: flex; align-items: center; justify-content: center;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  color: var(--color-white);
  font-size: 0.9375rem;
  flex-shrink: 0;
}
.testimonial-avatar-img {
  width: 44px; height: 44px;
  border-radius: var(--radius-full);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--gradient-teal);
}
.testimonial-author-name {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-navy);
  display: block;
}
.testimonial-author-meta {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* â”€â”€ Responsive â”€â”€ */
@media (max-width: 768px) {
  .tc-wrap { position: relative; }
  .tc-viewport {
    width: 100%;
    margin: 0;
    padding: 26px 0;
  }
  .testimonial-card {
    flex: 0 0 calc(100vw - 96px);
    max-width: calc(100vw - 96px);
    padding: 1.1rem;
  }
  .tc-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    font-size: 0.875rem;
  }
  .tc-prev { left: 8px; }
  .tc-next { right: 8px; }
}
@media (max-width: 480px) {
  .testimonial-card {
    flex: 0 0 calc(100vw - 84px);
    max-width: calc(100vw - 84px);
    padding: 1rem;
  }
  .tc-prev { left: 4px; }
  .tc-next { right: 4px; }
}

