/**
 * استایل فوتر - الهام‌گرفته از دیجیاتو
 * طراحی مینیمال، طوسی روشن، حرفه‌ای
 * 
 * @package QuadWeb
 * @version 3.0.0
 */

@font-face {
    font-family: 'Lahzeh';
    src: url('../fonts/Lahzeh-RegularSemiStretch.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Lahzeh';
    src: url('../fonts/Lahzeh-MediumSemiStretch.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Lahzeh';
    src: url('../fonts/Lahzeh-BoldSemiStretch.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

:root {
    --footer-bg: #f5f5f5;
    --footer-text: #2d2d2d;
    --footer-text-light: #5c5c5c;
    --footer-text-muted: #777777;
    --footer-border: #e8e8e8;
    --footer-primary: #4a90d9;
    --footer-primary-hover: #3a7bc8;
    --footer-shadow: 0 -1px 20px rgba(0, 0, 0, 0.04);
}

.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 45px 0 0;
    margin-top: 50px;
    border-top: 1px solid var(--footer-border);
    font-family: 'Lahzeh', 'Vazirmatn', 'Tahoma', sans-serif;
}

/* ============================================
   شبکه فوتر - ۴ ستون
   ============================================ */

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.2fr 1fr;
    gap: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--footer-border);
}

/* ============================================
   ستون‌ها
   ============================================ */

.footer-col h4 {
    font-weight: 700;
    font-size: 14px;
    color: var(--footer-text);
    margin-bottom: 16px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    opacity: 0.7;
}

.footer-col .footer-description {
    font-size: 14px;
    line-height: 1.9;
    color: var(--footer-text-light);
    margin-bottom: 14px;
}

/* ============================================
   آمار - با هاور انیمیشن
   ============================================ */

.footer-stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.footer-stat-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--footer-text-light);
    background: #ffffff;
    padding: 4px 14px 4px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid var(--footer-border);
    cursor: default;
}

.footer-stat-item:hover {
    background: var(--footer-primary);
    color: #ffffff;
    transform: translateY(-2px);
    border-color: var(--footer-primary);
    box-shadow: 0 4px 15px rgba(74, 144, 217, 0.15);
}

.footer-stat-item .stat-icon svg {
    stroke: var(--footer-text-muted);
    width: 14px;
    height: 14px;
    transition: all 0.3s ease;
}

.footer-stat-item:hover .stat-icon svg {
    stroke: #ffffff;
}

.footer-stat-number {
    font-weight: 700;
    font-size: 14px;
}

.footer-stat-label {
    font-size: 12px;
    opacity: 0.7;
}

.footer-stat-item:hover .footer-stat-label {
    opacity: 1;
}

/* ============================================
   لیست‌ها - با هاور انیمیشن
   ============================================ */

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    padding: 5px 0;
}

.footer-col ul li a {
    font-size: 14px;
    color: var(--footer-text-light);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.footer-col ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 1.5px;
    background: var(--footer-primary);
    transition: all 0.3s ease;
}

.footer-col ul li a:hover::after {
    width: 100%;
}

.footer-col ul li a:hover {
    color: var(--footer-primary);
    padding-right: 4px;
}

.footer-col ul li a .link-icon svg {
    stroke: var(--footer-text-muted);
    width: 12px;
    height: 12px;
    transition: all 0.3s ease;
}

.footer-col ul li a:hover .link-icon svg {
    stroke: var(--footer-primary);
}

.footer-col ul li .count {
    font-size: 11px;
    color: var(--footer-text-muted);
    background: #ffffff;
    padding: 0 8px;
    border-radius: 12px;
    border: 1px solid var(--footer-border);
    transition: all 0.3s ease;
}

.footer-col ul li a:hover .count {
    background: var(--footer-primary);
    color: #ffffff;
    border-color: var(--footer-primary);
}

/* ============================================
   شبکه‌های اجتماعی - با هاور انیمیشن
   ============================================ */

.footer-social {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--footer-border);
    color: var(--footer-text-light);
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--footer-primary);
    color: #ffffff;
    transform: translateY(-3px);
    border-color: var(--footer-primary);
    box-shadow: 0 4px 15px rgba(74, 144, 217, 0.2);
}

.footer-social a svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    transition: all 0.3s ease;
}

.footer-social a:hover svg {
    transform: scale(1.05);
}

/* ============================================
   بخش پایین فوتر - ساده و مینیمال
   ============================================ */

.footer-bottom {
    padding: 18px 0;
    text-align: center;
}

.footer-bottom-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    font-size: 13px;
    color: var(--footer-text-muted);
}

.footer-bottom-content .footer-logo-icon {
    display: flex;
    align-items: center;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    overflow: hidden;
    padding: 2px;
}

.footer-bottom-content .footer-logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-bottom-content a {
    color: var(--footer-text);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-bottom-content a:hover {
    color: var(--footer-primary);
}

.footer-bottom-content .divider {
    opacity: 0.2;
}

/* ============================================
   دکمه اسکرول به بالا - مدرن
   ============================================ */

#scrollToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--footer-text);
    border: 1px solid var(--footer-border);
    cursor: pointer;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#scrollToTop.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

#scrollToTop:hover {
    background: var(--footer-primary);
    color: #ffffff;
    transform: translateY(-3px) scale(1.05);
    border-color: var(--footer-primary);
    box-shadow: 0 4px 25px rgba(74, 144, 217, 0.25);
}

#scrollToTop:active {
    transform: scale(0.92);
}

#scrollToTop svg {
    stroke: currentColor;
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

#scrollToTop:hover svg {
    transform: translateY(-2px);
}

/* ============================================
   واکنش‌گرایی
   ============================================ */

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 30px 0 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding-bottom: 25px;
    }

    .footer-col h4 {
        font-size: 13px;
    }

    .footer-col .footer-description {
        font-size: 13px;
    }

    .footer-stat-item {
        font-size: 12px;
        padding: 3px 12px 3px 14px;
    }

    #scrollToTop {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }

    #scrollToTop svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        gap: 20px;
        padding-bottom: 20px;
    }

    .footer-bottom-content {
        font-size: 12px;
        flex-direction: column;
        gap: 2px;
    }

    .footer-bottom-content .divider {
        display: none;
    }

    #scrollToTop {
        width: 36px;
        height: 36px;
        bottom: 16px;
        right: 16px;
    }

    #scrollToTop svg {
        width: 16px;
        height: 16px;
    }

    .footer-social a {
        width: 32px;
        height: 32px;
    }

    .footer-social a svg {
        width: 14px;
        height: 14px;
    }
}