/* =========================================================
   UPGRADELIFESTYLE
   SHARED PUBLIC NAVIGATION
   /app/assets/css/public-navigation.css

   Load AFTER the page-specific CSS.
========================================================= */


/* =========================================================
   VARIABLES
========================================================= */

:root {
    --ul-green: #008f44;
    --ul-green-dark: #087a31;
    --ul-green-light: #f1faf5;

    --ul-line: #e4ece7;

    --ul-ink: #17211c;
    --ul-muted: #627067;
}


/* =========================================================
   CONTAINER
========================================================= */

.ul-container {
    width: min(
        1180px,
        calc(100% - 40px)
    );

    margin: 0 auto;
}


/* =========================================================
   HEADER
========================================================= */

.ul-header {
    position: sticky;
    top: 0;

    z-index: 1000;

    background: rgba(
        255,
        255,
        255,
        0.97
    );

    border-bottom: 1px solid #edf1ee;

    font-family:
        "Segoe UI Historic",
        "Segoe UI",
        Arial,
        sans-serif;
}


.ul-header-inner {
    min-height: 78px;

    display: flex;
    align-items: center;

    gap: 28px;
}


/* =========================================================
   LOGO
========================================================= */

.ul-logo {
    display: flex;
    align-items: center;

    flex-shrink: 0;

    text-decoration: none;
}


.ul-logo img {
    display: block;

    width: 205px;
    max-width: 100%;
    max-height: 54px;

    object-fit: contain;
}


/* =========================================================
   DESKTOP NAVIGATION
========================================================= */

.ul-nav {
    display: flex;
    align-items: center;

    gap: 22px;

    margin-left: auto;
}


.ul-nav > a,
.ul-nav-dropdown-toggle {
    position: relative;

    border: 0;

    background: none;

    padding: 27px 0 24px;

    color: var(--ul-ink);

    font-family:
        "Segoe UI Historic",
        "Segoe UI",
        Arial,
        sans-serif;

    font-size: 14px;
    font-weight: 700;

    line-height: 1.2;

    cursor: pointer;

    text-decoration: none;
}


.ul-nav > a:hover,
.ul-nav-dropdown-toggle:hover,
.ul-nav > a.active,
.ul-nav-dropdown.active-parent
    > .ul-nav-dropdown-toggle {

    color: var(--ul-green);
}


/* =========================================================
   DROPDOWN
========================================================= */

.ul-nav-dropdown {
    position: relative;
}


.ul-nav-dropdown-toggle {
    display: flex;
    align-items: center;

    gap: 5px;
}


.ul-nav-dropdown-toggle > span {
    display: inline-block;

    font-size: 15px;

    transition: transform 0.2s ease;
}


.ul-dropdown-menu {
    display: none;

    position: absolute;

    top: 62px;
    left: -18px;

    width: 220px;

    padding: 10px;

    background: #ffffff;

    border: 1px solid var(--ul-line);
    border-radius: 14px;

    box-shadow:
        0 12px 35px
        rgba(13, 62, 42, 0.09);

    z-index: 1001;
}


.ul-nav-dropdown:hover
.ul-dropdown-menu {

    display: block;
}


.ul-nav-dropdown.open
.ul-dropdown-menu {

    display: block;
}


.ul-dropdown-menu a {
    display: block;

    padding: 11px 12px;

    border-radius: 9px;

    color: #25332b;

    text-decoration: none;

    font-family:
        "Segoe UI Historic",
        "Segoe UI",
        Arial,
        sans-serif;

    font-size: 14px;
    font-weight: 500;
}


.ul-dropdown-menu a:hover {
    background: var(--ul-green-light);

    color: var(--ul-green);
}


/* =========================================================
   DESKTOP ACCOUNT BUTTONS
========================================================= */

.ul-header-actions {
    display: flex;

    align-items: center;

    gap: 9px;

    flex-shrink: 0;
}


.ul-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 43px;

    padding: 0 22px;

    border-radius: 999px;

    font-family:
        "Segoe UI Historic",
        "Segoe UI",
        Arial,
        sans-serif;

    font-size: 14px;
    font-weight: 800;

    line-height: 1;

    text-decoration: none;

    white-space: nowrap;
}


.ul-btn-primary {
    border: 1px solid var(--ul-green);

    background:
        linear-gradient(
            135deg,
            #087a31,
            #079447
        );

    color: #ffffff !important;
}


.ul-btn-primary:hover {
    opacity: 0.92;

    color: #ffffff !important;
}


.ul-btn-outline {
    border: 1px solid var(--ul-green);

    background: #ffffff;

    color: var(--ul-green) !important;
}


.ul-btn-outline:hover {
    background: var(--ul-green-light);

    color: var(--ul-green) !important;
}


/* =========================================================
   IMPORTANT:
   MOBILE ACCOUNT LINKS MUST BE HIDDEN ON DESKTOP
========================================================= */

.ul-mobile-account {
    display: none !important;
}


/* =========================================================
   HAMBURGER
   Hidden on desktop
========================================================= */

.ul-menu-toggle {
    display: none;

    width: 44px;
    height: 44px;

    padding: 9px;

    margin-left: auto;

    border: 0;
    border-radius: 10px;

    background: #f1f8f4;

    cursor: pointer;

    align-items: center;
    justify-content: center;
    flex-direction: column;

    gap: 5px;

    flex-shrink: 0;
}


.ul-menu-toggle span:not(
    .screen-reader-text
) {
    display: block;

    width: 24px;
    height: 2px;

    margin: 0;

    border-radius: 999px;

    background: #123e2e;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}


/* =========================================================
   HAMBURGER ACTIVE / X
========================================================= */

.ul-menu-toggle.active
span:nth-child(1) {

    transform:
        translateY(7px)
        rotate(45deg);
}


.ul-menu-toggle.active
span:nth-child(2) {

    opacity: 0;
}


.ul-menu-toggle.active
span:nth-child(3) {

    transform:
        translateY(-7px)
        rotate(-45deg);
}


/* =========================================================
   SCREEN READER
========================================================= */

.screen-reader-text {
    position: absolute !important;

    width: 1px;
    height: 1px;

    padding: 0;

    margin: -1px;

    overflow: hidden;

    clip: rect(
        0,
        0,
        0,
        0
    );

    white-space: nowrap;

    border: 0;
}


/* =========================================================
   FOOTER
   Kept here in case WordPress/shared pages use it.
   Existing Business Directory footer is unaffected.
========================================================= */

.ul-footer {
    background: #ffffff;

    padding: 52px 0 24px;

    border-top: 1px solid var(--ul-line);

    font-family:
        "Segoe UI Historic",
        "Segoe UI",
        Arial,
        sans-serif;
}


.ul-footer-grid {
    display: grid;

    grid-template-columns:
        2fr 1fr 1fr 1fr;

    gap: 50px;
}


.ul-footer-brand img {
    width: 220px;

    max-width: 100%;

    margin-bottom: 15px;
}


.ul-footer-brand p {
    max-width: 330px;

    color: var(--ul-muted);

    font-size: 14px;
}


.ul-footer h3 {
    margin: 5px 0 15px;

    font-size: 14px;
}


.ul-footer-grid
> div:not(.ul-footer-brand)
a {

    display: block;

    margin: 9px 0;

    color: #5b685f;

    font-size: 13px;

    text-decoration: none;
}


.ul-footer-disclaimer {
    margin-top: 35px;

    padding-top: 22px;

    border-top: 1px solid #edf1ee;
}


.ul-footer-disclaimer p {
    color: #7a857e;

    font-size: 11px;

    line-height: 1.6;
}


.ul-footer-bottom {
    display: flex;

    justify-content: space-between;

    gap: 20px;

    margin-top: 18px;

    padding-top: 18px;

    border-top: 1px solid #edf1ee;

    color: #7a857e;

    font-size: 11px;
}


/* =========================================================
   TABLET / MOBILE NAVIGATION
========================================================= */

@media (max-width: 1050px) {


    /* ---------------------------------------------------------
       HEADER
    --------------------------------------------------------- */

    .ul-header-inner {
        min-height: 70px;

        display: flex;
        flex-wrap: wrap;

        align-items: center;

        gap: 0;

        padding-top: 9px;
        padding-bottom: 9px;

        position: relative;
    }


    /* ---------------------------------------------------------
       LOGO
    --------------------------------------------------------- */

    .ul-logo {
        margin-right: auto;
    }


    .ul-logo img {
        width: 175px;

        max-height: 50px;
    }


    /* ---------------------------------------------------------
       HIDE DESKTOP LOGIN / SIGN UP
    --------------------------------------------------------- */

    .ul-header-actions {
        display: none !important;
    }


    /* ---------------------------------------------------------
       SHOW HAMBURGER
    --------------------------------------------------------- */

    .ul-menu-toggle {
        display: flex;
    }


    /* ---------------------------------------------------------
       MOBILE MAIN NAVIGATION
    --------------------------------------------------------- */

    .ul-nav {
        display: none;

        order: 10;

        width: 100%;

        margin: 9px 0 0;

        padding:
            10px 0
            7px;

        flex-direction: column;

        align-items: stretch;

        gap: 0;

        border-top:
            1px solid
            #edf1ee;
    }


    .ul-nav.open {
        display: flex;
    }


    /* ---------------------------------------------------------
       MOBILE LINKS
    --------------------------------------------------------- */

    .ul-nav > a,
    .ul-nav-dropdown-toggle {
        width: 100%;

        min-height: 48px;

        display: flex;

        align-items: center;

        padding: 0 5px;

        margin: 0;

        border: 0;

        background: transparent;

        color: var(--ul-ink);

        text-align: left;

        font-family:
            "Segoe UI Historic",
            "Segoe UI",
            Arial,
            sans-serif;

        font-size: 15px;
        font-weight: 700;

        text-decoration: none;
    }


    .ul-nav > a:hover,
    .ul-nav > a.active {

        color: var(--ul-green);
    }


    /* ---------------------------------------------------------
       MOBILE DROPDOWN
    --------------------------------------------------------- */

    .ul-nav-dropdown {
        width: 100%;
    }


    .ul-nav-dropdown-toggle {
        justify-content:
            space-between;
    }


    .ul-nav-dropdown-toggle
    > span {

        margin-left: auto;

        font-size: 18px;

        transition:
            transform 0.2s ease;
    }


    .ul-nav-dropdown.open
    .ul-nav-dropdown-toggle
    > span {

        transform:
            rotate(180deg);
    }


    /*
     * Prevent desktop hover behaviour
     * from opening menus on mobile.
     */

    .ul-nav-dropdown:hover
    .ul-dropdown-menu {

        display: none;
    }


    .ul-nav-dropdown.open
    .ul-dropdown-menu {

        display: block;
    }


    .ul-dropdown-menu {
        display: none;

        position: static;

        top: auto;
        left: auto;

        width: 100%;

        margin: 0 0 7px;

        padding: 6px;

        border: 0;
        border-radius: 12px;

        background: #f5faf7;

        box-shadow: none;
    }


    .ul-dropdown-menu a {
        min-height: 43px;

        display: flex;

        align-items: center;

        padding: 10px 14px;

        border-radius: 8px;

        color: #405047;

        font-size: 14px;

        text-decoration: none;
    }


    .ul-dropdown-menu a:hover {
        background: #e9f6ee;

        color: var(--ul-green);
    }


    /* ---------------------------------------------------------
       MOBILE LOGIN / SIGN UP

       This is the second set inside public-header.php.
       It ONLY appears inside the opened mobile menu.
    --------------------------------------------------------- */

    .ul-mobile-account {
        display: grid !important;

        grid-template-columns:
            1fr 1fr;

        gap: 10px;

        width: 100%;

        margin-top: 10px;

        padding:
            15px 4px
            5px;

        border-top:
            1px solid
            #e8eee9;
    }


    .ul-mobile-login,
    .ul-mobile-signup,
    .ul-mobile-account-button {

        min-height: 46px;

        display: flex;

        align-items: center;
        justify-content: center;

        padding: 0 18px;

        border-radius: 999px;

        font-family:
            "Segoe UI Historic",
            "Segoe UI",
            Arial,
            sans-serif;

        font-size: 14px;
        font-weight: 800;

        text-decoration: none;

        box-sizing: border-box;
    }


    .ul-mobile-login {
        border:
            1px solid
            var(--ul-green);

        background: #ffffff;

        color:
            var(--ul-green) !important;
    }


    .ul-mobile-login:hover {
        background:
            var(--ul-green-light);
    }


    .ul-mobile-signup {
        border:
            1px solid
            var(--ul-green);

        background:
            linear-gradient(
                135deg,
                #087a31,
                #079447
            );

        color:
            #ffffff !important;
    }


    /*
     * When logged in there is only
     * one My Account button.
     */

    .ul-mobile-account-button {
        grid-column:
            1 / -1;

        border:
            1px solid
            var(--ul-green);

        background:
            linear-gradient(
                135deg,
                #087a31,
                #079447
            );

        color:
            #ffffff !important;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 760px) {

    .ul-container {
        width: min(
            calc(100% - 28px),
            1180px
        );
    }


    .ul-logo img {
        width: 165px;
    }


    .ul-footer-grid {
        grid-template-columns:
            1fr 1fr;
    }


    .ul-footer-brand {
        grid-column:
            1 / -1;
    }


    .ul-footer-bottom {
        flex-direction: column;
    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

    .ul-logo img {
        width: 150px;
    }


    .ul-menu-toggle {
        width: 42px;
        height: 42px;
    }


    .ul-mobile-account {
        grid-template-columns:
            1fr;
    }


    .ul-mobile-account-button {
        grid-column: auto;
    }


    .ul-footer-grid {
        grid-template-columns:
            1fr;
    }


    .ul-footer-brand {
        grid-column: auto;
    }

}

/* =========================================================
   WORDPRESS / MOBILE SAFETY FIX
========================================================= */

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.ul-header,
.ul-header * {
    box-sizing: border-box;
}

.ul-header {
    width: 100%;
    max-width: 100vw;
}

.ul-header-inner {
    width: min(1180px, calc(100% - 40px));
    max-width: 100%;
}

.ul-logo {
    min-width: 0;
}

.ul-logo img {
    height: auto;
}


/* =========================================================
   MOBILE NAVIGATION
========================================================= */

@media (max-width: 1050px) {

    .ul-header-inner {
        width: 100%;
        max-width: 100%;
        min-height: 70px;

        padding:
            9px 18px;

        display: flex;
        flex-wrap: wrap;
        align-items: center;

        position: relative;
    }


    /*
     * Logo
     */

    .ul-logo {
        flex:
            1 1 auto;

        min-width: 0;
        max-width:
            calc(100% - 60px);
    }

    .ul-logo img {
        display: block;

        width: auto;
        max-width: 175px;
        max-height: 48px;
    }


    /*
     * Desktop buttons disappear
     */

    .ul-header-actions {
        display: none !important;
    }


    /*
     * Hamburger
     */

    .ul-menu-toggle {
        display: flex !important;

        flex:
            0 0 44px;

        width: 44px;
        height: 44px;

        margin-left: auto;

        position: relative;
        z-index: 1003;
    }


    /*
     * Mobile navigation
     */

    .ul-nav {
        display: none;

        flex:
            0 0 100%;

        order: 20;

        width: 100%;
        max-width: 100%;

        margin: 9px 0 0;
        padding: 10px 0 7px;

        overflow: visible;

        border-top:
            1px solid #edf1ee;
    }


    .ul-nav.open {
        display: flex !important;

        flex-direction: column;
        align-items: stretch;
    }


    /*
     * Main links
     */

    .ul-nav > a,
    .ul-nav-dropdown,
    .ul-nav-dropdown-toggle {

        width: 100%;
        max-width: 100%;

    }


    .ul-nav > a,
    .ul-nav-dropdown-toggle {

        min-height: 48px;

        padding:
            0 5px;

        display: flex;
        align-items: center;

        white-space: normal;
    }


    /*
     * Dropdown
     */

    .ul-dropdown-menu {

        position: static;

        width: 100%;
        max-width: 100%;

        margin: 0 0 7px;

        box-shadow: none;

    }


    .ul-dropdown-menu a {

        width: 100%;
        max-width: 100%;

        white-space: normal;

        overflow-wrap:
            anywhere;

    }


    /*
     * Mobile account buttons
     */

    .ul-mobile-account {

        width: 100%;
        max-width: 100%;

        box-sizing:
            border-box;

    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 600px) {

    .ul-header-inner {

        padding-left: 14px;
        padding-right: 14px;

    }

    .ul-logo {

        max-width:
            calc(100% - 54px);

    }

    .ul-logo img {

        max-width: 160px;

    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .ul-logo img {

        max-width: 145px;

    }

}

/* =========================================================
   SHARED PUBLIC HEADER — FINAL UNIFORM LAYOUT
   Used by WordPress + /app/ + /jobs/
========================================================= */

.ul-header {
    width: 100% !important;
    background: #ffffff !important;
    border-bottom: 1px solid #e7ece9 !important;
    position: relative;
    z-index: 10000;
}

.ul-header .ul-header-inner {
    width: min(1140px, calc(100% - 40px)) !important;
    max-width: 1140px !important;
    min-height: 74px !important;

    margin: 0 auto !important;
    padding: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 28px !important;
}


/* LOGO
========================================================= */

.ul-header .ul-logo {
    display: flex !important;
    align-items: center !important;

    flex: 0 0 auto !important;

    margin: 0 !important;
    padding: 0 !important;

    text-decoration: none !important;
}

.ul-header .ul-logo img {
    display: block !important;

    width: auto !important;
    height: auto !important;

    max-width: 195px !important;
    max-height: 48px !important;

    margin: 0 !important;
    padding: 0 !important;
}


/* DESKTOP NAVIGATION
========================================================= */

.ul-header .ul-nav {
    display: flex !important;
    align-items: center !important;

    margin: 0 0 0 auto !important;
    padding: 0 !important;

    gap: 27px !important;

    width: auto !important;
    max-width: none !important;
}

.ul-header .ul-nav > a,
.ul-header .ul-nav-dropdown-toggle {
    display: inline-flex !important;
    align-items: center !important;

    min-height: 74px !important;

    margin: 0 !important;
    padding: 0 !important;

    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1 !important;

    white-space: nowrap !important;

    color: #111111 !important;
    text-decoration: none !important;
}

.ul-header .ul-nav > a:hover,
.ul-header .ul-nav > a.active,
.ul-header .ul-nav-dropdown-toggle:hover,
.ul-header .ul-nav-dropdown.active > .ul-nav-dropdown-toggle {
    color: #008f44 !important;
}


/* DROPDOWN WRAPPER
========================================================= */

.ul-header .ul-nav-dropdown {
    position: relative !important;

    display: flex !important;
    align-items: center !important;

    margin: 0 !important;
    padding: 0 !important;
}


/* ACCOUNT BUTTONS
========================================================= */

.ul-header .ul-header-actions {
    display: flex !important;
    align-items: center !important;

    flex: 0 0 auto !important;

    gap: 10px !important;

    margin: 0 !important;
    padding: 0 !important;
}

.ul-header .ul-login-btn,
.ul-header .ul-signup-btn,
.ul-header .ul-account-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    min-height: 44px !important;

    padding: 0 22px !important;
    margin: 0 !important;

    border-radius: 999px !important;

    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1 !important;

    white-space: nowrap !important;
    text-decoration: none !important;
}


/* LOGIN */

.ul-header .ul-login-btn {
    background: #ffffff !important;
    color: #008f44 !important;

    border: 1.5px solid #008f44 !important;
}


/* SIGN UP */

.ul-header .ul-signup-btn,
.ul-header .ul-account-btn {
    background: #008f44 !important;
    color: #ffffff !important;

    border: 1.5px solid #008f44 !important;
}


/* =========================================================
   DESKTOP ONLY
========================================================= */

@media (min-width: 1051px) {

    .ul-header .ul-menu-toggle {
        display: none !important;
    }

    .ul-header .ul-mobile-account {
        display: none !important;
    }

}


/* =========================================================
   MOBILE / TABLET
========================================================= */

@media (max-width: 1050px) {

    .ul-header .ul-header-inner {
        width: 100% !important;
        max-width: 100% !important;

        min-height: 70px !important;

        padding: 9px 16px !important;

        display: flex !important;
        flex-wrap: wrap !important;

        gap: 0 !important;
    }


    /* LOGO */

    .ul-header .ul-logo {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        max-width: calc(100% - 55px) !important;
    }

    .ul-header .ul-logo img {
        max-width: 170px !important;
        max-height: 48px !important;
    }


    /* HIDE DESKTOP ACCOUNT */

    .ul-header .ul-header-actions {
        display: none !important;
    }


    /* HAMBURGER */

    .ul-header .ul-menu-toggle {
        display: flex !important;

        flex: 0 0 44px !important;

        width: 44px !important;
        height: 44px !important;

        margin-left: auto !important;
        padding: 8px !important;

        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;

        border: 0 !important;
        background: transparent !important;

        cursor: pointer !important;
        position: relative !important;

        z-index: 10002 !important;
    }

    .ul-header .ul-menu-toggle span:not(.screen-reader-text) {
        display: block !important;

        width: 25px !important;
        height: 2px !important;

        margin: 3px 0 !important;

        background: #123e2e !important;
    }


    /* MOBILE NAV */

    .ul-header .ul-nav {
        display: none !important;

        flex: 0 0 100% !important;
        order: 20 !important;

        width: 100% !important;
        max-width: 100% !important;

        margin: 9px 0 0 !important;
        padding: 10px 0 12px !important;

        gap: 0 !important;

        border-top: 1px solid #edf1ee !important;
        background: #ffffff !important;
    }

    .ul-header .ul-nav.open {
        display: flex !important;

        flex-direction: column !important;
        align-items: stretch !important;
    }

    .ul-header .ul-nav > a,
    .ul-header .ul-nav-dropdown-toggle {
        width: 100% !important;

        min-height: 48px !important;

        padding: 0 5px !important;

        font-size: 15px !important;
    }

    .ul-header .ul-nav-dropdown {
        display: block !important;
        width: 100% !important;
    }


    /* MOBILE ACCOUNT */

    .ul-header .ul-mobile-account {
        display: grid !important;

        width: 100% !important;

        gap: 8px !important;
        margin-top: 10px !important;
    }

}