/* ===== فوتر سایت — مینیمال و ریسپانسیو ===== */
.rf {
    --rf-green: #198754;
    --rf-green-soft: #e8f5ee;
    --rf-gold: #ffc107;
    --rf-ink: #1c2a23;
    --rf-muted: #6b7a72;
    --rf-line: #e6ece8;

    position: relative;
    direction: rtl;
    margin-top: 3rem;
    background: #fbfcfb;
    color: var(--rf-ink);
    font-size: .92rem;
}
.rf::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--rf-green), #69be59 55%, var(--rf-gold));
}
.rf a { text-decoration: none; }

.rf-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 20px 40px;
    display: grid;
    grid-template-columns: 1.6fr .8fr .8fr 1.2fr;
    gap: 40px 48px;
}

/* --- برند --- */
.rf-logo img {
    height: 56px;
    width: auto;
    mix-blend-mode: multiply; /* پس‌زمینه‌ی سفید لوگو با فوتر یکی می‌شود */
}
.rf-about {
    margin: 18px 0 22px;
    max-width: 380px;
    color: var(--rf-muted);
    line-height: 2;
}
.rf-about strong { color: var(--rf-ink); font-weight: 700; }

.rf-social { display: flex; gap: 10px; flex-wrap: wrap; }
.rf-social a {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--rf-line);
    border-radius: 50%;
    background: #fff;
    color: var(--rf-muted);
    font-size: 1.1rem;
    transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}
.rf-social a img { width: 20px; height: 20px; filter: grayscale(1) opacity(.65); transition: filter .25s ease; }
.rf-social a:hover { transform: translateY(-3px); color: #fff; border-color: transparent; }
.rf-social a:hover img { filter: none; }
.rf-social .tg:hover { background: #229ed9; }
.rf-social .ig:hover { background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045); }
.rf-social .wa:hover { background: #25d366; }
.rf-social .bl:hover { background: #fff; border-color: var(--rf-line); box-shadow: 0 6px 16px rgba(0,0,0,.08); }

/* --- ستون‌های لینک --- */
.rf-title {
    margin: 0 0 18px;
    font-size: .95rem;
    font-weight: 800;
    color: var(--rf-ink);
}
.rf-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rf-list a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--rf-muted);
    transition: color .2s ease, transform .2s ease;
}
.rf-list a::before {
    content: '';
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--rf-gold);
    transition: width .2s ease;
}
.rf-list a:hover { color: var(--rf-green); }
.rf-list a:hover::before { width: 12px; }
.rf-new {
    font-size: .65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    background: #fdecee;
    color: #dc3545;
}

/* --- تماس --- */
.rf-contact { display: grid; gap: 10px; }
.rf-call {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid var(--rf-line);
    border-radius: 14px;
    color: var(--rf-ink);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.rf-call:hover {
    border-color: rgba(25,135,84,.35);
    box-shadow: 0 8px 20px rgba(25,135,84,.08);
    transform: translateY(-2px);
    color: var(--rf-ink);
}
.rf-call i {
    width: 36px;
    height: 36px;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--rf-green-soft);
    color: var(--rf-green);
    font-size: .9rem;
}
.rf-call small { display: block; color: var(--rf-muted); font-size: .72rem; line-height: 1.4; }
.rf-call b {
    display: block;
    direction: ltr;
    text-align: right;
    font-size: 1rem;
    letter-spacing: .5px;
    line-height: 1.5;
}

/* --- نوار پایین --- */
.rf-bottom { border-top: 1px solid var(--rf-line); }
.rf-bottom-in {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    flex-wrap: wrap;
}
.rf-copy { color: var(--rf-muted); font-size: .82rem; line-height: 1.9; }
.rf-copy span { opacity: .8; }

.rf-badges { display: flex; align-items: center; gap: 10px; }
.rf-badges a {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    background: #fff;
    border: 1px solid var(--rf-line);
    border-radius: 12px;
    transition: transform .2s ease, box-shadow .2s ease;
}
.rf-badges a:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.08); }
.rf-badges img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(.4);
    opacity: .9;
    transition: filter .2s ease, opacity .2s ease;
}
.rf-badges a:hover img { filter: none; opacity: 1; }

/* --- تبلت --- */
@media (max-width: 991.98px) {
    .rf-main {
        grid-template-columns: 1fr 1fr;
        gap: 36px 28px;
        padding-top: 44px;
    }
    .rf-brand { grid-column: 1 / -1; }
    .rf-about { max-width: 560px; }
    .rf-contact-col { grid-column: 1 / -1; }
    .rf-contact { grid-template-columns: 1fr 1fr; }
}

/* --- موبایل --- */
@media (max-width: 575.98px) {
    .rf { margin-top: 2rem; }
    .rf-main { padding: 36px 16px 28px; gap: 30px 16px; }
    .rf-brand { text-align: center; }
    .rf-logo img { height: 48px; }
    .rf-about { margin-inline: auto; }
    .rf-social { justify-content: center; }
    .rf-contact { grid-template-columns: 1fr; }
    .rf-bottom-in {
        flex-direction: column-reverse;
        text-align: center;
        padding: 18px 16px;
    }
    .rf-badges { justify-content: center; }
}
