/*
 * MegaDoor — Seção de Clientes
 * Arquivo: assets/css/clients.css
 * Carregado em: index.html
 */

/* Garante que cards de clientes nunca fiquem ocultos
   mesmo antes da animação reveal-up disparar */
#clientes .cliente-card.reveal-up {
    opacity: 1 !important;
    transform: none !important;
}
#clientes .cliente-card.revealed {
    opacity: 1 !important;
    transform: none !important;
}

/* ═══════════════════════════════════════════════
   SEÇÃO WRAPPER
═══════════════════════════════════════════════ */
#clientes {
    padding: 5.5rem 1.5rem 5rem;
    background: #f5f7fb;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

#clientes::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(26,42,74,0.04) 0%, transparent 65%);
    pointer-events: none;
}

/* ═══════════════════════════════════════════════
   INNER CONTAINER
═══════════════════════════════════════════════ */
#clientes .clientes-inner {
    max-width: 1160px;
    margin: 0 auto;
    position: relative;
    text-align: center;
}

/* ═══════════════════════════════════════════════
   CABEÇALHO DA SEÇÃO
═══════════════════════════════════════════════ */
#clientes .clientes-titulo {
    font-size: clamp(1.7rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: #1a2a4a;
    line-height: 1.2;
    margin: 0 0 0.75rem;
    font-family: 'Outfit', 'Inter', sans-serif;
}

#clientes .clientes-titulo span {
    color: #ffe600;
    -webkit-text-stroke: 0.5px rgba(200,160,0,0.4);
}

#clientes .clientes-subtitulo {
    font-size: clamp(0.9rem, 1.6vw, 1.05rem);
    color: #5a6a80;
    max-width: 620px;
    margin: 0 auto 3.2rem;
    line-height: 1.8;
    font-family: 'Inter', sans-serif;
}

/* ═══════════════════════════════════════════════
   GRID DE CARDS
═══════════════════════════════════════════════ */
#clientes .clientes-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
    justify-items: center;
    align-items: stretch;
    margin: 0 auto;
    max-width: 1100px;
}

/* ═══════════════════════════════════════════════
   CARD INDIVIDUAL
═══════════════════════════════════════════════ */
#clientes .cliente-card {
    background: #ffffff;
    border: 1.5px solid rgba(26,42,74,0.08);
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(26,42,74,0.07), 0 1px 4px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 1.8rem 1rem 1.4rem;
    width: 100%;
    min-height: 140px;
    position: relative;
    overflow: hidden;
    cursor: default;
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1),
                box-shadow 0.3s ease,
                border-color 0.25s ease;
    box-sizing: border-box;
    text-align: center;
}

/* Linha dourada no topo — aparece no hover */
#clientes .cliente-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffe600 0%, rgba(255,230,0,0.3) 100%);
    border-radius: 18px 18px 0 0;
    opacity: 0;
    transition: opacity 0.25s ease;
}

#clientes .cliente-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 14px 40px rgba(26,42,74,0.14), 0 4px 12px rgba(255,230,0,0.15);
    border-color: rgba(255,230,0,0.5);
}

#clientes .cliente-card:hover::after {
    opacity: 1;
}

/* ═══════════════════════════════════════════════
   ÁREA DA LOGO / TIPOGRAFIA
═══════════════════════════════════════════════ */
#clientes .cliente-logo-wrap {
    width: 100%;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

#clientes .cliente-logo-text {
    display: block;
    text-align: center;
    font-family: 'Outfit', 'Inter', sans-serif;
    line-height: 1.2;
    user-select: none;
    transition: transform 0.22s ease;
}

#clientes .cliente-card:hover .cliente-logo-text {
    transform: scale(1.05);
}

/* Imagem de logo real (quando disponível futuramente) */
#clientes .cliente-logo-img {
    max-width: 110px;
    max-height: 60px;
    object-fit: contain;
    display: block;
    filter: grayscale(20%);
    transition: filter 0.25s ease, transform 0.25s ease;
}
#clientes .cliente-card:hover .cliente-logo-img {
    filter: grayscale(0%);
    transform: scale(1.06);
}

/* ═══════════════════════════════════════════════
   NOME DO CLIENTE (abaixo da logo)
═══════════════════════════════════════════════ */
#clientes .cliente-nome {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: #8090a8;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
    font-family: 'Inter', sans-serif;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* ═══════════════════════════════════════════════
   RESPONSIVO — TABLET (max 1024px)
   3 colunas × 4 linhas
═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
    #clientes .clientes-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

/* ═══════════════════════════════════════════════
   RESPONSIVO — MOBILE (max 640px)
   2 colunas
═══════════════════════════════════════════════ */
@media (max-width: 640px) {
    #clientes {
        padding: 4rem 1rem 3.5rem;
    }
    #clientes .clientes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.85rem;
        max-width: 100%;
    }
    #clientes .cliente-card {
        min-height: 120px;
        padding: 1.4rem 0.75rem 1.1rem;
    }
    #clientes .cliente-logo-wrap {
        height: 54px;
    }
}

/* ═══════════════════════════════════════════════
   RESPONSIVO — MOBILE PEQUENO (max 380px)
   2 colunas compactas
═══════════════════════════════════════════════ */
@media (max-width: 380px) {
    #clientes .clientes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.65rem;
    }
    #clientes .cliente-nome {
        font-size: 0.65rem;
    }
}
