/* Orlando Healthy Smiles — floating call / WhatsApp buttons.
   Bottom-left, above everything, out of the way on print. */

.ohs-fc {
  position: fixed;
  left: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 9997;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.ohs-fc__btn {
  position: relative;
  pointer-events: auto;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: #fff !important;
  text-decoration: none !important;
  box-shadow: 0 10px 26px rgba(10, 44, 42, .22), 0 2px 6px rgba(10, 44, 42, .16);
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
  -webkit-tap-highlight-color: transparent;
}

.ohs-fc__btn:hover,
.ohs-fc__btn:focus-visible {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 14px 32px rgba(10, 44, 42, .28), 0 3px 8px rgba(10, 44, 42, .18);
}

.ohs-fc__btn:focus-visible {
  outline: 3px solid #0a2c2a;
  outline-offset: 3px;
}

.ohs-fc__btn--call {
  background: #0e7c6e;
}

.ohs-fc__btn--call::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(14, 124, 110, .55);
  animation: ohs-fc-ring 2.8s ease-out infinite;
}

.ohs-fc__btn--wa {
  background: #25d366;
}

.ohs-fc__icon svg {
  width: 26px;
  height: 26px;
  display: block;
}

.ohs-fc__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Label appears to the right of the circle on hover / keyboard focus. */
.ohs-fc__tip {
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translate(-6px, -50%);
  padding: 8px 14px;
  border-radius: 999px;
  background: #0a2c2a;
  color: #f7faf8;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  box-shadow: 0 8px 20px rgba(10, 44, 42, .25);
}

.ohs-fc__btn:hover .ohs-fc__tip,
.ohs-fc__btn:focus-visible .ohs-fc__tip {
  opacity: 1;
  visibility: visible;
  transform: translate(0, -50%);
}

@keyframes ohs-fc-ring {
  0% { transform: scale(1); opacity: .7; }
  70% { transform: scale(1.45); opacity: 0; }
  100% { transform: scale(1.45); opacity: 0; }
}

@media (max-width: 600px) {
  .ohs-fc {
    left: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    gap: 10px;
  }
  .ohs-fc__btn {
    width: 50px;
    height: 50px;
  }
  .ohs-fc__icon svg {
    width: 24px;
    height: 24px;
  }
  /* No hover on touch: skip the tooltip and the pulse ring. */
  .ohs-fc__tip {
    display: none;
  }
  .ohs-fc__btn--call::after {
    animation: none;
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ohs-fc__btn,
  .ohs-fc__tip {
    transition: none;
  }
  .ohs-fc__btn--call::after {
    animation: none;
  }
}

@media print {
  .ohs-fc {
    display: none !important;
  }
}
