/*
 Theme Name:     Willem de hovenier
 Theme URI:      https://www.willemdehovenier.nl
 Description:    Willem de hovenier
 Author:         De Merkstudio
 Author URI:     https://www.merkstudio.nl
 Template:       Divi
 Version:        1.0.0
*/

/* Reserve space for the header to prevent body shift */
@media screen and (min-width: 981px) {
  #page-container {
    padding-top: 96px !important; /* Adjust '80px' to match your header height */
  }
}

/* --- 1. HEADER BASIS & SVG ACHTERGROND --- */
header#main-header {
    background-image: url('/wp-content/uploads/2026/05/header-back.svg') !important;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center right; /* Standaard voor desktop */
    position: fixed !important;
    top: 0 !important;
    z-index: 9999 !important;
    background-color: #ffffff !important;
}

/* Iconen styling desktop */
.et-pb-icon {
    font-family: 'ETmodules' !important;
    font-size: 20px;
    vertical-align: middle;
    position: relative;
    top: -3px;
}

/* --- 2. DESKTOP MENU: KLEUREN & HOVERS --- */
#top-menu li a {
    color: #022E21 !important;
    transition: all 0.3s ease;
}

#top-menu li.current-menu-item a,
#top-menu li.active-link a,
#top-menu li.menu-active a,
#top-menu li a:hover,
.et_pb_menu .et-menu li a:hover {
    color: #8DA434 !important;
    opacity: 1 !important;
}

#top-menu li.current-menu-item a::before {
    display: none;
}

/* --- 3. RESPONSIVE SWITCHES --- */
@media (min-width: 1401px) {
    .show-below-1400 { display: none !important; }
}

@media (max-width: 1400px) {
    .hide-below-1400 { display: none !important; }
    .show-below-1400 .et_pb_row { display: block !important; }
    .show-below-1400 .et_pb_column { width: 100% !important; }
}

@media (max-width: 1150px) {
    #top-menu-nav { display: none !important; }
    #et_mobile_nav_menu { display: block !important; }

/* --- 4. MOBIEL MENU STYLING (UITLIJNING & VERTICALE POSITIE) --- */

/* Alleen de menu-toggle (tekst + icoon) een paar pixel omhoog */
.et_mobile_nav_menu {
    margin-top: -6px !important;
}

.mobile_menu_bar {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end;
}

.mobile_menu_bar::before {
    content: "Menu " !important;
    font-family: inherit !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    color: #022e21 !important;
    margin-right: 8px;
    line-height: 1 !important;
}

.mobile_menu_bar::after {
    font-family: "ETmodules" !important;
    content: "\61" !important;
    color: #022e21 !important;
    font-size: 35px !important;
    line-height: 1 !important;
    position: relative;
    top: 2px; 
}

.mobile_nav.opened .mobile_menu_bar::after {
    content: "\4d" !important;
    top: 0px;
}

/* Volledig scherm vullend menu */
.et_mobile_menu {
    background-color: #022e21 !important;
    border-top: none !important;
    box-shadow: none !important;
    
    width: 100vw !important; 
    height: 100vh !important;
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
    z-index: 9998 !important;
}

.mobile_nav.opened .et_mobile_menu {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
    overflow-y: auto !important;
    padding-top: 80px !important;
}

.et_mobile_menu li {
    width: 100%;
    margin: 5px 0 !important;
    text-align: center !important;
}

.et_mobile_menu li a {
    color: #eef4df !important;
    font-size: 24px !important;
    font-weight: 400 !important;
    text-align: center !important;
    display: block;
    padding: 15px 0 !important;
    border: none !important;
    background: transparent !important;
}

.et_mobile_menu li.menu-active a,
.et_mobile_menu li.current-menu-item a {
    color: #8da434 !important;
}