/* ──────────────────────────────────────────────────────────────
   Group Four — site footer

   Every page uses the same <footer class="g4-footer"> markup and this
   stylesheet, which reproduces the homepage footer exactly. Pages mix
   Tailwind, hand-written CSS and older footer rules, so every property
   that affects the look is set here explicitly rather than inherited.
   Load it after the page's own styles.
   Translations live in /assets/js/i18n.js (footer-* keys).
   ────────────────────────────────────────────────────────────── */
footer.g4-footer {
  display: block;
  margin: 0;
  padding: 4rem 0;
  background: #0f172a;
  color: #fff;
  border: 0;
  border-top: 1px solid #1e293b;
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: normal;
  text-align: start;
}
/* Arabic keeps the Tajawal font the language switcher sets on <body>. */
html:not([dir="rtl"]) footer.g4-footer { font-family: 'Inter', ui-sans-serif, system-ui, sans-serif; }
.g4-footer *,
.g4-footer *::before,
.g4-footer *::after { box-sizing: border-box; }
.g4-footer p,
.g4-footer h4,
.g4-footer ul,
.g4-footer li,
.g4-footer address { margin: 0; padding: 0; border: 0; }
.g4-footer a { color: inherit; text-decoration: none; background: none; }
/* Some pages style every <nav> as their fixed top bar. */
.g4-footer nav { position: static; inset: auto; z-index: auto; display: block; height: auto; background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }

.g4-footer__inner { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }

.g4-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.g4-footer__brand { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.5rem; }
.g4-footer__logo { display: flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; }
.g4-footer__logo img { display: block; width: 100%; height: 100%; max-width: none; object-fit: contain; }
.g4-footer__name { font-size: 1.25rem; line-height: 1.75rem; font-weight: 700; letter-spacing: -.025em; color: #fff; }
.g4-footer p.g4-footer__tagline {
  margin-bottom: 1.5rem;
  color: #94a3b8;
  font-size: .875rem;
  line-height: 1.625;
  font-weight: 300;
}

.g4-footer h4.g4-footer__title {
  margin-top: 1.33em; /* browser default the homepage keeps */
  margin-bottom: 1.5rem;
  color: #d1a054;
  font-size: .75rem;
  line-height: 1rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.g4-footer__list { list-style: none; color: #94a3b8; font-size: .875rem; line-height: 1.25rem; }
.g4-footer__list > li { list-style: none; }
.g4-footer__list > li + li { margin-top: .75rem; }

.g4-footer address.g4-footer__contact { display: block; flex-direction: row; gap: normal; color: #94a3b8; font-size: .875rem; line-height: 1.25rem; font-style: normal; }
.g4-footer__contact > p { display: flex; align-items: center; gap: .75rem; }
.g4-footer__contact > p + p { margin-top: 1rem; }
.g4-footer__contact > p.g4-footer__addr { align-items: flex-start; }
.g4-footer__icon {
  display: inline-block;
  flex: none;
  width: 1em;
  height: 1em;
  vertical-align: -.125em;
  fill: currentColor;
  color: #d1a054;
}
.g4-footer__addr .g4-footer__icon { margin-top: .25rem; }

.g4-footer__link { transition: color 150ms cubic-bezier(.4, 0, .2, 1); }
.g4-footer__link:hover,
.g4-footer__link:focus-visible,
.g4-footer__link[aria-current="page"] { color: #fff; }
.g4-footer__link[aria-current="page"]:hover { color: #d1a054; }

.g4-footer__bottom {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid #1e293b;
  color: #64748b;
  font-size: .75rem;
  line-height: 1rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-align: center;
}
.g4-footer__credit { display: block; }
.g4-footer__credit a {
  color: #d1a054;
  font-weight: 500;
  transition: color 150ms cubic-bezier(.4, 0, .2, 1);
}
.g4-footer__credit a:hover { color: #fff; }
.g4-footer__legal { display: flex; gap: 1.5rem; }

@media (min-width: 768px) {
  .g4-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g4-footer__bottom { flex-direction: row; }
}
@media (min-width: 1024px) {
  .g4-footer__inner { padding: 0 2rem; }
  .g4-footer__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
