/* Footer — site-footer, footer-grid, footer-heading, footer-links, footer-bottom */

/* ========== FOOTER ========== */

.site-footer {
  background: var(--color-text);
  color: var(--color-white);
  padding-top: var(--space-16);
  padding-bottom: var(--space-8);
}

.footer-grid {
  display: grid;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-heading {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-6);
  color: var(--color-white);
  font-family: var(--font-body);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-links a {
  color: var(--color-gray-400);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-primary-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-bottom p,
.footer-bottom a {
  color: var(--color-gray-500);
  font-size: var(--text-sm);
}

.footer-bottom a:hover {
  color: var(--color-primary-light);
}

/* ========== FOOTER LEGAL ROW ========== */

/* Privacy Policy / Terms of Service / Licensed & Insured row sits
   inside .footer-bottom. On narrow phones the three items did not
   fit on one line and wrapped 2+1 unevenly under the centered
   copyright paragraph. Stack them in a column on phones for a
   cleaner balanced layout; keep the horizontal row on tablets+. */
.footer-legal {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: center;
}

@media (min-width: 768px) {
  .footer-legal {
    flex-direction: row;
    gap: var(--space-6);
  }
}
