/* =========================================================
   LIFE GROWTH DIGITAL - HEADER V2
   Full-screen menu, smart sticky header, micro-interactions
   All classes are prefixed lgh- so nothing clashes with styles.css
   ========================================================= */

:root {
    --lgh-ink: #1A1A1A;
    --lgh-muted: #6B7280;
    --lgh-line: rgba(26, 26, 26, 0.08);
    --lgh-teal: #1ABC9C;
    --lgh-navy: #2C3E50;
    --lgh-grad: linear-gradient(135deg, #1ABC9C 0%, #2C3E50 100%);
    --lgh-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --lgh-h: 84px;
    --lgh-h-small: 66px;
}

.lgh, .lgh *, .lgh-overlay, .lgh-overlay * { box-sizing: border-box; }

/* ---------- Bar ---------- */
.lgh {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--lgh-h);
    background: rgba(255, 255, 255, 0.96);
    transition: height .5s var(--lgh-ease), transform .5s var(--lgh-ease),
                box-shadow .4s ease, background .4s ease;
    will-change: transform;
}
.lgh.is-scrolled {
    height: var(--lgh-h-small);
    background: rgba(255, 255, 255, 0.82);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    backdrop-filter: saturate(180%) blur(18px);
    box-shadow: 0 1px 0 var(--lgh-line), 0 10px 30px rgba(17, 24, 39, 0.05);
}
.lgh.is-hidden { transform: translateY(-100%); }
.lgh.menu-open {
    background: #fff;
    box-shadow: none;
    transform: none;
}

.lgh-inner {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* ---------- Logo ---------- */
.lgh-logo { display: inline-flex; align-items: center; position: relative; z-index: 2; }
.lgh-logo img {
    height: 40px; width: auto; display: block;
    transition: height .5s var(--lgh-ease), transform .4s var(--lgh-ease);
}
.lgh.is-scrolled .lgh-logo img { height: 34px; }
.lgh-logo:hover img { transform: translateY(-1px); }

/* ---------- Right side ---------- */
.lgh-actions { display: flex; align-items: center; gap: 14px; position: relative; z-index: 2; }

/* Start a Project pill */
.lgh-cta {
    position: relative;
    display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 20px 12px 22px;
    border-radius: 999px;
    background: var(--lgh-ink);
    color: #fff;
    font-family: inherit; font-size: 14px; font-weight: 600; letter-spacing: .01em;
    text-decoration: none;
    overflow: hidden;
    isolation: isolate;
    transition: transform .35s var(--lgh-ease), box-shadow .35s ease;
}
.lgh-cta::before {
    content: "";
    position: absolute; inset: 0;
    background: var(--lgh-grad);
    border-radius: inherit;
    transform: translateY(101%);
    transition: transform .5s var(--lgh-ease);
    z-index: -1;
}
.lgh-cta:hover::before, .lgh-cta:focus-visible::before { transform: translateY(0); }
.lgh-cta:hover { box-shadow: 0 10px 28px rgba(26, 188, 156, 0.28); }
.lgh-cta-arrow {
    display: inline-flex; width: 18px; height: 18px; overflow: hidden; position: relative;
}
.lgh-cta-arrow svg {
    position: absolute; inset: 0; width: 18px; height: 18px;
    transition: transform .45s var(--lgh-ease);
}
.lgh-cta-arrow svg + svg { transform: translateX(-120%); }
.lgh-cta:hover .lgh-cta-arrow svg:first-child { transform: translateX(120%); }
.lgh-cta:hover .lgh-cta-arrow svg + svg { transform: translateX(0); }

/* Menu button */
.lgh-menu-btn {
    display: inline-flex; align-items: center; gap: 12px;
    height: 46px;
    padding: 0 18px 0 20px;
    border: 1px solid var(--lgh-line);
    border-radius: 999px;
    background: #fff;
    color: var(--lgh-ink);
    font-family: inherit; font-size: 14px; font-weight: 600;
    cursor: pointer;
    transition: border-color .3s ease, transform .35s var(--lgh-ease), background .3s ease;
}
.lgh-menu-btn:hover { border-color: rgba(26, 26, 26, 0.22); }
.lgh-menu-btn:focus-visible, .lgh-cta:focus-visible, .lgh-link:focus-visible {
    outline: 2px solid var(--lgh-teal); outline-offset: 3px;
}
.lgh-menu-label { position: relative; display: inline-block; height: 20px; overflow: hidden; line-height: 20px; }
.lgh-menu-label span { display: block; transition: transform .5s var(--lgh-ease); }
.lgh.menu-open .lgh-menu-label span { transform: translateY(-100%); }
.lgh-burger { position: relative; width: 20px; height: 12px; }
.lgh-burger i {
    position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px;
    background: currentColor;
    transition: transform .5s var(--lgh-ease), top .5s var(--lgh-ease), width .4s var(--lgh-ease);
}
.lgh-burger i:nth-child(1) { top: 0; }
.lgh-burger i:nth-child(2) { top: 10px; width: 65%; left: auto; }
.lgh-menu-btn:hover .lgh-burger i:nth-child(2) { width: 100%; }
.lgh.menu-open .lgh-burger i:nth-child(1) { top: 5px; transform: rotate(45deg); }
.lgh.menu-open .lgh-burger i:nth-child(2) { top: 5px; width: 100%; transform: rotate(-45deg); }

/* Scroll progress line */
.lgh-progress {
    position: absolute; left: 0; bottom: 0;
    height: 2px; width: 100%;
    background: var(--lgh-grad);
    transform-origin: 0 50%;
    transform: scaleX(0);
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}
.lgh.is-scrolled .lgh-progress { opacity: 1; }
.lgh.menu-open .lgh-progress { opacity: 0; }

/* ---------- Full-screen overlay ---------- */
.lgh-overlay {
    position: fixed; inset: 0;
    z-index: 999;
    background: #fff;
    display: flex; flex-direction: column;
    padding: calc(var(--lgh-h) + 24px) 0 32px;
    visibility: hidden;
    clip-path: inset(0 0 100% 0);
    transition: clip-path .75s var(--lgh-ease), visibility 0s linear .75s;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.lgh-overlay.is-open {
    visibility: visible;
    clip-path: inset(0 0 0 0);
    transition: clip-path .75s var(--lgh-ease), visibility 0s;
}
.lgh-overlay-inner {
    flex: 1;
    width: 100%; max-width: 1200px;
    margin: 0 auto; padding: 0 24px;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 64px;
    align-items: center;
}

/* Links */
.lgh-links { list-style: none; margin: 0; padding: 0; }
.lgh-links li { overflow: hidden; }
.lgh-link {
    display: flex; align-items: baseline; gap: 18px;
    padding: 4px 0;
    color: var(--lgh-ink);
    text-decoration: none;
    font-size: clamp(36px, 5.4vw, 72px);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.06;
    transform: translateY(105%);
    transition: transform .8s var(--lgh-ease), opacity .35s ease, color .35s ease;
}
.lgh-overlay.is-open .lgh-link { transform: translateY(0); }
.lgh-links li:nth-child(1) .lgh-link { transition-delay: .12s, 0s, 0s; }
.lgh-links li:nth-child(2) .lgh-link { transition-delay: .17s, 0s, 0s; }
.lgh-links li:nth-child(3) .lgh-link { transition-delay: .22s, 0s, 0s; }
.lgh-links li:nth-child(4) .lgh-link { transition-delay: .27s, 0s, 0s; }
.lgh-links li:nth-child(5) .lgh-link { transition-delay: .32s, 0s, 0s; }
.lgh-links li:nth-child(6) .lgh-link { transition-delay: .37s, 0s, 0s; }
.lgh-links li:nth-child(7) .lgh-link { transition-delay: .42s, 0s, 0s; }
.lgh-overlay:not(.is-open) .lgh-link { transition-delay: 0s; transition-duration: .4s; }

.lgh-num {
    font-size: 13px; font-weight: 600; letter-spacing: .04em;
    color: var(--lgh-muted);
    min-width: 26px;
    transform: translateY(-0.9em);
}
.lgh-text { position: relative; display: inline-block; transition: transform .5s var(--lgh-ease); }
.lgh-text::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: .06em;
    height: .07em; border-radius: 1em;
    background: var(--lgh-grad);
    transform: scaleX(0); transform-origin: 0 50%;
    transition: transform .55s var(--lgh-ease);
}
.lgh-links:hover .lgh-link { opacity: .28; }
.lgh-links .lgh-link:hover, .lgh-links .lgh-link:focus-visible { opacity: 1; }
.lgh-link:hover .lgh-text { transform: translateX(14px); }
.lgh-link:hover .lgh-text::after, .lgh-link.is-active .lgh-text::after { transform: scaleX(1); }
.lgh-link.is-active .lgh-num { color: var(--lgh-teal); }

/* Recent work reel */
.lgh-preview {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    max-height: 60vh;
    border-radius: 22px;
    overflow: hidden;
    background: #0F1720;
    color: #fff;
    text-decoration: none;
    opacity: 0;
    transform: translateY(30px) scale(.97);
    transition: opacity .7s ease .25s, transform .9s var(--lgh-ease) .25s;
}
.lgh-overlay.is-open .lgh-preview { opacity: 1; transform: none; }
.lgh-slide {
    position: absolute; inset: 0; margin: 0;
    opacity: 0;
    transition: opacity .7s ease;
}
.lgh-slide.is-current { opacity: 1; z-index: 1; }
.lgh-slide > img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transform: scale(1.12);
    transition: transform calc(var(--lgh-reel-dur, 3s) + 1s) linear;
}
.lgh-slide.is-current > img { transform: scale(1.02); }
.lgh-slide::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(10, 15, 20, .45) 0%, rgba(10, 15, 20, 0) 28%,
                rgba(10, 15, 20, 0) 50%, rgba(10, 15, 20, .78) 100%);
}
.lgh-slide figcaption {
    position: absolute; left: 22px; right: 22px; bottom: 54px; z-index: 2;
    display: flex; flex-direction: column; gap: 2px;
    font-size: 14px; line-height: 1.35; color: rgba(255, 255, 255, .82);
    transform: translateY(10px); opacity: 0;
    transition: transform .7s var(--lgh-ease) .15s, opacity .5s ease .15s;
}
.lgh-slide.is-current figcaption { transform: none; opacity: 1; }
.lgh-slide figcaption strong { color: #fff; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.lgh-tag {
    align-self: flex-start;
    margin-bottom: 8px;
    padding: 4px 10px; border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #fff;
}

/* Intro slide: Life Growth branded */
.lgh-intro {
    background:
        radial-gradient(120% 90% at 100% 0%, rgba(26, 188, 156, .22) 0%, rgba(26, 188, 156, 0) 55%),
        linear-gradient(160deg, #F4FBF9 0%, #FFFFFF 60%);
    color: var(--lgh-ink);
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 30px 28px 58px;
}
.lgh-intro::after { display: none; }
.lgh-intro-logo { width: auto !important; height: 46px !important; object-fit: contain; align-self: flex-start; transform: none !important; }
.lgh-intro-copy { display: flex; flex-direction: column; gap: 8px; }
.lgh-intro-copy strong {
    font-size: clamp(26px, 2.6vw, 36px); line-height: 1.08; font-weight: 800; letter-spacing: -0.03em;
    background: var(--lgh-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lgh-intro-copy span:last-child { color: var(--lgh-muted); font-size: 15px; }
.lgh-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--lgh-teal); }

/* Story-style progress bars, counter and link */
.lgh-reel-bars {
    position: absolute; top: 14px; left: 16px; right: 16px; z-index: 3;
    display: flex; gap: 5px;
}
.lgh-reel-bars i {
    flex: 1; height: 3px; border-radius: 3px; overflow: hidden;
    background: rgba(255, 255, 255, .35);
}
.lgh-reel-bars b {
    display: block; height: 100%; width: 100%; background: #fff;
    transform: scaleX(0); transform-origin: 0 50%;
}
.lgh-reel-bars i.is-done b { transform: scaleX(1); }
.lgh-reel-bars i.is-run b { animation: lgh-fill var(--lgh-reel-dur, 3s) linear forwards; }
.lgh-preview.is-paused .lgh-reel-bars b,
.lgh-preview.is-stopped .lgh-reel-bars b { animation-play-state: paused; }
@keyframes lgh-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
/* On the light intro slide, show the bars in teal */
.lgh-preview:has(.lgh-intro.is-current) .lgh-reel-bars i { background: rgba(26, 26, 26, .1); }
.lgh-preview:has(.lgh-intro.is-current) .lgh-reel-bars b { background: var(--lgh-teal); }
.lgh-reel-count {
    position: absolute; top: 28px; right: 18px; z-index: 3;
    font-size: 12px; font-weight: 600; letter-spacing: .06em; color: rgba(255, 255, 255, .85);
}
.lgh-preview:has(.lgh-intro.is-current) .lgh-reel-count { color: var(--lgh-muted); }
.lgh-reel-more {
    position: absolute; left: 22px; bottom: 18px; z-index: 3;
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 600; color: #fff;
}
.lgh-reel-more svg { width: 16px; height: 16px; transition: transform .4s var(--lgh-ease); }
.lgh-preview:hover .lgh-reel-more svg { transform: translateX(4px); }
.lgh-preview:has(.lgh-intro.is-current) .lgh-reel-more { color: var(--lgh-ink); }

/* Footer row of the overlay */
.lgh-overlay-foot {
    width: 100%; max-width: 1200px;
    margin: 40px auto 0; padding: 22px 24px 0;
    border-top: 1px solid var(--lgh-line);
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
    color: var(--lgh-muted); font-size: 14px;
    opacity: 0; transform: translateY(14px);
    transition: opacity .5s ease, transform .7s var(--lgh-ease);
}
.lgh-overlay.is-open .lgh-overlay-foot { opacity: 1; transform: none; transition-delay: .45s; }
.lgh-overlay-foot a { color: var(--lgh-ink); font-weight: 600; text-decoration: none; }
.lgh-overlay-foot a:hover { color: var(--lgh-teal); }
.lgh-foot-group { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; }
.lgh-foot-label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 2px; }

/* Lock page scroll while menu is open */
html.lgh-lock, html.lgh-lock body { overflow: hidden; }

/* ---------- Tablet & mobile ---------- */
@media (max-width: 900px) {
    .lgh-overlay-inner { grid-template-columns: 1fr; gap: 32px; align-items: start; }
    .lgh-preview { display: none; }
    .lgh-links:hover .lgh-link { opacity: 1; }
    .lgh-link:hover .lgh-text { transform: none; }
}
@media (max-width: 640px) {
    :root { --lgh-h: 72px; --lgh-h-small: 62px; }
    .lgh-inner, .lgh-overlay-inner { padding: 0 20px; }
    .lgh-logo img { height: 34px; }
    .lgh.is-scrolled .lgh-logo img { height: 30px; }
    .lgh-cta { display: none; }
    .lgh-menu-btn { height: 42px; padding: 0 14px 0 16px; }
    .lgh-link { font-size: clamp(34px, 10.5vw, 48px); gap: 12px; }
    .lgh-num { min-width: 22px; font-size: 12px; }
    .lgh-overlay { padding-top: calc(var(--lgh-h) + 12px); }
    .lgh-overlay-foot { margin-top: 28px; padding: 20px 20px 0; flex-direction: column; align-items: stretch; }
    .lgh-overlay-foot .lgh-foot-cta {
        display: flex; justify-content: center;
        padding: 15px 20px; border-radius: 999px;
        background: var(--lgh-grad); color: #fff;
    }
    .lgh-overlay-foot .lgh-foot-cta:hover { color: #fff; }
}
