/**
 * Mobile Menu Widget Styles
 */

/* Trigger Button (Hamburger) */
.mobile-menu-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-trigger__icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
}

.mobile-menu-trigger__bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #333;
    transition: all 0.3s ease;
}

.mobile-menu-trigger[aria-expanded="true"] .mobile-menu-trigger__bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-trigger[aria-expanded="true"] .mobile-menu-trigger__bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-trigger[aria-expanded="true"] .mobile-menu-trigger__bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Wrapper */
.mobile-menu-wrapper {
    position: relative;
}

/* Spacer for push effect */
.mobile-menu-spacer {
    height: 0;
    transition: height 0.4s ease;
}

/* Menu Panel - Full width */
.mobile-menu-panel {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    max-height: 0;
    background: #fff;
    overflow: hidden;
    transition: max-height 0.4s ease;
    z-index: 9999;
}

.mobile-menu-panel--open {
    max-height: 2000px;
    overflow-y: visible;
}

.mobile-menu-panel__header {
    display: none;
}

.mobile-menu {
    width: 100%;
    padding: 30px 20px;
    box-sizing: border-box;
}

/* Spacer for push effect - placed after header */
.mobile-menu-spacer {
    height: 0;
    transition: height 0.4s ease;
}

.mobile-menu__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Menu Item - No border */
.mobile-menu__item {
    margin: 0;
}

/* Active/Selected state - background + orange text + rounded */
.mobile-menu__item--active {
    background-color: #f6f1ee;
    border-radius: 8px;
}

.mobile-menu__item--active .mobile-menu__item-link {
    color: #f56c11;
}

.mobile-menu__item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Menu Link - Use span styling */
.mobile-menu__item-link {
    display: block;
    padding: 12px 20px;
    font-family: Inter, system-ui, sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #333;
    transition: color 0.3s ease;
    flex: 1;
    cursor: pointer;
}

.mobile-menu__item-link:hover {
    color: #f56c11;
}

/* Toggle button for submenu - span, no background, 20x20 */
.mobile-menu__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    cursor: pointer;
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.mobile-menu__arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    color: #999;
}

.mobile-menu__item--expanded .mobile-menu__arrow {
    transform: rotate(180deg);
}

/* Submenu */
.mobile-menu__submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #fff;
}

.mobile-menu__item--expanded .mobile-menu__submenu {
    max-height: 1000px;
}

.mobile-menu__submenu-item {
    margin: 0;
}

/* Submenu active state */
.mobile-menu__submenu-item--active {
    background-color: #f6f1ee;
    border-radius: 8px;
}

.mobile-menu__submenu-item--active .mobile-menu__submenu-link {
    color: #f56c11;
}

.mobile-menu__submenu-link {
    display: block;
    padding: 10px 20px 10px 40px;
    font-family: Inter, system-ui, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    transition: color 0.3s ease;
    cursor: pointer;
}

.mobile-menu__submenu-link:hover {
    color: #f56c11;
}

/* Bottom Button - Full width orange */
.mobile-menu__button-wrap {
    padding: 20px;
    margin-top: 10px;
}

.mobile-menu__button {
    display: block;
    padding: 15px 30px;
    text-align: center;
    font-family: Inter, system-ui, sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    background-color: #f56c11;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.mobile-menu__button:hover {
    background-color: #e05d0a;
}
