/* Make navbar a flex container */
.site-header {
    background: #DFFFFD;
    padding: 0 !important;
    margin: 0 !important;
    position: sticky;
    top: 0;
    z-index: 100;
    will-change: box-shadow;
}

.optech-header-bottom,
.optech-header-bottom2 {
    background: #DFFFFD;
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

.site-navbar {
    display: flex;
    align-items: center;        /* vertically align logo + menu + button */
    justify-content: space-between; /* space between logo and right side items */
    padding: 0 clamp(15px, 3vw, 30px) !important;
    width: 100%;
    max-width: 100%;
    height: clamp(50px, 8vh, 80px);
    background: #DFFFFD;
    border-radius: 0 !important;          /* no rounded edges */
    margin: 0 !important;
}

.brand-logo svg {
    width: clamp(80px, 12vw, 108px);
    height: auto;
    opacity: 1;
}

.menu-block-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end;  /* push menu to the right */
    margin-left: auto;
}

.menu-block {
    display: flex;
    align-items: center;
}

.site-menu-main {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

/* Each menu item spacing */
.site-menu-main > li {
    margin-left: 0px;       /* tighter space between nav items */
}

/* Menu links styling */
.site-menu-main > li > a {
    text-decoration: none;
    color: #1a1a1a;
    font-family: Roboto, sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 26px;
    letter-spacing: 0%;
    text-align: center;
    font-style: medium;
    display: block;
    opacity: 1;
    transition: color 0.15s ease-out;
    will-change: color;
}

/* Menu item text styling */
.site-menu-main .menu-item-text {
    font-family: Roboto, sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 26px;
    letter-spacing: 0%;
    font-style: medium;
    opacity: 1;
}

/* Optional hover effect */
.site-menu-main > li > a:hover {
    color: #0ADBCD;          /* highlight color */
}

/* Header button alignment */
.header-btn {
    margin-left: 20px;       /* space from menu */
}

.nav-item {
    padding: clamp(5px, 1vh, 10px) clamp(12px, 2vw, 24px);
}

/* Get Started Button Styling */
.nav-item.get-started-btn {
    padding: 7px; /* match spacing of other nav items */
    padding-right: 0px;
        padding-left: 24px;

}

.nav-item.get-started-btn .nav-link-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(110px, 15vw, 135px);
    height: clamp(32px, 5vh, 40px) !important;
    min-height: clamp(32px, 5vh, 40px) !important;
    padding: 0 clamp(8px, 1.5vw, 10px) !important;
    background: #0ADBCD;
    border-radius: clamp(8px, 1vw, 10px);
    color: #fff;
    font-family: Roboto, sans-serif;
    font-weight: 500;
    font-size: clamp(12px, 2vw, 14px);
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box; /* include padding in height */
}


.nav-item.get-started-btn .nav-link-item:hover {
    background: #09c4b8 !important;
    color: #ffffff !important;
}

.nav-item.get-started-btn .arrow-icon {
    width: clamp(4px, 0.8vw, 5.36px);
    height: 15px;
    margin-left: clamp(5px, 1vw, 8px);
}

/* Hide mobile menu elements on desktop */
.mobile-menu-head,
.mobile-menu-trigger {
    display: none;
}

.mobile-menu-trigger {
    width: 26px;
    height: 20px;
    position: relative;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-trigger span,
.mobile-menu-trigger span::before,
.mobile-menu-trigger span::after {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #0ADBCD;
    border-radius: 2px;
    position: absolute;
    transition: all 0.3s ease;
}

.mobile-menu-trigger span {
    top: 50%;
    transform: translateY(-50%);
}

.mobile-menu-trigger span::before {
    content: '';
    top: -8px;
}

.mobile-menu-trigger span::after {
    content: '';
    top: 8px;
}

/* Menu overlay */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Show mobile menu elements only on small screens */
@media (max-width: 991px) {
    body.drawer-open .mobile-menu-trigger {
        display: none !important;
    }

    .mobile-menu-trigger {
        display: block;
    }
    
    .site-menu-main {
        display: none; /* Hide desktop menu on mobile */
    }
    
    /* Mobile drawer menu */
    .menu-block {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #FFFFFF;
        box-shadow: -2px 0 12px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        transition: right 0.3s ease;
        overflow-y: auto;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
    }
    
    .menu-block.active {
        right: 0;
    }
    
    /* Mobile menu header */
    .mobile-menu-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 18px 20px;
        background: #FFFFFF;
        border-bottom: 1px solid #E0E0E0;
        flex-shrink: 0;
    }

    .mobile-menu-logo {
        display: flex;
        align-items: center;
    }

    .mobile-menu-logo svg {
        width: 108px;
        height: auto;
    }

    .mobile-menu-close {
        margin-left: auto;
    }
    
    .mobile-menu-close {
        width: 28px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: #1a1a1a;
        font-size: 32px;
        line-height: 1;
        transition: color 0.3s ease;
        flex-shrink: 0;
    }
    
    .mobile-menu-close:hover {
        color: #0ADBCD;
    }
    
    .current-menu-title {
        font-weight: 600;
        font-size: 20px;
        color: #1a1a1a;
        font-family: 'Roboto', sans-serif;
    }
    
    /* Mobile menu items */
    .menu-block .site-menu-main {
        display: flex;
        flex-direction: column;
        padding: 0;
        margin: 0;
        align-items: stretch;
    }
    
    .menu-block .site-menu-main .nav-item {
        padding: 0;
        margin: 0;
        border-bottom: 1px solid #F0F0F0;
    }
    
    .menu-block .site-menu-main .nav-item:last-child {
        border-bottom: none;
    }
    
    .menu-block .site-menu-main .nav-item .nav-link-item {
        color: #1a1a1a;
        font-size: 16px;
        font-weight: 500;
        font-family: 'Roboto', sans-serif;
        display: block;
        width: 100%;
        padding: 18px 24px;
        transition: all 0.3s ease;
        background: #FFFFFF;
    }
    
    .menu-block .site-menu-main .nav-item .nav-link-item:hover,
    .menu-block .site-menu-main .nav-item .nav-link-item.active {
        background: #F8FFFE;
        color: #0ADBCD;
    }
    
    /* Hide Get Started button in mobile drawer */
    .menu-block .site-menu-main .nav-item.get-started-btn {
        display: none;
    }
}
