.footer-cta,
.site-footer {
  font-family: "Montserrat", Arial, sans-serif;
}

.footer-cta {
  position: relative;
  overflow: hidden;
  background: #0b56cf;
  color: #fff;
}

.footer-cta::before,
.footer-cta::after {
  position: absolute;
  content: "";
  border-radius: 50%;
  pointer-events: none;
}

.footer-cta::before {
  top: -90px;
  right: 12%;
  width: 180px;
  height: 180px;
  background: #ffd21f;
}

.footer-cta::after {
  right: -25px;
  bottom: -60px;
  width: 130px;
  height: 130px;
  background: #29c8bd;
}

.footer-cta__inner,
.site-footer__shell {
  width: min(1480px, calc(100% - 80px));
  margin-inline: auto;
}

.footer-cta__inner {
  position: relative;
  z-index: 1;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.footer-cta__eyebrow {
  margin: 0 0 14px;
  color: #bdd4ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.footer-cta h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(44px, 5.6vw, 82px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.06em;
}

.footer-cta__button {
  position: relative;
  z-index: 2;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 0 30px;
  border-radius: 999px;
  background: #fff;
  color: #0b56cf;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.footer-cta__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 32, 112, .2);
}

.site-footer {
  min-height: 700px;
  padding: 76px 0 30px;
  border: 0;
  background: #eef5ff;
  color: #172f6b;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(360px, 1.18fr) minmax(360px, 1fr) minmax(230px, .62fr);
  grid-template-areas:
    "brand nav contact"
    "brand social social";
  gap: 54px clamp(54px, 7vw, 118px);
  align-items: start;
}

.site-footer__brand { grid-area: brand; }
.footer-nav { grid-area: nav; }
.footer-contact { grid-area: contact; }

.site-footer__logo {
  display: inline-block;
  width: min(300px, 100%);
}

.site-footer__logo img {
  display: block;
  width: 100%;
  height: auto;
}

.site-footer__message {
  max-width: 460px;
  margin: 32px 0 0;
  color: #172f6b;
  font-size: clamp(24px, 2.1vw, 34px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -.035em;
}

.footer-audiences {
  max-width: 560px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #aebbd2;
}

.footer-audiences a {
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 22px;
  color: #172f6b;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
}

.footer-audiences a + a {
  padding-left: 28px;
  border-left: 1px solid #c4cee0;
}

.footer-audiences svg {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  color: #ffd21f;
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-audiences img {
  display: block;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  object-fit: contain;
}

.footer-audiences a:hover { color: #0b56cf; }
.footer-audiences span { color: inherit; font-size: inherit; font-weight: inherit; }

.footer-nav h2,
.footer-contact h2 {
  margin: 38px 0 30px;
  color: #172f6b;
  font-size: 20px;
  font-weight: 800;
}

.footer-nav__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 24px 42px;
}

.footer-nav a,
.footer-contact a {
  color: #7180a3;
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  transition: color 160ms ease;
}

.footer-nav a:hover,
.footer-contact a:hover {
  color: #0b56cf;
}

.footer-contact__links {
  display: grid;
  gap: 22px;
}

.site-footer__social-row {
  grid-area: social;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  align-self: end;
  margin: 0;
  padding-bottom: 2px;
}

.site-footer__social-row > span {
  color: #172f6b;
  font-size: 17px;
  font-weight: 600;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-socials a {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #172f6b;
  color: #fff;
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}

.footer-socials a:hover {
  background: #0b56cf;
  transform: translateY(-2px);
}

.footer-socials img {
  display: block;
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.site-footer__bottom {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px clamp(48px, 7vw, 110px);
  margin-top: 34px;
  border-top: 1px solid #b9c5d9;
  color: #5f6f92;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}

.site-footer__bottom strong { color: #53658d; }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 42px; }
.site-footer__bottom > span,
.site-footer__legal a { color: inherit; font-size: inherit; font-weight: inherit; text-decoration: none; }
.site-footer__legal a:hover { color: #0b56cf; text-decoration: underline; text-underline-offset: 3px; }
.site-footer__legal a + a { padding-left: 42px; border-left: 1px solid #aebbd2; }

.footer-cta a:focus-visible,
.site-footer a:focus-visible {
  outline: 3px solid #ffd21f;
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .site-footer { min-height: 0; }
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "brand brand" "nav contact" "social social";
    gap: 42px;
  }
  .site-footer__message { max-width: 620px; }
  .footer-nav h2, .footer-contact h2 { margin-top: 0; }
  .site-footer__social-row { margin-top: 10px; }
}

@media (max-width: 640px) {
  .footer-cta__inner,
  .site-footer__shell { width: calc(100% - 40px); }
  .footer-cta__inner { min-height: 310px; flex-direction: column; align-items: flex-start; justify-content: center; }
  .footer-cta::before { right: -35px; width: 135px; height: 135px; }
  .footer-cta::after { width: 105px; height: 105px; }
  .footer-cta h2 { font-size: clamp(42px, 13vw, 62px); }
  .site-footer { padding-top: 52px; }
  .site-footer__grid {
    grid-template-columns: 1fr;
    grid-template-areas: "brand" "nav" "contact" "social";
    gap: 42px;
  }
  .site-footer__logo { width: 220px; }
  .site-footer__message { margin-top: 24px; font-size: 25px; }
  .footer-audiences { grid-template-columns: 1fr; }
  .footer-audiences a + a { padding: 18px 0 0; border-top: 1px solid #c4cee0; border-left: 0; }
  .footer-nav__links { grid-template-columns: 1fr 1fr; }
  .site-footer__social-row { justify-content: flex-start; align-items: flex-start; flex-direction: column; margin-top: 48px; }
  .footer-socials { flex-wrap: wrap; }
  .site-footer__bottom { justify-content: flex-start; padding: 24px 0; text-align: left; }
  .site-footer__legal { justify-content: flex-start; gap: 14px 24px; }
  .site-footer__legal a + a { padding-left: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .footer-cta__button,
  .footer-socials a { transition: none; }
}
