.site-footer {
  margin-top: 3rem;
  color: rgb(212 212 216);
  background: linear-gradient(180deg, rgb(24 24 27) 0%, rgb(15 15 18) 100%);
  border-top: 1px solid rgb(63 63 70 / 0.6);
}

@media (min-width: 1024px) {
  .site-footer {
    margin-top: 5rem;
  }
}

.site-footer__topbar {
  display: flex;
  justify-content: flex-end;
  padding: 1.25rem 0 0.5rem;
}

.site-footer__back-top {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgb(228 228 231);
  background: rgb(63 63 70 / 0.5);
  border: 1px solid rgb(82 82 91);
  border-radius: 9999px;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}

.site-footer__back-top:hover {
  color: #fff;
  background: rgb(22 163 74);
  border-color: rgb(22 163 74);
  transform: translateY(-2px);
}

.site-footer__back-top svg {
  width: 1.1rem;
  height: 1.1rem;
  transform: rotate(180deg);
}

.site-footer__main {
  padding: 1.5rem 0 2rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 2.5rem;
    align-items: start;
  }
}

.site-footer__logo {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 700;
  color: rgb(134 239 172);
  transition: color 0.15s;
}

.site-footer__logo:hover {
  color: rgb(74 222 128);
}

.site-footer__about {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.85;
  color: rgb(161 161 170);
  max-width: 28rem;
}

.site-footer__heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

.site-footer__heading::before {
  content: '';
  width: 0.25rem;
  height: 1.1rem;
  border-radius: 9999px;
  background: rgb(22 163 74);
}

.site-footer__link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.site-footer__link-list a {
  font-size: 0.875rem;
  color: rgb(161 161 170);
  transition: color 0.15s, padding-inline-start 0.15s;
}

.site-footer__link-list a:hover {
  color: rgb(134 239 172);
  padding-inline-start: 0.25rem;
}

.site-footer__contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.site-footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: rgb(212 212 216);
  background: rgb(39 39 42 / 0.65);
  border: 1px solid rgb(63 63 70);
  border-radius: 0.75rem;
  transition: border-color 0.15s, background 0.15s;
}

.site-footer__contact-item:hover {
  border-color: rgb(22 163 74 / 0.5);
  background: rgb(39 39 42);
}

.site-footer__contact-item svg {
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.1rem;
  color: rgb(74 222 128);
}

.site-footer__contact-item a {
  color: inherit;
  word-break: break-word;
}

.site-footer__contact-item a:hover {
  color: rgb(134 239 172);
}

.site-footer__phones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.site-footer__social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgb(228 228 231);
  background: rgb(63 63 70 / 0.45);
  border: 1px solid rgb(82 82 91);
  border-radius: 0.65rem;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.site-footer__social-link:hover {
  background: rgb(22 101 52 / 0.45);
  border-color: rgb(22 163 74);
  transform: translateY(-1px);
}

.site-footer__social-link img {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 0.35rem;
  object-fit: cover;
}

.site-footer__bottom {
  border-top: 1px solid rgb(63 63 70 / 0.8);
  background: rgb(9 9 11 / 0.85);
}

.site-footer__bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 0 1.25rem;
  font-size: 0.8125rem;
  color: rgb(113 113 122);
}

@media (min-width: 768px) {
  .site-footer__bottom-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.site-footer__bottom-inner a {
  color: rgb(134 239 172);
  font-weight: 500;
}

.site-footer__bottom-inner a:hover {
  color: rgb(74 222 128);
}

/* صفحه اصلی + منوی پایین موبایل: بدون فاصله خاکستری بین فوتر و nav */
@media (max-width: 767px) {
  body.has-bottom-nav.has-site-footer {
    padding-bottom: 0;
  }

  body.has-bottom-nav.has-site-footer .site-footer {
    margin-bottom: 0;
    padding-bottom: calc(
      var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px)
    );
  }

  body.has-bottom-nav.has-site-footer .site-footer__bottom {
    border-bottom: none;
  }

  body.has-bottom-nav.has-site-footer .site-footer__bottom-inner {
    padding-bottom: 1rem;
  }

  .dark body.has-bottom-nav.has-site-footer .site-footer__bottom {
    background: rgb(39 39 42);
  }
}

@media (min-width: 768px) {
  body.has-site-footer .site-footer {
    margin-bottom: 0;
  }
}
