/* =========================================================
   SITE FOOTER
   ========================================================= */

.site-footer {
    padding:
        clamp(3rem, 6vw, 5rem) 0 1.5rem;

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


/* =========================================================
   GRID
   ========================================================= */

.footer-grid {
    display: grid;

    grid-template-columns:
        minmax(260px, 1.45fr) repeat(3, minmax(130px, 0.65fr));

    gap: clamp(2rem, 5vw, 5rem);
}


/* =========================================================
   BRAND
   ========================================================= */

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


.footer-brand__name {
    display: inline-block;

    color: var(--white);

    font-size: clamp(1.3rem, 2vw, 1.6rem);
    font-weight: 900;
    letter-spacing: -0.035em;

    text-decoration: none;
}


.footer-brand__name:hover,
.footer-brand__name:focus {
    color: var(--blue);
}


.footer-brand>p {
    max-width: 430px;

    margin-top: 0.9rem;

    color: var(--muted);

    font-size: 0.9rem;
    line-height: 1.65;
}


.footer-brand .footer-brand__line {
    color: var(--soft);

    font-weight: 800;
}


/* =========================================================
   READING PATH
   ========================================================= */

.footer-path {
    margin-top: 1.75rem;
    padding-top: 1.25rem;

    border-top: 1px solid var(--line-soft);
}


.footer-path>span {
    display: block;

    margin-bottom: 0.55rem;

    color: var(--green);

    font-size: 0.64rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}


.footer-path__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}


.footer-path__links a {
    color: var(--soft);

    font-size: 0.82rem;
    font-weight: 850;

    text-decoration: none;
}


.footer-path__links a:hover,
.footer-path__links a:focus {
    color: var(--white);
}


.footer-path__links span {
    color: var(--muted);

    font-size: 0.72rem;
}


/* =========================================================
   GROUPS
   ========================================================= */

.footer-group h4 {
    margin: 0 0 1rem;

    color: var(--white);

    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}


.footer-links {
    display: grid;
    gap: 0.72rem;
}


.footer-links a {
    width: fit-content;

    color: var(--muted);

    font-size: 0.85rem;
    font-weight: 750;
    line-height: 1.35;

    text-decoration: none;

    transition:
        color 150ms ease,
        transform 150ms ease;
}


.footer-links a:hover,
.footer-links a:focus {
    color: var(--blue);

    transform: translateX(2px);
}


/* =========================================================
   BOTTOM
   ========================================================= */

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;

    margin-top: clamp(3rem, 6vw, 5rem);
    padding-top: 1.2rem;

    border-top: 1px solid var(--line-soft);

    color: var(--muted);

    font-size: 0.7rem;
    font-weight: 750;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

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


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

        max-width: 620px;
    }

}


@media (max-width: 650px) {

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

        gap:
            2.5rem 1.5rem;
    }


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


    .footer-group:last-child {
        grid-column: 1 / -1;
    }


    .footer-bottom {
        display: grid;

        gap: 0.4rem;
    }

}


@media (max-width: 430px) {

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


    .footer-brand,
    .footer-group:last-child {
        grid-column: auto;
    }

}