/**
 * Floating WhatsApp CTA. Organic blob shape, expands on hover to reveal label.
 * Visibility on scroll direction and entrance animation are handled in JS (Phase 2).
 */

.whatsapp-float {
  position: fixed;
  right: var(--space-sm);
  bottom: var(--space-sm);
  z-index: 9980;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  padding: 0.9rem;
  background: var(--wa-green);
  color: var(--color-text-inverse);
  border-radius: var(--radius-organic);
  box-shadow: 0 8px 24px rgba(42, 40, 36, 0.18);
  transition: border-radius var(--duration-base) var(--ease-organic),
              padding var(--duration-base) var(--ease-organic),
              transform var(--duration-fast) var(--ease-organic);
}

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

.whatsapp-float__label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: var(--fs-mono-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  transition: max-width var(--duration-base) var(--ease-organic);
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  border-radius: 999px;
  padding-inline: 1.25rem;
}

.whatsapp-float:hover .whatsapp-float__label,
.whatsapp-float:focus-visible .whatsapp-float__label {
  max-width: 12rem;
}

.whatsapp-float.is-hidden {
  transform: translateY(120%);
}
