/* =========================================================
   فوتر کامل سایت - چیدمان فشرده و منظم
   ========================================================= */

.up-footer {
    background: #fafbfd;
    direction: rtl;
    text-align: right;
    margin-top: 50px;
    width: 100%;
    position: relative;
}

.up-footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 25px;
}

/* =========================================
   نوار اعتماد (شناور)
   ========================================= */
.up-footer-trust {
    background: #ffffff;
    border-radius: 18px;
    padding: 18px 20px;
    margin: 0 auto -30px;
    max-width: 1350px;
    position: relative;
    z-index: 3;
    box-shadow:
        0 8px 30px rgba(72, 55, 243, 0.08),
        0 0 0 1px rgba(72, 55, 243, 0.05);
}

.up-trust-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.up-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 8px;
    border-radius: 12px;
    transition: all 0.3s;
}

.up-trust-item:hover {
    background: #f7f8fc;
}

.up-trust-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: linear-gradient(145deg, #ffffff, #eef1f8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4837F3;
    box-shadow:
        3px 3px 8px rgba(72, 55, 243, 0.1),
        -2px -2px 5px rgba(255, 255, 255, 0.95),
        inset 0 0 0 1px rgba(255, 255, 255, 0.7);
    transition: all 0.3s;
}

.up-trust-icon svg {
    width: 20px;
    height: 20px;
    stroke: #4837F3;
}

.up-trust-item:hover .up-trust-icon {
    background: linear-gradient(145deg, #6b5bff, #4837F3);
    transform: translateY(-3px) rotate(-3deg);
    box-shadow: 5px 5px 12px rgba(72, 55, 243, 0.3);
}

.up-trust-item:hover .up-trust-icon svg {
    stroke: #fff;
}

.up-trust-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.up-trust-text strong {
    font-size: 12px;
    font-weight: 800;
    color: #222;
    line-height: 1.3;
}

.up-trust-text span {
    font-size: 10.5px;
    color: #999;
    line-height: 1.3;
}

/* =========================================
   بخش اصلی فوتر
   ========================================= */
.up-footer-main {
    background: #ffffff;
    padding: 60px 0 30px;
    border-top: 1px solid #f0f0f5;
}

/* بخش بالا: دو ستون (برند | تماس + اعتماد) */
.up-footer-top {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: start;
    padding-bottom: 30px;
    border-bottom: 1px solid #f0f0f5;
    margin-bottom: 30px;
}

/* ============ ستون راست: برند + توضیحات + سوشال ============ */
.up-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.up-footer-logo img,
.up-footer-logo .custom-logo {
    max-height: 55px !important;
    width: auto !important;
    display: block;
}

.up-footer-site-title {
    font-size: 26px;
    font-weight: 900;
    background: linear-gradient(135deg, #4837F3, #FF6B35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.up-footer-desc {
    font-size: 13px;
    line-height: 1.85;
    color: #666 !important;
    margin: 0;
    text-align: justify;
}

/* ============ سوشال مدیا ============ */
.up-footer-socials {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 5px;
}

.up-footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #f0f0f5;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    text-decoration: none;
}

.up-footer-socials a:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(72, 55, 243, 0.15);
    border-color: rgba(72, 55, 243, 0.2);
}

.up-footer-socials a img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.up-footer-socials a:hover img {
    transform: scale(1.15);
}

/* ============ ستون چپ: تماس + اعتماد (کامپکت) ============ */
.up-footer-contact-enamad {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 25px;
    align-items: center;
}

/* اطلاعات تماس */
.up-footer-contact {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.up-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.up-contact-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: linear-gradient(145deg, #f7f8fc, #eef1f8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4837F3;
    box-shadow:
        3px 3px 8px rgba(72, 55, 243, 0.08),
        -2px -2px 5px rgba(255, 255, 255, 0.95);
    transition: all 0.3s;
    text-decoration: none;
}

.up-contact-icon svg {
    stroke: #4837F3;
    width: 18px;
    height: 18px;
}

/* آیکون پین قابل کلیک */
.up-contact-icon-link {
    cursor: pointer;
}

.up-contact-icon-link:hover {
    background: linear-gradient(145deg, #6b5bff, #4837F3);
    transform: translateY(-3px) rotate(-8deg);
    box-shadow: 0 8px 20px rgba(72, 55, 243, 0.35);
}

.up-contact-icon-link:hover svg {
    stroke: #fff;
}

.up-contact-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    flex: 1;
}

.up-contact-text > span:first-child {
    font-size: 11px;
    color: #999;
    font-weight: 600;
}

.up-contact-text strong {
    font-size: 13.5px;
    font-weight: 700;
    color: #333;
    line-height: 1.6;
    transition: all 0.25s;
}

.up-contact-text a {
    text-decoration: none;
    display: inline-block;
    transition: all 0.25s;
    font-size: 13.5px;
    color: #4837F3 !important;
    font-weight: 600;
}

.up-contact-text a:hover {
    color: #FF6B35 !important;
}

.up-contact-text a strong {
    color: inherit;
}

/* لینک آدرس */
.up-address-link {
    text-decoration: none;
    display: inline-block;
    transition: all 0.25s;
    margin-bottom: 4px;
}

.up-address-link strong {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #333 !important;
    line-height: 1.6;
    transition: all 0.25s;
    display: block;
}

.up-address-link:hover strong {
    color: #4837F3 !important;
}

/* دکمه مسیریابی */
.up-navigate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 5px;
    padding: 7px 13px;
    background: linear-gradient(135deg, #4837F3, #6b5bff);
    color: #fff !important;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(72, 55, 243, 0.25);
    width: fit-content;
    cursor: pointer;
    border: none;
}

.up-navigate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(72, 55, 243, 0.4);
    background: linear-gradient(135deg, #FF6B35, #ff8c5a);
    color: #fff !important;
}

.up-navigate-btn svg {
    stroke: #fff;
    flex-shrink: 0;
    width: 13px;
    height: 13px;
    transition: transform 0.3s;
}

.up-navigate-btn:hover svg {
    transform: translateX(-3px) translateY(3px);
}

.up-navigate-btn span {
    line-height: 1;
}

/* نماد اعتماد */
.up-footer-enamad {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.up-footer-enamad img {
    max-width: 110px;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.05));
    transition: all 0.3s;
}

.up-footer-enamad img:hover {
    transform: translateY(-3px);
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.1));
}

/* =========================================
   ۳ ستون لینک
   ========================================= */
.up-footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 20px;
}

.up-footer-col {
    min-width: 0;
}

.up-footer-col-title {
    font-size: 14.5px;
    font-weight: 800;
    color: #222 !important;
    margin: 0 0 16px;
    padding-bottom: 10px;
    position: relative;
    display: inline-block;
}

.up-footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, #4837F3, #FF6B35);
    border-radius: 3px;
}

.up-footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.up-footer-menu li {
    margin: 0;
    padding: 0;
}

.up-footer-menu a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666 !important;
    text-decoration: none;
    transition: all 0.25s;
    position: relative;
    padding-right: 0;
}

.up-footer-menu a::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #d0d0da;
    transition: all 0.25s;
    flex-shrink: 0;
    order: -1;
}

.up-footer-menu a:hover {
    color: #4837F3 !important;
    padding-right: 8px;
}

.up-footer-menu a:hover::before {
    background: #4837F3;
    box-shadow: 0 0 0 3px rgba(72, 55, 243, 0.15);
}

/* =========================================
   نوار پایین (کپی‌رایت)
   ========================================= */
.up-footer-bottom {
    background: #1a1a2e;
    padding: 18px 0;
    text-align: center;
    position: relative;
}

.up-footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #4837F3, #FF6B35, #4837F3);
    background-size: 200% 100%;
    animation: footerGradientMove 6s linear infinite;
}

@keyframes footerGradientMove {
    0% { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

.up-footer-bottom p {
    margin: 0;
    font-size: 12.5px;
    color: #b8b8c8;
    font-weight: 500;
}

/* =========================================
   ریسپانسیو
   ========================================= */

/* تبلت بزرگ */
@media (max-width: 1200px) {
    .up-footer-top {
        grid-template-columns: 1.2fr 1fr;
        gap: 40px;
    }

    .up-footer-contact-enamad {
        gap: 20px;
    }

    .up-footer-enamad img {
        max-width: 95px;
    }

    .up-trust-grid {
        gap: 8px;
    }

    .up-trust-icon {
        width: 40px;
        height: 40px;
    }

    .up-trust-text strong {
        font-size: 11.5px;
    }

    .up-trust-text span {
        font-size: 10px;
    }
}

/* تبلت */
@media (max-width: 992px) {
    .up-footer-main {
        padding: 55px 0 25px;
    }

    .up-footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-bottom: 25px;
        margin-bottom: 25px;
    }

    .up-footer-contact-enamad {
        grid-template-columns: 1fr auto;
        gap: 25px;
        padding: 20px;
        background: #f8f9fc;
        border-radius: 14px;
    }

    .up-footer-links {
        gap: 30px;
    }

    .up-trust-icon {
        width: 38px;
        height: 38px;
    }

    .up-trust-icon svg {
        width: 18px;
        height: 18px;
    }

    .up-trust-text strong {
        font-size: 10.5px;
    }

    .up-trust-text span {
        font-size: 9.5px;
    }
}

/* موبایل */
@media (max-width: 768px) {
    .up-footer {
        margin-top: 30px;
    }

    .up-footer-container {
        padding: 0 15px;
    }

    .up-footer-trust {
        padding: 14px 10px;
        margin: 0 10px -20px;
        border-radius: 14px;
    }

    .up-trust-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 4px;
    }

    .up-trust-item {
        flex-direction: column;
        text-align: center;
        padding: 8px 3px;
        gap: 5px;
    }

    .up-trust-icon {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    .up-trust-icon svg {
        width: 16px;
        height: 16px;
    }

    .up-trust-text strong {
        font-size: 9px;
        line-height: 1.2;
    }

    .up-trust-text span {
        display: none;
    }

    .up-footer-main {
        padding: 42px 0 20px;
    }

    .up-footer-brand {
        align-items: center;
        text-align: center;
    }

    .up-footer-desc {
        text-align: center;
        font-size: 12.5px;
        line-height: 1.8;
    }

    .up-footer-socials {
        justify-content: center;
        gap: 8px;
    }

    .up-footer-socials a {
        width: 42px;
        height: 42px;
        border-radius: 11px;
    }

    .up-footer-socials a img {
        width: 28px;
        height: 28px;
    }

    .up-footer-contact-enamad {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 18px;
        border-radius: 12px;
    }

    .up-footer-contact {
        gap: 12px;
    }

    .up-contact-item {
        gap: 10px;
    }

    .up-contact-icon {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .up-contact-icon svg {
        width: 16px;
        height: 16px;
    }

    .up-contact-text strong {
        font-size: 13px;
    }

    .up-contact-text a {
        font-size: 12.5px;
    }

    .up-footer-enamad {
        justify-content: center;
        padding-top: 15px;
        border-top: 1px solid #f0f0f5;
    }

    .up-footer-enamad img {
        max-width: 100px;
    }

    .up-footer-links {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .up-footer-col {
        padding-bottom: 18px;
        border-bottom: 1px solid #f0f0f5;
    }

    .up-footer-col:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .up-footer-col-title {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .up-footer-menu {
        gap: 7px;
    }

    .up-footer-menu a {
        font-size: 12.5px;
    }

    .up-footer-bottom {
        padding: 15px 0;
    }

    .up-footer-bottom p {
        font-size: 11px;
        padding: 0 15px;
    }
}

/* موبایل کوچک */
@media (max-width: 480px) {
    .up-trust-text strong {
        font-size: 8px;
    }

    .up-trust-icon {
        width: 30px;
        height: 30px;
    }

    .up-trust-icon svg {
        width: 14px;
        height: 14px;
    }

    .up-footer-site-title {
        font-size: 22px;
    }

    .up-footer-socials a {
        width: 38px;
        height: 38px;
    }

    .up-footer-socials a img {
        width: 25px;
        height: 25px;
    }

    .up-navigate-btn {
        font-size: 11px;
        padding: 6px 11px;
    }
}
/* =========================================
   فیکس دکمه مسیریابی - متن خوانا
   ========================================= */
.up-navigate-btn,
.up-navigate-btn span,
.up-navigate-btn svg,
.up-navigate-btn:hover,
.up-navigate-btn:hover span,
.up-navigate-btn:hover svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

.up-navigate-btn {
    background: linear-gradient(135deg, #4837F3, #6b5bff) !important;
    font-weight: 800 !important;
    letter-spacing: 0.3px !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) !important;
    opacity: 1 !important;
    filter: none !important;
}

.up-navigate-btn:hover {
    background: linear-gradient(135deg, #FF6B35, #ff8c5a) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4) !important;
    color: #ffffff !important;
}

.up-navigate-btn span {
    display: inline-block !important;
    color: #ffffff !important;
    font-size: 12px !important;
    line-height: 1 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.up-navigate-btn svg {
    width: 14px !important;
    height: 14px !important;
    stroke-width: 2.5 !important;
    flex-shrink: 0 !important;
}