/*!
 * Homepage "Corporate Clients & Statistics" — Shree Umiya Structure Pvt. Ltd.   v1.0.0
 * Scoped to .suspl-clients. Plain CSS values only (no clamp(), calc() or var()).
 * Orange heading with square accents · 4 statistics in one row · two rows of white logo cards that
 * scroll continuously in opposite directions (CSS keyframes; each row holds its logos twice and
 * moves by exactly one set, so the loop has no jump or gap). Hover pauses a row.
 * Palette: light grey #F4F5F7 · white · brand orange #E99022 · navy #0F2340 · grey #6B7280
 */

section.suspl-clients {
    position: relative;
    overflow: hidden;
    padding: 70px 0 76px;
    /* background: #f4f5f7; */
    color: #0f2340;
    font-family: 'Poppins', 'Space Grotesk', sans-serif;
}

.suspl-clients *,
.suspl-clients *::before,
.suspl-clients *::after {
    box-sizing: border-box;
}

.scl-wrap {
    width: 92%;
    max-width: 1320px;
    margin: 0 auto;
    text-align: center;
}

/* ======================================================================
   Heading with small square accents
   ====================================================================== */
.suspl-clients h2.scl-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin: 0 0 30px;
    color: #e99022;
    font-family: 'Poppins', 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.scl-title__mark {
    position: relative;
    display: block;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
}

.scl-title__mark i {
    position: absolute;
    display: block;
}

/* small grey square (top) + orange square (bottom), mirrored on the right */
.scl-title__mark i:first-child {
    top: 0;
    width: 8px;
    height: 8px;
    background: #c9ced6;
}

.scl-title__mark i:last-child {
    bottom: 0;
    width: 10px;
    height: 10px;
    background: #e99022;
}

.scl-title__mark--l i:first-child { left: 0; }
.scl-title__mark--l i:last-child { right: 0; }
.scl-title__mark--r i:first-child { right: 0; }
.scl-title__mark--r i:last-child { left: 0; }

/* ======================================================================
   Statistics row
   ====================================================================== */
.suspl-clients ul.scl-stats {
    display: flex;
    justify-content: center;
    margin: 0 auto 44px;
    padding: 0;
    list-style: none;
}

.scl-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 4px 30px;
    border-right: 1px solid #d5d9e0;
}

.scl-stat:first-child { border-left: 1px solid #d5d9e0; }

.suspl-clients .scl-stat__num {
    color: #0f2340;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.3px;
    font-variant-numeric: tabular-nums;
}

.scl-stat__label {
    color: #6b7280;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.35;
    text-align: left;
}

/* ======================================================================
   Logo rows
   ====================================================================== */
.scl-rows {
    position: relative;
    width: 98%;
    max-width: 2400px;
    margin: 0 auto;
}

.scl-row {
    position: relative;
    overflow: hidden;
    padding: 8px 0 12px;
    -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, #000000 7%, #000000 93%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, #000000 7%, #000000 93%, rgba(0, 0, 0, 0) 100%);
}

.scl-row + .scl-row { margin-top: 20px; }

/* the track holds the logo set twice; moving it by -50% brings the copy exactly into place */
.scl-track {
    display: flex;
    width: max-content;
    will-change: transform;
    animation: scl-left 260s linear infinite;
}

.scl-row--right .scl-track {
    animation-name: scl-right;
    animation-duration: 250s;
}

@keyframes scl-left {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

@keyframes scl-right {
    0% { transform: translate3d(-50%, 0, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

/* pause on hover (mouse), and while the section is off screen (JS) */
@media (hover: hover) and (pointer: fine) {
    .scl-row:hover .scl-track { animation-play-state: paused; }
}

.suspl-clients.is-offscreen .scl-track { animation-play-state: paused; }

.suspl-clients ul.scl-group {
    display: flex;
    flex: 0 0 auto;
    gap: 24px;
    margin: 0;
    padding: 0 24px 0 0;          /* = gap, so the join between the two sets keeps the same spacing */
    list-style: none;
}

.scl-card {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 260px;
    height: 128px;
    padding: 18px 26px;
    border: 1px solid #e7eaef;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(15, 35, 64, 0.05);
    transition: box-shadow 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}

.suspl-clients .scl-card img {
    display: block;
    width: auto;
    height: auto;
    max-width: 80%;              /* keeps wide wordmarks (adani, Daiwa…) in balance with square logos */
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.78;
    transition: filter 0.4s ease, opacity 0.4s ease;
}

@media (hover: hover) and (pointer: fine) {
    .scl-card:hover {
        border-color: #f2d1a4;
        box-shadow: 0 14px 30px rgba(15, 35, 64, 0.1);
        transform: translateY(-4px);
    }

    .suspl-clients .scl-card:hover img {
        filter: grayscale(0);
        opacity: 1;
    }
}

/* touch screens: logos in their own colours (there is no hover) */
@media (hover: none) {
    .suspl-clients .scl-card img {
        filter: none;
        opacity: 1;
    }
}

/* ======================================================================
   Sizes per screen range
   ====================================================================== */
@media (min-width: 1920px) {
    section.suspl-clients { padding: 90px 0 96px; }
    .scl-wrap { max-width: 1640px; }
    .suspl-clients h2.scl-title { margin-bottom: 36px; font-size: 26px; }
    .suspl-clients ul.scl-stats { margin-bottom: 54px; }
    .scl-stat { gap: 16px; padding: 4px 38px; }
    .suspl-clients .scl-stat__num { font-size: 30px; }
    .scl-stat__label { font-size: 16.5px; }
    .scl-card { width: 300px; height: 148px; padding: 20px 30px; }
    .suspl-clients ul.scl-group { gap: 28px; padding-right: 28px; }
    .scl-row + .scl-row { margin-top: 24px; }
}

@media (min-width: 2560px) {
    section.suspl-clients { padding: 120px 0 130px; }
    .scl-wrap { max-width: 2200px; }
    .scl-rows { max-width: 3200px; }
    .suspl-clients h2.scl-title { gap: 30px; margin-bottom: 48px; font-size: 35px; letter-spacing: 2px; }
    .scl-title__mark { width: 28px; height: 28px; }
    .scl-title__mark i:first-child { width: 11px; height: 11px; }
    .scl-title__mark i:last-child { width: 14px; height: 14px; }
    .suspl-clients ul.scl-stats { margin-bottom: 72px; }
    .scl-stat { gap: 22px; padding: 6px 52px; }
    .suspl-clients .scl-stat__num { font-size: 40px; }
    .scl-stat__label { font-size: 22px; }
    .scl-card { width: 400px; height: 196px; padding: 28px 40px; border-radius: 16px; }
    .suspl-clients ul.scl-group { gap: 36px; padding-right: 36px; }
    .scl-row + .scl-row { margin-top: 32px; }
    .scl-track { animation-duration: 330s; }
    .scl-row--right .scl-track { animation-duration: 316s; }
}

@media (min-width: 3840px) {
    section.suspl-clients { padding: 180px 0 190px; }
    .scl-wrap { max-width: 3300px; }
    .scl-rows { max-width: 4800px; }
    .suspl-clients h2.scl-title { gap: 44px; margin-bottom: 72px; font-size: 52px; letter-spacing: 3px; }
    .scl-title__mark { width: 42px; height: 42px; }
    .scl-title__mark i:first-child { width: 16px; height: 16px; }
    .scl-title__mark i:last-child { width: 21px; height: 21px; }
    .suspl-clients ul.scl-stats { margin-bottom: 108px; }
    .scl-stat { gap: 32px; padding: 8px 78px; border-width: 2px; }
    .scl-stat:first-child { border-left-width: 2px; }
    .suspl-clients .scl-stat__num { font-size: 60px; }
    .scl-stat__label { font-size: 33px; }
    .scl-card { width: 600px; height: 294px; padding: 42px 60px; border-radius: 24px; border-width: 2px; }
    .suspl-clients ul.scl-group { gap: 54px; padding-right: 54px; }
    .scl-row + .scl-row { margin-top: 48px; }
    .scl-track { animation-duration: 480s; }
    .scl-row--right .scl-track { animation-duration: 460s; }
}

@media (min-width: 5120px) {
    .scl-wrap { max-width: 4400px; }
    .scl-rows { max-width: 6400px; }
    .suspl-clients h2.scl-title { font-size: 68px; }
    .suspl-clients .scl-stat__num { font-size: 80px; }
    .scl-stat__label { font-size: 44px; }
    .scl-stat { padding: 10px 104px; }
    .scl-card { width: 800px; height: 392px; padding: 56px 80px; border-radius: 32px; }
    .suspl-clients ul.scl-group { gap: 72px; padding-right: 72px; }
    .scl-row + .scl-row { margin-top: 64px; }
    .scl-track { animation-duration: 640s; }
    .scl-row--right .scl-track { animation-duration: 615s; }
}

/* laptops */
@media (max-width: 1199px) {
    .scl-stat { padding: 4px 22px; }
    .suspl-clients .scl-stat__num { font-size: 24px; }
    .scl-stat__label { font-size: 14px; }
    .scl-card { width: 230px; height: 116px; padding: 16px 22px; }
    .suspl-clients ul.scl-group { gap: 20px; padding-right: 20px; }
}

/* tablets: statistics stay in one compact row when they fit, otherwise 2 × 2 */
@media (max-width: 991px) {
    section.suspl-clients { padding: 60px 0 64px; }
    .suspl-clients h2.scl-title { gap: 16px; margin-bottom: 26px; font-size: 19px; }
    .scl-title__mark { width: 16px; height: 16px; }
    .scl-title__mark i:first-child { width: 6px; height: 6px; }
    .scl-title__mark i:last-child { width: 8px; height: 8px; }
    .scl-stat { flex-direction: column; align-items: center; gap: 4px; padding: 4px 20px; }
    .scl-stat__label { text-align: center; }
    .suspl-clients ul.scl-stats { margin-bottom: 36px; }
    .scl-card { width: 200px; height: 104px; padding: 14px 20px; }
    .suspl-clients ul.scl-group { gap: 16px; padding-right: 16px; }
    .scl-row + .scl-row { margin-top: 14px; }
    .scl-track { animation-duration: 210s; }
    .scl-row--right .scl-track { animation-duration: 200s; }
}

@media (max-width: 699px) {
    .suspl-clients ul.scl-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        row-gap: 18px;
        max-width: 440px;
    }
    .scl-stat,
    .scl-stat:first-child { border: 0; padding: 0 8px; }
    .scl-stat:nth-child(odd) { border-right: 1px solid #d5d9e0; }
}

/* phones */
@media (max-width: 575px) {
    section.suspl-clients { padding: 48px 0 52px; }
    .scl-wrap { width: 90%; }
    .suspl-clients h2.scl-title { gap: 10px; margin-bottom: 22px; font-size: 14px; letter-spacing: 0.6px; }
    .scl-title__mark { width: 13px; height: 13px; }
    .scl-title__mark i:first-child { width: 5px; height: 5px; }
    .scl-title__mark i:last-child { width: 7px; height: 7px; }
    .suspl-clients .scl-stat__num { font-size: 22px; }
    .scl-stat__label { font-size: 13px; }
    .suspl-clients ul.scl-stats { margin-bottom: 30px; }
    .scl-rows { width: 100%; }
    .scl-row {
        padding: 4px 0 8px;
        -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, #000000 5%, #000000 95%, rgba(0, 0, 0, 0) 100%);
        mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, #000000 5%, #000000 95%, rgba(0, 0, 0, 0) 100%);
    }
    .scl-card { width: 150px; height: 82px; padding: 12px 16px; border-radius: 10px; }
    .suspl-clients ul.scl-group { gap: 12px; padding-right: 12px; }
    .scl-row + .scl-row { margin-top: 10px; }
    .scl-track { animation-duration: 190s; }
    .scl-row--right .scl-track { animation-duration: 180s; }
}

@media (max-width: 430px) {
    .scl-title__mark { display: none; }
}

@media (max-width: 374px) {
    .suspl-clients h2.scl-title { font-size: 13px; letter-spacing: 0.3px; }
    .suspl-clients .scl-stat__num { font-size: 20px; }
    .scl-stat__label { font-size: 12px; }
    .scl-card { width: 132px; height: 74px; padding: 10px 14px; }
}

/* ======================================================================
   Reduced motion: no automatic movement; each row becomes a strip the visitor can scroll
   (one set of logos only)
   ====================================================================== */
@media (prefers-reduced-motion: reduce) {
    .scl-row {
        overflow-x: auto;
        -webkit-mask-image: none;
        mask-image: none;
        scrollbar-width: thin;
    }
    .scl-track { animation: none; }
    .suspl-clients ul.scl-group { padding-left: 24px; }
    .suspl-clients ul.scl-group[aria-hidden="true"] { display: none; }
    .scl-card,
    .suspl-clients .scl-card img { transition: none; }
}

/* ======================================================================
   v1.1 — logos from upload/clients/ (square files with empty margins).
   Each logo sits in a .scl-logo box sized inline from where the artwork sits in
   its file, so every logo shows at about the same visual size; the image itself
   is unchanged. The greyscale → colour hover above still applies.
   ====================================================================== */
.suspl-clients .scl-card { padding-top: 0; padding-bottom: 0; }
.scl-logo {
    position: relative;
    display: block;
    flex: 0 0 auto;
    height: 0;
    overflow: hidden;
}
.suspl-clients .scl-card .scl-logo img {
    position: absolute;
    max-width: none;
    max-height: none;
    height: auto;
    margin: 0;
    object-fit: fill;
}
