/* Global footer: uses the existing site design tokens and the supplied checkmark art. */
.ms-footer {
  --msf-bg: var(--orange-pale, #fff3e9);
  --msf-card: var(--paper, #fffdf9);
  --msf-ink: var(--ink, #252422);
  --msf-text: #45423e;
  --msf-muted: var(--muted, #66645f);
  --msf-accent: var(--orange, #ed741f);
  --msf-accent-deep: var(--orange-dark, #bd5714);
  position: relative;
  overflow: hidden;
  padding: 62px 24px 0;
  background-color: var(--msf-bg);
  background-image: radial-gradient(rgba(189, 87, 20, .09) .7px, transparent .7px);
  background-size: 12px 12px;
  color: var(--msf-text);
  font-family: var(--body, "DM Sans", sans-serif);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.ms-footer,
.ms-footer *,
.ms-footer *::before,
.ms-footer *::after {
  box-sizing: border-box;
}

.ms-footer__inner {
  position: relative;
  width: min(100%, 1200px);
  margin-inline: auto;
}

.ms-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 410px);
  align-items: center;
  gap: clamp(30px, 5vw, 64px);
}

.ms-footer__intro {
  min-width: 0;
}

.ms-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--msf-ink);
  text-decoration: none;
}

.ms-footer__brand img {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.ms-footer__brand-copy {
  display: grid;
  gap: 3px;
}

.ms-footer__brand-name {
  color: var(--msf-ink);
  font-family: var(--heading, "Plus Jakarta Sans", sans-serif);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.035em;
}

.ms-footer__brand-role {
  color: var(--msf-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.ms-footer__brand--nav {
  gap: 12px;
  margin: 0 0 10px;
}

.ms-footer__brand--nav img {
  width: 52px;
  height: 52px;
}

.ms-footer__brand--nav .ms-footer__brand-name {
  font-size: 20px;
}

.ms-footer__brand--nav .ms-footer__brand-role {
  font-size: 13px;
}

.ms-footer__heading {
  max-width: 660px;
  margin: 0;
  color: var(--msf-ink);
  font-family: var(--heading, "Plus Jakarta Sans", sans-serif);
  font-size: clamp(2.25rem, 4.4vw, 3.35rem);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.ms-footer__heading em {
  color: var(--msf-accent-deep);
  font-style: normal;
}

.ms-footer__lead {
  max-width: 580px;
  margin: 17px 0 0;
  color: var(--msf-text);
  font-size: 1.04rem;
  line-height: 1.65;
}

.ms-footer__cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 54px;
  margin-top: 25px;
  padding: 15px 25px;
  border: 1px solid var(--msf-accent);
  border-radius: 8px;
  background: var(--msf-accent);
  color: #fff;
  font-family: var(--body, "DM Sans", sans-serif);
  font-size: .98rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.ms-footer__cta svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.ms-footer__cta:hover {
  transform: translateY(-2px);
  border-color: var(--msf-accent-deep);
  background: var(--msf-accent-deep);
  color: #fff;
}

.ms-footer__cta:focus-visible,
.ms-footer a:focus-visible {
  outline: 3px solid var(--msf-ink);
  outline-offset: 3px;
}

.ms-footer__art-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.ms-footer__art {
  display: block;
  width: min(100%, 410px);
  height: auto;
  object-fit: contain;
}

.ms-footer__links {
  margin-top: 28px;
  padding: 24px clamp(24px, 3vw, 36px) 38px;
  border: 1px solid rgba(189, 87, 20, .12);
  border-radius: 22px;
  background-color: var(--msf-card);
  background-image:
    linear-gradient(rgba(237, 116, 31, .075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237, 116, 31, .075) 1px, transparent 1px);
  background-size: 19px 19px;
  box-shadow: 0 18px 42px -34px rgba(66, 42, 22, .55);
}

.ms-footer__links-inner {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  justify-content: space-between;
  gap: clamp(24px, 3vw, 42px);
  width: min(100%, 920px);
  margin-inline: auto;
}

.ms-footer__column {
  min-width: 0;
}

.ms-footer__title {
  margin: 0;
  color: var(--msf-ink);
  font-family: var(--heading, "Plus Jakarta Sans", sans-serif);
  font-size: .98rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -.025em;
}

.ms-footer__list {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.ms-footer__list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
  margin: 0;
  padding: 0;
  color: var(--msf-text);
  font-size: .91rem;
  line-height: 1.42;
  list-style: none;
}

.ms-footer__list li::before {
  display: block;
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  background: url("../images/intro-services/check-mark.png") center / contain no-repeat;
  content: "";
}

.ms-footer__list a,
.ms-footer__list li > span {
  color: var(--msf-text);
  text-decoration: none;
  transition: color .16s ease;
}

.ms-footer__list a:hover {
  color: var(--msf-accent-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ms-footer__list a.ms-footer__external {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.ms-footer__external > span[aria-hidden="true"] {
  color: var(--msf-accent-deep);
  font-weight: 700;
}

.ms-footer__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.ms-footer__list--details {
  gap: 11px;
}

.ms-footer__list--details li {
  font-size: .82rem;
  line-height: 1.45;
}

.ms-footer__list--details strong {
  color: var(--msf-ink);
  font-weight: 700;
}

.ms-footer__bottom {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 68px;
  margin-top: 28px;
  padding: 17px 0 20px;
  border-top: 1px dashed rgba(102, 100, 95, .35);
  color: var(--msf-muted);
  font-size: .82rem;
}

.ms-footer__copyright {
  margin: 0;
}

.ms-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-left: auto;
}

.ms-footer__legal a {
  color: var(--msf-text);
  text-decoration: none;
}

.ms-footer__legal a:hover {
  color: var(--msf-accent-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ms-footer__top-link {
  flex: 0 0 auto;
  color: var(--msf-ink);
  font-family: var(--heading, "Plus Jakarta Sans", sans-serif);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.ms-footer__top-link span {
  margin-left: 4px;
  color: var(--msf-accent-deep);
}

.ms-footer__top-link:hover {
  color: var(--msf-accent-deep);
}

@media (max-width: 1020px) {
  .ms-footer__top {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 340px);
    gap: 34px;
  }

  .ms-footer__links-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    gap: 30px 26px;
    width: 100%;
  }

}

@media (max-width: 720px) {
  .ms-footer {
    padding: 45px 18px 0;
  }

  .ms-footer__top {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .ms-footer__art-wrap {
    order: -1;
  }

  .ms-footer__art {
    width: min(100%, 315px);
  }

  .ms-footer__heading {
    margin-top: 20px;
    font-size: clamp(2rem, 8vw, 2.6rem);
  }

  .ms-footer__lead {
    font-size: 1rem;
  }

  .ms-footer__links {
    margin-top: 34px;
    padding: 28px 23px;
    border-radius: 18px;
  }

  .ms-footer__links-inner {
    gap: 26px 20px;
  }

  .ms-footer__bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 18px;
    padding-bottom: 22px;
  }

  .ms-footer__legal {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
  }

  .ms-footer__copyright {
    grid-column: 1;
    grid-row: 2;
  }

  .ms-footer__top-link {
    grid-column: 2;
    grid-row: 1 / 3;
  }
}

@media (max-width: 420px) {
  .ms-footer__links {
    padding: 26px 21px;
  }

  .ms-footer__links-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 25px;
  }

  .ms-footer__bottom {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .ms-footer__legal,
  .ms-footer__copyright,
  .ms-footer__top-link {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ms-footer__cta,
  .ms-footer__list a {
    transition: none;
  }
}


/* Full horizontal brand lockup supplied for the footer. */
.ms-footer__brand--nav {
  flex-wrap: wrap;
  gap: 9px 16px;
}

.ms-footer__brand--nav .ms-footer__brand-logo {
  display: block;
  width: min(100%, 255px);
  height: auto;
  max-height: none;
  object-fit: contain;
}

.ms-footer__brand--nav .ms-footer__brand-copy {
  display: block;
}

.ms-footer__brand--nav .ms-footer__brand-role {
  display: block;
  font-size: 13px;
}

@media (max-width: 720px) {
  .ms-footer__brand--nav {
    align-items: flex-start;
    flex-direction: column;
  }
}
