/* =========================================================
   Bizmantra - Our Clients (endless logo slider)
   assets/css/clients.css?v=1
   - Follows the header's light / dark tokens (--bm-*).
   - Slider movement is done by assets/js/clients.js?v=1
   ========================================================= */
.bmc {
    --c-bg: #F6F8FD;
    --c-card: #FFFFFF;
    --c-line: #E0E7F5;
    --c-sub: #4F5D7A;
    --per: 3;                       /* logos visible at once */

    position: relative; overflow: hidden;
    padding-block: clamp(52px, 7vw, 88px);
    background: var(--c-bg);
    color: var(--bm-text);
    font-family: var(--bm-font, 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif);
    border-block: 1px solid var(--c-line);
}
:root[data-theme="dark"] .bmc {
    --c-bg: #0F1936;
    --c-card: #141E3D;
    --c-line: rgba(143,176,255,.20);
    --c-sub: #B4C1E0;
}

:where(.bmc) *, :where(.bmc) *::before, :where(.bmc) *::after { box-sizing: border-box; }
:where(.bmc) ul { list-style: none; margin: 0; padding: 0; }
:where(.bmc) h2, :where(.bmc) p { margin: 0; }
:where(.bmc) img { display: block; max-width: 100%; }

.bmc__container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 20px; }

/* ---------------- HEADING ---------------- */
.bmc__head { max-width: 720px; margin-inline: auto; text-align: center; }
.bmc__eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--bm-blue-d);
}
.bmc__eyebrow::before, .bmc__eyebrow::after { content: ""; width: 24px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--bm-blue), var(--bm-green)); }
.bmc__title {
    margin-top: 14px; font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; line-height: 1.15; letter-spacing: -.03em;
    color: var(--bm-head); text-wrap: balance;
}
.bmc__lead { margin-top: 14px; font-size: 15.5px; line-height: 1.65; color: var(--c-sub); }

/* ---------------- SLIDER ---------------- */
.bmc__viewport {
    margin-top: clamp(30px, 4vw, 48px); overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.bmc__track { display: flex; will-change: transform; }
.bmc__item { flex: 0 0 calc(100% / var(--per)); min-width: 0; padding: 6px 8px; }

.bmc__logo {
    display: grid; place-items: center; height: clamp(76px, 9vw, 96px); padding: 14px 18px; border-radius: 16px;
    background: var(--c-card); border: 1px solid var(--c-line);
    transition: border-color .25s, transform .25s;
}
.bmc__logo:hover { border-color: var(--bm-blue); transform: translateY(-2px); }
.bmc__logo img {
    width: auto; height: clamp(36px, 4.4vw, 50px); max-width: 100%; object-fit: contain;
    filter: grayscale(1); opacity: .75; transition: filter .25s, opacity .25s;
}
.bmc__logo:hover img { filter: none; opacity: 1; }
:root[data-theme="dark"] .bmc__logo img { filter: grayscale(1) brightness(1.6); }
:root[data-theme="dark"] .bmc__logo:hover img { filter: none; }

/* ---------------- RESPONSIVE ---------------- */
@media (min-width: 480px)  { .bmc { --per: 4; } }
@media (min-width: 1200px) { .bmc { --per: 5; } }
@media (max-width: 599px) {
    .bmc__container { padding-inline: 16px; }
    .bmc__item { padding: 4px; }
    .bmc__logo { height: 66px; padding: 10px 8px; border-radius: 12px; }
    .bmc__logo img { height: 30px; }
}

/* reduced motion: no sliding, logos wrap into a static grid */
@media (prefers-reduced-motion: reduce) {
    .bmc__viewport { -webkit-mask-image: none; mask-image: none; }
    .bmc__track { flex-wrap: wrap; justify-content: center; }
    .bmc * { transition-duration: .01ms !important; }
}