/* ═══════════════════════════════════════════
   TESTIMONIALS CAROUSEL
   ═══════════════════════════════════════════ */

#testimonials {
    background-color: var(--clr-white);
    overflow: hidden;
}

#testimonials .container {
    padding-top: var(--section-py);
    padding-bottom: var(--section-py);
}

#testimonials .section-label {
    color: rgba(0, 0, 0, 0.4);
}

#testimonials-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 28px;
}

#testimonials-header h2 {
    color: var(--clr-dark);
    font-size: 28px;
}

#testimonials-nav {
    display: flex;
    gap: 8px;
}

.testimonial-arrow {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-dark);
    transition: background var(--transition-base);
}

.testimonial-arrow:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Carousel track */
#testimonials-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

#testimonials-track::-webkit-scrollbar {
    display: none;
}

/* Card */
.testimonial-card {
    flex: 0 0 calc(100% - 16px);
    scroll-snap-align: start;
    background: var(--clr-neutral);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.testimonial-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    border: 2px solid rgba(0, 0, 0, 0.1);
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-initials {
    color: var(--clr-dark);
    font-size: 16px;
    font-weight: var(--fw-bold);
    letter-spacing: 0.05em;
}

.testimonial-quote-icon {
    color: rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.testimonial-quote {
    color: var(--clr-dark);
    font-size: 15px;
    line-height: 1.65;
    font-weight: var(--fw-regular);
    margin-bottom: 20px;
    flex: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.testimonial-dash {
    width: 24px;
    height: 1px;
    background: rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.testimonial-name {
    color: var(--clr-dark);
    font-size: var(--fs-small);
    font-weight: var(--fw-semibold);
    line-height: 1.2;
}

.testimonial-location {
    color: rgba(0, 0, 0, 0.45);
    font-size: var(--fs-xs);
    margin-top: 2px;
}

/* ── 480px — 2 cards ── */

@media (min-width: 480px) {
    .testimonial-card {
        flex: 0 0 calc(50% - 8px);
    }
}

/* ── Tablet (768px) — 3 cards ── */

@media (min-width: 768px) {
    #testimonials-header {
        margin-bottom: 40px;
    }

    #testimonials-header h2 {
        font-size: 34px;
    }

    .testimonial-arrow {
        width: 40px;
        height: 40px;
    }

    .testimonial-card {
        flex: 0 0 calc(33.333% - 11px);
        padding: 28px;
    }

    .testimonial-quote {
        font-size: 16px;
    }
}

/* ── Desktop (1024px) ── */

@media (min-width: 1024px) {
    #testimonials-header {
        margin-bottom: 48px;
    }

    #testimonials-header h2 {
        font-size: 40px;
    }

    .testimonial-card {
        padding: 32px;
    }

    .testimonial-avatar {
        width: 52px;
        height: 52px;
    }

    .testimonial-quote {
        font-size: 17px;
    }
}
