﻿.p-footer {
    background: #f7f5fb;
    color: #4b5567;
    font-family: IRANSans, Vazirmatn, sans-serif;
    padding: 26px 0 10px; /* ارتفاع کمتر */
    border-top: 1px solid #e6e9f2;
}

.p-footer-inner {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 18px; /* فاصله کمتر */
    align-items: start;
}

.footer-col {
    text-align: center;
}

    .footer-col h3 {
        color: #111827;
        font-size: 15px;
        font-weight: 700;
        margin-bottom: 10px;
        position: relative;
    }

        .footer-col h3::after {
            content: "";
            width: 28px;
            height: 2px;
            background: #6d28d9;
            border-radius: 2px;
            margin: 6px auto 0;
            display: block;
        }

.footer-logo {
    width: 42px;
    margin: 0 auto 10px;
    display: block;
}

.about .text {
    font-size: 13px;
    line-height: 24px;
    margin-bottom: 10px;
    color: #5f6b7a;
}

.address,
.phone {
    font-size: 13px;
    line-height: 22px;
    color: #6b7280;
    margin: 0;
}

/* لینک‌ها */
.p-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .p-footer ul li {
        margin-bottom: 7px;
    }

        .p-footer ul li a {
            text-decoration: none;
            color: #4b5567;
            font-size: 13px;
            transition: 0.2s;
        }

            .p-footer ul li a:hover {
                color: #6d28d9;
            }

/* شبکه اجتماعی */
.socials {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

    .socials a {
        background: #ece8f8;
        width: 34px;
        height: 34px;
        border-radius: 10px;
        display: flex;
        justify-content: center;
        align-items: center;
        color: #5b21b6;
        font-size: 14px;
        transition: 0.25s;
    }

        .socials a:hover {
            background: #6d28d9;
            color: #fff;
            transform: translateY(-2px);
        }

/* پایین فوتر */
.p-footer-bottom {
    text-align: center;
    padding-top: 12px;
    margin-top: 16px;
    border-top: 1px solid #e5e7eb;
    font-size: 12px;
    color: #7b8494;
}

/* دکمه بالا */
.scroll-top {
    position: fixed;
    bottom: 18px;
    right: 18px;
    background: #6d28d9;
    color: #fff;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.25s;
    z-index: 99;
    box-shadow: 0 4px 14px rgba(109,40,217,.16);
}

    .scroll-top:hover {
        background: #5b21b6;
    }

/* تبلت */
@media (max-width: 992px) {
    .p-footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

/* موبایل */
@media (max-width: 576px) {
    .p-footer {
        padding: 22px 0 10px;
    }

    .p-footer-inner {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 0 16px;
    }

    .footer-col {
        text-align: center;
    }

    .about .text {
        max-width: 95%;
        margin: 0 auto 10px;
    }

    .socials {
        justify-content: center;
    }

    .p-footer-bottom {
        margin-top: 14px;
        padding-top: 10px;
    }
}
