/* Sticky-footer pattern: body becomes a flex column so #globalFooter is
 * pushed to the viewport bottom via margin-top: auto. Pages whose layout
 * doesn't play nice (e.g. review.html) opt out via class="no-sticky-footer". */
body:not(.no-sticky-footer) {
  min-height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
}
body:not(.no-sticky-footer) #globalFooter {
  margin-top: auto !important;
  width: 100% !important;
}

#globalFooter .footer-link {
  color: #d8dde5;
  transition: color 0.3s ease;
}
#globalFooter .footer-link:hover {
  color: #c9a55c;
}

/* ---------- Three-column layout (dark gradient, mirrors header) ---------- */
.mfh-footer {
  background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
  border-top: 2px solid rgba(201, 165, 92, 0.3);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
  width: 100%;
  margin-top: 0;
  padding: 24px 20px 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #d8dde5;
}
.mfh-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: start;
}
.mfh-footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}
.mfh-footer .mfh-footer__title {
  margin: 0 0 4px !important;
  font-family: 'Cormorant Garamond', serif;
  color: #c9a55c;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-align: left !important;
}
html[dir='rtl'] .mfh-footer .mfh-footer__title {
  text-align: right !important;
}
@media (max-width: 768px) {
  .mfh-footer .mfh-footer__title {
    text-align: center !important;
  }
  html[dir='rtl'] .mfh-footer .mfh-footer__title {
    text-align: center !important;
  }
}
.mfh-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mfh-footer__list a.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  text-decoration: none;
}
.mfh-footer__list a.footer-link svg {
  flex-shrink: 0;
}
.mfh-footer__social {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.mfh-footer__social a.footer-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* RTL support — flip alignment for Arabic pages */
html[dir='rtl'] .mfh-footer__col {
  text-align: right;
}

/* Stack vertically on small screens (compact mobile layout) */
@media (max-width: 768px) {
  .mfh-footer {
    padding: 24px 0px;
  }
  .mfh-footer__inner {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center;
  }
  .mfh-footer__col {
    align-items: center;
    text-align: center;
    gap: 8px;
  }
  html[dir='rtl'] .mfh-footer__col {
    text-align: center;
  }
  .mfh-footer__title {
    font-size: 17px;
    margin: 0;
  }
  .mfh-footer__list {
    gap: 6px;
  }
  .mfh-footer__list a.footer-link {
    justify-content: center;
    font-size: 14px;
  }
  .mfh-footer__social {
    justify-content: center;
    gap: 14px;
  }
  #globalFooter .mfh-copyright-bar {
    margin-top: 20px;
    padding: 12px 16px;
  }
  #globalFooter .mfh-copyright-bar span {
    font-size: 12px;
  }
}

/* Copyright bar — sits at the end of the footer in normal flow. */
#globalFooter .mfh-copyright-bar {
  border-top: 1px solid rgba(201, 165, 92, 0.25);
  padding: 12px 20px;
  margin-top: 20px;
  text-align: center;
}
#globalFooter .mfh-copyright-bar > span {
  font-family: 'Cormorant Garamond', serif;
  color: #d8dde5;
  font-size: 14px;
  letter-spacing: 0.3px;
}
#globalFooter .mfh-copyright-bar__devby {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #9ca3af;
}
#globalFooter .mfh-copyright-bar__devby a {
  color: #c9a55c;
  text-decoration: none;
  transition: color 0.3s ease;
}
#globalFooter .mfh-copyright-bar__devby a:hover {
  color: #f0c87a;
  text-decoration: underline;
}
