/* ==========================================================================
   LOUSTALOT PHOTOGRAPHY - HEADER & NAVIGATION STYLES
   ========================================================================== */

/* --- BASE & DESKTOP HEADER --- */
.lp-header {
    background: #ffffff;
    border-bottom: 1px solid #eeeeee;
    padding: 15px 30px;
    position: relative;
    z-index: 9999 !important;
}

.lp-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

/* Header Logo */
.lp-logo img,
.lp-logo .custom-logo {
    max-height: 45px;
    width: auto;
    display: block;
}

.lp-logo a {
    font-size: 20px;
    font-weight: 600;
    color: #222222;
    text-decoration: none;
}

/* Navigation Layout (Desktop) */
.lp-nav {
    position: relative;
    z-index: 10000 !important;
    pointer-events: auto !important;
}

.lp-nav ul,
.lp-menu-list {
    display: flex;
    align-items: center;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.lp-nav li {
    margin: 0;
    padding: 0;
}

.lp-nav a {
    color: #222222;
    text-decoration: none;
    font-size: 15px;
    position: relative;
    z-index: 10001 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    transition: opacity 0.2s ease;
}

.lp-nav a:hover {
    opacity: 0.65;
}

/* Header Action Utilities */
.lp-header-utilities {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 18px;
}

/* Button & Form Resets */
.lp-header-utilities button,
#lp-search-toggle,
.lp-dark-toggle,
.lp-search-icon {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    font-size: 18px !important;
    color: #222222 !important;
    transition: opacity 0.2s ease;
}

.lp-dark-toggle:hover,
.lp-search-icon:hover {
    opacity: 0.6;
}

/* --- DARK MODE ICON TOGGLE --- */
.lp-dark-toggle .icon-sun {
    display: none !important;
}

.lp-dark-toggle .icon-moon {
    display: inline-block !important;
}

body.lp-dark .lp-dark-toggle .icon-sun,
body.dark-mode .lp-dark-toggle .icon-sun {
    display: inline-block !important;
    color: #ffffff;
}

body.lp-dark .lp-dark-toggle .icon-moon,
body.dark-mode .lp-dark-toggle .icon-moon {
    display: none !important;
}

/* --- DARK MODE HEADER OVERRIDES --- */
body.lp-dark,
body.dark-mode {
    background: var(--color-bg-dark, #121212);
    color: var(--color-text-dark, #f5f5f5);
}

body.lp-dark .lp-header,
body.dark-mode .lp-header {
    background: var(--color-bg-dark, #121212);
    border-color: var(--color-border-dark, #2a2a2a);
}

body.lp-dark .lp-nav a,
body.dark-mode .lp-nav a,
body.lp-dark .lp-logo a,
body.dark-mode .lp-logo a {
    color: #ffffff;
}

body.lp-dark .lp-header-utilities button,
body.dark-mode .lp-header-utilities button,
body.lp-dark #lp-search-toggle,
body.dark-mode #lp-search-toggle,
body.lp-dark .lp-dark-toggle,
body.dark-mode .lp-dark-toggle,
body.lp-dark .lp-search-icon,
body.dark-mode .lp-search-icon {
    color: #ffffff !important;
}

/* --- UNIFIED MOBILE NAVIGATION --- */
.lp-mobile-menu-toggle {
    display: none;
}

@media screen and (max-width: 768px) {
    html, body {
        overflow-x: hidden;
    }

    .lp-header {
        position: relative !important;
        z-index: 99999 !important;
    }

    /* Mobile Menu Hamburger Toggle Button */
    .lp-mobile-menu-toggle {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 4px !important;
        background: transparent !important;
        border: none !important;
        cursor: pointer !important;
        padding: 5px !important;
    }

    .lp-hamburger-bar {
        display: block;
        width: 18px;
        height: 2px;
        background-color: #222222;
    }

    body.dark-mode .lp-hamburger-bar,
    body.lp-dark .lp-hamburger-bar {
        background-color: #ffffff;
    }

    /* Base Hidden State for Mobile Nav Dropdown */
    .lp-nav,
    #lp-main-nav {
        display: none !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        width: 100% !important;
        background: #ffffff !important;
        padding: 20px 0 !important;
        border-bottom: 1px solid #eeeeee !important;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08) !important;
        z-index: 99999 !important;
        text-align: center !important;
    }

    /* Active Toggled Display State */
    .lp-nav.is-active,
    #lp-main-nav.is-active {
        display: block !important;
    }

    /* Mobile Dropdown Dark Mode Variant */
    body.lp-dark .lp-nav,
    body.dark-mode .lp-nav,
    body.lp-dark #lp-main-nav,
    body.dark-mode #lp-main-nav {
        background: #121212 !important;
        border-color: #2a2a2a !important;
    }

    /* Vertical Mobile Menu Items */
    .lp-nav ul,
    .lp-menu-list {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 15px !important;
        padding: 0 !important;
        margin: 0 !important;
        list-style: none !important;
    }

    /* High-Contrast Mobile Link Styling */
    .lp-nav a {
        display: block !important;
        color: #111111 !important;
        font-size: 16px !important;
        font-weight: 500 !important;
        padding: 8px 16px !important;
        text-decoration: none !important;
    }

    body.lp-dark .lp-nav a,
    body.dark-mode .lp-nav a {
        color: #ffffff !important;
    }
}