/* Global CCE header only; Bootstrap owns menu collapse and dropdown behavior. */
.cce-site-header,
.cce-header-nav {
    font-family: 'Open Sans', Arial, sans-serif;
}

.cce-site-header {
    background: #fff;
    color: #111;
}

.cce-site-header__inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    max-width: 1480px;
    min-height: 112px;
    margin: 0 auto;
    padding: .75rem 1.25rem;
}

.cce-site-header__brand {
    flex: 0 0 auto;
}

.cce-site-header__logo {
    display: block;
    width: 260px;
    max-width: 100%;
    height: auto;
}

.cce-site-header__contacts,
.cce-site-header__socials {
    display: flex;
    align-items: center;
}

.cce-site-header__contacts {
    min-width: 0;
    margin-left: auto;
}

.cce-site-header__contact {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    min-height: 44px;
    padding: 0 1.5rem;
    border-right: 1px solid #d7d7d7;
    color: #111;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
}

.cce-site-header__contact .fa {
    font-size: 1.75rem;
}

.cce-site-header__contact .fa-mobile {
    font-size: 2rem;
}

.cce-site-header__socials {
    gap: 1rem;
    padding-left: 1.5rem;
}

.cce-site-header__socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    min-height: 44px;
    color: #111;
    font-size: 1.5rem;
}

.cce-site-header a:hover {
    color: var(--cce-primary-red);
    text-decoration: none;
}

.cce-site-header a:focus-visible,
.cce-header-nav a:focus-visible,
.cce-header-nav button:focus-visible {
    outline: 2px solid var(--cce-primary-red);
    outline-offset: 4px;
}

.cce-header-nav-sentinel {
    height: 1px;
    margin-bottom: -1px;
    pointer-events: none;
}

.cce-header-nav.navbar {
    padding: 0;
    background: #171717;
    color: #fff;
}

.cce-header-nav__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 2.5rem;
    width: 100%;
    max-width: 1480px;
    min-height: 64px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.cce-header-nav .navbar-collapse {
    min-width: 0;
}

.cce-header-nav .navbar-nav {
    justify-content: space-between;
    gap: 0 1rem;
    width: 100%;
    margin: 0;
}

.cce-header-nav .navbar-nav > .nav-item > .nav-link {
    position: relative;
    padding: 1.25rem .25rem;
    color: #fff;
    font-size: clamp(.875rem, 1.05vw, 1.125rem);
    font-weight: 600;
    line-height: 1.5;
    text-transform: none;
    white-space: nowrap;
}

.cce-header-nav .navbar-nav > .nav-item > .nav-link::before {
    content: '';
    position: absolute;
    right: 0;
    bottom: .5rem;
    left: 0;
    height: 2px;
    background: transparent;
}

.cce-header-nav .navbar-nav > .nav-item:is(.active, .current-menu-item, .current-menu-ancestor, .current-menu-parent) > .nav-link,
.cce-header-nav .navbar-nav > .nav-item > .nav-link:hover,
.cce-header-nav .navbar-nav > .nav-item > .nav-link:focus-visible {
    color: var(--cce-primary-red);
}

.cce-header-nav .navbar-nav > .nav-item:is(.active, .current-menu-item, .current-menu-ancestor, .current-menu-parent) > .nav-link::before {
    background: var(--cce-primary-red);
}

.cce-header-nav .dropdown-toggle::after {
    margin-left: .35rem;
    vertical-align: .15em;
}

.cce-header-nav .dropdown-menu {
    min-width: 16rem;
    max-width: min(24rem, calc(100vw - 2rem));
    margin-top: 0;
    padding: .5rem;
    border: 1px solid #343434;
    border-radius: 0 0 .35rem .35rem;
    background: #171717;
    text-transform: none;
}

.cce-header-nav .dropdown-item {
    padding: .625rem .75rem;
    border-radius: .25rem;
    color: #fff;
    font-size: .9375rem;
    line-height: 1.45;
    white-space: normal;
}

.cce-header-nav .dropdown-item:hover,
.cce-header-nav .dropdown-item:focus,
.cce-header-nav .dropdown-item.active {
    background: #292929;
    color: var(--cce-primary-red);
}

.cce-header-nav__contact {
    flex: 0 0 auto;
    min-width: 144px;
    padding: .625rem 1.5rem;
    border: 1px solid var(--cce-primary-red);
    border-radius: .25rem;
    background: var(--cce-primary-red);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
}

.cce-header-nav__contact:hover {
    background: #fff;
    color: var(--cce-primary-red);
    text-decoration: none;
}

.cce-header-nav.is-stuck .cce-header-nav__contact {
    display: none;
}

@media (max-width: 1199.98px) {
    .cce-site-header__logo { width: 210px; }
    .cce-site-header__contact { padding: 0 1rem; font-size: .875rem; }
    .cce-site-header__socials { gap: .75rem; padding-left: 1rem; }
    .cce-header-nav__inner { min-height: 56px; gap: 0; }
    .cce-header-nav .navbar-toggler { margin: .5rem 0; padding: .25rem .5rem; }
    .cce-header-nav__contact { margin-left: auto; padding: .375rem 1.25rem; }
    .cce-header-nav .navbar-collapse {
        order: 2;
        flex-basis: 100%;
        max-height: calc(100vh - 56px);
        max-height: calc(100dvh - 56px);
        overflow-y: auto;
    }
    .cce-header-nav .navbar-nav { padding: .25rem 0 .75rem; }
    .cce-header-nav .navbar-nav > .nav-item > .nav-link { padding: .75rem .5rem; font-size: 1rem; white-space: normal; }
    .cce-header-nav .navbar-nav > .nav-item > .nav-link::before { right: auto; bottom: .25rem; left: .5rem; width: 3rem; }
    .cce-header-nav .dropdown-menu { position: static; min-width: 0; max-width: 100%; margin: .25rem 0 .5rem; padding-left: 1rem; border: 0; }
}

@media (max-width: 991.98px) {
    .cce-site-header__inner { min-height: 80px; gap: .5rem; padding: .75rem 1rem; }
    .cce-site-header__logo { width: 148px; max-width: 44vw; }
    .cce-site-header__contact { justify-content: center; gap: 0; width: 28px; min-height: 40px; padding: 0; border: 0; }
    .cce-site-header__contact-text { display: none; }
    .cce-site-header__contact .fa { font-size: 1.25rem; }
    .cce-site-header__contact .fa-mobile { font-size: 1.5rem; }
    .cce-site-header__socials { gap: .5rem; padding-left: .5rem; }
    .cce-site-header__socials a { width: 24px; min-height: 40px; font-size: 1.25rem; }
    .cce-header-nav__inner { padding: 0 1rem; }
}
