.site-footer {
    background-color: var(--color-primary);
    position: relative;
}

.footer-logos {
    width: max-content;
    padding: 8px;

    & img {
        height: 32px;
    }
}

.site-footer .footer-header {
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: start;
    gap: 16px;

    & p {
        font-weight: 300;
        padding: 8px;
        margin: 0;
    }
}

.site-footer .social-links {
    & a {
        color: white;
        padding: 8px;
    }

    & svg {
        height: 24px;
        width: 24px;
    }
}

.footer-menu-container {
    margin-top: 64px;

    & ul {
        padding: 0;
        margin: 0;
    }

    & > ul {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 64px 16px;

        @media (max-width: 768px) {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
    }

    & .sub-menu {
        margin-top: 16px;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    & .sub-menu a {
        font-weight: 300;
        position: relative;
    }

    & .sub-menu a::after {
        content: '';
        position: absolute;
        bottom: -2px; /* just below the text */
        left: 0;
        width: 0;
        height: 1px;
        background-color: currentColor;
        transition: width 0.3s ease;
    }

    & .sub-menu a:hover::after {
        width: 100%;
    }

    & a {
        color: white;
        font-size: 0.9rem;
    }

    & a[href="#"] {
        pointer-events: none;
    }
}

.footer-rights {
    margin-top: 64px;
    background-color: white;
}

.footer-rights-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    @media (max-width: 768px) {
        flex-direction: column;
    }

    & > div {
        flex: 1;
        display: flex;
        align-items: center;
    }

    & > div:nth-of-type(3) {
        align-items: end;
        flex-direction: column;
        font-size: 0.8rem;
        color: var(--color-muted-foreground);
    }

    & p {
        margin: 0;
        width: 100%;
        text-align: center;
        font-size: 0.8rem;
        color: var(--color-muted-foreground);
    }

    & img {
        height: 32px;
    }
}

.back-to-top-btn-container {
    position: absolute;
    padding: 8px;
    right: 8px;
    top: 8px;
}

.back-to-top-btn {
    height: 48px;
    width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border: none;
    color: var(--color-primary);
    cursor: pointer;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.103);
    overflow: hidden;
    border-radius: 100%;
}