/* ═══════════════════════════════════════════════════════
   Narmpa Footer — Light / Clean  (#B43F3F)
   ═══════════════════════════════════════════════════════ */

/* ── Contact Bar (فرم مشاوره) ── */
.dmh-footer__contact-bar {
    background: #fff;
    border-top: 1px solid #f0f0f0;
    padding: 24px 0;
    position: relative;
    z-index: 2;
}
.dmh-footer__contact-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.dmh-footer__contact-text { position: relative; padding-right: 18px; }
.dmh-footer__contact-text::before {
    content: '';
    position: absolute; right: 0; top: 4px;
    width: 4px; height: 44px;
    background: var(--dm-primary);
    border-radius: 4px;
}
.dmh-footer__contact-title { margin: 0 0 4px; font-size: 17px; font-weight: 600; color: #222; line-height: 1.6; }
.dmh-footer__contact-title span { color: var(--dm-primary); font-weight: 800; }
.dmh-footer__contact-desc { margin: 0; font-size: 13px; color: #777; line-height: 1.6; }

.dmh-footer__contact-form-wrap { flex-shrink: 0; min-width: 300px; }
.dmh-footer__form { position: relative; direction: rtl; }
.dmh-footer__input-group {
    display: flex; align-items: center;
    border: 1.5px solid #e8e8e8;
    border-radius: var(--dm-radius, 10px);
    overflow: hidden;
    background: #f8f9fb;
    transition: border-color .25s, box-shadow .25s;
}
.dmh-footer__input-group:focus-within {
    border-color: var(--dm-primary);
    background: #fff;
    box-shadow: 0 0 0 3px var(--dm-primary-10);
}
.dmh-footer__input-group input[type="tel"] {
    flex: 1; border: none; background: transparent;
    padding: 11px 14px; font-size: 13px; outline: none;
    font-family: inherit; text-align: right; color: #222;
}
.dmh-footer__input-group button {
    border: none; background: var(--dm-primary); color: #fff;
    padding: 11px 20px; cursor: pointer;
    display: flex; align-items: center; gap: 7px;
    font-size: 13px; font-family: inherit; font-weight: 700;
    transition: opacity .2s; white-space: nowrap;
}
.dmh-footer__input-group button:hover { opacity: .88; }
.dmh-footer__input-group button svg { fill: #fff; transform: scaleX(-1); flex-shrink: 0; }
.dmh-footer__form-status { font-size: 12px; min-height: 18px; margin-top: 6px; padding-right: 4px; }


/* ── Body (روشن) ── */
.dmh-footer {
    direction: rtl;
    background: #fff;
    color: #777;
    border-top: 1px solid #f0f0f0;
}
.dmh-footer .container { max-width: 1300px; margin: 0 auto; padding: 0 1.5rem; }
.dmh-footer__body { padding: 48px 0 36px; }

.dmh-footer__grid {
    display: flex;
    flex-wrap: wrap;
    direction: rtl;
    gap: 36px;
    align-items: flex-start;
    flex-direction: row-reverse;
}
.dmh-footer__col { flex: 1 1 150px; min-width: 0; }
/* ستون برند پهن‌تر و در سمت چپ (آخرین آیتم در RTL) */
.dmh-footer__col--about { flex: 1 1 280px; }

/* ── عنوان ستون‌ها ── */
.dmh-footer__col-title {
    font-size: 15px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 22px;
    padding-bottom: 12px;
    position: relative;
}
.dmh-footer__col-title::after {
    content: '';
    position: absolute; bottom: 0; right: 0;
    width: 34px; height: 3px;
    background: var(--dm-primary);
    border-radius: 2px;
}

/* ── منوها ── */
.dmh-footer__menu-list { list-style: none; margin: 0; padding: 0; }
.dmh-footer__menu-list li { margin-bottom: 13px; }
.dmh-footer__menu-list a {
    text-decoration: none;
    color: #777;
    font-size: 13.5px;
    line-height: 1.6;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color .2s, padding-right .2s;
}
.dmh-footer__menu-list a::before {
    content: '';
    display: inline-block;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--dm-primary);
    flex-shrink: 0;
    opacity: .55;
    transition: opacity .2s;
}
.dmh-footer__menu-list a:hover { color: var(--dm-primary); padding-right: 4px; }
.dmh-footer__menu-list a:hover::before { opacity: 1; }

/* ── لیست تماس ── */
.dmh-footer__contact-list { list-style: none; margin: 0; padding: 0; }
.dmh-footer__contact-item {
    display: flex; gap: 10px; align-items: flex-start;
    margin-bottom: 16px;
    font-size: 13.5px; line-height: 1.7; color: #777;
}
.dmh-footer__contact-icon { flex-shrink: 0; margin-top: 2px; }
.dmh-footer__contact-icon svg { fill: var(--dm-primary); display: block; }
.dmh-footer__contact-item a {
    color: inherit; text-decoration: none;
    direction: ltr; display: inline-block;
    transition: color .2s;
}
.dmh-footer__contact-item a:hover { color: var(--dm-primary); }

/* ── ستون برند (چپ) ── */
.dmh-footer__col--about { text-align: right; }
.dmh-footer__logo { display: inline-block; margin-bottom: 16px; }
.dmh-footer__logo img { height: 56px; width: auto; }
.dmh-footer__site-name {
    display: block; font-size: 20px; font-weight: 800;
    color: var(--dm-primary); text-decoration: none; margin-bottom: 16px;
}
.dmh-footer__about-text {
    font-size: 13.5px; line-height: 2; color: #888; margin: 0 0 20px;
}

/* ── شبکه‌های اجتماعی ── */
.dmh-footer__socials { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.dmh-footer__social-link {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: #f5f5f5;
    border: 1px solid #ececec;
    transition: background .22s, transform .22s, border-color .22s;
    text-decoration: none;
}
.dmh-footer__social-link svg { fill: #999; transition: fill .22s; }
.dmh-footer__social-link img { width: 20px; height: 20px; object-fit: contain; }
.dmh-footer__social-link:hover {
    background: var(--dm-primary);
    border-color: var(--dm-primary);
    transform: translateY(-3px);
}
.dmh-footer__social-link:hover svg { fill: #fff; }

/* ── نمادهای اعتماد ── */
.dmh-footer__namads { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.dmh-footer__namad-item { display: inline-flex; }
.dmh-footer__namad-item img {
    height: 76px; width: auto;
    border-radius: 8px; object-fit: contain;
    border: 1px solid #f0f0f0;
    background: #fff;
    transition: transform .2s;
}
.dmh-footer__namad-item:hover img { transform: scale(1.05); }


/* ── Bottom Bar (روشن) ── */
.dmh-footer__bottom {
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
    padding: 16px 0;
}
.dmh-footer__bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.dmh-footer__copyright,
.dmh-footer__credit {
    margin: 0;
    font-size: 12.5px;
    color: #999;
    line-height: 1.6;
}
.dmh-footer__copyright span,
.dmh-footer__credit span { color: var(--dm-primary); font-weight: 800; }


/* ══════════════════════════════
   Responsive
══════════════════════════════ */
@media (max-width: 1100px) {
    .dmh-footer__grid { gap: 30px; }
    .dmh-footer__col { flex: 1 1 30%; }
    .dmh-footer__col--about { flex: 1 1 100%; order: -1; }
}
@media (max-width: 640px) {
    .dmh-footer__grid { gap: 26px; }
    .dmh-footer__col { flex: 1 1 40%; }
    .dmh-footer__col--about { flex: 1 1 100%; }
    .dmh-footer__contact-inner { flex-direction: column; align-items: flex-start; }
    .dmh-footer__contact-form-wrap { width: 100%; min-width: unset; }
    .dmh-footer__contact-text { padding-right: 14px; }
    .dmh-footer__bottom-inner { flex-direction: column; align-items: center; text-align: center; }
    .dmh-footer__body { padding: 32px 0 24px; }
    .dmh-footer__socials { justify-content: flex-start; }
}
@media (max-width: 420px) {
    .dmh-footer__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   تطبیق فوتر با تم دارک (Dark Mode)
   ============================================================ */

body.theme-dark .dmh-footer__contact-bar,
body.theme-dark .dmh-footer,
body.theme-dark .dmh-footer__bottom {
    background: var(--dm-footer-bg);
    border-color: var(--dm-border);
}

body.theme-dark .dmh-footer__contact-title,
body.theme-dark .dmh-footer__col-title,
body.theme-dark .dmh-footer__site-name {
    color: #ffffff;
}

body.theme-dark .dmh-footer__contact-desc,
body.theme-dark .dmh-footer__about-text,
body.theme-dark .dmh-footer__menu-list a,
body.theme-dark .dmh-footer__contact-item,
body.theme-dark .dmh-footer__copyright,
body.theme-dark .dmh-footer__credit {
    color: var(--dm-footer-text);
}

/* اصلاح فرم فوتر در حالت دارک */
body.theme-dark .dmh-footer__input-group {
    background: var(--dm-border);
    border-color: var(--dm-border);
}

body.theme-dark .dmh-footer__input-group input[type="tel"] {
    color: #ffffff;
}

/* اصلاح آیکون‌های تماس */
body.theme-dark .dmh-footer__contact-icon svg {
    fill: var(--dm-primary);
}

/* اصلاح لینک‌ها در حالت هاور */
body.theme-dark .dmh-footer__menu-list a:hover,
body.theme-dark .dmh-footer__contact-item a:hover {
    color: var(--dm-primary);
}

/* اصلاح شبکه‌های اجتماعی */
body.theme-dark .dmh-footer__social-link {
    background: var(--dm-border);
    border-color: var(--dm-border);
}

body.theme-dark .dmh-footer__social-link svg {
    fill: var(--dm-text-muted);
}

body.theme-dark .dmh-footer__social-link:hover {
    background: var(--dm-primary);
    border-color: var(--dm-primary);
}

/* اصلاح نمادهای اعتماد */
body.theme-dark .dmh-footer__namad-item img {
    background: #ffffff; /* نمادها معمولا پس‌زمینه سفید دارند و باید روی بک‌گراند دارک سفید بمانند */
    border-color: transparent;
}

body.theme-dark .dmh-footer__logo img {
    filter: brightness(0) invert(1);
}