/* =============================================
   THE DIGI LAB — Footer
   Note: footer intentionally stays dark in light theme.
   All --white / --black variable overrides are reversed here.
============================================= */

footer {
  background: var(--black-soft);
  border-top: 1px solid var(--black-border);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .nav-logo { margin-bottom: 1rem; }
.footer-brand p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.4);
  max-width: 28ch;
}
.footer-col h5 {
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.25rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--black-border);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.25);
  max-width: none;
}
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.25);
  transition: color var(--transition);
}
.footer-legal a:hover { color: var(--accent); }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* =============================================
   LIGHT THEME — Footer (stays dark)
============================================= */
[data-theme="light"] footer {
  background: #111;
  border-top-color: rgba(255,255,255,0.07);
}
[data-theme="light"] footer h1,
[data-theme="light"] footer h2,
[data-theme="light"] footer h3,
[data-theme="light"] footer h4,
[data-theme="light"] footer h5 { color: rgba(255,255,255,0.8); }
[data-theme="light"] footer p { color: rgba(255,255,255,0.4); }
[data-theme="light"] .footer-brand p { color: rgba(255,255,255,0.4); }
[data-theme="light"] .footer-col h5 { color: rgba(255,255,255,0.4); }
[data-theme="light"] .footer-col ul a { color: rgba(255,255,255,0.55); }
[data-theme="light"] .footer-col ul a:hover { color: var(--accent); }
[data-theme="light"] .footer-bottom { border-top-color: rgba(255,255,255,0.08); }
[data-theme="light"] .footer-bottom p { color: rgba(255,255,255,0.25); }
[data-theme="light"] .footer-legal a { color: rgba(255,255,255,0.25); }
[data-theme="light"] .footer-legal a:hover { color: var(--accent); }
[data-theme="light"] footer .nav-logo span { color: #fff; }
[data-theme="light"] footer .social-link {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.45);
}
[data-theme="light"] footer .social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(250,164,26,0.12);
}
