/* ─────────────────────────────────────────────
   AFRI KDP  ·  ISOLATED FOOTER STYLES (footer.css)
─────────────────────────────────────────────── */

.afri-footer {
  background: #0f0a06;
  color: rgba(249, 245, 240, 0.42);
  margin-top: auto;
  
  /* SIDEBAR ANTI-CLASH MAGIC
     This uses the '--sidebar-w' variable from your dashboard.
     If the variable doesn't exist (like on your index.html), it defaults to 0px.
  */
  padding:20px 20px 20px 20px;
  position: relative;
  z-index: 10;
  
  font-family: 'Outfit', sans-serif;
  box-sizing: border-box;
}

.afri-footer *, .afri-footer *::before, .afri-footer *::after {
  box-sizing: border-box;
}

.afri-footer .foot-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 52px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.afri-footer .foot-brand-logo {
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  font-weight: 700;
  color: #F9F5F0;
  text-decoration: none;
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.afri-footer .foot-brand-logo img {
  height: 24px;
  width: 24px;
  margin-right: 8px;
  border-radius: 4px;
  object-fit: contain;
}

.afri-footer .foot-brand-logo b {
  color: #BF5B1A;
}

.afri-footer .foot-brand p {
  font-size: 13.5px;
  line-height: 1.75;
  max-width: 260px;
  font-weight: 300;
  color: rgba(249, 245, 240, 0.6);
  margin: 0;
}

.afri-footer .foot-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(249, 245, 240, 0.3);
  margin: 0 0 16px 0;
}

.afri-footer .foot-col a {
  display: block;
  font-size: 14px;
  color: rgba(249, 245, 240, 0.5);
  text-decoration: none;
  margin-bottom: 12px;
  font-weight: 300;
  transition: color 0.2s ease;
}

.afri-footer .foot-col a:hover {
  color: #D4733E;
}

.afri-footer .foot-bottom {
  border-top: 1px solid rgba(249, 245, 240, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  font-weight: 300;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── RESPONSIVE & SIDEBAR OVERRIDES ── */
@media (max-width: 900px) {
  .afri-footer {
    padding: 48px 24px 28px;
    /* This completely resets the margin on mobile so it goes 100% width! */
    margin-left: 0 !important;
    width: 100% !important;
  }
  .afri-footer .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .afri-footer .foot-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .afri-footer .foot-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}