/* =====================================================================
   فوتر جمع‌وجور و قابل تنظیم — هم‌سو با هویت بصری سایت
   ===================================================================== */
.sn-footer {
    padding: 2.6rem 0 .9rem;
    background: linear-gradient(180deg, #f7f9f3 0%, #f1f3ee 100%);
    border-top: 1px solid #e4eadd;
}

.sn-footer > .container { max-width: 1180px; }

.sn-footer-main {
    display: grid;
    grid-template-columns: 1.45fr .8fr 1.2fr;
    align-items: start;
    gap: 2.2rem;
}

/* ---------- برند ---------- */
.sn-footer-brand { display: grid; gap: .55rem; align-content: start; }
.sn-footer-brand .sn-brand-link { display: inline-flex; margin: 0; }
.sn-footer-brand .sn-brand-logo { width: 142px; max-width: 100%; margin: 0; }
.sn-footer-brand-text strong { display: block; color: var(--sn-dark); font-size: .95rem; font-weight: 900; }
.sn-footer-brand-text p { max-width: 330px; margin: .3rem 0 0; color: #87907f; font-size: .75rem; line-height: 1.95; }

.sn-footer-socials { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-top: .5rem; }
.sn-footer-socials-title { color: #9aa393; font-size: .67rem; margin-inline-end: .15rem; }
.sn-footer-socials .sn-social-sm { width: 34px; height: 34px; border-radius: 10px; font-size: .9rem; }
.sn-footer-socials.is-standalone { justify-content: center; margin: 1.2rem 0 .2rem; }

/* ---------- ستون‌ها ---------- */
.sn-footer-column h6 {
    position: relative;
    margin: 0 0 1rem;
    padding-bottom: .5rem;
    color: var(--sn-dark);
    font-size: .84rem;
    font-weight: 900;
}
.sn-footer-column h6::after {
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    width: 26px;
    height: 2px;
    content: "";
    background: linear-gradient(90deg, var(--sn-primary), #b7d979);
    border-radius: 2px;
}

.sn-footer-links ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem .9rem; margin: 0; }
.sn-footer-link { display: inline-flex; align-items: center; gap: .3rem; color: #7d8981; font-size: .74rem; text-decoration: none; transition: color .2s, transform .2s; }
.sn-footer-link i { color: var(--sn-primary); font-size: .55rem; opacity: .85; transition: transform .2s; }
.sn-footer-link:hover { color: var(--sn-primary-dark); transform: translateX(-2px); }

.sn-footer-contact { display: grid; gap: .4rem; }
.sn-footer-contact h6 { margin-bottom: .3rem; }
.sn-footer-contact p { display: flex; align-items: flex-start; gap: .5rem; margin: 0; color: #7d8981; font-size: .73rem; line-height: 1.8; }
.sn-footer-contact p i { flex: 0 0 16px; color: var(--sn-primary-dark); font-size: .85rem; text-align: center; }
.sn-footer-contact p a { color: inherit; text-decoration: none; }
.sn-footer-contact p a:hover { color: var(--sn-primary-dark); }
.sn-footer-postal { display: block; margin-top: .15rem; color: #9aa393; font-size: .66rem; }

/* ---------- پایین فوتر ---------- */
.sn-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem 1rem;
    margin-top: 1.7rem;
    padding-top: .9rem;
    color: #9aa49d;
    border-top: 1px solid #e4eadd;
    font-size: .68rem;
}
.sn-footer-note { color: #9aa49d; }
.sn-footer .sn-admin-entry { font-size: .66rem; }

/* ---------- چیدمان عریض (انتخابی مدیر) ---------- */
.sn-footer-wide { padding-top: 3.6rem; }
.sn-footer-wide .sn-footer-main { grid-template-columns: 1.5fr .9fr 1.2fr; gap: 2.8rem; }
.sn-footer-wide .sn-footer-brand .sn-brand-logo { width: 164px; }
.sn-footer-wide .sn-footer-brand-text p { font-size: .8rem; }
.sn-footer-wide .sn-footer-link { font-size: .8rem; }

/* ---------- فوتر خاموش ---------- */
.sn-footer-disabled { padding: .45rem 0; background: #f1f1f1; border-top: 0; }
.sn-footer-disabled .sn-footer-bottom { margin-top: 0; padding-top: .1rem; border-top: 0; justify-content: flex-end; }

/* ---------- دارک مود ---------- */
body.dark_mode .sn-footer { background: #262626; border-top-color: #3a3a3a; }
body.dark_mode .sn-footer-brand-text strong,
body.dark_mode .sn-footer-column h6 { color: #ececec; }
body.dark_mode .sn-footer-brand-text p,
body.dark_mode .sn-footer-contact p,
body.dark_mode .sn-footer-link { color: #b0abab; }
body.dark_mode .sn-footer-bottom { color: #8f8a8a; border-top-color: #3a3a3a; }
body.dark_mode .sn-footer-disabled { background: #232323; }

/* ---------- ریسپانسیو ---------- */
@media (max-width: 991px) {
    .sn-footer-main { grid-template-columns: 1fr 1fr; gap: 1.8rem 2rem; }
    .sn-footer-brand { grid-column: 1 / -1; }
    .sn-footer-socials { margin-top: .2rem; }
}

@media (max-width: 575px) {
    .sn-footer { padding-top: 2rem; }
    .sn-footer-main { grid-template-columns: 1fr; gap: 1.5rem; }
    .sn-footer-brand { grid-column: auto; }
    .sn-footer-links ul { grid-template-columns: 1fr; }
    .sn-footer-bottom { align-items: flex-start; flex-direction: column; gap: .4rem; }
}
