/* About Us — 09 Testimonials */

.cw-about-testimonials {
  background: #f3efe7;
  color: #141210;
  font-family: 'Inter', system-ui, sans-serif;
  padding: clamp(64px, 8vw, 110px) clamp(20px, 4vw, 40px);
  box-sizing: border-box;
}

.cw-about-testimonials__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.cw-about-testimonials__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.cw-about-testimonials__eyebrow {
  margin: 0;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: #e0431c;
}

.cw-about-testimonials__title {
  margin: 12px 0 0;
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 5vw, 76px);
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.cw-about-testimonials__title-em {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  color: #e0431c;
}

.cw-about-testimonials__nav {
  display: flex;
  gap: 10px;
}

.cw-about-testimonials__nav-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cw-about-testimonials__nav-btn--prev {
  border: 1px solid #141210;
  background: transparent;
  color: #141210;
}

.cw-about-testimonials__nav-btn--prev:hover {
  background: #141210;
  color: #f3efe7;
}

.cw-about-testimonials__nav-btn--next {
  border: 0;
  background: #141210;
  color: #f3efe7;
}

.cw-about-testimonials__nav-btn--next:hover {
  background: #e0431c;
}

.cw-about-testimonials__nav-btn:focus-visible {
  outline: 2px solid #e0431c;
  outline-offset: 2px;
}

.cw-about-testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 14px;
}

.cw-about-testimonials__card {
  cursor: pointer;
  border-radius: 28px;
  padding: 28px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  background: transparent;
  color: #141210;
  border: 1px solid #d8d0c2;
  text-align: left;
  font-family: inherit;
  transform: translateY(0);
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}

.cw-about-testimonials__card.is-active {
  background: #141210;
  color: #f3efe7;
  border-color: #141210;
  transform: translateY(-8px);
}

.cw-about-testimonials__card:focus-visible {
  outline: 2px solid #e0431c;
  outline-offset: 3px;
}

.cw-about-testimonials__mark {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 64px;
  line-height: 0.5;
  color: #e0431c;
  transition: color 0.35s ease;
}

.cw-about-testimonials__card.is-active .cw-about-testimonials__mark {
  color: #d4f53c;
}

.cw-about-testimonials__quote {
  font-size: 18px;
  line-height: 1.55;
  font-weight: 500;
}

.cw-about-testimonials__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cw-about-testimonials__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #e0431c;
  color: #141210;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-family: 'Inter Tight', 'Inter', sans-serif;
  flex-shrink: 0;
  transition: background 0.35s ease;
}

.cw-about-testimonials__card.is-active .cw-about-testimonials__avatar {
  background: #d4f53c;
}

.cw-about-testimonials__author-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cw-about-testimonials__name {
  font-weight: 700;
  font-size: 15px;
}

.cw-about-testimonials__role {
  font-size: 13px;
  opacity: 0.7;
}

@media (prefers-reduced-motion: reduce) {
  .cw-about-testimonials__card {
    transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
    transform: none;
  }

  .cw-about-testimonials__card.is-active {
    transform: none;
  }
}
