/* ═══════════════════════════════════════════════════════════════════════════
   Component: WhatsApp Float v2 — Sticky contact button
   ═══════════════════════════════════════════════════════════════════════════ */

.c-whatsapp-float {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  z-index: var(--z-sticky, 100);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.7em 1.3em;
  background: var(--color-orange-500);
  color: var(--color-text-inverse);
  font-family: var(--font-family-body);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  background-image: none;
  border-radius: 100px;
  box-shadow: 0 4px 20px hsl(14 85% 52% / 0.35);
  transition: transform var(--motion-duration-fast) var(--motion-ease-spring),
              box-shadow var(--motion-duration-fast) var(--motion-ease-out),
              background-color var(--motion-duration-fast) var(--motion-ease-out);
  animation: essig-whatsapp-enter 0.5s 0.6s var(--motion-ease-out) both;
}

.c-whatsapp-float:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 28px hsl(14 85% 52% / 0.45);
  background-color: var(--color-orange-600);
  color: var(--color-text-inverse);
}

.c-whatsapp-float:active {
  transform: scale(0.97);
}

.c-whatsapp-float svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ── Entrance animation ─────────────────────────────────────────────── */

@keyframes essig-whatsapp-enter {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ── Responsive ─────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .c-whatsapp-float {
    bottom: var(--space-lg);
    right: var(--space-lg);
    padding: 0.65em 1.1em;
    font-size: var(--font-size-xs);
  }

  .c-whatsapp-float svg {
    width: 18px;
    height: 18px;
  }
}

/* Hide when reduced motion preferred */
@media (prefers-reduced-motion: reduce) {
  .c-whatsapp-float {
    animation: none;
    opacity: 1;
  }
}
