/* ============================================================
   Closing "By appointment only. Schedule your appointment" panel,
   shared by the homepage and every Services page (markup: ctaPanel in
   tools/lib/site.mjs), plus the "Coming soon" service buttons.
   Uses the tokens from /assets/site.css (and the homepage's inline copy).
   ============================================================ */

/* One column: heading, then text, then the buttons on their own row.
   The text never shares a row with the buttons, so it can't be squeezed. */
.cta-panel{
  display:flex; flex-direction:column; align-items:flex-start; gap:24px;
  margin-block:clamp(32px,5vw,56px) 32px; padding:clamp(28px,5vw,56px);
  border-radius:var(--r); background:var(--navy); color:var(--on-dark-muted);
}
.cta-band .cta-panel{ margin:0; }
.cta-panel-text{ width:100%; min-width:0; max-width:60ch; }
.cta-panel h2{ color:#fff; font-size:clamp(1.5rem,2.6vw,2rem); line-height:1.25; margin:0 0 10px; }
.cta-panel p{ margin:0; max-width:60ch; }
.cta-panel-text a{ color:#fff; text-underline-offset:3px; white-space:nowrap; }

/* Buttons wrap onto new lines instead of overlapping; none is wider than the panel. */
.cta-panel-actions{ display:flex; flex-wrap:wrap; gap:12px; align-items:center; width:100%; min-width:0; }
.cta-panel-actions .btn{ flex:0 0 auto; white-space:nowrap; max-width:100%; margin:0; position:static; }
@media (max-width:640px){
  .cta-panel-actions{ flex-direction:column; align-items:stretch; }
  .cta-panel-actions .btn{ width:100%; }
}

/* ---------- Light outline button on dark backgrounds ---------- */
.btn-outline-light{ --btn-bg:transparent; --btn-fg:#fff; border-color:rgba(255,255,255,.4); }
.btn-outline-light:hover{ --btn-bg:rgba(255,255,255,.08); border-color:#fff; }

/* ---------- A service whose link isn't filled in yet ----------
   Looks like a button but is plain text (never a link). The "Coming soon" pill
   may drop below the label on very narrow screens instead of widening the button. */
.btn-soon{
  flex-wrap:wrap; row-gap:6px; justify-content:center;
  --btn-bg:var(--gray-50); --btn-fg:var(--charcoal-dark); border:1px dashed var(--border-strong); cursor:default; font-weight:500;
}
.btn-soon .icon{ opacity:.6; }
.soon-tag{
  display:inline-block; padding:2px 9px; border-radius:999px; background:var(--surface); border:1px solid var(--border-strong);
  font-size:.72rem; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:var(--charcoal-dark); white-space:nowrap;
}
.on-dark .btn-soon{ --btn-bg:rgba(255,255,255,.06); --btn-fg:var(--on-dark-muted); border-color:rgba(255,255,255,.3); }
.on-dark .btn-soon .soon-tag{ background:transparent; border-color:rgba(255,255,255,.35); color:var(--on-dark-muted); }
