/*! Floating contact buttons (WhatsApp + Call) */

.float-contact {
  position: fixed;
  left: 1.875rem;
  bottom: 1.875rem;
  z-index: 9990;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.float-contact__btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 0.3125rem 0.9375rem rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.float-contact__btn svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
  position: relative;
  z-index: 2;
}

.float-contact__btn:hover,
.float-contact__btn:focus-visible {
  color: #fff;
  transform: translateY(-0.1875rem) scale(1.05);
  box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.28);
}

.float-contact__btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.float-contact__btn--wa { background-color: #25d366; }
.float-contact__btn--wa:hover { background-color: #1da851; }

.float-contact__btn--call { background-color: #fd5523; }
.float-contact__btn--call:hover { background-color: #d8410f; }

/* pulse ring */
.float-contact__btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-color: inherit;
  opacity: 0.55;
  z-index: 1;
  animation: floatContactPulse 2.4s ease-out infinite;
}

.float-contact__btn--call::before { animation-delay: 1.2s; }

@keyframes floatContactPulse {
  0%   { transform: scale(1);    opacity: 0.55; }
  70%  { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* label on hover, desktop only */
.float-contact__label {
  position: absolute;
  left: calc(100% + 0.75rem);
  top: 50%;
  transform: translateY(-50%) translateX(-0.375rem);
  white-space: nowrap;
  background-color: #020e28;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1;
  padding: 0.5rem 0.75rem;
  border-radius: 0.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 3;
}

.float-contact__label::before {
  content: "";
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 0.3125rem solid transparent;
  border-right-color: #020e28;
}

.float-contact__btn:hover .float-contact__label,
.float-contact__btn:focus-visible .float-contact__label {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

@media (max-width: 767.98px) {
  .float-contact {
    left: 1rem;
    bottom: 1rem;
    gap: 0.75rem;
  }
  .float-contact__btn {
    width: 2.875rem;
    height: 2.875rem;
  }
  .float-contact__btn svg {
    width: 1.3125rem;
    height: 1.3125rem;
  }
  .float-contact__label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .float-contact__btn,
  .float-contact__btn::before,
  .float-contact__label {
    animation: none !important;
    transition: none !important;
  }
}
