/* Footer styles */

.site-footer {
    border-bottom: 1rem solid var(--color-orange, #f26b53);

    a {
        @apply text-white transition-colors duration-300 hover:text-secondary-400 focus-visible:text-secondary-400;
    }

    .widget {
        li {
            @apply text-16px my-1 mb-2 leading-4;
        }

        h4 {
            @apply font-bold text-18px text-secondary mb-2;
        }
    }

    .menu-footer-menu-container {
        @apply grow;
    }

    .copyright {
        p {
            @apply text-white leading-none m-0 p-0;
        }

        a {
            @apply text-white hover:text-primary-500 underline underline-offset-2;
        }
    }

    .contact__item {
        @apply flex justify-start items-start font-light text-white text-14px mb-2;

        p {
            @apply m-0 p-0;
        }

        a {
            @apply text-white hover:text-secondary-400 focus-visible:text-secondary-400;
        }

        &::before {
            @apply inline-block mr-2;

            content: "";
            height: 1.5rem;
            width: 1.5rem;
        }

        &.contact__phone::before {
            background: url("../../static/img/footer-phone.svg") no-repeat
                center center;
        }
        &.contact__email::before {
            background: url("../../static/img/footer-email.svg") no-repeat
                center center;
        }
        &.contact__address::before {
            background: url("../../static/img/footer-map.svg") no-repeat center
                center;
            padding-top: 2rem;
        }
    }
}

@media (max-width: 767px) {
    .site-footer {
        border-bottom-width: clamp(4.0625rem, 20.4vw, 5.125rem);
        font-size: clamp(0.875rem, 3.98vw, 1rem);
        min-height: clamp(34rem, 167.4vw, 42.0625rem);
        padding-block: clamp(2.375rem, 11.94vw, 3rem)
            clamp(1.125rem, calc(12.2vw - 1.3125rem), 1.75rem);
    }

    .site-footer > .container {
        display: grid;
        gap: 0 clamp(0.8125rem, 3.98vw, 1rem);
        grid-template-columns: minmax(0, 1fr) auto;
        padding-inline: clamp(1.59375rem, 7.96vw, 2rem);
    }

    .site-footer > .container > div:first-child {
        grid-column: 1;
        grid-row: 1;
    }

    .site-footer #footer-header {
        margin: 0;
        max-width: clamp(9.75rem, 48.76vw, 12.25rem);
    }

    .site-footer #footer-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        margin-top: clamp(1.5625rem, 7.71vw, 1.9375rem);
    }

    .site-footer .site-footer__nav-list {
        display: grid;
        gap: clamp(0.625rem, 3.23vw, 0.8125rem) clamp(1.59375rem, 7.96vw, 2rem);
        grid-auto-flow: column;
        grid-template-rows: repeat(3, auto);
        padding-inline-start: 0;
    }

    .site-footer .site-footer__nav-item {
        margin-bottom: 0;
    }

    .site-footer #footer-nav + div {
        grid-column: 1 / -1;
        grid-row: 3;
        margin-top: clamp(1.25rem, 6.22vw, 1.5625rem);
    }

    .site-footer #footer-description {
        font-size: clamp(1rem, 4.98vw, 1.25rem);
        line-height: 1.2;
        max-width: 21rem;
    }

    .site-footer .contact__item {
        font-size: clamp(0.75rem, 3.48vw, 0.875rem);
    }

    .site-footer .contact__address {
        margin-top: clamp(0.875rem, 4.48vw, 1.125rem);
    }

    .site-footer .contact__email,
    .site-footer .contact__phone {
        margin-top: clamp(0.8125rem, 3.98vw, 1rem);
    }

    .site-footer .contact__item::before {
        height: clamp(1.1875rem, 5.97vw, 1.5rem);
        margin-right: clamp(0.375rem, 1.99vw, 0.5rem);
        width: clamp(1.1875rem, 5.97vw, 1.5rem);
    }

    .site-footer .contact__address::before {
        padding-top: clamp(1.59375rem, 7.96vw, 2rem);
    }

    .site-footer > .container > .text-right {
        display: contents;
    }

    .site-footer x-back-to-top {
        align-self: start;
        grid-column: 2;
        grid-row: 1;
    }

    .site-footer #backToTopBtn {
        height: clamp(2rem, 9.95vw, 2.5rem);
        padding: 0;
        width: clamp(2rem, 9.95vw, 2.5rem);
    }

    .site-footer .social-links {
        grid-column: 1 / -1;
        grid-row: 4;
        justify-content: flex-end;
        margin-top: clamp(0.5rem, 2.49vw, 0.625rem);
    }

    .site-footer .social-icons {
        --size: clamp(1.1875rem, 5.97vw, 1.5rem);
    }

    .site-footer .social-links a {
        margin-right: clamp(0.8125rem, 3.98vw, 1rem);
    }

    .site-footer .copyright {
        grid-column: 1 / -1;
        grid-row: 5;
        margin-top: clamp(0.8125rem, 4.23vw, 1.0625rem);
        padding-block: 0;
        text-align: center;
    }
}
