/*--------------------------------------------------------------
# Clients & Partners — Category Grid Layout
--------------------------------------------------------------*/

.clients-section {
    padding: 120px 0;
    background: #f7f6f3;
    overflow: hidden;
}

.clients-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ── Header ── */
.clients-header {
    text-align: center;
    margin-bottom: 64px;
}

.clients-section .section-label-purple {
    color: #888888 !important;
    background: transparent !important;
    border: 1px solid #d0d0d0 !important;
    font-family: var(--font-mono) !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.12em !important;
    padding: 6px 16px !important;
    border-radius: 16px !important;
    display: inline-block;
    margin-bottom: 24px;
}

.clients-heading {
    font-family: var(--font-primary) !important;
    font-size: clamp(28px, 3.5vw, 44px) !important;
    font-weight: 300 !important;
    color: #1a1a1a !important;
    line-height: 1.2 !important;
    letter-spacing: -0.03em !important;
    margin: 0 0 16px 0 !important;
}

.clients-subtext {
    font-family: var(--font-primary) !important;
    font-size: 16px !important;
    color: #888888 !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    max-width: 520px;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ── Grid ── */
.clients-grid {
    border: 1px solid #e0ddd8;
    border-radius: 2px;
    overflow: hidden;
}

/* ── Row ── */
.clients-row {
    display: flex;
    border-bottom: 1px solid #e0ddd8;
}

.clients-row:last-child {
    border-bottom: none;
}

/* ── Category Label ── */
.clients-category {
    width: 140px;
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    border-right: 1px solid #e0ddd8;
    background: #f0eeea;
}

.clients-cat-label {
    font-family: var(--font-mono) !important;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #555555;
    text-align: center;
    line-height: 1.5;
}

/* ── Logo Cells ── */
.clients-logos-row {
    display: flex;
    flex: 1;
}

.clients-logo-cell {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 12px;
    border-right: 1px solid #e0ddd8;
    transition: background 0.25s ease;
    min-height: 72px;
}

.clients-logo-cell:last-child {
    border-right: none;
}

.clients-logo-cell:hover {
    background: rgba(0, 0, 0, 0.03);
}

.clients-logo-name {
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 0.01em;
    text-align: center;
    line-height: 1.3;
    white-space: nowrap;
    user-select: none;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .clients-logo-cell {
        padding: 20px 8px;
    }

    .clients-logo-name {
        font-size: 11px;
    }

    .clients-category {
        width: 110px;
        min-width: 110px;
    }
}

@media (max-width: 768px) {
    .clients-section {
        padding: 80px 0;
    }

    .clients-container {
        padding: 0 20px;
    }

    .clients-row {
        flex-direction: column;
    }

    .clients-category {
        width: 100%;
        min-width: 100%;
        padding: 14px 16px;
        border-right: none;
        border-bottom: 1px solid #e0ddd8;
        justify-content: flex-start;
    }

    .clients-cat-label {
        text-align: left;
    }

    .clients-cat-label br {
        display: none;
    }

    .clients-logos-row {
        flex-wrap: wrap;
    }

    .clients-logo-cell {
        flex: 0 0 25%;
        border-bottom: 1px solid #e0ddd8;
        padding: 18px 8px;
        min-height: 56px;
    }

    .clients-logo-cell:nth-child(4n) {
        border-right: none;
    }

    .clients-logo-name {
        font-size: 11px;
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .clients-logo-cell {
        flex: 0 0 50%;
    }

    .clients-logo-cell:nth-child(4n) {
        border-right: 1px solid #e0ddd8;
    }

    .clients-logo-cell:nth-child(2n) {
        border-right: none;
    }
}
