/* One Header Menu Widget Styles */

.oe-header-menu {
    width: 100%;
    position: relative;
}

.oe-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    /* Don't override Elementor's container width settings */
}

/* Desktop Navigation */
.oe-desktop-nav {
    display: none;
}

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

.oe-desktop-menu > li {
    position: relative;
}

.oe-desktop-menu > li > a {
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    font-weight: 600;
    text-transform: uppercase;
}

/* Dropdown Menus */
.oe-desktop-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: auto;
    background: #000;
    list-style: none;
    margin: 0;
    padding: 10px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
    transform: none;
}

/* Sub-menu position: right (under parent end) */
.oe-header-menu.oe-submenu-right .oe-desktop-menu .sub-menu {
    left: auto;
    right: 0;
}

/* Sub-menu position: center (under parent) */
.oe-header-menu.oe-submenu-center .oe-desktop-menu .sub-menu {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}

.oe-header-menu.oe-submenu-center .oe-desktop-menu li:hover > .sub-menu {
    transform: translateX(-50%);
}

.oe-desktop-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
}

.oe-desktop-menu .sub-menu li a {
    display: block;
    padding: 10px 20px;
    color: #fff;
    text-decoration: none;
    transition: background 0.3s ease;
}

.oe-desktop-menu .sub-menu li a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Toggle Button (Hamburger/Close) */
.oe-hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
    width: 30px;
    height: 30px;
    position: relative;
    transition: all 0.3s ease;
}

.oe-hamburger-icon,
.oe-close-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.oe-hamburger.active .oe-hamburger-icon {
    opacity: 0;
    transform: rotate(90deg);
}

.oe-hamburger.active .oe-close-icon {
    opacity: 1 !important;
    transform: rotate(0deg);
}

.oe-close-icon {
    opacity: 0;
    transform: rotate(-90deg);
}

/* Default Hamburger Icon (3 lines) */
.oe-default-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 100%;
    height: 100%;
}

.oe-default-hamburger span {
    width: 100%;
    height: 3px;
    background: currentColor;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Icon Library & SVG Icons */
.oe-hamburger i,
.oe-hamburger svg {
    width: 100%;
    height: 100%;
}

.oe-hamburger img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Hover style is controlled by widget (Color / Background) - no default opacity so custom colors display correctly */

/* Mobile Menu Overlay */
.oe-mobile-menu-overlay {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background: #000;
    z-index: 9999;
    overflow-y: auto;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease, visibility 0.4s ease;
    display: flex;
    flex-direction: column;
}

.oe-mobile-menu-overlay.active {
    max-height: calc(100vh - var(--oe-overlay-top, 0px));
    opacity: 1;
    visibility: visible;
}

/* Mobile Search */
.oe-mobile-search {
    margin-bottom: 20px;
}

.oe-mobile-search-form {
    position: relative;
    width: 100%;
}

.oe-mobile-search-form input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

.oe-mobile-search-form input:focus {
    border-color: rgba(255, 255, 255, 0.3);
}

.oe-mobile-search-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.oe-mobile-search-form button {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.oe-mobile-search-form button:hover {
    opacity: 0.7;
}

/* Mobile Menu Content */
.oe-mobile-menu-content {
    flex: 1;
}

.oe-mobile-menu-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.oe-mobile-menu-nav > li > a {
    color: #fff;
    text-decoration: none;
    font-size: 24px;
    font-weight: 700;
    display: block;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.oe-mobile-menu-nav > li > a:hover,
.oe-mobile-menu-nav > li.current-menu-item > a {
    color: #ccc;
}

/* Mobile Menu Submenu */
.oe-mobile-menu-nav .sub-menu {
    list-style: none;
    padding: 10px 0 0 20px;
    margin-top: 10px;
    display: none;
}

.oe-mobile-menu-nav .menu-item-has-children.submenu-open > .sub-menu {
    display: block;
}

.oe-mobile-menu-nav .sub-menu li {
    margin-bottom: 10px;
}

.oe-mobile-menu-nav .sub-menu a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 18px;
    font-weight: 400;
    display: block;
    transition: color 0.3s ease;
}

.oe-mobile-menu-nav .sub-menu a:hover {
    color: #fff;
}

/* Submenu indicator */
.oe-mobile-menu-nav .menu-item-has-children > a::after {
    content: '+';
    margin-left: 10px;
    font-size: 20px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.oe-mobile-menu-nav .menu-item-has-children.submenu-open > a::after {
    content: '−';
}

/* Mobile Menu Footer */
.oe-mobile-menu-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Mobile Footer Button */
.oe-mobile-footer-button {
    display: inline-block;
    padding: 15px 30px;
    background: #ff0000;
    color: #fff;
    text-decoration: none;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    border: 2px solid #ff0000;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.oe-mobile-footer-button:hover {
    background: transparent;
    color: #ff0000;
}

/* Mobile Footer Socials */
.oe-mobile-footer-socials {
    display: flex;
    align-items: center;
    gap: 15px;
}

.oe-mobile-footer-socials a {
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    transition: color 0.3s ease;
    width: 20px;
}

.oe-mobile-footer-socials svg  {
    fill: #fff;
}

.oe-mobile-footer-socials a:hover {
    color: #ccc;
}

/* Mobile Footer Copyright */
.oe-mobile-footer-copyright {
    color: #666;
    font-size: 12px;
    line-height: 1.6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Desktop Styles */
@media (min-width: 1025px) {
    .oe-desktop-nav {
        display: block;
    }

    .oe-hamburger {
        display: none;
    }

    .oe-mobile-menu-overlay {
        display: none;
    }
}

/* Mobile Styles */
@media (max-width: 767px) {
    .oe-mobile-menu-nav > li > a {
        font-size: 20px;
    }
}

/* Body Lock when Mobile Menu is Open */
body.oe-menu-open {
    overflow: hidden;
}
