/* ==========================================================================
   Footer navigation (sitemap footer)
   One markup for every breakpoint. The base rules below are the stacked
   layout used on mobile and tablet; the desktop layout is produced from
   1366.02px up purely by grid placement, so the DOM order never changes.
   Nav sections are native <details>: they collapse without JS on small
   screens and are forced open + inert on desktop.
   ========================================================================== */

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

.footer-content .footer-subscribe {
    width: 100%;
    max-width: 600rem;
    margin-bottom: 40rem;
}

.footer-divider {
    width: 100%;
    height: max(1px, 1rem);
    background: hsla(0, 0%, 100%, .15);
}

.footer-section {
    min-width: 0;
}

.footer-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12rem;
}

.footer-section-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    min-width: 0;
}

.footer-link {
    display: inline-block;
    max-width: 100%;
    font-size: 14rem;
    line-height: 1.6;
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
    transition: .2s ease;
}

@media (hover) {
    .footer-link:hover {
        opacity: .7;
    }
}

.footer-address {
    font-style: normal;
    font-size: 14rem;
    line-height: 1.6;
    letter-spacing: -0.02em;
}

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8rem;
}

/* --- collapsible sections (mobile / tablet) ----------------------------- */

.footer-section--nav {
    border-bottom: max(1px, 1rem) solid hsla(0, 0%, 100%, .15);
}

.footer-section--nav > .footer-section-title {
    width: 100%;
    min-height: 44rem;
    margin-bottom: 0;
    padding-block: 14rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.footer-section--nav > .footer-section-title::marker {
    content: "";
}

.footer-section--nav > .footer-section-title::-webkit-details-marker {
    display: none;
}

.footer-section--nav > .footer-section-title:focus-visible {
    outline: max(1px, 1rem) solid currentColor;
    outline-offset: 4rem;
}

.footer-section--nav[open] > .footer-section-links {
    padding-bottom: 20rem;
}

.footer-section--nav[data-footer-accordion-enhanced] > .footer-section-links {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(8rem);
    transition: max-height .28s ease, opacity .2s ease, transform .28s ease;
}

.footer-section--nav[data-footer-accordion-enhanced].is-open > .footer-section-links {
    max-height: var(--footer-accordion-height, 1000px);
    opacity: 1;
    transform: translateY(0);
}

.footer-section-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 14rem;
    min-width: 14rem;
    height: 14rem;
    font-size: 14rem;
    transform-origin: center;
    transition: transform .2s ease;
}

.footer-section-chevron svg {
    display: block;
    width: 10rem;
    height: 6rem;
}

.footer-section--nav[open] .footer-section-chevron {
    transform: rotate(180deg);
}

.footer-section--headquarter {
    margin-top: 40rem;
}

.footer-contact-col {
    display: flex;
    flex-direction: column;
    gap: 32rem;
    margin-top: 32rem;
}

.footer-big-logo img {
    display: block;
    width: 100%;
    height: auto;
}

/* --- mobile sizing and overflow guards --------------------------------- */

@media (max-width: 769.98px) {
    .footer .footer-subtitle {
        color: var(--White, #FFF);
        font-family: Gotham;
        font-size: 10px;
        font-style: normal;
        font-weight: 500;
        line-height: 160%;
        letter-spacing: -0.2px;
        text-transform: uppercase;
    }

    .footer .footer-section--nav[open] > .footer-section-title {
        opacity: .5;
    }

    .footer .footer-section--nav.is-open > .footer-section-title {
        opacity: .5;
    }

    .footer-content .footer-subscribe {
        margin-bottom: 32rem;
    }

    .footer-content .footer-form {
        gap: 12rem;
        width: 100%;
    }

    .footer-content .footer-form .form-field {
        min-width: 0;
    }

    .footer-section--nav > .footer-section-title {
        padding-block: 15rem;
    }

    .footer-section--nav[open] > .footer-section-links {
        gap: 0;
        padding-bottom: 16rem;
    }

    .footer-section--nav > .footer-section-links .footer-link {
        display: flex;
        align-items: center;
        min-height: 32rem;
        padding-block: 4rem;
    }

    .footer-section--headquarter {
        margin-top: 32rem;
    }

    .footer-contact-col {
        gap: 28rem;
        margin-top: 28rem;
    }

    .footer-bottom-links {
        flex-wrap: wrap;
        column-gap: 20rem;
        row-gap: 8rem;
        max-width: 100%;
    }

    .footer-bottom-links a {
        overflow-wrap: anywhere;
    }
}

@media (max-width: 359.98px) {
    .footer-content .footer-form {
        flex-direction: column;
    }

    .footer-content .footer-form button {
        width: 100%;
    }
}

/* --- desktop: 4-column grid, sections always open ----------------------- */

@media (min-width: 1366.02px) {
    .footer-content {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        column-gap: 32rem;
        row-gap: 40rem;
        align-items: start;
    }

    .footer-content .footer-subscribe {
        grid-column: 1;
        grid-row: 1;
        max-width: none;
        margin-bottom: 0;
    }

    .footer-section--discover {
        grid-column: 2;
        grid-row: 1;
    }

    .footer-section--headquarter {
        grid-column: 3;
        grid-row: 1;
        margin-top: 0;
    }

    .footer-contact-col {
        grid-column: 4;
        grid-row: 1;
        margin-top: 0;
    }

    /* full-width rule between the two rows: 40rem row-gap + 35rem = 75rem above */
    .footer-divider {
        grid-column: 1 / -1;
        grid-row: 2;
        margin-top: 35rem;
    }

    /* auto-placed left to right across row 3 */
    .footer-section--catalog {
        grid-row: 3;
    }

    .footer-section--nav {
        border-bottom: 0;
    }

    .footer-section--nav > .footer-section-title {
        min-height: 0;
        margin-bottom: 15rem;
        padding-block: 0;
        outline: 0;
        cursor: default;
        pointer-events: none;
    }

    .footer-section--nav[open] > .footer-section-links {
        padding-bottom: 0;
    }

    .footer-section--nav[data-footer-accordion-enhanced] > .footer-section-links {
        max-height: none;
        overflow: visible;
        opacity: 1;
        transform: none;
        transition: none;
    }

    .footer-section-chevron {
        display: none;
    }

    /* keep the panels expanded regardless of the open attribute */
    .footer-section--nav::details-content {
        content-visibility: visible;
        block-size: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .footer-section--nav[data-footer-accordion-enhanced] > .footer-section-links,
    .footer-section-chevron {
        transition: none;
    }
}

/* Browsers without ::details-content cannot force the panels open, so keep
   the sections operable there instead of shipping a collapsed desktop nav. */
@supports not selector(::details-content) {
    @media (min-width: 1366.02px) {
        .footer-section--nav > .footer-section-title {
            cursor: pointer;
            pointer-events: auto;
        }

        .footer-section-chevron {
            display: inline-flex;
        }
    }
}
