/* ═══════════════════════════════════════════════════
   Atomi — Testimonials Section
   ═══════════════════════════════════════════════════ */

.testimonials {
  position: relative;
  padding: clamp(var(--space-64), 10vh, var(--space-96)) clamp(var(--space-24), 5vw, var(--space-96));
  background:
    radial-gradient(ellipse 52% 44% at 72% 28%, oklch(0.72 0.16 294 / 0.05), transparent 60%),
    radial-gradient(ellipse 40% 38% at 18% 74%, oklch(0.84 0.12 72 / 0.06), transparent 54%),
    linear-gradient(180deg, var(--rhythm-paper) 0%, var(--ivory-clean) 52%, var(--ivory) 100%);
}

.testimonials-inner {
  width: min(1480px, 100%);
  margin: 0 auto;
}

.testimonials .section-head {
  margin-bottom: clamp(var(--space-48), 6vh, var(--space-64));
  text-align: center;
}

/* ── Testimonial grid ─────────────────────────────── */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(var(--space-16), 2vw, var(--space-32));
}

/* ── Testimonial card ─────────────────────────────── */
.testimonial-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  padding: clamp(28px, 3.6vw, 38px);
  border: 1px solid oklch(0.78 0.04 76 / 0.16);
  border-radius: var(--radius-card);
  background:
    radial-gradient(circle at 22% 14%, oklch(0.99 0.01 84 / 0.4), transparent 36%),
    linear-gradient(158deg, oklch(0.994 0.01 82 / 0.38), oklch(0.966 0.018 76 / 0.1));
  backdrop-filter: blur(14px) saturate(1.04);
  -webkit-backdrop-filter: blur(14px) saturate(1.04);
  box-shadow:
    0 10px 32px oklch(0.32 0.05 288 / 0.03),
    inset 0 1px 0 oklch(0.99 0.01 82 / 0.4);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: oklch(0.82 0.12 74 / 0.36);
  box-shadow:
    0 20px 50px oklch(0.32 0.05 288 / 0.08),
    0 0 24px oklch(0.78 0.12 72 / 0.06),
    inset 0 1px 0 oklch(0.99 0.01 82 / 0.56);
}

/* ── Quote ─────────────────────────────────────────── */
.testimonial-quote {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 550;
  line-height: 1.48;
  color: var(--ink);
  flex: 1;
  position: relative;
}

.testimonial-quote::before {
  content: "\201C";
  position: absolute;
  left: -4px; top: -8px;
  font-size: 2.6rem;
  line-height: 1;
  color: oklch(0.72 0.14 294 / 0.24);
  font-family: var(--font-display);
}

/* ── Author row ────────────────────────────────────── */
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid oklch(0.78 0.035 76 / 0.14);
}

.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 650;
  color: oklch(0.99 0.01 82);
  flex-shrink: 0;
}

.testimonial-avatar--violet {
  background: linear-gradient(135deg, oklch(0.6 0.15 294), oklch(0.46 0.12 286));
}

.testimonial-avatar--coral {
  background: linear-gradient(135deg, oklch(0.68 0.14 42), oklch(0.56 0.12 32));
}

.testimonial-avatar--teal {
  background: linear-gradient(135deg, oklch(0.54 0.1 198), oklch(0.42 0.08 212));
}

.testimonial-name {
  font-weight: 620;
  font-size: 0.88rem;
  color: var(--ink);
}

.testimonial-role {
  font-size: 0.76rem;
  color: var(--muted);
}

/* Approved design alignment: compact quote cards */
@media (min-width: 1121px) {
  .testimonials {
    padding: clamp(34px, 4.4vh, 46px) clamp(24px, 5vw, 96px) clamp(30px, 4vh, 42px);
    background:
      radial-gradient(ellipse 44% 42% at 70% 26%, oklch(0.72 0.16 294 / 0.035), transparent 60%),
      linear-gradient(180deg, var(--rhythm-paper) 0%, var(--ivory-clean) 100%);
  }

  .testimonials-inner {
    width: min(920px, 100%);
  }

  .testimonials .section-head {
    display: block;
    margin: 0 auto 18px;
    text-align: center;
  }

  .testimonials .section-label {
    font-size: 0.58rem;
    letter-spacing: 0.24em;
  }

  .testimonials .section-title {
    font-size: clamp(1.9rem, 2.18vw, 2.38rem);
    line-height: 1.08;
  }

  .testimonials .section-note {
    max-width: 390px;
    margin: 8px auto 0;
    font-size: 0.72rem;
  }

  .testimonial-grid {
    gap: 16px;
  }

  .testimonial-card {
    min-height: 126px;
    gap: 9px;
    padding: 17px 19px 16px;
    border-radius: 13px;
    border-color: oklch(0.74 0.052 70 / 0.16);
    background:
      radial-gradient(circle at 22% 14%, oklch(0.99 0.01 84 / 0.48), transparent 36%),
      linear-gradient(158deg, oklch(0.994 0.01 82 / 0.44), oklch(0.968 0.018 76 / 0.14));
    backdrop-filter: blur(10px) saturate(1.02);
    -webkit-backdrop-filter: blur(10px) saturate(1.02);
    box-shadow:
      0 8px 22px oklch(0.34 0.04 286 / 0.035),
      inset 0 1px 0 oklch(0.99 0.01 82 / 0.48);
  }

  .testimonial-card::before {
    content: "★★★★★";
    font-family: var(--font-ui);
    font-size: 0.66rem;
    letter-spacing: 0.06em;
    color: oklch(0.78 0.13 74);
    line-height: 1;
  }

  .testimonial-card:hover {
    transform: translateY(-2px);
    box-shadow:
      0 14px 32px oklch(0.34 0.04 286 / 0.06),
      inset 0 1px 0 oklch(0.99 0.01 82 / 0.54);
  }

  .testimonial-quote {
    font-size: 0.74rem;
    line-height: 1.38;
  }

  .testimonial-quote::before {
    display: none;
  }

  .testimonial-author {
    gap: 8px;
    padding-top: 7px;
  }

  .testimonial-avatar {
    width: 28px;
    height: 28px;
    font-size: 0.68rem;
  }

  .testimonial-name {
    font-size: 0.68rem;
  }

  .testimonial-role {
    font-size: 0.58rem;
  }
}
