/* =============================================
   WHATSAPP-BUTTON.CSS — Floating Contact
   Industrial-Luxury · Dark-Tech · Premium Glow
   Self-contained component. Pulse + hover = pure CSS.
   ============================================= */

.wa-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 60px;
    height: 60px;
    z-index: 900;                 /* below header(1000) & mobile drawer(999) */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25D366;          /* official WhatsApp green */
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    text-decoration: none;
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.40),
        0 10px 28px rgba(0, 0, 0, 0.50),
        0 0 0 6px rgba(37, 211, 102, 0.10),   /* soft halo ring */
        0 0 18px rgba(37, 211, 102, 0.35);     /* green glow */
    transition:
        transform  300ms ease,
        box-shadow 300ms ease;
    -webkit-tap-highlight-color: transparent;
}

/* Icon — sits above the pulse layer */
.wa-float__icon {
    position: relative;
    z-index: 1;
    width: 30px;
    height: 30px;
    fill: #ffffff;
}

/* ── Pulse: soft expanding glow every few seconds ── */
.wa-float::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.45);
    z-index: 0;
    animation: wa-pulse 4s ease-out infinite;
}

@keyframes wa-pulse {
    0%   { transform: scale(1);   opacity: 0.45; }
    18%  { transform: scale(1.75); opacity: 0;   }
    100% { transform: scale(1.75); opacity: 0;   }
}

/* ── Hover — scale-up + stronger green glow ── */
.wa-float:hover {
    transform: scale(1.08);
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.40),
        0 12px 34px rgba(0, 0, 0, 0.55),
        0 0 0 8px rgba(37, 211, 102, 0.16),
        0 0 34px rgba(37, 211, 102, 0.75);
}

/* ── Keyboard focus ── */
.wa-float:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 4px;
}

/* ══════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 640px)
   ══════════════════════════════════════════════ */
@media (max-width: 640px) {
    .wa-float {
        width: 50px;
        height: 50px;
        right: 20px;
        bottom: 20px;
    }
    .wa-float__icon {
        width: 26px;
        height: 26px;
    }
}

/* ══════════════════════════════════════════════
   REDUCED MOTION
   ══════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    .wa-float::before { animation: none; }
    .wa-float { transition: none; }
}
