.footer-wrapper {
  clear: both;
  direction: rtl;
  font-family: Vazirmatn, Tahoma, sans-serif;
  isolation: isolate;
  margin-top: 60px;
  position: relative;
  width: 100%;
}

.footer-wrapper,
.footer-wrapper *,
.footer-wrapper *::before,
.footer-wrapper *::after {
  box-sizing: border-box;
}

.footer-wrapper .footer-top-shape {
  display: block;
  line-height: 0;
  width: 100%;
}

.footer-wrapper .footer-top-shape svg {
  display: block;
  height: clamp(36px, 5vw, 72px);
  width: 100%;
}

.footer-wrapper .site-footer {
  background: #263a2a;
  color: #eaf3e4;
  margin: 0;
  overflow: hidden;
  padding: 42px 0 20px;
  position: relative;
  width: 100%;
}

.footer-wrapper .site-footer::before {
  background: rgba(155, 197, 130, .08);
  border-radius: 50%;
  content: "";
  filter: blur(40px);
  height: 300px;
  left: -100px;
  position: absolute;
  top: -50px;
  width: 300px;
}

.footer-wrapper .container {
  margin-inline: auto;
  max-width: 1200px;
  width: calc(100% - 40px);
}

.footer-wrapper .footer-grid {
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 1.4fr) repeat(var(--footer-section-count, 2), minmax(0, 1fr)) minmax(0, 1.4fr);
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
}

.footer-wrapper .footer-grid > * {
  min-width: 0;
}

.footer-wrapper .footer-brand-info .brand-logo {
  color: #fff;
  font-size: clamp(2rem, 4vw, 2.8rem);
  text-shadow: none;
}

.footer-wrapper .footer-brand-info .brand-logo .brand-name-swap {
  display: inline-block;
  font-size: inherit;
  margin: 0;
  width: auto;
}

.footer-wrapper .footer-brand-info .brand-logo .brand-word {
  display: flex;
  font-size: inherit;
  margin: 0;
}

.footer-wrapper .footer-grid p {
  color: #b4c5aa;
  font-size: .9rem;
  line-height: 1.9;
  margin: 12px 0;
}

.footer-wrapper .footer-brand-info > p {
  font-size: .95rem;
  margin-top: 16px;
  max-width: 340px;
}

.footer-wrapper .footer-phone {
  align-items: center;
  color: #f5efe1;
  display: flex;
  font-size: .9rem;
  font-weight: 700;
  gap: 8px;
  margin-top: 10px;
  text-decoration: none;
  width: fit-content;
}

.footer-wrapper .footer-phone + .footer-phone {
  margin-top: 6px;
}

.footer-wrapper .footer-heading {
  color: #fff;
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 0 20px;
  position: relative;
}

.footer-wrapper .footer-heading::after {
  background: #9bc582;
  border-radius: 2px;
  bottom: -6px;
  content: "";
  height: 3px;
  position: absolute;
  right: 0;
  width: 50%;
}

.footer-wrapper .footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-wrapper .footer-links a {
  align-items: center;
  color: #b4c5aa;
  display: inline-flex;
  font-size: .9rem;
  gap: 8px;
  margin: 0;
  text-decoration: none;
  transition: color .2s ease, transform .2s ease;
}

.footer-wrapper .footer-links a::before {
  color: #9bc582;
  content: "•";
  font-size: 1.2rem;
  line-height: 1;
}

.footer-wrapper .footer-links a:hover,
.footer-wrapper .footer-phone:hover {
  color: #fff;
  transform: translateX(-3px);
}

.footer-wrapper .social-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.footer-wrapper .social-icon-btn {
  align-items: center;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  margin: 0;
  text-decoration: none;
  transition: background-color .2s ease, transform .2s ease;
  width: 42px;
}

.footer-wrapper .social-icon-btn:hover {
  background: #6e9958;
  transform: translateY(-3px);
}

.footer-wrapper .footer-map-container {
  aspect-ratio: 4 / 3;
  border: 2px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  min-height: 180px;
  overflow: hidden;
  width: 100%;
}

.footer-wrapper .footer-map-container iframe {
  border: 0;
  display: block;
  filter: invert(90%) hue-rotate(90deg) brightness(80%) contrast(90%);
  height: 100%;
  width: 100%;
}

.footer-wrapper .footer-bottom {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: #aab8a3;
  display: flex;
  flex-wrap: wrap;
  font-size: .85rem;
  gap: 10px 24px;
  justify-content: space-between;
  padding-top: 22px;
  position: relative;
  z-index: 1;
}

.footer-wrapper .footer-credit {
  color: #8e9c88;
  font-size: .82rem;
  padding-top: 14px;
  position: relative;
  text-align: center;
  z-index: 1;
}

.footer-wrapper .footer-credit strong {
  color: #b4c5aa;
}

@media (max-width: 1050px) {
  .footer-wrapper .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .footer-wrapper {
    margin-top: 40px;
  }

  .footer-wrapper .site-footer {
    padding-top: 30px;
  }

  .footer-wrapper .container {
    width: calc(100% - 32px);
  }

  .footer-wrapper .footer-grid {
    gap: 28px 20px;
    grid-template-columns: minmax(0, 1fr);
    margin-bottom: 32px;
  }

  .footer-wrapper .footer-brand-info > p {
    margin-inline: 0;
  }

  .footer-wrapper .footer-map-container {
    min-height: 200px;
  }

  .footer-wrapper .footer-bottom {
    align-items: center;
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }

  .footer-wrapper .footer-phone {
    margin-inline: auto;
  }
}
