/* ===========================================
   ALE BRANDING — Galeria de Logos
   =========================================== */

/* --- ANIMACOES --- */
@keyframes aleBrandFadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes aleArrowPulse {
    0%, 100% { transform: scaleY(1); opacity: 0.6; }
    50% { transform: scaleY(1); opacity: 1; }
}

@keyframes aleArrowGrow {
    from { stroke-dashoffset: 48; }
    to { stroke-dashoffset: 0; }
}

@keyframes aleLogoReveal {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}

/* Elementos animados — JS adiciona .ale-hidden, CSS anima .is-visible */
.ale-hidden {
    opacity: 0;
    transform: translateY(30px);
}

.ale-hidden.is-visible {
    animation: aleBrandFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Delays escalonados */
.ale-branding__title.ale-hidden.is-visible { animation-delay: 0s; }
.ale-branding__subtitle.ale-hidden.is-visible { animation-delay: 0.12s; }
.ale-branding__grid.ale-hidden.is-visible { animation-delay: 0.25s; }
.ale-branding__cta.ale-hidden.is-visible { animation-delay: 0.4s; }
.ale-branding__arrow.ale-hidden.is-visible { animation-delay: 0.5s; }

/* --- EDITOR: desativa animacoes --- */
.ale-no-anim .ale-anim,
.ale-no-anim .ale-branding__logo {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

.ale-no-anim .ale-branding__logo img {
    opacity: 0.7 !important;
}

/* --- SECAO --- */
.ale-branding {
    background-color: #0d121c;
    padding: 64px 0 40px;
    text-align: center;
}

.ale-branding__container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- TITULO --- */
.ale-branding__title {
    font-family: 'Mont', 'Poppins', sans-serif;
    font-weight: 700;
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    line-height: 1.2;
    color: #ffffff;
    margin: 0 0 16px 0;
    text-align: center;
}

.ale-branding__title .is-highlight {
    color: #0099D6;
}

/* --- SUBTITULO --- */
.ale-branding__subtitle {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: clamp(0.875rem, 1.2vw, 1.0625rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.55);
    margin: 0 0 48px 0;
    max-width: 600px;
    text-align: center;
}

/* --- GRID DE LOGOS --- */
.ale-branding__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px 40px;
    align-items: center;
    width: 100%;
    margin-bottom: 32px;
}

.ale-branding__logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ale-branding__logo.ale-hidden {
    opacity: 0;
}

/* Logos aparecem quando grid entra na tela */
.ale-branding__grid.is-visible .ale-branding__logo {
    animation: aleLogoReveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: var(--logo-delay, 0s);
}

.ale-branding__logo img {
    max-height: 32px;
    width: auto;
    max-width: 100%;
    filter: brightness(0) invert(1);
    opacity: 0.7;
    transition: opacity 0.35s ease;
}

.ale-branding__logo:hover img {
    opacity: 1;
}

/* --- CTA LINK --- */
.ale-branding__cta {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.9375rem;
    color: #0099D6;
    text-decoration: none;
    transition: color 0.3s ease;
    margin-bottom: 24px;
    position: relative;
}

.ale-branding__cta::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #0099D6;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ale-branding__cta:hover {
    color: #00c2ff;
}

.ale-branding__cta:hover::after {
    width: 100%;
}

/* --- SETA ANIMADA --- */
.ale-branding__arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin-top: 8px;
}

/* Trilha: linha vertical com bolinha que desce */
.ale-branding__arrow-track {
    width: 2px;
    height: 40px;
    background: rgba(0, 153, 214, 0.15);
    border-radius: 1px;
    position: relative;
    overflow: hidden;
}

.ale-branding__arrow-dot {
    width: 2px;
    height: 12px;
    background: #0099D6;
    border-radius: 1px;
    position: absolute;
    top: -12px;
    left: 0;
    box-shadow: 0 0 6px rgba(0, 153, 214, 0.5);
}

.ale-branding__arrow.is-visible .ale-branding__arrow-dot {
    animation: aleDotDrop 1.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s infinite;
}

@keyframes aleDotDrop {
    0% { top: -12px; opacity: 0; }
    10% { opacity: 1; }
    70% { top: 40px; opacity: 1; }
    100% { top: 40px; opacity: 0; }
}

/* Chevron embaixo — bounce sutil */
.ale-branding__arrow-chevron {
    margin-top: 4px;
    opacity: 0.5;
}

.ale-branding__arrow.is-visible .ale-branding__arrow-chevron {
    animation: aleChevronBounce 1.8s ease-in-out 0.6s infinite;
}

@keyframes aleChevronBounce {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(4px); opacity: 1; }
}

/* ========== TABLET ========== */
@media (max-width: 1024px) {
    .ale-branding__grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 28px 20px;
    }

    .ale-branding__container {
        padding: 0 32px;
    }
}

/* ========== MOBILE ========== */
@media (max-width: 767px) {
    .ale-branding {
        padding: 48px 0;
    }

    .ale-branding__container {
        padding: 0 24px;
    }

    .ale-branding__title {
        font-size: clamp(1.25rem, 6vw, 1.75rem);
        margin-bottom: 12px;
    }

    .ale-branding__subtitle {
        font-size: 0.8125rem;
        margin-bottom: 32px;
    }

    .ale-branding__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px 20px;
        margin-bottom: 28px;
    }

    .ale-branding__logo img {
        max-height: 28px;
    }

    .ale-branding__cta {
        font-size: 0.8125rem;
        margin-bottom: 20px;
    }
}

/* Mobile pequeno */
@media (max-width: 400px) {
    .ale-branding__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px 12px;
    }
}
