/* ============================================================
   CANONICAL FOOTER — BuildStackHub
   footer.css — single source of truth for all footer styles
   Loaded on every page. Page-specific footer CSS is removed.
   ============================================================ */

footer {
  padding: 3.5rem 2rem 2rem;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: #0d1b2a;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-brand img {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.footer-brand span {
  color: #ff6b35;
}

.footer-tagline {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.footer-contact {
  font-size: 0.82rem;
  margin: 0;
}

.footer-contact a {
  color: #ff6b35;
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-col h4 {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: #374151;
  text-decoration: none;
  margin-bottom: 0.6rem;
  transition: color 0.15s;
}

.footer-col a:hover {
  color: #ff6b35;
}

.footer-stack-network {
  padding: 1.5rem 0;
  border-top: 1px solid #e5e7eb;
  margin-bottom: 1.5rem;
}

.stack-network-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.stack-network-header-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #6b7280;
  white-space: nowrap;
}

.stack-network-header-note {
  font-size: 0.78rem;
  color: #9ca3af;
}

.stack-network-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem 1.5rem;
}

.stack-network-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.stack-network-item a {
  font-size: 0.85rem;
  color: #374151;
  text-decoration: none;
  transition: color 0.15s;
  font-weight: 600;
  display: inline;
  margin-bottom: 0;
}

.stack-network-item a:hover {
  color: #ff6b35;
}

.stack-network-item span {
  font-size: 0.72rem;
  color: #9ca3af;
  line-height: 1.4;
}

.footer-disclaimer {
  padding: 1rem 0;
  border-top: 1px solid #e5e7eb;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.6;
}

.footer-disclaimer a {
  color: #ff6b35;
  font-weight: 600;
  text-decoration: none;
}

.footer-disclaimer a:hover {
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.footer-copy {
  font-size: 0.78rem;
  color: #9ca3af;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.footer-legal-links a {
  font-size: 0.75rem;
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.15s;
  display: inline;
  margin-bottom: 0;
}

.footer-legal-links a:hover {
  color: #ff6b35;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .stack-network-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  footer { padding: 2.5rem 1.25rem 1.5rem; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .footer-legal-links { flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
  .stack-network-grid { grid-template-columns: repeat(2, 1fr); }
}
