/* ============================================================
   ECOMVA — Header & Mega Menu Styles
   ============================================================ */

.ecomva-main-header {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 999;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.ecomva-main-header .main-header-box { width: 100%; }

.ecomva-main-header .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    height: 97px;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

.ecomva-main-header .header-container .logo{
    display: flex;
}

.ecomva-main-header .logo img { max-height: 52px; width: auto; display: block; }

.ecomva-main-header .navigation {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.ecomva-main-header .navigation-hide { display: none !important; }

.ecomva-main-header .main-navigation { display: flex; align-items: center; }

.ecomva-main-header ul.desktop-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0; padding: 0;
    gap: 4px;
}

.ecomva-main-header ul.desktop-menu > li > a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 14px;
    font-size: 18px;
    font-weight: 500;
    color: #1a1a1a;
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s;
    position: relative;
    font-family: 'Inter', sans-serif;
}

.ecomva-main-header ul.desktop-menu > li > a:hover,
.ecomva-main-header ul.desktop-menu > li.is-open > a { color: #1a7c40; }

.ecomva-main-header ul.desktop-menu > li.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 8px; height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .2s;
}

.ecomva-main-header ul.desktop-menu > li.menu-item-has-children.is-open > a::after {
    transform: rotate(-135deg) translateY(-2px);
}

.ecomva-main-header .header-cta{
    max-width: 185px;
    width: 100%;
}

.ecomva-main-header .header-cta .button {
    display: inline-block;
    background: linear-gradient(90.54deg, #57B957 2.19%, #005282 99.54%);
    color: #fff;
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    max-width: 185px;
    width: 100%;
    font-family: 'Montserrat';
}

.ecomva-main-header .header-cta .button:hover {
    background: #fff;
    border: 2px solid #57B957;
    color: #57B957;
    box-shadow: none;
}

/* ── Mega Menu ── */
.ecomva-main-header .mega-menu-item { position: static !important; }

.ecomva-main-header .mega-menu-dropdown {
    display: none;
    position: absolute;
    top: 100%; left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
    z-index: 1000;
    border-top: 1px solid #000;
}

.ecomva-main-header .mega-menu-item.is-open .mega-menu-dropdown {
    display: block;
    background-color: #F9FEF9;
}

.ecomva-main-header .mega-menu-inner {
    display: flex;
    min-height: 300px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 50px 0;
}

.ecomva-main-header .mega-menu__tabs { flex-shrink: 0; position: relative; }
.ecomva-main-header .mega-menu__tabs-inner { padding-left: 10px; padding-right: 24px; }

.ecomva-main-header .mega-menu__tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0px 20px;
    cursor: pointer;
    transition: background .15s, color .15s;
    color: #444;
    font-weight: 500;
    margin-bottom: 30px;
}

.ecomva-main-header .mega-menu__tab.is-active span,
.ecomva-main-header .mega-menu__tab span:hover {
    background: #A4D2A2; color: #000; font-weight: 600;
}

.ecomva-main-header .mega-menu__tab .tab-icon { width: 28px; height: 28px; object-fit: contain; flex-shrink: 0; }
.ecomva-main-header .mega-menu__tab span { font-size: 18px; font-weight: 600; color: #000; padding:10px; border-radius:8px; width:100%; font-family: 'Inter', sans-serif;}

.ecomva-main-header .mega-menu__tabs::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0; right: 0;
    width: 1px;
    background: linear-gradient(to bottom, rgba(232,240,235,0) 0%, #1a7c40 50%, rgba(232,240,235,0) 100%);
}

.ecomva-main-header .mega-menu__panels { flex: 1; padding: 0 32px; }
.ecomva-main-header .mega-menu__panel { display: none; }
.ecomva-main-header .mega-menu__panel.is-active { display: block; }
.ecomva-main-header .mega-menu__section { margin-bottom: 40px; }

.ecomva-main-header .mega-menu__section-label {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: #000;
    margin: 0 0 25px;
    position: relative;
    display: inline-block;
    padding-right: 20px;
    font-family: 'Inter', sans-serif;
}

.ecomva-main-header .mega-menu__section-label::after {
    content: '';
    position: absolute;
    top: 50%;
    left: calc(100% + 10px);
    width: 800px; height: 1px;
    background: linear-gradient(to right, #56B756 0%, transparent 100%);
    transform: translateY(-50%);
    pointer-events: none;
}

.ecomva-main-header ul.mega-menu__links-item {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 24px;
    list-style: none;
    margin: 0; padding: 0;
}

.ecomva-main-header ul.mega-menu__links-item li a {
    font-size: 16px; color: #000;
    text-decoration: none;
    display: block;
    padding: 0 0 15px 0;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}

.ecomva-main-header ul.mega-menu__links-item li a:hover { color: #57B957; }

.ecomva-main-header .mega-menu__tech-icons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    align-items: center;
}

.ecomva-main-header .mega-menu__tech-icons img {
    width: auto; object-fit: contain;
    filter: grayscale(20%);
    transition: filter .2s, transform .2s;
    max-width: 100%;
}

.ecomva-main-header .mega-menu__tech-icons img:hover { filter: grayscale(0%); transform: scale(1.08); }

/* ── About Us ── */
.ecomva-main-header .about-us-menu-item { position: relative; }

.ecomva-main-header .about-us-dropdown {
    display: none;
    position: absolute;
    top: 145%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
    list-style: none;
    margin: 0; min-width: 220px;
    z-index: 1000;
}

.ecomva-main-header .about-us-menu-item.is-open .about-us-dropdown { display: block; }

.ecomva-main-header .about-us-dropdown__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    color: #000;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    position: relative;
    transition: background .15s;
}

.ecomva-main-header .about-us-dropdown__item:hover { background: #A4D2A2; }
.ecomva-main-header .about-us-dropdown__icon { width: 22px; height: 22px; object-fit: contain; flex-shrink: 0; }

.ecomva-main-header .about-us-dropdown__item::after {
    content: '';
    position: absolute;
    bottom: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(to right, rgba(233,242,248,0) 0%, #56B756 50%, rgba(233,242,248,0) 100%);
    pointer-events: none;
}

.ecomva-main-header .about-us-dropdown li:last-child a::after { display: none; }

/* ============================================================
   HAMBURGER — ecomva- prefix + X animation
   ============================================================ */

.ecomva-main-header .ecomva-mbnav { display: none; }

.ecomva-main-header .ecomva-hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.ecomva-main-header .ecomva-hamburger:focus{
    outline: none;
}

.ecomva-main-header .ecomva-hamburger__wrap { display: flex; flex-direction: column; gap: 5px; }

.ecomva-main-header .ecomva-hamburger__line {
    display: block;
    width: 30px; height: 3px;
    background: #1a1a1a;
    border-radius: 2px;
    transition: transform .3s ease, opacity .3s ease;
    transform-origin: center;
}

.ecomva-main-header .ecomva-hamburger.is-active .ecomva-hamburger__line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.ecomva-main-header .ecomva-hamburger.is-active .ecomva-hamburger__line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.ecomva-main-header .ecomva-hamburger.is-active .ecomva-hamburger__line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ============================================================
   MOBILE OVERLAY & PANEL — these are appended to body so
   NO parent prefix needed here
   ============================================================ */

.ecomva-mob-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);  
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
    z-index: 994;
}

.ecomva-mob-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.ecomva-mob-panel {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; right: 0;
    width: 100%;
    height: calc(100dvh - 30px);
    background: #fff;
    z-index: 995;
    box-shadow: -4px 0 24px rgba(0,0,0,.15);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1), visibility 0s linear .35s;
    visibility: hidden;
    margin-top: 35px;
}

.ecomva-mob-section-label {
    position: relative;
    display: inline-block;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: #000000;
    margin: 10px 0 5px;
}

.ecomva-mob-section-label::after {
    content: '';
    position: absolute;
    top: 50%;
    left: calc(100% + 5px);
    width: 60vw;
    height: 1px;
    background: linear-gradient(to right, #56B756 0%, transparent 100%);
    transform: translateY(-50%);
    pointer-events: none;
}

.ecomva-mob-panel.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform .35s cubic-bezier(.4,0,.2,1), visibility 0s linear 0s;
}


.ecomva-mob-inner { padding: 24px 20px; }

.ecomva-mob-close-wrap { display: flex; justify-content: flex-end; margin-bottom: 16px; }

.ecomva-mob-close-btn {
    background: none; border: none;
    cursor: pointer;
    font-size: 28px; color: #1a1a1a;
    line-height: 1; padding: 4px 8px;
}

ul.ecomva-mobile-menu { list-style: none; margin: 70px 0 0 0; padding: 0; }
ul.ecomva-mobile-menu > li { border-bottom: 1px solid #f0f0f0; }

.ecomva-mob-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 4px;
}

.ecomva-mob-row > a {
    font-size: 16px; color: #1a1a1a;
    text-decoration: none; font-weight: 600; flex: 1;
    transition: none;
}

.ecomva-mob-row > a:hover { color: #1a7c40; }

.ecomva-mob-arrow {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 30px; height: 30px;
    cursor: pointer; flex-shrink: 0;
}

.ecomva-mob-arrow::after {
    content: '';
    display: inline-block;
    width: 8px; height: 8px;
    border-right: 2px solid #1a1a1a;
    border-bottom: 2px solid #1a1a1a;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .25s;
}

li.ecomva-mob-open > .ecomva-mob-row > .ecomva-mob-arrow::after {
    transform: rotate(-135deg) translateY(2px);
}

.ecomva-mob-sub { display: none; padding: 0 4px 12px 12px; }
li.ecomva-mob-open > .ecomva-mob-sub { display: block; }

ul.ecomva-svc-tabs { list-style: none; margin: 0; padding: 0; }
.ecomva-svc-tab { border-bottom: 1px solid #f0f0f0; }

.ecomva-svc-tab-row {
    display: flex;
    align-items: center; justify-content: space-between;
    padding: 12px 4px; cursor: pointer;
}

.ecomva-svc-tab-row > span {
    font-size: 15px; font-weight: 600; color: #1a1a1a;
    display: flex; align-items: center; gap: 8px;
}

.ecomva-svc-tab-row > span img { width: 20px; height: 20px; object-fit: contain; }

.ecomva-svc-tab-arrow {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 24px; height: 24px; flex-shrink: 0;
}

.ecomva-svc-tab-arrow::after {
    content: '';
    display: inline-block;
    width: 7px; height: 7px;
    border-right: 2px solid #444;
    border-bottom: 2px solid #444;
    transform: rotate(45deg) translateY(-1px);
    transition: transform .25s;
}

.ecomva-svc-tab.ecomva-tab-open > .ecomva-svc-tab-row > .ecomva-svc-tab-arrow::after {
    transform: rotate(-135deg) translateY(1px);
}

ul.ecomva-svc-links { display: none; list-style: none; margin: 0; padding: 4px 0 8px 28px; }
.ecomva-svc-tab.ecomva-tab-open > ul.ecomva-svc-links { display: block; padding: 0 0 0 54px; }

ul.ecomva-svc-links li a {
    display: block; padding: 8px 0;
    font-size: 14px; color: #333;
    text-decoration: none; font-weight: 500;
    border-bottom: 1px solid #f9f9f9;
    transition: none;
}

ul.ecomva-svc-links li a:hover { color: #57B957; }

ul.ecomva-about-links { list-style: none; margin: 0; padding: 0; }

ul.ecomva-about-links li a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 4px;
    font-size: 15px; color: #1a1a1a;
    text-decoration: none; font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
}

ul.ecomva-about-links li a:hover { color: #57B957; }
ul.ecomva-about-links li a img { width: 20px; height: 20px; object-fit: contain; flex-shrink: 0; }

ul.ecomva-mobile-menu > li.ecomva-mob-plain > a {
    display: block; padding: 14px 4px;
    font-size: 16px; color: #1a1a1a;
    text-decoration: none; font-weight: 600;
    transition: none;
}

ul.ecomva-mobile-menu > li.ecomva-mob-plain > a:hover { color: #1a7c40; }

.ecomva-mob-footer { padding: 20px; border-top: 1px solid #f0f0f0; }

.ecomva-mob-footer .button {
    display: block; text-align: center;
    background: linear-gradient(90.54deg, #57B957 2.19%, #005282 99.54%);
    color: #fff !important;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600; font-size: 15px;
    text-decoration: none;
    transition: none;
}

.ecomva-scroll-wrapper {
    overflow-y: auto;
    height: 100vh;
}

.ecomva-svc-links li {
    border-left: 1px solid #E2E2E2;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
    .ecomva-main-header ul.desktop-menu > li > a { padding: 10px 10px; font-size: 14px; }
}

@media (max-width: 991px) {

    .ecomva-main-header + * {
        margin-top: 27px;
    }

    .ecomva-main-header .main-navigation { display: none; }
    .ecomva-main-header .header-cta { display: none; }
    .ecomva-main-header .ecomva-mbnav { display: flex; align-items: center; }
    .ecomva-main-header {box-shadow: none; border-bottom: 1px solid #000000}

    ul.ecomva-mobile-menu > li:last-child,
    ul.ecomva-svc-tabs > li:last-child,
    ul.ecomva-svc-links > li:last-child,
    ul.ecomva-about-links > li:last-child {
        border-bottom: none ;
    }

    ul.ecomva-svc-links > li:last-child a,
    ul.ecomva-about-links > li:last-child a {
        border-bottom: none ;
    }

    
    .ecomva-mob-row > a,
    ul.ecomva-mobile-menu > li.ecomva-mob-plain > a {
        font-size: 20px;
        font-weight: 600;
    }

    
    .ecomva-svc-tab-row > span {
        font-size: 18px;
    }

    .ecomva-mob-footer .button{
        font-size: 18px;
    }

    
    ul.ecomva-svc-links li a,
    ul.ecomva-about-links li a {
        font-size: 18px;
    }

    .ecomva-mob-sub, ul.ecomva-svc-links{
        padding: 0;
    }

    li.ecomva-svc-tab .ecomva-svc-tab-row{
        padding: 10px;
        border-radius: 8px;
    }

    li.ecomva-svc-tab.ecomva-tab-open .ecomva-svc-tab-row span {
        color: #57B957;
    }

    ul.ecomva-svc-links li a{
        padding: 10px 12px;
    }

    ul.ecomva-svc-links{
        margin-bottom: 15px;
    }

    .ecomva-svc-tab-row > span img{
        height: 35px;
        width: 35px;
    }

    ul.ecomva-about-links li a{
        padding: 10px;
    }

    ul.ecomva-mobile-menu > li:last-child{
        margin-top: 10px;
    }
}

@media (max-width: 768px) {

    .ecomva-mob-row > a,
    ul.ecomva-mobile-menu > li.ecomva-mob-plain > a {
        font-size: 16px;
    }

    .ecomva-svc-tab-row > span {
        font-size: 16px;
    }

    ul.ecomva-svc-links li a,
    ul.ecomva-about-links li a, .ecomva-mob-section-label {
        font-size: 16px;
    }

    .ecomva-mob-footer .button {
        font-size: 16px;
    }

    .ecomva-mob-inner{
        padding: 10px 8px;
    }

    .ecomva-main-header .header-container{
        padding: 10px;
    }
}

@media (max-width: 375px) {

    .ecomva-mob-row > a,
    ul.ecomva-mobile-menu > li.ecomva-mob-plain > a {
        font-size: 15px;
    }

    .ecomva-svc-tab-row > span {
        font-size: 14px;
    }

    ul.ecomva-svc-links li a,
    ul.ecomva-about-links li a, .ecomva-mob-section-label {
        font-size: 14px;
    }

    .ecomva-mob-footer .button {
        font-size: 14px;
        padding: 10px 16px;
    }
}