/* Sticky mobile call/WhatsApp bar — mobile-only, appears after hero, hides near footer. */

.sticky-cta {
  position: fixed;
  inset-inline: 0;
  inset-block-end: 0;
  z-index: var(--z-sticky-cta);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--color-border);
  border-top: 1px solid var(--color-border);
  transform: translateY(100%);
  transition: transform var(--duration-base) var(--ease-premium);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.sticky-cta.is-visible {
  transform: translateY(0);
}

.sticky-cta__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 56px;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}

.sticky-cta__link--call {
  background: var(--color-red);
  color: var(--color-black);
}

.sticky-cta__link--whatsapp {
  background: var(--color-accent);
  color: var(--color-black);
}

.sticky-cta__link svg {
  width: 1.15rem;
  height: 1.15rem;
}

@media (min-width: 900px) {
  .sticky-cta {
    display: none;
  }
}

/* Two third-party plugins ("Click to Chat for WhatsApp" -> #ht-ctc-chat,
   "Call Now Button" -> #callnowbutton) render their own fixed bottom-corner
   buttons offering the exact same call/WhatsApp actions as .sticky-cta above,
   at a far higher z-index (99999999 / 2147483647 vs. this bar's --z-sticky-cta),
   so on mobile they visually duplicate and overlap this bar. Not theme markup —
   can't be removed at the source, only hidden. !important because both plugins
   toggle their own inline `style` (entry animation / position) via JS, which
   would otherwise still win over a plain display:none here. Scoped to the same
   mobile breakpoint .sticky-cta itself uses, so desktop (where these plugin
   buttons don't collide with anything) is untouched. */
@media (max-width: 899.98px) {
  #ht-ctc-chat,
  #callnowbutton {
    display: none !important;
  }
}
