/* ======================================================
   AUSTIN DIVORCE PLANNERS - CUSTOM HEADER
====================================================== */


/* ======================================================
   HIDE ORIGINAL UNDERSCORES HEADER
====================================================== */

body #masthead,
body #masthead.site-header,
body header#masthead,
body .site-header:not(.adp-site-header) {
    display: none !important;
    visibility: hidden !important;

    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;

    overflow: hidden !important;
}


/* ======================================================
   CUSTOM HEADER
====================================================== */

.adp-site-header {
    width: 100%;

    position: relative;
    z-index: 9999;

    background: #e5e5e1;

    border-top: 1px solid #a9bfd7;
}


.adp-site-header__inner {
    width: calc(100% - 60px);

    max-width: 1210px;
    height: 82px;

    margin: 0 auto;

    display: flex;
    align-items: center;
}


/* ======================================================
   LOGO / BRAND
====================================================== */

.adp-site-header__brand {
    display: inline-flex;

    align-items: center;

    gap: 17px;

    flex-shrink: 0;

    color: #0b1929;

    text-decoration: none;
}


.adp-site-header__brand:hover {
    color: #0b1929;
}


.adp-site-header__logo-icon {
    width: 22px;
    height: 26px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;
}


.adp-site-header__logo-icon svg {
    display: block;

    width: 100%;
    height: 100%;

    fill: none;

    stroke: #17283a;

    stroke-width: 1.6;

    stroke-linecap: round;
    stroke-linejoin: round;
}


.adp-site-header__logo-icon svg path:last-child {
    stroke: #c99b42;
}


.adp-site-header__brand-text {
    display: flex;

    flex-direction: column;

    color: #0b1929;

    font-size: 13px;
    line-height: 1.14;

    font-weight: 700;

    letter-spacing: -0.15px;
}


/* ======================================================
   WORDPRESS NAVIGATION WRAPPER
====================================================== */

.adp-site-header__navigation {
    margin-left: auto;
    margin-right: 116px;
}


/* ======================================================
   WORDPRESS MENU
====================================================== */

.adp-site-header__nav {
    display: flex;
    align-items: center;

    gap: 33px;

    margin: 0;
    padding: 0;

    list-style: none;
}


.adp-site-header__nav li {
    margin: 0;
    padding: 0;

    list-style: none;
}


.adp-site-header__nav li::before,
.adp-site-header__nav li::after {
    display: none;
}


.adp-site-header__nav a {
    min-height: 82px;

    display: inline-flex;
    align-items: center;

    position: relative;

    color: #172334;

    font-size: 14px;
    line-height: 1;

    font-weight: 400;

    text-decoration: none;

    white-space: nowrap;

    transition: color 0.2s ease;
}


.adp-site-header__nav a:hover {
    color: #c3963f;
}


/* ======================================================
   ACTIVE / CURRENT PAGE
====================================================== */

.adp-site-header__nav .current-menu-item > a,
.adp-site-header__nav .current_page_item > a,
.adp-site-header__nav .current-menu-ancestor > a,
.adp-site-header__nav .current_page_ancestor > a {
    color: #c3963f;
}


/* ======================================================
   RIGHT SIDE
====================================================== */

.adp-site-header__actions {
    display: flex;

    align-items: center;

    gap: 18px;

    flex-shrink: 0;
}


/* ======================================================
   PHONE
====================================================== */

.adp-site-header__phone {
    color: #0c1928;

    font-size: 14px;
    line-height: 1;

    font-weight: 600;

    text-decoration: none;

    white-space: nowrap;

    transition: color 0.2s ease;
}


.adp-site-header__phone:hover {
    color: #c3963f;
}


/* ======================================================
   CTA BUTTON
====================================================== */

.adp-site-header__cta {
    min-width: 185px;
    min-height: 40px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 0 21px;

    color: #ffffff;

    background: #0b1929;

    border: 1px solid #0b1929;

    border-radius: 999px;

    font-size: 13px;
    line-height: 1;

    font-weight: 700;

    text-decoration: none;

    white-space: nowrap;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}


.adp-site-header__cta:hover {
    color: #ffffff;

    background: #172b40;

    border-color: #172b40;

    transform: translateY(-1px);
}


/* ======================================================
   LAPTOP
====================================================== */

@media (max-width: 1200px) {

    .adp-site-header__inner {
        width: calc(100% - 50px);
    }


    .adp-site-header__navigation {
        margin-right: 50px;
    }


    .adp-site-header__nav {
        gap: 24px;
    }

}


/* ======================================================
   SMALL LAPTOP
====================================================== */

@media (max-width: 1050px) {

    .adp-site-header__navigation {
        margin-right: 30px;
    }


    .adp-site-header__nav {
        gap: 20px;
    }


    .adp-site-header__nav a {
        font-size: 13px;
    }


    .adp-site-header__actions {
        gap: 14px;
    }


    .adp-site-header__cta {
        min-width: 165px;

        padding: 0 18px;

        font-size: 12px;
    }

}


/* ======================================================
   TABLET
====================================================== */

@media (max-width: 980px) {

    .adp-site-header__inner {
        width: calc(100% - 40px);

        height: auto;
        min-height: 76px;

        flex-wrap: wrap;

        padding: 16px 0;
    }


    .adp-site-header__actions {
        margin-left: auto;
    }


    .adp-site-header__phone {
        display: none;
    }


    .adp-site-header__navigation {
        order: 3;

        width: 100%;

        margin:
            16px
            0
            0;
    }


    .adp-site-header__nav {
        justify-content: center;

        gap: 28px;
    }


    .adp-site-header__nav a {
        min-height: auto;

        padding: 5px 0;

        font-size: 13px;
    }

}


/* ======================================================
   MOBILE
====================================================== */

@media (max-width: 600px) {

    .adp-site-header__inner {
        width: calc(100% - 30px);

        padding: 14px 0;
    }


    /* BRAND */

    .adp-site-header__brand {
        gap: 10px;
    }


    .adp-site-header__brand-text {
        font-size: 11px;
    }


    .adp-site-header__logo-icon {
        width: 19px;
        height: 23px;
    }


    /* CTA */

    .adp-site-header__cta {
        min-width: auto;
        min-height: 38px;

        padding: 0 16px;

        font-size: 11px;
    }


    /* NAV */

    .adp-site-header__navigation {
        width: 100%;

        overflow-x: auto;

        margin-top: 14px;

        padding-bottom: 3px;

        scrollbar-width: none;
    }


    .adp-site-header__navigation::-webkit-scrollbar {
        display: none;
    }


    .adp-site-header__nav {
        width: max-content;

        justify-content: flex-start;

        gap: 18px;
    }


    .adp-site-header__nav li {
        flex-shrink: 0;
    }


    .adp-site-header__nav a {
        min-height: auto;

        padding: 4px 0;

        font-size: 12px;
    }

}


/* ======================================================
   VERY SMALL MOBILE
====================================================== */

@media (max-width: 420px) {

    .adp-site-header__inner {
        width: calc(100% - 24px);
    }


    .adp-site-header__brand-text {
        font-size: 10px;
    }


    .adp-site-header__cta {
        padding: 0 12px;

        font-size: 10px;
    }


    .adp-site-header__nav {
        gap: 16px;
    }


    .adp-site-header__nav a {
        font-size: 11px;
    }
}


/* Mobile navigation is enhanced by custom.js. */
.adp-menu-toggle,
.adp-menu-close,
.adp-menu-backdrop {
    display: none;
}

@media (max-width: 980px) {
    body.adp-menu-open { overflow: hidden; }

    .has-mobile-menu .adp-site-header__inner {
        flex-wrap: nowrap;
        gap: 12px;
    }

    .has-mobile-menu .adp-menu-toggle,
    .has-mobile-menu .adp-menu-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 1px solid #a9bfd7;
        border-radius: 6px;
        background: #e5e5e1;
        color: #0b1929;
        font-size: 26px;
        line-height: 1;
        cursor: pointer;
    }

    .has-mobile-menu .adp-menu-close { margin: 0 0 24px auto; }

    .has-mobile-menu .adp-site-header__navigation {
        position: fixed;
        inset: 0 0 0 auto;
        z-index: 10001;
        width: min(320px, 85vw);
        height: 100dvh;
        margin: 0;
        padding: 24px;
        overflow: auto;
        background: #e5e5e1;
        visibility: hidden;
        transform: translateX(100%);
        transition: transform .25s ease, visibility .25s;
    }

    .has-mobile-menu.is-menu-open .adp-site-header__navigation {
        visibility: visible;
        transform: translateX(0);
    }

    .has-mobile-menu .adp-site-header__nav {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .has-mobile-menu .adp-site-header__nav a {
        display: block;
        min-height: 44px;
        padding: 12px 0;
        font-size: 16px;
    }

    .has-mobile-menu.is-menu-open .adp-menu-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 10000;
        background: rgb(0 0 0 / 50%);
    }

    .admin-bar .has-mobile-menu .adp-site-header__navigation {
        top: 32px;
        height: calc(100dvh - 32px);
    }
}

@media (max-width: 782px) {
    .admin-bar .has-mobile-menu .adp-site-header__navigation {
        top: 46px;
        height: calc(100dvh - 46px);
    }
}

@media (max-width: 600px) {
    .has-mobile-menu .adp-site-header__brand .custom-logo {
        max-width: 100px;
        max-height: 60px;
        width: auto;
        height: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .has-mobile-menu .adp-site-header__navigation { transition: none; }
}

/* FORCE HEADER TEXT/LINK COLOR */

.adp-site-header a,
/* .adp-site-header a:visited, */
.adp-site-header a:hover,
.adp-site-header a:focus,
.adp-site-header a:active,

.adp-site-header__nav a,
/* .adp-site-header__nav a:visited, */
.adp-site-header__nav a:hover,
.adp-site-header__nav a:focus,
.adp-site-header__nav a:active,

.adp-site-header__nav .current-menu-item > a,
.adp-site-header__nav .current_page_item > a,
.adp-site-header__nav .current-menu-ancestor > a,

.adp-site-header__phone,
/* .adp-site-header__phone:visited, */
.adp-site-header__phone:hover,
.adp-site-header__phone:focus,
.adp-site-header__phone:active {
    color: #243347e6 !important;
}
