/* =====================================================
   Footer
===================================================== */

.site-footer {
    padding: 60px 20px 20px;
    background: var(--body-color);
    color: #4b5563;
    border-top: 1px solid var(--color-border);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

/* =====================================================
   Footer Sections
===================================================== */

.footer-section {
    min-width: 0;
}

.footer-section:not(:first-child) {
    padding-left: 20px;
}

.footer-section h3 {
    margin: 0 0 15px;
    color: var(--color-dark);
    font-size: 18px;
    font-weight: 600;
}

/* =====================================================
   Brand
===================================================== */

.footer-logo {
    width: 140px;
    height: auto;
    margin-bottom: 15px;
}

.footer-description {
    max-width: 280px;
    color: var(--color-muted-2);
    font-size: 15px;
    line-height: 1.6;
}

/* =====================================================
   Social Icons
===================================================== */

.footer-socials {
    margin-top: 15px;

    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-social-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;

    text-decoration: none;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: var(--color-primary-soft);
    color: var(--color-primary);
    font-size: 18px;

    cursor: pointer;
    user-select: none;

    transition: background 0.3s ease,
                color 0.3s ease,
                transform 0.3s ease;
}

.footer-social-icon:hover {
    background: var(--color-primary);
    color: #ffffff;
    transform: translateY(-2px);
}

/* =====================================================
   Lists
===================================================== */

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

.footer-list li {
    margin-bottom: 10px;
    color: var(--color-muted-2);
    font-size: 15px;
    transition: color 0.3s ease;
}

/* =====================================================
   Footer Links
===================================================== */

.footer-link {
    padding: 0;
    border: none;
    background: transparent;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: inherit;
    font-family: inherit;
    font-size: 15px;
    text-decoration: none;

    cursor: pointer;

    transition: color 0.3s ease,
                transform 0.2s ease;
}

.footer-link i {
    width: 18px;
    color: var(--color-primary);
    text-align: center;
}

.footer-link:hover,
.footer-list li:hover {
    color: var(--color-primary);
}

.footer-link:hover {
    transform: translateX(2px);
}

/* =====================================================
   Contact
===================================================== */

.footer-contact .footer-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.footer-contact .footer-list li i {
    width: 18px;
    margin-top: 2px;
    color: var(--color-primary);
    text-align: center;
}

.footer-contact span {
    line-height: 1.5;
}

/* =====================================================
   Bottom
===================================================== */

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;

    border-top: 1px solid var(--color-border);

    color: #9ca3af;
    text-align: center;
    font-size: 15px;
}

/* =====================================================
   RTL
===================================================== */

[dir="rtl"] .footer-section:not(:first-child) {
    padding-left: 0;
    padding-right: 20px;
}

[dir="rtl"] .footer-link:hover {
    transform: translateX(-2px);
}

/* =====================================================
   Responsive
===================================================== */

@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-section:not(:first-child),
    [dir="rtl"] .footer-section:not(:first-child) {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 500px) {
    .site-footer {
        padding-top: 45px;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .footer-description {
        max-width: 100%;
    }
}

/* =====================================================
   Footer - Very Large Screens
   Add this block at the end of your footer CSS file
   Nothing else is changed
===================================================== */

@media (min-width: 1440px) {
    .site-footer {
        padding: 72px 5% 24px;
    }

    .footer-container {
        max-width: 1360px;
        grid-template-columns: 1.25fr 0.9fr 1fr 1.15fr;
        gap: 52px;
    }

    .footer-logo {
        width: 155px;
    }

    .footer-description {
        max-width: 340px;
        font-size: 16px;
    }

    .footer-section h3 {
        font-size: 19px;
        margin-bottom: 18px;
    }

    .footer-list li,
    .footer-link {
        font-size: 16px;
    }

    .footer-bottom {
        max-width: 1360px;
        margin: 48px auto 0;
    }
}

@media (min-width: 1700px) {
    .site-footer {
        padding: 82px 6% 28px;
    }

    .footer-container {
        max-width: 1520px;
        gap: 66px;
    }

    .footer-section:not(:first-child) {
        padding-left: 28px;
    }

    [dir="rtl"] .footer-section:not(:first-child) {
        padding-left: 0;
        padding-right: 28px;
    }

    .footer-logo {
        width: 170px;
    }

    .footer-description {
        max-width: 380px;
        font-size: 17px;
        line-height: 1.7;
    }

    .footer-social-icon {
        width: 42px;
        height: 42px;
        font-size: 19px;
    }

    .footer-list li,
    .footer-link {
        font-size: 17px;
    }

    .footer-bottom {
        max-width: 1520px;
        font-size: 16px;
    }
}

@media (min-width: 2100px) {
    .site-footer {
        padding: 95px 7% 32px;
    }

    .footer-container,
    .footer-bottom {
        max-width: 1680px;
    }

    .footer-container {
        gap: 78px;
    }
}
