/* Custom site styles */

/* Visually hidden text for accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Sticky WhatsApp button */
.floating-whatsapp {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #25D366; /* WhatsApp green */
  color: #ffffff; /* phone glyph color via currentColor */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  transition: background-color 0.2s ease, transform 0.1s ease;
}

/* Bubble tail to resemble the official mark */
.floating-whatsapp::after {
  content: "";
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 14px;
  height: 14px;
  background-color: #25D366;
  transform: rotate(45deg);
  border-bottom-right-radius: 2px;
}

.floating-whatsapp:hover {
  background-color: #1ebe57;
}

.floating-whatsapp:hover::after {
  background-color: #1ebe57;
}

.floating-whatsapp:active {
  transform: translateY(1px);
}

.floating-whatsapp:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.floating-whatsapp svg {
  width: 28px;
  height: 28px;
  display: block;
  fill: currentColor;
}

@media (max-width: 479px) {
  .floating-whatsapp {
    right: 12px;
    bottom: 12px;
    width: 52px;
    height: 52px;
  }
  .floating-whatsapp::after {
    right: 5px;
    bottom: 5px;
    width: 12px;
    height: 12px;
  }
  .floating-whatsapp svg {
    width: 26px;
    height: 26px;
  }
}
