/*
 * Testimonial
 * Layout: template-parts/flex/testimonial.php
 * Auto-enqueued by functions.php after css/theme.css.
 */

.testimonial {
    --section-pad: var(--space-3xl);
    padding-block: calc(var(--section-pad) + var(--section-offset, 0px)) var(--space-4xl);
    background-color: var(--color-contrast);
    background-image: url('../../assets/graphics/motif-lg-colour.svg');
    background-repeat: no-repeat;
    background-position: center right;
}

.testimonial__figure {
    margin: 0 auto;
    display: flex;
    gap: var(--space-xl);
    justify-content: center;
    align-items: center;
}

/* Fixed landscape tile, same treatment as the logo wall, so any upload size sits in the same frame. */
.testimonial__logo-frame {
    flex-shrink: 0;
    width: 12.5rem;
    aspect-ratio: 3 / 2;
    padding: var(--space-md);
    border-radius: .75rem;
    background-color: var(--color-muted);
}

/* Scales to fit, never crops; multiply blend hides a white background on the tile. */
.testimonial__logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.testimonial__text  {
    padding-left: var(--space-xl);
    border-left: 2px solid var(--color-secondary);
}

.testimonial__quote {
    margin: 0 0 var(--space-xs);
    padding: 0;
    position: relative;
    display: flex;
    max-width: 56rem;
    gap: var(--space-xs);
}

.testimonial__quote p {
    margin: 0;
    font-size: var(--text-2);
    line-height: 1.3;
    color: var(--color-secondary);
    font-style: italic;
}

.testimonial__name {
    font-size: var(--text-0);
    font-weight: var(--font-light);
}

@media screen and (max-width: 768px) {

    .testimonial {
        background-position: center center;
    }

    
    .testimonial__figure {
        flex-direction: column;
        gap: var(--space-md);
        align-items: flex-start;
    }

    .testimonial__text {
        padding-left: 0;
        border: 0;
    }

    
}