/* =========================================================
   Liko Hamburger Header Widget — Stylesheet
   ========================================================= */

/* ── RESET & BASE ─────────────────────────────────────────── */
.lhh-widget-wrap *,
.lhh-widget-wrap *::before,
.lhh-widget-wrap *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.lhh-widget-wrap {
    position: relative;
    width: 100%;
}

/* ── HEADER BAR ───────────────────────────────────────────── */
.lhh-header-bar {
    width: 100%;
    z-index: 1000;
    transition: background-color 0.35s ease,
                box-shadow 0.35s ease,
                padding 0.35s ease,
                transform 0.35s ease;
    will-change: transform;
}

/* Position Variants */
.lhh-header-bar.lhh-position-static {
    position: relative;
}

.lhh-header-bar.lhh-position-sticky {
    position: sticky;
    top: 0;
}

.lhh-header-bar.lhh-position-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

/* Scrolled state */
.lhh-header-bar.lhh-scrolled {
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.10);
}

/* Shrink on scroll */
.lhh-header-bar.lhh-shrunk .lhh-header-inner {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}
.lhh-header-bar.lhh-shrunk .lhh-logo-img img {
    transform: scale(0.85);
}

/* Hide on scroll down / show on scroll up */
.lhh-header-bar.lhh-hidden-by-scroll {
    transform: translateY(-110%);
}

/* ── HEADER INNER ─────────────────────────────────────────── */
.lhh-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 28px;
    width: 100%;
}

/* ── LOGO ─────────────────────────────────────────────────── */
.lhh-logo {
    flex-shrink: 0;
}

.lhh-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.lhh-logo-img img {
    display: block;
    height: auto;
    transition: transform 0.35s ease, opacity 0.3s ease;
}

.lhh-logo-text-wrap {
    display: flex;
    flex-direction: column;
}

.lhh-logo-text {
    display: block;
    font-size: 28px;
    font-weight: 800;
    font-style: italic;
    color: #111111;
    letter-spacing: -0.5px;
    line-height: 1;
    transition: color 0.3s ease;
}

.lhh-logo-tagline {
    display: block;
    font-size: 11px;
    color: #888888;
    margin-top: 3px;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

/* Logo Hover Animations */
.lhh-logo-hover-scale .lhh-logo-link:hover {
    transform: scale(1.05);
}

.lhh-logo-hover-lift .lhh-logo-link:hover {
    transform: translateY(-3px);
}

.lhh-logo-hover-glow .lhh-logo-link:hover {
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.25));
}

/* ── HAMBURGER BUTTON ─────────────────────────────────────── */
.lhh-hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    padding: 0;
    flex-shrink: 0;
    transition: background-color 0.25s ease, transform 0.2s ease;
    position: relative;
    z-index: 1100;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.lhh-hamburger:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* ── BARS (Classic / Cross / Squeeze / Arrow) ─────────────── */
.lhh-ham-bars {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    pointer-events: none;
}

.lhh-ham-bar {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #111111;
    border-radius: 2px;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
                opacity   0.3s ease,
                width     0.3s ease;
    transform-origin: center;
}

/* Cross style — bars morph into X */
.lhh-ham-style-cross.is-active .lhh-bar-1 {
    transform: translateY(7px) rotate(45deg);
}
.lhh-ham-style-cross.is-active .lhh-bar-2 {
    opacity: 0;
    transform: scaleX(0);
}
.lhh-ham-style-cross.is-active .lhh-bar-3 {
    transform: translateY(-7px) rotate(-45deg);
}

/* Squeeze style */
.lhh-ham-style-squeeze .lhh-ham-bar {
    transition: transform 0.35s cubic-bezier(0.55, 0.055, 0.675, 0.19),
                opacity 0.2s ease;
}
.lhh-ham-style-squeeze.is-active .lhh-bar-1 {
    transform: translateY(7px) rotate(45deg);
    transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
}
.lhh-ham-style-squeeze.is-active .lhh-bar-2 {
    opacity: 0;
}
.lhh-ham-style-squeeze.is-active .lhh-bar-3 {
    transform: translateY(-7px) rotate(-45deg);
    transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
}

/* Arrow style — top/bottom bars shorten and rotate to make arrow */
.lhh-ham-style-arrow .lhh-ham-bar {
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
                width     0.3s ease;
}
.lhh-ham-style-arrow.is-active .lhh-bar-1 {
    transform: translateX(-4px) translateY(3px) rotate(-40deg);
    width: 14px;
}
.lhh-ham-style-arrow.is-active .lhh-bar-3 {
    transform: translateX(-4px) translateY(-3px) rotate(40deg);
    width: 14px;
}

/* Bars style — simple scale */
.lhh-ham-style-bars.is-active .lhh-bar-1 {
    transform: translateY(7px) rotate(45deg);
}
.lhh-ham-style-bars.is-active .lhh-bar-2 {
    opacity: 0;
}
.lhh-ham-style-bars.is-active .lhh-bar-3 {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── DOTS style ───────────────────────────────────────────── */
.lhh-ham-dots {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    pointer-events: none;
}

.lhh-ham-dot {
    display: block;
    width: 5px;
    height: 5px;
    background-color: #111111;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1),
                opacity   0.3s ease;
}

.lhh-ham-style-dots.is-active .lhh-ham-dot:nth-child(1) {
    transform: translateY(10px) scale(0.6);
    opacity: 0;
}
.lhh-ham-style-dots.is-active .lhh-ham-dot:nth-child(2) {
    transform: rotate(90deg) scale(1.3);
}
.lhh-ham-style-dots.is-active .lhh-ham-dot:nth-child(3) {
    transform: translateY(-10px) scale(0.6);
    opacity: 0;
}

/* ── OVERLAY ──────────────────────────────────────────────── */
.lhh-overlay {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    cursor: pointer;
}

.lhh-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

/* ── MENU PANEL BASE ──────────────────────────────────────── */
.lhh-menu-panel {
    background-color: #111111;
    z-index: 1060;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    visibility: hidden;
}

/* ─── SLIDE DOWN (dropdown below header) ──────────────────── */
.lhh-menu-panel.lhh-dir-slide-down {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 80vh;
    border-radius: 0 0 16px 16px;
    transform: translateY(-20px);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                opacity   0.35s ease,
                visibility 0s linear 0.45s;
}

.lhh-menu-panel.lhh-dir-slide-down.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                opacity   0.35s ease,
                visibility 0s linear 0s;
}

/* ─── FADE DROP ───────────────────────────────────────────── */
.lhh-menu-panel.lhh-dir-fade-drop {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    width: 100%;
    max-height: 80vh;
    border-radius: 16px;
    transform: translateY(-12px) scale(0.97);
    opacity: 0;
    transform-origin: top center;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                opacity   0.3s ease,
                visibility 0s linear 0.4s;
}

.lhh-menu-panel.lhh-dir-fade-drop.is-open {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                opacity   0.3s ease,
                visibility 0s linear 0s;
}

/* ─── SLIDE RIGHT (side drawer from right) ────────────────── */
.lhh-menu-panel.lhh-dir-slide-right {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 320px;
    max-height: 100vh;
    border-radius: 16px 0 0 16px;
    transform: translateX(100%);
    transition: transform 0.48s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0s linear 0.48s;
}

.lhh-menu-panel.lhh-dir-slide-right.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.48s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0s linear 0s;
}

/* ─── SLIDE LEFT (side drawer from left) ──────────────────── */
.lhh-menu-panel.lhh-dir-slide-left {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 320px;
    max-height: 100vh;
    border-radius: 0 16px 16px 0;
    transform: translateX(-100%);
    transition: transform 0.48s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0s linear 0.48s;
}

.lhh-menu-panel.lhh-dir-slide-left.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.48s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0s linear 0s;
}

/* ── PANEL INNER ──────────────────────────────────────────── */
.lhh-panel-inner {
    padding: 40px;
}

/* ── PANEL CLOSE BUTTON (side panels) ────────────────────── */
.lhh-panel-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.08);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.lhh-panel-close:hover {
    background: rgba(255,255,255,0.16);
    transform: rotate(90deg);
}

.lhh-close-icon {
    position: relative;
    width: 16px;
    height: 16px;
}

.lhh-close-icon span {
    position: absolute;
    top: 50%;
    left: 0;
    display: block;
    width: 100%;
    height: 1.5px;
    background-color: #ffffff;
    border-radius: 2px;
}

.lhh-close-icon span:first-child {
    transform: rotate(45deg);
}

.lhh-close-icon span:last-child {
    transform: rotate(-45deg);
}

/* ── NAV LIST BASE ────────────────────────────────────────── */
.lhh-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lhh-nav-list li {
    position: relative;
    overflow: hidden;
}

.lhh-nav-list li a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 14px 0;
    position: relative;
    transition: color 0.3s ease,
                background-color 0.3s ease,
                transform 0.3s ease,
                padding-left 0.3s ease;
    border-radius: 8px;
}

.lhh-item-text {
    position: relative;
    z-index: 1;
    pointer-events: none;
}

.lhh-item-line {
    position: absolute;
    bottom: 8px;
    left: 0;
    height: 1.5px;
    width: 0;
    background-color: currentColor;
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

/* ─── HOVER STYLE: UNDERLINE ──────────────────────────────── */
.lhh-hover-underline li a:hover .lhh-item-line,
.lhh-hover-underline li.current-menu-item > a .lhh-item-line {
    width: 100%;
}

/* ─── HOVER STYLE: INDENT ─────────────────────────────────── */
.lhh-hover-indent li a:hover,
.lhh-hover-indent li.current-menu-item > a {
    padding-left: 16px;
    color: #aaaaaa;
}
.lhh-hover-indent .lhh-item-line { display: none; }

/* ─── HOVER STYLE: HIGHLIGHT ──────────────────────────────── */
.lhh-hover-highlight li a {
    padding-left: 14px;
    padding-right: 14px;
    border-radius: 8px;
}
.lhh-hover-highlight li a:hover {
    background-color: rgba(255,255,255,0.08);
}
.lhh-hover-highlight .lhh-item-line { display: none; }

/* ─── HOVER STYLE: SCALE ──────────────────────────────────── */
.lhh-hover-scale li a {
    transition: color 0.3s ease, transform 0.25s ease;
}
.lhh-hover-scale li a:hover {
    transform: scale(1.04);
}
.lhh-hover-scale .lhh-item-line { display: none; }

/* ── STAGGER ITEM ENTRANCE ────────────────────────────────── */
.lhh-nav-list li {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lhh-menu-panel.is-open .lhh-nav-list li {
    opacity: 1;
    transform: translateY(0);
}

/* stagger delays */
.lhh-menu-panel.is-open .lhh-nav-list li:nth-child(1)  { transition-delay: 0.08s; }
.lhh-menu-panel.is-open .lhh-nav-list li:nth-child(2)  { transition-delay: 0.13s; }
.lhh-menu-panel.is-open .lhh-nav-list li:nth-child(3)  { transition-delay: 0.18s; }
.lhh-menu-panel.is-open .lhh-nav-list li:nth-child(4)  { transition-delay: 0.23s; }
.lhh-menu-panel.is-open .lhh-nav-list li:nth-child(5)  { transition-delay: 0.28s; }
.lhh-menu-panel.is-open .lhh-nav-list li:nth-child(6)  { transition-delay: 0.33s; }
.lhh-menu-panel.is-open .lhh-nav-list li:nth-child(7)  { transition-delay: 0.38s; }
.lhh-menu-panel.is-open .lhh-nav-list li:nth-child(8)  { transition-delay: 0.43s; }
.lhh-menu-panel.is-open .lhh-nav-list li:nth-child(9)  { transition-delay: 0.48s; }
.lhh-menu-panel.is-open .lhh-nav-list li:nth-child(10) { transition-delay: 0.53s; }

/* When stagger is disabled — instant all */
[data-stagger="no"] .lhh-nav-list li {
    transition-delay: 0.06s !important;
}

/* ── DIVIDER ──────────────────────────────────────────────── */
.lhh-nav-list li + li {
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* ── BODY LOCK when menu is open ──────────────────────────── */
body.lhh-menu-open {
    overflow: hidden;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .lhh-header-inner {
        padding: 14px 20px;
    }

    .lhh-logo-text {
        font-size: 22px;
    }

    .lhh-panel-inner {
        padding: 32px 24px;
    }

    .lhh-nav-list li a {
        font-size: 16px;
        padding: 12px 0;
    }

    .lhh-menu-panel.lhh-dir-slide-right,
    .lhh-menu-panel.lhh-dir-slide-left {
        width: 85vw;
        max-width: 340px;
    }
}

@media (max-width: 480px) {
    .lhh-header-inner {
        padding: 12px 16px;
    }

    .lhh-logo-text {
        font-size: 20px;
    }

    .lhh-panel-inner {
        padding: 28px 20px;
    }

    .lhh-nav-list li a {
        font-size: 15px;
    }
}

/* ── FIXED HEADER BODY PUSH ───────────────────────────────── */
.lhh-position-fixed ~ * {
    /* Add top margin equal to header height via JS */
}

/* ── PRINT ────────────────────────────────────────────────── */
@media print {
    .lhh-hamburger,
    .lhh-menu-panel,
    .lhh-overlay {
        display: none !important;
    }
}
