/* ========================================
   MyCoupon — Footer v2
   سه ستون مینیمال، بدون بنر خبرنامه بالا
   رنگ‌ها فقط از متغیرهای اصلی قالب
======================================== */

.mcw-footer {
  margin-top: 36px;
  padding: 36px 0 26px;
  background: var(--white);
}

.mcw-wrap {
  display: grid;
  grid-template-columns: 1.25fr .9fr 1fr;
  gap: 64px;
  align-items: start;
}

.mcw-col {
  min-width: 0;
}

.mcw-title {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.4;
  font-weight: 800;
}

/* ========================================
   معرفی مای کوپن
======================================== */

.mcw-brand {
  margin-bottom: 18px;
}

.mcw-brand-link,
.mcw-brand-text {
  display: inline-flex;
  align-items: center;
  color: var(--brand);
  text-decoration: none;
}

.mcw-brand-logo {
  display: block;
  width: auto;
  max-width: 190px;
  max-height: 62px;
  object-fit: contain;
}

.mcw-brand-text {
  font-size: 30px;
  font-weight: 800;
}

.mcw-about-title {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 700;
}

.mcw-about-desc {
  max-width: 430px;
  margin: 0;
  color: var(--ink-alt);
  font-size: 13.5px;
  line-height: 2;
}

/* مزایا - آیکن خطی طوسی */
.mcw-feature-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;

  margin-top: 14px;
  padding-top: 20px;
}

.mcw-feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;

  min-width: 0;

  color: var(--muted);
  text-align: center;
  font-size: 11.5px;
  line-height: 1.6;
}

.mcw-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 34px;
  height: 34px;

  color: var(--muted);
}

.mcw-feature-icon svg {
  width: 24px;
  height: 24px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ========================================
   دسترسی سریع
======================================== */

.mcw-quick-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.mcw-quick-list li {
  border-bottom: 1px solid var(--line);
}

.mcw-quick-list li:last-child {
  border-bottom: 0;
}

.mcw-quick-list a {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 10px;

  min-height: 47px;

  color: var(--ink-alt);
  text-decoration: none;
  font-size: 13.5px;

  transition: color .18s ease;
}

.mcw-quick-list a:hover {
  color: var(--brand);
}

.mcw-quick-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.mcw-quick-icon svg,
.mcw-quick-arrow {
  width: 18px;
  height: 18px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mcw-quick-arrow {
  width: 15px;
  height: 15px;
  color: var(--muted);
}

.mcw-quick-list a:hover .mcw-quick-icon,
.mcw-quick-list a:hover .mcw-quick-arrow {
  color: var(--brand);
}

/* ========================================
   خبرنامه
======================================== */

.mcw-newsletter-note {
  max-width: 390px;
  margin: 0 0 18px;
  color: var(--ink-alt);
  font-size: 13.5px;
  line-height: 2;
}

.mcw-newsletter-form {
  display: grid;
  gap: 10px;
}

.mcw-email-field {
  position: relative;
}

.mcw-email-field svg {
  position: absolute;
  top: 50%;
  right: 14px;

  width: 19px;
  height: 19px;

  transform: translateY(-50%);

  fill: none;
  stroke: var(--muted);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;

  pointer-events: none;
}

.mcw-email-field input {
  width: 100%;
  height: 48px;
  box-sizing: border-box;

  padding: 0 42px 0 14px;

  border: 1px solid var(--line);
  border-radius: 10px;

  background: var(--white);
  color: var(--ink);

  font: inherit;
  font-size: 13px;
  outline: none;
}

.mcw-email-field input::placeholder {
  color: var(--muted);
}

.mcw-email-field input:focus {
  border-color: var(--brand);
}

.mcw-newsletter-form button {
  width: 100%;
  height: 48px;

  border: 1px solid var(--brand);
  border-radius: 10px;

  background: var(--brand);
  color: var(--white);

  font: inherit;
  font-size: 14px;
  font-weight: 600;

  cursor: pointer;
  transition: opacity .18s ease, transform .12s ease;
}

.mcw-newsletter-form button:hover {
  opacity: .92;
}

.mcw-newsletter-form button:active {
  transform: scale(.98);
}

.mcw-newsletter-privacy {
  display: flex;
  align-items: center;
  gap: 6px;

  margin: 9px 0 0;

  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.mcw-newsletter-privacy svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ========================================
   نوار پایین فوتر
======================================== */

.site-footer {
  background: var(--white);
}

.mcw-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  padding: 21px 0 24px;

  border-top: 1px solid var(--line);
}

.mcw-copyright {
  margin: 0;
  color: var(--ink-alt);
  font-size: 12px;
}

.mcw-legal-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mcw-legal-links a {
  color: var(--ink-alt);
  text-decoration: none;
  font-size: 12px;
  transition: color .18s ease;
}

.mcw-legal-links a:hover {
  color: var(--brand);
}

.mcw-legal-links > span {
  width: 1px;
  height: 14px;
  background: var(--line);
}

/* ========================================
   Responsive
======================================== */

@media (max-width: 1024px) {
  .mcw-wrap {
    gap: 34px;
  }

  .mcw-feature-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .mcw-footer {
    margin-top: 28px;
    padding: 28px 0 18px;
  }

  .mcw-wrap {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .mcw-about,
  .mcw-quick,
  .mcw-newsletter {
    padding-bottom: 25px;
    border-bottom: 1px solid var(--line);
  }

  .mcw-newsletter {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .mcw-brand-logo {
    max-width: 170px;
  }

  .mcw-about-desc,
  .mcw-newsletter-note {
    max-width: none;
  }

  .mcw-feature-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .mcw-feature-item {
    font-size: 10.5px;
  }

  .mcw-footer-bottom {
    flex-direction: column;
    gap: 13px;
    text-align: center;
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
  }

  .mcw-legal-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .mcw-feature-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 8px;
  }

  .mcw-title {
    font-size: 18px;
  }

  .mcw-about-title {
    font-size: 16px;
  }
}


/* نمایش مطمئن لوگوی فوتر */
.mcw-footer .mcw-brand-link {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
}

.mcw-footer .mcw-brand-logo {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 190px !important;
  max-height: 60px !important;
  object-fit: contain !important;
  opacity: 1 !important;
  visibility: visible !important;
}


/* ========================================
   لوگوی فوتر — همان SVG هدر
======================================== */
.mcw-footer .mcw-brand-link {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
}

.mcw-footer .mcw-brand-link > svg {
  display: block;
  width: 190px;
  max-width: 100%;
  height: auto;
  max-height: 60px;
}

@media (max-width: 768px) {
  .mcw-footer .mcw-brand-link > svg {
    width: 170px;
  }
}


/* Mobile fixed-nav spacing: body already reserves space; don't double it in footer. */
@media (max-width:768px){
  .mcw-footer-bottom{padding-bottom:18px !important}
  .site-footer{padding-bottom:0 !important}
}
