/* =============================================
   Header & Menu Fix — 4e749873
   ============================================= */

/* 1. Fix broken logo image — ensure it displays properly */
.elementor-widget-site-logo img,
.elementor-widget-theme-site-logo img,
header .custom-logo,
header .site-logo img,
header img[src*="ethinol-logo"] {
    max-width: 180px;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

/* 2. Fix menu overflowing off the page */
header .elementor-nav-menu,
header .elementor-widget-nav-menu,
header nav,
.elementor-location-header .elementor-nav-menu {
    max-width: 100%;
    overflow-x: hidden;
}

.elementor-location-header .elementor-nav-menu--main .elementor-nav-menu {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.elementor-location-header .elementor-nav-menu--main .elementor-item {
    white-space: nowrap;
    font-size: clamp(12px, 1.1vw, 15px);
    padding: 0 8px;
}

/* Prevent horizontal scrollbar from menu */
body {
    overflow-x: hidden;
}

/* 3. Fix header overlapping page content below */
.elementor-location-header {
    position: relative !important;
    z-index: 100;
}

/* Remove fixed/sticky positioning that causes overlap */
.elementor-location-header.elementor-sticky--active,
.elementor-location-header .elementor-element.elementor-sticky--active {
    position: sticky !important;
    top: 0;
    z-index: 1000;
}

/* Ensure the page content is not hidden behind the header */
.elementor-location-header + *,
.elementor-location-header ~ .elementor-section-wrap,
.elementor-location-header ~ main,
.elementor-location-header ~ .site-main,
.elementor-location-header ~ .elementor {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Fix for double header appearance */
.elementor-location-header .elementor-section {
    max-width: 100vw;
    box-sizing: border-box;
}

/* Ensure header container doesn't exceed viewport */
.elementor-location-header .elementor-container {
    max-width: 100%;
    flex-wrap: nowrap;
    align-items: center;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .elementor-location-header .elementor-nav-menu--main .elementor-item {
        font-size: 13px;
        padding: 0 6px;
    }
}

@media (max-width: 767px) {
    .elementor-widget-site-logo img,
    .elementor-widget-theme-site-logo img,
    header .custom-logo {
        max-width: 140px;
    }
}
