.site-footer {
  position: relative;
  height: 800px;
  overflow: hidden;
  background: var(--color-navy-500);
  --footer-frame-x: calc((100vw - 1442px) / 2);
}

/*
  Desktop footer uses the original 1442px Figma frame positions,
  but the frame itself is centered inside the viewport.
  On 1366px screens, this shifts all Figma x-values by about -38px,
  matching the visual spacing seen in the Figma prototype.
*/

.site-footer__top {
  position: absolute;
  top: 148px;
  left: calc(var(--footer-frame-x) + 82px);
  width: 1310px;
  height: 48px;
}

.site-footer__logo {
  position: absolute;
  top: 8px;
  left: 0;
  display: block;
}

.site-footer__logo img {
  width: 229px;
  height: 34px;
}

.footer-nav {
  position: absolute;
  top: 0;
  left: 299px;
  display: flex;
  width: 1011px;
  height: 48px;
  padding-top: 3px;
  justify-content: center;
  align-items: center;
  gap: 72px;
}

.footer-nav a {
  color: var(--color-cyan-500);
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 400;
  line-height: 140%;
  white-space: nowrap;
}

.site-footer__divider {
  position: absolute;
  top: 219px;
  left: calc(var(--footer-frame-x) + 82px);
  width: 1310px;
  height: 1px;
  margin: 0;
  background: var(--color-navy-100);
}

.site-footer__content {
  position: absolute;
  top: 292px;
  left: 0;
  right: 0;
  height: 234px;
  margin: 0;
}

.footer-block {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
}

.footer-block h2 {
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 400;
  line-height: 140%;
  text-transform: capitalize;
}

.footer-block p,
.footer-block a,
.footer-block address,
.footer-block li {
  color: var(--color-navy-50);
  font-family: var(--font-body);
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%;
}

.footer-locations {
  left: calc(var(--footer-frame-x) + 95px);
  top: 0;
  width: 290px;
}

.footer-locations address {
  display: flex;
  width: 290px;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.footer-locations span {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #B3B3B3;
}

.footer-locations img {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

.footer-hours {
  left: calc(var(--footer-frame-x) + 507px);
  top: 0;
  width: 228px;
}

.footer-call {
  left: calc(var(--footer-frame-x) + 857px);
  top: 0;
  width: 168px;
}

.footer-call ul {
  display: flex;
  width: 168px;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.footer-call li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-call img {
  width: 24px;
  height: 24px;
}

.footer-contact {
  left: calc(var(--footer-frame-x) + 1147px);
  top: 0;
  width: 231px;
}

.footer-email {
  white-space: nowrap;
  color: var(--color-navy-50);
  font-size: 20px;
  line-height: 140%;
  text-transform: none;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 32px;
}

.footer-socials a,
.footer-socials img {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
}

.site-footer__copyright {
  position: absolute;
  top: 602px;
  left: calc(var(--footer-frame-x) + 476px);
  transform: none;
  width: 490px;
  color: var(--color-navy-300);
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 400;
  line-height: 140%;
  text-transform: capitalize;
  text-align: center;
}

.site-footer__wordmark-marquee {
  position: absolute;
  left: 0;
  top: 686px;
  width: 100%;
  height: 114px;
  overflow: hidden;
  pointer-events: none;
}

.site-footer__wordmark-track {
  display: flex;
  width: max-content;
  height: 114px;
  will-change: transform;
  animation: footerWordmarkMarquee 10s linear infinite;
}

.site-footer__wordmark {
  display: block;
  width: 1442px;
  height: 114px;
  max-width: none;
  flex: 0 0 1442px;
}

@keyframes footerWordmarkMarquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-1442px, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer__wordmark-track {
    animation: none;
  }
}

/* Safety adjustment for uncommon desktop widths smaller than 1280px. */
@media (max-width: 1279px) and (min-width: 768px) {
  .footer-nav {
    gap: 48px;
  }

  .footer-contact {
    left: calc(100vw - 280px);
  }

  .footer-socials {
    gap: 24px;
  }
}

@media (max-width: 767px) {
  .site-footer {
    height: 663px;
    padding: 47px 24px 0;
  }

  .site-footer__top {
    position: static;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    gap: 40px;
  }

  .site-footer__logo {
    position: static;
  }

  .site-footer__logo img {
    width: 229px;
    height: 34px;
  }

  .footer-nav {
    position: static;
    width: 362px;
    height: 57px;
    flex-wrap: wrap;
    gap: 14px 44px;
    padding-top: 0;
  }

  .footer-nav a {
    font-size: 12px;
    line-height: 140%;
  }

  .site-footer__divider {
    position: static;
    width: calc(100% + 48px);
    height: 1px;
    margin: 24px -24px 0;
    background: var(--color-navy-100);
  }

  .site-footer__content {
    position: static;
    width: 100%;
    height: auto;
    margin: 23px 0 0;
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .footer-block,
  .footer-locations,
  .footer-hours,
  .footer-call,
  .footer-contact {
    position: static;
    width: 100%;
    padding: 0 0 16px;
    gap: 8px;
    border-bottom: 1px solid rgba(168, 168, 177, 0.10);
  }

  .footer-block + .footer-block {
    padding-top: 16px;
  }

  .footer-block h2 {
    font-size: 12px;
    line-height: 140%;
  }

  .footer-block p,
  .footer-block a,
  .footer-block address,
  .footer-block li {
    font-size: 11px;
    line-height: 140%;
  }

  .footer-contact h2 {
    font-size: 20px;
    line-height: 140%;
  }

  .footer-contact .footer-email {
    font-size: 12px;
  }

  .footer-locations img {
    width: 11px;
    height: 16px;
  }

  .footer-call ul {
    width: 100%;
    flex-direction: row;
    gap: 4px;
  }

  .footer-call li {
    flex: 1;
    gap: 8px;
    align-items: center;
  }

  .footer-call img {
    width: 16px;
    height: 18.8551px;
  }

  .footer-socials {
    gap: 32px;
  }

  .site-footer__copyright {
    top: auto;
    left: 0;
    bottom: 31px;
    width: 100%;
    font-size: 10px;
    color: var(--color-navy-300);
  }

  .site-footer__wordmark-marquee {
    display: none;
  }
}
