/* ==========================================================================
   MZF Store — Footer (Phase 6)
   ========================================================================== */

.mzf-footer { margin-top: 60px; }

/* ---- Trust strip ---- */
.mzf-footer__trust {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.mzf-footer__trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  padding-block: 28px;
}
.mzf-foot-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.mzf-foot-feature svg {
  flex-shrink: 0;
  color: var(--brand);
  background: var(--brand-050);
  border-radius: 12px;
  padding: 8px;
  width: 44px; height: 44px;
}
.mzf-foot-feature b { display: block; font-size: .95rem; }
.mzf-foot-feature small { color: var(--ink-muted); font-size: .8rem; }

/* ---- Main columns ---- */
.mzf-footer__main {
  background: var(--header-bg);
  color: #cfd5db;
}
.mzf-footer__cols {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: clamp(24px, 4vw, 48px);
  padding-block: 48px;
}
.mzf-footer__title {
  color: #fff;
  font-size: 1.05rem;
  margin: 0 0 18px;
  position: relative;
  padding-bottom: 10px;
}
.mzf-footer__title::after {
  content: "";
  position: absolute;
  bottom: 0; inset-inline-start: 0;
  width: 36px; height: 3px;
  background: var(--brand);
  border-radius: var(--r-pill);
}
.mzf-logo--footer { color: #fff; margin-bottom: 14px; }
.mzf-logo--footer .mzf-logo__text { color: #fff; font-size: 1.15rem; }
.mzf-footer__desc { color: #aab2ba; font-size: .9rem; line-height: 1.9; max-width: 42ch; }

.mzf-footer__social { display: flex; gap: 10px; margin-top: 16px; }
.mzf-footer__social a {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #fff;
  transition: background .15s ease, transform .15s ease;
}
.mzf-footer__social a:hover { background: var(--brand); transform: translateY(-3px); }

.mzf-footer__links { list-style: none; margin: 0; padding: 0; }
.mzf-footer__links li { margin-bottom: 10px; }
.mzf-footer__links a { color: #aab2ba; font-size: .9rem; transition: color .15s ease, padding .15s ease; }
.mzf-footer__links a:hover { color: #fff; padding-inline-start: 6px; }

.mzf-footer__contact-list { list-style: none; margin: 0 0 16px; padding: 0; }
.mzf-footer__contact-list li {
  display: flex;
  /* Multi-line address must not centre against its icon. */
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 11px;
  color: #aab2ba;
  font-size: .9rem;
  line-height: 1.75;
}
.mzf-footer__contact-list svg { flex-shrink: 0; color: var(--brand); margin-top: 5px; }
.mzf-footer__contact-list a { color: #aab2ba; text-decoration: none; }
.mzf-footer__contact-list a:hover { color: #fff; }
/* Phone numbers: tabular digits, and force LTR order so Persian digits and the
   dash never re-order inside the RTL paragraph. */
.mzf-footer__phone {
  font-variant-numeric: tabular-nums;
  letter-spacing: .03em;
  font-weight: 600;
  color: #e7ebee !important;
  direction: ltr;
  unicode-bidi: isolate;
}
.mzf-footer__phone:hover { color: #fff !important; }

/* WhatsApp CTA */
.mzf-footer__wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 9px 16px;
  border-radius: var(--r-pill);
  background: rgba(37, 211, 102, .14);
  border: 1px solid rgba(37, 211, 102, .35);
  color: #6ee7a0;
  font-size: .86rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .18s ease, transform .18s ease;
}
.mzf-footer__wa:hover { background: rgba(37, 211, 102, .24); transform: translateY(-1px); color: #8df0b6; }
.mzf-footer__wa svg { flex-shrink: 0; }

.mzf-footer__badges { display: flex; gap: 10px; }
.mzf-footer__badge {
  display: grid;
  place-items: center;
  min-width: 76px; height: 76px;
  padding: 8px;
  text-align: center;
  font-size: .72rem;
  color: #aab2ba;
  background: rgba(255,255,255,.06);
  border: 1px dashed rgba(255,255,255,.2);
  border-radius: var(--r);
}

/* ---- Copyright bar ---- */
.mzf-footer__bar {
  background: #0f1013;
  color: #8b939b;
  font-size: .82rem;
}
.mzf-footer__bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 16px;
}

/* ---- Back to top ---- */
.mzf-totop {
  position: fixed;
  bottom: 24px; inset-inline-start: 24px;
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  border: 0;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .2s ease;
  z-index: 90;
}
.mzf-totop.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.mzf-totop:hover { background: var(--brand-600); }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .mzf-footer__cols { grid-template-columns: 1fr 1fr; }
  .mzf-footer__trust-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .mzf-footer__cols { grid-template-columns: 1fr; }
  .mzf-footer__trust-grid { grid-template-columns: 1fr; }
  .mzf-footer__bar-inner { flex-direction: column; text-align: center; }
}
