/* ============================================================================
   MFANO AFRICA ICT HUB - PRODUCTION DEDICATED FOOTER BLUEPRINT CSS
   ============================================================================ */

:root {
  --footer-bg: #050912;
  --footer-border: rgba(255, 255, 255, 0.07);
  --footer-text-white: #f8fafc;
  --footer-text-gray: #94a3b8;
  --footer-cyan: #06b6d4;
  --footer-gold: #f59e0b;
}
*{
  box-sizing: border-box;
}

footer {
  background: var(--footer-bg) !important;
  border-top: 1px solid var(--footer-border) !important;
  color: var(--footer-text-white);
  font-family: "Inter", "Plus Jakarta Sans", sans-serif;
  padding: 2rem;
}

/* Structural Master Grid Layout */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 3.5rem;
  max-width: 1400px;
  margin: 0 auto 12px;
  width: 90%;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* FIXED: Structural sizing overrides for the footer logo link */
.footer-brand .nav-logo {
 min-inline-size:150px;
 block-size: 80px;
}

/* FIXED: Explicitly constrains image height and width bounds */
.icon-logo {
  width: 100px ;
  height: auto;
  overflow: hidden;
  margin-inline-end: auto;
  object-fit: contain !important;
  display: block;
  margin-inline-start: 100px;
}

/* FIXED: Restores text typography metrics */
.footer-brand .logo-text {
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  color: var(--footer-text-white) !important;
  line-height: 1.15 !important;
  font-family: "Outfit", sans-serif !important;
}

.footer-brand .logo-text span {
  color: var(--footer-cyan) !important;
}

.footer-brand p {
  font-size: 0.9rem !important;
  color: var(--footer-text-gray) !important;
  line-height: 1.7 !important;
  margin: 0 !important;
  max-width: 42ch;
}

/* Column General Layouts */
.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-col h5 {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--footer-text-white);
  margin: 0 0 1.5rem 0;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.footer-col ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-col ul li {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.footer-col ul li a {
  color: var(--footer-text-gray) !important;
  text-decoration: none !important;
  font-size: 0.9rem !important;
  line-height: 1.6 !important;
  transition: color 0.2s ease-in-out;
}

.footer-col ul li a:hover {
  color: var(--footer-cyan) !important;
}

/* Social Buttons Subsystem */
.footer-social-links {
  display: flex !important;
  gap: 0.8rem !important;
  margin-top: 0.5rem !important;
  list-style: none !important;
  padding: 0 !important;
}

.social-btn {
  width: 42px !important;
  height: 42px !important;
  border-radius: 12px !important;
  background: linear-gradient(145deg, rgba(6, 182, 212, 0.15), rgba(255, 201, 71, 0.08)) !important;
  border: 1px solid rgba(6, 182, 212, 0.25) !important;
  color: var(--footer-text-white) !important;
  display: grid !important;
  place-items: center !important;
  text-decoration: none !important;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
}

.social-btn:hover {
  background: linear-gradient(145deg, var(--footer-gold), var(--footer-cyan)) !important;
  border-color: var(--footer-gold) !important;
  color: var(--footer-bg) !important;
  transform: translateY(-3px) !important;
}

.social-btn svg, .icon-med {
  width: 18px !important;
  height: 18px !important;
  fill: currentColor;
}

/* Copyright Baseline Section */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  padding-top: 2rem !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.footer-bottom p {
  font-size: 0.85rem !important;
  color: var(--footer-text-gray) !important;
  margin: 0 !important;
}

.footer-bottom p span,
.footer-bottom p span span {
  color: var(--footer-cyan) !important;
  font-weight: 600 !important;
}

.footer-bottom .footer-links {
  display: flex !important;
  gap: 2rem !important;
}

.footer-bottom .footer-links a {
  font-size: 0.85rem !important;
  color: var(--footer-text-gray) !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

.footer-bottom .footer-links a:hover {
  color: var(--footer-cyan) !important;
}

/* ============================================================================
   RESPONSIVE LAYOUT CONSTRAINTS
   ============================================================================ */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 3rem !important;
  }
  .footer-brand {
    grid-column: span 2 !important;
  }
  .footer-brand p {
    max-width: 100% !important;
  }
}

@media (max-width: 640px) {
  footer {
    padding: 2rem 5% 2.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
    margin-bottom: 3rem !important;
  }
  .footer-brand {
    grid-column: span 1 !important;
  }
  .footer-bottom {
    flex-direction: column-reverse !important;
    align-items: flex-start !important;
    gap: 1.5rem !important;
  }
  .footer-bottom .footer-links {
    flex-wrap: wrap !important;
    gap: 1rem 1.5rem !important;
  }
}