/* ===================================================
   Footer
   =================================================== */

.footer {
  border-top: 1px solid hsl(var(--border));
  padding: 4rem 0 2rem;
  transition: border-color 0.3s ease;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-brand img {
  height: 28px;
  width: auto;
  margin-bottom: 1rem;
}

.dark .footer-brand img {
  filter: brightness(0) invert(1) opacity(0.7);
}

.footer-brand p {
  font-size: 0.875rem;
  color: hsl(var(--muted-fg));
  max-width: 280px;
  line-height: 1.65;
}

.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: hsl(var(--fg));
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  font-size: 0.875rem;
  color: hsl(var(--muted-fg));
  transition: color 0.2s;
}

.footer-col a:hover {
  color: hsl(var(--primary));
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid hsl(var(--border));
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: hsl(var(--muted-fg));
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: hsl(var(--muted-fg));
}

.footer-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: hsl(var(--success));
}

/* RTL */
html[dir="rtl"] .footer-col ul { text-align: right; }
html[dir="rtl"] .footer-brand { text-align: right; }
