/* =============================================
   Floating CTA Button — Bottom-Right Phone
   ============================================= */

.wl-floating-cta {
  --floating-size: 56px;
  --floating-bg: var(--color-accent, #111);
  --floating-fg: var(--color-on-accent, #fff);
  --floating-gold: var(--color-gold, #b08b3c);
  --floating-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);

  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9998;

  display: flex;
  align-items: center;
  gap: 10px;
  min-width: var(--floating-size);
  min-height: var(--floating-size);
  padding: 0 16px;
  border-radius: var(--radius-pill, 9999px);
  background: var(--floating-bg);
  color: var(--floating-fg);
  text-decoration: none;
  box-shadow: var(--floating-shadow);
  transition:
    transform var(--motion-base, 240ms) var(--ease-standard, cubic-bezier(0.2, 0, 0, 1)),
    box-shadow var(--motion-base, 240ms) var(--ease-standard, cubic-bezier(0.2, 0, 0, 1)),
    background var(--motion-fast, 150ms) var(--ease-standard, cubic-bezier(0.2, 0, 0, 1));
  outline-offset: 3px;
}

.wl-floating-cta:hover,
.wl-floating-cta:focus-visible {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.35);
  background: var(--color-accent-hover, #2a2a2a);
}

.wl-floating-cta:active {
  transform: scale(0.96);
}

/* ---- Icon ---- */
.wl-floating-cta__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
}

.wl-floating-cta__icon img,
.wl-floating-cta__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* ---- Label ---- */
.wl-floating-cta__label {
  font-family: var(--font-body, 'Clash Display', sans-serif);
  font-size: var(--fs-sm, 15px);
  font-weight: var(--fw-medium, 500);
  white-space: nowrap;
  line-height: 1;
}

/* ---- Pulse ring (attention animation) ---- */
.wl-floating-cta__pulse {
  position: absolute;
  inset: -6px;
  border-radius: var(--radius-pill, 9999px);
  border: 2px solid var(--floating-gold);
  opacity: 0;
  pointer-events: none;
  animation: wl-floating-pulse 2.4s var(--ease-standard, cubic-bezier(0.2, 0, 0, 1)) infinite;
}

@keyframes wl-floating-pulse {
  0% {
    opacity: 0;
    transform: scale(0.88);
  }
  18% {
    opacity: 0.55;
  }
  45% {
    opacity: 0;
    transform: scale(1.18);
  }
  100% {
    opacity: 0;
    transform: scale(1.18);
  }
}

/* ---- Gentle icon bounce (subtle, every 6s) ---- */
.wl-floating-cta__icon {
  animation: wl-floating-icon-bounce 0.6s var(--ease-standard, cubic-bezier(0.2, 0, 0, 1)) 6s both;
  animation-iteration-count: 1;
}

/* Re-trigger on hover/focus of parent */
.wl-floating-cta:hover .wl-floating-cta__icon,
.wl-floating-cta:focus-visible .wl-floating-cta__icon {
  animation: wl-floating-icon-bounce 0.4s var(--ease-standard, cubic-bezier(0.2, 0, 0, 1)) both;
}

@keyframes wl-floating-icon-bounce {
  0%   { transform: translateY(0); }
  25%  { transform: translateY(-4px); }
  50%  { transform: translateY(0); }
  75%  { transform: translateY(-2px); }
  100% { transform: translateY(0); }
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .wl-floating-cta {
    bottom: 20px;
    right: 20px;
    --floating-size: 50px;
    padding: 0 14px;
  }
}

@media (max-width: 480px) {
  .wl-floating-cta {
    bottom: 16px;
    right: 16px;
    --floating-size: 46px;
    padding: 0 12px;
  }
}
