/* ============================================================
   GOLDEN STATE REHAB — Sticky Mobile Conversion Bar
   Loads site-wide. Keeps "Call Now" + "Verify Insurance" locked
   to the bottom of the viewport on mobile/tablet so users can
   always convert while scrolling (Kind audit CRO recommendation).
   Hidden on desktop, where the nav CTAs are always visible.
   ============================================================ */
.mobile-cta-bar { display: none; }

@media (max-width: 880px) {
  .mobile-cta-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 1000;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.97);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -6px 24px rgba(20, 14, 4, 0.12);
    transform: translateY(110%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  }
  @keyframes cta-bar-in { from { transform: translateY(100%); } to { transform: translateY(0); } }
  .mobile-cta-bar.is-visible { transform: translateY(0); }

  .mobile-cta-bar a {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 15px 10px; border-radius: 12px;
    font-family: inherit; font-weight: 700; font-size: 15px; line-height: 1;
    text-decoration: none;
    transition: transform 0.12s ease, filter 0.12s ease;
  }
  .mobile-cta-bar a:active { transform: scale(0.97); }
  .mobile-cta-bar a i { width: 18px; height: 18px; }

  .mobile-cta-call   { background: var(--near-black); color: var(--off-white); }
  .mobile-cta-verify { background: var(--gold);       color: var(--near-black); }

  /* Make room so the fixed bar never covers footer content */
  body { padding-bottom: 78px; }

  /* If a page already has its own sticky element, the bar still wins (z-index) */
}

@media (prefers-reduced-motion: reduce) {
  .mobile-cta-bar { transition: none; }
}
