/* ==========================================================
   MAYON FLOORING - GLOBAL LEAD GENERATION BUTTONS
   Floating WhatsApp & CTA buttons across all pages
========================================================== */

/* --- Desktop Floating Lead Dock (Bottom Left) --- */
.mayon-lead-floating {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.mayon-lead-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Exo', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    position: relative;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1;
}

.mayon-lead-btn:hover {
    transform: translateY(-3px) scale(1.03);
    color: #ffffff !important;
}

.mayon-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.mayon-btn-text {
    display: inline-block;
    vertical-align: middle;
}

/* WhatsApp Button */
.mayon-whatsapp-btn {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff !important;
}

.mayon-whatsapp-btn:hover {
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45);
}

/* WhatsApp Pulsing Wave */
.mayon-pulse {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50px;
    border: 2px solid #25D366;
    animation: mayonPulseWave 2s infinite ease-out;
    pointer-events: none;
    opacity: 0.8;
}

@keyframes mayonPulseWave {
    0% {
        transform: scale(0.96);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.08);
        opacity: 0.4;
    }
    100% {
        transform: scale(1.16);
        opacity: 0;
    }
}

/* Quote CTA Button */
.mayon-quote-btn {
    background: linear-gradient(135deg, #ff5e14 0%, #e04b08 100%);
    color: #ffffff !important;
}

.mayon-quote-btn:hover {
    box-shadow: 0 12px 28px rgba(255, 94, 20, 0.45);
}

/* Direct Call CTA Button */
.mayon-call-btn {
    background: #0f172a;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.mayon-call-btn:hover {
    background: #1e293b;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.4);
}

/* --- Mobile Bottom Lead Bar (< 768px) --- */
.mayon-mobile-lead-bar {
    display: none;
}

@media (max-width: 767px) {
    /* Hide desktop dock on mobile */
    .mayon-lead-floating {
        display: none !important;
    }

    /* Fixed bottom bar for high-conversion mobile tapping */
    .mayon-mobile-lead-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9999;
        background: rgba(15, 23, 42, 0.97);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        padding: 8px 10px;
        padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -6px 22px rgba(0, 0, 0, 0.3);
        gap: 8px;
    }

    .mobile-bar-btn {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 11px 4px;
        border-radius: 8px;
        font-family: 'Exo', sans-serif;
        font-weight: 700;
        font-size: 13px;
        text-decoration: none;
        color: #ffffff !important;
        transition: transform 0.15s ease, opacity 0.15s ease;
        line-height: 1;
    }

    .mobile-bar-btn:active {
        transform: scale(0.97);
        opacity: 0.9;
    }

    .mobile-call-btn {
        background: #1e293b;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .mobile-whatsapp-btn {
        background: #25D366;
    }

    .mobile-quote-btn {
        background: #ff5e14;
    }

    /* Ensure page content isn't covered by bottom bar */
    body {
        padding-bottom: 64px !important;
    }

    /* Keep scroll-to-top visible above mobile lead bar */
    .scroll-to-top.show {
        bottom: 80px !important;
    }
}
