/* Consistent, accessible phone and WhatsApp actions across the static site. */
a[href^="https://wa.me/"],
a[href^="tel:"] {
  box-sizing: border-box;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  padding-block: 0.65rem;
  font-weight: 700 !important;
  line-height: 1.35;
  text-decoration: none !important;
  text-underline-offset: 0.2em;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

a[href^="https://wa.me/"] {
  color: #fff !important;
  background-color: #12824f !important;
  border-color: #12824f !important;
  box-shadow: 0 5px 14px rgba(9, 91, 56, 0.2);
}

a[href^="tel:"] {
  color: #fff !important;
  background-color: #124d59 !important;
  border-color: #124d59 !important;
  box-shadow: 0 5px 14px rgba(8, 58, 69, 0.2);
}

/* Add a lightweight vector icon only when the link has no icon of its own. */
a[href^="https://wa.me/"]:not(:has(svg)):not(:has(i))::before,
a[href^="tel:"]:not(:has(svg)):not(:has(i))::before {
  content: "";
  display: inline-block;
  flex: 0 0 1.15rem;
  width: 1.15rem;
  height: 1.15rem;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

a[href^="https://wa.me/"]:not(:has(svg)):not(:has(i))::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.5 11.5a8.4 8.4 0 0 1-12.4 7.4L3 20l1.2-4.8A8.5 8.5 0 1 1 20.5 11.5Z'/%3E%3Cpath d='M8.5 8.2c.3-.6.6-.6 1-.6h.5c.2 0 .4.1.5.4l.8 1.8c.1.3.1.5-.1.7l-.6.7c-.2.2-.2.4 0 .7.5.8 1.2 1.5 2.1 2 .3.2.5.2.7 0l.8-.9c.2-.2.4-.2.7-.1l1.7.8c.3.1.4.3.4.5 0 .4-.2 1.2-.7 1.6-.5.5-1.2.7-2 .5-1.1-.2-2.6-.9-4.1-2.3-1.2-1.1-2-2.5-2.3-3.5-.3-1 .1-1.8.6-2.3Z'/%3E%3C/svg%3E");
}

a[href^="tel:"]:not(:has(svg)):not(:has(i))::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.4 19.4 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 2 .7 2.9a2 2 0 0 1-.5 2.1L8 9.9a16 16 0 0 0 6 6l1.2-1.3a2 2 0 0 1 2.1-.5c.9.3 1.9.6 2.9.7a2 2 0 0 1 1.8 2.1Z'/%3E%3C/svg%3E");
}

a[href^="https://wa.me"]:focus-visible,
a[href^="tel:"]:focus-visible {
  outline: 3px solid #087c80 !important;
  outline-offset: 4px !important;
  box-shadow: 0 0 0 5px rgba(8, 124, 128, 0.18) !important;
}

@media (hover: hover) {
  a[href^="https://wa.me/"]:hover,
  a[href^="tel:"]:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 9px 20px rgba(5, 47, 53, 0.24);
  }
}

a[href^="https://wa.me/"]:active,
a[href^="tel:"]:active {
  transform: translateY(1px) scale(0.99);
}

@media (max-width: 520px) {
  a[href^="https://wa.me/"],
  a[href^="tel:"] {
    min-height: 48px !important;
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  a[href^="https://wa.me/"],
  a[href^="tel:"] {
    transition: none !important;
  }
  a[href^="https://wa.me/"]:hover,
  a[href^="tel:"]:hover,
  a[href^="https://wa.me/"]:active,
  a[href^="tel:"]:active {
    transform: none !important;
  }
}
