/* Shared footer only: no layout animation, timers, or additional JavaScript. */
.site-footer a:focus-visible {
  outline: 2px solid #1c3157;
  outline-offset: 6px;
  border-radius: 2px;
}

.site-footer .footer-brand__link {
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
}

.footer-brand__link img {
  display: block;
  transform-origin: center;
  transition: transform 850ms cubic-bezier(.22, 1, .36, 1);
}

.footer-nav a {
  position: relative;
  justify-self: start;
  transition: transform 240ms ease, color 240ms ease;
}

.footer-nav a::after {
  content: "";
  position: absolute;
  right: .26em;
  bottom: -4px;
  left: 0;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 280ms cubic-bezier(.22, 1, .36, 1);
  pointer-events: none;
}

.footer-contact a {
  transition: color 220ms ease, text-decoration-color 220ms ease;
  text-underline-offset: 3px;
}

.footer-nav a:focus-visible {
  color: #244d91;
  transform: translateX(4px);
}

.footer-nav a:focus-visible::after {
  transform: scaleX(1);
}

.footer-brand__link:focus-visible img {
  transform: rotate(360deg);
}

.footer-contact a:focus-visible {
  color: #1c3157;
  text-decoration: underline;
}

.site-footer .social-links a:focus-visible {
  transform: translateY(-3px);
}

@media (hover: hover) and (pointer: fine) {
  .footer-nav a:hover {
    color: #244d91;
    transform: translateX(4px);
  }

  .footer-nav a:hover::after {
    transform: scaleX(1);
  }

  .footer-brand__link:hover img {
    transform: rotate(360deg);
  }

  .footer-contact a:hover {
    color: #1c3157;
    text-decoration: underline;
  }
}

/* Touch links remain single-tap navigation; no sticky hover motion. */
@media (hover: none), (pointer: coarse) {
  .site-footer .social-links a:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer .footer-brand__link img,
  .site-footer .footer-nav a,
  .site-footer .social-links a {
    transform: none;
    transition: none;
  }

  .site-footer .footer-nav a::after,
  .site-footer .footer-contact a {
    transition: none;
  }
}
