/* ============================================
   FOOTER — shared across all pages.
   Two layouts: simple single-row (most pages) and
   centered logo + bottom row (used on homepage).
   ============================================ */

.footer {
  background: var(--black);
  color: rgba(255,255,255,0.6);
  padding: 48px 0 32px;
}

.footer-brand {
  text-align: center;
  margin-bottom: 32px;
}

.footer-brand img {
  height: 48px;
  opacity: 0.9;
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: 640px;
  margin: 20px auto 0;
}

/* ----- Multi-column footer grid (canonical — every page) ----- */
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr 1.2fr;
  gap: 44px;
  margin-bottom: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand-col img {
  height: 56px;
  width: auto;
  opacity: 0.92;
  margin-bottom: 18px;
}

.footer-brand-col p {
  font-size: 0.92rem;
  line-height: 1.75;
  max-width: 300px;
  color: rgba(255,255,255,0.55);
}

/* ----- Social icons ----- */
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: var(--r-circle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.72);
  transition: background var(--t-base) var(--ease-soft),
              border-color var(--t-base) var(--ease-soft),
              color var(--t-base) var(--ease-soft),
              transform var(--t-base) var(--ease-calm);
}

.footer-social a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-social svg { width: 18px; height: 18px; }

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a,
.footer-col ul li {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--t-base) var(--ease-soft);
  line-height: 1.7;
}

.footer-col ul li a:hover {
  color: var(--white);
}

.footer-contact-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  margin-right: 10px;
  vertical-align: -4px;
  opacity: 0.5;
}

.footer-contact-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 36px 40px;
  }
  .footer-brand-col { grid-column: 1 / -1; }
  .footer-brand-col p { max-width: 480px; }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px 24px;
  }
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 0.82rem;
}

.footer-bottom img {
  height: 36px;
  opacity: 0.7;
}

.fair-housing {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  opacity: 0.6;
}

.fair-housing svg {
  width: 20px;
  height: 20px;
  fill: rgba(255,255,255,0.6);
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
