footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem 1rem 0.75rem;
    background: var(--primary);
    z-index: 2;
}

.footer__inner {
    max-width: 1200px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: minmax(280px, 1fr) auto auto;
    grid-template-areas: "desc chat social";
    align-items: center;
    gap: 60px;
}

footer .footer__desc {
    grid-area: desc;
    color: var(--primary-content);
    font-size: .9rem;
}

.footer__chat {
    grid-area: chat;
    justify-self: start;
}

.chat-with-us {
    background-color: var(--secondary);
    color: var(--secondary-content);
    border: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: .9rem;
    font-weight: 700;
    transition: background-color 300ms ease-in-out;
}

.chat-with-us:hover {
    background-color: color-mix(in oklab, var(--secondary) 100%, black 10%);
}

.chat-with-us svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--primary);
}

.chat-with-us.mobile {
    display: none;
}

footer .footer__social {
    grid-area: social;
    justify-self: end;
    text-align: center;
    color: var(--secondary);
}

footer .footer__social p {
    font-weight: 700;
    text-align: center;
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--secondary-content);
}

footer .footer__social svg {
    width: 1.7rem;
    height: 1.7rem;
    color: var(--secondary);
    transition: color 200ms ease-in-out;
}

footer .footer__social a {
    display: flex;
}

footer .footer__social a:hover svg {
    color: color-mix(in oklab, var(--secondary) 100%, black 10%);
}

footer .social-icons {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-top: 0;
}

@media (max-width: 767px) {
    .footer__inner {
        grid-template-columns: minmax(260px, 1fr) auto;
        grid-template-areas:
            "chat social"
            "desc social";
        align-items: stretch;
        gap: 0;
    }

    .footer__social {
        align-self: stretch;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    footer .footer__desc {
        align-self: center;
    }
}

@media (max-width: 600px) {
    footer {
        padding: 0.4rem 1rem;
    }

    .footer__inner {
        grid-template-columns: minmax(260px, 1fr) auto;
        grid-template-areas:
            "chat social"
            "desc social";
        gap: 4px;
    }

    .chat-with-us.desktop {
        display: none;
    }

    .chat-with-us.mobile {
        display: flex;
        font-size: 0.875rem;
        padding: 0.4rem 0.8rem;
    }

    .footer__social {
        justify-self: end;
    }

    footer .footer__desc {
        font-size: .74rem;
        line-height: 1.55;
        max-width: 100%;
    }

    .social-icons {
        gap: 10px;
    }

    footer .footer__social svg {
        width: 1.4rem;
        height: 1.4rem;
    }

    footer .footer__social p {
        display: none;
    }

    footer .social-icons {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    footer {
        background: var(--mobile-background);
    }
    footer .footer__desc {
        color: #000;
    }
}

@media (max-width: 400px) {
    .footer__inner {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "chat social"
            "desc desc";
        align-items: end;
    }
}
