/* Shared footer + conversion banner. Loaded on every page. */

.site-footer {
  position: relative;
  overflow: hidden;
  padding: 0 0 1.25rem;
  background: oklch(96.8% .004 90);
  color: var(--ink);
  border-top: 0;
}

.site-footer:before {
  content: none;
}

.site-footer > .section-shell {
  padding-inline: var(--chrome-gutter, clamp(1.25rem, 5vw, 5.5rem));
}

.site-footer .footer-cta,
.site-footer .footer-content,
.site-footer .footer-bottom {
  position: relative;
  z-index: 1;
}

.site-footer .footer-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(2rem, 6vw, 6rem);
  padding: clamp(3.75rem, 7vw, 6.25rem) 0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.site-footer .footer-cta:before {
  content: "";
  position: absolute;
  z-index: 0;
  right: -6%;
  top: 42%;
  width: min(48vw, 560px);
  height: min(38vw, 420px);
  transform: translateY(-50%);
  background: radial-gradient(circle, rgb(47 111 176 / .24), rgb(47 111 176 / .08) 42%, transparent 70%);
  pointer-events: none;
}

.site-footer .footer-cta > * {
  position: relative;
  z-index: 1;
}

.site-footer .footer-kicker {
  margin: 0 0 .9rem;
  color: var(--ink) !important;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.site-footer .footer-cta h2 {
  max-width: min(100%, 34rem);
  margin: 0;
  color: var(--ink) !important;
  font: 400 clamp(2.45rem, 4.8vw, 4.7rem) / 1.14 var(--display);
  letter-spacing: -.05em;
}

.site-footer .footer-cta p {
  max-width: 46ch;
  margin: 1.05rem 0 0;
  color: var(--muted) !important;
  font-size: .95rem;
  line-height: 1.6;
}

.site-footer .footer-cta .button {
  flex: 0 0 auto;
  width: max-content;
  white-space: nowrap;
  border-radius: .4rem;
}

.site-footer .footer-content {
  display: grid;
  grid-template-columns: minmax(240px, 1.45fr) repeat(3, minmax(140px, .7fr));
  align-items: start;
  gap: clamp(2rem, 5vw, 5.5rem);
  padding: clamp(3rem, 6vw, 4.75rem) 0;
}

.site-footer .footer-content .footer-brand .brand,
.site-footer .footer-content .footer-brand .brand img {
  width: 340px;
  height: 72px;
  max-height: 72px;
  object-fit: cover;
  object-position: left center;
}

.site-footer .footer-content .footer-brand .brand {
  display: inline-flex;
  overflow: hidden;
  margin: 0 0 1.35rem;
}

.site-footer .footer-brand > p {
  max-width: 34ch;
  margin: 0;
  color: var(--muted) !important;
  font-size: .92rem;
  line-height: 1.55;
}

.site-footer .footer-contact {
  display: grid;
  gap: .45rem;
  margin-top: 1.5rem;
  padding-top: 0;
  font-size: .88rem;
}

.site-footer .footer-contact a {
  color: var(--muted);
  transform: none;
}

.site-footer .footer-contact a[href^="mailto"] {
  color: var(--ink) !important;
  font-weight: 700;
}

.site-footer .footer-contact a:hover {
  color: var(--ink);
  transform: none;
}

.site-footer .footer-links {
  display: contents;
}

.site-footer .footer-links div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .72rem;
  min-width: 0;
  color: var(--ink);
  font-size: .9rem;
}

.site-footer .footer-links small {
  margin: 0 0 .35rem;
  color: #8d7db8;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.site-footer .footer-links a {
  color: var(--ink);
  overflow-wrap: anywhere;
  transform: none;
  transition: color .18s ease;
}

.site-footer .footer-links a:hover {
  color: #6f5ea3;
  transform: none;
}

.site-footer .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  padding: 1.15rem 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted) !important;
  font-size: .75rem;
}

.site-footer .footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1.35rem;
}

.site-footer .footer-legal a {
  color: var(--ink);
  transform: none;
  transition: color .18s ease;
}

.site-footer .footer-legal a:hover {
  color: #6f5ea3;
  transform: none;
}

@media (max-width: 900px) {
  .site-footer .footer-cta {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1.75rem;
  }

  .site-footer .footer-cta:before {
    right: -18%;
    top: auto;
    bottom: -35%;
    transform: none;
  }

  .site-footer .footer-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .site-footer .footer-cta {
    padding-block: 3.25rem;
  }

  .site-footer .footer-cta h2 {
    max-width: min(100%, 34rem);
  }

  .site-footer .footer-cta .button {
    width: 100%;
  }

  .site-footer .footer-content {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    padding-block: 2.75rem;
  }

  .site-footer .footer-brand {
    grid-column: auto;
  }

  .site-footer .footer-content .footer-brand .brand,
  .site-footer .footer-content .footer-brand .brand img {
    width: 280px;
    height: 60px;
    max-height: 60px;
  }

  .site-footer .footer-bottom {
    align-items: start;
    flex-direction: column;
    min-height: 0;
    gap: 1rem;
    padding-top: 1.25rem;
  }
}

.scroll-top {
  position: fixed;
  right: max(1.15rem, env(safe-area-inset-right, 0px));
  bottom: max(1.15rem, env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--blue, #2f6fb0);
  border-radius: 50%;
  background: var(--blue, #2f6fb0);
  color: #fff;
  font: 700 1.05rem / 1 var(--sans);
  box-shadow: 0 10px 24px rgb(47 111 176 / .28);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease, background .18s ease;
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.scroll-top:hover,
.scroll-top:focus-visible {
  background: oklch(28% .012 260);
}

@media (prefers-reduced-motion: reduce) {
  .site-footer .footer-links a,
  .site-footer .footer-legal a,
  .scroll-top {
    transition: none;
  }

  .scroll-top {
    transform: none;
  }
}
