/**
 * Logos Component Styles
 * 
 * Componente que exibe logos organizadas em blocos com título,
 * permitindo customização de espaçamento e larguras responsivas.
 */

/* ===== BASE STYLES ===== */
.logos {
    width: 100%;
    padding: 55px 0 100px;
    position: relative;
}

/* ===== BLOCK STYLES ===== */
.logos__block {
    margin-bottom: 112px;
}

.logos__block:last-child {
    margin-bottom: 0;
}

/* ===== TITLE STYLES ===== */
.logos__title {
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-semibold);
    font-size: var(--heading-2-large);
    line-height: var(--heading-2-line-height-large);
    color: var(--neutral-300);
    text-align: center;
    margin: 0 0 52px 0;
}

/* ===== GRID LAYOUT ===== */
.logos__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--logos-gap-desktop, 32px);
    width: 100%;
}

/* ===== LOGO ITEM ===== */
.logos__item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ===== LOGO IMAGE ===== */
.logos__image {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Desktop width */
.logos__image {
    width: var(--logo-width-desktop, auto);
}

/* Mobile width override */
@media (max-width: 768px) {
    .logos__image {
        width: var(--logo-width-mobile, auto);
    }
}

/* ===== SVG SPECIFIC STYLES ===== */
.logos__image--svg {
    /* Ensure SVG logos maintain aspect ratio */
    max-height: none;
}

/* ===== HOVER EFFECTS ===== */
.logos__item:hover .logos__image {
    transform: scale(1.05);
    opacity: 0.8;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */

/* Tablet adjustments */
@media (max-width: 1024px) {
    .logos {
        padding: 60px 0;
    }
    
    .logos__block {
        margin-bottom: 60px;
    }
    
    .logos__title {
        font-size: var(--heading-2-medium);
        line-height: var(--heading-2-line-height-medium);
        margin-bottom: 40px;
    }
    
    .logos__grid {
        gap: calc(var(--logos-gap-desktop, 32px) * 0.75);
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .logos {
        padding: 55px 0 40px;
    }
    
    .logos__block {
        margin-bottom: 55px;
    }
    
    .logos__title {
        font-size: var(--heading-2-small);
        line-height: var(--heading-2-line-height-small);
        margin-bottom: 32px;
    }
    
    .logos__grid {
        gap: var(--logos-gap-mobile, 32px);
        justify-content: center;
    }
    
    .logos__item {
        /* Ensure logos don't get too small on mobile */
        min-width: 80px;
    }
}

/* Small mobile adjustments */
@media (max-width: 480px) {
    .logos__title {
        font-size: var(--heading-3-large);
        line-height: var(--heading-3-line-height-large);
        margin-bottom: 24px;
    }
    
    .logos__grid {
        flex-direction: column;
        gap: var(--logos-gap-mobile, 32px);
    }
}

/* ===== ACCESSIBILITY ===== */
.logos__image:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 4px;
}

/* ===== PRINT STYLES ===== */
@media print {
    .logos {
        padding: 20px 0;
    }
    
    .logos__image {
        filter: grayscale(100%);
    }
    
    .logos__item:hover .logos__image {
        transform: none;
        opacity: 1;
    }
}
