
/* =========================================================
   HEADER
========================================================= */

.site-header {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    height: 110px;
    padding: 0 30px;
    background: #fff;
    z-index: 2000;
}

/* =========================================================
   LOGO
========================================================= */

.site-header__logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    height: 100%;
}

.site-header__logo a {
    display: flex;
    align-items: center;
    height: 100%;
}

.site-header__logo img {
    display: block;
    width: 270px;
    max-width: 100%;
    height: auto;
}


/* =========================================================
   MAIN NAVIGATION
========================================================= */

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    height: 100%;
}

.main-nav__list {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-nav__item {
    position: relative;
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-nav__link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    box-sizing: border-box;
    border: 0;
    color: #8f734a;
    background: transparent;
    text-decoration: none;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: color .25s ease, background-color .25s ease;
}

.main-nav__button {
    appearance: none;
    -webkit-appearance: none;
}

.main-nav__link:hover,
.main-nav__button:hover {
    color: #fff;
    background: #434343;
}


/* =========================================================
   TREATMENT CATEGORIES
========================================================= */

.main-nav__treatment-category,
.main-nav__back-item {
    display: none;
}

.main-nav.treatments-active .main-nav__main-item {
    display: none;
}

.main-nav.treatments-active .main-nav__treatment-category,
.main-nav.treatments-active .main-nav__back-item {
    display: block;
}

.main-nav__arrow {
    display: inline-block;
    font-size: 20px;
    line-height: 1;
    transition: transform .2s ease;
}

.main-nav__category-button[aria-expanded="true"] .main-nav__arrow {
    transform: rotate(90deg);
}


/* =========================================================
   SUBMENUS - DESKTOP
========================================================= */

.main-nav__submenu {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    min-width: 250px;
    margin: 0;
    padding: 5px 0;
    box-sizing: border-box;
    background: #fff;
    list-style: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .10);
    z-index: 1200;
}

.main-nav__submenu.is-open {
    display: block;
}

.main-nav__submenu-item {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

.main-nav__submenu-link {
    display: block;
    width: 100%;
    padding: 11px 18px;
    box-sizing: border-box;
    color: #8f734a;
    background: #fff;
    text-decoration: none;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;
    white-space: normal;
    transition: color .2s ease, background-color .2s ease;
}

.main-nav__submenu-link:hover {
    color: #fff;
    background: #434343;
}


/* =========================================================
   BURGER
========================================================= */

.menu-toggle {
    position: relative;
    display: none;
    flex: 0 0 34px;
    width: 34px;
    height: 26px;
    margin: 0 0 0 20px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    z-index: 1300;
}

.menu-toggle span {
    position: absolute;
    left: 0;
    display: block;
    width: 34px;
    height: 2px;
    background: #8f734a;
    border-radius: 2px;
    transition: top .25s ease, transform .25s ease, opacity .2s ease;
}

.menu-toggle span:nth-child(1) {
    top: 3px;
}

.menu-toggle span:nth-child(2) {
    top: 12px;
}

.menu-toggle span:nth-child(3) {
    top: 21px;
}

.menu-toggle.is-active span:nth-child(1) {
    top: 12px;
    transform: rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
    top: 12px;
    transform: rotate(-45deg);
}


/* =========================================================
   WHATSAPP
========================================================= */

.whatsapp-button {
    position: fixed;
    right: 0;
    bottom: 30px;
    z-index: 2000;
}

.whatsapp-button a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 13px 22px 13px 18px;
    background: #111;
    border-radius: 30px 0 0 30px;
    line-height: 0;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
    transition: background-color .25s ease, padding-right .25s ease;
}

.whatsapp-button img {
    display: block;
    width: 145px;
    height: auto;
}

.whatsapp-button a:hover {
    padding-right: 28px;
    background: #8f734a;
}


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

@media only screen and (max-width: 800px) {
    .site-header {
        height: 82px;
        padding: 0 18px;
    }


    .site-header__logo {
        width: auto;
        height: 82px;
        max-width: calc(100% - 70px);
    }

    .site-header__logo a {
        height: 82px;
    }

    .site-header__logo img {
        width: 200px;
        max-width: 100%;
        height: auto;
    }


    /* BURGER */

    .menu-toggle {
        display: block;
        margin-left: auto;
    }


    /* NAV */

    .main-nav {
        position: absolute;
        top: 82px;
        left: 0;
        display: none;
        width: 100%;
        height: auto;
        margin: 0;
        padding: 8px 20px 20px;
        box-sizing: border-box;
        background: #fff;
        border-top: 1px solid #eee;
        box-shadow: 0 12px 25px rgba(0, 0, 0, .10);
        z-index: 1200;
    }

    .main-nav.is-open {
        display: block;
    }

    .main-nav__list {
        display: block;
        width: 100%;
    }

    .main-nav__item {
        width: 100%;
    }

    .main-nav__link {
        display: flex;
        justify-content: space-between;
        width: 100%;
        padding: 14px 8px;
        color: #4d4438;
        background: transparent;
        border-bottom: 1px solid #eee;
        font-size: 16px;
        line-height: 1.3;
        text-align: left;
        white-space: normal;
    }

    .main-nav__link:hover,
    .main-nav__button:hover {
        color: #8f734a;
        background: transparent;
    }


    /* TREATMENT MODE */

    .main-nav.treatments-active .main-nav__main-item {
        display: none;
    }

    .main-nav.treatments-active .main-nav__treatment-category,
    .main-nav.treatments-active .main-nav__back-item {
        display: block;
    }


    /* SUBMENUS */

    .main-nav__submenu {
        position: static;
        display: none;
        width: 100%;
        min-width: 0;
        margin: 0;
        padding: 0 0 0 14px;
        background: #faf9f7;
        box-shadow: none;
    }

    .main-nav__submenu.is-open {
        display: block;
    }

    .main-nav__submenu-link {
        padding: 11px 8px;
        color: #665b4d;
        background: transparent;
        border-bottom: 1px solid #eee;
        font-size: 14px;
        line-height: 1.35;
    }

    .main-nav__submenu-link:hover {
        color: #8f734a;
        background: transparent;
    }

    .main-nav__back-button {
        justify-content: flex-start;
        gap: 10px;
        color: #8f734a;
        font-weight: 500;
    }


    /* WHATSAPP */

    .whatsapp-button {
        bottom: 20px;
    }

    .whatsapp-button a {
        padding: 11px 18px 11px 15px;
    }

    .whatsapp-button img {
        width: 125px;
    }
}