/*
 * Services — Client testimonials
 * Figma: desktop 844:7455, tablet 851:9450, mobile 851:10814
 */

.services-client-testimonials {
    --sct-text: #111827;
    --sct-muted: #6b7280;
    --sct-border: #e5e7eb;
    --sct-bg: #ffffff;
    --sct-accent: #2ec17b;
    --sct-pad-y: 80px;
    --sct-pad-x: 16px;
    --sct-radius: 8px;
    --sct-btn: 48px;
    --sct-project-grad: linear-gradient(135deg, #0d3d32 0%, #1a6b52 40%, #2ec17b 100%);

    position: relative;
    z-index: 1;
    background: var(--sct-bg);
    color: var(--sct-text);
    padding: var(--sct-pad-y) var(--sct-pad-x);
}

.services-client-testimonials .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.services-client-testimonials__inner {
    width: 100%;
    max-width: var(--akdev-content-max, 1440px);
    margin: 0 auto;
}

.services-client-testimonials__slides {
    position: relative;
    min-height: 1px;
}

.services-client-testimonials__slide {
    margin: 0;
    padding: 0;
    border: 1px solid var(--sct-border);
    background: var(--sct-bg);
    box-sizing: border-box;
}

.services-client-testimonials__slide:not(.is-active) {
    display: none;
}

.services-client-testimonials__slide.is-active {
    display: block;
}

.services-client-testimonials__body {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px 16px;
}

.services-client-testimonials__main {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.services-client-testimonials__quote {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 22px;
    line-height: 1.35;
    color: var(--sct-text);
}

.services-client-testimonials__quote-mark {
    font-weight: 600;
}

.services-client-testimonials__desc {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.55;
    color: var(--sct-muted);
}

.services-client-testimonials__author {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
}

.services-client-testimonials__author-name {
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.3;
    font-style: normal;
    color: var(--sct-text);
}

.services-client-testimonials__author-role {
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.3;
    color: var(--sct-text);
}

.services-client-testimonials__project {
    margin: 0;
    padding: 20px 20px 24px;
    background: var(--sct-project-grad);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.services-client-testimonials__project-label {
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
}

.services-client-testimonials__project-name {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.35;
    color: #ffffff;
}

.services-client-testimonials__project-location {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.95);
}

.services-client-testimonials__project-location strong {
    font-weight: 600;
}

.services-client-testimonials__project-link {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    font-size: 15px;
    line-height: 1.2;
    color: #ffffff;
    text-decoration: none;
    width: fit-content;
    transition: opacity 0.15s ease;
}

.services-client-testimonials__project-link:hover,
.services-client-testimonials__project-link:focus-visible {
    opacity: 0.9;
    outline: none;
}

.services-client-testimonials__project-link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.services-client-testimonials__project-link-icon svg {
    display: block;
}

.services-client-testimonials__nav--inline {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
    gap: 16px;
}

.services-client-testimonials__nav--fixed {
    display: none;
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 50;
}

.services-client-testimonials__btn {
    box-sizing: border-box;
    width: var(--sct-btn);
    height: var(--sct-btn);
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--sct-border);
    border-radius: 4px;
    background: var(--sct-bg);
    color: var(--sct-text);
    cursor: pointer;
    pointer-events: auto;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.services-client-testimonials__btn svg {
    display: block;
}

.services-client-testimonials__btn:hover,
.services-client-testimonials__btn:focus-visible {
    border-color: var(--sct-accent);
    background: rgba(46, 193, 123, 0.08);
    color: var(--sct-accent);
    outline: none;
}

.services-client-testimonials__btn:focus-visible {
    outline: 2px solid var(--sct-accent);
    outline-offset: 2px;
}

.services-client-testimonials__empty {
    margin: 0;
    color: var(--sct-muted);
    font-size: 16px;
}

@media (min-width: 768px) {
    .services-client-testimonials {
        --sct-pad-x: 40px;
    }

    .services-client-testimonials__body {
        padding: 32px 32px;
        gap: 28px;
    }

    .services-client-testimonials__quote {
        font-size: 26px;
    }
}

@media (min-width: 992px) {
    .services-client-testimonials {
        --sct-pad-x: 120px;
    }

    .services-client-testimonials__body {
        flex-direction: row;
        align-items: stretch;
        gap: 40px;
        padding: 40px 48px;
    }

    .services-client-testimonials__main {
        flex: 1 1 50%;
        justify-content: space-between;
    }

    .services-client-testimonials__project {
        flex: 0 1 44%;
        max-width: 440px;
        padding: 28px 28px 32px;
        align-self: stretch;
    }

    .services-client-testimonials__quote {
        font-size: 28px;
    }

    .services-client-testimonials__desc {
        font-size: 17px;
    }

    .services-client-testimonials__project-name {
        font-size: 20px;
    }

    .services-client-testimonials__nav--inline {
        display: none;
    }

    .services-client-testimonials__nav--fixed {
        display: block;
    }

    .services-client-testimonials__nav--fixed .services-client-testimonials__btn {
        position: fixed;
        z-index: 51;
        transform: translateY(-50%);
    }
}

/* Tablet gutter matches the verified-work container on the company page. */
@media (min-width: 768px) and (max-width: 991px) {
    body.page-id-16 .services-client-testimonials {
        --sct-pad-x: 16px;
    }
}
