/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  margin-top: 60px;
  padding: 40px 0 20px;
  border-top: 2px solid var(--gold);
}

.site-footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
}

.site-footer-brand p {
  margin-top: 12px;
  color: var(--text-gray);
}

.site-footer-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer-section h4 {
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 1rem;
}

.site-footer-section span {
  font-size: 0.9rem;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--gold);
}

.site-footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;

  margin-top: 30px;
  padding-top: 20px;

  border-top: 1px solid rgba(200, 169, 106, 0.15);
}

.site-footer-navigation {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 8px 30px;
}

.site-footer-version {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-gray);
}

/* =========================================================
   Footer - Mobile
   ========================================================= */

@media (max-width: 768px) {
  .site-footer {
    margin-top: 50px;
    padding: 36px 0 24px;

    text-align: center;
  }

  .site-footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    text-align: center;
  }

  .site-footer-brand {
    max-width: 320px;
    margin: 0 auto;
  }

  .site-footer-brand p {
    max-width: 280px;
    margin: 10px auto 0;

    padding-bottom: 18px;
    margin-bottom: 18px;

    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.7;

    border-bottom: 1px solid rgba(200, 169, 106, 0.15);
  }

  .site-footer-section {
    align-items: center;
    gap: 6px;

    padding-bottom: 14px;
    margin-bottom: 14px;

    border-bottom: 1px solid rgba(200, 169, 106, 0.15);
  }

  .site-footer-section h4 {
    margin-bottom: 6px;
  }

  .site-footer-section a,
  .site-footer-section span {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .site-footer-navigation {
    display: none;
  }

  .site-footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 8px;

    margin-top: 0;
    padding-top: 16px;

    text-align: center;
  }

  .site-footer-section:last-of-type {
    border-bottom: none;
  }

  .site-footer span,
  .site-footer a {
    min-height: 32px;
  }

  .site-footer-section span:last-child {
    color: var(--text-gray);
    font-size: 0.85rem;
  }
}

/* =========================================================
   Footer RTL
   ========================================================= */

html[dir="rtl"] .site-footer,
html[dir="rtl"] .site-footer * {
  text-align: center;
}

html[dir="rtl"] .site-footer-section {
  align-items: center;
}
