/**
 * Site-wide project CTA — same layout as Services page bottom banner.
 * Requires global-footer.css (imports ws-badge.css for .ws-badge).
 */
:root {
  --site-cta-shell-width: var(--page-frame-width, min(calc(100% - 24px), 1520px));
}

.site-cta-sec {
  padding: 0 0 clamp(56px, 8vw, 96px);
}

/* Home (/) */
body.page-home .lt-footer {
  position: static !important;
  transform: none !important;
  left: auto !important;
  bottom: auto !important;
  width: min(97.5vw, 1520px) !important;
  margin: 24px auto 24px !important;
}

body.page-home > .sw > .site-cta-sec {
  margin-top: clamp(40px, 5vw, 56px);
  padding: 0 0 clamp(20px, 3vw, 32px);
}

/* About (/about/) */
body.page-about .lt-footer {
  position: static !important;
  transform: none !important;
  left: auto !important;
  bottom: auto !important;
  width: min(97.5vw, 1520px) !important;
  margin: 24px auto 24px !important;
}

body.page-about main.about-page > .sw > .site-cta-sec {
  margin-top: clamp(40px, 5vw, 56px);
  padding: 0 0 clamp(20px, 3vw, 32px);
}

/* Services listing (/services/) */
body.page-services .lt-footer {
  position: static !important;
  transform: none !important;
  left: auto !important;
  bottom: auto !important;
  width: min(97.5vw, 1520px) !important;
  margin: 24px auto 24px !important;
}

body.page-services main.sv-main {
  padding-bottom: 0;
}

body.page-services main.sv-main .sw > .site-cta-sec {
  margin-top: clamp(40px, 5vw, 56px);
  padding: 0 0 clamp(20px, 3vw, 32px);
}

/* Portfolio listing (/portfolio/) */
body.page-portfolio .lt-footer {
  position: static !important;
  transform: none !important;
  left: auto !important;
  bottom: auto !important;
  width: min(97.5vw, 1520px) !important;
  margin: 24px auto 24px !important;
}

body.page-portfolio main.pf-wrap {
  padding-bottom: 0;
}

body.page-portfolio main.pf-wrap .sw > .site-cta-sec {
  margin-top: clamp(40px, 5vw, 56px);
  padding: 0 0 clamp(20px, 3vw, 32px);
}

/* Case Studies + portfolio detail (body.page-case-study) */
body.page-case-study .lt-footer {
  position: static !important;
  transform: none !important;
  left: auto !important;
  bottom: auto !important;
  width: min(97.5vw, 1520px) !important;
  margin: 24px auto 24px !important;
}

body.page-case-study main.cs-wrap {
  padding-bottom: 0;
}

body.page-case-study main.cs-wrap > .site-cta-sec {
  margin-top: clamp(40px, 5vw, 56px);
  padding: 0 0 clamp(20px, 3vw, 32px);
}

/* Insights listing: CTA is last in main.ins-wrap — tight gap to footer */
body.page-insights main.ins-wrap > .site-cta-sec {
  margin-top: clamp(40px, 5vw, 56px);
  padding-bottom: clamp(20px, 3vw, 32px);
}

/* Insights article detail: CTA below .page-wrapper */
body.page-insights-details .site-cta-sec {
  margin-top: clamp(40px, 5vw, 56px);
  padding-bottom: clamp(20px, 3vw, 32px);
}

/* Opportunities — listing, detail, apply (+ post-submit success on same page) */
body.page-opportunities .lt-footer,
body.page-opportunity-detail .lt-footer,
body.page-opportunity-apply .lt-footer {
  position: static !important;
  transform: none !important;
  left: auto !important;
  bottom: auto !important;
  width: min(97.5vw, 1520px) !important;
  margin: 24px auto 24px !important;
}

body.page-opportunities main.op-page .sw > .site-cta-sec {
  margin-top: clamp(40px, 5vw, 56px);
  padding: 0 0 clamp(20px, 3vw, 32px);
}

body.page-opportunities .op-benefits-sec {
  padding-bottom: clamp(32px, 4vw, 48px);
}

body.page-opportunity-detail .sw > .site-cta-sec {
  margin-top: clamp(40px, 5vw, 56px);
  padding: 0 0 clamp(20px, 3vw, 32px);
}

body.page-opportunity-apply .apply-page > .sw > .site-cta-sec {
  margin-top: clamp(40px, 5vw, 56px);
  padding: 0 0 clamp(20px, 3vw, 32px);
}

body.page-opportunity-apply .apply-page > .sw .site-cta-shell {
  width: 100%;
  max-width: none;
}

body.page-opportunity-apply .apply-wrap {
  padding-bottom: clamp(20px, 3vw, 32px);
}

@media (max-width: 640px) {
  body.page-home .lt-footer,
  body.page-about .lt-footer,
  body.page-services .lt-footer,
  body.page-portfolio .lt-footer,
  body.page-case-study .lt-footer,
  body.page-opportunities .lt-footer,
  body.page-opportunity-detail .lt-footer,
  body.page-opportunity-apply .lt-footer {
    margin: 20px auto 20px !important;
  }
  body.page-home > .sw > .site-cta-sec,
  body.page-about main.about-page > .sw > .site-cta-sec,
  body.page-services main.sv-main .sw > .site-cta-sec,
  body.page-portfolio main.pf-wrap .sw > .site-cta-sec,
  body.page-case-study main.cs-wrap > .site-cta-sec,
  body.page-opportunities main.op-page .sw > .site-cta-sec,
  body.page-opportunity-detail .sw > .site-cta-sec,
  body.page-opportunity-apply .apply-page > .sw > .site-cta-sec {
    margin-top: 32px;
    padding-bottom: 20px;
  }
}

.site-cta-shell {
  width: 100%;
  max-width: var(--site-cta-shell-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}

.site-cta {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(66, 209, 179, 0.22);
  background:
    radial-gradient(ellipse 70% 80% at 0% 0%, rgba(66, 209, 179, 0.16) 0%, transparent 55%),
    radial-gradient(ellipse 60% 70% at 100% 100%, rgba(86, 212, 255, 0.12) 0%, transparent 50%),
    linear-gradient(155deg, rgba(6, 26, 46, 0.97) 0%, rgba(3, 14, 28, 0.99) 100%);
  box-shadow: 0 28px 64px rgba(1, 8, 18, 0.5);
}

.site-cta-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  top: -180px;
  left: -120px;
  border-radius: 50%;
  background: rgba(66, 209, 179, 0.22);
  filter: blur(80px);
  pointer-events: none;
}

.site-cta-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: clamp(32px, 5vw, 56px);
  align-items: start;
  padding: clamp(40px, 6vw, 64px) clamp(32px, 5vw, 56px);
}

.site-cta-copy {
  text-align: left;
}

.site-cta-pill.ws-badge {
  display: inline-flex;
  margin-bottom: 20px;
  font-size: 11px;
  letter-spacing: 2.2px;
  color: #42d1b3;
  border-color: rgba(66, 209, 179, 0.35);
  background: rgba(66, 209, 179, 0.1);
}

.site-cta-heading {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 800;
  letter-spacing: -0.4px;
  color: #f0fbf8;
  line-height: 1.12;
  margin: 0 0 16px;
}

.site-cta-gradient {
  background: linear-gradient(90deg, #42d1b3, #9cffd2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.site-cta-lead {
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.55);
  max-width: 520px;
  margin: 0 0 28px;
}

.site-cta-perks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.site-cta-perks li {
  position: relative;
  padding-left: 22px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.4;
}

.site-cta-perks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #42d1b3, #56d4ff);
  box-shadow: 0 0 8px rgba(66, 209, 179, 0.5);
}

.site-cta-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(30px, 3.5vw, 38px) clamp(24px, 3vw, 32px) clamp(22px, 2.8vw, 28px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-cta-panel-label {
  margin: 0;
  line-height: 1.35;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.site-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-sizing: border-box;
  min-height: 54px;
  font-family: Cabin, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 0.2s, box-shadow 0.25s, filter 0.2s, border-color 0.2s, background 0.2s, color 0.2s;
}

.site-cta-btn--primary {
  padding: 17px 28px;
  width: 100%;
  background: linear-gradient(135deg, #42d1b3, #2ab89a);
  color: #051422;
  border: none;
}

.site-cta-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(66, 209, 179, 0.35);
  filter: brightness(1.05);
  color: #051422;
  text-decoration: none;
}

.site-cta-btn--ghost {
  padding: 15px 28px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.site-cta-btn--ghost:hover {
  border-color: rgba(66, 209, 179, 0.5);
  background: rgba(66, 209, 179, 0.1);
  color: #bffaf0;
  transform: translateY(-2px);
  text-decoration: none;
}

.site-cta-link {
  display: block;
  margin-top: 0;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: rgba(66, 209, 179, 0.85);
  text-decoration: none;
  transition: color 0.2s;
}

.site-cta-link:hover {
  color: #9cffd2;
  text-decoration: none;
}

@media (max-width: 1024px) {
  .site-cta-layout {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
  .site-cta-copy {
    text-align: center;
  }
  .site-cta-lead {
    margin-left: auto;
    margin-right: auto;
  }
  .site-cta-perks {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .site-cta {
    border-radius: 18px;
  }
  .site-cta-layout {
    padding: 28px 20px;
    gap: 24px;
  }
  .site-cta-perks {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
}

/* Horizontal breathing room when banner is not inside .sw / .ins-wrap */
.site-cta-outer-pad {
  padding: 0 clamp(16px, 4vw, 24px) clamp(40px, 8vw, 72px);
  box-sizing: border-box;
}
