/* Home testimonials: three quote cards side by side on a light gradient. */
.site-modern .home-testimonials {
    clear: both;
    display: flow-root;
    padding: 80px 24px;
    background:
        radial-gradient(45% 55% at 85% 10%, rgba(33, 101, 232, .08), transparent 70%),
        radial-gradient(40% 50% at 10% 95%, rgba(33, 101, 232, .06), transparent 70%),
        linear-gradient(180deg, #f5f8ff 0%, #eef3fd 100%);
}
.site-modern .home-testimonials__inner { max-width: 1160px; margin: 0 auto; }

.site-modern .home-testimonials__header { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.site-modern .home-testimonials__eyebrow {
    margin: 0 0 10px;
    color: var(--site-blue);
    font-family: var(--site-font-body);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.site-modern .home-testimonials__header h2 {
    float: none;
    width: auto;
    margin: 0;
    color: var(--site-ink);
    font-size: clamp(26px, 2.6vw, 36px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.02em;
    text-align: center;
}
.site-modern .home-testimonials__header h2 span { color: var(--site-blue); }

.site-modern .home-testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.site-modern .home-testimonial {
    position: relative;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 64px 28px 26px;
    border: 1px solid #e4ebf6;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(31, 59, 99, .06);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
/* Large blue opening quote mark. */
.site-modern .home-testimonial::before {
    content: '“';
    position: absolute;
    top: 14px;
    left: 24px;
    color: var(--site-blue);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 84px;
    font-weight: 700;
    line-height: 1;
    opacity: .9;
}
@media (hover: hover) {
    .site-modern .home-testimonial:hover {
        transform: translateY(-5px);
        border-color: #c9daf6;
        box-shadow: 0 18px 40px rgba(31, 59, 99, .11);
    }
}
.site-modern .home-testimonial blockquote {
    flex: 1 1 auto;
    margin: 0;
    padding: 0;
    border: 0;
    color: #2b3a50;
    font-family: var(--site-font-body);
    font-size: 16px;
    font-style: normal;
    line-height: 1.7;
}
.site-modern .home-testimonial figcaption {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--site-line);
}
.site-modern .home-testimonial__logo {
    display: grid;
    place-items: center;
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    padding: 9px;
    border: 1px solid #e4ebf6;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 12px rgba(31, 59, 99, .06);
}
.site-modern .home-testimonial__logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.site-modern .home-testimonial__who { display: flex; flex-direction: column; min-width: 0; font-family: var(--site-font-body); line-height: 1.35; }
.site-modern .home-testimonial__who strong { color: var(--site-blue); font-size: 16px; font-weight: 700; }
.site-modern .home-testimonial__who span { margin-top: 2px; color: var(--site-ink); font-size: 14px; font-weight: 600; }
.site-modern .home-testimonial__who small { color: var(--site-muted); font-size: 13px; }

/* Fade-in on scroll (class added by home-modern.js; without JS cards are simply visible). */
.site-modern .home-testimonials.is-enhanced .home-testimonial { opacity: 0; transform: translateY(24px); }
.site-modern .home-testimonials.is-enhanced .home-testimonial.is-visible {
    opacity: 1;
    transform: none;
    transition: opacity .6s ease, transform .6s ease, box-shadow .25s ease, border-color .25s ease;
}
.site-modern .home-testimonials.is-enhanced .home-testimonial.is-visible:nth-child(2) { transition-delay: .1s, .1s, 0s, 0s; }
.site-modern .home-testimonials.is-enhanced .home-testimonial.is-visible:nth-child(3) { transition-delay: .2s, .2s, 0s, 0s; }
@media (hover: hover) {
    .site-modern .home-testimonials.is-enhanced .home-testimonial.is-visible:hover { transform: translateY(-5px); transition-delay: 0s; }
}

@media (max-width: 1000px) {
    .site-modern .home-testimonials__grid { grid-template-columns: minmax(0, 1fr); max-width: 640px; margin: 0 auto; gap: 16px; }
}
@media (max-width: 760px) {
    .site-modern .home-testimonials { padding: 56px 16px; }
    .site-modern .home-testimonials__header { margin-bottom: 28px; }
    .site-modern .home-testimonials__eyebrow { font-size: 12px; }
    .site-modern .home-testimonials__header h2 { font-size: clamp(22px, 6vw, 28px); }
    .site-modern .home-testimonial { padding: 54px 20px 20px; border-radius: 18px; }
    .site-modern .home-testimonial::before { top: 10px; left: 18px; font-size: 68px; }
    .site-modern .home-testimonial blockquote { font-size: 15px; line-height: 1.65; }
    .site-modern .home-testimonial__logo { flex-basis: 48px; width: 48px; height: 48px; padding: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    .site-modern .home-testimonial,
    .site-modern .home-testimonials.is-enhanced .home-testimonial { opacity: 1; transform: none; transition: none; }
}
