/* ─── Testimonials: dark contrast section ─── */

.ocf-testimonials {
    position: relative;
    background: var(--ocf-bg-alt);
    overflow: hidden;
}

.ocf-testimonials .eyebrow { color: var(--ocf-label); }
.ocf-testimonials .heading-section { color: var(--ocf-heading); }

.ocf-testimonials-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.ocf-testimonials-heading {
    width: 65%;
    max-width: 58rem;
    min-width: 0;
}

@media (max-width: 767px) {
    .ocf-testimonials-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .ocf-testimonials-heading {
        width: 100%;
    }
}

.ocf-testimonial-viewport {
    overflow: hidden;
}

.ocf-testimonial-track {
    display: flex;
    gap: 1.25rem;
    align-items: stretch;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.ocf-testimonial-card {
    flex: 0 0 100%;
    min-width: 0;
    min-height: 25rem;
    background: var(--ocf-bg);
    border: var(--card-border-width) solid var(--card-border-color);
    border-radius: var(--card-radius);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--card-shadow);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.ocf-testimonial-card:hover {
    border-color: color-mix(in srgb, var(--ocf-accent) 28%, var(--ocf-border-light));
    box-shadow: var(--card-shadow-hover);
    transform: var(--card-transform-hover);
}

@media (min-width: 640px) {
    .ocf-testimonial-card {
        flex: 0 0 calc(50% - 0.625rem);
        padding: 2.25rem;
    }
}

@media (min-width: 1024px) {
    .ocf-testimonial-card { flex: 0 0 calc(33.333% - 0.833rem); }
}

.testimonial-quote-mark {
    font-family: var(--ocf-font-heading), Georgia, serif;
    font-size: 3.5rem;
    line-height: 1;
    color: var(--ocf-accent);
    margin-bottom: 0.5rem;
}

.ocf-testimonial-card blockquote {
    font-size: var(--text-base);
    line-height: 1.75;
    color: var(--ocf-body);
    flex: 1;
    margin: 0 0 1.5rem;
    font-style: normal;
    overflow-wrap: anywhere;
}

.testimonial-more-wrap {
    display: inline-block;
    position: relative;
}

.testimonial-more-trigger {
    display: inline;
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--ocf-heading);
    font: inherit;
    font-weight: 700;
    line-height: inherit;
    padding: 0 0.125rem;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.testimonial-review-popover {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 0.75rem);
    z-index: 8;
    display: block;
    width: min(24rem, calc(100vw - 3rem));
    max-height: 15rem;
    overflow-y: auto;
    padding: 1rem;
    background: var(--ocf-bg);
    border: 1px solid var(--ocf-border-light);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    color: var(--ocf-body);
    font-size: var(--text-sm);
    line-height: 1.6;
    text-align: left;
    white-space: normal;
    transform: translate(-50%, 0.5rem);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.testimonial-more-wrap:hover .testimonial-review-popover,
.testimonial-more-wrap:focus-within .testimonial-review-popover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.ocf-testimonial-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--ocf-border-light);
}

.testimonial-avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--radius-full);
    background: var(--ocf-accent);
    color: var(--ocf-heading-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--text-sm);
    flex-shrink: 0;
}

.ocf-testimonial-footer strong {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--ocf-heading);
}

.ocf-testimonial-footer span {
    display: block;
    font-size: var(--text-xs);
    color: var(--ocf-body);
    margin-top: 0.125rem;
}

.ocf-testimonial-nav {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
    margin-left: auto;
}

@media (max-width: 767px) {
    .ocf-testimonial-nav {
        margin-left: 0;
    }
}

.ocf-testimonial-nav button {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ocf-bg);
    border: 1px solid var(--ocf-border-light);
    border-radius: var(--radius-full);
    color: var(--ocf-heading);
    cursor: pointer;
    transition: all var(--duration) ease;
}

.ocf-testimonial-nav button:hover {
    background: var(--ocf-accent);
    border-color: var(--ocf-accent);
    color: var(--ocf-heading-alt);
}

.ocf-testimonial-nav button svg {
    width: 1rem;
    height: 1rem;
}


.ocf-areas .btn-ghost {
    background-color: transparent;
    color: var(--ocf-heading);
    border-color: var(--ocf-border-light);
}

.ocf-areas .btn-ghost:hover {
    background-color: color-mix(in srgb, var(--ocf-heading) 5%, transparent);
    border-color: var(--ocf-heading);
}
