/* ============================================================
   HEADER / NAVBAR
============================================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #edf0ef;
}

.header-container {
    width: min(1450px, calc(100% - 60px));
    min-height: 92px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}


/* LOGOS */

.header-logos {
    display: flex;
    align-items: center;
    gap: 25px;

    flex-shrink: 0;
}

.header-logo {
    display: flex;
    align-items: center;
}

.header-logo img {
    display: block;

    width: auto;
    max-width: 100%;
    height: 65px;

    object-fit: contain;
}

.medical-logo img {
    max-width: 290px;
}

.wellness-logo img {
    max-width: 310px;
}

.logo-divider {
    width: 1px;
    height: 62px;

    background: #17323b;
}


/* NAV */

.main-nav {
    display: flex;
    align-items: center;
    gap: clamp(18px, 2vw, 34px);
}

.main-nav a {
    position: relative;

    padding: 35px 0 30px;

    color: #071c42;

    font-size: 14px;
    font-weight: 500;

    text-decoration: none;

    white-space: nowrap;
}

.main-nav a::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: 22px;

    width: 0;
    height: 3px;

    border-radius: 3px;

    background: #006b52;

    transform: translateX(-50%);

    transition: width .2s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav a:hover,
.main-nav a.active {
    color: #005d49;
}


/* MOBILE BUTTON */

.menu-toggle {
    display: none;

    padding: 7px;

    border: 0;

    background: transparent;

    color: #071c42;

    cursor: pointer;

    font-size: 30px;
}


/* ============================================================
   RESPONSIVE NAVBAR
============================================================ */

@media (max-width: 1250px) {

    .header-container {
        width: calc(100% - 40px);
    }

    .header-logo img {
        height: 55px;
    }

    .medical-logo img {
        max-width: 230px;
    }

    .wellness-logo img {
        max-width: 250px;
    }

    .main-nav {
        gap: 16px;
    }

    .main-nav a {
        font-size: 13px;
    }
}


@media (max-width: 1050px) {

    .header-container {
        min-height: 80px;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .main-nav {
        position: absolute;

        top: 100%;
        left: 0;
        right: 0;

        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;

        padding: 10px 20px 25px;

        background: #fff;

        border-top: 1px solid #eee;

        box-shadow: 0 15px 25px rgba(0, 0, 0, .08);
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        padding: 15px 10px;

        border-bottom: 1px solid #eee;

        font-size: 15px;
    }

    .main-nav a::after {
        display: none;
    }
}


/* ============================================================
   MOBILE LOGOS
============================================================ */

@media (max-width: 650px) {

    .header-container {
        width: calc(100% - 20px);
        min-height: 70px;
        gap: 8px;
    }

    .header-logos {
        display: flex;
        align-items: center;
        gap: 8px;

        /* Allow logos to use available space */
        flex: 1;
        min-width: 0;
    }

    .header-logo {
        display: flex;
        align-items: center;
        min-width: 0;
    }

    .header-logo img {
        width: auto;
        height: 38px;
        max-width: 100%;
        object-fit: contain;
    }

    .medical-logo img {
        max-width: 130px;
    }

    .wellness-logo img {
        max-width: 140px;
    }

    .logo-divider {
        display: block;
        flex-shrink: 0;

        width: 1px;
        height: 36px;

        background: #17323b;
    }

    .menu-toggle {
        flex-shrink: 0;
        margin-left: auto;
        padding: 5px;

        font-size: 27px;
    }
}


/* Smaller phones */
@media (max-width: 450px) {

    .header-container {
        width: calc(100% - 16px);
        min-height: 64px;
        gap: 5px;
    }

    .header-logos {
        gap: 5px;
    }

    /* KEEP BOTH LOGOS VISIBLE */
    .medical-logo,
    .wellness-logo {
        display: flex;
    }

    .header-logo img {
        height: 32px;
    }

    .medical-logo img {
        max-width: 110px;
    }

    .wellness-logo img {
        max-width: 115px;
    }

    .logo-divider {
        display: block;
        height: 30px;
    }

    .menu-toggle {
        font-size: 25px;
        padding: 3px;
    }
}

/* ============================================================
   LOCATION NAV DROPDOWN
============================================================ */

.nav-dropdown {
    position: relative;
}


/* Dropdown button */

.nav-dropdown-toggle {
    position: relative;

    display: flex;
    align-items: center;
    gap: 7px;

    padding: 35px 0 30px;

    border: 0;
    outline: 0;

    color: #071c42;
    background: transparent;

    font-family: inherit;
    font-size: 14px;
    font-weight: 500;

    white-space: nowrap;

    cursor: pointer;
}


/* underline */

.nav-dropdown-toggle::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: 22px;

    width: 0;
    height: 3px;

    border-radius: 3px;

    background: #006b52;

    transform: translateX(-50%);

    transition: width .2s ease;
}


.nav-dropdown:hover .nav-dropdown-toggle::after,
.nav-dropdown.open .nav-dropdown-toggle::after {
    width: 100%;
}


.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown.open .nav-dropdown-toggle {
    color: #005d49;
}


/* Arrow */

.dropdown-arrow {
    display: inline-block;

    font-size: 16px;
    line-height: 1;

    transition: transform .25s ease;
}


.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}


/* ============================================================
   DROPDOWN MENU
============================================================ */

.nav-dropdown-menu {
    position: absolute;

    top: calc(100% - 8px);
    left: 50%;

    width: 330px;

    padding: 10px;

    border: 1px solid #e3ece8;
    border-radius: 15px;

    background: #ffffff;

    box-shadow:
        0 15px 40px rgba(13, 52, 44, .13);

    opacity: 0;
    visibility: hidden;

    transform:
        translateX(-50%)
        translateY(10px);

    transition:
        opacity .2s ease,
        visibility .2s ease,
        transform .2s ease;
}


/* Show dropdown */

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;

    transform:
        translateX(-50%)
        translateY(0);
}


/* ============================================================
   LOCATION LINKS
============================================================ */

.main-nav .nav-dropdown-menu a {
    position: relative;

    display: flex;
    align-items: center;

    gap: 12px;

    width: 100%;

    padding: 13px 12px;

    border: 0;
    border-radius: 10px;

    color: #071c42;

    text-decoration: none;

    transition:
        background-color .2s ease,
        color .2s ease;
}


/* Remove regular nav underline */

.main-nav .nav-dropdown-menu a::after {
    display: none;
}


.main-nav .nav-dropdown-menu a:hover {
    color: #006b52;

    background: #f0f8f5;
}


/* Icon */

.dropdown-location-icon {
    flex: 0 0 auto;

    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: #007b5b;
    background: #e7f6ef;

    font-size: 18px;
}


/* Text */

.nav-dropdown-menu a > span:last-child {
    display: flex;
    flex-direction: column;

    gap: 3px;
}


.nav-dropdown-menu strong {
    color: #071c42;

    font-size: 13px;
    line-height: 1.25;
}


.nav-dropdown-menu small {
    color: #74817d;

    font-size: 11px;
    font-weight: 400;
}


/* ============================================================
   VIEW BOTH LOCATIONS
============================================================ */

.main-nav .nav-dropdown-menu .view-all-locations {
    justify-content: space-between;

    margin-top: 5px;
    padding: 12px 14px;

    border-top: 1px solid #e5ece9;
    border-radius: 0 0 9px 9px;

    color: #007b5b;

    font-size: 12px;
    font-weight: 700;
}


/* ============================================================
   MOBILE DROPDOWN
============================================================ */

@media (max-width: 1050px) {

    .nav-dropdown {
        width: 100%;

        border-bottom: 1px solid #eeeeee;
    }


    .nav-dropdown-toggle {
        width: 100%;

        justify-content: space-between;

        padding: 15px 10px;

        font-size: 15px;
    }


    .nav-dropdown-toggle::after {
        display: none;
    }


    .nav-dropdown-menu {
        position: static;

        width: 100%;

        padding: 0 5px 10px;

        border: 0;
        border-radius: 0;

        box-shadow: none;

        opacity: 1;
        visibility: visible;

        display: none;

        transform: none;

        background: #f8fbfa;
    }


    .nav-dropdown:hover .nav-dropdown-menu {
        display: none;
    }


    .nav-dropdown.open .nav-dropdown-menu {
        display: block;

        transform: none;
    }


    .main-nav .nav-dropdown-menu a {
        padding: 12px 10px;

        border-bottom: 1px solid #e7eeeb;
        border-radius: 0;
    }


    .main-nav .nav-dropdown-menu .view-all-locations {
        border-bottom: 0;
    }

}