/* ──────────────────────────────────────────────────────────────
   Sticky mobile CTA — a full-width buy/join bar pinned to the
   bottom of the screen on phones. Paired with /sticky-cta.js.
   Breakpoint: 768px (keep in sync with BREAKPOINT in sticky-cta.js)
   ────────────────────────────────────────────────────────────── */

.scta-bar { display: none; }

@media (max-width: 768px) {
  .scta-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1300;
    display: block;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(13, 27, 46, 0.94);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(232, 201, 126, 0.18);
    box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.38);
    transform: translateY(0);
    transition: transform 0.28s ease, opacity 0.2s ease;
  }

  /* Slides away while the page's own CTA is on screen, and while the
     nav drawer is open. */
  .scta-bar[data-hidden='true'],
  html.mnav-open .scta-bar {
    transform: translateY(110%);
    opacity: 0;
    pointer-events: none;
  }

  .scta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 15px 18px;
    border: none;
    border-radius: 6px;
    background: var(--accent, #e8c97e);
    color: #12263f;
    font-family: inherit;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: opacity 0.2s ease;
  }
  .scta-btn:active { opacity: 0.85; }
  .scta-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
  .scta-btn[disabled] { opacity: 0.7; cursor: default; }
  .scta-btn svg { width: 18px; height: 18px; fill: currentColor; flex: 0 0 auto; }

  /* Keep the footer clear of the bar. */
  body { padding-bottom: var(--scta-height, 0px); }
}

@media (prefers-reduced-motion: reduce) {
  .scta-bar { transition-duration: 0.01ms !important; }
}
