/* Floating WhatsApp button — bottom left */

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #fff !important;
  border-radius: 50%;
  font-size: 32px;
  text-decoration: none !important;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  animation: whatsapp-float-bounce 2.5s ease-in-out infinite;
}

.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #25d366;
  opacity: 0.6;
  animation: whatsapp-pulse-ring 2s ease-out infinite;
}

.whatsapp-float::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #25d366;
  opacity: 0;
  animation: whatsapp-pulse-ring 2s ease-out 1s infinite;
}

.whatsapp-float i {
  position: relative;
  z-index: 1;
}

.whatsapp-float:hover {
  background: #1ebe57;
  color: #fff !important;
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.55);
  animation: none;
}

.whatsapp-float:hover::before,
.whatsapp-float:hover::after {
  animation: none;
  opacity: 0;
}

@keyframes whatsapp-float-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes whatsapp-pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.55);
    opacity: 0;
  }
}

/* Above scroll-to-top on the right */
body #scroll-to-top {
  z-index: 9998;
}

@media (max-width: 767px) {
  .whatsapp-float {
    bottom: 18px;
    left: 18px;
    width: 52px;
    height: 52px;
    font-size: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float,
  .whatsapp-float::before,
  .whatsapp-float::after {
    animation: none;
  }
}
