/* Shared brand layer used by every public page. */
body::after {
  content: "";
  position: fixed;
  z-index: 90;
  inset: 16vh 12vw;
  pointer-events: none;
  background: url("logo-mark.webp") center / min(48vw, 620px) auto no-repeat;
  opacity: 0.022;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.footer-social a {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: #aab3c5;
  font-size: 0;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.footer-social a::before,
.utility-footer-social a::before {
  content: "";
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}

.footer-social a::before {
  display: none;
}

.footer-social img {
  display: block;
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
  opacity: 0.75;
  transition: opacity 180ms ease;
}

.footer-social a:hover img,
.footer-social a:focus-visible img {
  opacity: 1;
}

.footer-social a[href*="facebook.com"]::before,
.utility-footer-social a[href*="facebook.com"]::before {
  -webkit-mask-image: url("facebook.svg");
  mask-image: url("facebook.svg");
}

.footer-social a[href*="instagram.com"]::before,
.utility-footer-social a[href*="instagram.com"]::before {
  -webkit-mask-image: url("instagram.svg");
  mask-image: url("instagram.svg");
}

.footer-social a[href*="linkedin.com"]::before,
.utility-footer-social a[href*="linkedin.com"]::before {
  -webkit-mask-image: url("linkedin.svg");
  mask-image: url("linkedin.svg");
}

.footer-social a:hover,
.footer-social a:focus-visible {
  border-color: #f56b1f;
  color: #f56b1f;
  transform: translateY(-2px);
}

.footer-credentials {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 44px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-credentials > p {
  max-width: 420px;
  margin: 0;
  color: #858fa3;
  font-size: 12px;
}

.credential-logos {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.credential-logos a,
.credential-logos span {
  display: inline-flex;
  align-items: center;
}

.credential-logos img {
  width: auto;
  max-width: 110px;
  height: 48px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.78;
  transition: filter 180ms ease, opacity 180ms ease;
}

img[src$="veteran-owned.png"],
img[src$="veteran-owned-96.png"],
img[src$="rcasf-logo.png"],
img[src$="rcasf-logo-96.png"] {
  aspect-ratio: 1 / 1;
}

img[src$="vob-badge.png"],
img[src$="vob-badge-110.png"] {
  aspect-ratio: 10 / 9;
}

.credential-logos a:hover img,
.credential-logos a:focus-visible img {
  filter: grayscale(0);
  opacity: 1;
}

.footer-veteran > img,
.footer-veteran > a img {
  width: auto;
  max-width: 86px;
  max-height: 44px;
  object-fit: contain;
}

.utility-footer {
  padding: 38px 24px;
  color: #aab3c5;
  background: #080d18;
  font-family: "Sora", Arial, sans-serif;
  text-align: center;
}

.utility-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 24px;
  letter-spacing: 0.04em;
}

.utility-footer-brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.utility-footer-links,
.utility-footer-social,
.utility-footer-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 20px;
}

.utility-footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.utility-footer a {
  color: #aab3c5;
  font-size: 12px;
  text-decoration: none;
}

.utility-footer a:hover,
.utility-footer a:focus-visible {
  color: #f56b1f;
}

.utility-footer-badges img {
  width: auto;
  max-width: 92px;
  height: 44px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.8;
}

@media (max-width: 720px) {
  body::after {
    inset: 22vh 4vw;
    background-size: 82vw auto;
    opacity: 0.018;
  }

  .footer-credentials,
  .credential-logos {
    align-items: flex-start;
    flex-direction: column;
  }

  .credential-logos {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .credential-logos img {
    max-width: 84px;
    height: 42px;
  }
}
