/* Widget de contato WhatsApp — botão flutuante fixo no canto inferior direito.
   Usado em: landing.html, /app (index.html), /termos, /privacidade, /contato.
   Z-index 900: fica acima do conteúdo mas abaixo de modais (modais costumam usar 1000+). */

.wa-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35), 0 2px 6px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 900;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  border: none;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.wa-widget:hover,
.wa-widget:focus-visible {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45), 0 4px 10px rgba(0, 0, 0, 0.15);
  outline: none;
}

.wa-widget:focus-visible {
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.35), 0 6px 20px rgba(37, 211, 102, 0.45);
}

.wa-widget:active {
  transform: translateY(0) scale(0.98);
}

.wa-widget svg {
  width: 32px;
  height: 32px;
  fill: #ffffff;
  display: block;
}

/* Pulso discreto pra chamar atenção sem ser agressivo */
.wa-widget::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  opacity: 0.4;
  animation: waPulse 2.4s ease-out infinite;
  z-index: -1;
}

@keyframes waPulse {
  0%   { transform: scale(1);    opacity: 0.35; }
  70%  { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* Em mobile, afasta um pouco das bordas */
@media (max-width: 600px) {
  .wa-widget {
    right: 16px;
    bottom: 16px;
    width: 54px;
    height: 54px;
  }
  .wa-widget svg {
    width: 28px;
    height: 28px;
  }
}

/* Respeita usuários que pedem pra reduzir movimento */
@media (prefers-reduced-motion: reduce) {
  .wa-widget::before {
    animation: none;
  }
  .wa-widget {
    transition: none;
  }
}
