/* ----------------------------------------------------------------
   Clients / References section
   Added 2026-04-28. Independent of the Stash theme stylesheets so
   it can evolve without touching the mangled-name legacy CSS.
   ---------------------------------------------------------------- */

#clients {
    padding: 80px 0 90px;
    background-color: #fafbfc;
    border-top: 1px solid #eef0f4;
    border-bottom: 1px solid #eef0f4;
}

#clients .clients-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

#clients .clients-eyebrow {
    display: block;
    text-align: center;
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #1c46f2;
    margin: 0 0 12px;
}

#clients h2.clients-title {
    text-align: center;
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 600;
    color: #292929;
    font-size: 32px;
    line-height: 1.25;
    margin: 0 0 14px;
}

#clients .clients-subtitle {
    text-align: center;
    color: #6b7280;
    font-size: 16px;
    line-height: 1.6;
    max-width: 640px;
    margin: 0 auto 48px;
}

#clients .clients-grid {
    display: grid;
    /* Markerstudy (col 1), Inawisdom (col 2), Bromcom (col 5) and Care Champion (col 6) are wordmarks with taglines — give them more room */
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1.3fr);
    align-items: center;
    justify-items: center;
    gap: 24px 16px;
    list-style: none;
    padding: 0;
    margin: 0;
}

#clients .clients-grid li {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 130px;
    padding: 18px;
}

#clients .clients-logo {
    display: block;
    width: 100%;
    max-width: 240px;
    max-height: 90px;
    height: auto;
    object-fit: contain;
    transition: transform 0.35s ease;
}

/* Markerstudy wordmark needs more room than the other logos */
#clients .clients-logo[src*="markerstudy"] {
    max-width: 340px;
    max-height: 120px;
}

/* Inawisdom is wide-aspect (≈4.8:1) — let it use the wider cell */
#clients .clients-logo[src*="inawisdom"] {
    max-width: 280px;
    max-height: 100px;
}

/* Bromcom wordmark + tagline — give it the wider col 5 */
#clients .clients-logo[src*="bromcom"] {
    max-width: 270px;
    max-height: 100px;
}

/* Care Champion wordmark + tagline — keep compact relative to the others */
#clients .clients-logo[src*="carechampion"] {
    max-width: 240px;
    max-height: 100px;
}

#clients .clients-grid li:hover .clients-logo,
#clients .clients-grid li:focus-within .clients-logo {
    transform: translateY(-2px) scale(1.04);
}

/* Tablet — 3 across */
@media (max-width: 900px) {
    #clients {
        padding: 64px 0 72px;
    }
    #clients h2.clients-title {
        font-size: 28px;
    }
    #clients .clients-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px 16px;
    }
}

/* Mobile — 2 across */
@media (max-width: 560px) {
    #clients {
        padding: 56px 0 64px;
    }
    #clients h2.clients-title {
        font-size: 24px;
    }
    #clients .clients-subtitle {
        font-size: 15px;
        margin-bottom: 36px;
    }
    #clients .clients-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    #clients .clients-grid li {
        min-height: 110px;
        padding: 14px;
    }
    #clients .clients-logo {
        max-width: 180px;
        max-height: 72px;
    }
}

/* Honor reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    #clients .clients-logo {
        transition: none;
    }
    #clients .clients-grid li:hover .clients-logo,
    #clients .clients-grid li:focus-within .clients-logo {
        transform: none;
    }
}
