/**
 * @file footer.css
 * Site-wide footer: main menu (left), EU/Kerksuskeskus logos (center),
 * contact details (right), reusing the same .site-container as the rest
 * of the page so it lines up with everything above it.
 */

.site-footer {
  margin-top: 4rem;
  padding-block: 3rem;
  border-top: 1px solid var(--border);
  background: #f1ebdd;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 800px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 2.5rem;
  }
}

/*
 * The menu render array reuses the same component as the primary nav,
 * which styles links as button-like pills (padding, rounded corners,
 * hover/active background) - stripped back to plain text links here,
 * since that treatment doesn't belong in a footer.
 */
.site-footer__menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.site-footer__menu ul li {
  background: none;
  min-height: auto;
}

.site-footer__menu a {
  display: inline;
  min-height: auto;
  padding: 0;
  border-radius: 0;
  background: none;
  font-size: 0.9375rem;
  color: var(--foreground);
  text-decoration: none;
}

.site-footer__menu a:hover,
.site-footer__menu a:focus {
  background: none;
  color: var(--primary);
  text-decoration: underline;
}

.site-footer__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.site-footer__logos img {
  display: block;
  height: 90px;
  width: auto;
}

.site-footer__contact {
  justify-self: end;
}

@media (max-width: 800px) {
  .site-footer__contact {
    justify-self: center;
  }
}

.site-footer__contact p {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.site-footer__contact p:last-child {
  margin-bottom: 0;
}
