/* ==========================================================
   JUDY'S PARK MODELS - FLOATING HAMBURGER MENU
   Adapted from Servant of the Vineyard child theme
========================================================== */

/* ---- Hide the standard GeneratePress navigation on ALL pages ---- */
.main-navigation,
.site-header .main-navigation,
#site-navigation,
.mobile-menu-control-wrapper,
nav.main-navigation {
    display: none !important;
}

/* Combined Navigation Container (floating pill) */
.jp-floating-nav {
    position: fixed;
    left: 20px;
    top: 160px !important;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Home Button */
.jp-home-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    text-decoration: none !important;
    background: rgba(255, 255, 255, 1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.jp-home-button:hover {
    background: rgba(245, 240, 230, 1);
}

/* Home icon (SVG house) */
.jp-home-icon {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: #333333;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.jp-home-button:hover .jp-home-icon {
    stroke: #c8960c;
}

.jp-home-text {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: #333333;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 4px;
}

.jp-home-button:hover .jp-home-text {
    color: #c8960c;
}

/* Hamburger Button (3-line icon) */
.jp-hamburger-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 14px 16px;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.jp-hamburger-button:hover {
    background: rgba(245, 240, 230, 1);
}

.jp-hamburger-line {
    width: 24px;
    height: 2px;
    background: #333333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.jp-hamburger-button:hover .jp-hamburger-line {
    background: #c8960c;
}

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

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

/* Slide-out Menu Panel */
.jp-menu-panel {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100%;
    background: linear-gradient(to bottom, #265962 0%, #153f46 100%);
    z-index: 10000;
    padding: 20px;
    overflow-y: auto;
    transition: left 0.3s ease;
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.3);
}

.jp-menu-panel.active {
    left: 0;
}

/* Menu Header */
.jp-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(200, 150, 12, 0.3);
}

.jp-menu-header h3 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #e8d080;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Close Button (X) */
.jp-menu-close {
    background: none;
    border: none;
    color: #d4c5a9;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.jp-menu-close:hover {
    color: #e8d080;
    transform: rotate(90deg);
}

.jp-menu-close svg {
    width: 24px;
    height: 24px;
}

/* Menu Navigation List */
.jp-menu-nav {
    margin-top: 20px;
}

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

.jp-menu-list li {
    margin-bottom: 0;
}

.jp-menu-list a {
    display: block;
    padding: 14px 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 17px;
    font-weight: 500;
    color: #d4c5a9;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.jp-menu-list a:hover {
    background: rgba(200, 150, 12, 0.1);
    color: #e8d080;
    padding-left: 24px;
}

.jp-menu-list .current-menu-item > a,
.jp-menu-list .current_page_item > a {
    background: rgba(200, 150, 12, 0.15);
    color: #e8d080;
    font-weight: 600;
}

/* Submenu styling */
.jp-menu-list .sub-menu {
    list-style: none;
    padding: 0 0 0 16px;
    margin: 0;
}

.jp-menu-list .sub-menu a {
    font-size: 15px;
    padding: 10px 16px;
    color: #b0a585;
}

.jp-menu-list .sub-menu a:hover {
    color: #e8d080;
}

/* Empty Menu Message */
.jp-menu-empty {
    font-size: 15px;
    line-height: 1.6;
    color: #c4b59a;
    padding: 20px;
    background: rgba(200, 150, 12, 0.05);
    border-radius: 4px;
}

.jp-menu-empty strong {
    color: #e8d080;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .jp-floating-nav {
        left: 10px;
        top: 80px !important;
    }
    
    .jp-home-button,
    .jp-hamburger-button {
        padding: 10px 12px;
    }
    
    .jp-home-icon {
        width: 18px !important;
        height: 18px !important;
    }
    
    .jp-home-text {
        font-size: 9px;
    }
    
    .jp-hamburger-line {
        width: 20px;
    }
    
    .jp-menu-panel {
        width: 280px;
        left: -300px;
    }
}

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