/* ======================================
   HEADER — DESKTOP
====================================== */

#header {
    width: 100% !important;
    min-height: 94px;
    padding: 18px 5.2% !important;
    margin: 0;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    position: relative;
    z-index: 999;
    background: #fff;
    border-bottom: 1px solid #e9e9e9;
    box-sizing: border-box;
}

#header *,
#header *::before,
#header *::after {
    box-sizing: border-box;
}

/* Logo */

.custom-logo-link img {
    width: 100%;
    height: auto;
    max-width: 35%;
}

#header #branding {
    float: none !important;
    flex: 0 0 auto;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

#header #site-title,
#header #site-title h1 {
    margin: 0 !important;
    padding: 0 !important;
    font-family: inherit;
    font-size: 22px !important;
    font-weight: 700 !important;
    line-height: 1.2;
    letter-spacing: -0.6px;
}

#header #site-title a {
    color: #111 !important;
    text-decoration: none !important;
}

/* Orange dot */

#header #site-title span[itemprop="name"]::after {
    content: ".";
    color: #ff501b;
}

/* Hide tagline */

#header #site-description {
    display: none !important;
}

/* Navigation container */

#header #menu {
    display: block !important;
    float: none !important;
    flex: 0 1 auto;
    width: auto !important;
    margin: 0 0 0 auto !important;
    padding: 0 !important;
    border: 0;
    background: transparent;
}

/* WordPress-generated menu */

#header #menu .menu-main-menu-container {
    width: auto;
    margin: 0;
    padding: 0;
}

#header #menu ul.menu {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 29px;
    width: auto;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

#header #menu ul.menu > li {
    float: none !important;
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

#header #menu ul.menu > li > a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 !important;
    color: #111 !important;
    font-family: inherit;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.4;
    text-decoration: none !important;
    white-space: nowrap;
    transition: color .2s ease;
}

#header #menu ul.menu > li:not(.hm_btn) > a:hover {
    color: #ff501b !important;
}

/* Book a free call */

#header #menu ul.menu > li.hm_btn > a {
    min-height: 44px;
    padding: 0 22px !important;
    color: #111 !important;
    background: #ff501b !important;
    border: 1px solid #ff501b;
    border-radius: 2px;
    font-weight: 600 !important;
    transition: background-color .2s ease, color .2s ease;
}

#header #menu ul.menu > li.hm_btn > a:hover {
    background: #e94412 !important;
    border-color: #e94412;
    color: #fff !important;
}

/* Hide hamburger on desktop */

#header .menu-toggle {
    display: none;
}

/* ======================================
   MOBILE HAMBURGER
====================================== */

@media (max-width: 900px) {
    #header {
        min-height: 76px;
        padding: 14px 22px !important;
        gap: 16px;
        flex-wrap: wrap;
    }

    #header #branding {
        order: 1;
    }

    #header #site-title,
    #header #site-title h1 {
        font-size: 21px !important;
    }

    #header .menu-toggle {
        display: flex !important;
        order: 2;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 5px;
        width: 42px;
        height: 42px;
        margin-left: auto;
        padding: 10px;
        background: #fff;
        border: 1px solid #e8e8e8;
        border-radius: 3px;
        cursor: pointer;
    }

    #header .menu-toggle span {
        display: block;
        width: 20px;
        height: 2px;
        margin: 0;
        padding: 0;
        background: #111;
        border-radius: 2px;
        transition: transform .2s ease, opacity .2s ease;
    }

    #header .menu-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    #header .menu-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    #header .menu-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Hide navigation until opened */

    #header #menu {
        display: none !important;
        order: 3;
        flex: 0 0 100%;
        width: 100% !important;
        margin: 0 !important;
        padding: 10px 0 4px !important;
        border-top: 1px solid #eee;
    }

    #header #menu.is-open {
        display: block !important;
    }

    #header #menu .menu-main-menu-container {
        width: 100%;
    }

    #header #menu ul.menu {
        flex-direction: column !important;
        align-items: stretch;
        gap: 0;
        width: 100%;
    }

    #header #menu ul.menu > li {
        width: 100%;
    }

    #header #menu ul.menu > li > a {
        display: flex !important;
        justify-content: flex-start;
        width: 100%;
        min-height: 46px;
        padding: 12px 0 !important;
        white-space: normal;
    }

    #header #menu ul.menu > li.hm_btn {
        margin-top: 12px !important;
    }

    #header #menu ul.menu > li.hm_btn > a {
        justify-content: center;
        min-height: 46px;
        padding: 0 18px !important;
    }
}

@media (max-width: 380px) {
    #header {
        padding-right: 16px !important;
        padding-left: 16px !important;
    }

    #header #site-title,
    #header #site-title h1 {
        font-size: 19px !important;
    }
}

#header a:focus-visible,
#header button:focus-visible {
    outline: 2px solid #ff501b;
    outline-offset: 4px;
}