/* ============================================================
   TESTIMONIALS — Elegant quote cards on light slate
   ============================================================ */

.testimonials-section {
    position: relative;
    width: 100%;
    background: var(--gray-100);
    padding: 6rem 0;
    overflow: hidden;
}

/* Subtle top/bottom accent lines */
.testimonials-section::before,
.testimonials-section::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.testimonials-section::before { top: 0; }
.testimonials-section::after  { bottom: 0; }

/* ── Container ─────────────────────────────────────────── */
.testimonials-container {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

/* ── Section header ────────────────────────────────────── */
.testimonials-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.testimonials-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    background: var(--accent-light);
    border: 1px solid var(--accent-border);
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.testimonials-title {
    font-size: clamp(1.9rem, 3.5vw, 2.75rem);
    font-weight: 800;
    color: var(--text);
    line-height: 1.18;
    letter-spacing: -0.025em;
    margin-bottom: 1.25rem;
}

/* Star rating under title */
.testimonials-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--white);
    border: 1px solid var(--border);
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.google-stars { display: flex; gap: 2px; }

.google-stars i {
    color: #F59E0B;
    font-size: 0.85rem;
}

.rating-score {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
}

/* ============================================================
   MASONRY GRID
   ============================================================ */
.testimonials-grid {
    columns: 3;
    column-gap: 1.5rem;
}

/* ── Individual card ─────────────────────────────────── */
.testimonial-card {
    break-inside: avoid;
    background: var(--white);
    border-radius: var(--r-lg);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    position: relative;
    border: 1px solid var(--border);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
    display: block;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(79, 70, 229, 0.10);
    border-color: var(--accent-border);
}

/* Large decorative quote mark */
.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: -0.2rem;
    left: 1.5rem;
    font-size: 5rem;
    line-height: 1;
    color: var(--accent);
    opacity: 0.10;
    font-family: Georgia, serif;
    pointer-events: none;
}

/* ── Card header ─────────────────────────────────────── */
.testimonial-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.1rem;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.testimonial-info { flex: 1; }

.testimonial-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.testimonial-stars {
    display: flex;
    gap: 2px;
}

.testimonial-stars i {
    color: #F59E0B;
    font-size: 0.75rem;
}

.testimonial-google-icon {
    width: 28px;
    height: 28px;
    background: var(--gray-50);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.testimonial-google-icon i {
    font-size: 0.7rem;
    background: linear-gradient(135deg, #EA4335, #FBBC05, #34A853, #4285F4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Review text ─────────────────────────────────────── */
.testimonial-text {
    font-size: 0.9rem;
    line-height: 1.72;
    color: var(--text-mid);
    margin: 0 0 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.testimonial-date {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .testimonials-section { padding: 5rem 0; }
    .testimonials-container { padding: 0 2rem; }
    .testimonials-grid { columns: 2; }
}

@media (max-width: 640px) {
    .testimonials-section { padding: 4rem 0; }
    .testimonials-container { padding: 0 1.25rem; }
    .testimonials-grid { columns: 1; }
    .testimonials-header { margin-bottom: 2.5rem; }
}

@media (min-width: 1400px) {
    .testimonials-container { max-width: 1380px; padding: 0 3rem; }
}

@media (prefers-reduced-motion: reduce) {
    .testimonial-card { transition: none; }
}
