/* =====================================================
   FOOTER.CSS — REVALABS.AI
   Shared footer styles for all pages
   ===================================================== */

/* ── FOOTER ── */
footer {
  background: var(--black);
  border-top: 1px solid var(--border-black);
  padding: var(--space-20) 0 var(--space-8);
  color: var(--text-on-black);
  position: relative;
  z-index: 1;
}

footer *:focus {
  outline: none;
}

footer a, footer button {
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

footer h4 {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--white);
  margin-bottom: var(--space-4);
  font-weight: 600;
}

footer ul {
  list-style: none;
}

footer ul li {
  margin-bottom: var(--space-3);
}

footer a {
  color: var(--text-muted-on-black);
  text-decoration: none;
  transition: color var(--transition-base);
  font-size: 0.9375rem;
}

footer a:hover {
  color: rgba(255, 255, 255, 0.9);
  opacity: 1;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-bottom-inner {
  border-top: 1px solid var(--border-black);
  padding-top: var(--space-8);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom-inner a {
  font-size: 0.8125rem;
}

/* ── FOOTER INLINE-STYLE COLOR OVERRIDES ── */
/* Footer is on black background — override any inline color:#000000 */
footer a[style*="color:#000000"],
footer span[style*="color:#000000"],
footer h4[style*="color:#000000"] {
  color: #E5E5E5 !important;
}

footer .nav-logo span[style*="color:#000000"] {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* ── FOOTER LINK & SOCIAL HOVER ── */
.footer-link:hover {
  color: rgba(255, 255, 255, 0.9) !important;
  opacity: 1;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.social-icon:hover {
  color: rgba(255, 255, 255, 0.9) !important;
  transform: scale(1.05);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Hide all social icons except LinkedIn */
.social-icon[aria-label="X (Twitter)"],
.social-icon[aria-label="Facebook"],
.social-icon[aria-label="Instagram"],
.social-icon[aria-label="YouTube"] {
  display: none !important;
}
