/* =============================================================================
   Site Footer — dark horizontal bar with logo + links
   Partial: templates/shared/_footer.html
   Brand variables: saveag-ui.css (loaded before this file)
   ============================================================================= */

.site-footer {
  background: var(--color-secondary);
  padding: 2.5rem 2.5rem 1.5rem;
}

.footer-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(247, 247, 237, 0.07); /* --color-background @ 0.07 */
  margin-bottom: 1.2rem;
}

/* Footer logo — light version for dark background */
.footer-logo-link {
  display: inline-block;
}

.footer-logo {
  width: auto;
}

/* Footer nav links — horizontal, muted cream */
.footer-links {
  display: flex;
  gap: 1.8rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(247, 247, 237, 0.6); /* --color-background @ 0.6 — 4.5:1+ on secondary */
  text-decoration: none;
  transition: color 0.18s;
}

.footer-links a:hover {
  color: rgba(247, 247, 237, 0.85); /* --color-background @ 0.85 */
}

.footer-copy {
  font-size: 0.68rem;
  font-weight: 300;
  color: rgba(247, 247, 237, 0.6); /* --color-background @ 0.6 — 4.5:1+ on secondary */
  text-align: center;
}

/* Focus indicators for footer elements */
.footer-logo-link:focus-visible,
.footer-links a:focus-visible {
  outline: 3px solid var(--color-accent-3, #6bafb2);
  outline-offset: 2px;
}

/* Ensure focus outline is visible on dark background */
.site-footer *:focus-visible {
  outline-color: white;
}

/* =============================================================================
   Responsive (≤1024px): stack footer vertically
   ============================================================================= */
@media (max-width: 1024px) {
  .site-footer {
    padding: 2rem 1.2rem 1.2rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
    gap: 1rem;
  }
}
