/* ========================================================================
   WHATSAPP FLOATING BUTTON
   ======================================================================== */

.wa-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 950;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.06);
  transition: transform 0.25s var(--ease-out-quart), box-shadow 0.25s ease;
}

.wa-float svg {
  width: 28px;
  height: 28px;
}

.wa-float:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 32px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.1);
}

/* Soft attention pulse ring */
.wa-float::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid rgba(37,211,102,0.55);
  animation: waPulse 2.6s ease-out infinite;
  pointer-events: none;
}

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

/* Hover tooltip (desktop only) */
.wa-float-tip {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: var(--dark);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.wa-float:hover .wa-float-tip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Move back-to-top above the WhatsApp button so they stack cleanly */
.back-to-top {
  bottom: 6.25rem !important;
}

@media (max-width: 767px) {
  .wa-float {
    width: 52px;
    height: 52px;
    bottom: 5.5rem; /* clears the mobile sticky CTA bar */
    right: 1.25rem;
  }
  .wa-float svg { width: 25px; height: 25px; }
  .wa-float-tip { display: none; }
  .back-to-top {
    bottom: 9.5rem !important;
    right: 1.25rem;
  }
}
