/* JA Call Float
   Quiet fixed phone CTA with section-aware contrast. */

.ja-call-float {
  --ja-call-bg: rgba(245, 240, 234, 0.94);
  --ja-call-text: #0b0b0c;
  --ja-call-border: rgba(11, 11, 12, 0.14);
  --ja-call-hover: #c7a977;

  position: fixed;
  left: clamp(16px, 3vw, 30px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 820;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px 0 13px;
  border: 1px solid var(--ja-call-border);
  border-radius: 999px;
  background: var(--ja-call-bg);
  color: var(--ja-call-text) !important;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 0.24s ease,
    transform 0.24s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.ja-call-float.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.ja-call-float.ja-call-float--dark {
  --ja-call-bg: rgba(11, 11, 12, 0.92);
  --ja-call-text: #f5f0ea;
  --ja-call-border: rgba(245, 240, 234, 0.18);
}

.ja-call-float.ja-call-float--light {
  --ja-call-bg: rgba(245, 240, 234, 0.94);
  --ja-call-text: #0b0b0c;
  --ja-call-border: rgba(11, 11, 12, 0.14);
}

.ja-call-float:hover,
.ja-call-float:focus-visible {
  border-color: color-mix(in srgb, var(--ja-call-hover) 70%, var(--ja-call-border));
  color: var(--ja-call-hover) !important;
}

.ja-call-float__icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.ja-call-float__icon svg {
  display: block;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.ja-call-float__text {
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .ja-call-float {
    transition: none;
  }
}

@media (max-width: 767px) {
  .ja-call-float {
    left: 14px;
    bottom: 14px;
    min-height: 44px;
    padding-inline: 13px;
  }

  .ja-call-float__text {
    font-size: 13px;
  }
}

@media (max-width: 420px) {
  .ja-call-float {
    width: 44px;
    padding: 0;
  }

  .ja-call-float__text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}
