:root {
    --dd-teal: #36B7A2;
    --dd-blue: #386291;
    --dd-text: #444444;
    --dd-soft: #f5f5f5;
    --dd-search: #eef0f1;
    --dd-border: #e7e8e9;
    --dd-topline: #24282b;
    --dd-wide: 1684px;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* The legacy Elementor header is kept in the database as a rollback option,
   but is suppressed once the native theme header is active. */
body.dd-native-header-active .elementor-location-header,
body.dd-native-header-active header[data-elementor-type="header"],
body.dd-native-header-active .hfe-site-header,
body.dd-native-header-active .hfe-header,
body.dd-native-header-active .dd-old-elementor-header {
    display: none !important;
}

.dd-native-site-header,
.dd-native-site-header *,
.dd-mobile-drawer,
.dd-mobile-drawer * {
    box-sizing: border-box;
}

.dd-native-site-header {
    position: relative;
    z-index: 9998;
    width: 100%;
    background: #fff;
    font-family: "Open Sans", Arial, sans-serif;
    color: var(--dd-text);
}

.dd-header-topline {
    height: 6px;
    background: var(--dd-topline);
}

/* On desktop the slim utility row scrolls away, while the main white
   navigation row remains available at the top of the viewport. */
@media (min-width: 1441px) {
    .dd-native-site-header.dd-primary-stuck {
        padding-bottom: 132px;
    }

    .dd-native-site-header.dd-primary-stuck .dd-header-primary {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 10010;
        box-shadow: 0 7px 24px rgba(25, 35, 42, .10);
    }

    body.admin-bar .dd-native-site-header.dd-primary-stuck .dd-header-primary {
        top: 32px;
    }
}

.dd-header-utility {
    height: 85px;
    background: var(--dd-soft);
}

.dd-header-utility__inner {
    max-width: var(--dd-wide);
    height: 100%;
    margin: 0 auto;
    padding: 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.dd-header-utility__links {
    display: flex;
    align-items: center;
    gap: 24px;
    min-width: 0;
}

.dd-header-utility__links > a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #50575b;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 2.15px;
    text-transform: uppercase;
    white-space: nowrap;
    text-decoration: none;
    transition: color .18s ease;
}

.dd-header-utility__links > a:hover,
.dd-header-utility__links > a:focus-visible {
    color: var(--dd-teal);
}

.dd-utility-icon {
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
    color: var(--dd-teal);
}

.dd-utility-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dd-header-utility__right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 26px;
    margin-left: auto;
}

.dd-header-social {
    display: flex;
    align-items: center;
    gap: 20px;
}

.dd-header-social a {
    display: inline-flex;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    color: var(--dd-teal);
    font-size: 19px;
    text-decoration: none;
}

.dd-header-search {
    width: 576px;
    height: 50px;
    display: flex;
    margin: 0;
}

.dd-header-search input {
    min-width: 0;
    flex: 1 1 auto;
    height: 50px;
    margin: 0;
    padding: 0 18px;
    border: 0;
    border-radius: 0;
    background: var(--dd-search);
    color: #5f666b;
    box-shadow: none;
    font-family: inherit;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    outline: none;
}

.dd-header-search input::placeholder {
    color: #aeb2b5;
    opacity: 1;
}

.dd-header-search button {
    width: 54px;
    height: 50px;
    border: 0;
    border-radius: 0;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dd-teal);
    color: #fff;
    cursor: pointer;
}

.dd-header-search button svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.3;
    stroke-linecap: round;
}

.dd-header-primary {
    height: 132px;
    background: #fff;
}

.dd-header-primary__inner {
    max-width: 1740px;
    height: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px minmax(0, 1fr);
    align-items: stretch;
}

.dd-header-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}

.dd-header-logo {
    width: 380px;
    max-width: 100%;
    display: block;
    text-decoration: none;
}

.dd-header-logo__image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 84px;
    object-fit: contain;
}

.dd-header-nav {
    min-width: 0;
    height: 100%;
}

.dd-primary-menu,
.dd-primary-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dd-primary-menu {
    height: 100%;
    display: grid;
    align-items: stretch;
}

.dd-primary-menu--left {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dd-primary-menu--right {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dd-primary-menu > li {
    position: relative;
    min-width: 0;
    display: flex;
    align-items: stretch;
}

.dd-primary-menu > li > a {
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 0 12px;
    color: #3f4448;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 1.25px;
    text-transform: uppercase;
    text-align: center;
    white-space: nowrap;
    text-decoration: none;
    transition: color .18s ease, background .18s ease;
}

.dd-primary-menu > li.menu-item-has-children > a::after {
    content: "";
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    transform: translateY(1px);
}

.dd-primary-menu > li:hover > a,
.dd-primary-menu > li:focus-within > a,
.dd-primary-menu > li.current-menu-item > a,
.dd-primary-menu > li.current-menu-ancestor > a {
    color: var(--dd-teal);
}

.dd-primary-menu .sub-menu {
    position: absolute;
    z-index: 10020;
    top: calc(50% + 37px);
    left: 50%;
    width: 286px;
    padding: 8px;
    background: #fff;
    border-top: 3px solid var(--dd-teal);
    box-shadow: 0 12px 34px rgba(24, 36, 42, .15);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 10px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.dd-primary-menu > li:last-child > .sub-menu,
.dd-primary-menu--right > li:nth-last-child(-n+2) > .sub-menu {
    left: auto;
    right: 0;
    transform: translate(0, 10px);
}

.dd-primary-menu--left > li:first-child > .sub-menu {
    left: 0;
    transform: translate(0, 10px);
}

.dd-primary-menu > li:hover > .sub-menu,
.dd-primary-menu > li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.dd-primary-menu > li:last-child:hover > .sub-menu,
.dd-primary-menu > li:last-child:focus-within > .sub-menu,
.dd-primary-menu--right > li:nth-last-child(-n+2):hover > .sub-menu,
.dd-primary-menu--right > li:nth-last-child(-n+2):focus-within > .sub-menu {
    transform: translate(0, 0);
}

.dd-primary-menu--left > li:first-child:hover > .sub-menu,
.dd-primary-menu--left > li:first-child:focus-within > .sub-menu {
    transform: translate(0, 0);
}

.dd-primary-menu .sub-menu li {
    position: relative;
}

.dd-primary-menu .sub-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 11px;
    color: #444444;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: .65px;
    text-transform: uppercase;
    text-decoration: none;
}

.dd-primary-menu .sub-menu a:hover,
.dd-primary-menu .sub-menu a:focus-visible {
    color: var(--dd-teal);
    background: #f6f8f8;
}


.dd-primary-menu .sub-menu .sub-menu {
    top: -11px;
    left: 100%;
    right: auto;
    transform: translate(8px, 0);
}

/* Menus to the right of the logo fly inward, so nested levels do not
   spill off the right-hand edge of the screen. */
.dd-primary-menu--right .sub-menu .sub-menu {
    left: auto;
    right: 100%;
    transform: translate(-8px, 0);
}

.dd-primary-menu .sub-menu li:hover > .sub-menu,
.dd-primary-menu .sub-menu li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(0, 0);
}

.dd-primary-menu .sub-menu li.menu-item-has-children > a::after {
    content: "›";
    font-size: 17px;
    line-height: 1;
}

/* Mobile header is hidden on desktop. */
.dd-header-mobile,
.dd-mobile-search-panel,
.dd-mobile-overlay,
.dd-mobile-drawer {
    display: none;
}

@media (max-width: 1760px) {
    .dd-header-utility__inner {
        padding-left: 40px;
        padding-right: 40px;
    }

    .dd-header-primary__inner {
        padding-left: 28px;
        padding-right: 28px;
    }

    .dd-header-search {
        width: min(31vw, 576px);
    }

    .dd-header-utility__links {
        gap: 18px;
    }

    .dd-header-utility__links > a {
        letter-spacing: 2.1px;
    }
}

/* Switch before the navigation and utility rows start pinching. */
@media (max-width: 1440px) {
    .dd-native-site-header {
        position: sticky;
        top: 0;
        z-index: 9998;
    }

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

    .dd-header-utility,
    .dd-header-primary {
        display: none;
    }

    .dd-header-topline {
        height: 5px;
    }

    .dd-header-mobile {
        height: 82px;
        padding: 0 28px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid var(--dd-border);
        background: #fff;
    }

    .dd-header-mobile__logo {
        display: block;
        width: 245px;
        max-width: calc(100% - 120px);
    }

    .dd-header-mobile__logo img {
        display: block;
        width: 100%;
        height: auto;
    }

    .dd-header-mobile__actions {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .dd-mobile-search-toggle,
    .dd-mobile-menu-toggle,
    .dd-mobile-drawer__close {
        width: 44px;
        height: 44px;
        border: 0;
        padding: 0;
        margin: 0;
        background: transparent;
        color: var(--dd-blue);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    .dd-mobile-search-toggle svg,
    .dd-mobile-menu-toggle svg,
    .dd-mobile-drawer__close svg {
        width: 24px;
        height: 24px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .dd-mobile-search-panel {
        display: block;
        background: var(--dd-soft);
        border-bottom: 1px solid var(--dd-border);
        padding: 14px 28px;
    }

    .dd-mobile-search-panel[hidden] {
        display: none !important;
    }

    .dd-mobile-search-panel form,
    .dd-mobile-drawer__search {
        display: flex;
        margin: 0;
    }

    .dd-mobile-search-panel input,
    .dd-mobile-drawer__search input {
        flex: 1 1 auto;
        min-width: 0;
        height: 48px;
        border: 1px solid var(--dd-border);
        border-right: 0;
        padding: 0 15px;
        border-radius: 0;
        background: #fff;
        font: 400 13px/1.2 "Open Sans", Arial, sans-serif;
        color: var(--dd-text);
        outline: none;
    }

    .dd-mobile-search-panel button,
    .dd-mobile-drawer__search button {
        width: 50px;
        height: 48px;
        border: 0;
        padding: 0;
        border-radius: 0;
        background: var(--dd-blue);
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .dd-mobile-search-panel button svg,
    .dd-mobile-drawer__search button svg {
        width: 21px;
        height: 21px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2.2;
        stroke-linecap: round;
    }

    .dd-mobile-overlay {
        position: fixed;
        z-index: 10030;
        inset: 0;
        display: block;
        background: rgba(27, 32, 35, .45);
        opacity: 0;
        visibility: hidden;
        transition: opacity .22s ease, visibility .22s ease;
    }

    .dd-mobile-overlay.is-open {
        opacity: 1;
        visibility: visible;
    }

    .dd-mobile-drawer {
        position: fixed;
        z-index: 10040;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(430px, 94vw);
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        background: #fff;
        transform: translateX(102%);
        visibility: hidden;
        transition: transform .25s ease, visibility .25s ease;
        box-shadow: -12px 0 42px rgba(19, 28, 33, .18);
    }

    .dd-mobile-drawer.is-open {
        transform: translateX(0);
        visibility: visible;
    }

    body.admin-bar .dd-mobile-drawer {
        top: 32px;
    }

    body.admin-bar .dd-mobile-overlay {
        top: 32px;
    }

    body.dd-mobile-menu-open {
        overflow: hidden;
    }

    .dd-mobile-drawer__head {
        min-height: 86px;
        padding: 16px 18px 14px 22px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-top: 5px solid var(--dd-topline);
        border-bottom: 1px solid var(--dd-border);
    }

    .dd-mobile-drawer__logo {
        width: 225px;
        max-width: calc(100% - 58px);
    }

    .dd-mobile-drawer__logo img {
        display: block;
        width: 100%;
        height: auto;
    }

    .dd-mobile-drawer__search {
        padding: 16px 20px;
        background: var(--dd-soft);
    }

    .dd-mobile-menu,
    .dd-mobile-menu ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .dd-mobile-menu li {
        position: relative;
    }

    .dd-mobile-menu > li {
        border-bottom: 1px solid var(--dd-border);
    }

    .dd-mobile-menu li > a {
        display: block;
        padding: 15px 54px 15px 22px;
        color: var(--dd-blue);
        font-size: 13px;
        font-weight: 600;
        line-height: 1.35;
        letter-spacing: .8px;
        text-transform: uppercase;
        text-decoration: none;
    }

    .dd-mobile-menu .sub-menu {
        display: none;
        background: #fff;
        border-top: 1px solid var(--dd-border);
        border-left: 3px solid var(--dd-teal);
    }

    .dd-mobile-menu .sub-menu.is-open {
        display: block;
    }

    .dd-mobile-menu .sub-menu a {
        padding: 10px 48px 10px 26px;
        color: #444;
        font-size: 12px;
        font-weight: 500;
        letter-spacing: .15px;
        text-transform: none;
    }

    .dd-mobile-menu .sub-menu > li + li {
        border-top: 1px solid #edf0f1;
    }

    .dd-mobile-menu .sub-menu .sub-menu {
        margin: 0;
        background: #f7f8f9;
        border-left-color: var(--dd-blue);
    }

    /* Third-level links keep the same type size as the parent submenu and
       receive one clear, modest indent rather than drifting across the drawer. */
    .dd-mobile-menu .sub-menu .sub-menu a {
        padding: 10px 48px 10px 36px;
        color: #4a4a4a;
        font-size: 12px;
        font-weight: 500;
        line-height: 1.35;
        letter-spacing: .15px;
    }

    .dd-mobile-menu .sub-menu > li.menu-item-has-children > a {
        padding-right: 54px;
    }

    .dd-submenu-toggle {
        position: absolute;
        right: 10px;
        top: 5px;
        width: 42px;
        height: 42px;
        border: 0;
        padding: 0;
        background: transparent;
        color: var(--dd-blue);
        cursor: pointer;
    }

    .dd-submenu-toggle::before,
    .dd-submenu-toggle::after {
        content: "";
        position: absolute;
        left: 13px;
        top: 20px;
        width: 16px;
        height: 2px;
        background: currentColor;
        transition: transform .18s ease;
    }

    .dd-submenu-toggle::after {
        transform: rotate(90deg);
    }

    .dd-submenu-toggle[aria-expanded="true"]::after {
        transform: rotate(0deg);
    }

    /* Submenu toggles are sized to the shorter submenu row, so their +/-
       remains centred beside the text rather than appearing offset. */
    .dd-mobile-menu .sub-menu > li > .dd-submenu-toggle {
        top: 0;
        height: 36px;
    }

    .dd-mobile-menu .sub-menu > li > .dd-submenu-toggle::before,
    .dd-mobile-menu .sub-menu > li > .dd-submenu-toggle::after {
        top: 17px;
    }

    .dd-mobile-drawer__utility {
        display: grid;
        grid-template-columns: 1fr 1fr;
        padding: 18px 20px 8px;
        gap: 0 16px;
    }

    .dd-mobile-drawer__utility a {
        padding: 10px 0;
        color: #555d61;
        font-size: 10px;
        font-weight: 600;
        letter-spacing: 1.45px;
        text-transform: uppercase;
        text-decoration: none;
    }

    .dd-mobile-drawer__social {
        display: flex;
        gap: 22px;
        padding: 18px 20px 28px;
    }

    .dd-mobile-drawer__social a {
        color: var(--dd-blue);
        font-size: 22px;
    }
}

@media screen and (max-width: 782px) {
    body.admin-bar .dd-native-site-header,
    body.admin-bar .dd-mobile-drawer,
    body.admin-bar .dd-mobile-overlay {
        top: 46px;
    }
}

@media (max-width: 600px) {
    .dd-header-mobile {
        height: 74px;
        padding: 0 15px;
    }

    .dd-header-mobile__logo {
        width: 205px;
        max-width: calc(100% - 96px);
    }

    .dd-mobile-search-toggle,
    .dd-mobile-menu-toggle {
        width: 39px;
        height: 39px;
    }

    .dd-mobile-search-panel {
        padding: 12px 15px;
    }

    .dd-mobile-drawer__utility {
        grid-template-columns: 1fr;
    }
}
