/* ============================================================
   Floating Contact Buttons (WhatsApp + Call) — premium redesign
   Scope: .whatsapp-flat and its two anchor buttons only.
   Loaded after layout.css so these rules take priority without
   needing !important, except where layout.css already uses
   !important on position offsets.
============================================================ */

.whatsapp-flat {
    position: fixed;
    right: 1rem !important;
    bottom: 2rem !important;
    z-index: 1030;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.whatsapp-flat a {
    position: relative;
    width: 56px;
    height: 56px;
    margin-top: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    line-height: normal;
    transition: transform .25s ease, box-shadow .25s ease;
}

.whatsapp-flat a i {
    position: relative;
    z-index: 2;
    font-size: 26px;
    color: #fff;
    line-height: 1;
}

.whatsapp-flat a:hover,
.whatsapp-flat a:focus-visible {
    transform: scale(1.08);
}

/* Soft outward pulse ring — an independent halo, not a flash of the
   button's own fill color. */
.whatsapp-flat a::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    animation: floatBtnPulse 1.6s ease-out infinite;
}

/* --- WhatsApp button --- */
.wa-float-btn {
    background: #25D366 !important;
    box-shadow: 0 6px 18px rgba(37, 211, 102, .35), 0 2px 6px rgba(0, 0, 0, .12);
}

.wa-float-btn::before {
    background: rgba(37, 211, 102, .55);
}

.wa-float-btn:hover,
.wa-float-btn:focus-visible {
    box-shadow: 0 8px 24px rgba(37, 211, 102, .45), 0 3px 8px rgba(0, 0, 0, .15);
}

/* --- Call button --- */
.call-float-btn {
    background: #0B2A4A !important;
    box-shadow: 0 6px 18px rgba(11, 42, 74, .35), 0 2px 6px rgba(0, 0, 0, .12);
}

.call-float-btn::before {
    background: rgba(11, 42, 74, .5);
    animation-delay: .25s;
    /* slight offset so the two rings don't pulse in lockstep */
}

.call-float-btn:hover,
.call-float-btn:focus-visible {
    box-shadow: 0 8px 24px rgba(11, 42, 74, .45), 0 3px 8px rgba(0, 0, 0, .15);
}

@keyframes floatBtnPulse {
    0% {
        transform: scale(1);
        opacity: .55;
    }

    70% {
        transform: scale(1.55);
        opacity: 0;
    }

    100% {
        transform: scale(1.55);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .whatsapp-flat a::before {
        animation: none;
    }
}

/* Keep the pair compact and clear of content on small phones */
@media (max-width: 480px) {
    .whatsapp-flat {
        right: .85rem !important;
        bottom: 1.25rem !important;
        gap: 12px;
    }

    .whatsapp-flat a {
        width: 50px;
        height: 50px;
    }

    .whatsapp-flat a i {
        font-size: 23px;
    }
}
