/*
 * Closing "Discovery call" band + footer seam for every page except the AI page
 * and the service landing pages (those carry their own, identical design).
 * Markup: sheba_render_closing_cta() in functions.php, printed by sheba-footer.php.
 */
body {
  --seam-sky-h: 132px;
}

.sheba-closing-cta {
  position: relative;
  width: 100%;
  background: #323A6E;
  background-image: linear-gradient(180deg, #323A6E 0%, #2c335f 100%);
  color: #fff;
  text-align: center;
  padding: clamp(64px, 8vw, 104px) 24px 176px;
  margin: 0;
  overflow: hidden;
  isolation: isolate;
  font-family: Montserrat, sans-serif;
}
.sheba-closing-cta::before {            /* brand dot-grid, same as the AI band */
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background-image: radial-gradient(rgba(109, 207, 246, .16) 1.2px, transparent 1.4px);
  background-size: 28px 28px;
  pointer-events: none;
}
.sheba-closing-cta__inner { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; }
body .sheba-closing-cta__kicker {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 14px;
  font-size: 19px !important; font-weight: 800 !important; letter-spacing: .16em; text-transform: uppercase;
  color: #6DCFF6 !important;
}
.sheba-closing-cta__kicker::before {
  content: ""; width: 0; height: 0;
  border-left: 10px solid #6DCFF6; border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}
body .sheba-closing-cta h2 {
  margin: 0 auto 18px;
  max-width: 14ch;
  font-family: Montserrat, sans-serif;
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.04; font-weight: 900; letter-spacing: -.01em; text-transform: uppercase;
  color: #fff;
}
body .sheba-closing-cta__lead {
  max-width: 560px; margin: 0 auto 30px;
  font-size: clamp(16px, 1.6vw, 18px); line-height: 1.6; font-weight: 400;
  color: rgba(255, 255, 255, .88) !important;
}
.sheba-closing-cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
body .sheba-closing-cta .scb-btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 52px; padding: 0 30px;
  border-radius: 999px;
  font-size: 14px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  transition: transform .2s cubic-bezier(.22, 1, .36, 1), box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
body .sheba-closing-cta .scb-btn--yellow { background: #FFD400; color: #231F20; border: 2px solid #FFD400; }
body .sheba-closing-cta .scb-btn--yellow:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(255, 212, 0, .35); }
body .sheba-closing-cta .scb-btn--ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .7); }
body .sheba-closing-cta .scb-btn--ghost::before {
  content: ""; width: 0; height: 0;
  border-left: 7px solid #FFD400; border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent;
}
body .sheba-closing-cta .scb-btn--ghost:hover { border-color: #6DCFF6; transform: translateY(-2px); }
body .sheba-closing-cta__contact { margin: 28px 0 0; font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .9) !important; }
body .sheba-closing-cta__contact a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
body .sheba-closing-cta__contact a:hover { color: #6DCFF6; }

@media (max-width: 639px) {
  body { --seam-sky-h: 88px; }
  .sheba-closing-cta { padding-bottom: 128px; }
  body .sheba-closing-cta .scb-btn { width: 100%; justify-content: center; }
  body .sheba-closing-cta__contact a { display: block; margin: 6px 0; }
  body .sheba-closing-cta__contact span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  body .sheba-closing-cta .scb-btn { transition: none; }
}

/* ---- Footer: skyline rises out of the band; generous gap above logo + titles ---- */
body div.bg-footer.font-footer.sheba-footer-main {
  position: relative !important;
  background-color: #B8E4F5 !important;
  margin-top: 0 !important;
  padding-top: 104px !important;
  overflow: visible !important;
  z-index: 2;
  isolation: isolate;
}
body div.bg-footer.font-footer.sheba-footer-main::before { content: none !important; display: none !important; }
body div.bg-footer.font-footer.sheba-footer-main img[src*="skyline"] {
  display: block !important;
  position: absolute !important;
  left: auto !important; right: 0 !important;
  top: calc(-1 * var(--seam-sky-h) + 2px) !important;
  width: min(520px, 55vw) !important;
  height: var(--seam-sky-h) !important;
  object-fit: contain !important; object-position: right bottom !important;
  margin: 0 !important; padding: 0 !important;
  z-index: 3; pointer-events: none;
}
/* Pages with no closing band: leave room above the footer for the skyline */
body div.bg-footer.font-footer.sheba-footer-main.sheba-footer-main--open {
  margin-top: calc(var(--seam-sky-h) + 32px) !important;
}
@media (max-width: 639px) {
  body div.bg-footer.font-footer.sheba-footer-main { padding-top: 72px !important; }
  body div.bg-footer.font-footer.sheba-footer-main img[src*="skyline"] { width: 100% !important; object-position: center bottom !important; }
}
