/* ==========================================================================
   Footer Widget Area
   ========================================================================== */

.footer {
  background-color: var(--color-footer-bg);
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
}

.footer__content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: var(--spacing-xl);
  align-items: start;
}

@media (max-width: 768px) {
  .footer__content {
    grid-template-columns: 1fr;
  }
}

.footer__column {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.footer__column--logo {
  align-items: flex-start;
  width: max-content;
}

.footer__heading {
  font-size: var(--font-size-base);
  margin: 0 0 var(--spacing-xs);
}

.footer__heading--sub {
  font-size: var(--font-size-base);
  margin: 0 0 var(--spacing-xs);
}

.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__partners {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: var(--spacing-sm);
}

.footer__partner-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xs) var(--spacing-sm);
  background-color: var(--color-white);
  border: 1px solid var(--color-border, rgba(0, 0, 0, 0.12));
  border-radius: 0.5rem;
  overflow: hidden;
  text-decoration: none;
  color: var(--color-text);
}

.footer__partner-tile:hover,
.footer__partner-tile:focus {
  border-color: var(--color-orange);
}

/* Fixed height, auto width: the two logos have different aspect ratios but
   align to the same height. The white plate above keeps them legible on every
   footer theme. */
.footer__partner-tile img {
  display: block;
  height: 52px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.footer__copyright {
  margin-top: 40px;
  margin-bottom: 0;
  text-align: center;
  font-size: var(--font-size-xs);
}

/* "Veebilehe tegi" credit line, tight under the copyright. */
.footer__credit {
  margin: var(--spacing-xs) 0 0;
  text-align: center;
  font-size: var(--font-size-xs);
}

/* Footer social icons (same pattern as top-bar: partials/social-icons.php + inline SVG) */
.footer__social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--spacing-lg);
  height: var(--spacing-lg);
  color: var(--color-text-muted);
}

.footer__social a:hover,
.footer__social a:focus {
  color: var(--color-text);
}