/**
 * Homepage v2.0 - Footer Styles
 * @description 4-column footer grid, language links, bottom nav clearance
 * @task Homepage Full Redesign
 * @version 1.0.0
 * @date 2026-02-16
 */

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 3rem 0 5rem;
  background: var(--color-bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

/* Brand column */
.footer-logo {
  display: inline-flex;
  margin-bottom: 0.75rem;
}

.footer-logo .logo-wordmark {
  display: block;
  height: 18px;
  width: auto;
}

.footer-brand p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 260px;
}

/* Link columns */
.footer-col-title {
  font-size: 0.6rem;
  font-weight: var(--font-weight-black, 800);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  padding: 0.2rem 0;
  transition: color var(--transition-normal);
}

.footer-col a:hover {
  color: var(--color-brand-accent);
}

/* Bottom bar */
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-copy {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* Language links */
.footer-langs {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-langs a {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  transition: color var(--transition-normal);
}

.footer-langs a:hover {
  color: var(--color-text);
}

.footer-langs a.active {
  color: var(--color-brand-accent);
  font-weight: var(--font-weight-bold, 700);
}

/* ==========================================================================
   Bottom Nav (Mobile)
   ========================================================================== */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  height: 56px;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.bnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: 1 1 0;
  min-width: 0;
  min-height: 44px;
  font-size: 0.55rem;
  font-weight: var(--font-weight-bold, 700);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color var(--transition-normal);
}

.bnav-item:hover,
.bnav-item.active {
  color: var(--color-brand-accent);
}

.bnav-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* : center labels under icons */
.bnav-item > span {
  display: block;
  width: 100%;
  text-align: center;
  line-height: 1.15;
}

/* Hide bottom nav on tablet+ */
@media (min-width: 768px) {
  .bottom-nav {
    display: none;
  }
}

/* Extra footer padding on mobile (clearance for bottom nav) */
@media (max-width: 767px) {
  .site-footer {
    padding-bottom: calc(5rem + 56px);
  }
}
