/* Mobile Menu Styles */

/* Hamburger Menu Button */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 2000;
    position: relative;
}

.hamburger-menu span {
    width: 100%;
    height: 3px;
    background-color: #a67c52;
    border-radius: 10px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Hamburger for initial transparent header */
#initial-header .hamburger-menu span {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Active state - X icon */
.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

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

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

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
    z-index: 1999;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow-y: auto;
    padding: 80px 0 30px 0;
}

.mobile-menu-overlay.active {
    right: 0;
}

/* Mobile Menu Backdrop */
.mobile-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

/* Mobile Menu Close Button */
.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 32px;
    color: #a67c52;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.mobile-menu-close:hover {
    transform: rotate(90deg);
}

/* Mobile Menu Navigation */
.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-menu>li {
    border-bottom: 1px solid rgba(166, 124, 82, 0.2);
}

.mobile-nav-menu>li:last-child {
    border-bottom: none;
}

.mobile-nav-link {
    display: block;
    padding: 18px 25px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Emirates', 'Calibri', 'Arial', sans-serif;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-nav-link:active {
    background-color: rgba(166, 124, 82, 0.1);
}

/* Mobile Dropdown */
.mobile-dropdown {
    position: relative;
}

.mobile-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 18px 25px;
    background: transparent;
    border: none;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Emirates', 'Calibri', 'Arial', sans-serif;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-dropdown-toggle:active {
    background-color: rgba(166, 124, 82, 0.1);
}

.mobile-dropdown-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.mobile-dropdown.active .mobile-dropdown-arrow {
    transform: rotate(180deg);
}

/* Mobile Dropdown Content */
.mobile-dropdown-content {
    max-height: 0;
    overflow: hidden;
    background-color: rgba(166, 124, 82, 0.05);
    transition: max-height 0.4s ease;
}

.mobile-dropdown.active .mobile-dropdown-content {
    max-height: 1000px;
}

.mobile-dropdown-content a {
    display: block;
    padding: 14px 25px 14px 40px;
    color: #555;
    text-decoration: none;
    font-size: 15px;
    font-family: 'Emirates', 'Calibri', 'Arial', sans-serif;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.mobile-dropdown-content a:active {
    background-color: rgba(166, 124, 82, 0.15);
    border-left-color: #a67c52;
}

/* Mobile Submenu */
.mobile-submenu {
    position: relative;
}

.mobile-submenu-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 14px 25px 14px 40px;
    background: transparent;
    border: none;
    border-left: 3px solid transparent;
    color: #555;
    font-size: 15px;
    font-family: 'Emirates', 'Calibri', 'Arial', sans-serif;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-submenu-toggle:active {
    background-color: rgba(166, 124, 82, 0.15);
    border-left-color: #a67c52;
}

.mobile-submenu-content {
    max-height: 0;
    overflow: hidden;
    background-color: rgba(166, 124, 82, 0.08);
    transition: max-height 0.4s ease;
}

.mobile-submenu.active .mobile-submenu-content {
    max-height: 500px;
}

.mobile-submenu-content a {
    display: block;
    padding: 12px 25px 12px 55px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    font-family: 'Emirates', 'Calibri', 'Arial', sans-serif;
    transition: all 0.3s ease;
}

.mobile-submenu-content a:active {
    background-color: rgba(166, 124, 82, 0.2);
    color: #a67c52;
}

/* Show hamburger menu on mobile */
@media (max-width: 992px) {
    .hamburger-menu {
        display: flex;
    }

    /* Hide desktop navigation on mobile */
    .nav-menu,
    .search-btn {
        display: none !important;
    }
}

/* Prevent body scroll when menu is open */
body.mobile-menu-open {
    overflow: hidden;
}