﻿.footer {
    background: var(--brand-white);
    padding: 2rem 1rem 1rem;
    font-family: var(--font-family-2);
    color: var(--gray-dark-1);
    max-width: 1300px;
    margin: auto;
}

.is-lang-panel-open {
    overflow: hidden;
}

.language-panel-toggle {
    border: none;
    display: flex;
    gap: 0.25rem;
    font-size: 0.875rem;
    padding: 0;
    background-color: transparent;
}

.language-panel-toggle img {
    width: 15px;
    height: 15px;
}

.arrow-left {
    display: none;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.language-arrow {
    height: 15px;
    width: 15px;
    transform: rotate(-180deg);
}

.footer-column {
    min-width: fit-content;
}

    .footer-column h5 {
        font-size: 0.875rem;
        font-weight: bold;
        color: rgba(0, 0, 0, 0.6);
        margin-bottom: 1rem;
    }

    .footer-column ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

        .footer-column ul li {
            margin-bottom: 0.75rem;
        }

            .footer-column a {
                text-decoration: none;
                color: black;
                font-size: 0.875rem;
            }

                .footer-column a:hover {
                    color: var(--brand);
                    transition: 0.2s ease;
                }

.faq-arrow {
    transform: translateY(-10%) rotate(180deg);
    width: 20px;
    height: 20px;
    background: url('/icons/arrow.svg') no-repeat center center;
    background-size: contain;
}

.social-icon-container {
    display: flex;
    gap: 0.5rem;
}

.footer-social-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-light-10);
}

    .footer-social-row a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

.footer-bottom {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
}

.footer-copyright {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 400;
    color: rgba(0, 0, 0, .3);
    margin: 0;
}

.footer-copyright p {
    margin: 0;
}

@media (max-width: 768px) {
    .footer-container {
        display: none;
    }

    .footer-social-row {
        flex-wrap: wrap;
        flex-direction: column;
        border-bottom: unset;
        padding-bottom: 0;
    }

    .footer-copyright {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-column {
        min-width: unset;
    }

    .footer-bottom {
        flex-direction: column-reverse;
        gap: 1rem;
    }

    .social-icon-container {
        gap: 1rem;
    }
}

.language-panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    opacity: 0;
    visibility: hidden;
    transition: .2s ease;
    z-index: 999;
}

.language-panel {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 300px;
    background: var(--gray-light-1);
    transform: translateX(100%);
    transition: transform .25s ease;
    z-index: 1001;
    display: flex;
    flex-direction: column;
}

.language-panel__header {
    display: flex;
    align-items: center;
    justify-content: end;
    padding: 1.5rem 2.25rem;
}

.language-panel__close {
    background: transparent;
    border: 0;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.language-panel__list {
    list-style: none;
    padding: 2.25rem 0 4rem 0;
    margin: 0;
    overflow-y: auto;
    max-height: 100%;
}

.language-item__link {
    display: flex;
    align-items: start;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 2.25rem 1rem 2.25rem;
    text-decoration: none;
    color: var(--brand-black) !important;
}

    .language-item__link:hover {
        background: rgba(164, 206, 76, .05);
    }

.language-item__flag {
    width: 1rem;
    height: 1rem;
    object-fit: cover;
}

.language-flag-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-item__title {
    font-size: 0.875rem;
}

.language-item__lang {
    color: #666;
    font-size: 0.875rem;
    text-decoration: none;
}

.language-item__lang:hover {
    color: var(--brand-black) !important;
}

.is-lang-panel-open .language-panel-overlay {
    opacity: 1;
    visibility: visible;
    z-index: 1001;
}

.is-lang-panel-open .language-panel {
    transform: translateX(0);
}

.footer-language .lang-inline-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
}

    .footer-language .lang-inline-trigger img {
        width: 20px;
        height: 14px;
    }

@media (max-width: 768px) {
    .language-panel {
        width: 100vw;
    }

    .language-panel__list {
        padding: 0 0 4rem;
    }

    .arrow-left {
        display: block;
        width: 24px;
        height: 24px;
        background: url('/icons/arrow.svg') no-repeat center center;
        background-size: contain;
        transform: rotate(-90deg);
    }

    .language-panel__header {
        justify-content: space-between;
        padding: 1rem;
    }

    .language-item__link {
        padding: 1rem 1.5rem;
    }
}