/*
  Botao flutuante do WhatsApp.
*/

.whatsapp-float {
    position: fixed;
    right: 1.1rem;
    bottom: 1.1rem;
    z-index: 1100;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 125px;
    height: 125px;
    border-radius: 50%;
    text-decoration: none;
    background: transparent;
    box-shadow: none;
    transition: transform 0.3s ease, filter 0.3s ease;
    animation: whatsappFloat 3s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: translateY(-6px) scale(1.03);
  filter: brightness(1.05);
}

.whatsapp-float__frame {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background:
    conic-gradient(from 120deg, rgba(44, 195, 168, 0.2), rgba(44, 195, 168, 0.96) 26%, rgba(44, 195, 168, 0.24) 54%, rgba(44, 195, 168, 0.82) 78%, rgba(44, 195, 168, 0.2));
  border: 1px solid rgba(159, 255, 233, 0.72);
  box-shadow:
    0 0 28px rgb(0 0 0),
    inset 0 0 18px #000000;
  animation: whatsappPulse 3s ease-in-out infinite;
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.whatsapp-float__frame img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(232, 250, 246, 0.92);
  box-shadow: inset 0 0 0 1px rgba(44, 195, 168, 0.34);
}

.whatsapp-float:hover .whatsapp-float__frame {
  box-shadow:
    0 0 36px rgb(0 0 0),
    inset 0 0 20px #000000,
    0 0 26px rgba(45, 194, 166, 0.62);
}

@keyframes whatsappFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes whatsappPulse {
  0%, 100% {
    box-shadow:
      0 0 28px rgb(0 0 0),
      inset 0 0 18px #000000;
  }
  50% {
    box-shadow:
      0 0 36px rgb(0 0 0),
      inset 0 0 20px #000000,
      0 0 24px rgba(45, 194, 166, 0.5);
  }
}

@media (max-width: 768px) {
  .whatsapp-float {
    right: 0.75rem;
    bottom: 0.75rem;
    width: 74px;
    height: 74px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float,
  .whatsapp-float__frame {
    animation: none !important;
  }
}
