/* ==========================================================================
   ADVANCED MENU PRO - COMPLETE HEADER & NAVIGATION STYLES
   Version: 2.0.0
   ========================================================================== */

/* 1. Global Wrapper & Box Sizing */
.amp-6daffeee-wrapper {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.amp-6daffeee-wrapper *,
.amp-6daffeee-wrapper *::before,
.amp-6daffeee-wrapper *::after {
    box-sizing: border-box;
}

/* 2. Header Bar Container (Desktop & Mobile Closed State) */
.amp-6daffeee-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background-color: #fcfbf7;
    padding: 14px 28px;
    box-sizing: border-box;
    position: relative;
    z-index: 100;
    transition: background-color 0.25s ease, padding 0.25s ease;
}

/* 3. Logo Styles */
.amp-6daffeee-logo-container {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.amp-6daffeee-logo-wrap {
    display: flex;
    align-items: center;
    line-height: 0;
}

.amp-6daffeee-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 0;
}

.amp-6daffeee-logo-img,
.amp-6daffeee-logo-container .custom-logo {
    max-width: 165px;
    max-height: 45px;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

.amp-6daffeee-logo-text {
    font-size: 20px;
    font-weight: 700;
    color: #008738;
    text-decoration: none;
    line-height: 1.2;
    letter-spacing: -0.2px;
}

/* 4. Desktop Navigation Menu */
.amp-6daffeee-desktop-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    margin: 0 24px;
}

.amp-6daffeee-desktop-nav .amp-6daffeee-menu-container {
    width: 100%;
}

.amp-6daffeee-desktop-nav .amp-6daffeee-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 26px;
    flex-wrap: wrap;
}

.amp-6daffeee-desktop-nav .menu-item {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
}

.amp-6daffeee-desktop-nav .menu-item > a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #2c302e;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    padding: 8px 4px;
    transition: color 0.22s ease, background-color 0.22s ease;
    white-space: nowrap;
}

.amp-6daffeee-desktop-nav .menu-item:hover > a,
.amp-6daffeee-desktop-nav .menu-item.current-menu-item > a,
.amp-6daffeee-desktop-nav .menu-item.current-menu-ancestor > a {
    color: #008738;
}

/* Dropdown Arrow Indicator on Desktop ("Solutions ˅") */
.amp-6daffeee-has-dropdown-icon .amp-6daffeee-desktop-nav .menu-item-has-children > a::after,
.amp-6daffeee-has-dropdown-icon .amp-6daffeee-desktop-nav .amp-6daffeee-has-children > a::after {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-left: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.22s ease;
    vertical-align: middle;
}

.amp-6daffeee-has-dropdown-icon .amp-6daffeee-desktop-nav .menu-item-has-children:hover > a::after,
.amp-6daffeee-has-dropdown-icon .amp-6daffeee-desktop-nav .amp-6daffeee-has-children:hover > a::after {
    transform: rotate(-135deg) translateY(-2px);
}

/* Desktop Dropdown Submenu Box */
.amp-6daffeee-desktop-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #ffffff;
    list-style: none;
    margin: 8px 0 0;
    padding: 8px 0;
    border-radius: 6px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    z-index: 9999;
}

.amp-6daffeee-desktop-nav .menu-item-has-children:hover > .sub-menu,
.amp-6daffeee-desktop-nav .amp-6daffeee-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.amp-6daffeee-desktop-nav .sub-menu .menu-item {
    width: 100%;
    display: block;
}

.amp-6daffeee-desktop-nav .sub-menu .menu-item > a {
    display: block;
    width: 100%;
    padding: 10px 18px;
    color: #333333;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.18s ease, background-color 0.18s ease;
}

.amp-6daffeee-desktop-nav .sub-menu .menu-item:hover > a {
    color: #008738;
    background-color: #f8fdf9;
}


/* 5. Desktop Right CTA Button ("Talk to our team →") */
.amp-6daffeee-desktop-cta-container {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.amp-6daffeee-desktop-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #008738;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 11px 22px;
    border-radius: 6px;
    transition: background-color 0.22s ease, transform 0.15s ease, box-shadow 0.22s ease;
    white-space: nowrap;
    line-height: 1.2;
}

.amp-6daffeee-desktop-cta-btn:hover {
    background-color: #006c2c;
    color: #ffffff;
}

.amp-6daffeee-arrow-icon {
    display: inline-block;
    width: 15px;
    height: 15px;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.amp-6daffeee-desktop-cta-btn:hover .amp-6daffeee-arrow-icon {
    transform: translateX(3px);
}


/* 6. Mobile Hamburger Toggle Button (Screenshot 3) */
.amp-6daffeee-mobile-toggle-container {
    display: none;
    align-items: center;
    flex-shrink: 0;
}

.amp-6daffeee-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    line-height: 1;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.amp-6daffeee-hamburger {
    display: inline-block;
    position: relative;
    width: 24px;
    height: 2px;
    background-color: #222222;
    border-radius: 2px;
    transition: background-color 0.2s ease;
}

.amp-6daffeee-hamburger::before,
.amp-6daffeee-hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: inherit;
    border-radius: 2px;
    transition: transform 0.22s ease, top 0.22s ease;
}

.amp-6daffeee-hamburger::before {
    top: -7px;
}

.amp-6daffeee-hamburger::after {
    top: 7px;
}


/* 7. Mobile Off-Canvas Drawer (Screenshot 1) */
.amp-6daffeee-drawer {
    display: none;
    position: fixed;
    top: 0;
    bottom: 0;
    height: 100vh;
    max-height: 100vh;
    width: 320px;
    background-color: #ffffff;
    z-index: 99999;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 0 28px rgba(0, 0, 0, 0.14);
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Left Position */
.amp-6daffeee-pos-left .amp-6daffeee-drawer {
    left: 0;
    right: auto;
    transform: translateX(-100%);
}

/* Right Position */
.amp-6daffeee-pos-right .amp-6daffeee-drawer {
    right: 0;
    left: auto;
    transform: translateX(100%);
}

/* Open State */
.amp-6daffeee-drawer.is-open {
    transform: translateX(0) !important;
}

/* 8. Mobile Drawer Header: Logo + Close (✕) */
.amp-6daffeee-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background-color: #fcfbf7;
    border-bottom: 1px solid #e8e8e8;
    flex-shrink: 0;
}

.amp-6daffeee-drawer-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.amp-6daffeee-drawer-header .amp-6daffeee-logo-img,
.amp-6daffeee-drawer-header .custom-logo {
    max-width: 150px;
    height: auto;
    display: block;
    object-fit: contain;
}

.amp-6daffeee-close {
    background: transparent;
    border: none;
    font-size: 26px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    color: #222222;
    padding: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.2s ease;
    margin-left: 12px;
}

.amp-6daffeee-close:hover {
    color: #008738;
}

/* 9. Mobile Drawer Content & List (Screenshot 1) */
.amp-6daffeee-drawer-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.amp-6daffeee-drawer .amp-6daffeee-menu-container {
    width: 100%;
}

.amp-6daffeee-drawer .amp-6daffeee-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Dividers between mobile items (Matches Screenshot 1) */
.amp-6daffeee-drawer .amp-6daffeee-menu-list > .menu-item {
    width: 100%;
    position: relative;
    border-bottom: 1px solid #ebebeb;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.amp-6daffeee-drawer .menu-item > a {
    flex: 1;
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #1f2421;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    transition: color 0.18s ease, background-color 0.18s ease;
}

.amp-6daffeee-drawer .menu-item:hover > a,
.amp-6daffeee-drawer .menu-item.current-menu-item > a {
    color: #008738;
}

/* Accordion Arrow Button */
.amp-6daffeee-drawer .amp-6daffeee-sub-toggle {
    width: 48px;
    height: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    flex-shrink: 0;
}

.amp-6daffeee-drawer .amp-6daffeee-sub-toggle::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid #666666;
    border-bottom: 2px solid #666666;
    transform: rotate(45deg);
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.amp-6daffeee-drawer .amp-6daffeee-sub-toggle.is-active::after {
    transform: rotate(-135deg);
    border-color: #008738;
}

/* Submenu in Drawer */
.amp-6daffeee-drawer .sub-menu {
    display: none;
    width: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: #fafafa;
}

/* If mode is "Always Expanded", show submenus directly as flat list */
.amp-6daffeee-mobile-expanded .amp-6daffeee-drawer .sub-menu {
    display: block !important;
}

.amp-6daffeee-mobile-expanded .amp-6daffeee-drawer .amp-6daffeee-sub-toggle {
    display: none !important;
}

.amp-6daffeee-drawer .sub-menu .menu-item {
    width: 100%;
    border-bottom: 1px solid #ebebeb;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.amp-6daffeee-drawer .sub-menu .menu-item > a {
    padding: 13px 20px 13px 28px;
    font-size: 14.5px;
    color: #2b2b2b;
}

/* 10. Mobile Drawer Footer & CTA Button (Screenshot 1 Bottom) */
.amp-6daffeee-drawer-footer {
    padding: 20px 16px;
    margin-top: auto;
    width: 100%;
    box-sizing: border-box;
}

.amp-6daffeee-drawer-cta-btn {
    display: block;
    width: 100%;
    text-align: center;
    text-decoration: none;
    background-color: #008738;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 20px;
    border-radius: 4px;
    box-sizing: border-box;
    transition: background-color 0.22s ease, box-shadow 0.22s ease;
    line-height: 1.3;
}

.amp-6daffeee-drawer-cta-btn:hover {
    background-color: #006c2c;
    color: #ffffff;
}

/* 11. Backdrop Overlay */
.amp-6daffeee-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.45);
    z-index: 99998;
    opacity: 0;
    transition: opacity 0.35s ease;
    cursor: pointer;
}

.amp-6daffeee-overlay.is-active {
    display: block;
    opacity: 1;
}

/* 12. Breakpoint Responsive Logic */

/* Tablet Breakpoint (< 1025px) */
@media (max-width: 1024px) {
    .amp-6daffeee-breakpoint-tablet .amp-6daffeee-desktop-nav,
    .amp-6daffeee-breakpoint-tablet .amp-6daffeee-desktop-cta-container {
        display: none !important;
    }
    .amp-6daffeee-breakpoint-tablet .amp-6daffeee-mobile-toggle-container {
        display: flex !important;
    }
    .amp-6daffeee-breakpoint-tablet .amp-6daffeee-drawer {
        display: flex;
    }
}

/* Mobile Breakpoint (< 768px) */
@media (max-width: 767px) {
    .amp-6daffeee-header-bar {
        padding: 12px 18px;
    }
    .amp-6daffeee-breakpoint-mobile .amp-6daffeee-desktop-nav,
    .amp-6daffeee-breakpoint-mobile .amp-6daffeee-desktop-cta-container {
        display: none !important;
    }
    .amp-6daffeee-breakpoint-mobile .amp-6daffeee-mobile-toggle-container {
        display: flex !important;
    }
    .amp-6daffeee-breakpoint-mobile .amp-6daffeee-drawer {
        display: flex;
    }
}

/* Body lock when drawer is active */
body.amp-6daffeee-locked {
    overflow: hidden !important;
    touch-action: none;
}