/* =========================================================
   SOLKAR DIGITAL
   FOOTER
   ========================================================= */


/* =========================================================
   01. FOOTER BASE
   ========================================================= */

.site-footer {
    position: relative;

    background:
        radial-gradient(
            circle at 85% 10%,
            rgba(37, 99, 235, 0.12),
            transparent 32%
        ),
        radial-gradient(
            circle at 10% 85%,
            rgba(16, 185, 129, 0.08),
            transparent 28%
        ),
        #ffffff;

    color:
        var(--navy-950);

    overflow:
        hidden;
}


/* =========================================================
   02. FOOTER GRID BACKGROUND
   ========================================================= */

.site-footer::before {
    content: "";

    position: absolute;

    inset: 0;

    background-image:
        linear-gradient(
            rgba(7, 20, 38, 0.018) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(7, 20, 38, 0.018) 1px,
            transparent 1px
        );

    background-size:
        80px 80px;

    pointer-events:
        none;
}


/* =========================================================
   03. FOOTER CONTAINER
   ========================================================= */

.site-footer .container {
    position:
        relative;

    z-index:
        1;
}


/* =========================================================
   04. FOOTER MAIN
   ========================================================= */

.footer-main {
    display:
        grid;

    grid-template-columns:
        minmax(280px, 1.4fr)
        repeat(3, minmax(150px, 1fr));

    gap:
        clamp(
            3rem,
            6vw,
            7rem
        );

    padding-block:
        clamp(
            4.5rem,
            7vw,
            6.5rem
        );
}


/* =========================================================
   05. FOOTER BRAND
   ========================================================= */

.footer-brand {
    max-width:
        360px;
}


.footer-brand img {
    display:
        block;

    width:
        min(
            100%,
            300px
        );

    height:
        auto;

    margin-bottom:
        1.75rem;
}


.footer-brand p {
    max-width:
        320px;

    margin:
        0 0 0.65rem;

    color:
        var(--slate-600);

    font-size:
        0.95rem;

    line-height:
        1.7;
}


.footer-brand p:last-child {
    color:
        var(--slate-500);

    font-size:
        0.8rem;
}


/* =========================================================
   06. FOOTER COLUMNS
   ========================================================= */

.footer-column h3 {
    margin:
        0 0 1.25rem;

    color:
        var(--navy-950);

    font-family:
        var(--font-heading);

    font-size:
        0.78rem;

    font-weight:
        800;

    letter-spacing:
        0.12em;

    text-transform:
        uppercase;
}


.footer-column ul {
    display:
        flex;

    flex-direction:
        column;

    gap:
        0.7rem;

    margin:
        0;

    padding:
        0;

    list-style:
        none;
}


.footer-column li {
    margin:
        0;

    padding:
        0;
}


.footer-column a {
    color:
        var(--slate-600);

    font-size:
        0.9rem;

    line-height:
        1.5;

    text-decoration:
        none;

    transition:
        color var(--transition-fast),
        transform var(--transition-fast);
}


.footer-column a:hover {
    color:
        var(--blue-600);

    transform:
        translateX(3px);
}


/* =========================================================
   07. FOOTER DIVIDER
   ========================================================= */

.footer-bottom {
    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        2rem;

    padding-block:
        1.5rem;

    border-top:
        1px solid
        var(--slate-200);
}


/* =========================================================
   08. FOOTER BOTTOM TEXT
   ========================================================= */

.footer-bottom p {
    margin:
        0;

    color:
        var(--slate-500);

    font-size:
        0.78rem;

    line-height:
        1.5;
}


.footer-bottom a {
    color:
        var(--slate-500);

    text-decoration:
        none;

    transition:
        color var(--transition-fast);
}


.footer-bottom a:hover {
    color:
        var(--blue-600);
}


/* =========================================================
   09. FOOTER LEGAL LINKS
   ========================================================= */

.footer-legal {
    display:
        flex;

    align-items:
        center;

    flex-wrap:
        wrap;

    justify-content:
        flex-end;

    gap:
        1.25rem;
}


/* =========================================================
   10. FOOTER ACCENT
   ========================================================= */

.footer-brand::after {
    content:
        "";

    display:
        block;

    width:
        56px;

    height:
        2px;

    margin-top:
        1.5rem;

    background:
        linear-gradient(
            90deg,
            var(--blue-600),
            var(--emerald-500)
        );

    border-radius:
        var(--radius-pill);
}


/* =========================================================
   11. FOOTER TABLET
   ========================================================= */

@media (max-width: 950px) {

    .footer-main {
        grid-template-columns:
            1.4fr
            1fr
            1fr;

        gap:
            3rem;
    }


    .footer-brand {
        grid-column:
            1 / -1;

        max-width:
            520px;
    }


    .footer-brand img {
        width:
            min(
                100%,
                280px
            );
    }

}


/* =========================================================
   12. FOOTER MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .footer-main {
        grid-template-columns:
            repeat(
                2,
                minmax(
                    0,
                    1fr
                )
            );

        gap:
            3rem 2rem;

        padding-block:
            4rem;
    }


    .footer-brand {
        grid-column:
            1 / -1;
    }


    .footer-brand img {
        width:
            min(
                100%,
                260px
            );
    }


    .footer-bottom {
        flex-direction:
            column;

        align-items:
            flex-start;

        gap:
            1rem;
    }


    .footer-legal {
        justify-content:
            flex-start;

        gap:
            0.75rem 1rem;
    }

}


/* =========================================================
   13. SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {

    .footer-main {
        grid-template-columns:
            1fr;

        gap:
            2.5rem;
    }


    .footer-brand {
        grid-column:
            auto;
    }


    .footer-column h3 {
        margin-bottom:
            1rem;
    }


    .footer-column ul {
        gap:
            0.6rem;
    }


    .footer-bottom {
        padding-block:
            1.25rem;
    }

}


/* =========================================================
   14. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .footer-column a,
    .footer-bottom a {
        transition:
            none;
    }

}