/* ============ Floating WhatsApp - Vitch Energia ============
   Premium pill: recognizable WhatsApp brand glyph (official simple-icons
   path, inline, no external asset) on WhatsApp green, Vitch-aligned
   (ink shadow, lime focus ring, Manrope label). */

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;

  display: inline-flex;
  align-items: center;
  gap: 12px;

  padding: 8px 26px 8px 8px;
  border-radius: 999px;

  background: linear-gradient(180deg, #2ee06f 0%, #25d366 45%, #1bb45b 100%);
  color: #fff;
  text-decoration: none;

  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .55),
    0 14px 30px rgba(10, 60, 32, .30),
    inset 0 1px 0 rgba(255, 255, 255, .32);

  transition: transform .22s ease, box-shadow .22s ease;
  -webkit-tap-highlight-color: transparent;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  transform: translateY(-3px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .72),
    0 18px 38px rgba(10, 60, 32, .38),
    inset 0 1px 0 rgba(255, 255, 255, .42);
}

.whatsapp-float:focus-visible {
  outline: 3px solid #c7fa23;
  outline-offset: 3px;
}

.whatsapp-float:active {
  transform: translateY(-1px) scale(.98);
}

.whatsapp-glyph {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .28);
}

.whatsapp-glyph svg {
  display: block;
  width: 28px;
  height: 28px;
  fill: #fff;
}

.whatsapp-text {
  font: 700 .9rem/1 Manrope, "DM Sans", sans-serif;
  letter-spacing: -.01em;
  color: #fff;
  white-space: nowrap;
}

/* soft attention ripple around the glyph */
.whatsapp-glyph::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .55);
  animation: whatsapp-pulse 3s ease-out infinite;
  pointer-events: none;
}

@keyframes whatsapp-pulse {
  0%   { transform: scale(1);   opacity: .7; }
  65%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

@media (max-width: 640px) {
  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    padding: 0;
    width: 58px;
    height: 58px;
    border-radius: 50%;
  }

  .whatsapp-glyph {
    width: 58px;
    height: 58px;
    border: 0;
    background: transparent;
  }

  .whatsapp-glyph svg { width: 32px; height: 32px; }

  .whatsapp-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float,
  .whatsapp-glyph { transition: none; animation: none; }
  .whatsapp-glyph::before { display: none; }
}
