/* svc-cta-top.css — top CTA on service pages, mobile only.
   Desktop keeps the sidebar card (visible at ~464px, no duplicate needed). */

.svc-cta-top { display: none; }

@media (max-width: 782px) {
  .svc-cta-top {
    display: block;
    background: #0c0c0c;
    border-radius: 10px;
    padding: 16px;
    margin: 18px 0 4px;
  }
  .svc-cta-top-t {
    color: #f5f2ec;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 4px;
  }
  .svc-cta-top-d {
    color: rgba(245, 242, 236, .6);
    font-size: 12.5px;
    line-height: 1.45;
    margin-bottom: 12px;
  }
  .svc-cta-top-row { display: flex; gap: 8px; align-items: stretch; }

  .svc-cta-top-btn {
    flex: 1 1 auto;
    min-width: 0;
    height: 46px;
    padding: 0 12px;
    background: #E31E24;
    border: 0;
    border-radius: 10px;
    color: #fff;                 /* the sidebar button uses rgba(...,.7) — washed out */
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background .15s;
  }
  .svc-cta-top-btn:hover { background: #c4161c; }
  .svc-cta-top-btn:active { background: #ab1218; }

  .svc-cta-top-tel {
    flex: 0 0 52px;
    height: 46px;
    background: #FF4F00;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 19px;
    line-height: 1;
    transition: background .15s;
  }
  .svc-cta-top-tel:hover { background: #e04600; }

  .svc-cta-top-btn:focus-visible,
  .svc-cta-top-tel:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .svc-cta-top-btn, .svc-cta-top-tel { transition: none; }
}

/* ── Chat bubble keep-out ────────────────────────────────────────────────────
   #dp3ai-btn is fixed bottom-right. On post-processing the 3-line H1 pushes the
   CTA down into the bubble's lane, and the bubble covered 30% of the phone
   button — taps there opened the chat instead of dialling. Fade it out while
   the CTA is on screen (JS in parts/svc-cta-top.php toggles the body class).
   NB: raising the bubble's bottom offset makes this WORSE — it moves further
   into the CTA band, not away from it. */
@media (max-width: 782px) {
  body.dp3-cta-onscreen #dp3ai-btn {
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
  }
}

/* ── Desktop CTA for the post-processing landing ─────────────────────────────
   That template has no .svc-sidebar, so above 782px it had no CTA at all while
   still loading the quote-modal bundle. Show the block there (only there). */
@media (min-width: 783px) {
  body.page-template-page-post-processing-php .svc-cta-top {
    display: block;
    max-width: 460px;
    margin: 22px 0 4px;
  }
  body.page-template-page-post-processing-php .svc-cta-top-t { color: #f5f2ec; font-size: 16px; font-weight: 700; margin-bottom: 5px; }
  body.page-template-page-post-processing-php .svc-cta-top-d { color: rgba(245,242,236,.6); font-size: 13px; line-height: 1.5; margin-bottom: 14px; }
  body.page-template-page-post-processing-php .svc-cta-top-row { display: flex; gap: 10px; }
  body.page-template-page-post-processing-php .svc-cta-top-btn {
    flex: 1 1 auto; height: 48px; padding: 0 18px; background: #E31E24; border: 0;
    border-radius: 10px; color: #fff; font-family: inherit; font-size: 15px;
    font-weight: 600; cursor: pointer;
  }
  body.page-template-page-post-processing-php .svc-cta-top-tel {
    flex: 0 0 56px; height: 48px; background: #FF4F00; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; font-size: 20px;
  }
}
