/* Footer: Testimonial section (footer.php .testimonials-section) — shown on every page.
   Full width, dark: left = big "2300+" stat, heading and Clutch rating; right = large quote,
   client row and round arrows. A thin orange bar under the quote fills over 8.7s (the
   autoplay interval in assets/js/custom.js changeSlide). Slider JS + text unchanged. */

section.testimonials-section {
    --ts-g: max(24px, calc((100vw - 1320px) / 2 + 24px));
    padding: 120px 0 !important;
    background: #000 !important;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

section.testimonials-section > .container {
    width: 100% !important;
    max-width: none !important;
    padding: 0 var(--ts-g) !important;
}

section.testimonials-section .testimonials-content-des {
    display: grid !important;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    box-shadow: none !important;
}

/* ---------- left ---------- */
section.testimonials-section .testimonials-review-box {
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    gap: 48px;
    width: auto !important;
    max-width: none !important;
    padding: 0 72px 0 0 !important;
    border: 0 !important;
    border-right: 1px solid rgba(255, 255, 255, .12) !important;
    border-radius: 0 !important;
    background: none !important;
}

section.testimonials-section .testimonials-review-top .caption-text {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    color: #ff9f0a !important;
    font-size: 13px !important;
    letter-spacing: .18em;
}

section.testimonials-section .testimonials-review-top .caption-text::before {
    content: "";
    width: 32px;
    height: 2px;
    background: #ff9f0a;
}

section.testimonials-section .testimonials-review-top .h2-headline.green-color {
    margin-bottom: 14px;
    color: #ff9f0a !important;
    font-size: clamp(64px, 7vw, 112px) !important;
    line-height: .95 !important;
    letter-spacing: -.04em;
}

section.testimonials-section .testimonials-review-top .h2-headline.black-scale-900-color {
    color: #fff !important;
    font-size: clamp(28px, 2.6vw, 40px) !important;
    line-height: 1.2 !important;
    letter-spacing: -.02em;
}

/* Clutch rating: plain row, white logo */
section.testimonials-section .clutch-review-box {
    gap: 28px !important;
    padding: 28px 0 0 !important;
    border: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, .12) !important;
    border-radius: 0 !important;
    background: none !important;
}

section.testimonials-section .clutch-review-left svg {
    --black-scale-900: #fff;
    width: 120px;
    height: auto;
}

section.testimonials-section .clutch-review-left svg path[fill="var(--black-scale-900)"] {
    fill: #fff;
}

section.testimonials-section .clutch-review-right {
    margin-left: 0 !important;
}

section.testimonials-section .clutch-review-stars {
    display: flex;
    gap: 4px;
    padding: 0 !important;
    background: none !important;
    color: #ff9f0a !important;
    font-size: 18px;
}

section.testimonials-section .clutch-review-stars i {
    color: #ff9f0a !important;
}

section.testimonials-section .clutch-review-right .subtitle-2 {
    margin: 6px 0 0 !important;
    color: rgba(255, 255, 255, .7) !important;
}

/* ---------- right ---------- */
section.testimonials-section .testimonial-client-info {
    width: auto !important;
    max-width: none !important;
    padding: 0 0 0 72px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: none !important;
}

section.testimonials-section .testimonial-client-info > .relative {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* big quote mark */
section.testimonials-section .testimonial-client-info > .relative::before {
    content: "1C";
    display: block;
    height: 72px;
    margin-bottom: 8px;
    color: #ff9f0a;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 140px;
    line-height: 1;
}

section.testimonials-section .testimonial-slider {
    flex: 1 1 auto;
    overflow: visible !important;
}

section.testimonials-section .testimonial-slide.active {
    animation: ts-in .8s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes ts-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: none; }
}

section.testimonials-section .testimonial-slide-box {
    gap: 40px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: none !important;
}

section.testimonials-section .client-review-message .h2-headline {
    margin-bottom: 18px;
    color: #ff9f0a !important;
    font-size: 15px !important;
    letter-spacing: .14em;
    text-transform: uppercase;
}

section.testimonials-section .client-review-message .subtitle-2 {
    margin: 0 !important;
    color: #fff !important;
    font-family: var(--medium);
    font-size: clamp(20px, 1.7vw, 27px) !important;
    font-weight: 400 !important;
    line-height: 1.55 !important;
    letter-spacing: -.01em;
}

/* client row */
section.testimonials-section .client-photo-des {
    position: relative;
    padding: 28px 140px 0 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: none !important;
}

/* progress bar: fills over the autoplay interval, restarts with each slide */
section.testimonials-section .client-photo-des::before,
section.testimonials-section .client-photo-des::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 2px;
}

section.testimonials-section .client-photo-des::before {
    right: 0;
    background: rgba(255, 255, 255, .12);
}

section.testimonials-section .client-photo-des::after {
    width: 100%;
    background: #ff9f0a;
    transform-origin: left center;
    transform: scaleX(0);
}

section.testimonials-section .testimonial-slide.active .client-photo-des::after {
    animation: ts-progress 8.7s linear both;
}

@keyframes ts-progress {
    to { transform: scaleX(1); }
}

section.testimonials-section .client-photo-box {
    gap: 18px !important;
}

section.testimonials-section .client-photo-box figure {
    margin: 0 !important;
}

section.testimonials-section .client-photo-box img {
    width: 64px !important;
    height: 64px !important;
    border: 2px solid #ff9f0a;
    border-radius: 50% !important;
    object-fit: cover;
}

section.testimonials-section .client-photo-box .h6-headline {
    color: #fff !important;
    font-size: 19px !important;
}

section.testimonials-section .client-photo-box figcaption .subtitle-2 {
    margin: 2px 0 0 !important;
    color: rgba(255, 255, 255, .6) !important;
}

/* arrows: bottom right, round outline */
section.testimonials-section .slider-controls {
    position: absolute !important;
    right: 0 !important;
    bottom: 6px !important;
    top: auto !important;
    left: auto !important;
    display: flex !important;
    gap: 12px !important;
    margin: 0 !important;
    transform: none !important;
}

section.testimonials-section .slider-controls button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 56px !important;
    height: 56px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, .25) !important;
    border-radius: 50% !important;
    background: transparent !important;
    color: #fff !important;
    font-size: 20px;
    box-shadow: none !important;
    transition: background .3s ease, border-color .3s ease, color .3s ease !important;
}

section.testimonials-section .slider-controls button i {
    color: inherit !important;
}

section.testimonials-section .slider-controls button:hover {
    background: #ff9f0a !important;
    border-color: #ff9f0a !important;
    color: #111 !important;
}

/* ---------- responsive ---------- */
@media (max-width: 1199px) {
    section.testimonials-section .testimonials-review-box {
        padding-right: 48px !important;
    }

    section.testimonials-section .testimonial-client-info {
        padding-left: 48px !important;
    }
}

@media (max-width: 991px) {
    section.testimonials-section {
        padding: 80px 0 !important;
    }

    section.testimonials-section > .container {
        padding: 0 20px !important;
    }

    section.testimonials-section .testimonials-content-des {
        grid-template-columns: 1fr;
    }

    section.testimonials-section .testimonials-review-box {
        gap: 36px;
        padding: 0 0 48px !important;
        border-right: 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, .12) !important;
    }

    section.testimonials-section .testimonial-client-info {
        padding: 40px 0 0 !important;
    }
}

@media (max-width: 575px) {
    section.testimonials-section {
        padding: 64px 0 !important;
    }

    section.testimonials-section > .container {
        padding: 0 16px !important;
    }

    section.testimonials-section .testimonials-review-top .h2-headline.green-color {
        font-size: 64px !important;
    }

    section.testimonials-section .testimonials-review-top .h2-headline.black-scale-900-color {
        font-size: 26px !important;
    }

    section.testimonials-section .clutch-review-box {
        flex-wrap: wrap;
    }

    section.testimonials-section .client-review-message .subtitle-2 {
        font-size: 18px !important;
    }

    section.testimonials-section .client-photo-des {
        padding-right: 0 !important;
    }

    section.testimonials-section .slider-controls {
        position: static !important;
        margin-top: 28px !important;
    }

    section.testimonials-section .slider-controls button {
        width: 50px !important;
        height: 50px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    section.testimonials-section .testimonial-slide.active,
    section.testimonials-section .testimonial-slide.active .client-photo-des::after {
        animation: none !important;
    }
}

/* legacy common.min.css hides the quote card on mobile and gives it a frame */
section.testimonials-section .testimonial-client-info {
    display: block !important;
    overflow: visible !important;
    flex: none !important;
    box-shadow: none !important;
}

section.testimonials-section .testimonial-client-info > .relative::before {
    height: 64px;
    margin-bottom: 20px;
    font-size: 120px;
}

/* quote mark as an SVG (the CSS optimiser strips the \201C escape) */
section.testimonials-section .testimonial-client-info > .relative::before {
    content: "" !important;
    width: 64px;
    height: 48px;
    margin-bottom: 28px;
    font-size: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 48'%3E%3Cpath fill='%23ff9f0a' d='M0 48V28C0 12 8 3 24 0l3 7C18 10 14 15 13 22h11v26H0zm37 0V28C37 12 45 3 61 0l3 7c-9 3-13 8-14 15h11v26H37z'/%3E%3C/svg%3E") left top / contain no-repeat;
}

@media (max-width: 575px) {
    section.testimonials-section .slider-controls {
        justify-content: flex-start !important;
    }

    section.testimonials-section .testimonial-client-info > .relative::before {
        width: 48px;
        height: 36px;
        margin-bottom: 20px;
    }
}

/* no extra gap before "Latest Insights" (that section brings its own top padding) */
section.testimonials-section {
    padding-bottom: 100px !important;
}

/* main footer (class pb-0): "Latest Insights" follows with its own top padding */
section.testimonials-section.pb-0 {
    padding-bottom: 0 !important;
}

@media (max-width: 991px) {
    section.testimonials-section:not(.pb-0) {
        padding-bottom: 72px !important;
    }
}

/* client photo: always fill the round frame (legacy rules add padding / object-fit:contain) */
section.testimonials-section .client-photo-box figure {
    flex: 0 0 64px !important;
    width: 64px !important;
    height: 64px !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 2px solid #ff9f0a !important;
    border-radius: 50% !important;
    background: #222 !important;
}

section.testimonials-section .client-photo-box figure img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    object-fit: cover !important;
    object-position: center 20% !important;
    transform: scale(1.32);
    transform-origin: center 35%;
}

/* ================= full width (matches the other footer sections) ================= */
@media (min-width: 992px) {
    section.testimonials-section {
        --ts-g: clamp(16px, 4.5vw, 88px);
        padding-top: 0 !important;
        border-top: 1px solid rgba(255, 255, 255, .1);
    }

    section.testimonials-section.pb-0 {
        padding-bottom: 0 !important;
    }

    section.testimonials-section > .container {
        padding: 0 !important;
    }

    section.testimonials-section .testimonials-content-des {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        align-items: stretch;
    }

    /* left: stat column on the gutter */
    section.testimonials-section .testimonials-review-box {
        padding: 110px clamp(40px, 5vw, 96px) 110px var(--ts-g) !important;
    }

    /* right: quote panel runs to the right edge with its own warm tint */
    section.testimonials-section .testimonial-client-info {
        padding: 110px var(--ts-g) 110px clamp(40px, 5vw, 96px) !important;
        background:
            radial-gradient(600px 380px at 100% 0%, rgba(255, 159, 10, .14), rgba(255, 159, 10, 0) 65%),
            #0a0a0c !important;
    }

    section.testimonials-section .client-review-message .subtitle-2 {
        font-size: clamp(20px, 1.75vw, 30px) !important;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    section.testimonials-section .testimonials-review-box {
        padding: 88px 40px 88px var(--ts-g) !important;
    }

    section.testimonials-section .testimonial-client-info {
        padding: 88px var(--ts-g) 88px 40px !important;
    }
}

/* small screens: quote panel also gets the tint, edge to edge */
@media (max-width: 991px) {
    section.testimonials-section .testimonial-client-info {
        margin: 0 -20px !important;
        padding: 40px 20px 48px !important;
        background:
            radial-gradient(420px 300px at 100% 0%, rgba(255, 159, 10, .14), rgba(255, 159, 10, 0) 65%),
            #0a0a0c !important;
    }

    section.testimonials-section.pb-0 {
        padding-bottom: 0 !important;
    }
}

@media (max-width: 575px) {
    section.testimonials-section .testimonial-client-info {
        margin: 0 -16px !important;
        padding: 36px 16px 44px !important;
    }
}

/* the two panels carry their own padding now (insights footer has no .pb-0) */
@media (min-width: 992px) {
    section.testimonials-section:not(.pb-0) {
        padding-bottom: 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, .1);
    }
}

@media (max-width: 991px) {
    section.testimonials-section:not(.pb-0) {
        padding-bottom: 0 !important;
    }
}

/* main-site footer (.pb-0) gets the same bottom hairline as the insights one */
section.testimonials-section.pb-0 {
    border-bottom: 1px solid rgba(255, 255, 255, .1) !important;
}
