/* Call-to-action layer (tools/cta_fix.py): desktop top bar, end-of-page band on
   service/condition/blog pages, and a fixed Call / Schedule bar on phones.
   Colours match the site's existing hero button: beige #eddccc with charcoal
   #36454f text (7.3:1); white on charcoal (9.9:1). */

.cta-btn {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 5px;
  font-family: Poppins, Helvetica, Arial, Lucida, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  transition: background-color 200ms ease, color 200ms ease;
}
.cta-btn--beige { background: #eddccc; color: #36454f !important; }
.cta-btn--beige:hover { background: #fff; }
.cta-btn--outline { border: 2px solid #fff; color: #fff !important; padding: 11px 20px; }
.cta-btn--outline:hover { background: #fff; color: #36454f !important; }

/* ---- Desktop top bar (scrolls away; the Divi menu below keeps its own sticky behaviour) ---- */
.cta-topbar { background: #36454f; }
.cta-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 98%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 6px 0;
}
.cta-topbar__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff !important;
  font-family: Poppins, Helvetica, Arial, Lucida, sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-decoration: none;
}
.cta-topbar__phone:hover { text-decoration: underline; }
.cta-topbar__btn { padding: 7px 18px; font-size: 14px; }
.cta-icon { width: 16px; height: 16px; flex: none; fill: currentColor; }
@media (max-width: 980px) { .cta-topbar { display: none; } }

/* ---- End-of-page band ---- */
.cta-band { background: #36454f; color: #fff; padding: 64px 0; text-align: center; }
.cta-band__inner { width: 80%; max-width: 900px; margin: 0 auto; }
.cta-band__title {
  margin: 0 0 12px;
  padding: 0;
  color: #fff !important;
  font-family: Poppins, Helvetica, Arial, Lucida, sans-serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.cta-band__text {
  margin: 0 0 28px;
  padding: 0;
  color: #fff;
  font-family: Roboto, Helvetica, Arial, Lucida, sans-serif;
  font-size: 19px;
  line-height: 1.6;
}
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
@media (max-width: 767px) {
  .cta-band { padding: 48px 0; }
  .cta-band__inner { width: 88%; }
  .cta-band__title { font-size: 26px; }
  .cta-band__text { font-size: 17px; }
  .cta-band__actions .cta-btn { width: 100%; }
}

/* ---- Phone bar ---- */
.cta-mobilebar { display: none; }
@media (max-width: 980px) {
  .cta-mobilebar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99990;
    display: grid;
    grid-template-columns: 2fr 3fr;
    background: #36454f;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.18);
  }
  .cta-mobilebar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 56px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
    font-family: Poppins, Helvetica, Arial, Lucida, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
  }
  .cta-mobilebar__call { color: #fff !important; }
  .cta-mobilebar__book { background: #eddccc; color: #36454f !important; }
  body.has-cta-mobilebar { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
}
@media print { .cta-topbar, .cta-mobilebar, .cta-band { display: none !important; } }

.cta-nowrap { white-space: nowrap; }

/* ---- Hero Schedule button on pages whose hero had none ---- */
.cta-hero { margin: 24px 0 0; }
.cta-hero--center { text-align: center; }
.cta-hero--left { text-align: left; }
.cta-btn--dark { background: #36454f; color: #fff !important; }
.cta-btn--dark:hover { background: #1f2a31; }
@media (max-width: 767px) { .cta-hero { text-align: center; } }
