/* ============================================
   FOOTER
============================================ */

/* Visibility helpers (defined here for all pages, header.css only loads on homepage) */
.mobile-only {
    display: none !important;
}
.desktop-only {
    display: flex !important;
}

.sahoma-footer {
    font-family: "EB Garamond", serif !important;
}

/* Upper section */
.sahoma-footer__upper {
    background: #FAF1E6 !important;
    padding: 40px 20px !important;
}
.sahoma-footer__upper .sahoma-footer__inner {
    display: flex !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
}

/* Columns */
.sahoma-footer__col--menu {
    width: 20% !important;
}
.sahoma-footer__col--newsletter {
    width: 38% !important;
    margin-left: auto !important;
}

/* Headings */
.sahoma-footer__heading {
    display: block !important;
    font-family: "Bebas Neue", sans-serif !important;
    font-size: 20px !important;
    font-weight: 400 !important;
    color: #000 !important;
    margin-bottom: 5px !important;
}
.sahoma-footer__subtitle {
    font-size: 16px !important;
    color: #000 !important;
    margin: 0 0 5px 0 !important;
}

/* Menu links */
.sahoma-footer__menu {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.sahoma-footer__menu li {
    margin-bottom: 0 !important;
}
.sahoma-footer__menu a {
    font-family: "EB Garamond", serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    color: #000 !important;
    text-decoration: none !important;
    line-height: 2 !important;
}
.sahoma-footer__menu a:hover {
    text-decoration: underline !important;
}

/* Cookie link */
.sahoma-footer__cookie-link {
    font-size: 16px !important;
    font-weight: 400 !important;
    color: #000 !important;
    text-decoration: none !important;
}
.sahoma-footer__cookie-link:hover {
    text-decoration: underline !important;
}

/* Lower section */
.sahoma-footer__lower {
    padding: 20px !important;
}
.sahoma-footer__lower .sahoma-footer__inner {
    display: flex !important;
    align-items: center !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
}

/* Footer social desktop */
.sahoma-footer__social--desktop {
    flex: 0 0 33.33% !important;
    display: flex !important;
    gap: 20px !important;
}
.sahoma-footer__social--desktop a {
    text-decoration: none !important;
}
.sahoma-footer__social--desktop img {
    width: 20px !important;
    height: 20px !important;
}

/* Footer logo */
.sahoma-footer__logo {
    flex: 0 0 33.33% !important;
    display: flex !important;
    justify-content: center !important;
}
.sahoma-footer__logo img {
    max-width: 100px !important;
    width: auto !important;
    height: auto !important;
}

/* Payments */
.sahoma-footer__payments {
    flex: 0 0 33.33% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
}
.sahoma-footer__payments img {
    height: 20px !important;
    width: auto !important;
    max-width: none !important;
}

/* Social mobile */
.sahoma-footer__social--mobile {
    display: none !important;
}
.sahoma-footer__social--mobile a {
    text-decoration: none !important;
    color: #000 !important;
}

/* Cookies mobile */
.sahoma-footer__cookies-mobile {
    display: none !important;
}

/* ============================================
   FOOTER RESPONSIVE
============================================ */
@media (max-width: 991px) {
    .mobile-only {
        display: flex !important;
    }
    .desktop-only {
        display: none !important;
    }

    .sahoma-footer__upper .sahoma-footer__inner {
        flex-direction: column !important;
    }

    .sahoma-footer__col--menu,
    .sahoma-footer__col--newsletter {
        width: 100% !important;
        margin-left: 0 !important;
    }

    /* Newsletter at top */
    .sahoma-footer__col--newsletter {
        order: 1 !important;
        text-align: center !important;
        margin-bottom: 0 !important;
    }
    .sahoma-footer__col--newsletter .sahoma-footer__heading {
        text-align: center !important;
    }
    .sahoma-footer__col--newsletter .sahoma-footer__subtitle {
        text-align: center !important;
    }
    .sahoma-footer__col--newsletter .klaviyo-minimal-form form {
        margin: 0 auto !important;
    }

    /* Menu columns */
    .sahoma-footer__col--menu {
        order: 2 !important;
        margin-top: 30px !important;
    }
    .sahoma-footer__col--menu:nth-child(2) {
        order: 3 !important;
        margin-top: -15px !important;
    }

    /* Accordion toggle */
    .sahoma-footer__heading--toggle {
        cursor: pointer !important;
        position: relative !important;
        padding-right: 30px !important;
    }
    .sahoma-footer__heading--toggle::after {
        content: '' !important;
        position: absolute !important;
        right: 0 !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 12px !important;
        height: 12px !important;
        border-right: 1.5px solid #000 !important;
        border-bottom: 1.5px solid #000 !important;
        transform: translateY(-70%) rotate(45deg) !important;
        transition: transform 0.2s ease !important;
    }
    .sahoma-footer__heading--toggle.open::after {
        transform: translateY(-30%) rotate(-135deg) !important;
    }
    .sahoma-footer__menu-wrap {
        display: none !important;
        margin-bottom: 15px !important;
    }
    .sahoma-footer__heading--toggle.open + .sahoma-footer__menu-wrap {
        display: block !important;
    }

    .sahoma-footer__menu a {
        font-size: 18px !important;
    }

    /* Cookies mobile */
    .sahoma-footer__cookies-mobile {
        display: block !important;
        margin-top: -5px !important;
    }
    .sahoma-footer__cookies-desktop {
        display: none !important;
    }

    /* Social mobile */
    .sahoma-footer__social--mobile {
        display: flex !important;
        gap: 15px !important;
        justify-content: center !important;
        margin-top: 15px !important;
    }
    .sahoma-footer__social--mobile svg {
        width: 30px !important;
        height: 30px !important;
    }

    /* Lower section mobile */
    .sahoma-footer__lower .sahoma-footer__inner {
        justify-content: center !important;
    }
    .sahoma-footer__payments {
        flex: none !important;
        justify-content: center !important;
        gap: 15px !important;
    }
    .sahoma-footer__payments img {
        width: auto !important;
    }
    .sahoma-footer__lower {
        padding: 10px 0 !important;
    }
}
