/* WhatsApp bubble matching the public homepage. */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 120;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #25d366, #128c7e);
  box-shadow: 0 18px 42px rgba(18, 140, 126, .28), 0 0 0 8px rgba(37, 211, 102, .12);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
  animation: whatsappFloatDance 3.2s ease-in-out infinite;
}

.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(37, 211, 102, .34);
  animation: whatsappRing 1.8s ease-out infinite;
}

.whatsapp-float::after {
  content: "1";
  position: absolute;
  top: -3px;
  right: -3px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: #ff9638;
  box-shadow: 0 10px 22px rgba(255, 150, 56, .28);
  font-size: 12px;
  font-weight: 950;
  animation: whatsappBadge 3.2s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 24px 52px rgba(18, 140, 126, .34), 0 0 0 10px rgba(37, 211, 102, .14);
}

.whatsapp-float svg {
  width: 31px;
  height: 31px;
  fill: currentColor;
  transform-origin: center;
  animation: whatsappIconBeat 2.15s ease-in-out infinite;
}

.whatsapp-float span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}


@keyframes whatsappRing {
      0% {
        transform: scale(.86);
        opacity: .75;
      }

      100% {
        transform: scale(1.32);
        opacity: 0;
      }
    }

@keyframes whatsappFloatDance {
      0%, 100% {
        transform: translateY(0) scale(1) rotate(0deg);
      }

      12% {
        transform: translateY(-5px) scale(1.04) rotate(-3deg);
      }

      24% {
        transform: translateY(0) scale(1) rotate(3deg);
      }

      36% {
        transform: translateY(-3px) scale(1.025) rotate(0deg);
      }

      52%, 100% {
        transform: translateY(0) scale(1) rotate(0deg);
      }
    }

@keyframes whatsappIconBeat {
      0%, 100% {
        transform: scale(1);
      }

      18% {
        transform: scale(1.14);
      }

      32% {
        transform: scale(1);
      }
    }

@keyframes whatsappBadge {
      0%, 42%, 100% {
        transform: scale(.72);
        opacity: 0;
      }

      10%, 32% {
        transform: scale(1);
        opacity: 1;
      }

      22% {
        transform: scale(1.18);
        opacity: 1;
      }
    }
.whatsapp-float { right: calc(22px + env(safe-area-inset-right)); bottom: calc(24px + env(safe-area-inset-bottom)); }
.whatsapp-float svg { stroke: none; }
.whatsapp-float:focus-visible { outline: 3px solid #2977d8; outline-offset: 6px; }
@media (max-width: 680px) {
  .whatsapp-float { right: calc(16px + env(safe-area-inset-right)); bottom: calc(18px + env(safe-area-inset-bottom)); width: 56px; height: 56px; }
  .whatsapp-float svg { width: 28px; height: 28px; }
  .contact-page .public-site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
@media (max-width: 1040px) {
  .contact-page:has(#contact-form input:focus, #contact-form textarea:focus) .whatsapp-float { visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float, .whatsapp-float::before, .whatsapp-float::after, .whatsapp-float svg { animation: none; transition: none; }
  .whatsapp-float::before, .whatsapp-float::after { display: none; }
}
