/* ==========================================================================
   Plateau Header
   Clean header system — flexbox layout, single breakpoint at 768px.
   Overrides parent theme (Unicon) header + inline dynamic CSS.
   Uses ID selectors to beat parent theme specificity.
   ========================================================================== */


/* ---------------------------------------------------------------------------
   Parent Theme Resets
   Neutralize Unicon's float-based header, sticky-wrapper, and grid defaults.
   --------------------------------------------------------------------------- */

.sticky-wrapper,
.sticky-wrapper .is-sticky {
    position: static !important;
    height: auto !important;
}

#header,
#header #logo,
#header #navigation,
#header #navigation > ul,
#header #navigation > ul > li {
    float: none;
}

#header {
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    height: auto;
    min-height: 0;
    background: none;
}

#header #logo {
    margin: 0;
    padding: 0;
}

#topbar {
    height: auto;
    min-height: 0;
    padding: 0;
    margin: 0;
}

#topbar a {
    color: #8a8680;
}

#mobile-header {
    height: auto;
    padding: 0;
    margin: 0;
    box-shadow: none;
}


/* ---------------------------------------------------------------------------
   Wrapper
   --------------------------------------------------------------------------- */

.plateau-header {
    z-index: 8000;
}


/* ---------------------------------------------------------------------------
   Utility Bar
   --------------------------------------------------------------------------- */

#topbar.plateau-utility-bar {
    background: #000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 8px 0;
    color: #8a8680;
    z-index: 8000;
}

.plateau-utility-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 48px);
}

#topbar .utility-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

#topbar .utility-left a {
    color: #8a8680;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 12px;
    text-transform: uppercase;
    transition: color 0.2s;
}

#topbar .utility-left a:hover {
    color: #E8A824;
}

#topbar .utility-divider {
    width: 1px;
    height: 12px;
    background: rgba(138, 134, 128, 0.4);
}

#topbar .utility-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

#topbar .utility-right .social-link {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a8680;
    font-size: 14px;
    transition: color 0.2s;
    line-height: 1;
}

#topbar .utility-right .social-link:hover {
    color: #E8A824;
}

#topbar .utility-right .social-link .plateau-tiktok-icon {
    display: block;
    width: 14px;
    height: 14px;
}

#topbar .utility-right .utility-phone {
    color: #8a8680;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 12px;
    text-transform: uppercase;
    transition: color 0.2s;
    margin-left: 8px;
    padding-left: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
}

#topbar .utility-right .utility-phone:hover {
    color: #E8A824;
}


/* ---------------------------------------------------------------------------
   Desktop Header
   --------------------------------------------------------------------------- */

#header.plateau-desktop-header {
    background: rgb(26, 26, 24);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: none;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 8000;
    width: 100%;
    height: auto;
}

/* Gold accent line */
#header.plateau-desktop-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #e8a824;
    pointer-events: none;
}

/* Flex row: logo | nav + CTA */
#header .plateau-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 48px);
}


/* ---------------------------------------------------------------------------
   Logo
   --------------------------------------------------------------------------- */

#header #logo {
    flex-shrink: 0;
}

#header #logo img {
    height: clamp(30px, 3.5vw, 40px);
    width: auto;
    max-width: none;
}


/* ---------------------------------------------------------------------------
   Desktop Navigation
   --------------------------------------------------------------------------- */

#header #navigation.plateau-nav {
    display: flex;
    align-items: center;
    float: none;
}

#header #navigation > ul {
    display: flex;
    list-style: none;
    gap: clamp(0px, 0.3vw, 6px);
    margin: 0;
    padding: 0;
    align-items: center;
}

#header #navigation > ul > li {
    display: flex;
    align-items: center;
    height: auto;
    padding: 0;
    border: none;
    position: relative;
}

#header #navigation > ul > li > a {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: clamp(10px, 1.1vw, 13px);
    letter-spacing: clamp(0.5px, 0.17vw, 2px);
    text-transform: uppercase;
    color: #c8c4bb;
    padding: 8px clamp(4px, 1.2vw, 16px);
    transition: color 0.2s;
    position: relative;
    border: none;
    margin: 0;
    display: inline-block;
    line-height: 1.3;
    text-align: center;
    white-space: nowrap;
}

/* Hover & Superfish active */
#header #navigation > ul > li > a:hover,
#header #navigation > ul > li.sfHover > a {
    color: #fff;
    border: none;
}

/* Underline indicator */
#header #navigation > ul > li > a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: clamp(4px, 1.2vw, 16px);
    right: clamp(4px, 1.2vw, 16px);
    height: 1.5px;
    background: #E8A824;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

#header #navigation > ul > li > a:hover::after,
#header #navigation > ul > li.sfHover > a::after {
    transform: scaleX(1);
}

/* Current page */
#header #navigation > ul > li.current-menu-item > a,
#header #navigation > ul > li.current_page_item > a,
#header #navigation > ul > li.current-menu-ancestor > a,
#header #navigation > ul > li.current-page-ancestor > a,
#header #navigation > ul > li.current_page_ancestor > a {
    color: #fff;
}

#header #navigation > ul > li.current-menu-item > a::after,
#header #navigation > ul > li.current_page_item > a::after,
#header #navigation > ul > li.current-menu-ancestor > a::after,
#header #navigation > ul > li.current-page-ancestor > a::after,
#header #navigation > ul > li.current_page_ancestor > a::after {
    transform: scaleX(1);
}


/* ---------------------------------------------------------------------------
   Dropdown / Sub-menu
   --------------------------------------------------------------------------- */

#header #navigation .sub-menu {
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 2px solid #E8A824;
    border-radius: 0;
    width: 200px;
}

#header #navigation .sub-menu li {
    margin: 0 10px;
    border: none;
}

#header #navigation .sub-menu li a {
    color: #c8c4bb;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.2s, background 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 10px 6px;
}

#header #navigation .sub-menu li a:hover,
#header #navigation .sub-menu li.sfHover > a {
    color: #fff;
    background: rgba(232, 168, 36, 0.1);
}

#header #navigation .sub-menu li.current-menu-item > a {
    color: #fff;
}

#header #navigation .sub-menu > li:last-child > a {
    border-bottom: none;
}

/* Hide default sub-menu arrows */
#header #navigation > ul > li > a.sf-with-ul:after,
#header #navigation .megamenu .sf-with-ul:after {
    display: none !important;
}


/* ---------------------------------------------------------------------------
   Contact CTA Button
   --------------------------------------------------------------------------- */

#header #navigation a.nav-cta {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(180deg, #F5BA2E 0%, #D4941C 100%);
    color: #0a0a0a;
    padding: 12px clamp(14px, 1.8vw, 24px);
    border-radius: 2px;
    border-bottom: 2px solid #B8800F;
    transition: all 0.25s ease;
    margin-left: clamp(8px, 1.2vw, 20px);
    display: inline-block;
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

/* Shine sweep on hover */
#header #navigation a.nav-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255, 255, 255, 0) 20%,
        rgba(255, 255, 255, 0.45) 50%,
        rgba(255, 255, 255, 0) 80%,
        transparent 100%
    );
    transition: none;
    pointer-events: none;
}

#header #navigation a.nav-cta:hover::before,
#header #navigation a.nav-cta:focus-visible::before {
    left: 160%;
    transition: left 0.8s ease;
}

#header #navigation a.nav-cta:hover,
#header #navigation a.nav-cta:focus-visible {
    background: linear-gradient(180deg, #FFD04A 0%, #E8A824 100%);
    color: #0a0a0a;
    border-bottom-color: #D4941C;
    transform: translateY(-1px);
}


/* ---------------------------------------------------------------------------
   Mobile Header
   --------------------------------------------------------------------------- */

#mobile-header.plateau-mobile-header {
    display: none;
    background: #0a0a0a;
    width: 100%;
    z-index: 8000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.plateau-mobile-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 48px);
}

#mobile-header #mobile-logo img {
    height: 35px;
    width: auto;
}

#mobile-header #mobile-logo img.logo_retina {
    height: 35px !important;
    width: auto !important;
}

#mobile-navigation-btn {
    font-size: 22px;
    line-height: 1;
    color: #c8c4bb;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
}

#mobile-navigation-btn:hover {
    color: #E8A824;
}


/* ---------------------------------------------------------------------------
   Mobile Navigation Panel
   --------------------------------------------------------------------------- */

#plateau-mobile-nav.plateau-mobile-nav {
    background: #0e0e0d;
    padding: 0;
    position: relative;
    z-index: 7999;
    display: none;
    border-top: 3px solid #E8A824;
    overflow-x: hidden;
    overflow-y: auto;
    max-height: 80vh;
    -webkit-overflow-scrolling: touch;
}

#plateau-mobile-nav .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 48px) 16px;
    width: 100%;
    box-sizing: border-box;
}

#plateau-mobile-nav .container ul,
#plateau-mobile-nav .container ul li {
    list-style: none !important;
    margin-left: 0;
    padding-left: 0;
}

#plateau-mobile-nav .container ul li::before,
#plateau-mobile-nav .container ul li::marker {
    content: none !important;
    display: none !important;
}

#plateau-mobile-nav .container > ul {
    margin: 0;
    padding: 8px 0;
}

#plateau-mobile-nav .container ul li {
    position: relative;
}

#plateau-mobile-nav .container ul li ul {
    margin: 0;
    display: none;
    background: rgba(255, 255, 255, 0.03);
    border-left: 2px solid #E8A824;
    margin-left: 12px;
}

/* Top-level links */
#plateau-mobile-nav ul li a {
    display: block;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #c8c4bb;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    transition: color 0.2s;
}

#plateau-mobile-nav ul li a:hover,
#plateau-mobile-nav li.open > a,
#plateau-mobile-nav ul li.current-menu-item > a,
#plateau-mobile-nav ul li.current-menu-ancestor > a {
    color: #fff;
}

/* Gold underline on active/current */
#plateau-mobile-nav ul li.current-menu-item > a,
#plateau-mobile-nav ul li.current-menu-ancestor > a {
    border-bottom-color: rgba(232, 168, 36, 0.4) !important;
}

/* Accordion arrow toggle */
#plateau-mobile-nav ul li i {
    position: absolute;
    right: 0;
    top: 0;
    width: 44px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    line-height: 1;
    color: #8a8680;
    font-family: 'FontAwesome';
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: color 0.2s, transform 0.25s ease;
}

#plateau-mobile-nav li.open > a i {
    transform: rotate(180deg);
    color: #E8A824;
}

/* Contact CTA */
#plateau-mobile-nav a.mobile-nav-cta {
    display: block;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(180deg, #F5BA2E 0%, #D4941C 100%);
    color: #0a0a0a;
    padding: 14px 24px;
    text-align: center;
    margin: 12px 0 0 0;
    border-radius: 2px;
    border-bottom: 2px solid #B8800F;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

#plateau-mobile-nav a.mobile-nav-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255, 255, 255, 0) 20%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 80%,
        transparent 100%
    );
    transition: none;
    pointer-events: none;
}

#plateau-mobile-nav a.mobile-nav-cta:hover::before {
    left: 160%;
    transition: left 0.8s ease;
}

#plateau-mobile-nav a.mobile-nav-cta:hover {
    background: linear-gradient(180deg, #FFD04A 0%, #E8A824 100%);
    border-bottom-color: #D4941C;
}

#plateau-mobile-nav a.mobile-nav-store {
    display: block;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #8a8680;
    padding: 14px 24px;
    text-align: center;
    margin: 8px 0 0 0;
    border: 1px solid rgba(138, 134, 128, 0.3);
    border-radius: 2px;
    transition: all 0.25s ease;
}

#plateau-mobile-nav a.mobile-nav-store:hover {
    color: #E8A824;
    border-color: rgba(232, 168, 36, 0.4);
}

/* Mobile search */
#plateau-mobile-nav form {
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    padding: 0 12px 0 40px;
    margin: 0 0 16px 0;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 2px;
}

#plateau-mobile-nav form input {
    width: 100%;
    padding: 12px 0;
    margin: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    color: #c8c4bb;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    letter-spacing: 0.5px;
}

#plateau-mobile-nav form::before {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    font-size: 14px;
    color: #8a8680;
    content: '\f002';
    font-family: 'FontAwesome';
}


/* ---------------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------------- */

/* Compact desktop nav for narrower desktop screens */
@media screen and (min-width: 960px) and (max-width: 1100px) {

    #header .plateau-nav-inner {
        height: 72px;
        padding: 0 16px;
    }

    .plateau-utility-inner {
        padding: 0 16px;
    }

    #header #logo img {
        height: 28px;
    }

    #header #navigation.plateau-nav {
        flex: 1;
        justify-content: flex-end;
    }

    #header #navigation > ul {
        gap: 16px;
    }

    #header #navigation > ul > li > a {
        font-size: 15px;
        letter-spacing: 0.5px;
        padding: 8px 4px;
    }

    #header #navigation > ul > li > a::after {
        left: 4px;
        right: 4px;
    }

    #header #navigation a.nav-cta {
        font-size: 12px;
        letter-spacing: 1px;
        padding: 10px 12px;
        margin-left: 18px;
    }

    #topbar .utility-left a {
        font-size: 11px;
    }

    #topbar .utility-right .utility-phone {
        font-size: 11px;
    }
}


/* Tablet + mobile use the mobile header to avoid cramped desktop nav */
@media screen and (max-width: 959px) {

    /* Hide desktop header + utility bar */
    #header.plateau-desktop-header,
    .sticky-wrapper {
        display: none !important;
    }

    #topbar.plateau-utility-bar {
        display: none !important;
    }

    /* Make entire header wrapper sticky so header + nav panel stick together */
    .plateau-header {
        position: sticky;
        top: 0;
        z-index: 8000;
    }

    /* Show mobile header */
    #mobile-header.plateau-mobile-header {
        display: block !important;
    }

    /* Mobile nav: items with submenus need padding for the arrow */
    #plateau-mobile-nav ul li.has-ul > a {
        padding-right: 48px !important;
    }

    /* Sub-menu links: smaller, muted */
    #plateau-mobile-nav .container ul li ul li a {
        font-size: 12px;
        font-weight: 500;
        letter-spacing: 1px;
        color: #a8a39a;
        padding: 11px 0 11px 14px;
    }

    #plateau-mobile-nav .container ul li ul li a:hover {
        color: #E8A824;
    }

    /* Ensure sticky works — parent theme sets overflow:hidden on mobile */
    .on-mobile #page-wrap {
        overflow: visible !important;
    }
}

/* WP admin bar offset for sticky header */
.admin-bar #header.plateau-desktop-header {
    top: 32px;
}

/* @media screen and (max-width: 959px) {
    .admin-bar .plateau-header {
        top: 0;
    }
} */

/* @media screen and (max-width: 782px) {
    .admin-bar .plateau-header {
        top: 46px;
    }
} */

@media screen and (max-width: 768px) {
    #mobile-navigation-btn i.fa.fa-bars {
        font-family: 'FontAwesome';
    }
}

/* ---------------------------------------------------------------------------
   Accessibility: keyboard focus indicators for header elements
   --------------------------------------------------------------------------- */

#topbar a:focus-visible,
#header #navigation > ul > li > a:focus-visible,
#header #logo a:focus-visible,
#mobile-header a:focus-visible,
#plateau-mobile-nav a:focus-visible {
    outline: 2px solid #E8A824 !important;
    outline-offset: 2px;
}

#header #navigation a.nav-cta:focus-visible {
    outline: 2px solid white !important;
    outline-offset: 2px;
}

#mobile-navigation-btn:focus-visible {
    outline: 2px solid #E8A824 !important;
    outline-offset: 2px;
}

.mobile-nav-cta:focus-visible {
    outline: 2px solid #E8A824 !important;
    outline-offset: 2px;
}
