/* =========================================================
   FOOTER – FINAL
========================================================= */

.site-footer{
  background: transparent !important;
  border-top: 0 !important;
  padding-top: 12px;
  margin-top: 30px;
  position: relative;
}

.site-footer .site-frame{
  background: transparent !important;
}

.site-footer .footer-inner{
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.94)) !important;
  border: 0 !important;
  border-radius: 24px;
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  box-shadow: 0 14px 34px rgba(0,0,0,.07);
}

.site-footer .footer-inner::before{
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(320px 120px at 12% 0%, rgba(193,18,31,.07), transparent 62%),
    radial-gradient(360px 120px at 88% 0%, rgba(31,122,31,.07), transparent 62%);
  pointer-events: none;
}

.site-footer .footer-inner::after{
  content: "";
  position: absolute;
  inset-inline: 24px;
  top: 0;
  height: 5px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(
    90deg,
    var(--brand-green) 0%,
    var(--brand-green) 33.333%,
    var(--brand-red) 33.333%,
    var(--brand-red) 66.666%,
    var(--brand-black) 66.666%,
    var(--brand-black) 100%
  );
  opacity: .95;
}

body.dark .site-footer .footer-inner{
  background: linear-gradient(180deg, rgba(15,23,42,.98), rgba(15,23,42,.94)) !important;
  box-shadow: 0 20px 46px rgba(0,0,0,.42);
}

body.dark .site-footer .footer-inner::before{
  background:
    radial-gradient(320px 120px at 12% 0%, rgba(193,18,31,.11), transparent 62%),
    radial-gradient(360px 120px at 88% 0%, rgba(31,122,31,.11), transparent 62%);
}

html[dir="rtl"] .site-footer .footer-inner{
  flex-direction: row-reverse;
}

.footer-brand{
  display: flex;
  align-items: center;
  min-width: 280px;
  position: relative;
  z-index: 1;
}

.footer-brand-link{
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text);
  max-width: 480px;
}

.footer-brand-link:hover{
  opacity: 1;
}

html[dir="rtl"] .footer-brand-link{
  flex-direction: row-reverse;
}

.footer-brand-mark{
  position: relative;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-red) 50%, var(--brand-black) 100%);
  box-shadow:
    0 12px 26px rgba(0,0,0,.14),
    inset 0 1px 0 rgba(255,255,255,.18);
}

body.dark .footer-brand-mark{
  box-shadow:
    0 18px 34px rgba(0,0,0,.36),
    inset 0 1px 0 rgba(255,255,255,.18);
}

.footer-brand-mark i{
  font-size: 1.05rem;
  position: relative;
  z-index: 2;
}

.footer-brand-ring{
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.09);
  background:
    radial-gradient(circle at 50% 50%, transparent 58%, rgba(212,160,23,.18) 59%, transparent 66%);
  pointer-events: none;
}

body.dark .footer-brand-ring{
  border-color: rgba(255,255,255,.10);
  background:
    radial-gradient(circle at 50% 50%, transparent 58%, rgba(212,160,23,.28) 59%, transparent 66%);
}

.footer-brand-text{
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.footer-eyebrow{
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
}

.footer-name{
  font-size: 1.08rem;
  font-weight: 850;
  line-height: 1.15;
  color: var(--text);
}

.footer-desc{
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  max-width: 360px;
}

.footer-links{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex: 1 1 auto;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.footer-links a{
  text-decoration: none;
  color: var(--muted);
  font-weight: 650;
  font-size: 14px;
}

.footer-links a:hover{
  color: var(--text);
  opacity: 1;
  text-decoration: underline;
}

.footer-actions{
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 170px;
  justify-content: flex-end;
  position: relative;
  z-index: 1;
}

html[dir="rtl"] .footer-actions{
  justify-content: flex-start;
}

.site-footer .btn,
.site-footer .btn-outline-secondary,
.site-footer .btn-outline-dark,
.site-footer .btn-outline-primary,
.site-footer .btn-outline-danger{
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.site-footer .btn:hover{
  background: rgba(0,0,0,.05) !important;
}

body.dark .site-footer .btn:hover{
  background: rgba(255,255,255,.08) !important;
}

.site-footer .footer-bottom{
  background: transparent !important;
  border-top: 0 !important;
  padding: 12px 4px 6px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 992px){
  .site-footer .footer-inner{
    gap: 14px;
    padding: 18px 18px;
  }

  .footer-brand{
    min-width: 240px;
  }

  .footer-brand-link{
    max-width: 100%;
  }

  .footer-links{
    gap: 10px 14px;
  }
}

@media (max-width: 768px){
  .site-footer .footer-inner{
    flex-direction: column;
    align-items: flex-start;
    min-height: auto;
  }

  html[dir="rtl"] .site-footer .footer-inner{
    align-items: flex-end;
  }

  .footer-brand{
    min-width: 100%;
    width: 100%;
  }

  .footer-brand-link{
    max-width: 100%;
  }

  .footer-brand-mark{
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .footer-eyebrow{
    font-size: .68rem;
  }

  .footer-name{
    font-size: 1rem;
  }

  .footer-desc{
    font-size: 12.5px;
    max-width: 100%;
  }

  .footer-actions{
    width: 100%;
    justify-content: flex-start;
    min-width: 0;
  }

  html[dir="rtl"] .footer-actions{
    justify-content: flex-end;
  }

  .footer-links{
    width: 100%;
    justify-content: flex-start;
  }

  html[dir="rtl"] .footer-links{
    justify-content: flex-end;
  }
}