/* =====================================================================
   Header (2026 refresh)
   #aaa-universal-header  – AAA universal header (markup + CSS from the AAA service)
   .upper-header          – About Gas Prices / Subscribe / Contact Us (white row)
   .lower-header-nav      – FUEL PRICES, main nav, social, search (grey bar;
                            was the blue banner)
   Loaded after css/style.css so these rules win.
   ===================================================================== */

header.site-header {
    padding: 0;
    margin-bottom: 0;
}
/* Both header rows run full width, with the same 10px side padding as the
   AAA universal header above (.aaa-header-container), so their edges line up.
   Also overrides an inline `.lower-header-nav .container { max-width: 1300px }` on the site. */
.site-header > .container,
.site-header .lower-header-nav .container {
    max-width: none;
    margin: 0;
    padding-left: 10px;
    padding-right: 10px;
    box-sizing: border-box;
}

/* ---------- Title (shared) ---------- */
.site-header .site-title {
    color: #111;
    font-family: 'Oswald', Arial, 'Helvetica Neue', Helvetica, sans-serif;
    font-size: 34px;
    line-height: 1;
    letter-spacing: .5px;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ---------- Grey bar background (all widths) ---------- */
.site-header .lower-header-nav {
    background: #f4f4f4;
    border-top: 1px solid #e4e4e4;
    border-bottom: 1px solid #e4e4e4;
}
.site-header .lower-header-nav__inner {
    position: relative;
}

/* =====================================================================
   Desktop
   ===================================================================== */
@media only screen and (min-width: 768px) {

    /* --- White row: top links, right-aligned --- */
    .site-header .upper-header {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        min-height: 58px;
        margin: 0;
        overflow: visible;
    }
    .site-header .header-nav-soc {
        float: none;
		
    }
    .site-header .top-nav {
        width: auto;
        padding: 0;
        overflow: visible;
    }
    .site-header .top-nav ul {
        display: flex;
        margin: 0;
        padding: 0;
    }
    .site-header .top-nav ul li {
        float: none;
        margin: 0 0 0 18px;
    }
    .site-header .top-nav ul li a {
        color: #222;
        font-size: 17px !important;
    }
    .site-header .top-nav ul li a:hover {
        color: #004f92;
    }
    .site-header .mobile-search-button { /* style.css shows it 768–1090px; full search box is visible here */
        display: none;
    }

    /* --- Grey bar layout --- */
    .site-header .lower-header-nav__inner {
        display: flex;
        align-items: center;
        min-height: 84px;
    }
    .site-header .site-title {
        flex: 0 0 auto;
        margin-right: 24px;
        font-size: 30px;
    }

    /* Main nav: dark, mixed case, caret beside items with sub-menus.
       #menu-blue-banner-menu is the ID WP generates from the menu name. */
    .site-header #menu-blue-banner-menu.desk {
        display: flex;
        flex: 0 0 auto;
        margin: 0;
        padding: 0;
    }
    .site-header #menu-blue-banner-menu.desk > li {
        float: none;
        margin: 0;
        padding: 30px 0;
        color: #222;
        font-size: 17px;
        text-transform: none;
    }
    .site-header #menu-blue-banner-menu.desk > li > a {
        color: #222;
        padding: 0 9px;
        white-space: nowrap;
    }
    .site-header #menu-blue-banner-menu.desk > li.menu-item-has-children > a {
        padding-right: 26px;
    }
    .site-header #menu-blue-banner-menu.desk > li.menu-item-has-children > a:after {
        right: 8px;
        top: 1px;
        color: #111;
    }
    .site-header #menu-blue-banner-menu.desk > li > a:hover,
    .site-header #menu-blue-banner-menu.desk > li.active > a {
        color: #004f92;
    }
    /* Old blue-banner "active" tab (cyan top border) doesn't fit the grey bar */
    .site-header #menu-blue-banner-menu.desk > li.active {
        margin-top: 0;
        border-top: 0;
    }

    /* Social icons: red circles, pushed right */
    .site-header .lower-header-nav .soc-nav {
        flex: 0 0 auto;
        float: none;
        display: block;
        margin: 0 0 0 auto;
    }
    .site-header .lower-header-nav .soc-nav ul {
        display: flex;
        margin: 0;
        padding: 0;
    }
    .site-header .lower-header-nav .soc-nav ul li {
        float: none;
        width: 38px;
        height: 38px;
        margin-left: 8px;
        box-sizing: border-box;
    }
    .site-header .lower-header-nav .soc-nav ul li a:before {
        font-size: 20px;
        line-height: 34px;
    }

    /* Search pill */
    /* Search takes whatever space is left (140–260px) so the row never overflows */
    .site-header .lower-header-nav form.deck {
        display: block;
        flex: 0 1 260px;
        min-width: 140px;
        float: none;
        margin: 0 0 0 16px;
        padding: 0;
    }
    .site-header .lower-header-nav form.deck input[type='search'] {
        width: 100%;
        height: 50px;
        padding: 0 44px 0 14px;
        background: #fff;
        border-color: #8a8a8a;
        box-sizing: border-box;
        font-size: 18px;
    }
    .site-header .lower-header-nav form.deck .serach-inp:after {
        top: 11px;
    }
    .site-header .lower-header-nav .mobil-search,
    .site-header .lower-header-nav .mobile-nav {
        display: none;
    }
}

/* Narrower desktops: menu drops to its own row under the title */
@media only screen and (min-width: 768px) and (max-width: 1180px) {
    .site-header .lower-header-nav__inner { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
    .site-header #menu-blue-banner-menu.desk { order: 3; flex-basis: 100%; }
    .site-header #menu-blue-banner-menu.desk > li { padding: 14px 0; }
}
/* =====================================================================
   Mobile (≤767px)
   Under the AAA universal header:
     1. White row: "Fuel Prices" (left) + round blue search button (right)
     2. Grey strip: main menu as a single, horizontally scrolling row;
        the current page is underlined.
   The old white row (hamburger + search icons) is hidden; the top links
   (About / Subscribe / Contact) were already hidden on phones by style.css.
   ===================================================================== */
@media only screen and (max-width: 767px) {
    .site-header > .container { display: none; }

    .site-header .lower-header-nav {
        height: auto;
        background: #fff;
        border-top: 0;
        border-bottom: 1px solid #e4e4e4;
    }
    .site-header .lower-header-nav__inner {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        padding-top: 0;
        padding-bottom: 0;
        text-align: left;
    }

    /* --- Row 1: title + search button --- */
    .site-header .site-title {
        flex: 1 1 auto;
        display: block;
        padding: 18px 0;
        font-size: 28px;
        font-weight: 400;
        letter-spacing: 0;
        text-transform: none;
    }
    .site-header .mobile-search-button--title {
        position: static;
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: #004f92;
        color: #fff;
        font-size: 19px;
        line-height: 1;
        cursor: pointer;
    }
    .site-header .mobile-search-button--title:focus-visible {
        outline: 2px solid #004f92;
        outline-offset: 2px;
    }

    /* --- Row 2: scrolling menu strip (full-bleed grey) --- */
    .site-header ul.mobile-nav {
        position: static;
        z-index: auto;              /* style.css sets 9999999; flex items honour it even when static */
        order: 3;
        flex: 0 0 auto;
        display: flex !important;   /* beat any inline style left by the old slideToggle */
        flex-wrap: nowrap;
        width: calc(100% + 20px);
        margin: 0 -10px;
        padding: 0 10px;
        box-sizing: border-box;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        background: #f0f0f0;
        border-top: 1px solid #e4e4e4;
        color: #111;
        font: 400 18px/1 'Oswald', Arial, 'Helvetica Neue', Helvetica, sans-serif;
        text-transform: none;
        white-space: nowrap;
    }
    .site-header ul.mobile-nav::-webkit-scrollbar { display: none; }
    .site-header ul.mobile-nav:before { display: none; } /* old dropdown caret */

    .site-header ul.mobile-nav > li {
        flex: 0 0 auto;
        display: block;
        margin: 0 24px 0 0;
        padding: 0;
        border: 0;
        font-size: 18px;
    }
    .site-header ul.mobile-nav > li:last-child { margin-right: 10px; }
    .site-header ul.mobile-nav > li > a {
        display: block;
        padding: 14px 0 12px;
        color: #111;
        border: 0;
        text-decoration: none;
    }
    .site-header ul.mobile-nav > li.menu-item-has-children > a:after { display: none; }
    .site-header ul.mobile-nav .sub-menu { display: none !important; }

    .site-header ul.mobile-nav > li.active > a,
    .site-header ul.mobile-nav > li.current-menu-item > a,
    .site-header ul.mobile-nav > li.current-menu-ancestor > a {
        color: #111;
        text-decoration: underline;
        text-decoration-thickness: 2px;
        text-underline-offset: 6px;
    }
    .site-header ul.mobile-nav > li > a:hover,
    .site-header ul.mobile-nav > li > a:focus { color: #004f92; }

    /* --- Search dropdown: opens under the title row, caret under the button --- */
    .site-header .lower-header-nav .mobil-search {
        top: 70px;
        right: 10px;
        max-width: calc(100% - 20px);
        box-sizing: border-box;
    }
    .site-header .lower-header-nav .mobil-search:before { right: 8px; }
    .site-header .lower-header-nav .mobil-search form input[type='search'] {
        width: 100%;
        max-width: 260px;
        box-sizing: border-box;
    }
}
