/* ============================================================
   i-KEYZ — FLOATING CTA BUTTONS
   WhatsApp + Call — Present on every page
   ============================================================ */

.floating-ctas {
  position: fixed;
  bottom: clamp(var(--space-5), 4vw, var(--space-8));
  right: clamp(var(--space-4), 3vw, var(--space-6));
  z-index: var(--z-floating);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: flex-end;
}

/* ── Base Button ──────────────────────────────────────────── */
.floating-btn {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  border-radius: var(--radius-full);
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all var(--transition-luxury);
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

/* Ripple effect */
.floating-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255,255,255,0.15);
  transform: scale(0);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-btn:hover::before {
  transform: scale(1);
}

.floating-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ── Label (hidden by default, shows on hover) ────────────── */
.floating-btn__label {
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-width 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.3s ease;
  white-space: nowrap;
}

.floating-btn:hover .floating-btn__label {
  max-width: 120px;
  opacity: 1;
}

/* ── WhatsApp ─────────────────────────────────────────────── */
.floating-btn--whatsapp {
  background: #25D366;
  color: var(--color-white);
}

.floating-btn--whatsapp:hover {
  background: #20BD5C;
  transform: translateX(-4px) scale(1.03);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.45);
}

/* Pulse animation on load */
.floating-btn--whatsapp::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(37, 211, 102, 0.4);
  animation: float-pulse 3s ease-in-out 1s 3;
  pointer-events: none;
}

/* ── Call ─────────────────────────────────────────────────── */
.floating-btn--call {
  background: var(--color-teal);
  color: var(--color-white);
  border: 1px solid rgba(201, 169, 110, 0.3);
}

.floating-btn--call:hover {
  background: var(--color-teal-light);
  transform: translateX(-4px) scale(1.03);
  box-shadow: 0 8px 30px rgba(10, 92, 73, 0.45);
  border-color: var(--color-gold);
}

/* ── Tooltip labels (static on mobile) ───────────────────── */
@media (max-width: 768px) {
  .floating-btn {
    padding: var(--space-3);
    border-radius: var(--radius-full);
  }

  .floating-btn__label {
    display: none;
  }

  .floating-btn svg {
    width: 22px;
    height: 22px;
  }
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes float-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0;
  }
  50% {
    transform: scale(1.5);
    opacity: 0;
  }
  25% {
    opacity: 0.3;
  }
}

/* Entry animation */
.floating-ctas {
  animation: float-entry 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.5s both;
}

@keyframes float-entry {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
