/* The slerp.com footer. Master copy: slerp-website/pages/_system/footer/.
   The footer sits outside .slerp, so the tokens it uses are copied here from tokens.css.
   Its background is the theme's darker blue, so the slant shows against a page's final CTA. */
.slerp-footer {
  --sf-bg: #141319;              /* theme --color-blue, the old footer's background */
  --sf-brand: #d092dd;           /* Bubble */
  --sf-brand-dark: #b86ec8;
  --sf-brand-glow: rgba(208, 146, 221, .45);
  --sf-text: rgba(255, 255, 255, .72);
  --sf-muted: rgba(255, 255, 255, .5);
  --sf-rule: rgba(255, 255, 255, .1);
  --sf-wrap: 1280px;
  --sf-gutter: 24px;
  --sf-slant: clamp(28px, 3.5vw, 60px);
  --sf-font: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;

  position: relative; overflow: hidden;
  background: var(--sf-bg); color: #fff;
  font-family: var(--sf-font); font-weight: 400; text-align: left;
  padding-top: 88px;
}

/* Under a new page's final CTA the footer overlaps it and slants, like the sections above. The case studies call theirs
   .cs-final-cta (their classes were renamed off the shared ones, 27/10/2026), so both count. */
body:has(.final-cta, .cs-final-cta) .slerp-footer {
  margin-top: calc(var(--sf-slant) * -1);
  padding-top: calc(var(--sf-slant) + 72px);
  clip-path: polygon(0 var(--sf-slant), 100% 0, 100% 100%, 0 100%);
  z-index: 2;
}

/* Undo the theme (style.css, Bootstrap) inside the footer. */
.slerp-footer p, .slerp-footer ul, .slerp-footer li { margin: 0; padding: 0; list-style: none; }
.slerp-footer a, .slerp-footer a:hover, .slerp-footer a:visited { text-decoration: none; box-shadow: none; }
.slerp-footer img { border: 0; border-radius: 0; box-shadow: none; max-width: 100%; }

.slerp-footer .sf-inner { max-width: var(--sf-wrap); margin: 0 auto; padding: 0 var(--sf-gutter); }

/* Top: the logo, one line, and the two actions. */
.slerp-footer .sf-top {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px 64px;
  padding-bottom: 56px; border-bottom: 1px solid var(--sf-rule);
}
.slerp-footer .sf-logo { display: inline-block; line-height: 0; }
.slerp-footer .sf-logo img { width: 126px; height: auto; }
.slerp-footer .sf-line {
  margin-top: 28px; max-width: 22ch;
  font-size: clamp(26px, 2.6vw, 36px); font-weight: 800; letter-spacing: -.03em; line-height: 1.12;
  color: #fff; text-wrap: balance;
}
.slerp-footer .sf-accent { color: var(--sf-brand); }
.slerp-footer .sf-actions { display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0; }

/* Buttons: the design system's primary and dark ghost buttons. */
.slerp-footer .sf-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 30px; border-radius: 16px; border: 2px solid transparent;
  font-family: var(--sf-font); font-size: 15px; font-weight: 700; line-height: 1.2;
  text-transform: none; white-space: nowrap; cursor: pointer;
  transition: all .18s ease;
}
.slerp-footer .sf-btn--primary { background: var(--sf-brand); color: #fff; box-shadow: 0 10px 28px var(--sf-brand-glow); }
.slerp-footer .sf-btn--primary:hover { background: var(--sf-brand-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 16px 36px rgba(208, 146, 221, .6); }
.slerp-footer .sf-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .22); }
.slerp-footer .sf-btn--ghost:hover { color: #fff; border-color: #fff; }

/* Link columns. The markup is the ACF field website_footer: a div per column, with a
   <p> heading, <a class="footer-link"> links separated by <br>, Bootstrap column classes
   (three columns are d-none on phones) and the social icons inside the first column. */
.slerp-footer .sf-links {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 32px;
  padding: 56px 0; border-bottom: 1px solid var(--sf-rule);
}
.slerp-footer .sf-links > div { display: block !important; width: auto; max-width: none; padding: 0; margin: 0; flex: none; }
.slerp-footer .sf-links > div > div, .slerp-footer .sf-links br { display: none !important; }
.slerp-footer .sf-links p {
  margin-bottom: 18px;
  font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; line-height: 1.4;
  color: var(--sf-brand);
}
.slerp-footer .sf-links a {
  display: block; width: fit-content; padding: 5px 0;
  font-size: 15px; font-weight: 400; line-height: 1.5; color: var(--sf-text);
  transition: color .18s ease;
}
.slerp-footer .sf-links a::first-letter { text-transform: uppercase; }
.slerp-footer .sf-links a:hover { color: #fff; }

/* Bottom: address and trademark, policies, social. */
.slerp-footer .sf-bottom {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 32px;
  padding: 28px 0; font-size: 13px; line-height: 1.6; color: var(--sf-muted);
}
.slerp-footer .sf-legal { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.slerp-footer .sf-policies { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.slerp-footer .sf-policies a { color: var(--sf-muted); transition: color .18s ease; }
.slerp-footer .sf-policies a:hover { color: #fff; }
.slerp-footer .sf-social { display: flex; gap: 8px; grid-column: 2; grid-row: 1 / span 2; }
.slerp-footer .sf-social a {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid var(--sf-rule); color: var(--sf-text);
  transition: color .18s ease, border-color .18s ease;
}
.slerp-footer .sf-social a:hover { color: var(--sf-brand); border-color: var(--sf-brand); }

/* The wordmark, full width and cut off at the bottom edge. */
.slerp-footer .sf-mark { max-width: var(--sf-wrap); margin: 24px auto 0; padding: 0 var(--sf-gutter); overflow: hidden; line-height: 0; }
.slerp-footer .sf-mark img { display: block; width: 100%; height: auto; margin-bottom: -11%; opacity: .06; }

.slerp-footer a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* Landing pages: no columns, so the top rule is the only divider. */
.slerp-footer--simple .sf-top { align-items: flex-start; }

@media (max-width: 1000px) {
  .slerp-footer .sf-top { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 860px) {
  .slerp-footer .sf-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slerp-footer .sf-bottom { grid-template-columns: 1fr; gap: 12px; }
  .slerp-footer .sf-social { grid-column: 1; grid-row: auto; margin-top: 8px; }
}
/* Phones: kept to about one screen. Each column's links run on across the line instead of one per row. */
@media (max-width: 600px) {
  .slerp-footer { padding-top: 44px; }
  body:has(.final-cta, .cs-final-cta) .slerp-footer { padding-top: calc(var(--sf-slant) + 36px); }
  .slerp-footer .sf-top { gap: 20px; padding-bottom: 28px; }
  .slerp-footer .sf-logo img { width: 104px; }
  .slerp-footer .sf-line { margin-top: 16px; font-size: 22px; }
  .slerp-footer .sf-actions { width: 100%; gap: 10px; }
  .slerp-footer .sf-btn { flex: 1 1 0; padding: 12px; font-size: 14px; }
  .slerp-footer .sf-links { grid-template-columns: 1fr; gap: 22px; padding: 28px 0; }
  .slerp-footer .sf-links > div { display: flex !important; flex-wrap: wrap; gap: 2px 16px; }
  .slerp-footer .sf-links p { flex-basis: 100%; margin-bottom: 6px; }
  .slerp-footer .sf-links a { padding: 3px 0; font-size: 14px; }
  .slerp-footer .sf-bottom { gap: 10px; padding: 20px 0; font-size: 12px; }
  .slerp-footer .sf-legal, .slerp-footer .sf-policies { gap: 2px 14px; }
  .slerp-footer .sf-social { margin-top: 4px; }
  .slerp-footer .sf-social a { width: 36px; height: 36px; }
  .slerp-footer .sf-mark { margin-top: 8px; }
}
