/* Shared footer and inline link treatments */

.footer {
  width: 100%;
  background: var(--navBarText);
  color: var(--navText);
  padding: 80px 0; /* remove side padding */
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 20;
}

@media (max-width: 765px) {
  .footer {
    margin-top: 40px;
  }
}

.footer-columns {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px; /* small view protection */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

.footer h4 {
  font-size: 1.6rem;
  font-weight: 900;
  text-transform: uppercase;
}

.footer-sub {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-top: 5px;
}

.footer h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.footer a {
  color: var(--navText);
  text-decoration: none;
  display: block;
  margin: 6px 0;
  opacity: 0.6;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.footer-columns a:hover {
  opacity: 1;
  transform: translateX(4px);
}

.footer-divider {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.2);
  margin: 40px 0;
}

.footer-bottom {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.footer-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin: 0 12px;
  text-decoration: none;
}

.footer-icons i {
  font-size: 1.6rem;

}
.footer-bottom p {
  margin-top: 30px;
  font-size: 0.85rem;
  opacity: 0.5;
  pointer-events: none;
}

.touch-link {
  position: relative;
  text-decoration: none;
  color: var(--navBarText);
  font-weight: 600;
}

.touch-link span {
  position: relative;
}

.touch-link span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 2px;
  width: 100%;
  color: var(--navBarText);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.touch-link:hover span::after {
  transform: scaleX(1);
}

