footer {
    margin-top: 6rem;
    width: 100%;
    padding: 4rem 8rem;
    text-align: center;
}

footer h2 {
    font-size: var(--fontSize-heading-base);
    font-family: var(--sacramento);
    font-weight: 400;
    margin-top: 1rem;
}

footer h4 {
    font-size: 1.6rem;
    font-family: var(--arabic);
    font-weight: 400;
}

footer > div {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #000;
    margin-top: 1rem;
    padding-top: 0.6rem;
}

footer > div p {
    font-size: 0.6rem;
}

footer > div p span {
    font-weight: bold;
}

footer > div a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 0.8rem;
}

/* ✅ Optimized Footer (Mobile-first) */

footer {
  width: 100%;
  text-align: center;
  padding: 2rem 1.25rem;
  margin-top: 4rem;
}

footer h2 {
  font-size: var(--fontSize-heading-base);
  font-family: var(--sacramento);
  font-weight: 400;
  margin-top: 0.5rem;
}

footer h4 {
  font-size: 1.5rem;
  font-family: var(--arabic);
  font-weight: 400;
  margin-top: -4.25rem;
}

/* Footer divider row */
footer > div {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  border-top: 1px solid #000;
  margin-top: 1rem;
  padding-top: 0.75rem;
}

footer > div p {
  font-size: 0.75rem;
  line-height: 1.3;
}

footer > div p span {
  font-weight: 600;
}

footer > div a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #000;
  text-decoration: none;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
}

/* Hover states for desktop */
@media (hover: hover) {
  footer > div a:hover {
    opacity: 0.7;
  }
}

/* ----------------------
   TABLET ≥ 768px
---------------------- */
@media screen and (min-width: 768px) {
  footer {
    padding: 3rem 4rem;
    margin-top: 5rem;
  }

  footer > div {
    flex-direction: row;
    justify-content: space-between;
    gap: 1rem;
  }

  footer > div p {
    font-size: 0.8rem;
  }
}

/* ----------------------
   DESKTOP ≥ 1024px
---------------------- */
@media screen and (min-width: 1024px) {
  footer {
    padding: 4rem 8rem;
    margin-top: 6rem;
  }

  footer > div p {
    font-size: 0.9rem;
  }

  footer > div a {
    font-size: 1rem;
  }

}