/* ---------------------------------------------------------------------------
 * footer.css — generated from the Figma footer (562:738).
 * Dark site photo behind a 79% black wash, then a solid blue legal bar.
 * ------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  color: var(--white, #ffffff);
  background-image: url("../img/footer-bg.webp");
  background-size: cover;
  background-position: center;
  isolation: isolate;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(var(--black-rgb, 0, 0, 0), 0.79);
  z-index: -1;
}

.site-footer__main {
  padding-top: 87px;
}

.site-footer__grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 73px;
  padding-block: 17px;
  margin-bottom: 46px;
}

.site-footer__brand {
  flex: none;
}

.site-footer__logo {
  width: min(100%, 639px); /* 639px */
  height: auto;
}

.site-footer__brand-name {
  margin: 0;
  font-family: var(--display, system-ui, sans-serif);
  font-size: 40px;
  font-weight: 700;
}

.site-footer__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 84px;
  width: min(100%, 1035px);
}

.site-footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: clamp(40px, 6.3vw, 121px); /* 121px */
}

.site-footer__menu {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__menu a {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-family: var(--sans, system-ui, sans-serif);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.333;
  color: var(--white, #ffffff);
  white-space: nowrap;
}

/* Same hidden-until-active blue arrow as the header nav. */
.site-footer__menu a::before {
  content: "";
  position: absolute;
  left: -19px;
  top: 50%;
  width: 13px;
  height: 10px;
  transform: translateY(-50%);
  background-color: var(--brand, #008AF7);
  -webkit-mask-image: url("../img/icons/icon-arrow-right.svg");
  mask-image: url("../img/icons/icon-arrow-right.svg");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.site-footer__menu .current-menu-item > a::before,
.site-footer__menu a:hover::before,
.site-footer__menu a:focus-visible::before {
  opacity: 1;
}

.site-footer__menu a:hover,
.site-footer__menu a:focus-visible {
  color: var(--brand, #008AF7);
}

.site-footer__social {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__social a {
  display: inline-flex;
  color: var(--brand, #008AF7);
}

.site-footer__social a:hover,
.site-footer__social a:focus-visible {
  color: var(--white, #ffffff);
}

.site-footer__social .cnm-icon {
  width: 26px;
  height: 26px;
}

.site-footer__cta {
  flex: none;
  padding: 17px 25px;
  white-space: nowrap;
}

/* Figma fits address / phone / email across the full 1035px column with 71px
   gutters; space-between keeps that rhythm when the substitute font runs wider. */
.site-footer__contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  flex-wrap: nowrap;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__contact li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-footer__contact .cnm-icon {
  flex: none;
  width: 24px;
  height: 24px;
  color: var(--brand, #008AF7);
}

.site-footer__contact a {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4444;
  color: var(--light, #E8E8E8);
}

.site-footer__contact a:hover,
.site-footer__contact a:focus-visible {
  color: var(--white, #ffffff);
}

.site-footer__bottom {
  background: var(--brand, #008AF7);
}

.site-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 13px;
}

.site-footer__mark {
  width: 32px;
  height: auto;
}

.site-footer__copy {
  margin: 0;
  font-size: 14px; /* 14px */
  line-height: 1.2857;
  color: var(--white, #ffffff);
}

@media (max-width: 1399px) {
  .site-footer__logo {
    width: min(100%, 416px);
  }

  .site-footer__contact {
    gap: clamp(24px, 3vw, 48px);
  }

  /* Between 992-1399px the desktop row (brand flex:none + fixed 1035px
     aside) is wider than the viewport and forced horizontal scroll on
     every page. Let the aside shrink and its rows wrap inside the band;
     >=1400 and <=991 keep their original layouts. */
  .site-footer__grid {
    gap: 48px;
  }

  .site-footer__aside {
    flex: 0 1 auto;
    width: auto;
    max-width: 1035px;
    min-width: 0;
  }

  .site-footer__top {
    flex-wrap: wrap;
  }

  .site-footer__contact {
    flex-wrap: wrap;
  }
}

@media (max-width: 991px) {
  .site-footer__grid {
    flex-direction: column;
    align-items: center;
    gap: 40px;
    text-align: center;
  }

  .site-footer__aside {
    align-items: center;
    gap: 40px;
    width: 100%;
  }

  .site-footer__top {
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
  }

  .site-footer__contact {
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .site-footer__main {
    padding-top: 48px;
  }

  .site-footer__top {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .site-footer__menu {
    align-items: center;
    gap: 16px;
  }

  .site-footer__contact {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    text-align: left;
  }
}

@media (max-width: 575px) {
  .site-footer__logo {
    width: min(80vw, 288px);
  }

  .site-footer__bottom-inner {
    justify-content: center;
    gap: 12px;
  }

  .site-footer__copy {
    font-size: 13px;
  }
}
