/* ---------------- FOOTER SYSTEM ---------------- */

.main-footer {
    background-color: var(--primary-color, #0d121f);
    color: var(--white, #ffffff);
    padding-top: 70px;
    border-top: 4px solid var(--accent-color, #d9386c);
    direction: rtl;
    text-align: right;
}

/* گرید ۳ ستونه متوازن با فضای عریض برای اطلاعات تماس */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.1fr 1.7fr; 
    gap: 35px;
    margin-bottom: 50px;
}

/* هدرهای ستون فوتر */
.footer-heading {
    color: var(--accent-color, #d9386c);
    font-size: 1.1rem;
    margin-bottom: 25px;
    font-weight: 800;
    position: relative;
    padding-bottom: 10px;
}

/* خط تزیینی کوتاه زیر عنوان‌های فوتر */
.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 35px;
    height: 2px;
    background-color: var(--accent-color, #d9386c);
    border-radius: 2px;
}

/* پاراگراف درباره ما در فوتر */
.footer-text {
    color: #cbd5e1;
    font-size: 0.9rem;
    line-height: 1.8;
    text-align: right;
    margin: 0;
}

/* ساختار بدون پرش ردیف‌های اطلاعات تماس */
.footer-contact-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    color: #cbd5e1;
    font-size: 0.88rem;
    line-height: 1.7;
    text-align: right;
}

.footer-contact-row i {
    margin-top: 4px;
    flex-shrink: 0;
}

.phone-link {
    color: #cbd5e1;
    text-decoration: none;
    transition: var(--transition, all 0.3s ease);
}

.phone-link:hover {
    color: var(--accent-color, #d9386c);
}

/* لیست پیوندها در فوتر */
.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 14px;
}

/* افکت هاور پیوندها */
.footer-list a {
    color: #cbd5e1;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0;
    transition: var(--transition, all 0.3s ease);
}

.footer-list a::before {
    content: '←';
    font-size: 0.8rem;
    color: var(--accent-color, #d9386c);
    opacity: 0;
    transform: translateX(8px);
    transition: var(--transition, all 0.3s ease);
    display: inline-block;
    width: 0;
}

.footer-list a:hover {
    color: var(--accent-color, #d9386c);
    padding-right: 4px;
}

.footer-list a:hover::before {
    opacity: 1;
    transform: translateX(-4px);
    width: 14px;
}

/* بخش کپی‌رایت */
.copyright {
    background-color: #070b14;
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.82rem;
    color: var(--text-light, #94a3b8);
    text-align: center;
}

.text-warning { 
    color: var(--accent-color, #d9386c) !important; 
    font-weight: 700;
}

/* ---------------- بهینه‌سازی دقیق واکنش‌گرایی ---------------- */

@media (max-width: 992px) {
    .main-footer {
        padding-top: 50px;
    }

    .footer-grid { 
        grid-template-columns: 1.2fr 1fr;
        gap: 35px;
        margin-bottom: 35px;
    }
}

@media (max-width: 650px) {
    .footer-grid { 
        grid-template-columns: 1fr; /* تک ستونه در موبایل */
        gap: 28px;
        text-align: right;
    }

    .footer-heading::after {
        right: 0;
        transform: none;
    }
}