/* ========================================================
   SISTEMA GLOBAL DE ANIMAÇÕES
======================================================== */

/* --- KEYFRAMES BASE --- */
@keyframes fadeInUp {
    from {
        transform: translateY(60px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInScale {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.6);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(12px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes scaleUp {
    from {
        transform: scale(0.2);
    }

    to {
        transform: scale(1);
    }
}

/* --- SCROLL TRIGGER CLASSES MULTI-USE --- */

/* Base: Elemento oculto com transição preparada (Suave, Premium Bezier) */
.animate-in,
.animate-on-scroll,
.animate-scale-on-scroll {
    opacity: 0;
    will-change: opacity, transform;
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Estados iniciais customizados (.fade-up, .fade-in, .fade-in-scale) */
.animate-in.fade-up,
.animate-on-scroll {
    transform: translateY(40px);
}

.animate-in.fade-in {
    transform: translateY(0) scale(1);
    /* Somente opacity muda */
}

.animate-in.fade-in-scale,
.animate-scale-on-scroll {
    transform: scale(0.92);
}

/* Staggered Delays p/ blocos que aparecem em sequência */
.animate-in.delay-1 {
    transition-delay: 100ms;
}

.animate-in.delay-2 {
    transition-delay: 200ms;
}

.animate-in.delay-3 {
    transition-delay: 300ms;
}

.animate-in.delay-4 {
    transition-delay: 400ms;
}

.animate-in.delay-5 {
    transition-delay: 500ms;
}

.animate-in.delay-6 {
    transition-delay: 600ms;
}

/* Estado Final (Ativo) adicionado pelo JavaScript Observer */
.animate-in.is-visible,
.animate-on-scroll.animated,
.animate-scale-on-scroll.animated {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ========================================================
   EFEITOS ESPECIAIS: WHATSAPP FLOAT E TICKER
======================================================== */

/* --- BOTÃO FLUTUANTE WHATSAPP --- */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    width: 56px;
    height: 56px;
    background-color: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #FFFFFF;

    /* Entrada do botão no site carregado */
    animation: slideInRight 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 1s;
    opacity: 0;
    /* Começa invisível para animação de loop delay agir */
    transform: translateX(12px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
    /* Ou stroke nativo, de acordo com o svg em html */
}

/* --- TICKER / MARQUEE ANIMATION --- */
.ticker-section {
    position: relative;
    overflow: hidden;
    background-color: var(--color-white);
    /* Adapte se o fundo antes for light */
    padding: 40px 0;
    display: flex;
    white-space: nowrap;

    /* Máscara linear nas bordas E/D para desaparecer sutilmente */
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Ele será duas cópias cravadas pra o loop seamless */
}

.ticker-track {
    display: flex;
    animation: marquee 20s linear infinite;
}

.ticker-track:hover {
    animation-play-state: paused;
    /* Hover opcional pra pausar a leitura */
}

.ticker-text {
    font-size: 120px;
    font-weight: 600;
    letter-spacing: -0.03em;
    padding: 0 20px;

    /* Gradiente Text */
    background-image: linear-gradient(90deg, #222222 18%, #C8963E 82%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    /* Fallback */
}

/* Responsivo Ticker */
@media (max-width: 809px) {
    .ticker-text {
        font-size: 80px;
    }
}