/* ==========================================================================
   Footer Main Styles
   ========================================================================== */
.site-footer {
    margin-top: 80px;
    padding: 64px 0 0;
    background:
        radial-gradient(circle at top center, rgba(124, 92, 255, 0.1) 0%, transparent 40%),
        linear-gradient(180deg, #090e16 0%, #05080e 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-container {
    width: min(1200px, calc(100% - 40px));
    margin-inline: auto;
}

.footer-top-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1.4fr) minmax(180px, 0.8fr) minmax(240px, 1fr);
    gap: 40px;
    align-items: start;
}

.footer-about-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 20px;
}

.footer-logo-img {
    display: block;
    max-width: 170px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.footer-heading {
    margin: 0;
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.4;
    position: relative;
    padding-bottom: 8px;
}

/* خط تزیینی زیر عنوان‌های فوتر */
.footer-heading::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background: #7c5cff;
    border-radius: 99px;
}

html[dir="rtl"] .footer-heading::after {
    left: auto;
    right: 0;
}

.footer-description {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.95;
    font-size: 0.96rem;
}

/* شبکه‌های اجتماعی فوتر با آیکون‌های SVG */
.footer-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.footer-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.76);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.footer-social-links a:hover {
    color: #ffffff;
    background: rgba(124, 92, 255, 0.15);
    border-color: rgba(124, 92, 255, 0.4);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 16px rgba(124, 92, 255, 0.25);
}

/* ==========================================================================
   Quick Navigation Columns & Link Effect
   ========================================================================== */
.footer-links-col,
.footer-contact-col {
    min-width: 0;
}

.footer-links-list {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
}

.footer-links-list li {
    margin-bottom: 12px;
}

.footer-links-list a {
    color: rgba(255, 255, 255, 0.74);
    text-decoration: none;
    font-size: 0.96rem;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
}

/* اضافه شدن آیکون ریز پیش‌فرض هنگام هاور لینک‌های فوتر */
.footer-links-list a::before {
    content: "→";
    margin-inline-end: 8px;
    opacity: 0;
    transform: translateX(-6px);
    transition: all 0.25s ease;
    font-weight: bold;
    color: #7c5cff;
}

html[dir="rtl"] .footer-links-list a::before {
    content: "←";
    transform: translateX(6px);
}

.footer-links-list a:hover {
    color: #ffffff;
    transform: translateX(4px);
}

html[dir="rtl"] .footer-links-list a:hover {
    transform: translateX(-4px);
}

.footer-links-list a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* ==========================================================================
   Contact Details with SVG Icons
   ========================================================================== */
.footer-contact-item {
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.8;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.96rem;
}

.footer-contact-icon {
    color: #7c5cff;
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-contact-item a {
    color: rgba(255, 255, 255, 0.76);
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-contact-item a:hover {
    color: #ffffff;
}

.footer-contact-item--address span {
    text-wrap: pretty;
}

/* ==========================================================================
   Footer Bottom & SEO Copyrigh/Links
   ========================================================================== */
.footer-bottom-bar {
    margin-top: 48px;
    padding: 24px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-bar p {
    margin: 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.92rem;
    text-align: center;
    line-height: 1.8;
}

.seo-footer-divider {
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.2);
}

.seo-footer-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.25s ease, border-bottom 0.25s ease;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.25);
}

.seo-footer-link:hover {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

/* ==========================================================================
   Mobile/Tablet Responsive adjustments
   ========================================================================== */
@media (max-width: 992px) {
    .footer-top-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .footer-container {
        width: min(100% - 24px, 1200px);
    }

    .footer-brand-col,
    .footer-about-col,
    .footer-links-col,
    .footer-contact-col {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-about-heading {
        align-items: center;
    }

    .footer-logo-img {
        margin-inline: auto;
    }

    .footer-social-links {
        justify-content: center;
    }

    .footer-heading::after {
        left: 50% !important;
        transform: translateX(-50%);
    }

    .footer-links-list {
        margin-top: 16px;
    }

    .footer-links-list a::before {
        display: none !important;
    }

    .footer-contact-item {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }
}
