/* ============================================================
   Footer — deep dark
   Sits below the dark site body with even deeper accent
   gradient and subtle grid pattern.
   ============================================================ */
.footer {
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-surface-darker) 100%);
  color: rgba(255, 255, 255, 0.6);
  padding: 80px 0 32px;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.5;
  pointer-events: none;
}
.footer .container {
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand .nav-logo {
  color: #fff;
}
.footer-brand-name {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  line-height: 1.5;
  max-width: 280px;
}
.footer-brand p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  margin-top: 12px;
  max-width: 280px;
  line-height: 1.65;
}
.footer-col h5 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  transition: color 200ms ease;
}
.footer-col a:hover {
  color: var(--color-accent);
}
.footer-col li span {
  display: inline-block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-bottom p {
  font: 500 12px/1.4 var(--font-mono);
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.35);
}

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

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .footer-col:last-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
