/* ==========================================================================
   Sumeru Sticky Header System Stylesheet
   ========================================================================== */

/* 1. Normal State Header styles */
body.sumeru-header-enabled header.site-header,
body.sumeru-header-enabled .hfe-header,
body.sumeru-header-enabled .elementor-theme-builder-header,
body.sumeru-header-enabled [data-elementor-type="header"],
body.sumeru-header-enabled .sumeru-sticky-header,
body.sumeru-header-enabled .sumeru-sticky-header {
    background-color: var(--sumeru-header-bg);
    border-bottom: var(--sumeru-header-border-bottom);
    /* transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease, background-color 0.4s ease, padding 0.4s ease, height 0.4s ease !important; */
    z-index: 999;
    position: relative;
    padding: var(--sumeru-header-padding) !important;
    height: var(--sumeru-header-desktop-h) !important;
    min-height: var(--sumeru-header-desktop-h) !important;
}

/* Ensure inner sections and columns have correct flex sizing */
body.sumeru-header-enabled header.site-header .elementor-container,
body.sumeru-header-enabled .hfe-header .elementor-container,
body.sumeru-header-enabled .elementor-theme-builder-header .elementor-container,
body.sumeru-header-enabled [data-elementor-type="header"] .elementor-container,
body.sumeru-header-enabled .sumeru-sticky-header .elementor-container {
    height: 100% !important;
    min-height: 100% !important;
    display: flex !important;
    align-items: var(--sumeru-logo-align-items) !important;
    /* transition: padding var(--sumeru-header-transition) ease, max-width var(--sumeru-header-transition) ease !important; */
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    max-width: var(--sumeru-container-max-width, 1320px) !important;
}

body.sumeru-header-enabled header.site-header .elementor-row,
body.sumeru-header-enabled .hfe-header .elementor-container,
body.sumeru-header-enabled .sumeru-sticky-header .elementor-row,
body.sumeru-header-enabled .sumeru-sticky-header .elementor-container {
    align-items: var(--sumeru-logo-align-items) !important;
    width: 100%;
}

/* Logo Sizing, Spacing & Overflow Control */
body.sumeru-header-enabled header.site-header img.custom-logo,
body.sumeru-header-enabled header.site-header .elementor-widget-theme-logo img,
body.sumeru-header-enabled header.site-header .elementor-widget-image img,
body.sumeru-header-enabled .hfe-header img.custom-logo,
body.sumeru-header-enabled .hfe-header .elementor-widget-theme-logo img,
body.sumeru-header-enabled .hfe-header .elementor-widget-image img,
body.sumeru-header-enabled .elementor-theme-builder-header img.custom-logo,
body.sumeru-header-enabled .elementor-theme-builder-header .elementor-widget-theme-logo img,
body.sumeru-header-enabled .elementor-theme-builder-header .elementor-widget-image img,
body.sumeru-header-enabled [data-elementor-type="header"] img.custom-logo,
body.sumeru-header-enabled [data-elementor-type="header"] .elementor-widget-theme-logo img,
body.sumeru-header-enabled [data-elementor-type="header"] .elementor-widget-image img,
body.sumeru-header-enabled .sumeru-sticky-header img.custom-logo,
body.sumeru-header-enabled .sumeru-sticky-header .elementor-widget-theme-logo img,
body.sumeru-header-enabled .sumeru-sticky-header .elementor-widget-image img {
    height: var(--sumeru-logo-h-desktop) !important;
    max-height: none !important;
    width: auto !important;
    object-fit: contain !important;
    transition: height var(--sumeru-header-transition) ease,
        transform var(--sumeru-header-transition) ease !important;
    transform-origin: left center;
}

/* Enable logo overflow to extend outside the header boundary if configured */
body.sumeru-header-enabled header.site-header,
body.sumeru-header-enabled .hfe-header,
body.sumeru-header-enabled .elementor-theme-builder-header,
body.sumeru-header-enabled [data-elementor-type="header"],
body.sumeru-header-enabled .sumeru-sticky-header,
body.sumeru-header-enabled header.site-header *,
body.sumeru-header-enabled .hfe-header *,
body.sumeru-header-enabled .elementor-theme-builder-header *,
body.sumeru-header-enabled [data-elementor-type="header"] *,
body.sumeru-header-enabled .sumeru-sticky-header * {
    overflow: var(--sumeru-logo-overflow) !important;
}

/* Desktop Horizontal Menu transition */
body.sumeru-header-enabled .sumeru-sticky-header .hfe-nav-menu__layout-horizontal .hfe-nav-menu-item,
body.sumeru-header-enabled .sumeru-sticky-header .elementor-nav-menu--main .elementor-item {
    transition: padding var(--sumeru-header-transition) ease !important;
}

/* ==========================================================================
   2. Active Sticky State overrides
   ========================================================================== */
body.sumeru-header-enabled .sumeru-sticky-header {
    transition: background-color 0.4s ease, padding 0.4s ease, height 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease !important;
}

body.sumeru-header-enabled .sumeru-sticky-header.sumeru-is-sticky {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    z-index: 99999 !important;
    background-color: var(--sumeru-header-sticky-bg) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    padding: var(--sumeru-header-sticky-padding) !important;
    height: var(--sumeru-header-sticky-desktop-h) !important;
    min-height: var(--sumeru-header-sticky-desktop-h) !important;
    animation: sumeruSlideDown 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

.sumeru-sticky-header.sumeru-is-sticky .sticky-header-container {
    /* box-shadow: 0 1px 5px 0 rgba(0, 0, 0, 0.15); */
}

/* Sticky inner centered container stays constrained to max-width */
body.sumeru-header-enabled .sumeru-sticky-header.sumeru-is-sticky .elementor-container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    max-width: var(--sumeru-container-max-width, 1320px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

body.sumeru-header-enabled .sumeru-sticky-header.sumeru-is-sticky img.custom-logo,
body.sumeru-header-enabled .sumeru-sticky-header.sumeru-is-sticky .elementor-widget-theme-logo img,
body.sumeru-header-enabled .sumeru-sticky-header.sumeru-is-sticky .elementor-widget-image img {
    height: var(--sumeru-logo-sticky-h-desktop) !important;
}

/* Sticky Desktop Horizontal Menu Padding */
body.sumeru-header-enabled .sumeru-sticky-header.sumeru-is-sticky .hfe-nav-menu__layout-horizontal .hfe-nav-menu-item,
body.sumeru-header-enabled .sumeru-sticky-header.sumeru-is-sticky .elementor-nav-menu--main .elementor-item {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

button.sumeru-hamburger-btn.sumeru-hamburger-trigger {
    line-height: 1em;
}

@keyframes sumeruSlideDown {
    from {
        transform: translate3d(0, -15px, 0);
        opacity: 0;
    }

    to {
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }
}

/* ==========================================================================
   3. Tablet overrides (max-width: 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
    body.sumeru-header-enabled .sumeru-sticky-header {
        --sumeru-logo-p-t: var(--sumeru-logo-p-top-tab) !important;
        --sumeru-logo-p-b: var(--sumeru-logo-p-bottom-tab) !important;
        --sumeru-logo-p-l: var(--sumeru-logo-p-left-tab) !important;
        --sumeru-logo-p-r: var(--sumeru-logo-p-right-tab) !important;
        height: var(--sumeru-header-tablet-h) !important;
        min-height: var(--sumeru-header-tablet-h) !important;
    }

    body.sumeru-header-enabled .sumeru-sticky-header.sumeru-is-sticky {
        height: var(--sumeru-header-sticky-tablet-h) !important;
        min-height: var(--sumeru-header-sticky-tablet-h) !important;
    }

    body.sumeru-header-enabled .sumeru-sticky-header img.custom-logo,
    body.sumeru-header-enabled .sumeru-sticky-header .elementor-widget-theme-logo img,
    body.sumeru-header-enabled .sumeru-sticky-header .elementor-widget-image img {
        height: var(--sumeru-logo-h-tablet) !important;
    }

    body.sumeru-header-enabled .sumeru-sticky-header.sumeru-is-sticky img.custom-logo,
    body.sumeru-header-enabled .sumeru-sticky-header.sumeru-is-sticky .elementor-widget-theme-logo img,
    body.sumeru-header-enabled .sumeru-sticky-header.sumeru-is-sticky .elementor-widget-image img {
        height: var(--sumeru-logo-sticky-h-tablet) !important;
    }

    body.sumeru-header-enabled #hamburger-flexbox,
    body.sumeru-header-enabled .sumeru-hamburger-container {
        display: none !important;
    }

    .sumeru-sticky-header nav.hfe-nav-menu__layout-horizontal.hfe-dropdown .hfe-nav-menu {
        box-shadow: 0 1px 5px 0 rgba(0, 0, 0, 0.15);
        padding: 0 10px;
        width: calc(100% - 20px);
        margin-left: auto;
        margin-right: auto;
    }
}

/* ==========================================================================
   4. Mobile overrides (max-width: 767px)
   ========================================================================== */
@media (max-width: 767px) {
    body.sumeru-header-enabled .sumeru-sticky-header {
        --sumeru-logo-p-t: var(--sumeru-logo-p-top-mob) !important;
        --sumeru-logo-p-b: var(--sumeru-logo-p-bottom-mob) !important;
        --sumeru-logo-p-l: var(--sumeru-logo-p-left-mob) !important;
        --sumeru-logo-p-r: var(--sumeru-logo-p-right-mob) !important;
        height: var(--sumeru-header-mobile-h) !important;
        min-height: var(--sumeru-header-mobile-h) !important;
    }

    body.sumeru-header-enabled .sumeru-sticky-header.sumeru-is-sticky {
        height: var(--sumeru-header-sticky-mobile-h) !important;
        min-height: var(--sumeru-header-sticky-mobile-h) !important;
    }

    body.sumeru-header-enabled .sumeru-sticky-header img.custom-logo,
    body.sumeru-header-enabled .sumeru-sticky-header .elementor-widget-theme-logo img,
    body.sumeru-header-enabled .sumeru-sticky-header .elementor-widget-image img {
        height: var(--sumeru-logo-h-mobile) !important;
    }

    body.sumeru-header-enabled .sumeru-sticky-header.sumeru-is-sticky img.custom-logo,
    body.sumeru-header-enabled .sumeru-sticky-header.sumeru-is-sticky .elementor-widget-theme-logo img,
    body.sumeru-header-enabled .sumeru-sticky-header.sumeru-is-sticky .elementor-widget-image img {
        height: var(--sumeru-logo-sticky-h-mobile) !important;
    }
}

/* ==========================================================================
   5. Fullscreen Overlay Hamburger Navigation Modal
   ========================================================================== */
body.sumeru-header-enabled .sumeru-overlay-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--sumeru-overlay-bg);
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-20px) scale(0.98);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

body.sumeru-overlay-open .sumeru-overlay-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

body.sumeru-header-enabled .sumeru-overlay-menu .sumeru-overlay-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 50px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

body.sumeru-header-enabled .sumeru-overlay-menu #sumeru-overlay-logo-container {
    background-color: #fff;
    padding: 5px;
    border-radius: 1px;
    display: inline-flex;
    align-items: center;
}

body.sumeru-header-enabled .sumeru-overlay-menu .sumeru-overlay-logo img {
    height: 55px;
    width: auto;
    object-fit: contain;
}

body.sumeru-header-enabled .sumeru-overlay-menu .sumeru-site-title-fallback {
    font-size: 26px;
    font-weight: 700;
    text-decoration: none;
    color: #1a202c;
    letter-spacing: -0.5px;
}

body.sumeru-header-enabled .sumeru-overlay-menu button.sumeru-overlay-close {
    background: none;
    border: none;
    font-size: 44px;
    color: #fff;
    line-height: 1;
    padding: 0;
    transition: color 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

body.sumeru-header-enabled .sumeru-overlay-menu button.sumeru-overlay-close:hover {
    color: #c7d842;
    background-color: unset;
}

/* Content wrapper area */
body.sumeru-header-enabled .sumeru-overlay-menu .sumeru-overlay-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 50px;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* Nav Menu lists */
body.sumeru-header-enabled .sumeru-overlay-menu .sumeru-overlay-nav {
    margin: 40px 0;
    width: 100%;
}

body.sumeru-header-enabled .sumeru-overlay-menu #sumeru-overlay-menu-list-wrapper {
    transition: opacity 0.25s ease;
}

body.sumeru-header-enabled .sumeru-overlay-menu .sumeru-overlay-menu-items {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

body.sumeru-header-enabled .sumeru-overlay-menu .sumeru-overlay-menu-items li {
    margin: 10px 0;
    position: relative;
    overflow: hidden;
}

body.sumeru-header-enabled .sumeru-overlay-menu .sumeru-overlay-menu-items li a,
body.sumeru-header-enabled .sumeru-overlay-menu .sumeru-overlay-menu-items li a.elementor-button,
body.sumeru-header-enabled .sumeru-overlay-menu .sumeru-overlay-menu-items li a.hfe-menu-item {
    font-size: 26px !important;
    font-weight: 600 !important;
    color: #fff !important;
    text-decoration: none !important;
    transition: color 0.2s ease, background-color 0.2s ease !important;
    display: inline-block;
    padding: 5px 10px;
    position: relative;
    letter-spacing: -0.2px;
    background-color: transparent !important;
    border: none !important;
}

/* Left indicator border on active menu items */
body.sumeru-header-enabled .sumeru-overlay-menu .sumeru-overlay-menu-items li.current-menu-item>a,
body.sumeru-header-enabled .sumeru-overlay-menu .sumeru-overlay-menu-items li.current-menu-item>a.elementor-button,
body.sumeru-header-enabled .sumeru-overlay-menu .sumeru-overlay-menu-items li.current-menu-item>a.hfe-menu-item {
    color: #c7d842 !important;
}

body.sumeru-header-enabled .sumeru-overlay-menu .sumeru-overlay-menu-items li.current-menu-item>a::before {
    content: "";
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background-color: #c7d842;
    border-radius: 2px;
}

body.sumeru-header-enabled .sumeru-overlay-menu .sumeru-overlay-menu-items li a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 10px;
    width: 0;
    height: 2px;
    background-color: #c7d842;
    transition: width 0.3s ease;
}

body.sumeru-header-enabled .sumeru-overlay-menu .sumeru-overlay-menu-items li a:hover::after {
    width: calc(100% - 20px);
}

body.sumeru-header-enabled .sumeru-overlay-menu .sumeru-overlay-menu-items li a:hover,
body.sumeru-header-enabled .sumeru-overlay-menu .sumeru-overlay-menu-items li a:focus,
body.sumeru-header-enabled .sumeru-overlay-menu .sumeru-overlay-menu-items li a.elementor-button:hover,
body.sumeru-header-enabled .sumeru-overlay-menu .sumeru-overlay-menu-items li a.hfe-menu-item:hover {
    color: #c7d842 !important;
    background-color: transparent !important;
}

/* Accordions submenus */
body.sumeru-header-enabled .sumeru-overlay-menu .sumeru-overlay-menu-items .sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: 4px;
}

body.sumeru-header-enabled .sumeru-overlay-menu .sumeru-overlay-menu-items .sub-menu li {
    margin: 5px 0;
}

body.sumeru-header-enabled .sumeru-overlay-menu .sumeru-overlay-menu-items .sub-menu li a {
    font-size: 20px !important;
    font-weight: 500 !important;
    padding: 5px 15px;
}

body.sumeru-header-enabled .sumeru-overlay-menu .sumeru-overlay-menu-items .sub-menu li a::after {
    display: none;
}

body.sumeru-header-enabled .sumeru-overlay-menu .sumeru-submenu-toggle {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 5px;
    margin-left: 5px;
    vertical-align: middle;
    transition: transform 0.2s ease, color 0.2s ease;
}

body.sumeru-header-enabled .sumeru-overlay-menu .sumeru-submenu-toggle:hover {
    color: #c7d842;
}

body.sumeru-header-enabled .sumeru-overlay-menu .sumeru-submenu-active>.sumeru-submenu-toggle {
    transform: rotate(180deg);
}

/* Footer layout elements styling */
body.sumeru-header-enabled .sumeru-overlay-menu .sumeru-overlay-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 30px;
    flex-shrink: 0;
}

body.sumeru-header-enabled .sumeru-overlay-menu .sumeru-overlay-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    color: #4a5568;
    font-size: 15px;
}

body.sumeru-header-enabled .sumeru-overlay-menu .sumeru-overlay-contact a {
    color: #c7d842;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    font-family: inherit;
    transition: color 0.2s ease;
}

body.sumeru-header-enabled .sumeru-overlay-menu .sumeru-overlay-contact a:hover {
    color: #ffffff;
}

body.sumeru-header-enabled .sumeru-overlay-menu .sumeru-overlay-contact span {
    font-size: 18px;
}

body.sumeru-header-enabled .sumeru-overlay-menu .sumeru-contact-location {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #718096;
}

body.sumeru-header-enabled .sumeru-overlay-menu .sumeru-btn-overlay-cta {
    background-color: #c7d842;
    color: #fff;
    padding: 10px 28px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
    transition: background-color 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(199, 216, 66, 0.2);
}

body.sumeru-header-enabled .sumeru-overlay-menu .sumeru-btn-overlay-cta:hover {
    background-color: #a4b335;
    transform: translateY(-1px);
}

body.sumeru-header-enabled .sumeru-overlay-menu .sumeru-overlay-socials {
    display: flex;
    gap: 12px;
}

body.sumeru-header-enabled .sumeru-overlay-menu .sumeru-overlay-socials a {
    color: #ffffff !important;
    font-size: 20px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: #56B29D;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

body.sumeru-header-enabled .sumeru-overlay-menu .sumeru-overlay-socials a:hover {
    background-color: #3e9984;
    color: #ffffff !important;
    transform: translateY(-2px) scale(1.08);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   6. Mega Menu Submenu Images Layout (Strictly Namespaced)
   ========================================================================== */
body.sumeru-header-enabled .sumeru-sticky-header .hfe-nav-menu__layout-horizontal ul.sub-menu {
    min-width: 220px;
}

body.sumeru-header-enabled .sumeru-sticky-header .sumeru-mega-menu-enabled {
    position: relative;
}

body.sumeru-header-enabled .sumeru-sticky-header .hfe-nav-menu li.menu-item.sumeru-mega-menu-enabled {
    position: relative;
    padding: 10px 10px;
}

body.sumeru-header-enabled .sumeru-sticky-header .sumeru-mega-menu-link {
    display: flex !important;
    flex-direction: column;
    text-decoration: inherit !important;
    color: inherit !important;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    letter-spacing: inherit !important;
}

body.sumeru-header-enabled .sumeru-sticky-header .sumeru-mega-menu-title {
    font-weight: inherit !important;
    color: inherit !important;
    font-family: inherit !important;
    font-size: inherit !important;
    text-transform: inherit !important;
    letter-spacing: inherit !important;
}

body.sumeru-header-enabled .sumeru-sticky-header .sumeru-mega-menu-meta {
    margin-top: 5px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

body.sumeru-header-enabled .sumeru-sticky-header .sumeru-mega-menu-desc {
    font-size: 12px;
    color: #718096;
    line-height: 1.4;
    white-space: normal;
}

body.sumeru-header-enabled .sumeru-sticky-header .sumeru-mega-menu-count {
    font-size: 11px;
    font-weight: 600;
    color: #c7d842;
}

body.sumeru-header-enabled .sumeru-sticky-header .sumeru-mega-menu-image-wrap {
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 8px;
    background: #f7fafc;
}

body.sumeru-header-enabled .sumeru-sticky-header .sumeru-mega-menu-image {
    transition: transform 0.3s ease;
}

body.sumeru-header-enabled .sumeru-sticky-header .sumeru-mega-menu-link:hover .sumeru-mega-menu-image {
    transform: scale(1.05);
}

body.sumeru-header-enabled .sumeru-sticky-header .sumeru-mega-img-bottom .sumeru-mega-menu-image-wrap {
    margin-top: 8px;
    margin-bottom: 0;
}

body.sumeru-header-enabled .sumeru-sticky-header .sumeru-mega-img-left .sumeru-mega-flex-row,
body.sumeru-header-enabled .sumeru-sticky-header .sumeru-mega-img-right .sumeru-mega-flex-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

body.sumeru-header-enabled .sumeru-sticky-header .sumeru-mega-img-left .sumeru-mega-menu-image-wrap,
body.sumeru-header-enabled .sumeru-sticky-header .sumeru-mega-img-right .sumeru-mega-menu-image-wrap {
    margin: 0;
    flex-shrink: 0;
}