/*
 * WWTS footer component
 * ---------------------
 * Migrated from the verified Elementor Site Settings Custom CSS source.
 *
 * The Footer Menu widget keeps its small widget-level `selector ...` CSS in
 * Elementor for editor compatibility. This file owns the front-end footer
 * shell, column layout and responsive behavior.
 */

footer .wwts-section {
    background-color: transparent !important;
}

footer .wwts-inner {
    /*background-color: #ebe6e5;
    box-shadow: 0 3px 10px 0 rgba(0, 0, 0, 0.1);*/
}

.footer-bg {
    background-color: #ebe6e5;
    background-image: linear-gradient(180deg, rgba(255, 255, 255, .8) 0%, rgba(255, 255, 255, .3) 34%, rgba(255, 255, 255, .08) 66%, rgba(231, 224, 222, .12) 100%); */
    box-shadow: inset 0 1px rgba(255, 255, 255, .88), 0 3px 12px rgba(50, 40, 32, .08);
}

/* WPML appends its footer switcher after the Elementor footer. Keep it on
 * the same surface and remove the plugin's 30px exterior bottom margin. */
body > .wpml-ls-statics-footer {
    margin-bottom: 0 !important;
    background-color: #ebe6e5;
}

/* =========================================================
   FOOTER MENU
   Static multi-column menu — submenus are always visible
   ========================================================= */

footer .wwts-footer-menu {
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
}

footer .wwts-footer-menu .elementor-nav-menu--main {
    width: 100%;
}

/* Top level = footer columns */
footer .wwts-footer-menu
.elementor-nav-menu--main > .elementor-nav-menu {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
    width: 100%;
}

/* Each top-level menu item is a column */
footer .wwts-footer-menu
.elementor-nav-menu--main > .elementor-nav-menu > li {
    display: block !important;
    width: auto !important;
}

/* Column headings */
footer .wwts-footer-menu
.elementor-nav-menu--main > .elementor-nav-menu > li > a {
    display: inline-flex;
    width: auto;
    padding: 0 0 16px !important;
}

/* Submenus are NOT dropdowns in the footer */
footer .wwts-footer-menu
.elementor-nav-menu--main > .elementor-nav-menu > li > .sub-menu {
    display: flex !important;
    flex-direction: column;

    position: static !important;
    inset: auto !important;

    width: auto !important;
    min-width: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;

    background: transparent !important;
    box-shadow: none !important;
}

/* Links inside footer columns */
footer .wwts-footer-menu .sub-menu > li > a {
    padding: 5px 0 !important;
    background: transparent !important;
}

/* No dropdown arrows */
footer .wwts-footer-menu .sub-arrow {
    display: none !important;
}

/* =========================================================
   FOOTER — RESPONSIVE LAYOUT
   ========================================================= */

/* Match the full-width composition rather than keeping the brand area at a
   fixed 350px while navigation absorbs the entire extra width. */
@media (min-width: 1025px) {
    footer .wwts-footer-brand {
        flex: 0 0 30% !important;
        width: 30% !important;
        min-width: 0;
    }

    footer .wwts-footer-navigation {
        flex: 1 1 0 !important;
        min-width: 0 !important;
    }
}

/* ----- 1201–1360: navigation = 3 columns ----- */
@media (min-width: 1201px) and (max-width: 1360px) {
    footer .wwts-footer-menu
    .elementor-nav-menu--main > .elementor-nav-menu {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

/* ----- 1025–1200: navigation = 2 columns ----- */
@media (min-width: 1025px) and (max-width: 1200px) {
    footer .wwts-footer-menu
    .elementor-nav-menu--main > .elementor-nav-menu {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* ----- <=1024: footer becomes rows ----- */
@media (max-width: 1024px) {
    footer .wwts-footer-main {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    /* Area 1 — brand takes full width */
    footer .wwts-footer-brand {
        flex: 0 0 auto !important;

        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;

        padding-right: 0 !important;
        border-right: 0 !important;

        align-items: center !important;
        text-align: center;
    }

    footer .wwts-footer-brand .wwts-footer-intro,
    footer .wwts-footer-brand .wwts-footer-description {
        margin-left: auto;
        margin-right: auto;
    }

    footer .wwts-footer-social {
        justify-content: center !important;
    }

    /* Area 2 — navigation also takes full width */
    footer .wwts-footer-navigation {
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
    }

    /* Space is available again -> return to 4 columns */
    footer .wwts-footer-menu
    .elementor-nav-menu--main > .elementor-nav-menu {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

/* ----- Mobile: 2 columns ----- */
@media (max-width: 767px) {
    footer .wwts-footer-menu
    .elementor-nav-menu--main > .elementor-nav-menu {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* ----- Small mobile: 1 column ----- */
@media (max-width: 520px) {
    footer .wwts-footer-menu
    .elementor-nav-menu--main > .elementor-nav-menu {
        grid-template-columns: 1fr !important;
    }
}
