@font-face {
    font-family: "MasterCap Icons";
    src: url("../fonts/mastercap-icons.woff") format("woff");
    font-display: block;
    font-style: normal;
    font-weight: 400;
}

.site-header {
    position: relative;
    z-index: 30;
    width: 100%;
    background: #ffffff;
}

@media (min-width: 1201px) {
    .site-header-shell {
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    body.admin-bar .site-header-shell {
        top: 32px;
    }

    .site-header__utility {
        max-height: 44px;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transition:
            max-height 0.2s ease,
            min-height 0.2s ease,
            padding 0.2s ease,
            border-width 0.2s ease,
            opacity 0.15s ease,
            visibility 0s linear 0s;
    }

    .site-header.is-header-stuck .site-header__utility {
        min-height: 0;
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
        border-top-width: 0;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition-delay: 0s, 0s, 0s, 0s, 0s, 0.2s;
    }

    .site-header.is-header-stuck .site-header__main {
        box-shadow: 0 1px 0 rgba(31, 36, 43, 0.08);
    }
}

.site-header__utility {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto minmax(220px, 1fr);
    align-items: center;
    min-height: 44px;
    padding: 0 30px;
    border-top: 3px solid #427ed1;
    border-bottom: 0;
    box-shadow: inset 0 -1px 0 var(--mc-color-border);
    color: #555b63;
    font-size: 13px;
}

.site-header__utility p,
.site-header__main p {
    margin: 0;
}

.site-header__social {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0;
    white-space: nowrap;
}

.site-header__social a {
    display: inline-flex;
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
    align-items: center;
    justify-content: center;
    color: #555b63;
    font-size: 0;
    line-height: 1;
    text-decoration: none;
}

.site-header__social svg {
    display: none;
}

.site-header__social-icon {
    display: block;
    font-family: "MasterCap Icons";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 16px;
    speak: never;
}

.site-header__social-icon--facebook::before { content: "\e604"; }
.site-header__social-icon--x::before { content: "\e90b"; }
.site-header__social-icon--instagram::before { content: "\ea92"; }
.site-header__social-icon--youtube::before { content: "\e622"; }
.site-header__social-icon--linkedin::before { content: "\e60f"; }
.site-header__social-icon--pinterest::before { content: "\e602"; }

.site-header__social a:hover,
.site-header__social a:focus-visible {
    background: transparent;
    color: rgba(190, 189, 189, .8);
}

.site-header__slogan {
    color: #427ed1;
    font-family: Montserrat, Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .48px;
    line-height: 20.57px;
    text-align: center;
    white-space: nowrap;
}

.site-header__slogan-viewport,
.site-header__slogan-line {
    display: inline-block;
    vertical-align: top;
}

.site-header__slogan-line {
    overflow: hidden;
    white-space: nowrap;
    will-change: width;
}

.site-header__search {
    position: relative;
    display: flex;
    align-items: center;
    width: 308px;
    height: 42px;
    justify-self: end;
    color: var(--mc-color-muted);
    font-size: 14px;
    white-space: nowrap;
}

.site-header__search > br,
.site-header__social > br {
    display: none;
}

.site-header__search input {
    width: 100%;
    height: 42px;
    border: 0;
    background: transparent;
    color: #343a42;
    font-family: Inter, Arial, Helvetica, sans-serif;
    font-size: 14px;
    padding: 0 15px 0 42px;
}

.site-header__search input:focus {
    border-bottom-color: var(--mc-color-blue);
    outline: 0;
}

.site-header__search button {
    position: absolute;
    left: 0;
    top: 0;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.site-header__search button::before {
    content: none;
}

.site-header__search button::after {
    content: none;
}

.site-header__search-icon {
    display: block;
    color: rgba(87, 92, 96, .7);
    font-family: "MasterCap Icons";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 42px;
}

@media (prefers-reduced-motion: reduce) {
    .site-header__slogan-line {
        will-change: auto;
    }
}

.site-header__main {
    position: relative;
    display: grid;
    grid-template-columns: 235px minmax(0, 1fr) 125px;
    align-items: center;
    gap: 34px;
    width: 100%;
    max-width: none;
    min-height: 151px;
    margin: 0 auto;
    padding: 56px 30px 14px;
}

@media (min-width: 1280px) {
    .site-header__utility {
        padding-right: max(30px, calc((100% - 1400px) / 2));
        padding-left: max(30px, calc((100% - 1400px) / 2));
    }

    .site-header__main {
        max-width: var(--mc-content-width);
        padding-right: 0;
        padding-left: 0;
    }
}

.site-header__logo {
    color: #24272c;
    font-size: clamp(32px, 3.1vw, 44px);
    font-weight: 800;
    line-height: 0.82;
    letter-spacing: 0;
}

.site-header__logo a {
    display: inline-flex;
    flex-direction: column;
}

.site-header__logo-image {
    display: block;
    width: auto;
    max-width: 235px;
    max-height: 74px;
    object-fit: contain;
}

.site-header__logo span {
    margin-top: 7px;
    padding-left: 68px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
}

.site-header__nav {
    min-width: 0;
    padding-right: 22px;
    padding-left: 64px;
}

.site-header__menu-toggle {
    display: none;
}

.site-header__nav-list,
.site-header__nav .wp-block-navigation__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-header__nav-link,
.site-header__nav .wp-block-navigation-item__content {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    color: #000000;
    font-family: Inter, Arial, Helvetica, sans-serif;
    font-size: 20.5px;
    font-weight: 700;
    line-height: 38.335px;
    white-space: nowrap;
    text-decoration: none;
    transition: color 0.25s ease;
}

.site-header__nav-link::before,
.site-header__nav .wp-block-navigation-item__content::before {
    content: none;
}

.site-header__nav-link:hover,
.site-header__nav-link:focus,
.site-header__nav .wp-block-navigation-item__content:hover,
.site-header__nav .wp-block-navigation-item__content:focus {
    color: var(--mc-color-blue);
}

.site-header__nav-link--active {
    color: var(--mc-color-blue);
}

.site-header__nav-link--active::before,
.site-header__nav-link:hover::before,
.site-header__nav-link:focus::before,
.site-header__nav .wp-block-navigation-item__content:hover::before,
.site-header__nav .wp-block-navigation-item__content:focus::before {
    content: none;
}

.site-header__contact--active .wp-block-button__link {
    box-shadow: none;
}

.site-header__actions {
    justify-content: flex-end;
}

.site-header__contact .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 125px;
    min-height: 43px;
    padding: 13px 29px;
    border-radius: 25px;
    background: #427ed1;
    color: #ffffff;
    font-family: Karla, Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 17px;
    text-transform: uppercase;
    transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.site-header__contact .wp-block-button__link:hover,
.site-header__contact .wp-block-button__link:focus {
    background: var(--mc-color-blue-dark);
    box-shadow: 0 10px 30px rgba(63, 122, 217, 0.25);
    transform: translateY(-2px);
}

@media (min-width: 1201px) and (max-width: 1279px) {
    .site-header__utility {
        grid-template-columns: auto 1fr auto;
        gap: 18px;
        font-size: 13px;
    }

    .site-header__main {
        grid-template-columns: 190px minmax(0, 1fr) auto;
        gap: 18px;
        min-height: 112px;
        padding-top: 22px;
        padding-bottom: 20px;
    }

    .site-header__logo {
        font-size: 32px;
    }

    .site-header__logo span {
        padding-left: 48px;
        font-size: 12px;
    }

    .site-header__nav-list,
    .site-header__nav .wp-block-navigation__container {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .site-header__nav {
        padding-right: 0;
        padding-left: 0;
    }

    .site-header__nav-link,
    .site-header__nav .wp-block-navigation-item__content {
        font-size: 15px;
    }

    .site-header__contact .wp-block-button__link {
        min-width: 104px;
        min-height: 40px;
        padding: 11px 20px;
    }
}

@media (max-width: 1200px) {
    .site-header__utility {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 16px;
        padding-top: 8px;
        padding-bottom: 8px;
        text-align: center;
    }

    .site-header__social,
    .site-header__search {
        width: 100%;
        white-space: normal;
    }

    .site-header__search {
        max-width: 308px;
        justify-self: auto;
        justify-content: center;
        margin: 0 auto;
    }

    .site-header__search input {
        width: 100%;
    }

    .site-header__main {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
        min-height: 0;
        padding-top: 24px;
        padding-bottom: 24px;
        text-align: center;
    }

    .site-header__nav {
        display: grid;
        gap: 14px;
        padding-right: 0;
        padding-left: 0;
    }

    .site-header__menu-toggle {
        display: inline-flex;
        min-width: 118px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
        gap: 10px;
        justify-self: center;
        padding: 9px 18px;
        border: 1px solid var(--mc-color-border);
        border-radius: 4px;
        background: #fff;
        color: #25282d;
        font: inherit;
        font-size: 15px;
        font-weight: 700;
        cursor: pointer;
    }

    .site-header__menu-toggle:hover,
    .site-header__menu-toggle:focus-visible {
        border-color: var(--mc-color-blue);
        color: var(--mc-color-blue);
        outline: 0;
    }

    .site-header__menu-toggle-icon {
        display: grid;
        width: 18px;
        gap: 4px;
    }

    .site-header__menu-toggle-icon span {
        display: block;
        height: 2px;
        border-radius: 2px;
        background: currentColor;
        transition: transform .2s ease, opacity .2s ease;
    }

    .site-header__menu-toggle[aria-expanded="true"] .site-header__menu-toggle-icon span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .site-header__menu-toggle[aria-expanded="true"] .site-header__menu-toggle-icon span:nth-child(2) {
        opacity: 0;
    }

    .site-header__menu-toggle[aria-expanded="true"] .site-header__menu-toggle-icon span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .site-header__logo {
        font-size: 36px;
    }

    .site-header__logo a {
        align-items: center;
    }

    .site-header__logo span {
        padding-left: 0;
    }

    .site-header__nav-list,
    .site-header__nav .wp-block-navigation__container {
        display: none;
        justify-content: center;
        gap: 12px 18px;
        flex-wrap: wrap;
    }

    .site-header__nav.is-open .site-header__nav-list,
    .site-header__nav.is-open .wp-block-navigation__container {
        display: flex;
    }

    .site-header__nav-link,
    .site-header__nav .wp-block-navigation-item__content {
        font-size: 15px;
    }

    .site-header__actions {
        justify-content: center;
    }

    .site-header__contact .wp-block-button__link {
        min-width: 124px;
        min-height: 44px;
    }
}

/*
 * Keep browser zoom and tablet widths visually stable. The legacy header stays
 * on one horizontal line whenever the viewport can still accommodate it.
 */
@media (min-width: 641px) and (max-width: 1200px) {
    .site-header__utility {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) minmax(210px, 280px);
        align-items: center;
        gap: 16px;
        min-height: 47px;
        padding: 0 24px;
        text-align: left;
    }

    .site-header__social,
    .site-header__search {
        width: auto;
        white-space: nowrap;
    }

    .site-header__slogan {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .site-header__search {
        width: 100%;
        max-width: 280px;
        justify-self: end;
        margin: 0;
    }

    .site-header__main {
        display: grid;
        grid-template-columns: minmax(200px, 1fr) auto auto;
        align-items: center;
        gap: 16px;
        min-height: 104px;
        padding: 18px 24px;
        text-align: left;
    }

    .site-header__logo a {
        align-items: flex-start;
    }

    .site-header__logo-image {
        max-width: 235px;
        max-height: 74px;
    }

    .site-header__nav {
        display: block;
    }

    .site-header__menu-toggle {
        justify-self: auto;
    }

    .site-header__actions {
        justify-content: flex-end;
    }
}

@media (max-width: 640px) {
    .site-header__utility {
        gap: 8px;
        padding: 8px 18px;
    }

    .site-header__slogan {
        display: none;
    }

    .site-header__social {
        justify-content: center;
    }

    .site-header__main {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 14px;
        padding: 18px;
    }

    .site-header__logo {
        grid-column: 1 / -1;
    }

    .site-header__logo-image {
        width: min(280px, 82vw);
        max-width: none;
        max-height: 76px;
    }

    .site-header__nav {
        display: block;
        justify-self: end;
    }

    .site-header__menu-toggle {
        min-width: 112px;
    }

    .site-header__actions {
        justify-content: flex-start;
    }

    .site-header__contact .wp-block-button__link {
        min-width: 112px;
        padding-right: 20px;
        padding-left: 20px;
    }
}

@media (max-width: 1200px) {
    .site-header__nav.is-open .site-header__nav-list,
    .site-header__nav.is-open .wp-block-navigation__container {
        position: absolute;
        right: 18px;
        left: 18px;
        top: calc(100% - 6px);
        z-index: 30;
        max-height: calc(100vh - 150px);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 18px 18px;
        overflow: auto;
        border: 1px solid var(--mc-color-border);
        border-radius: 8px;
        background: #ffffff;
        box-shadow: 0 16px 36px rgba(31, 36, 43, 0.12);
        text-align: left;
    }

    .site-header__nav-list > .site-header__nav-item,
    .site-header__nav .wp-block-navigation__container > .wp-block-navigation-item {
        width: 100%;
    }

    .site-header__nav-link,
    .site-header__nav .wp-block-navigation-item__content {
        width: 100%;
        min-height: 42px;
        justify-content: space-between;
    }
}
