/* ==========================================================================
   Section: #brands - Editorial Brand Showcase (Design System Apple / Clean)
   Grelha de logótipos refinada, legibilidade balanceada e estética contemporânea
   ========================================================================== */

.brands-section,
#brands.brands-section {
    background-color: #ffffff !important;
    color: var(--colors-ink, #1d1d1f);
    padding: clamp(56px, 7vw, 84px) 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    width: 100%;
}

/* ==========================================================================
   Página Dedicada: Mesmo Margin-Top / Padding que Todas as Outras Páginas
   (Exatamente igual a Patrocinadores, Oradores e Júri: padding 72px 0 96px 0)
   ========================================================================== */

.standalone-brands-page,
#brands.standalone-brands-page {
    background-color: #ffffff !important;
    color: var(--colors-ink, #111113);
    padding: 72px 0 96px 0 !important;
    min-height: 75vh;
    position: relative;
}

/* ==========================================================================
   1. Cabeçalho Editorial (Eyebrow Idêntico às Outras Secções)
   ========================================================================== */

.brands-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 38px;
    flex-wrap: wrap;
}

.brands-header-text {
    max-width: 680px;
}

/* Eyebrow padronizado: sem background, sem cápsula, texto puro em caixa alta */
.brands-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--colors-primary, #0066cc);
    margin-bottom: 8px;
    background: transparent;
    padding: 0;
    border: none;
}

.brands-headline {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", sans-serif;
    font-size: clamp(30px, 3.6vw, 42px);
    font-weight: 750;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: #111113;
    margin: 0 0 10px 0;
}

.brands-subhead {
    font-size: 16px;
    line-height: 1.55;
    letter-spacing: -0.15px;
    color: #555761;
    margin: 0;
}

.brands-view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #111113;
    background-color: #f2f3f5;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 9px 20px;
    border-radius: 9999px;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.brands-view-all-btn:hover {
    background-color: #111113;
    border-color: #111113;
    color: #ffffff;
}

.brands-view-all-btn svg {
    flex-shrink: 0;
}

/* ==========================================================================
   2. Cartões de Marca (Luxury Logo Card)
   ========================================================================== */

.brands-grid {
    position: relative;
    width: 100%;
}

.brand-luxury-card {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 18px;
    padding: 22px 16px 18px 16px;
    height: 100%;
    min-height: 154px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    box-sizing: border-box;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.brand-luxury-card:hover {
    border-color: rgba(0, 102, 204, 0.35);
    background-color: #fafbfc;
}

/* Contentor do Logótipo */
.brand-logo-frame {
    height: 76px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    box-sizing: border-box;
}

.brand-logo-img {
    max-height: 60px;
    max-width: 100%;
    object-fit: contain;
    display: block;
    filter: grayscale(12%);
    transition: filter 0.2s ease;
}

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

.brand-logo-fallback {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #f2f3f5;
    color: #555761;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

/* Identificador da Marca */
.brand-info-wrap {
    width: 100%;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: 8px;
}

.brand-name-text {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #4b4d55;
    letter-spacing: -0.15px;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.brand-luxury-card:hover .brand-name-text {
    color: #111113;
}

/* ==========================================================================
   3. Empty State
   ========================================================================== */

.brands-empty-card {
    background-color: #ffffff;
    border: 1px dashed rgba(0, 0, 0, 0.12);
    border-radius: 20px;
    padding: 48px 24px;
    text-align: center;
    max-width: 520px;
    margin: 0 auto;
}

.brands-empty-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #f4f5f7;
    color: #8c8e96;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px auto;
}

.brands-empty-text {
    font-size: 15.5px;
    color: #6e7079;
    margin: 0;
}

/* ==========================================================================
   4. Responsividade
   ========================================================================== */

@media (max-width: 991.98px) {
    #brands.brands-section {
        padding: 48px 0;
    }

    .standalone-brands-page,
    #brands.standalone-brands-page {
        padding: 60px 0 80px 0 !important;
    }

    .brand-luxury-card {
        min-height: 142px;
        padding: 18px 14px 16px 14px;
    }

    .brand-logo-frame {
        height: 68px;
    }

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

@media (max-width: 767.98px) {
    #brands.brands-section {
        padding: 40px 0;
    }

    .standalone-brands-page,
    #brands.standalone-brands-page {
        padding: 52px 0 64px 0 !important;
    }

    .brands-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 26px;
    }

    .brands-view-all-btn {
        width: 100%;
        justify-content: center;
    }

    .brand-luxury-card {
        border-radius: 14px;
        min-height: 134px;
        padding: 16px 12px 14px 12px;
    }

    .brand-logo-frame {
        height: 60px;
    }

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

    .brand-name-text {
        font-size: 12.5px;
    }
}

@media (max-width: 575.98px) {
    .brands-headline {
        font-size: 26px;
    }

    .brands-subhead {
        font-size: 14.5px;
    }
}

/* ==========================================================================
   5. Variante Dark para a Home Page (.brands-dark-theme)
   Fundo escuro (#272729 / tile-1) exclusivo para a página inicial
   ========================================================================== */

#brands.brands-dark-theme {
    background-color: var(--colors-surface-tile-1, #272729) !important;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brands-dark-theme .brands-eyebrow {
    color: var(--colors-primary-on-dark, #2997ff);
    background: transparent;
    padding: 0;
    border: none;
}

.brands-dark-theme .brands-headline {
    color: #ffffff;
}

.brands-dark-theme .brands-subhead {
    color: rgba(255, 255, 255, 0.78);
}

.brands-dark-theme .brands-view-all-btn {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.brands-dark-theme .brands-view-all-btn:hover {
    background-color: #ffffff;
    border-color: #ffffff;
    color: #111113;
}

.brands-dark-theme .brand-luxury-card {
    background-color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.4);
}

.brands-dark-theme .brand-luxury-card:hover {
    border-color: rgba(255, 255, 255, 0.7);
    background-color: #ffffff;
}

.brands-dark-theme .brands-empty-card {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.16);
}

.brands-dark-theme .brands-empty-icon {
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.75);
}

.brands-dark-theme .brands-empty-text {
    color: rgba(255, 255, 255, 0.78);
}
