/* Unified site footer.
   Single source of truth so every page matches the homepage footer.
   Loaded last and scoped under `footer` with !important so it wins over
   the older footer rules in site.css / flow.css / scale.css. */

footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: #070a0c !important;
  padding: 48px 0 36px !important;
}

footer .footer-grid {
  display: grid !important;
  grid-template-columns: 1.4fr repeat(3, 1fr) auto !important;
  gap: 48px !important;
  align-items: start !important;
  margin-bottom: 48px !important;
}

/* Brand wordmark in the footer lockup: Cormorant Bold Italic, matching the
   nav-bar rule in nav.css. Excludes the S tile. */
footer .brand > span:not(.brand-mark) {
  font-family: "Cormorant", Georgia, serif !important;
  font-style: italic !important;
  font-weight: 700 !important;
  font-size: 1.4rem !important;
  line-height: 1.1;
  color: #fff6ea !important;
}

footer .footer-brand p {
  max-width: 310px !important;
  margin-top: 14px !important;
  color: var(--muted) !important;
  font-size: var(--type-ui) !important;
  line-height: 1.7 !important;
}

footer .footer-col h4 {
  margin-bottom: 14px !important;
  color: #d4dbd7 !important;
  font-size: var(--type-caption) !important;
  font-weight: 900 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  line-height: 1.35 !important;
}

footer .footer-col ul {
  display: grid !important;
  gap: 9px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

footer .footer-col a {
  color: var(--muted) !important;
  font-size: var(--type-ui) !important;
  transition: color 0.2s ease !important;
}

footer .footer-col a:hover {
  color: #ffb36d !important;
}

footer .footer-bottom {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px !important;
  margin-top: 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding-top: 28px !important;
  color: var(--muted-2) !important;
  font-size: var(--type-ui) !important;
}

footer .footer-bottom p {
  color: var(--muted-2) !important;
}

footer .footer-legal {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 14px !important;
  justify-content: flex-end !important;
}

footer .footer-legal a {
  color: var(--muted-2) !important;
  font-size: var(--type-ui) !important;
}

footer .footer-legal a:hover {
  color: var(--orange) !important;
}

@media (max-width: 1040px) {
  footer .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 32px !important;
  }
}

@media (max-width: 640px) {
  footer .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  /* Mobile footer diet: the Services and Bundles columns are ten links that
     all lead to pricing.html — hidden on phones (~2 shorter viewports on
     every page). The brand block, Information column, Start Project button,
     and the legal row all stay. Child order on every page is footer-brand,
     Services, Bundles, Information, so divs 2 and 3 are the pricing lists. */
  footer .footer-grid > .footer-col:nth-of-type(2),
  footer .footer-grid > .footer-col:nth-of-type(3) {
    display: none !important;
  }
  footer .footer-bottom {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  footer .footer-legal {
    justify-content: flex-start !important;
  }
}
