/* =========================================================================
   BRANDS SECTION
   ========================================================================= */
.brands-section {
    padding: var(--space-20) 0;
    background: var(--color-gray-50);
}

.brands-section .section-header {
    text-align: center;
    margin-bottom: var(--space-10);
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-10);
}

@media (min-width: 640px) {
    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .brands-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .brands-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Brand Card */
.brand-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    padding: var(--space-5) var(--space-4);
    min-height: 120px;
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-xl);
    text-decoration: none;
    transition: all var(--transition-base);
}

.brand-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Brand Logo */
.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50px;
    overflow: hidden;
}

.brand-logo img {
    max-width: 100%;
    max-height: 50px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(20%);
    transition: filter var(--transition-fast);
}

.brand-card:hover .brand-logo img {
    filter: grayscale(0%);
}

/* Brand Name */
.brand-name {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-gray-700);
    text-align: center;
    transition: color var(--transition-fast);
}

.brand-card:hover .brand-name {
    color: var(--color-primary);
}

/* Cards with logo have smaller text */
.brand-card.has-logo .brand-name {
    font-size: var(--text-xs);
    color: var(--color-gray-500);
}

.brand-card.has-logo:hover .brand-name {
    color: var(--color-primary);
}

/* Cards without logo - bigger text */
.brand-card:not(.has-logo) {
    justify-content: center;
}

.brand-card:not(.has-logo) .brand-name {
    font-size: var(--text-base);
    font-weight: 700;
}

/* CTA */
.brands-cta {
    text-align: center;
}

.brands-cta p {
    font-size: var(--text-base);
    color: var(--color-gray-600);
    margin-bottom: var(--space-4);
}

.brands-cta strong {
    color: var(--color-gray-900);
}

/* Mobile adjustments */
@media (max-width: 639px) {
    .brands-section {
        padding: var(--space-12) 0;
    }

    .brands-grid {
        gap: var(--space-3);
    }

    .brand-card {
        min-height: 100px;
        padding: var(--space-4) var(--space-3);
    }

    .brand-logo {
        height: 40px;
    }

    .brand-logo img {
        max-height: 40px;
    }

    .brand-name {
        font-size: var(--text-xs);
    }

    .brand-card:not(.has-logo) .brand-name {
        font-size: var(--text-sm);
    }
}
