/* ---------- Footer layout ---------- */

.site-footer {
  border-top: 1px solid #ddd;
  padding: 3rem 1.5rem;
  background: #fff;
}

.footer-nav {
  margin: 0 auto;
}

/* ---------- Grid ---------- */

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

/* ---------- Sections ---------- */

.footer-section {
  display: grid;
  gap: 0.75rem;
}

.footer-heading {
  font-weight: 600;
  margin: 0;
}

/* ---------- Links ---------- */

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.footer-links a {
  text-decoration: none;
  color: #333;
}

.footer-links a:hover,
.footer-links a:focus {
  text-decoration: underline;
}

/* ---------- Meta ---------- */

.footer-meta {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
  color: #666;
  text-align: center;
}


/* ---------- Responsive ---------- */

/* Medium screens → 2 columns */
@media (max-width: 62.5rem) { /* 1000px */

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}

/* Mobile → 1 column */
@media (max-width: 48rem) { /* 768px */

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-meta {
    text-align: left;
  }

}
