/* Dedicated Sorenapipe footer component. */

body.sp-footer-enabled footer.site-footer:not(.sp-site-footer) {
  display: none;
}

.sp-site-footer {
  --sp-f-ink: #10242f;
  --sp-f-muted: #61737e;
  --sp-f-line: rgba(16, 36, 47, 0.13);
  --sp-f-soft-line: rgba(16, 36, 47, 0.08);
  --sp-f-paper: #f7fbfa;
  --sp-f-white: #ffffff;
  --sp-f-navy: #073e62;
  --sp-f-teal: #0b8f86;
  --sp-f-green: #178763;
  --sp-f-copper: #b8682b;
  direction: rtl;
  position: relative;
  margin-top: 58px;
  background:
    linear-gradient(180deg, #ffffff 0%, var(--sp-f-paper) 46%, #eef7f6 100%);
  color: var(--sp-f-ink);
  font-family: Vazirmatn, IRANSans, Tahoma, Arial, sans-serif;
  overflow: hidden;
}

.sp-site-footer *,
.sp-site-footer *::before,
.sp-site-footer *::after {
  box-sizing: border-box;
}

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

.sp-footer__container {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.sp-footer__accent {
  height: 3px;
  background: linear-gradient(90deg, var(--sp-f-green), var(--sp-f-teal), var(--sp-f-navy), var(--sp-f-copper));
}

.sp-footer__cta {
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(100deg, #063856 0%, #087a83 58%, #159064 100%);
}

.sp-footer__cta-inner {
  display: grid;
  min-height: 112px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}

.sp-footer__cta-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.sp-footer__eyebrow {
  width: max-content;
  max-width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
  padding-bottom: 5px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.7;
}

.sp-footer__cta-copy strong {
  max-width: 760px;
  color: #ffffff;
  font-size: clamp(1.05rem, 1.7vw, 1.42rem);
  font-weight: 800;
  line-height: 1.85;
}

.sp-footer__cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.sp-footer__button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.45;
  white-space: nowrap;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.sp-footer__button:hover,
.sp-footer__button:focus-visible {
  transform: translateY(-1px);
}

.sp-footer__button--primary {
  background: #ffffff;
  color: var(--sp-f-navy) !important;
}

.sp-footer__button--soft {
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff !important;
}

.sp-footer__main {
  display: grid;
  grid-template-columns: minmax(260px, 1.05fr) minmax(420px, 1.45fr) minmax(280px, 0.9fr);
  gap: 34px;
  padding: 42px 0 34px;
}

.sp-footer__about,
.sp-footer__contact,
.sp-footer__link-column {
  min-width: 0;
}

.sp-footer__about {
  display: grid;
  align-content: start;
  gap: 18px;
}

.sp-footer__brand {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
}

.sp-footer__mark {
  display: grid;
  width: 138px;
  min-width: 138px;
  height: 58px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(7, 62, 98, 0.08);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(7, 62, 98, 0.08);
}

.sp-footer__mark span {
  color: var(--sp-f-navy);
  font-size: 1rem;
  font-weight: 850;
}

.sp-footer__logo-img {
  display: block;
  width: 116px;
  max-width: 116px;
  height: auto;
}

.sp-footer__about p {
  margin: 0;
  max-width: 410px;
  color: #314f5b !important;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 2.05;
  opacity: 1 !important;
}

.sp-footer__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding-top: 2px;
}

.sp-footer__badges span {
  position: relative;
  padding-right: 14px;
  color: var(--sp-f-ink) !important;
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.7;
  opacity: 1 !important;
}

.sp-footer__badges span::before {
  content: "";
  position: absolute;
  top: 0.82em;
  right: 0;
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--sp-f-teal);
}

.sp-footer__nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  border-right: 1px solid var(--sp-f-soft-line);
  border-left: 1px solid var(--sp-f-soft-line);
  padding-inline: 32px;
}

.sp-footer__link-column h2,
.sp-footer__contact h2 {
  position: relative;
  margin: 0 0 16px;
  color: var(--sp-f-ink) !important;
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.6;
  opacity: 1 !important;
}

.sp-footer__link-column h2::after,
.sp-footer__contact h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin-top: 9px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--sp-f-copper), var(--sp-f-teal));
}

.sp-footer__link-column ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sp-footer__link-column a {
  position: relative;
  display: block;
  min-height: 32px;
  padding: 5px 16px 5px 0;
  color: #24424e !important;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.65;
  opacity: 1 !important;
  transition: color 160ms ease, transform 160ms ease;
}

.sp-footer__link-column a::before {
  content: "";
  position: absolute;
  top: 1.05em;
  right: 0;
  width: 7px;
  height: 1px;
  background: var(--sp-f-copper);
  transition: width 160ms ease, background 160ms ease;
}

.sp-footer__link-column a:hover,
.sp-footer__link-column a:focus-visible {
  color: var(--sp-f-teal) !important;
  transform: translateX(-2px);
}

.sp-footer__link-column a:hover::before,
.sp-footer__link-column a:focus-visible::before {
  width: 12px;
  background: var(--sp-f-teal);
}

.sp-footer__contact {
  display: grid;
  align-content: start;
  gap: 8px;
}

.sp-footer__contact-row {
  display: block;
  min-width: 0;
  padding: 4px 0 10px;
  border-bottom: 1px solid var(--sp-f-soft-line);
  color: #24424e !important;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.95;
  opacity: 1 !important;
  overflow-wrap: anywhere;
}

.sp-footer__contact-row strong {
  color: var(--sp-f-ink) !important;
  font-weight: 800;
}

a.sp-footer__contact-row {
  transition: color 160ms ease;
}

a.sp-footer__contact-row:hover,
a.sp-footer__contact-row:focus-visible {
  color: var(--sp-f-teal);
}

.sp-footer__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
}

.sp-footer__socials a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--sp-f-line);
  border-radius: 8px;
  padding: 8px 13px;
  background: #ffffff;
  color: var(--sp-f-navy) !important;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.45;
  opacity: 1 !important;
  transition: transform 160ms ease, border-color 160ms ease, color 160ms ease;
}

.sp-footer__socials a:hover,
.sp-footer__socials a:focus-visible {
  border-color: rgba(11, 143, 134, 0.36);
  color: var(--sp-f-teal) !important;
  transform: translateY(-1px);
}

.sp-footer__bottom {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--sp-f-line);
  color: #526b76 !important;
}

.sp-footer__bottom p {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 650;
  opacity: 1 !important;
}

.sp-footer__bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-end;
}

.sp-footer__bottom-links a {
  color: #304a55 !important;
  font-size: 0.82rem;
  font-weight: 700;
  opacity: 1 !important;
  transition: color 160ms ease;
}

.sp-footer__bottom-links a:hover,
.sp-footer__bottom-links a:focus-visible {
  color: var(--sp-f-teal) !important;
}

@media (max-width: 1080px) {
  .sp-footer__main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  }

  .sp-footer__contact {
    grid-column: 1 / -1;
    border-top: 1px solid var(--sp-f-soft-line);
    padding-top: 22px;
  }
}

@media (max-width: 820px) {
  .sp-footer__container {
    width: min(100% - 24px, 1180px);
  }

  .sp-footer__cta-inner {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px 0;
  }

  .sp-footer__cta-actions {
    justify-content: stretch;
  }

  .sp-footer__button {
    flex: 1 1 180px;
  }

  .sp-footer__main {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 32px;
  }

  .sp-footer__about p {
    max-width: none;
  }

  .sp-footer__nav {
    border-right: 0;
    border-left: 0;
    border-top: 1px solid var(--sp-f-soft-line);
    border-bottom: 1px solid var(--sp-f-soft-line);
    padding: 24px 0;
  }
}

@media (max-width: 560px) {
  .sp-site-footer {
    margin-top: 38px;
    padding-bottom: 88px;
  }

  .sp-footer__container {
    width: min(100% - 20px, 1180px);
  }

  .sp-footer__cta-copy strong {
    font-size: 1rem;
    line-height: 1.9;
  }

  .sp-footer__cta-actions,
  .sp-footer__button {
    width: 100%;
  }

  .sp-footer__nav {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .sp-footer__mark {
    width: 118px;
    min-width: 118px;
    height: 52px;
  }

  .sp-footer__logo-img {
    width: 100px;
    max-width: 100px;
  }

  .sp-footer__socials,
  .sp-footer__socials a {
    width: 100%;
  }

  .sp-footer__bottom {
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 0 18px;
    text-align: center;
  }

  .sp-footer__bottom-links {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sp-site-footer *,
  .sp-site-footer *::before,
  .sp-site-footer *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

body.sp-footer-enabled {
  --sp-f-ink: #10242f;
  --sp-f-navy: #073e62;
  --sp-f-teal: #0b8f86;
  --sp-f-green: #178763;
  --sp-f-copper: #b8682b;
  padding-bottom: 92px;
}

body.sp-footer-enabled .custom-contact-bar {
  position: fixed !important;
  right: auto !important;
  bottom: 16px !important;
  left: 50% !important;
  z-index: 1005 !important;
  display: grid !important;
  width: min(760px, calc(100% - 32px)) !important;
  max-width: calc(100vw - 32px) !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
  justify-content: initial !important;
  flex-wrap: nowrap !important;
  padding: 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.62) !important;
  border-radius: 8px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.54)) !important;
  color: var(--sp-f-ink) !important;
  box-sizing: border-box !important;
  box-shadow:
    0 18px 48px rgba(7, 62, 98, 0.18),
    0 2px 10px rgba(7, 62, 98, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.82) !important;
  text-align: initial !important;
  transform: translateX(-50%) !important;
  backdrop-filter: blur(22px) saturate(1.18);
  -webkit-backdrop-filter: blur(22px) saturate(1.18);
  isolation: isolate;
  overflow: hidden;
}

body.sp-footer-enabled .custom-contact-bar::before {
  content: "";
  position: absolute;
  inset: 1px 1px auto 1px;
  z-index: 0;
  height: 46%;
  border-radius: 7px 7px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0));
  pointer-events: none;
}

body.sp-footer-enabled .custom-contact-bar a {
  position: relative !important;
  z-index: 1 !important;
  display: inline-flex !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 46px !important;
  flex: none !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.52) !important;
  border-radius: 8px !important;
  padding: 10px 12px !important;
  background: rgba(255, 255, 255, 0.46) !important;
  color: var(--sp-f-ink) !important;
  box-sizing: border-box !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 8px 18px rgba(7, 62, 98, 0.06) !important;
  font-size: 0 !important;
  font-weight: 850 !important;
  line-height: 1.4 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease !important;
}

body.sp-footer-enabled .custom-contact-bar a::before {
  content: "";
  position: relative;
  z-index: 1;
  display: block;
  overflow: hidden;
  max-width: 100%;
  color: inherit;
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.5;
  text-overflow: ellipsis;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.56);
}

body.sp-footer-enabled .custom-contact-bar a::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 7px;
  left: 10px;
  height: 2px;
  border-radius: 99px;
  opacity: 0.9;
}

body.sp-footer-enabled .custom-contact-bar a:hover,
body.sp-footer-enabled .custom-contact-bar a:focus-visible {
  border-color: rgba(255, 255, 255, 0.78) !important;
  background: rgba(255, 255, 255, 0.62) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 12px 24px rgba(7, 62, 98, 0.1) !important;
  transform: translateY(-1px) !important;
}

body.sp-footer-enabled .custom-contact-bar .whatsapp {
  border-color: rgba(23, 135, 99, 0.2) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(23, 135, 99, 0.1)) !important;
  color: #11664e !important;
}

body.sp-footer-enabled .custom-contact-bar .whatsapp::before {
  content: "پیام در واتساپ";
}

body.sp-footer-enabled .custom-contact-bar .whatsapp::after {
  background: var(--sp-f-green);
}

body.sp-footer-enabled .custom-contact-bar .call {
  border-color: rgba(7, 62, 98, 0.22) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(7, 62, 98, 0.1)) !important;
  color: var(--sp-f-navy) !important;
}

body.sp-footer-enabled .custom-contact-bar .call::before {
  content: "02122514458";
}

body.sp-footer-enabled .custom-contact-bar .call::after {
  background: linear-gradient(90deg, var(--sp-f-navy), var(--sp-f-teal));
}

body.sp-footer-enabled .custom-contact-bar .telegram {
  border-color: rgba(0, 136, 204, 0.2) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(0, 136, 204, 0.1)) !important;
  color: #0b6792 !important;
}

body.sp-footer-enabled .custom-contact-bar .telegram::before {
  content: "کانال تلگرام";
}

body.sp-footer-enabled .custom-contact-bar .telegram::after {
  background: #0a93d5;
}

body.sp-footer-enabled .custom-contact-bar .eitaa {
  border-color: rgba(184, 104, 43, 0.22) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(184, 104, 43, 0.11)) !important;
  color: #8b4a19 !important;
}

body.sp-footer-enabled .custom-contact-bar .eitaa::before {
  content: "پیام در ایتا";
}

body.sp-footer-enabled .custom-contact-bar .eitaa::after {
  background: var(--sp-f-copper);
}

@media (max-width: 640px) {
  body.sp-footer-enabled {
    padding-bottom: 68px;
  }

  body.sp-footer-enabled .custom-contact-bar {
    bottom: 8px !important;
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    gap: 4px !important;
    padding: 6px !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.58)) !important;
    box-shadow:
      0 12px 30px rgba(7, 62, 98, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.86) !important;
  }

  body.sp-footer-enabled .custom-contact-bar a {
    min-height: 42px !important;
    padding: 8px 4px !important;
  }

  body.sp-footer-enabled .custom-contact-bar a::before {
    font-size: 0.76rem;
    font-weight: 850;
  }

  body.sp-footer-enabled .custom-contact-bar a::after {
    right: 7px;
    bottom: 5px;
    left: 7px;
  }

  body.sp-footer-enabled .custom-contact-bar .whatsapp::before {
    content: "واتساپ";
  }

  body.sp-footer-enabled .custom-contact-bar .call::before {
    content: "تماس";
  }

  body.sp-footer-enabled .custom-contact-bar .telegram::before {
    content: "تلگرام";
  }

  body.sp-footer-enabled .custom-contact-bar .eitaa::before {
    content: "ایتا";
  }
}

@media (max-width: 360px) {
  body.sp-footer-enabled .custom-contact-bar a::before {
    font-size: 0.7rem;
  }
}
