/* =========================================================
   LiveFitFlow
   Custom Header
   ========================================================= */


/* =========================================================
   Header
   ========================================================= */

.lff-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    width: 100%;

    background: #176b38;
    border-bottom: 1px solid #125a2f;
}

.lff-header__inner {
    width: min(100% - 40px, 1280px);
    min-height: 72px;

    margin-inline: auto;

    display: flex;
    align-items: center;
}


/* =========================================================
   Logo
   ========================================================= */

.lff-logo {
    display: inline-flex;
    align-items: center;

    color: #ffffff;
    text-decoration: none;

    flex-shrink: 0;

    line-height: 0;
}

.lff-logo:hover {
    color: #ffffff;
}


/* Dynamic WordPress Logo */

.lff-logo__image {
    display: block;

    width: auto;
    height: 38px;

    max-width: 170px;

    object-fit: contain;
}


/* Text fallback */

.lff-logo__text {
    display: inline-block;

    color: #ffffff;

    font-size: 21px;
    line-height: 1;

    font-weight: 800;
    letter-spacing: -1px;
}

.lff-logo__dot {
    width: 8px;
    height: 8px;

    margin-left: 4px;

    background: #d9f2df;

    border-radius: 50%;
}


/* =========================================================
   Desktop Navigation
   ========================================================= */

.lff-desktop-nav {
    margin-left: auto;
    margin-right: 38px;
}

.lff-nav-list {
    list-style: none;

    display: flex;
    align-items: center;

    gap: 28px;

    margin: 0;
    padding: 0;
}


/* Main menu items */

.lff-nav-list > li {
    position: relative;

    display: flex;
    align-items: center;
}

.lff-nav-list > li > a {
    position: relative;

    min-height: 72px;

    display: inline-flex;
    align-items: center;

    padding: 0;

    color: #eef8f1;

    text-decoration: none;

    font-size: 13px;
    font-weight: 600;

    white-space: nowrap;

    transition:
        color 160ms ease,
        opacity 160ms ease;
}

.lff-nav-list > li > a:hover {
    color: #ffffff;
}


/* =========================================================
   Current / Active Menu
   ========================================================= */

.lff-nav-list > li.current-menu-item > a,
.lff-nav-list > li.current-menu-ancestor > a,
.lff-nav-list > li.current-menu-parent > a {
    color: #ffffff;
}

.lff-nav-list > li.current-menu-item > a::after,
.lff-nav-list > li.current-menu-ancestor > a::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 3px;

    background: #d9f2df;

    border-radius: 3px 3px 0 0;
}


/* =========================================================
   Dropdown
   ========================================================= */

.lff-nav-list .menu-item-has-children > a {
    display: inline-flex;
    align-items: center;

    gap: 6px;
}


/* Small arrow */

.lff-nav-list .menu-item-has-children > a::after {
    content: "";

    width: 6px;
    height: 6px;

    margin-top: -3px;

    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;

    transform: rotate(45deg);
}


/* Sub menu */

.lff-nav-list .sub-menu {
    position: absolute;

    top: calc(100% - 1px);
    left: -12px;

    min-width: 220px;

    margin: 0;
    padding: 8px;

    list-style: none;

    background: #ffffff;

    border: 1px solid #e8ebe8;
    border-radius: 12px;

    box-shadow: 0 14px 35px rgba(15, 35, 23, 0.14);

    opacity: 0;
    visibility: hidden;

    transform: translateY(6px);

    transition:
        opacity 160ms ease,
        visibility 160ms ease,
        transform 160ms ease;
}

.lff-nav-list .menu-item-has-children:hover > .sub-menu,
.lff-nav-list .menu-item-has-children:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lff-nav-list .sub-menu li {
    margin: 0;
}

.lff-nav-list .sub-menu a {
    display: block;

    padding: 10px 12px;

    border-radius: 7px;

    color: #202521;

    text-decoration: none;

    font-size: 13px;
    font-weight: 500;
}

.lff-nav-list .sub-menu a:hover {
    background: #f2f7f3;
    color: #167238;
}


/* =========================================================
   Header Actions
   ========================================================= */

.lff-header__actions {
    display: flex;
    align-items: center;

    gap: 18px;

    flex-shrink: 0;
}


/* Search */

.lff-search-button {
    width: 34px;
    height: 34px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;
    background: transparent;

    color: #ffffff;

    cursor: pointer;

    transition:
        color 160ms ease,
        opacity 160ms ease;
}

.lff-search-button:hover {
    color: #d9f2df;
}

.lff-search-button svg {
    width: 19px;
    height: 19px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;

    stroke-linecap: round;
}


/* =========================================================
   Subscribe Button
   ========================================================= */

.lff-subscribe-button {
    min-height: 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 19px;

    border-radius: 8px;

    background: #f4ead8;
    color: #176b38;

    text-decoration: none;

    font-size: 12px;
    font-weight: 800;

    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);

    transition:
        background 160ms ease,
        color 160ms ease,
        transform 160ms ease;
}

.lff-subscribe-button:hover {
    background: #ffffff;
    color: #125a2f;

    transform: translateY(-1px);
}


/* =========================================================
   Mobile Toggle
   ========================================================= */

.lff-mobile-toggle {
    display: none;

    width: 42px;
    height: 42px;

    margin-left: auto;

    padding: 0;

    border: 0;
    background: transparent;

    align-items: center;
    justify-content: center;

    flex-direction: column;

    gap: 5px;

    cursor: pointer;
}

.lff-mobile-toggle span {
    width: 21px;
    height: 2px;

    background: #ffffff;

    border-radius: 10px;

    transition:
        transform 180ms ease,
        opacity 180ms ease;
}

.lff-mobile-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.lff-mobile-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.lff-mobile-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* =========================================================
   Mobile Menu
   ========================================================= */

.lff-mobile-menu {
    width: min(100% - 24px, 1280px);

    margin: 0 auto;

    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.lff-mobile-menu[hidden] {
    display: none;
}

.lff-mobile-nav {
    padding: 7px 0 14px;
}

.lff-mobile-nav-list {
    list-style: none;

    margin: 0;
    padding: 0;
}

.lff-mobile-nav-list li {
    margin: 0;
}

.lff-mobile-nav-list a {
    min-height: 43px;

    display: flex;
    align-items: center;

    padding: 0 4px;

    color: #eef8f1;

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;
}

.lff-mobile-nav-list a:hover {
    color: #ffffff;
}


/* =========================================================
   Mobile Dropdown
   ========================================================= */

.lff-mobile-nav-list .sub-menu {
    list-style: none;

    margin: 0;
    padding: 0 0 5px 16px;
}

.lff-mobile-nav-list .sub-menu a {
    min-height: 38px;

    color: #cfe4d4;

    font-size: 13px;
    font-weight: 500;
}


/* =========================================================
   Mobile Subscribe
   ========================================================= */

.lff-mobile-subscribe {
    width: 100%;

    min-height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-top: 8px;

    border-radius: 8px;

    background: #f4ead8;
    color: #176b38 !important;

    text-decoration: none;

    font-size: 13px;
    font-weight: 800;

    transition:
        background 160ms ease,
        color 160ms ease;
}

.lff-mobile-subscribe:hover {
    background: #ffffff;
    color: #125a2f !important;
}


/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 1000px) {

    .lff-header__inner {
        width: min(100% - 28px, 1280px);
    }

    .lff-nav-list {
        gap: 18px;
    }

    .lff-nav-list > li > a {
        font-size: 12px;
    }

    .lff-desktop-nav {
        margin-right: 22px;
    }

    .lff-logo__image {
        height: 36px;
        max-width: 155px;
    }

}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 820px) {

    .lff-header__inner {
        width: min(100% - 24px, 1280px);

        min-height: 62px;
    }

    .lff-desktop-nav,
    .lff-header__actions {
        display: none;
    }

    .lff-mobile-toggle {
        display: inline-flex;
    }


    /* Mobile logo */

    .lff-logo__image {
        height: 34px;
        max-width: 145px;
    }

    .lff-logo__text {
        font-size: 19px;
    }

}


/* =========================================================
   Small Mobile
   ========================================================= */

@media (max-width: 480px) {

    .lff-header__inner {
        width: min(100% - 20px, 1280px);

        min-height: 58px;
    }


    /* Smaller mobile logo */

    .lff-logo__image {
        height: 31px;
        max-width: 135px;
    }

    .lff-logo__text {
        font-size: 18px;
    }

    .lff-mobile-menu {
        width: min(100% - 20px, 1280px);
    }

}