/* =============================================
   TESTIMONIALS — editorial, large-quote style
   ============================================= */

.testimonials__header {
    margin-bottom: var(--space-16);
}

/* Grid: 3 equal columns */
.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    /* background: var(--color-border); */
    border-radius: var(--radius-lg);
}

/* Testimonial card — no border, contrast via background */
.testimonial {
    background: var(--color-white);
    padding: var(--space-10) var(--space-8);
    display: flex;
    flex-direction: column;
    position: relative;
}

.testimonial:first-child {
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.testimonial:last-child {
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

/* Large decorative quotation mark */
.testimonial::before {
    content: '\201C';
    position: absolute;
    top: var(--space-6);
    right: var(--space-6);
    font-size: 5rem;
    line-height: 1;
    color: var(--color-accent);
    opacity: 0.08;
    font-weight: 900;
    font-family: Georgia, serif;
    pointer-events: none;
    user-select: none;
}

/* Highlighted centre card */
.testimonial:nth-child(2) {
    background: var(--color-navy);
    margin-block: -12px;
    z-index: 1;
    border-radius: var(--radius-lg);
}

.testimonial:nth-child(2)::before {
    color: var(--color-white);
    opacity: 0.06;
}

.testimonial:nth-child(2) .testimonial__quote {
    color: rgba(255,255,255,0.75);
}

.testimonial:nth-child(2) .testimonial__name {
    color: var(--color-white);
}

.testimonial:nth-child(2) .testimonial__role {
    color: rgba(255,255,255,0.4);
}

.testimonial:nth-child(2) .testimonial__avatar--initials {
    background: rgba(255,255,255,0.1);
    color: var(--color-white);
}

.testimonial:nth-child(2) .testimonial__stars {
    color: #fbbf24;
}

/* Stars */
.testimonial__stars {
    display: flex;
    gap: 3px;
    color: #f59e0b;
    margin-bottom: var(--space-5);
}

/* Quote text */
.testimonial__quote {
    font-size: 0.9rem;
    color: var(--color-text);
    line-height: 1.8;
    flex: 1;
    font-style: normal;
    margin-bottom: var(--space-8);
}

/* Attribution */
.testimonial__footer {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-top: auto;
}

.testimonial__avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.testimonial__avatar--initials {
    background: var(--color-surface);
    color: var(--color-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.testimonial__name {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    font-style: normal;
    color: var(--color-ink);
}

.testimonial__role {
    display: block;
    font-size: 0.75rem;
    color: var(--color-muted);
    margin-top: 2px;
    line-height: 1.4;
}

/* ── Responsive ───────────────────────────── */

@media (max-width: 900px) {
    .testimonials__grid {
        grid-template-columns: 1fr;
    }

    .testimonial:nth-child(2) {
        /* No special background on mobile — saves visual complexity */
        background: var(--color-white);
    }

    .testimonial:nth-child(2) .testimonial__quote   { color: var(--color-text); }
    .testimonial:nth-child(2) .testimonial__name    { color: var(--color-ink); }
    .testimonial:nth-child(2) .testimonial__role    { color: var(--color-muted); }
    .testimonial:nth-child(2) .testimonial__stars   { color: #f59e0b; }
    .testimonial:nth-child(2) .testimonial__avatar--initials {
        background: var(--color-surface);
        color: var(--color-ink);
    }
}
