/* Round16 — Marketplace — section-testimonials
   Figma: 4107:11081 (desktop, frame literally named "5 steps" but content is a testimonial
   card) | 4107:11171 (tablet/mobile, shared breakpoint <=1024px). Static, no JS. */

.r16-testimonials {
    /* Dark theme tokens come from global.css (body.page-template-static-pages-R16page-
       marketplace-php) -- not redefined here. */

    position: relative;
    display: flex;
    justify-content: center;
    background: var(--color-1st-bg);
    /* Papers over a hairline sub-pixel gap some browsers can render between two
       adjacent same-color sections (fractional computed heights from flex/aspect-ratio
       layout round independently per element) -- paint-only, doesn't affect layout.
       Both edges: a neighbor with its own overflow:hidden (e.g. section-proven) can't
       show its own copy of this shadow, so covering both sides here is what protects it. */
    box-shadow: 0 -2px 0 0 var(--color-1st-bg), 0 2px 0 0 var(--color-1st-bg);
    padding-top: var(--var-140, 140px);
    padding-left: var(--section-horizontal-padding, 32px);
    padding-right: var(--section-horizontal-padding, 32px);
    font-family: var(--font-body);
}

.r16-testimonials * {
    box-sizing: border-box;
}

.r16-testimonials__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--section-gap, 80px);
    width: 100%;
    max-width: var(--container-max, 1400px);
}

.r16-testimonials__headings {
    display: flex;
    justify-content: center;
    width: 100%;
}

.r16-testimonials__title {
    max-width: 800px;
    margin: 0;
    text-align: center;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--fs-h2, 48px);
    line-height: var(--lh-heading, 1.15);
    color: var(--color-1st-fg);
}

.r16-testimonials__row {
    display: flex;
    align-items: center;
    gap: var(--var-40, 40px);
    width: 100%;
    padding: var(--var-60, 60px) var(--var-40, 40px);
}

.r16-testimonials__main {
    display: flex;
    flex-direction: column;
    gap: var(--var-60, 60px);
    flex: 1 0 0;
    min-width: 0;
}

.r16-testimonials__quote {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--var-24, 24px);
    width: 100%;
}

.r16-testimonials__quote-icon {
    display: block;
    width: 31px;
    height: 24px;
}

.r16-testimonials__quote-text {
    margin: 0;
    width: 100%;
    font-size: var(--fs-quote, 28px);
    line-height: var(--lh-body, 1.4);
    color: var(--color-1st-fg);
}

.r16-testimonials__author {
    display: flex;
    align-items: center;
    gap: var(--var-12, 12px);
}

.r16-testimonials__author-avatar {
    /* Figma (4107:11093): square corners, no border-radius -- measured directly off
       the rendered PNG (avatar content starts flush at x=0,y=0 in the top-left
       corner, no curve at all), not a circle. */
    display: block;
    width: 56px;
    height: 56px;
    object-fit: cover;
    flex-shrink: 0;
}

.r16-testimonials__author-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    line-height: 1;
    white-space: nowrap;
}

.r16-testimonials__author-name {
    font-weight: 500;
    font-size: var(--fs-label-lg, 16px);
    color: var(--color-1st-fg);
}

.r16-testimonials__author-role {
    font-weight: 500;
    font-size: var(--fs-label-md, 14px);
    color: var(--color-2nd-fg);
    text-transform: uppercase;
}

/* Figma: divider + stat are nested together inside one wrapper ("Frame 2147225019"),
   itself the row's 2nd (and last) child -- not two separate row-level siblings.
   That wrapper has its own fixed height (211px desktop / 100px tablet+mobile) --
   the stat text (91px / 59px) sits centered inside it -- so the divider (stretched
   to the wrapper's height) is taller than the bare stat text on either side. */
.r16-testimonials__aside {
    display: flex;
    align-items: center;
    gap: var(--var-40, 40px);
    flex-shrink: 0;
    height: 211px;
}

.r16-testimonials__divider {
    display: block;
    align-self: stretch;
    width: 1px;
    background: var(--color-reverse-stroke, #4a4949);
    flex-shrink: 0;
}

.r16-testimonials__stat {
    display: flex;
    flex-direction: column;
    gap: var(--var-8, 8px);
    flex-shrink: 0;
    white-space: nowrap;
}

.r16-testimonials__stat-number {
    font-family: 'Konstant Grotesk', var(--font-heading);
    font-weight: 400;
    font-size: var(--fs-h1, 58px);
    line-height: var(--lh-heading, 1.15);
    color: var(--color-1st-fg);
}

.r16-testimonials__stat-label {
    font-weight: 500;
    font-size: var(--fs-label-lg, 16px);
    line-height: 1;
    color: var(--color-2nd-fg);
    text-transform: uppercase;
}

@media (max-width: 1024px) {
    .r16-testimonials {
        padding-top: var(--var-72, 72px);
    }

    .r16-testimonials__row {
        gap: var(--var-24, 24px);
        padding: 0;
    }

    .r16-testimonials__main {
        gap: var(--var-24, 24px);
    }

    .r16-testimonials__aside {
        gap: var(--var-24, 24px);
        min-width: 250px;
        height: 100px;
    }

    .r16-testimonials__stat-number {
        font-size: var(--fs-h1, 32px);
    }

    .r16-testimonials__stat-label,
    .r16-testimonials__author-name {
        font-size: var(--fs-label-md, 14px);
    }

    .r16-testimonials__author-role {
        font-size: 12px;
    }
}

@media (max-width: 640px) {
    .r16-testimonials__row {
        flex-direction: column;
        align-items: stretch;
    }

    /* .r16-testimonials__aside stays a row (divider + stat side by side) so the
       divider keeps its vertical bar look instead of flattening into a horizontal rule. */
    .r16-testimonials__aside {
        min-width: 0;
    }
}
