/* ============================================================
   VirtueleWereld — Testimonials Section
   ============================================================ */

.testimonials {
  background: var(--color-bg);
  padding: var(--space-2xl) 0;
  position: relative;
}

.testimonials::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
  opacity: 0.06;
  pointer-events: none;
}

.testimonials__inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

/* Header */

.testimonials__header {
  max-width: 1400px;
  width: 100%;
  padding: 0 var(--space-sm);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

@media (min-width: 768px) {
  .testimonials__header { padding: 0 var(--space-lg); }
}

.testimonials__label {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: var(--fw-regular);
  color: var(--color-accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.testimonials__heading {
  font-family: var(--font-sans);
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  font-weight: var(--fw-regular);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--color-text);
  max-width: 45rem;
}

.testimonials__heading em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: var(--fw-regular);
}

.testimonials__lead {
  font-size: clamp(0.8rem, 1.2vw, 0.95rem);
  font-weight: var(--fw-light);
  color: var(--color-text-dim);
  max-width: 36rem;
  line-height: 1.6;
}

/* Carousel wrapper */

.testimonials__carousel-wrap {
  width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

/* Swiper overrides */

.testimonials__swiper {
  width: 100%;
  overflow: visible;
}

.testimonials__swiper .swiper-wrapper {
  align-items: stretch;
}

.testimonials__swiper .swiper-slide {
  width: min(380px, 85vw);
  height: auto;
  opacity: 0.45;
  filter: blur(6px);
  transition:
    opacity 0.4s var(--ease-out-expo),
    filter 0.4s var(--ease-out-expo);
}

.testimonials__swiper .swiper-slide-active {
  opacity: 1;
  filter: blur(0);
}

.testimonials__swiper .swiper-slide-active .testimonials__card {
  background: transparent;
}

@media (prefers-reduced-motion: reduce) {
  .testimonials__swiper .swiper-slide {
    transition: none;
  }
}

/* Card */

.testimonials__card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  height: 100%;
  margin: 0;
}

/* Rating stars */

.testimonials__rating {
  display: flex;
  gap: 3px;
  margin-bottom: calc( var(--space-xs) * -0.5 );
}

.testimonials__star {
  font-size: 0.9rem;
  line-height: 1;
  color: var(--color-border);
}

.testimonials__star.is-filled {
  color: var(--color-accent);
}

/* Quote text */

.testimonials__quote {
  font-family: var(--font-sans);
  font-size: clamp(0.82rem, 1.1vw, 0.95rem);
  font-weight: var(--fw-light);
  color: var(--color-text-dim);
  line-height: 1.75;
  flex: 1;
}

/* Author row */

.testimonials__author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: auto;
}

.testimonials__avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-bg-feature);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: var(--fw-bold);
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

.testimonials__name {
  font-style: normal;
  font-size: 0.68rem;
  font-weight: var(--fw-bold);
  color: var(--color-accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
}

.testimonials__role {
  display: block;
  font-weight: var(--fw-light);
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  text-transform: none;
}

.testimonials__company {
  display: block;
  font-weight: var(--fw-light);
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  text-transform: none;
}

.testimonials__source {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 0.6rem;
  font-weight: var(--fw-regular);
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* Navigation arrows */

.testimonials__nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.testimonials__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.testimonials__arrow svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-text-dim);
  transition: stroke 0.2s ease;
}

.testimonials__arrow:hover {
  border-color: var(--color-accent);
  background: var(--color-accent-dim);
}

.testimonials__arrow:hover svg {
  stroke: var(--color-accent);
}

.testimonials__arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
