/* Botão flutuante do WhatsApp: fixo no canto inferior direito, em todas as partes do site.
   Verde e ícone oficiais do WhatsApp, para ser reconhecido na hora. */

.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 2000; /* acima do conteúdo e da barra superior; a galeria e a janela de detalhes (3000) ficam por cima */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #25d366;
  color: white;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background 0.3s ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  background: #1ebe5a;
  transform: scale(1.08);
  outline: none;
}

.whatsapp-float svg {
  width: 1.9rem;
  height: 1.9rem;
  fill: currentColor;
}

/* Texto que aparece ao lado ao passar o mouse (no celular não há hover) */
.whatsapp-float__label {
  position: absolute;
  right: calc(100% + 0.75rem);
  padding: 0.45rem 0.8rem;
  border-radius: 0.35rem;
  background: var(--color-neutral-10);
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(6px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.whatsapp-float:hover .whatsapp-float__label,
.whatsapp-float:focus-visible .whatsapp-float__label {
  opacity: 1;
  transform: none;
}

/* Um pulso discreto a cada poucos segundos chama a atenção sem incomodar */
.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  background: #25d366;
  animation: whatsappPulse 4s ease-out infinite;
}

@keyframes whatsappPulse {
  0%,
  60% {
    transform: scale(1);
    opacity: 0.5;
  }

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

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

@media (max-width: 600px) {
  .whatsapp-float {
    right: 1rem;
    bottom: 1rem;
    width: 3.25rem;
    height: 3.25rem;
  }

  .whatsapp-float svg {
    width: 1.75rem;
    height: 1.75rem;
  }
}
