/* ═══════════════════════════════════════════════════════════════════════════
   Component: Floating Action Buttons — WhatsApp + Back to Top
   ═══════════════════════════════════════════════════════════════════════════ */

.c-float-col {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  z-index: var(--z-sticky, 200);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s var(--motion-duration-base),
              opacity var(--motion-duration-base) var(--motion-ease-out);
}

.c-float-col.is-visible {
  visibility: visible;
  opacity: 1;
  transition: visibility 0s 0s,
              opacity var(--motion-duration-base) var(--motion-ease-out);
}

/* ── Shared button styles ──────────────────────────────────────────── */

.c-float-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  text-decoration: none;
  background-image: none;
  border-radius: 0;
  box-shadow: 0 4px 20px hsl(14 85% 52% / 0.3);
  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-float-enter 0.5s 0.6s var(--motion-ease-out) both;
  cursor: pointer;
}

.c-float-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px hsl(14 85% 52% / 0.4);
}

.c-float-btn:active {
  transform: scale(0.92);
}

.c-float-btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* ── WhatsApp ──────────────────────────────────────────────────────── */

.c-float-btn--whatsapp {
  background: var(--color-orange-500);
  color: var(--color-text-inverse);
  border: 1.5px solid var(--color-orange-500);
}

.c-float-btn--whatsapp:hover {
  background: var(--color-orange-600);
  border-color: var(--color-orange-600);
  color: var(--color-text-inverse);
}

/* ── Back to Top ───────────────────────────────────────────────────── */

.c-float-btn--top {
  background: var(--color-surface-light);
  color: var(--color-orange-500);
  border: 1.5px solid var(--color-border-default);
}

.c-float-btn--top:hover {
  border-color: var(--color-orange-500);
  color: var(--color-orange-600);
  background: var(--color-orange-50);
}

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

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

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

@media (max-width: 768px) {
  .c-float-col {
    bottom: var(--space-md);
    right: var(--space-md);
    gap: var(--space-xs);
  }

  .c-float-btn {
    width: 44px;
    height: 44px;
  }

  .c-float-btn svg {
    width: 20px;
    height: 20px;
  }
}

/* ── Reduced Motion ─────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .c-float-btn {
    animation: none;
    opacity: 1;
  }
}
