/* ==========================================================================
   Motomarine v3 · Testimonials
   .cs-testi = one review card (stars, quote, author row with avatar, name,
   meta and a small Google badge). Layouts: card carousel (.cs-carousel from
   carousel.css, arrows in the split section head, dots below) and masonry
   grid (.cs-testi-masonry CSS columns 3 / 2 / 1). --dark modifiers follow
   the dark card recipe.
   ========================================================================== */

/* --- Card --- */
.cs-testi {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 32px 32px 28px;
    border: 1px solid var(--border);
    border-radius: 0;
    background: var(--white);
}
.cs-testi__stars {
    display: block;
    margin-bottom: 16px;
    font-size: 15px;
    letter-spacing: 2px;
    line-height: 1;
    color: #f5b301;
}
.cs-testi__quote {
    flex: 1 1 auto;
    margin: 0 0 24px;
}
.cs-testi__author {
    display: flex;
    align-items: center;
    gap: 14px;
}
.cs-testi__author > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.cs-testi__author strong {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--heading);
}
.cs-testi__author span {
    font-size: 13px;
    line-height: 1.4;
    color: var(--muted);
}
.cs-testi__avatar {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}
.cs-testi__google {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin-left: auto;
}
.bg-lighter .cs-testi {
    border-color: transparent;
    box-shadow: var(--shadow);
}
.cs-testi--dark {
    border-color: rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .04);
}
.cs-testi--dark .cs-testi__quote {
    color: rgba(255, 255, 255, .78);
}
.cs-testi--dark .cs-testi__author strong {
    color: var(--white);
}
.cs-testi--dark .cs-testi__author span {
    color: rgba(255, 255, 255, .55);
}

/* --- Card carousel: arrows in the split head, dots below the track --- */
.cs-carousel .cs-sechead__action {
    align-items: center;
}
.cs-carousel__item .cs-testi {
    height: auto;
}
.bg-lighter .cs-carousel__item .cs-testi {
    border-color: var(--border);
    box-shadow: none;
}
.cs-carousel__dots {
    margin-top: 32px;
}

/* --- Masonry grid --- */
.cs-testi-masonry {
    columns: 3;
    column-gap: 24px;
}
.cs-testi-masonry .cs-testi {
    display: flex;
    height: auto;
    margin-bottom: 24px;
    break-inside: avoid;
}
.cs-testi-masonry__more {
    margin-top: 16px;
}

/* --- Rating bar: Google score left, phone and locations right --- */
.cs-ratebar {
    position: relative;
    padding: 18px 0;
    background: var(--white);
    box-shadow: rgba(0, 0, 0, .1) 0 0 5px 0, rgba(0, 0, 0, .1) 0 0 1px 0;
}
.cs-ratebar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px 40px;
    flex-wrap: wrap;
}
.cs-ratebar__rating {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--muted);
    text-decoration: none;
}
.cs-ratebar__rating img {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
}
.cs-ratebar__brand {
    font-size: 18px;
    font-weight: 700;
    color: var(--heading);
    margin-right: 4px;
}
.cs-ratebar__stars {
    color: #f5b301;
    font-size: 16px;
    letter-spacing: 1px;
    line-height: 1;
}
.cs-ratebar__rating strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--heading);
}
.cs-ratebar__sep {
    width: 1px;
    height: 16px;
    background: var(--border);
}
.cs-ratebar__items {
    display: flex;
    align-items: center;
    gap: 20px 48px;
    flex-wrap: wrap;
}
.cs-ratebar__items .cs-call__text strong i {
    display: inline-block;
    width: 1px;
    height: 14px;
    margin: 0 10px;
    vertical-align: -1px;
    background: var(--border);
}
/* Dark: navy bar on a white section */
.cs-ratebar--dark {
    background: var(--heading);
    box-shadow: none;
}
.cs-ratebar--dark .cs-ratebar__rating {
    color: rgba(255, 255, 255, .72);
}
.cs-ratebar--dark .cs-ratebar__brand,
.cs-ratebar--dark .cs-ratebar__rating strong {
    color: var(--white);
}
.cs-ratebar--dark .cs-ratebar__sep,
.cs-ratebar--dark .cs-ratebar__items .cs-call__text strong i {
    background: rgba(255, 255, 255, .25);
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .cs-testi-masonry {
        columns: 2;
    }
    .cs-ratebar__inner {
        justify-content: center;
        text-align: center;
    }
    .cs-ratebar__items {
        justify-content: center;
        text-align: left;
    }
}
@media (max-width: 767px) {
    .cs-testi-masonry {
        columns: 1;
    }
}
@media (max-width: 575px) {
    .cs-testi {
        padding: 24px 22px 22px;
    }
    .cs-ratebar {
        padding: 20px 0;
    }
    .cs-ratebar__inner {
        gap: 18px;
        justify-content: flex-start;
        text-align: left;
    }
    .cs-ratebar__items {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}


/* ==========================================================================
   v5 · Modern testimonials
   .cs-testis--modern sits on the carousel or masonry wrapper: cards get a
   large faint quote mark, a divider above the author, a ringed avatar and a
   lift on hover. .cs-ratebar--modern gives the rating bar a gradient band
   and round icon chips.
   ========================================================================== */
.cs-testis--modern .cs-testi {
    position: relative;
    overflow: hidden;
    transition: transform .3s var(--ease-out), box-shadow .3s ease, border-color .3s ease;
}
.cs-testis--modern .cs-testi::before {
    content: '\201C';
    position: absolute;
    top: 6px;
    right: 22px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 110px;
    line-height: 1;
    color: var(--primary);
    opacity: .1;
    pointer-events: none;
}
.cs-testis--modern .cs-testi__quote {
    position: relative;
    color: var(--heading);
}
.cs-testis--modern .cs-testi__author {
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.cs-testis--modern .cs-testi__avatar {
    box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--primary-tint-15);
}
.cs-testis--modern .cs-testi--dark::before {
    opacity: .2;
}
.cs-testis--modern .cs-testi--dark .cs-testi__quote {
    color: rgba(255, 255, 255, .88);
}
.cs-testis--modern .cs-testi--dark .cs-testi__author {
    border-top-color: rgba(255, 255, 255, .12);
}
.cs-testis--modern .cs-testi--dark .cs-testi__avatar {
    box-shadow: 0 0 0 3px var(--heading), 0 0 0 5px rgba(255, 255, 255, .2);
}

/* --- Rating bar --- */
.cs-ratebar--modern {
    background: linear-gradient(110deg, var(--bg-light) 0%, var(--white) 100%);
}
.cs-ratebar--modern .cs-call__icon {
    border-radius: 50%;
    color: var(--white);
    background: var(--primary);
    box-shadow: 0 0 0 5px rgba(var(--primary-rgb), .12);
}
.cs-ratebar--modern .cs-ratebar__rating {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 40px;
    background: var(--white);
}
.cs-ratebar--modern.cs-ratebar--dark {
    background: linear-gradient(110deg, var(--heading) 0%, var(--secondary) 100%);
}
.cs-ratebar--modern.cs-ratebar--dark .cs-ratebar__rating {
    border-color: rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .06);
}
@media (prefers-reduced-motion: reduce) {
    .cs-testis--modern .cs-testi {
        transition: none;
    }
}
