/* ==========================================================
   Hi BodyMate — Footer
   ========================================================== */

/* ----------------------------------------------------------
   Footer wrapper
   ---------------------------------------------------------- */
.site-footer {
  background-color: var(--tab-whtr);
  color: #1e293b;
  padding-block: var(--space-12) var(--space-8);
  margin-top: auto;
}

/* ----------------------------------------------------------
   Footer grid
   ---------------------------------------------------------- */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: var(--space-8);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid rgba(30, 41, 59, 0.1);
}

/* ----------------------------------------------------------
   Brand column
   ---------------------------------------------------------- */
.footer-brand img {
  height: 32px;
  width: auto;
  margin-bottom: var(--space-4);
  filter: none;
  opacity: 0.8;
}

.footer-brand p {
  font-size: var(--text-sm);
  color: rgba(30, 41, 59, 0.6);
  line-height: 1.7;
  max-width: 220px;
}

/* ----------------------------------------------------------
   Footer columns
   ---------------------------------------------------------- */
.footer-col h4 {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: #9a3412;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-col a {
  font-size: var(--text-sm);
  color: #334155;
  transition: color var(--transition-fast);
}

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

/* ----------------------------------------------------------
   Footer bottom bar
   ---------------------------------------------------------- */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-6);
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer-copyright {
  font-size: var(--text-xs);
  color: rgba(30, 41, 59, 0.5);
}

.footer-disclaimer {
  font-size: var(--text-xs);
  color: rgba(30, 41, 59, 0.4);
  max-width: 480px;
  text-align: right;
}

/* ----------------------------------------------------------
   Responsive
   ---------------------------------------------------------- */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }

  .footer-brand {
    grid-column: span 2;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-disclaimer {
    text-align: left;
  }
}

@media (max-width: 400px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: span 1;
  }
}
