
/* =========================================
   PARIMAH FOOTER
========================================= */

.parimah-footer {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    direction: rtl;
    color: #ffffff;
    background:
        radial-gradient(
            ellipse at 78% 18%,
            rgba(190, 151, 83, 0.19) 0%,
            rgba(190, 151, 83, 0.06) 27%,
            transparent 55%
        ),
        radial-gradient(
            ellipse at 12% 100%,
            rgba(190, 151, 83, 0.12) 0%,
            transparent 38%
        ),
        linear-gradient(
            125deg,
            #101b30 0%,
            #172b43 48%,
            #0e1a2e 100%
        );
    font-family: inherit;
}

/* =========================================
   تزئینات پس‌زمینه
========================================= */

/* درخت طلایی گوشه پایین چپ */

.parimah-footer::before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 0;
    bottom: 0;
    width: 160px;
    height: 180px;
    background-image: url("../../images/footer-bg.png");
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: contain;
    opacity: 0.35;
    pointer-events: none;
}

/* هاله طلایی */

.parimah-footer::after {
    content: "";
    position: absolute;
    z-index: -1;
    left: 8%;
    bottom: -150px;
    width: 360px;
    height: 300px;
    border-radius: 50%;
    background: rgba(190, 151, 83, 0.12);
    filter: blur(90px);
    pointer-events: none;
}

/* محتوای داخلی فوتر */

.parimah-footer__inner {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 55px 0 18px;
}

/* =========================================
   چهار ستون فوتر
========================================= */

.parimah-footer__grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr 1.2fr;
    gap: 38px;
    align-items: start;
}

/* عنوان ستون‌ها */

.parimah-footer__title {
    position: relative;
    margin: 0 0 23px;
    padding-bottom: 13px;
    color: #d5b77e;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.8;
}

.parimah-footer__title::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 38px;
    height: 2px;
    border-radius: 5px;
    background: linear-gradient(90deg, #d9bd87, #a98449);
}

/* =========================================
   لیست‌ها و لینک‌ها
========================================= */

.parimah-footer__list {
    display: flex;
    flex-direction: column;
    gap: 13px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.parimah-footer__list li {
    margin: 0;
    padding: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 13px;
    line-height: 1.9;
}

.parimah-footer__list a {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255, 255, 255, 0.86);
    text-decoration: none;
    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.parimah-footer__list a:hover {
    color: #dfc28c;
    transform: translateX(-3px);
}

.parimah-footer__empty {
    color: rgba(255, 255, 255, 0.55) !important;
    font-size: 12px !important;
}

/* =========================================
   آیکون‌ها
========================================= */

.parimah-footer__icon {
    display: inline-flex;
    flex: 0 0 19px;
    width: 19px;
    height: 19px;
    margin-top: 3px;
    color: #d5b77e;
}

.parimah-footer__icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.parimah-footer__icon .parimah-footer__icon-fill {
    fill: currentColor;
    stroke: none;
}

/* =========================================
   ستون ارتباط با ما
========================================= */

.parimah-footer__column:first-child .parimah-footer__list {
    gap: 15px;
}

.parimah-footer__column:first-child .parimah-footer__list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

/* =========================================
   شبکه‌های اجتماعی
========================================= */

.parimah-footer__socials {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 23px;
}

.parimah-footer__socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    color: #d5b77e;
    border: 1px solid rgba(213, 183, 126, 0.4);
    border-radius: 50%;
    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease,
        border-color 0.3s ease;
}

.parimah-footer__socials svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.parimah-footer__socials .parimah-footer__icon-fill {
    fill: currentColor;
    stroke: none;
}

.parimah-footer__socials a:hover {
    color: #172b43;
    background: #d5b77e;
    border-color: #d5b77e;
    transform: translateY(-3px);
}

/* =========================================
   لوگو و برند
========================================= */

.parimah-footer__brand {
    padding-right: 5px;
}

.parimah-footer__brand-header {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 18px;
}

.parimah-footer__logo {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    max-width: 100%;
    margin: 0;
    text-decoration: none;
}

.parimah-footer__logo .custom-logo-link {
    display: inline-flex;
    align-items: center;
}

.parimah-footer__logo img.custom-logo {
    display: block;
    width: auto;
    height: auto;
    max-width: 75px;
    max-height: 65px;
    object-fit: contain;
}

.parimah-footer__brand-name {
    color: #e0c38d;
    font-size: 29px;
    font-weight: 800;
}

.parimah-footer__brand-title {
    margin: 0;
    color: #d5b77e;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.9;
}

.parimah-footer__description {
    max-width: 270px;
    margin: 0 0 15px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    line-height: 2.1;
}

.parimah-footer__brand-caption {
    color: #d5b77e;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    direction: ltr;
}

/* =========================================
   بخش انتهایی فوتر
========================================= */

.parimah-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 42px;
    padding-top: 17px;
    border-top: 1px solid rgba(213, 183, 126, 0.22);
}

.parimah-footer__bottom p,
.parimah-footer__bottom span {
    margin: 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: 11px;
    line-height: 1.8;
}

/* =========================================
   تبلت
========================================= */

@media (max-width: 900px) {

    .parimah-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 35px 28px;
    }

    .parimah-footer__inner {
        padding-top: 42px;
    }

    .parimah-footer__brand {
        grid-column: 1 / -1;
        grid-row: 1;
    }
}

/* =========================================
   موبایل
========================================= */

@media (max-width: 600px) {

    .parimah-footer__inner {
        width: min(100% - 32px, 420px);
        padding-top: 35px;
    }

    .parimah-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 18px;
    }

    .parimah-footer__brand {
        grid-column: 1 / -1;
    }

    .parimah-footer__title {
        margin-bottom: 17px;
        font-size: 15px;
    }

    .parimah-footer__list {
        gap: 10px;
    }

    .parimah-footer__list li {
        font-size: 12px;
    }

    .parimah-footer__description {
        font-size: 12px;
    }

    /* درخت کوچک‌تر در موبایل */

    .parimah-footer::before {
        width: 110px;
        height: 130px;
        opacity: 0.28;
    }

    .parimah-footer__brand-header {
        gap: 10px;
    }

    .parimah-footer__brand-title {
        font-size: 15px;
    }

    .parimah-footer__logo img.custom-logo {
        max-width: 65px;
        max-height: 55px;
    }

    .parimah-footer__socials {
        gap: 9px;
        margin-top: 18px;
    }

    .parimah-footer__socials a {
        width: 33px;
        height: 33px;
    }

    .parimah-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        margin-top: 30px;
    }
}

/* =========================================
   دسترس‌پذیری
========================================= */

@media (prefers-reduced-motion: reduce) {

    .parimah-footer__list a,
    .parimah-footer__socials a {
        transition: none;
    }
}
