/* Custom Mobile Menu Styles */

/* Header Styles */

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: #fff;
}

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

.site-logo a {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    text-decoration: none;
    letter-spacing: 1px;
    line-height: 1;
}

/* Mobile Menu Button */
.mobile-menu-trigger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 1000;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    align-self: center;
}

/* Remove all button states */
.mobile-menu-trigger:focus,
.mobile-menu-trigger:hover,
.mobile-menu-trigger:active {
    outline: none;
    background: none;
    border: none;
}

.mobile-menu-trigger span {
    width: 30px;
    height: 3px;
    background: #6f42c1;
    display: block;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Optional: Darken bars on hover */
.mobile-menu-trigger:hover span {
    background: #5a34a0;
}

/* Hamburger animation when active */
.mobile-menu-trigger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

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

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

/* Responsive sizing */
@media (max-width: 768px) {
    .site-logo a {
        font-size: 20px;
    }
    
    .header-inner {
        padding: 15px 20px;
    }
}

@media (min-width: 769px) {
    .site-logo a {
        font-size: 28px;
    }
}

/* ============================================
   MENU OVERLAY - DARK PURPLE BACKGROUND
============================================ */
.custom-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(197, 7, 99, 0.70); /* Hot deep pink #C50763 */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

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

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* ============================================
   CLOSE BUTTON - OVERRIDE THEMIFY STYLES
============================================ */
.custom-menu-close {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    
    /* Remove all styling - just the X */
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    
    /* Text styling */
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 48px !important;
    font-weight: 200 !important;
    line-height: 1 !important;
    
    /* Size & layout */
    width: 60px !important;
    height: 60px !important;
    padding: 0 !important;
    margin: 0 !important;
    
    /* Centering */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    
    /* Cursor */
    cursor: pointer !important;
    
    /* Smooth rotation only */
    transition: transform 0.3s ease, color 0.2s ease !important;
    
    /* Remove ALL default browser styles */
    outline: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    -webkit-tap-highlight-color: transparent !important;
    
    /* Z-index */
    z-index: 1000000 !important;
}

/* Hover - ONLY rotation + brighter white */
.custom-menu-close:hover {
    transform: rotate(90deg) !important;
    color: rgba(255, 255, 255, 1) !important;
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Active/Click - Scale down slightly */
.custom-menu-close:active {
    transform: rotate(90deg) scale(0.9) !important;
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Focus - No outline */
.custom-menu-close:focus,
.custom-menu-close:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
}

/* Extra specificity to beat Themify */
button.custom-menu-close,
.custom-menu-overlay button.custom-menu-close,
#menu-overlay button.custom-menu-close {
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

button.custom-menu-close:hover,
button.custom-menu-close:focus,
button.custom-menu-close:active {
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .custom-menu-close {
        top: 15px !important;
        right: 15px !important;
        width: 50px !important;
        height: 50px !important;
        font-size: 40px !important;
    }
}

/* ============================================
   MENU CONTENT
============================================ */
.custom-menu-content {
    text-align: center;
    padding: 20px;
}

.custom-menu-content h3 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 40px;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.custom-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.custom-menu-list li {
    margin: 25px 0;
}

.custom-menu-list a {
    color: #fff;
    text-decoration: none;
    font-size: 28px;
    font-weight: 500;
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
    padding: 10px 20px;
}

.custom-menu-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #fff;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.custom-menu-list a:hover::after {
    width: 100%;
}

.custom-menu-list a:hover {
    transform: scale(1.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .custom-menu-list a {
        font-size: 22px;
    }
    
    .custom-menu-content h3 {
        font-size: 20px;
        margin-bottom: 30px;
    }
}

/* Tablet */
@media (max-width: 1024px) and (min-width: 769px) {
    .custom-menu-list a {
        font-size: 24px;
    }
}