.menu-item a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.site-footer {
  --airnav-footer-link-hover: #66c8c2;
  position: relative;
  overflow: hidden;
  color: var(--airnav-color-canvas);
  background: var(--airnav-color-forest);
}

.site-footer__glow {
  position: absolute;
  z-index: 0;
  width: 1400px;
  height: 1400px;
  pointer-events: none;
  background: center / 100% 100% no-repeat;
}

.site-footer__glow--teal {
  top: -700px;
  left: -700px;
  background-image: url("../icons/footer-glow-teal.svg");
}

.site-footer__glow--green {
  right: -700px;
  bottom: -700px;
  background-image: url("../icons/footer-glow-green.svg");
}

.site-footer__inner {
  position: relative;
  z-index: 1;
}

.site-footer__main {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: 257px auto;
  column-gap: 20px;
  min-height: 524px;
  padding-top: 48px;
  border-bottom: 1px solid rgba(0, 164, 154, 0.4);
}

.site-footer__brand {
  display: inline-flex;
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  width: 216.075px;
  height: 32px;
}

.site-footer__brand img {
  width: 216.075px;
  height: 32px;
}

.footer-navigation--data,
.footer-navigation--other-solutions {
  grid-column: 2;
}

.footer-navigation--operations,
.footer-navigation--hardware {
  grid-column: 3;
}

.footer-navigation--company {
  grid-column: 4;
}

.footer-navigation--data,
.footer-navigation--operations,
.footer-navigation--company {
  grid-row: 1;
}

.footer-navigation--other-solutions,
.footer-navigation--hardware {
  grid-row: 2;
}

.footer-navigation__title {
  padding: 0;
  margin: 0;
  color: var(--airnav-color-teal);
  font-family: var(--airnav-font-body);
  font-size: 18px;
  font-weight: 700;
  line-height: 25px;
}

.site-footer .menu--footer,
.site-footer .menu--social,
.site-footer .menu--legal {
  padding: 0;
  margin: 0;
  list-style: none;
}

.menu--footer {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

.site-footer .menu--footer {
  margin: 24px 0 0;
}

.menu--footer a {
  color: var(--airnav-color-canvas);
  font-family: var(--airnav-font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  text-decoration: none;
}

.site-footer__utility {
  padding-top: 47px;
  padding-bottom: 48px;
}

.site-footer__social-row,
.site-footer__legal-row {
  display: flex;
  align-items: center;
}

.site-footer__social-row {
  min-height: 25px;
}

.site-footer__copyright,
.menu--legal a {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--airnav-font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 19px;
}

.site-footer__handle {
  margin: 0;
  color: #ffffff;
  font-family: var(--airnav-font-body);
  font-size: 18px;
  font-weight: 700;
  line-height: 25px;
}

.footer-social {
  margin-left: auto;
}

.menu--social {
  display: flex;
  align-items: center;
  gap: 32px;
}

.menu--social a {
  display: block;
  width: 20px;
  height: 20px;
  background: center / contain no-repeat;
}

.menu-item--social-x a {
  background-image: url("../icons/social-x.svg");
}

.menu-item--social-linkedin a {
  background-image: url("../icons/social-linkedin.svg");
}

.menu-item--social-bluesky a {
  width: 23px;
  background-image: url("../icons/social-bluesky.svg");
}

.site-footer__legal-row {
  justify-content: space-between;
  gap: 24px;
  line-height: 19px;
  margin-top: 24px;
}

.menu--legal {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.site-footer__copyright {
  text-align: right;
  white-space: nowrap;
}

.menu--legal a,
.menu--social a {
  text-decoration: none;
}

/* Footer controls use color-only feedback to avoid reflow. */
.menu--footer a,
.menu--legal a,
.site-footer__brand {
  transition: color 160ms ease, text-shadow 160ms ease;
}

.menu--footer a:hover,
.menu--footer a:focus-visible,
.menu--legal a:hover,
.menu--legal a:focus-visible,
.site-footer__brand:hover,
.site-footer__brand:focus-visible {
  color: var(--airnav-footer-link-hover);
  text-shadow: 0 0 8px rgba(102, 200, 194, 0.32);
}

.menu--social a {
  transition: opacity 160ms ease;
}

.menu--social a:hover,
.menu--social a:focus-visible {
  opacity: 0.72;
}

.menu--footer a:focus-visible,
.menu--legal a:focus-visible,
.site-footer__brand:focus-visible,
.menu--social a:focus-visible {
  outline: 3px solid var(--airnav-color-teal);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .menu--footer a,
  .menu--legal a,
  .site-footer__brand,
  .menu--social a {
    transition: none;
  }
}

@media (max-width: 1024px) {
  .site-footer__main {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: auto;
    gap: 40px 20px;
    min-height: 0;
    padding-bottom: 48px;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .footer-navigation--data,
  .footer-navigation--other-solutions,
  .footer-navigation--operations,
  .footer-navigation--hardware,
  .footer-navigation--company {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 700px) {
  .site-footer__main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 20px;
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }

  .site-footer__utility {
    padding: 40px 0;
  }

  .site-footer__social-row,
  .site-footer__legal-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer__social-row {
    gap: 20px;
  }

  .footer-social {
    margin-left: 0;
  }

  .site-footer__legal-row {
    gap: 20px;
  }

  .menu--legal {
    gap: 16px 24px;
  }

  .site-footer__copyright {
    text-align: left;
    white-space: normal;
  }
}
