/* ==========================================================================
   WhatsApp FAB — botão flutuante fixo
   ========================================================================== */

a.whatsapp-fab {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 10000;
    display: block;
    width: 60px;
    height: 60px;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

a.whatsapp-fab:hover,
a.whatsapp-fab:focus {
    color: #ffffff;
    text-decoration: none;
}

a.whatsapp-fab:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 4px;
    border-radius: 50%;
}

.whatsapp-fab__circle {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(145deg, #25d366 0%, #1da851 100%);
    border-radius: 50%;
    box-shadow:
        0 6px 20px rgba(37, 211, 102, 0.45),
        0 2px 8px rgba(0, 0, 0, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

a.whatsapp-fab:hover .whatsapp-fab__circle {
    transform: scale(1.08);
    box-shadow:
        0 10px 28px rgba(37, 211, 102, 0.55),
        0 4px 12px rgba(0, 0, 0, 0.15);
}

.whatsapp-fab__pulse {
    position: absolute;
    inset: -6px;
    z-index: 1;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.35);
    animation: whatsappPulse 2.2s ease-out infinite;
    pointer-events: none;
}

@keyframes whatsappPulse {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }
    70% {
        transform: scale(1.35);
        opacity: 0;
    }
    100% {
        transform: scale(1.35);
        opacity: 0;
    }
}

/* Botão voltar ao topo — acima do WhatsApp */
.back-to-top {
    right: 24px;
    bottom: 96px;
    z-index: 9999;
}

.back-to-top[hidden] {
    bottom: 96px;
}

@media (max-width: 639px) {
    a.whatsapp-fab {
        right: 16px;
        bottom: 16px;
        width: 56px;
        height: 56px;
    }

    .whatsapp-fab__circle {
        width: 56px;
        height: 56px;
    }

    .whatsapp-fab__circle svg {
        width: 26px;
        height: 26px;
    }

    .back-to-top,
    .back-to-top[hidden] {
        right: 16px;
        bottom: 84px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .whatsapp-fab__pulse {
        animation: none;
        opacity: 0.25;
    }

    a.whatsapp-fab:hover .whatsapp-fab__circle {
        transform: none;
    }
}
