/* Custom Menu Styles */
.custom-menu-wrapper {
    position: relative;
    width: 100%;
}

.custom-menu-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Desktop Menu */
.desktop-menu {
    display: flex;
    align-items: center;
}

.main-navigation {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    color: #333;
    padding: 13px 0;
    display: block;
    transition: color 0.3s ease;
    font-family: "Roboto", Sans-serif;
    font-size: 15px;
    text-transform: uppercase;
    font-weight: 600;
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: #F26C4F;
    transition: width 0.3s ease;
}

.main-navigation a:hover {
    color: #F26C4F;
}

.main-navigation a:hover::after {
    width: 50%;
}

.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
    color: #F26C4F;
}

/* Dropdown menus */
.main-navigation .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    z-index: 1000;
}

.main-navigation li:hover > .sub-menu {
    display: block;
}

.main-navigation .sub-menu a {
    padding: 10px 20px;
}

/* Hamburger Menu (Hidden on Desktop) */
.hamburger-menu {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger-line {
    width: 30px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: all 0.3s ease;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Off-Canvas Menu */
.off-canvas-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
background: #020312;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    z-index: 1002;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.off-canvas-menu.active {
    right: 0;
}

.off-canvas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 0px solid #eee;
    background-color: #F26C4F;
}

.site-logo-mobile {
    max-height: 30px;
    width: auto;
}

.close-menu {
    background: none;
    border: none;
    font-size: 36px;
    cursor: pointer;
    color: #333;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.close-menu:hover {
    color: #0073aa;
}

/* Mobile Menu Navigation */
.mobile-navigation {
    list-style: none;
    margin: 0;
    padding: 20px 0;
}

.mobile-navigation li {
    border-bottom: 0px solid #eee;
}

.mobile-navigation a {
    display: block;
    padding: 15px 20px;
    font-family: "Roboto", Sans-serif;
    text-decoration: none;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.mobile-navigation a:hover {
    background-color: rgba(245, 245, 245, 0.522);
    color: #000000;
}

.mobile-navigation .sub-menu {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.mobile-navigation .sub-menu a {
    padding-left: 40px;
    font-size: 14px;
    background-color: #f9f9f9;
}

/* Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1001;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Styles (1050px and below) */
@media screen and (max-width: 1050px) {
    .desktop-menu {
        display: none;
    }
    
    .hamburger-menu {
        display: flex;
    }
}

/* Tablet adjustments */
@media screen and (max-width: 768px) {
    .custom-menu-container {
        padding: 15px 20px;
    }
    
    .site-logo {
        max-height: 50px;
    }
}

/* Small mobile adjustments */
@media screen and (max-width: 480px) {
    .off-canvas-menu {
        width: 280px;
    }
    
    .custom-menu-container {
        padding: 10px 15px;
    }
}
