/**
 * Unified header — theme colours from style.css (:root)
 * --primary-blue #045393 | --dark-blue #002245 | --light-blue #f4f9fe | --primary-yellow #fcc90a
 */

.ws-header {
    position: relative;
    z-index: 1000;
    background: #fff;
    font-family: 'Avenir Next LT Pro Regular', Montserrat, Arial, sans-serif;
    color: var(--dark-blue, #002245);
}

/* Upper row: logo + contacts (scrolls away) */
.ws-header__top {
    background: #fff;
    border-bottom: 1px solid rgba(4, 83, 147, 0.1);
}

.ws-header__top-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0.45rem 1.25rem 0.4rem;
}

.ws-header__meta {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.45rem 0.65rem;
    min-height: 0;
    background: transparent;
    border: 0;
    border-radius: 6px;
}

.ws-header__logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    align-self: center;
    padding: 0.15rem 0.65rem 0.15rem 0.25rem;
    margin-right: 0.15rem;
    border-right: 1px solid rgba(4, 83, 147, 0.12);
    text-decoration: none;
}

.ws-header #logo {
    width: auto;
    max-width: 118px;
    height: auto;
    display: block;
}

.ws-header__contacts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    gap: 0;
    flex: 1 1 auto;
    min-width: 0;
}

.ws-utility__item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.6rem;
    min-width: 0;
    padding: 0.25rem 0.65rem;
    margin: 0;
    text-align: left;
}

.ws-utility__item:not(:last-child) {
    border-right: 1px solid rgba(4, 83, 147, 0.12);
}

.ws-utility__item:first-child {
    padding-left: 0.35rem;
}

.ws-utility__item--partner {
    padding-right: 0.35rem;
    border-right: none;
}

.ws-utility__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    
}

.ws-utility__icon img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    display: block;
}

.ws-utility__icon--logo {
    width: 56px;
    height: 56px;
}

.ws-utility__icon--logo img {
    width: 44px;
    max-height: 44px;
    height: auto;
}

.ws-utility__body {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.1rem;
    padding: 0;
    text-align: left;
    line-height: 1.2;
}

.ws-utility__label {
    margin: 0;
    font-family: 'Avenir Next LT Pro Bold', Montserrat, Arial, sans-serif;
    font-size: 1.5rem !important;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--dark-blue, #002245);
    line-height: 1.2 !important;
}

.ws-utility__label:empty {
    display: none;
}

/* Subtext under each utility title (phones, hours, insurer name) */
.ws-utility__detail {
    margin: 0;
    font-family: 'Avenir Next LT Pro Regular', Montserrat, Arial, sans-serif;
    font-size: 1.25rem !important;
    font-weight: 400;
    color: rgba(0, 34, 69, 0.62);
    line-height: 1.35 !important;
}

.ws-utility__detail a {
    font-size: inherit !important;
    font-weight: inherit;
    line-height: inherit !important;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

.ws-utility__detail a:hover {
    color: var(--primary-blue, #045393);
    text-decoration: underline;
}

.ws-utility__detail--stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.ws-utility__detail--stack span {
    display: block;
    font-size: inherit !important;
    line-height: inherit !important;
}

/* Legacy class names (other pages) */
.ws-utility__phone {
    margin: 0;
    font-size: 0.75rem !important;
    font-weight: 400;
    color: rgba(0, 34, 69, 0.62);
    line-height: 1.35 !important;
    text-align: left;
}

.ws-utility__phone a {
    font-size: inherit !important;
    line-height: inherit !important;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

.ws-utility__phone a:hover {
    color: var(--primary-blue, #045393);
    text-decoration: underline;
}

.ws-utility__hours {
    margin: 0;
    font-size: 0.75rem !important;
    font-weight: 400;
    color: rgba(0, 34, 69, 0.62);
    line-height: 1.35 !important;
    text-align: left;
}

.ws-utility__partner {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    font-size: 0.75rem !important;
    font-weight: 400;
    color: rgba(0, 34, 69, 0.62);
    line-height: 1.35 !important;
    text-align: left;
}

.ws-utility__partner span {
    display: block;
    font-size: inherit !important;
    line-height: inherit !important;
}

/* "Talk To Us" CTA in the nav bar */
.ws-nav__cta {
    flex: 0 0 auto !important;
    margin-left: auto;
}

.ws-nav__cta > a {
    background: var(--primary-yellow, #fcc90a) !important;
    color: var(--dark-blue, #002245) !important;
    border-radius: 6px !important;
    padding: 0.6rem 1.4rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.06em;
    transition: background 0.2s ease, transform 0.15s ease;
}

.ws-nav__cta > a:hover {
    background: #ffdc4a !important;
    transform: translateY(-1px);
}

/* Bottom row: full-width nav (sibling of header so it can stick for whole page) */
.ws-header__nav-bar {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1001;
    width: 100%;
    background: var(--primary-blue, #045393);
    box-shadow: 0 4px 16px rgba(0, 34, 69, 0.18);
}

.ws-header__nav-bar.is-stuck {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
}

.ws-header__nav-placeholder {
    display: none;
    width: 100%;
    margin: 0;
    padding: 0;
    pointer-events: none;
}

.ws-header__nav-inner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0.55rem 1.25rem;
    min-width: 0;
}

.ws-header__nav {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    gap: 0.5rem;
    min-width: 0;
}

.ws-header__toggle {
    display: none;
    flex-shrink: 0;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--primary-blue, #045393);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.ws-header__toggle-bar {
    display: block;
    width: 18px;
    height: 2px;
    margin: 0 auto;
    background: var(--dark-blue, #002245);
    border-radius: 1px;
}

.ws-header__nav-panel {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
}

.ws-header .main-navigation {
    background: transparent !important;
    position: static;
    font-size: inherit;
    width: 100%;
}

.ws-header .main-navigation ul#menu-menu-1 > li > a {
    color: #fff !important;
}

.ws-header .menu-menu-1-container {
    display: flex;
    width: 100%;
}

.ws-header__nav-bar .main-navigation,
.ws-header .main-navigation {
    width: 100% !important;
}

.ws-header__nav-bar .main-navigation ul#menu-menu-1,
.ws-header .main-navigation ul#menu-menu-1 {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch;
    justify-content: space-between;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
}

.ws-header__nav-bar .main-navigation ul#menu-menu-1 > li,
.ws-header .main-navigation ul#menu-menu-1 > li {
    display: flex;
    flex: 1 1 auto;
    align-items: stretch;
    justify-content: center;
    position: relative;
    min-width: max-content;
}

.ws-header__nav-bar .main-navigation ul#menu-menu-1 > li > a,
.ws-header .main-navigation ul#menu-menu-1 > li > a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 0.3rem;
    padding: 0.75rem 0.7rem !important;
    font-size: 11.5px !important;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-align: center;
    color: #fff !important;
    background: transparent !important;
    white-space: nowrap;
    border-radius: 0;
    transition: color 0.2s ease, background 0.2s ease;
}

.ws-header .main-navigation ul#menu-menu-1 > li:hover > a,
.ws-header .main-navigation ul#menu-menu-1 > li:focus-within > a {
    color: var(--primary-yellow, #fcc90a) !important;
    background: rgba(0, 0, 0, 0.15) !important;
}

.ws-header .main-navigation ul#menu-menu-1 > li.menu-item-has-children > a::after {
    content: "";
    width: 0.35em;
    height: 0.35em;
    margin-top: -0.12em;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    flex-shrink: 0;
}

/* Desktop dropdowns — hover bridge + delayed close via .is-dropdown-open */
@media (min-width: 992px) {
    .ws-header .main-navigation ul#menu-menu-1 > li.menu-item-has-children::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        height: 14px;
        z-index: 1000;
    }

    .ws-header .main-navigation ul ul {
        display: flex !important;
        flex-direction: column;
        gap: 0.1rem;
        position: absolute;
        top: 100%;
        left: 0;
        width: max-content;
        min-width: 160px;
        max-width: min(90vw, 220px);
        margin: 0;
        padding: 0.35rem;
        list-style: none;
        background: var(--primary-blue, #045393);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 10px;
        box-shadow:
            0 4px 6px rgba(0, 34, 69, 0.08),
            0 18px 40px rgba(0, 34, 69, 0.22);
        z-index: 1001;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(8px);
        transition:
            opacity 0.22s ease,
            transform 0.22s ease,
            visibility 0s linear 0.35s;
    }

    .ws-header .main-navigation ul ul::before {
        content: "";
        position: absolute;
        top: -12px;
        left: 0;
        right: 0;
        height: 12px;
    }

    /* Flyout — child menu opens to the right */
    .ws-header .main-navigation ul ul ul {
        top: 0;
        left: calc(100% + 0.35rem);
        margin: 0;
        width: max-content;
        min-width: 145px;
        max-width: min(90vw, 200px);
        padding: 0.35rem;
        gap: 0.1rem;
    }

    .ws-header .main-navigation ul ul ul::before {
        top: 0;
        left: -10px;
        width: 10px;
        height: 100%;
        right: auto;
    }

    .ws-header .main-navigation ul ul > li.menu-item-has-children::after {
        content: "";
        position: absolute;
        top: 0;
        left: auto;
        right: -10px;
        width: 10px;
        height: 100%;
        z-index: 1000;
    }

    .ws-header .main-navigation ul li:hover > ul,
    .ws-header .main-navigation ul li:focus-within > ul,
    .ws-header .main-navigation ul li.is-dropdown-open > ul {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
        transition:
            opacity 0.22s ease,
            transform 0.22s ease,
            visibility 0s;
    }

    .ws-header .main-navigation ul ul > li {
        display: block;
        width: 100%;
        position: relative;
        text-align: left;
    }

    .ws-header .main-navigation ul ul a,
    .ws-header .main-navigation ul ul li a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        min-height: 0;
        width: auto !important;
        padding: 0.3rem 0.55rem !important;
        font-size: 10px !important;
        font-weight: 600;
        line-height: 1.25;
        text-transform: none;
        letter-spacing: 0.01em;
        color: rgba(255, 255, 255, 0.92) !important;
        background: transparent !important;
        white-space: nowrap;
        border-radius: 6px;
        transition: background 0.18s ease, color 0.18s ease;
    }

    .ws-header .main-navigation ul ul li:hover > a,
    .ws-header .main-navigation ul ul li:focus-within > a,
    .ws-header .main-navigation ul ul li.is-dropdown-open > a {
        background: rgba(255, 255, 255, 0.1) !important;
        color: var(--primary-yellow, #fcc90a) !important;
    }

    .ws-header .main-navigation ul ul .menu-item-has-children > a::after {
        content: "";
        display: block;
        flex-shrink: 0;
        width: 7px;
        height: 7px;
        margin: 0;
        border: 0;
        border-right: 2px solid currentColor;
        border-top: 2px solid currentColor;
        transform: rotate(45deg);
        opacity: 0.85;
    }

    .ws-header .main-navigation ul ul ul a,
    .ws-header .main-navigation ul ul ul li a {
        justify-content: flex-start;
        min-height: 0;
        width: auto !important;
        padding: 0.25rem 0.5rem !important;
        font-size: 9.5px !important;
        font-weight: 500;
        line-height: 1.25;
        color: rgba(255, 255, 255, 0.88) !important;
        white-space: normal;
    }

    .ws-header .main-navigation ul ul ul a::after {
        display: none !important;
    }

    .ws-header .main-navigation ul ul ul li:hover > a,
    .ws-header .main-navigation ul ul ul li:focus-within > a {
        padding-left: 0.7rem !important;
        background: rgba(255, 255, 255, 0.1) !important;
        color: var(--primary-yellow, #fcc90a) !important;
        box-shadow: inset 2px 0 0 var(--primary-yellow, #fcc90a);
    }
}

.ws-btn {
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Legacy overrides */
header.ws-header > .container,
header.ws-header h4 {
    all: unset;
}

header.ws-header img:not(#logo):not(.ws-utility__icon img) {
    max-width: none;
}

.ws-header .elfsight-searchbar,
.ws-header .so-mobilenav-standard,
.ws-header .so-mobilenav-mobile,
.ws-header .menu-mobilenav-container {
    display: none !important;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Large desktop — keep contacts on one line */
@media (min-width: 1200px) {
    .ws-header__contacts {
        flex-wrap: nowrap;
    }

    .ws-header__nav-bar .main-navigation ul#menu-menu-1 {
        gap: 0 0.5rem;
    }

    .ws-header__nav-bar .main-navigation ul#menu-menu-1 > li > a {
        font-size: 11.5px !important;
        padding: 0.75rem 0.8rem !important;
    }
}

@media (min-width: 1400px) {
    .ws-header__nav-bar .main-navigation ul#menu-menu-1 > li > a {
        font-size: 12px !important;
        padding: 0.75rem 0.9rem !important;
    }
}

/* Narrow desktop — smaller padding to stay on one line */
@media (min-width: 992px) and (max-width: 1199px) {
    .ws-header__nav-bar .main-navigation ul#menu-menu-1 > li > a {
        font-size: 10px !important;
        padding: 0.7rem 0.5rem !important;
    }
}

/* Tablet */
@media (max-width: 1100px) {
    .ws-header__top-inner {
        padding: 0.75rem 1rem;
    }

    .ws-header #logo {
        max-width: 92px;
    }

    .ws-header__contacts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ws-utility__item:nth-child(2) {
        border-right: 0;
    }

    .ws-utility__item {
        padding: 0.55rem 0.9rem;
    }

    .ws-utility__item:nth-child(odd) {
        border-right: 1px solid rgba(4, 83, 147, 0.12);
    }

    .ws-header__meta {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 0.85rem 0.9rem;
    }
}

/* Mobile */
@media (max-width: 991px) {
    .ws-header__top-inner {
        padding: 0.75rem 1rem 0.65rem;
    }

    .ws-header__logo {
        border-right: 0;
        padding-right: 0;
        margin-right: 0;
        margin-bottom: 0.5rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid rgba(4, 83, 147, 0.12);
    }

    .ws-header__toggle {
        display: inline-flex;
        border: none;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .ws-header__toggle-bar {
        background: #fff;
    }

    .ws-header__meta {
        flex-direction: column;
        align-items: stretch;
        padding: 0.75rem 0.85rem;
        min-height: 0;
    }

    .ws-header__nav-inner {
        flex-direction: column;
        align-items: stretch;
        padding: 0.5rem 1rem;
    }

    .ws-header__contacts {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .ws-utility__item {
        width: 100%;
        padding: 0.7rem 0.5rem;
        border-right: 0 !important;
        border-bottom: 1px solid rgba(4, 83, 147, 0.08);
    }

    .ws-utility__item:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }

    .ws-header__nav {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .ws-header__nav-panel {
        display: none;
        flex-direction: column;
        width: 100%;
        padding-top: 0.35rem;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }

    .ws-header__nav-panel.is-open {
        display: flex;
    }

    .ws-header .main-navigation ul#menu-menu-1 {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .ws-header .main-navigation ul#menu-menu-1 > li {
        display: block;
        width: 100%;
        border-bottom: 1px solid rgba(0, 34, 69, 0.06);
    }

    .ws-header .main-navigation ul#menu-menu-1 > li > a {
        justify-content: center;
        text-align: center;
        width: 100%;
        padding: 0.75rem 0.35rem !important;
        font-size: 13px !important;
    }

    .ws-header .main-navigation ul ul {
        position: static;
        display: none;
        box-shadow: none;
        border-radius: 0;
        background: var(--light-blue, #f4f9fe);
    }

    .ws-header .main-navigation ul ul a {
        color: var(--primary-blue, #045393) !important;
    }

    .ws-header .main-navigation li.menu-item-has-children.is-expanded > ul {
        display: block;
    }

    .ws-header .main-navigation ul li:hover > ul {
        display: none;
    }

    .ws-header .main-navigation li.menu-item-has-children.is-expanded:hover > ul {
        display: block;
    }

    .ws-nav__cta {
        margin-left: 0 !important;
        margin-top: 0.35rem;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }

    .ws-nav__cta > a {
        display: block !important;
        text-align: center;
        width: 100%;
        padding: 0.85rem 1rem !important;
        border-radius: 8px !important;
    }
}

@media (max-width: 480px) {
    .ws-header #logo {
        max-width: 80px;
    }
}
