/* Footer. Prefix: ft- */

.ft {
  position: relative;
  padding-block: clamp(56px, 6vw, 96px) clamp(28px, 3vw, 40px);
  color: var(--page-ink);
}

.ft-top {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.5fr);
  gap: clamp(40px, 6vw, 120px);
  padding-block-end: clamp(48px, 5vw, 72px);
}

/* Brand */
.ft-brand { display: grid; justify-items: start; align-content: start; gap: 18px; }
.ft-logo { display: inline-flex; align-items: center; gap: 10px; border-radius: var(--r-sm); }
.ft-mark { width: 32px; height: 32px; }
.ft-word { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: -.02em; line-height: 1; transform: translateY(.04em); }
:lang(ar) .ft-word { letter-spacing: 0; transform: translateY(-.02em); }
.ft-tagline {
  max-width: 25rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--g-600);
  text-wrap: pretty;
}
.ft-by {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-block-start: 4px;
  font-size: .875rem;
  color: var(--g-500);
}
.ft-bonat { width: auto; height: 26px; color: var(--b-plum); transform: translateY(-1px); }

/* Columns */
.ft-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
}
.ft-h {
  margin-block-end: 18px;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--page-ink);
}
.ft-col ul { display: grid; gap: 12px; }
.ft-col a {
  display: inline-block;
  font-size: 1rem;
  color: var(--g-600);
  transition: color var(--t-fast) var(--ease-out);
}
.ft-col a:hover { color: var(--z-blue); }

/* Bottom row */
.ft-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding-block-start: 24px;
  border-block-start: 1px solid var(--g-200);
}
.ft-copy { font-size: .9375rem; color: var(--g-500); }
.ft-end { display: flex; align-items: center; gap: 14px; }
.ft-sep { width: 1px; height: 20px; background: var(--g-200); }

.ft-lang {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 6px 14px 6px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--g-200);
  font-size: .9375rem;
  font-weight: 500;
  color: var(--g-700);
  transition: border-color var(--t-fast), color var(--t-fast), background-color var(--t-fast);
}
[dir="rtl"] .ft-lang { padding: 6px 12px 6px 14px; }
.ft-lang:hover { color: var(--ink); border-color: var(--g-300); background: var(--g-50); }
.ft-lang .ft-lang-ico { width: 17px; height: 17px; opacity: .8; }
.ft-lang [lang="ar"] { font-family: "IBM Plex Sans Arabic", var(--font-ui); font-size: 1rem; line-height: 1; transform: translateY(-.04em); }
.ft-lang [lang="en"] { font-family: "Inter", var(--font-ui); }

.ft-social { display: flex; align-items: center; gap: 4px; }
.ft-social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--ink);
  transition: background-color var(--t-fast), color var(--t-fast);
}
.ft-social a:hover { background: var(--g-100); color: var(--z-blue); }
.ft-social .ico { width: 22px; height: 22px; }

@media (max-width: 1023px) {
  .ft-top { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 599px) {
  .ft-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .ft-bottom { flex-direction: column-reverse; align-items: flex-start; }
  .ft-end { width: 100%; justify-content: space-between; }
  .ft-sep { display: none; }
  .ft-social { margin-inline-end: -8px; }
}

.ft-logo .zl { --zl-h: 38px; }
