/* ============================================================
   BARRA INFERIOR FIXA — Ligar + WhatsApp (apenas mobile)
   ============================================================ */

.mobile-actions {
  display: none;
}

@media (max-width: 720px) {
  .mobile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    z-index: 95;
    background: var(--black, #141416);
    box-shadow: 0 -8px 24px -8px rgba(0, 0, 0, 0.35);
    padding-bottom: env(safe-area-inset-bottom);
    /* Forçar nova camada de compositing — evita desaparecimento no Safari iOS */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
  }
}

.mobile-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 56px;
  padding: 0 12px;
  font-family: 'Inter Tight', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 120ms ease, background-color 200ms ease, color 200ms ease;
  -webkit-tap-highlight-color: transparent;
}

.mobile-action svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.mobile-action-call {
  background: var(--black, #141416);
  color: var(--cream, #faf7f2);
  border-right: 1px solid rgba(245, 240, 232, 0.12);
}

.mobile-action-call:hover,
.mobile-action-call:focus-visible {
  background: var(--dark, #26262a);
  color: var(--gold, #d4a437);
  outline: none;
}

.mobile-action-wa {
  background: var(--whatsapp, #25d366);
  color: #ffffff;
}

.mobile-action-wa:hover,
.mobile-action-wa:focus-visible {
  background: var(--whatsapp-dark, #128c7e);
  outline: none;
}

.mobile-action:active {
  transform: scale(0.97);
}

@media (max-width: 360px) {
  .mobile-action {
    font-size: 12.5px;
    gap: 0.4rem;
  }
  .mobile-action svg {
    width: 18px;
    height: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-action {
    transition: none;
  }
  .mobile-action:active {
    transform: none;
  }
}

/* Esconder a barra quando um modal/popup está aberto */
body.legal-modal-open .mobile-actions,
body:has(.popup30.is-open) .mobile-actions,
body:has(.legal-modal.is-open) .mobile-actions {
  display: none !important;
}
