/* === HPX FOOTER — Shared footer across all pages === */

footer {
  padding: 5rem 2rem 2rem;
  background: rgba(0, 0, 0, 0.45);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 1;
}

.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
}

/* Logo block */
.footer-logo-link {
  display: block;
  margin-bottom: 1.2rem;
}
.footer-logo-img {
  width: 200px;
  height: auto;
  display: block;
}
.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.75;
  margin-bottom: 1.2rem;
}

/* Social icons (SVG stroke style) */
.footer-social {
  display: flex;
  gap: 0.8rem;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: rgba(255, 255, 255, 0.35);
  transition: color 0.3s;
  text-decoration: none;
}
.footer-social a:hover {
  color: var(--cool1);
}
.footer-social svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Columns */
.footer-col h4 {
  font-family: var(--fd);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  color: rgba(255, 255, 255, 0.55);
}
.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
  transition: color 0.3s;
  min-height: 24px;
}
.footer-col a:hover {
  color: var(--cool1);
}
.footer-col a:focus-visible {
  outline: 2px solid var(--cool1);
  outline-offset: 2px;
}

/* Footer bottom bar */
.footer-bottom {
  max-width: 1100px;
  margin: 4rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
}
.footer-legal {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-legal a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.72rem;
}
.footer-legal a:hover {
  color: var(--cool1);
}

/* Responsive */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .footer-legal {
    justify-content: center;
  }
  .footer-logo-img {
    width: 160px;
  }
}
