/* Sticky CTA + Exit-Intent Popup — shared CSS (§8.86)
   Loaded by root + subwebs alongside sticky-cta.js */
/* ============================================================
   Sticky CTA bar — appears after scrolling past hero
   §8.86 — calm, senior, non-aggressive. One button, no popup.
   ============================================================ */
.eq-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  color: #fff;
  padding: .65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  font-size: .9rem;
  font-weight: 600;
  box-shadow: 0 -2px 12px rgba(0,0,0,.12);
  transform: translateY(100%);
  transition: transform .35s ease;
  pointer-events: none;
  box-sizing: border-box;
  overflow: hidden;
}
.eq-sticky-cta.visible {
  transform: translateY(0);
  pointer-events: auto;
}
.eq-sticky-cta-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.eq-sticky-cta-btn {
  background: #fed136;
  color: #1a1a2e;
  font-weight: 700;
  padding: .5rem 1.3rem;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  transition: background .2s, transform .15s;
  flex-shrink: 0;
}
.eq-sticky-cta-btn:hover {
  background: #fcd34d;
  color: #1a1a2e;
  text-decoration: none;
  transform: scale(1.03);
}
.eq-sticky-cta-close {
  background: none;
  border: none;
  color: rgba(255,255,255,.6);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 .3rem;
  margin-left: .5rem;
  line-height: 1;
  flex-shrink: 0;
}
.eq-sticky-cta-close:hover { color: #fff; }

/* Offset Zendesk launcher to vertically center with sticky CTA bar */
body.eq-sticky-visible #launcher {
  bottom: -5px !important;
}
@media (max-width: 767px) {
  body.eq-sticky-visible #launcher {
    bottom: 52px !important;
  }
}

/* Mobile: thinner, full-width, safe-area aware */
@media (max-width: 767px) {
  .eq-sticky-cta {
    padding: .5rem .8rem;
    padding-bottom: calc(.5rem + env(safe-area-inset-bottom, 0px));
    font-size: .82rem;
    gap: .5rem;
    flex-wrap: nowrap;
  }
  .eq-sticky-cta-text {
    font-size: .72rem;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.2;
    flex: 1 1 auto;
    min-width: 0;
  }
  .eq-sticky-cta-btn {
    padding: .4rem .9rem;
    font-size: .72rem;
    flex-shrink: 0;
  }
  .eq-sticky-cta-close {
    flex-shrink: 0;
    margin-left: 0;
  }
}

/* ============================================================
   Exit-intent popup — desktop mouseleave + mobile 60% scroll
   §8.86 — once per session, calm, senior tone. No "WAIT!" energy.
   ============================================================ */
.eq-exit-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1060;
  background: rgba(0,0,0,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
  padding: 1rem;
}
.eq-exit-overlay.visible {
  opacity: 1;
  visibility: visible;
}
.eq-exit-modal {
  background: #fff;
  border-radius: 16px;
  max-width: 460px;
  width: 100%;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  position: relative;
  transform: translateY(20px);
  transition: transform .3s ease;
}
.eq-exit-overlay.visible .eq-exit-modal {
  transform: translateY(0);
}
.eq-exit-modal .eq-exit-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.2rem;
  background: rgba(13,148,136,.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #0d9488;
}
.eq-exit-modal h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: .6rem;
  font-family: 'Sora', sans-serif;
}
.eq-exit-modal p {
  font-size: .95rem;
  color: #495057;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.eq-exit-modal .eq-exit-btn {
  display: inline-block;
  background: #0d9488;
  color: #fff;
  font-weight: 700;
  padding: .8rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  transition: background .2s, transform .15s;
}
.eq-exit-modal .eq-exit-btn:hover {
  background: #0f766e;
  color: #fff;
  text-decoration: none;
  transform: scale(1.02);
}
.eq-exit-modal .eq-exit-skip {
  display: block;
  margin: 1rem auto 0;
  font-size: .82rem;
  color: #adb5bd;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
}
.eq-exit-modal .eq-exit-skip:hover {
  color: #6c757d;
  text-decoration: none;
}
@media (max-width: 480px) {
  .eq-exit-modal { padding: 2rem 1.5rem; }
  .eq-exit-modal h3 { font-size: 1.2rem; }
}
