/* ----------------------
/ File: footer.css
/ Theme: Artender
/ Developer: sepehrdarvishii
/ Section: Site Footer Styles
/ -------------------- */


/* ----------------------
/ Footer Base
/ -------------------- */
.artender-site-footer {
    width: 100%;
    background: #ffffff;
    direction: rtl;
    margin-top: 50px;
    position: relative;
    z-index: 1;
    --artender-footer-color: var(--artender-primary-color, #f50000);
    --artender-footer-hover-color: var(--artender-primary-hover-color, #d90000);
}

.artender-footer-box {
    width: calc(100% - (var(--artender-site-side-padding) * 2));
    max-width: var(--artender-site-max-width);
    margin-right: auto;
    margin-left: auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 24px rgba(15, 23, 42, 0.16);
    padding: 28px 28px 30px;
    position: relative;
    z-index: 2;
    direction: rtl;
    text-align: right;
}


/* ----------------------
/ Footer Titles
/ -------------------- */
.artender-footer-title {
    color: #111827;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.8;
    margin: 0 0 18px;
    padding: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    white-space: nowrap;
    direction: rtl;
    text-align: right;
}

.artender-footer-title::after {
    content: "";
    flex: 1 1 auto;
    min-width: 54px;
    max-width: 120px;
    height: 2px;
    background: var(--artender-footer-color);
    display: inline-block;
    margin-right: 16px;
    border-radius: 50px;
}


/* ----------------------
/ Footer Top
/ -------------------- */
.artender-footer-top {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) 1.35fr;
    gap: 30px;
    align-items: start;
    direction: rtl;
    text-align: right;
}

.artender-footer-column {
    min-width: 0;
    direction: rtl;
    text-align: right;
}


/* ----------------------
/ Footer Menus
/ -------------------- */
.artender-footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    direction: rtl;
    text-align: right;
}

.artender-footer-menu li {
    margin: 0 0 10px;
    padding: 0;
    direction: rtl;
    text-align: right;
}

.artender-footer-menu li a {
    color: #111827;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.8;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    transition: color 0.2s ease, transform 0.2s ease;
    direction: rtl;
    text-align: right;
}

.artender-footer-menu li a::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: var(--artender-footer-color);
    flex: 0 0 auto;
}

.artender-footer-menu li a:hover {
    color: var(--artender-footer-color);
    transform: translateX(-3px);
}


/* ----------------------
/ Contact Column
/ -------------------- */
.artender-footer-contact {
    direction: rtl;
    text-align: right;
}

.artender-footer-address {
    color: #111827;
    font-size: 13px;
    font-weight: 700;
    line-height: 2.2;
    margin-bottom: 14px;
    direction: rtl;
    text-align: right;
}

.artender-footer-phone {
    width: 100%;
    height: 38px;
    background: var(--artender-footer-color);
    color: #ffffff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    direction: ltr;
    font-size: 16px;
    font-weight: 900;
    margin-bottom: 8px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.artender-footer-phone:hover {
    color: #ffffff;
    background: var(--artender-footer-hover-color);
    transform: translateY(-1px);
}

.artender-footer-route-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    direction: rtl;
}

.artender-footer-route-buttons a {
    height: 36px;
    background: var(--artender-footer-color);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
    transition: background 0.2s ease;
}

.artender-footer-route-buttons a:first-child {
    border-radius: 0 4px 4px 0;
}

.artender-footer-route-buttons a:last-child {
    border-radius: 4px 0 0 4px;
}

.artender-footer-route-buttons a:hover {
    color: #ffffff;
    background: var(--artender-footer-hover-color);
}


/* ----------------------
/ Footer Bottom
/ درباره ما و دسترسی سریع ثابت می‌مانند
/ -------------------- */
.artender-footer-bottom {
    display: grid;
    grid-template-columns: 2.1fr 1fr 1.2fr;
    grid-template-areas: "about quick trust";
    gap: 42px;
    align-items: start;
    margin-top: 38px;
    direction: rtl;
    text-align: right;
}

.artender-footer-bottom--combined-symbols {
    grid-template-columns: 2.1fr 1fr 1.2fr !important;
    grid-template-areas: "about quick trust" !important;
    gap: 42px !important;
}

.artender-footer-about {
    grid-area: about;
    direction: rtl;
    text-align: right;
}

.artender-footer-quick {
    grid-area: quick;
    direction: rtl;
    text-align: right;
}

.artender-footer-trust {
    grid-area: trust;
    direction: rtl;
    text-align: right;
    width: 100%;
    min-width: 0;
}

.artender-footer-about p {
    color: #111827;
    font-size: 14px;
    font-weight: 600;
    line-height: 2.3;
    text-align: justify;
    direction: rtl;
    margin: 0;
}


/* ----------------------
/ Footer Symbols - HTML Mode
/ -------------------- */
.artender-footer-symbols {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    flex-wrap: wrap;
    direction: rtl;
    width: 100%;
}

.artender-footer-symbols p {
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 14px !important;
    flex-wrap: wrap !important;
}

.artender-footer-symbols a:not(.artender-footer-symbols-image-link),
.artender-footer-symbols > img,
.artender-footer-symbols p > img {
    width: 86px;
    height: 86px;
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.artender-footer-symbols a:not(.artender-footer-symbols-image-link):hover,
.artender-footer-symbols > img:hover,
.artender-footer-symbols p > img:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.artender-footer-symbols a:not(.artender-footer-symbols-image-link) img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.artender-footer-symbols > img,
.artender-footer-symbols p > img {
    object-fit: contain;
}


/* ----------------------
/ Combined Symbols Image Mode
/ عکس ترکیبی نمادها با عرض 65 درصد داخل ستون خودش
/ -------------------- */
.artender-footer-trust--combined {
    width: 100% !important;
    min-width: 0 !important;
}

.artender-footer-symbols--combined {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    align-items: center !important;
    justify-content: flex-start !important;
    direction: rtl !important;
}

.artender-footer-symbols--combined .artender-footer-symbols-image-link {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;

    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;

    display: block !important;
    overflow: visible !important;
    box-shadow: none !important;
}

.artender-footer-symbols--combined .artender-footer-symbols-image-link:hover {
    transform: none !important;
    box-shadow: none !important;
}

.artender-footer-symbols--combined .artender-footer-symbols-image-link img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;

    object-fit: contain !important;
    display: block !important;

    border-radius: 10px !important;
    border: 1px solid #f0f0f0 !important;
    background: #ffffff !important;
    padding: 0 !important;
}


/* ----------------------
/ Copyright + Developer
/ -------------------- */
.artender-footer-copyright {
    background: var(--artender-footer-color);
    color: #ffffff;
    min-height: 76px;
    margin-top: -18px;
    padding-top: 30px;
    padding-bottom: 18px;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.8;
    position: relative;
    z-index: 0;
    direction: rtl;
    text-align: center;
}

.artender-footer-copyright-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    direction: rtl;
    text-align: center;
}

.artender-footer-copyright-text {
    color: #ffffff;
    direction: rtl;
    text-align: center;
    width: 100%;
}

.artender-footer-developer {
    color: #ffffff;
    direction: rtl;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    width: 100%;
    font-size: 13px;
    font-weight: 800;
}

.artender-footer-developer a {
    color: #ffffff;
    font-weight: 900;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.65);
    transition: opacity 0.2s ease;
}

.artender-footer-developer a:hover {
    color: #ffffff;
    opacity: 0.82;
}


/* ----------------------
/ Responsive
/ -------------------- */
@media (max-width: 1280px) {
    .artender-footer-top {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .artender-footer-contact {
        grid-column: span 1;
    }

    .artender-footer-bottom,
    .artender-footer-bottom--combined-symbols {
        grid-template-columns: 1.5fr 1fr !important;
        grid-template-areas:
            "about about"
            "quick trust" !important;
    }

    .artender-footer-symbols--combined .artender-footer-symbols-image-link {
        width: 75% !important;
        max-width: 75% !important;
    }
}

@media (max-width: 991px) {
    .artender-site-footer {
        margin-top: 32px;
    }

    .artender-footer-box {
        border-radius: 12px 12px 0 0;
        padding: 24px 18px 26px;
    }

    .artender-footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 28px 18px;
    }

    .artender-footer-contact {
        grid-column: 1 / -1;
    }

    .artender-footer-bottom,
    .artender-footer-bottom--combined-symbols {
        grid-template-columns: 1fr !important;
        grid-template-areas:
            "about"
            "quick"
            "trust" !important;
        gap: 28px;
    }

    .artender-footer-title {
        font-size: 14px;
    }

    .artender-footer-title::after {
        max-width: 90px;
    }

    .artender-footer-symbols--combined {
        justify-content: flex-start !important;
    }

    .artender-footer-symbols--combined .artender-footer-symbols-image-link {
        width: 65% !important;
        max-width: 65% !important;
    }

    .artender-footer-copyright-inner {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 4px;
    }

    .artender-footer-copyright-text,
    .artender-footer-developer {
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .artender-footer-top {
        grid-template-columns: 1fr;
    }

    .artender-footer-route-buttons {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .artender-footer-route-buttons a {
        border-radius: 6px !important;
    }

    .artender-footer-symbols {
        justify-content: center;
    }

    .artender-footer-symbols--combined {
        justify-content: center !important;
    }

    .artender-footer-symbols--combined .artender-footer-symbols-image-link {
        width: 85% !important;
        max-width: 85% !important;
    }

    .artender-footer-copyright {
        font-size: 12px;
        padding-right: 14px;
        padding-left: 14px;
    }

    .artender-footer-developer {
        font-size: 12px;
    }
}

/* ----------------------
/ Mobile Footer Minimal Mode
/ در موبایل فقط آدرس و تماس، دسترسی سریع، نمادها، کپی‌رایت و توسعه‌دهنده نمایش داده شود
/ -------------------- */

@media (max-width: 991px) {

    /* مخفی کردن ستون‌های دسته‌بندی فوتر */
    .artender-footer-top > .artender-footer-column:not(.artender-footer-contact) {
        display: none !important;
    }

    /* نمایش فقط آدرس و تماس */
    .artender-footer-contact {
        display: block !important;
        grid-column: 1 / -1 !important;
    }

    /* فوتر بالا در موبایل تک‌ستونه شود */
    .artender-footer-top {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }

    /* مخفی کردن درباره ما در موبایل */
    .artender-footer-about {
        display: none !important;
    }

    /* فقط دسترسی سریع و نمادها بمانند */
    .artender-footer-bottom,
    .artender-footer-bottom--combined-symbols {
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-template-areas:
            "quick"
            "trust" !important;
        gap: 26px !important;
        margin-top: 28px !important;
    }

    .artender-footer-quick {
        display: block !important;
        grid-area: quick !important;
    }

    .artender-footer-trust {
        display: block !important;
        grid-area: trust !important;
    }

    /* چیدمان بهتر موبایل */
    .artender-footer-box {
        padding: 22px 16px 24px !important;
        border-radius: 14px 14px 0 0 !important;
    }

    .artender-footer-title {
        font-size: 14px !important;
        margin-bottom: 14px !important;
    }

    .artender-footer-title::after {
        max-width: 80px !important;
    }

    .artender-footer-address {
        font-size: 13px !important;
        line-height: 2.1 !important;
        margin-bottom: 12px !important;
    }

    .artender-footer-phone {
        height: 42px !important;
        border-radius: 8px !important;
        font-size: 15px !important;
    }

    .artender-footer-route-buttons {
        grid-template-columns: 1fr 1fr !important;
        gap: 6px !important;
    }

    .artender-footer-route-buttons a {
        height: 38px !important;
        border-radius: 8px !important;
        font-size: 12px !important;
    }

    /* نمادها وسط‌چین و مرتب */
    .artender-footer-symbols {
        justify-content: center !important;
    }

    .artender-footer-symbols--combined {
        justify-content: center !important;
    }

    .artender-footer-symbols--combined .artender-footer-symbols-image-link {
        width: 85% !important;
        max-width: 85% !important;
    }

    .artender-footer-symbols a:not(.artender-footer-symbols-image-link),
    .artender-footer-symbols > img,
    .artender-footer-symbols p > img {
        width: 82px !important;
        height: 82px !important;
    }

    /* کپی‌رایت و طراحی توسعه حتماً نمایش داده شود */
    .artender-footer-copyright {
        display: block !important;
        font-size: 12px !important;
        padding: 28px 14px 16px !important;
        margin-top: -14px !important;
    }

    .artender-footer-copyright-inner {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 5px !important;
        text-align: center !important;
    }

    .artender-footer-copyright-text {
        display: block !important;
        text-align: center !important;
        width: 100% !important;
    }

    .artender-footer-developer {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        font-size: 12px !important;
        text-align: center !important;
    }
}

/* ----------------------
/ Desktop footer container lock
/ Footer stays the same width as the main content on desktop.
/ -------------------- */
@media (min-width: 992px) {
    .artender-footer-box,
    .artender-footer-copyright {
        width: calc(100% - (var(--artender-site-side-padding) * 2)) !important;
        max-width: var(--artender-site-max-width) !important;
        margin-right: auto !important;
        margin-left: auto !important;
    }

    .artender-footer-box {
        padding: 28px 28px 30px !important;
    }

    .artender-footer-top {
        grid-template-columns: repeat(4, minmax(0, 1fr)) 1.35fr !important;
        gap: 24px !important;
    }

    .artender-footer-contact {
        grid-column: auto !important;
    }

    .artender-footer-bottom,
    .artender-footer-bottom--combined-symbols {
        grid-template-columns: 1.5fr 1fr 1fr !important;
        grid-template-areas: "about quick trust" !important;
    }

    .artender-footer-symbols--combined .artender-footer-symbols-image-link {
        width: 100% !important;
        max-width: 100% !important;
    }

    .artender-footer-copyright {
        margin-top: -18px !important;
        border-radius: 0 0 12px 12px;
        overflow: hidden;
    }
}
