/*
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

/* ============================
   STICKY HEADER - CONTAINER
   ============================ */

/* Header fuld bredde (baggrund + skygge) */
#site-header,
#site-header.elementor-sticky--effects {
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
    right: 0 !important;
}

/* Indhold begrænset til 1200px + padding */
#site-header .elementor-container,
#site-header .e-con-inner {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    justify-content: space-between !important;
    align-items: center !important;
}

/* Nav-links skal aldrig wrappe */
#site-header .elementor-nav-menu {
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
}

/* Smooth transitions */
#site-header,
#site-header img,
#site-header .elementor-nav-menu a,
#site-header .elementor-menu-toggle i,
#site-header .elementor-menu-toggle svg {
    transition: all 0.3s ease !important;
}

/* --- FØR SCROLL --- */

#site-header:not(.elementor-sticky--effects) {
    background-color: transparent !important;
}

#site-header:not(.elementor-sticky--effects) .elementor-widget-image img {
    filter: brightness(0) invert(1);
}

#site-header:not(.elementor-sticky--effects) .elementor-nav-menu a {
    color: rgba(255, 255, 255, 0.9) !important;
}

#site-header:not(.elementor-sticky--effects) .elementor-nav-menu a:hover,
#site-header:not(.elementor-sticky--effects) .elementor-nav-menu a.elementor-item-active,
#site-header:not(.elementor-sticky--effects) .elementor-nav-menu .current-menu-item > a {
    color: #ffffff !important;
}

#site-header:not(.elementor-sticky--effects) .elementor-menu-toggle i,
#site-header:not(.elementor-sticky--effects) .elementor-menu-toggle svg {
    color: #ffffff !important;
    fill: #ffffff !important;
}

/* --- EFTER SCROLL --- */

#site-header.elementor-sticky--effects {
    background-color: #ffffff !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1) !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

#site-header.elementor-sticky--effects .elementor-widget-image img {
    filter: none;
    max-height: 40px;
    width: auto;
}

#site-header.elementor-sticky--effects .elementor-nav-menu a {
    color: #2c3e50 !important;
}

#site-header.elementor-sticky--effects .elementor-nav-menu a:hover {
    color: #2d5a5a !important;
}

#site-header.elementor-sticky--effects .elementor-menu-toggle i,
#site-header.elementor-sticky--effects .elementor-menu-toggle svg {
    color: #2c3e50 !important;
    fill: #2c3e50 !important;
}

#site-header.elementor-sticky--effects .sub-arrow svg,
#site-header.elementor-sticky--effects .sub-arrow i,
#site-header.elementor-sticky--effects .sub-arrow {
    color: #2c3e50 !important;
    fill: #2c3e50 !important;
}

/* --- SIDSTE MENU-ITEM SOM KNAP --- */

#site-header .elementor-nav-menu > li:nth-last-child(2) {
    margin-left: 10px !important;
    margin-right: 10px !important;
}

#site-header .elementor-nav-menu > li:nth-last-child(2) > a {
    background-color: #b8924c !important;
    color: #ffffff !important;
    padding: 10px 24px !important;
    border-radius: 4px !important;
    font-weight: 500 !important;
}

#site-header .elementor-nav-menu > li:nth-last-child(2) > a:hover {
    background-color: #a67f3d !important;
    color: #ffffff !important;
}

#site-header:not(.elementor-sticky--effects) .elementor-nav-menu > li:nth-last-child(2) > a {
    color: #ffffff !important;
}

/* --- DROPDOWN / SUB-MENU --- */

#site-header .elementor-nav-menu .sub-menu a,
#site-header .elementor-nav-menu--dropdown a,
#site-header .elementor-nav-menu .sub-menu .elementor-item,
#site-header .elementor-nav-menu--main .elementor-item.elementor-item-active,
#site-header .elementor-nav-menu .sub-menu .elementor-item-active,
#site-header .elementor-nav-menu .sub-menu .current-menu-item > a,
#site-header:not(.elementor-sticky--effects) .elementor-nav-menu .sub-menu a {
    color: #2c3e50 !important;
    background-color: transparent !important;
}

#site-header .elementor-nav-menu .sub-menu a:hover,
#site-header .elementor-nav-menu--dropdown a:hover {
    color: #2d5a5a !important;
    background-color: #f7f3ed !important;
}

#site-header .elementor-nav-menu .sub-menu {
    background-color: #ffffff !important;
}

/* ============================
   SORT MENU FRA START (ACF toggle)
   ============================ */

.mkm-dark-header #site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    margin-top: 0 !important;
    transform: none !important;
    z-index: 9999 !important;
}

body.mkm-dark-header {
    padding-top: 80px !important;
}

.mkm-dark-header #site-header:not(.elementor-sticky--effects) {
    background-color: #ffffff !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1) !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.mkm-dark-header #site-header:not(.elementor-sticky--effects) .elementor-widget-image img {
    filter: none;
    max-height: 40px;
    width: auto;
}

.mkm-dark-header #site-header:not(.elementor-sticky--effects) .elementor-nav-menu a {
    color: #2c3e50 !important;
}

.mkm-dark-header #site-header:not(.elementor-sticky--effects) .elementor-nav-menu a:hover {
    color: #2d5a5a !important;
}

.mkm-dark-header #site-header:not(.elementor-sticky--effects) .elementor-menu-toggle i,
.mkm-dark-header #site-header:not(.elementor-sticky--effects) .elementor-menu-toggle svg {
    color: #2c3e50 !important;
    fill: #2c3e50 !important;
}

.mkm-dark-header #site-header:not(.elementor-sticky--effects) .sub-arrow svg,
.mkm-dark-header #site-header:not(.elementor-sticky--effects) .sub-arrow i,
.mkm-dark-header #site-header:not(.elementor-sticky--effects) .sub-arrow {
    color: #2c3e50 !important;
    fill: #2c3e50 !important;
}

/* Sub-arrows på transparent header (før scroll) */
#site-header:not(.elementor-sticky--effects) .sub-arrow svg,
#site-header:not(.elementor-sticky--effects) .sub-arrow i,
#site-header:not(.elementor-sticky--effects) .sub-arrow {
    color: rgba(255, 255, 255, 0.9) !important;
    fill: rgba(255, 255, 255, 0.9) !important;
}

/* ============================
   MOBIL DROPDOWN-MENU FIX
   ============================ */

@media (max-width: 1024px) {

    #site-header .elementor-nav-menu--dropdown,
    #site-header .elementor-nav-menu__container {
        background-color: #ffffff !important;
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1) !important;
    }

    #site-header:not(.elementor-sticky--effects) .elementor-nav-menu--dropdown a,
    #site-header:not(.elementor-sticky--effects) .elementor-nav-menu__container a {
        color: #2c3e50 !important;
    }

    #site-header:not(.elementor-sticky--effects) .elementor-nav-menu--dropdown a:hover,
    #site-header:not(.elementor-sticky--effects) .elementor-nav-menu__container a:hover {
        color: #2d5a5a !important;
        background-color: #f7f3ed !important;
    }

    /* Aktive links i mobil dropdown */
    #site-header .elementor-nav-menu--dropdown a.elementor-item-active,
    #site-header .elementor-nav-menu--dropdown .current-menu-item > a,
    #site-header .elementor-nav-menu__container a.elementor-item-active,
    #site-header .elementor-nav-menu__container .current-menu-item > a,
    #site-header:not(.elementor-sticky--effects) .elementor-nav-menu--dropdown a.elementor-item-active,
    #site-header:not(.elementor-sticky--effects) .elementor-nav-menu--dropdown .current-menu-item > a,
    #site-header:not(.elementor-sticky--effects) .elementor-nav-menu__container a.elementor-item-active,
    #site-header:not(.elementor-sticky--effects) .elementor-nav-menu__container .current-menu-item > a {
        color: #2d5a5a !important;
        font-weight: 600 !important;
    }

    /* Spacing mellem menupunkter på mobil */
    #site-header .elementor-nav-menu--dropdown a,
    #site-header .elementor-nav-menu__container a {
        padding-top: 12px !important;
        padding-bottom: 12px !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    }

}
