/* ==========================================================================
   Footer — near-black, hairline dividers
   ========================================================================== */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
}

.footer__grid {
  display: grid;
  gap: 2.6rem;
  padding-block: clamp(3rem, 7vw, 4.75rem) clamp(2.4rem, 5vw, 3.4rem);
}

@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 1.5fr 1fr 1.3fr; gap: 3.5rem; }
}

/* wordmark, white version */
.site-footer .logo { color: #fff; align-items: flex-start; }
.site-footer .logo__word { color: rgba(255, 255, 255, 0.55); padding-left: 0; }

.footer__about { max-width: 38ch; margin-top: 1.4rem; line-height: 1.8; }

.footer__note {
  max-width: 38ch;
  margin-top: 1rem;
  font-size: 0.84rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
}
.footer__note a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--t-fast) ease;
}
.footer__note a:hover { text-decoration-color: #fff; }

.footer__title {
  margin-bottom: 1.1rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #fff;
}

.footer__links a {
  display: inline-block;
  padding: 0.28rem 0;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--t-fast) ease, transform var(--t) var(--ease);
}
.footer__links a:hover { color: #fff; transform: translateX(calc(5px * var(--dx))); }

.footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.38rem 0;
}
.footer__contact svg { width: 18px; height: 18px; margin-top: 0.2rem; flex: none; color: rgba(255, 255, 255, 0.5); }
.footer__contact a { transition: color var(--t-fast) ease; }
.footer__contact a:hover { color: #fff; }

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-block: 1.4rem 1.7rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.5);
}

@media (min-width: 768px) {
  .footer__bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ---------- Arabic ---------- */
html[lang="ar"] .footer__title { font-size: 0.98rem; }
html[lang="ar"] .footer__about { line-height: 1.9; }
html[lang="ar"] .footer__bottom { font-size: 0.84rem; }

/* the wordmark's spaced capitals leave a trailing gap on their right edge; in Arabic the
   logo is right-aligned, so pull it back to sit flush with the text below */
:root[dir="rtl"] .site-footer .logo__word { margin-right: -0.52em; }
