/*
 * LifeHustleAI Header — Normalized
 * Desktop: full navigation; mobile: hamburger + right drawer
 */

.lh-site-header {
    position: relative;
    z-index: 100000;
    width: 100%;
    background: rgba(255,255,255,.98);
    border-bottom: 1px solid var(--lh-border);
    box-shadow: 0 1px 4px rgba(11,30,51,.04);  /* lighter shadow */
}

.lh-header-inner {
    width: min(var(--lh-container), calc(100% - 40px));
    min-height: 72px;          /* was 88px – normalized */
    margin-inline: auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.lh-brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    text-decoration: none !important;
    line-height: 0;
}

.lh-brand-logo {
    display: block;
    width: auto !important;
    height: 52px !important;     /* was 70px – reduced to 48–54px */
    max-width: 140px !important;
    object-fit: contain;
}

.lh-desktop-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
}

.lh-nav-link,
.lh-nav-cta {
    min-height: 44px;
    padding: 10px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--lh-radius-sm);   /* 10px */
    text-decoration: none !important;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;            /* was 650 – now 500 */
    line-height: 1.2;
    transition: color .18s ease, background .18s ease, transform .18s ease;
}

.lh-nav-link {
    color: var(--lh-navy) !important;
}
.lh-nav-link:hover,
.lh-nav-link:focus-visible {
    color: var(--lh-green) !important;
    background: rgba(16,185,129,.08);
}

.lh-nav-cta {
    margin-left: 7px;
    height: 44px;               /* CTA height 44–48px */
    padding: 0 18px;
    color: var(--lh-navy) !important;   /* navy text on orange */
    background: var(--lh-orange);
    border-radius: var(--lh-radius-sm);
    font-weight: 600;
    box-shadow: 0 7px 18px rgba(245,158,11,.18);
}
.lh-nav-cta:hover {
    background: var(--lh-orange-dark);
    transform: translateY(-1px);
}

.lh-nav-login {
    border: 1px solid var(--lh-border-strong);
}

.lh-menu-toggle {
    display: none;
    margin-left: auto;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    padding: 0;
    border: 1px solid var(--lh-border);
    border-radius: var(--lh-radius-sm);
    background: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}
.lh-menu-toggle span {
    width: 21px;
    height: 2px;
    border-radius: 2px;
    background: var(--lh-navy);
    transition: transform .2s ease, opacity .2s ease;
}

/* Drawer + backdrop */
.lh-mobile-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100001;
    background: rgba(4,15,29,.58);
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s ease, visibility .22s ease;
}
.lh-mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 100002;
    width: min(390px, 92vw);
    height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    box-shadow: -18px 0 50px rgba(0,0,0,.18);
    transform: translateX(105%);
    transition: transform .24s ease;
    -webkit-overflow-scrolling: touch;
}
html.lh-menu-open,
body.lh-menu-open {
    overflow: hidden;
}
html.lh-menu-open .lh-mobile-backdrop {
    opacity: 1;
    visibility: visible;
}
html.lh-menu-open .lh-mobile-menu {
    transform: translateX(0);
}

.lh-mobile-menu-top {
    min-height: 72px;           /* was 80px */
    padding: 17px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--lh-border);
}
.lh-mobile-menu-title {
    color: var(--lh-navy);
    font-family: var(--lh-font-heading);
    font-size: 17px;
    font-weight: 700;           /* was 800 – reduced */
}
.lh-menu-close {
    position: relative;
    width: 44px;
    height: 44px;
    border: 1px solid var(--lh-border);
    border-radius: var(--lh-radius-sm);
    background: var(--lh-surface);
    cursor: pointer;
}
.lh-menu-close span {
    position: absolute;
    left: 11px;
    top: 20px;
    width: 21px;
    height: 2px;
    background: var(--lh-navy);
}
.lh-menu-close span:first-child { transform: rotate(45deg); }
.lh-menu-close span:last-child { transform: rotate(-45deg); }

.lh-mobile-nav {
    padding: 12px 16px 18px;
}
.lh-mobile-link,
.lh-mobile-cta {
    width: 100%;
    min-height: 54px;
    margin: 3px 0;
    padding: 14px;
    display: flex;
    align-items: center;
    border-radius: var(--lh-radius-sm);
    text-decoration: none !important;
    font-size: 16px;
    font-weight: 500;           /* was 650 */
    line-height: 1.3;
}
.lh-mobile-link {
    color: var(--lh-navy) !important;
}
.lh-mobile-link:hover,
.lh-mobile-link:focus-visible {
    color: var(--lh-green) !important;
    background: rgba(16,185,129,.08);
}
.lh-mobile-cta {
    margin-top: 12px;
    justify-content: center;
    color: var(--lh-navy) !important;
    background: var(--lh-orange);
    font-weight: 600;           /* was 800 */
}
.lh-mobile-auth {
    margin-top: 6px;
    color: var(--lh-blue) !important;
    border: 1px solid var(--lh-border-strong);
}
.lh-mobile-trust {
    margin: 6px 20px 24px;
    padding: 15px;
    border: 1px solid var(--lh-border);
    border-radius: var(--lh-radius-md);
    background: var(--lh-surface);
    color: var(--lh-muted);
    font-size: 12px;
    line-height: 1.55;
}
.lh-mobile-trust div + div {
    margin-top: 6px;
}
.lh-mobile-trust span {
    margin-right: 6px;
    color: var(--lh-green);
    font-weight: 600;           /* was 800 */
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .lh-header-inner {
        width: min(var(--lh-container), calc(100% - 36px));
        min-height: 68px;       /* slightly smaller on tablet */
    }
    .lh-desktop-nav {
        display: none;
    }
    .lh-menu-toggle {
        display: inline-flex;
    }
    .lh-brand-logo {
        height: 48px !important;  /* smaller on tablet */
        max-width: 120px !important;
    }
}
@media (max-width: 767px) {
    .lh-header-inner {
        width: calc(100% - 28px);
        min-height: 64px;
    }
    .lh-brand-logo {
        height: 44px !important;
        max-width: 110px !important;
    }
    .lh-menu-toggle {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }
    .lh-mobile-menu {
        width: min(370px, 94vw);
    }
    .lh-mobile-menu-top {
        min-height: 64px;
        padding-inline: 16px;
    }
}
@media (max-width: 390px) {
    .lh-header-inner {
        width: calc(100% - 22px);
    }
    .lh-mobile-menu {
        width: 100vw;
    }
    .lh-brand-logo {
        height: 40px !important;
        max-width: 100px !important;
    }
}