/* Footer: "Serving in 71+ countries" strip (footer.php .serving-countries-section) — every page.
   v2: dark full-width band. Row 1: white heading ("71+" orange) + compact rating tiles.
   Row 2: full-bleed looping row of country pills (built by footer-serving.js from the paragraph,
   which stays in the DOM visually hidden). Without JS the paragraph simply shows. */

section.serving-countries-section {
    --sv-g: max(24px, calc((100vw - 1320px) / 2 + 24px));
    padding: 88px 0 0 !important;
    overflow: hidden;
    background: #0b0b0d !important;
    border-top: 1px solid rgba(255, 255, 255, .08);
    color: #fff !important;
}

section.serving-countries-section > .container {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
}

section.serving-countries-section > .container > .row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 48px !important;
    margin: 0 !important;
    padding: 0 var(--sv-g) !important;
}

section.serving-countries-section > .container > .row > [class*="col-"] {
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
}

/* heading */
section.serving-countries-section .serving-countries-des {
    gap: 16px !important;
}

section.serving-countries-section .serving-countries-des .h4-headline {
    max-width: 760px;
    margin: 0 !important;
    color: #fff !important;
    font-family: var(--bold);
    font-size: clamp(30px, 3.2vw, 50px) !important;
    line-height: 1.08 !important;
    letter-spacing: -.03em;
}

section.serving-countries-section .sv-num {
    color: #ff9f0a;
}

section.serving-countries-section .serving-countries-des .body-2 {
    max-width: 680px;
    margin: 0 !important;
    color: rgba(255, 255, 255, .7) !important;
    font-size: 16px !important;
    line-height: 1.75 !important;
}

/* paragraph hidden once the pill row exists */
section.serving-countries-section .serving-countries-des .body-2.sv-sr {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
}

/* rating tiles: compact white pills */
section.serving-countries-section .clutch-rating-box {
    margin: 0 !important;
}

section.serving-countries-section .clutch-rating-box ul {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}

section.serving-countries-section .clutch-rating-box ul li {
    justify-content: center;
    min-height: 64px !important;
    padding: 10px 18px !important;
    border-radius: 999px !important;
    background: #fff !important;
    transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}

section.serving-countries-section .clutch-rating-box ul li:first-child {
    min-width: 300px;
    padding: 10px 8px !important;
    overflow: hidden;
}

section.serving-countries-section .clutch-rating-box ul li:hover {
    transform: translateY(-3px);
}

section.serving-countries-section .clutch-rating-box ul li svg {
    width: auto !important;
    height: 30px !important;
    padding: 0 !important;
}

/* country pills: full-bleed looping row */
section.serving-countries-section .sv-marquee {
    position: relative;
    margin-top: 56px;
    padding: 26px 0;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, .1);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

section.serving-countries-section .sv-track {
    display: flex;
    gap: 12px;
    width: max-content;
    animation: sv-loop 60s linear infinite;
}

section.serving-countries-section .sv-marquee:hover .sv-track {
    animation-play-state: paused;
}

@keyframes sv-loop {
    to { transform: translateX(calc(-50% - 6px)); }
}

section.serving-countries-section .sv-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    color: rgba(255, 255, 255, .85);
    font-family: var(--medium);
    font-size: 15px;
    white-space: nowrap;
    transition: background .3s ease, border-color .3s ease, color .3s ease;
}

section.serving-countries-section .sv-pill::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff9f0a;
}

section.serving-countries-section .sv-pill:hover {
    border-color: #ff9f0a;
    background: #ff9f0a;
    color: #111;
}

section.serving-countries-section .sv-pill:hover::before {
    background: #111;
}

/* no JS: keep the bottom spacing */
section.serving-countries-section:not(.sv-ready) {
    padding-bottom: 88px !important;
}

/* ---------- responsive ---------- */
@media (max-width: 991px) {
    section.serving-countries-section {
        padding-top: 64px !important;
    }

    section.serving-countries-section > .container > .row {
        grid-template-columns: 1fr;
        gap: 28px !important;
        padding: 0 20px !important;
    }

    section.serving-countries-section .clutch-rating-box ul {
        justify-content: flex-start;
    }

    section.serving-countries-section .sv-marquee {
        margin-top: 40px;
        padding: 20px 0;
    }
}

@media (max-width: 575px) {
    section.serving-countries-section {
        padding-top: 52px !important;
    }

    section.serving-countries-section > .container > .row {
        padding: 0 16px !important;
    }

    section.serving-countries-section .clutch-rating-box ul li,
    section.serving-countries-section .clutch-rating-box ul li:first-child {
        width: 100%;
        min-width: 0;
    }

    section.serving-countries-section .sv-pill {
        padding: 9px 16px;
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    section.serving-countries-section .sv-track {
        animation: none;
        flex-wrap: wrap;
        width: auto;
        padding: 0 var(--sv-g);
    }
}

/* ================= gradient background (the footer around it is all dark) ================= */
section.serving-countries-section {
    border-top: 0 !important;
    background:
        radial-gradient(60% 120% at 100% 0%, rgba(255, 196, 90, .55) 0%, rgba(255, 196, 90, 0) 60%),
        linear-gradient(115deg, #1c0e04 0%, #5a2a06 30%, #c25f06 62%, #ff9f0a 100%) !important;
}

/* "71+" needs to stand out on the warm gradient */
section.serving-countries-section .sv-num {
    color: #ffb340;
}

/* pills read as glass on the gradient */
section.serving-countries-section .sv-marquee {
    border-top-color: rgba(255, 255, 255, .18);
}

section.serving-countries-section .sv-pill {
    border-color: rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .08);
    color: #fff;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

section.serving-countries-section .sv-pill::before {
    background: #ffb340;
}

section.serving-countries-section .sv-pill:hover {
    border-color: #fff;
    background: #fff;
    color: #111;
}

section.serving-countries-section .sv-pill:hover::before {
    background: #ff9f0a;
}

section.serving-countries-section .clutch-rating-box ul li {
    box-shadow: 0 14px 34px -18px rgba(0, 0, 0, .5);
}

@media (max-width: 991px) {
    section.serving-countries-section {
        background:
            radial-gradient(90% 60% at 100% 100%, rgba(255, 196, 90, .5) 0%, rgba(255, 196, 90, 0) 60%),
            linear-gradient(160deg, #1c0e04 0%, #5a2a06 35%, #c25f06 75%, #ff9f0a 100%) !important;
    }
}

@media (max-width: 575px) {
    section.serving-countries-section .clutch-rating-box,
    section.serving-countries-section .clutch-rating-box ul {
        width: 100% !important;
    }

    section.serving-countries-section .clutch-rating-box ul {
        display: grid !important;
        grid-template-columns: 1fr;
    }
}

/* ================= purple gradient (brand #8569FF) — overrides the orange one above ================= */
section.serving-countries-section {
    background:
        radial-gradient(55% 130% at 100% 0%, rgba(200, 180, 255, .55) 0%, rgba(200, 180, 255, 0) 60%),
        radial-gradient(40% 90% at 0% 100%, rgba(133, 105, 255, .35) 0%, rgba(133, 105, 255, 0) 70%),
        linear-gradient(115deg, #140b3a 0%, #2e1a8a 32%, #6a4cf0 66%, #8569ff 100%) !important;
}

section.serving-countries-section .sv-num {
    color: #ffb340;
}

section.serving-countries-section .sv-pill::before {
    background: #ffb340;
}

section.serving-countries-section .sv-pill:hover::before {
    background: #8569ff;
}

@media (max-width: 991px) {
    section.serving-countries-section {
        background:
            radial-gradient(90% 60% at 100% 100%, rgba(200, 180, 255, .5) 0%, rgba(200, 180, 255, 0) 60%),
            linear-gradient(160deg, #140b3a 0%, #2e1a8a 40%, #6a4cf0 78%, #8569ff 100%) !important;
    }
}

/* "71+": same bold face as the heading (a legacy "span" rule made it thin) */
section.serving-countries-section .serving-countries-des .h4-headline .sv-num {
    font-family: var(--bold) !important;
    font-weight: inherit !important;
    font-size: inherit !important;
    letter-spacing: inherit !important;
}

/* explicit placement: the insights (WordPress) theme moves the columns around */
section.serving-countries-section > .container > .row > [class*="col-"]:first-child {
    grid-column: 1 !important;
    grid-row: 1 !important;
    order: 0 !important;
}

section.serving-countries-section > .container > .row > [class*="col-"]:last-child {
    grid-column: 2 !important;
    grid-row: 1 !important;
    order: 0 !important;
    justify-content: flex-end !important;
}

section.serving-countries-section .clutch-rating-box ul {
    flex-wrap: nowrap !important;
    flex-direction: row !important;
}

@media (max-width: 991px) {
    section.serving-countries-section > .container > .row > [class*="col-"]:last-child {
        grid-column: 1 !important;
        grid-row: 2 !important;
        justify-content: flex-start !important;
    }

    section.serving-countries-section .clutch-rating-box ul {
        flex-wrap: wrap !important;
    }
}

/* insights (Bootstrap 3) clearfix pseudo-elements would take grid cells */
section.serving-countries-section .row::before,
section.serving-countries-section .row::after {
    display: none !important;
    content: none !important;
}
