/* بدون @import خارجی — تا لود سایت / رسانه / درگاه قطع نشود */
.sm-footer *,
.sm-footer *::before,
.sm-footer *::after { box-sizing: border-box; }

.sm-footer {
  --blue: #2a35c7;
  --blue-deep: #1a1f6e;
  --heading: #1a1f6e;
  --text: #2b2f3a;
  --muted: #7a8190;
  --icon-bg: #e9ebff;
  --shadow: 0 2px 10px rgba(20, 30, 80, 0.045);
  direction: rtl;
  font-family: IRANSans, roboto, Arial, Tahoma, sans-serif;
  color: var(--text);
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* فاصله ۳۰px سکشن قالب (.section / #section_...) دور فوتر */
.section:has(.sm-footer),
.section:has(footer.sm-footer),
.section.sm-footer-section {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  min-height: 0 !important;
}

.sm-footer,
.sm-footer *:not(svg):not(path) {
  font-family: IRANSans, roboto, Arial, Tahoma, sans-serif;
}

.sm-footer a { text-decoration: none; color: inherit; transition: .2s; }
.sm-footer a:hover { color: var(--blue); }
.sm-footer ul { list-style: none; margin: 0; padding: 0; }
.sm-footer img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

/* فقط داخل فوتر — بدون !important سراسری */
.sm-footer .sajad-mf-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center bottom;
  z-index: 0;
  pointer-events: none;
  display: block;
}

.sm-desk,
.sm-mob {
  position: relative;
  z-index: 1;
}

/* پیش‌فرض: دسکتاپ پیدا، موبایل مخفی */
.sm-desk { display: block; }
.sm-mob  { display: none; }

/* =========================================================
   دسکتاپ — چیدمان قبلی (۵ ستون)
   ========================================================= */
.sm-desk__top {
  max-width: 1390px;
  margin: 0 auto;
  padding: 0 24px 28px;
}

.sm-desk__grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr 1.05fr 0.95fr 1.15fr;
  gap: 22px 36px;
  align-items: start;
}

.sm-brand-d {
  padding-left: 12px;
}

.sm-logo img {
  height: 100px;
  width: auto;
  max-width: 210px;
  object-fit: contain;
}

.sm-brand-d .sm-logo {
  display: inline-block;
  margin-bottom: 6px;
}

.sm-about-d {
  margin: 0 0 10px;
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--muted);
  text-align: justify;
}

.sm-line-d,
.sm-line {
  display: none;
}

.sm-h-d {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.4;
}

.sm-h-d span {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--icon-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sm-h-d span img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.sm-links li { margin: 0 0 10px; }
.sm-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #555b6c;
}
.sm-links a svg {
  width: 11px;
  height: 11px;
  color: var(--blue);
  flex-shrink: 0;
}

.sm-trust-d {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sm-trust-d a {
  width: 72px;
  height: 86px;
  background: #fff;
  border: 1px solid #f4f7ff;
  border-radius: 15px;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.sm-trust-d img {
  max-height: 74px;
  width: auto;
  max-width: 100%;
}

.sm-cards-d {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 0;
}

.sm-card-d {
  display: flex;
  align-items: center;
  gap: 11px;
  background: #fff;
  border-radius: 14px;
  padding: 11px 13px;
  box-shadow: var(--shadow);
  color: inherit;
}

a.sm-card-d:hover { color: var(--blue); }

.sm-card-d__ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--icon-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sm-card-d__ico img {
  width: 17px;
  height: 17px;
  object-fit: contain;
}

.sm-card-d__val {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  direction: ltr;
  text-align: right;
  line-height: 1.45;
}

.sm-card-d__lbl {
  display: block;
  font-size: 11px;
  color: var(--muted);
}

/* باکس آدرس — همان استایل کارت تماس، متن RTL */
.sm-card-d--addr .sm-card-d__val {
  direction: rtl;
  text-align: right;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  white-space: normal;
  word-break: break-word;
}

.sm-desk__mid {
  max-width: 1390px;
  margin: 0 auto 28px;
  padding: 0 24px;
}

.sm-banner-d {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border-radius: 16px;
  padding: 12px 20px;
  box-shadow: var(--shadow);
  direction: ltr;
  min-height: 64px;
  box-sizing: border-box;
}

.sm-banner-d__box {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
}

.sm-banner-d__box img {
  width: auto;
  height: auto;
  max-width: 56px;
  max-height: 56px;
  object-fit: contain;
  object-position: center;
}

.sm-banner-d__txt {
  flex: 1;
  text-align: center;
  direction: rtl;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: center;
}

.sm-banner-d__txt strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 3px;
  color: var(--heading);
}

.sm-banner-d__txt span {
  font-size: 12px;
  color: var(--muted);
}

.sm-cta-d {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  border: 0;
  line-height: 0;
  cursor: pointer;
  background: var(--blue);
  color: #fff !important;
  border-radius: 12px;
  flex-shrink: 0;
  align-self: center;
  box-shadow: 0 6px 18px rgba(42, 53, 199, 0.28);
}

.sm-cta-d:hover { color: #fff !important; opacity: .93; }
.sm-cta-d svg {
  width: 20px;
  height: 20px;
  display: block;
  flex-shrink: 0;
}

a.sm-feat-d { color: inherit; text-decoration: none; }
a.sm-feat-d:hover { color: #fff; opacity: .9; }

.sm-desk__bot {
  padding: 8px 24px 28px;
  color: #fff;
}

.sm-desk__bot-inner {
  max-width: 1390px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 32px;
  flex-wrap: wrap;
}

.sm-feats-d {
  display: flex;
  align-items: center;
  gap: 20px 36px;
  flex-wrap: wrap;
}

.sm-feat-d {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
}

.sm-feat-d__ico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sm-feat-d__ico img {
  width: 19px;
  height: 19px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.sm-feat-d strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.sm-feat-d em {
  display: block;
  font-size: 11.5px;
  font-style: normal;
  color: rgba(255, 255, 255, 0.65);
}

.sm-social-d {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sm-social-d__lbl {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.88);
}

.sm-social-d a,
.sm-social-d__btn {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sm-social-d a:hover,
.sm-social-d__btn:hover { background: rgba(255, 255, 255, 0.24); color: #fff !important; }
.sm-social-d a svg,
.sm-social-d__btn svg { width: 17px; height: 17px; }
.sm-social-d a img,
.sm-social-d__btn img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

@media (max-width: 1100px) {
  .sm-desk__grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .sm-brand-d { grid-column: 1 / -1; }
}

/* =========================================================
   موبایل — طرح جدید (از ۷۶۸ به پایین)
   ========================================================= */
@media (max-width: 768px) {
  .sm-desk { display: none !important; }
  .sm-mob  { display: block !important; }

  .sm-mob {
    max-width: 560px;
    margin: 0 auto;
    padding: 0 12px 20px;
  }

  .sm-mob .sm-banner {
    margin-bottom: 20px;
  }

  .sm-brand {
    text-align: center;
    margin-bottom: 14px;
  }

  .sm-brand .sm-logo {
    display: inline-flex;
    justify-content: center;
    margin: 0 auto 4px;
  }

  .sm-brand .sm-logo img {
    height: 80px;
    max-width: 170px;
    margin: 0 auto;
  }

  .sm-tag {
    margin: 0 0 5px;
    font-size: 11px;
    font-weight: 700;
    color: var(--blue-deep);
  }

  .sm-about {
    margin: 0 auto 10px;
    max-width: 400px;
    font-size: 10px;
    line-height: 1.75;
    color: var(--muted);
    text-align: center;
  }

  .sm-line {
    width: 56px;
    height: 2.5px;
    margin: 0 auto;
    border-radius: 2px;
    background: var(--blue);
  }

  .sm-cols {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
  }

  .sm-panel {
    background: #fff;
    border-radius: 12px;
    padding: 10px 8px;
    box-shadow: var(--shadow);
    min-width: 0;
  }

  .sm-h {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0 0 8px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--heading);
  }

  .sm-h span {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: var(--icon-bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .sm-h span img {
    width: 11px;
    height: 11px;
    object-fit: contain;
  }

  .sm-mob .sm-links li { margin: 0 0 5px; }
  .sm-mob .sm-links a {
    font-size: 9.5px;
    align-items: flex-start;
    gap: 3px;
  }
  .sm-mob .sm-links a svg {
    width: 8px;
    height: 8px;
    margin-top: 2px;
  }

  .sm-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }

  .sm-trust a {
    width: calc(50% - 2px);
    height: 44px;
    background: #fff;
    border: 1px solid #eef0f5;
    border-radius: 0;
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .sm-trust a:last-child { width: 100%; }

  .sm-trust img {
    max-height: 36px;
    width: auto;
    max-width: 100%;
  }

  .sm-cards {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
    margin-bottom: 8px;
  }

  .sm-card {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #fff;
    border-radius: 10px;
    padding: 8px 6px;
    box-shadow: var(--shadow);
    min-width: 0;
    color: inherit;
  }

  .sm-card__ico {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: var(--icon-bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .sm-card__ico img {
    width: 12px;
    height: 12px;
    object-fit: contain;
  }

  .sm-card__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .sm-card__val {
    font-size: 9px;
    font-weight: 700;
    direction: ltr;
    text-align: right;
    word-break: break-all;
    line-height: 1.25;
  }

  .sm-card__lbl {
    font-size: 8px;
    color: var(--muted);
  }

  .sm-card--addr {
    grid-column: 1 / -1;
    width: 100%;
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    gap: 8px;
  }

  .sm-card--addr .sm-card__ico {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }

  .sm-card--addr .sm-card__ico img {
    width: 15px;
    height: 15px;
  }

  .sm-card--addr .sm-card__val {
    direction: rtl;
    text-align: right;
    font-size: 10.5px;
    word-break: break-word;
  }

  .sm-card--addr .sm-card__lbl {
    font-size: 9px;
  }

  a.sm-card--addr:hover { color: var(--blue); }

  .sm-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border-radius: 12px;
    padding: 8px 10px;
    box-shadow: var(--shadow);
    margin-bottom: 14px;
    direction: ltr;
    min-height: 48px;
    box-sizing: border-box;
  }

  .sm-banner__box {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
  }

  .sm-banner__box img {
    width: auto;
    height: auto;
    max-width: 36px;
    max-height: 36px;
    object-fit: contain;
  }

  .sm-banner__txt {
    flex: 1;
    text-align: center;
    direction: rtl;
    align-self: center;
  }

  .sm-banner__txt strong {
    display: block;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--heading);
  }

  .sm-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    margin: 0;
    border: 0;
    line-height: 0;
    cursor: pointer;
    background: var(--blue);
    color: #fff !important;
    border-radius: 8px;
    flex-shrink: 0;
    align-self: center;
    box-shadow: 0 3px 10px rgba(42, 53, 199, 0.22);
  }

  .sm-cta:hover { color: #fff !important; opacity: .93; }
  .sm-cta svg { width: 15px; height: 15px; display: block; }

  .sm-bot {
    padding: 6px 0 2px;
    color: #fff;
  }

  .sm-feats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    text-align: center;
  }

  .sm-feat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #fff !important;
  }

  .sm-feat__ico {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .sm-feat__ico img,
  .sm-feat__ico svg {
    width: 13px;
    height: 13px;
    color: #fff;
    fill: currentColor;
  }

  .sm-feat__ico img {
    filter: brightness(0) invert(1);
    opacity: .95;
  }

  .sm-feat strong {
    font-size: 8.5px;
    font-weight: 600;
    color: #fff;
    line-height: 1.25;
  }
}
