/* ================================================================
   LUMINA SALON — HEADER & NAVIGATION
   ================================================================ */

/* ── Header Base ── */
.ls-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--ls-header-h);
    transition: background var(--ls-dur) var(--ls-ease),
                box-shadow var(--ls-dur) var(--ls-ease),
                backdrop-filter var(--ls-dur) var(--ls-ease);
    background: transparent;
}

/* Scrolled state */
.ls-header.scrolled {
    background: rgba(10, 9, 8, 0.96);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 4px 24px rgba(0,0,0,.3);
}

/* Light variant (for light-bg pages) */
.ls-header--light { background: rgba(250, 248, 245, 0.96); }
.ls-header--light.scrolled {
    background: rgba(250, 248, 245, 0.98);
    box-shadow: 0 1px 0 var(--ls-border), 0 4px 24px rgba(0,0,0,.06);
}
.ls-header--light .ls-nav__link,
.ls-header--light .ls-header__logo-name { color: var(--ls-text-dark); }
.ls-header--light .ls-header__logo-name:hover { color: var(--ls-gold); }
.ls-header--light .ls-hamburger span { background: var(--ls-text-dark); }

.ls-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 32px;
}

/* ── Logo ── */
.ls-header__logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}
.ls-header__logo img { height: 44px; width: auto; }
.ls-header__logo-text { display: flex; flex-direction: column; }
.ls-header__logo-name {
    font-family: var(--ls-font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ls-white);
    letter-spacing: -.02em;
    line-height: 1;
    transition: color var(--ls-dur-fast);
}
.ls-header__logo-name:hover { color: var(--ls-gold); }
.ls-header__logo-tag {
    font-size: .65rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--ls-gold);
    font-weight: 500;
    margin-top: 2px;
}

/* ── Desktop Nav ── */
.ls-nav { display: flex; align-items: center; flex: 1; justify-content: center; }
.ls-nav__list {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0; padding: 0;
}
.ls-nav__item { position: relative; }
.ls-nav__link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    font-size: .88rem;
    font-weight: 500;
    letter-spacing: .02em;
    color: rgba(255,255,255,.85);
    text-decoration: none;
    border-radius: var(--ls-radius);
    transition: all var(--ls-dur-fast) var(--ls-ease);
    white-space: nowrap;
}
.ls-nav__link:hover, .ls-nav__item.is-active .ls-nav__link {
    color: var(--ls-gold);
    background: rgba(201,168,76,.08);
}
.ls-nav__arrow {
    width: 10px; height: 7px;
    flex-shrink: 0;
    transition: transform var(--ls-dur-fast);
}
.ls-nav__item.has-dropdown:hover .ls-nav__arrow { transform: rotate(180deg); }

/* Dropdown */
.ls-nav__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    background: var(--ls-dark-2);
    border: 1px solid var(--ls-border-dark);
    border-radius: var(--ls-radius);
    box-shadow: 0 16px 48px rgba(0,0,0,.4);
    list-style: none;
    margin: 0; padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--ls-dur) var(--ls-ease);
    z-index: 100;
}
.ls-nav__item.has-dropdown:hover .ls-nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.ls-nav__dropdown .ls-nav__link {
    display: block;
    padding: 10px 14px;
    color: rgba(255,255,255,.8);
    border-radius: var(--ls-radius-sm);
    font-size: .875rem;
}
.ls-nav__dropdown .ls-nav__link:hover { background: rgba(201,168,76,.1); color: var(--ls-gold); }

/* ── Header Actions ── */
.ls-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.ls-header__wa {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    color: #25d366;
    background: rgba(37,211,102,.1);
    transition: all var(--ls-dur-fast);
}
.ls-header__wa svg { width: 20px; height: 20px; }
.ls-header__wa:hover { background: rgba(37,211,102,.2); color: #25d366; }
.ls-header__book { font-size: .82rem !important; padding: 10px 22px !important; }

/* ── Hamburger ── */
.ls-hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px; height: 17px;
    background: none; border: none; cursor: pointer;
    padding: 0;
}
.ls-hamburger span {
    display: block;
    width: 100%; height: 2px;
    background: var(--ls-white);
    border-radius: 2px;
    transition: all var(--ls-dur) var(--ls-ease);
    transform-origin: left center;
}
.ls-hamburger.is-open span:nth-child(1) { transform: rotate(45deg) translate(0, -1px); width: 22px; }
.ls-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.ls-hamburger.is-open span:nth-child(3) { transform: rotate(-45deg) translate(0, 1px); width: 22px; }

/* ── Mobile Menu ── */
.ls-mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 2000;
    pointer-events: none;
}
.ls-mobile-menu.is-open { pointer-events: all; }
.ls-mobile-menu__backdrop {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.7);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity var(--ls-dur) var(--ls-ease);
}
.ls-mobile-menu.is-open .ls-mobile-menu__backdrop { opacity: 1; }

.ls-mobile-menu__panel {
    position: absolute;
    top: 0; right: 0;
    width: min(360px, 100vw);
    height: 100%;
    background: var(--ls-dark);
    display: flex; flex-direction: column;
    transform: translateX(100%);
    transition: transform var(--ls-dur-slow) var(--ls-ease-out);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 0 120px;
}
.ls-mobile-menu.is-open .ls-mobile-menu__panel { transform: translateX(0); }

.ls-mobile-menu__head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--ls-border-dark);
    flex-shrink: 0;
}
.ls-mobile-menu__logo {
    font-family: var(--ls-font-heading);
    font-size: 1.4rem; font-weight: 800;
    color: var(--ls-white); text-decoration: none;
}
.ls-mobile-menu__close {
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.06); border: none; border-radius: 50%;
    color: rgba(255,255,255,.8); cursor: pointer; transition: all var(--ls-dur-fast);
}
.ls-mobile-menu__close:hover { background: rgba(255,255,255,.12); color: var(--ls-white); }
.ls-mobile-menu__close svg { width: 18px; height: 18px; }

.ls-mobile-menu__nav { padding: 12px 12px; }
.ls-mobile-nav { list-style: none; margin: 0; padding: 0; }
.ls-mobile-nav .ls-nav__item { border-radius: var(--ls-radius); overflow: hidden; }
.ls-mobile-nav .ls-nav__link {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px;
    color: rgba(255,255,255,.85);
    font-size: 1rem; font-weight: 500;
    text-decoration: none;
    transition: all var(--ls-dur-fast);
    border-radius: var(--ls-radius);
}
.ls-mobile-nav .ls-nav__link:hover,
.ls-mobile-nav .ls-nav__item.is-active .ls-nav__link {
    background: rgba(201,168,76,.1); color: var(--ls-gold);
}
.ls-mobile-nav .ls-nav__dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; background: rgba(255,255,255,.03);
    border: none; border-radius: 0; padding: 0 0 8px 16px;
    display: none;
}
.ls-mobile-nav .ls-nav__item.has-dropdown.dropdown-open .ls-nav__dropdown { display: block; }

.ls-mobile-menu__contact {
    padding: 20px 24px;
    border-top: 1px solid var(--ls-border-dark);
}
.ls-mobile-menu__contact-link {
    display: flex; align-items: center; gap: 10px;
    color: rgba(255,255,255,.7); text-decoration: none; font-size: .9rem;
    margin-bottom: 10px;
    transition: color var(--ls-dur-fast);
}
.ls-mobile-menu__contact-link svg { width: 16px; height: 16px; flex-shrink: 0; fill: var(--ls-gold); }
.ls-mobile-menu__contact-link:hover { color: var(--ls-gold); }
.ls-mobile-menu__hours {
    font-size: .85rem; color: rgba(255,255,255,.5);
    margin-top: 8px; line-height: 1.6;
}
.ls-mobile-menu__cta { padding: 0 24px 20px; }
.ls-mobile-menu__social {
    display: flex; gap: 12px; padding: 0 24px;
}
.ls-mobile-menu__social-link {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.06);
    border-radius: 50%; color: rgba(255,255,255,.7);
    transition: all var(--ls-dur-fast);
}
.ls-mobile-menu__social-link svg { width: 18px; height: 18px; }
.ls-mobile-menu__social-link:hover { background: var(--ls-gold); color: var(--ls-black); }

/* ── Mobile Bottom Nav (app style) ── */
.ls-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 999;
    background: rgba(10,9,8,.97);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 8px 0 max(env(safe-area-inset-bottom), 8px);
    box-shadow: 0 -4px 24px rgba(0,0,0,.3);
}
.ls-bottom-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}
.ls-bottom-nav__item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px;
    padding: 6px 4px;
    color: rgba(255,255,255,.45);
    text-decoration: none;
    font-size: .65rem; font-weight: 500;
    letter-spacing: .02em;
    transition: color var(--ls-dur-fast);
    -webkit-tap-highlight-color: transparent;
}
.ls-bottom-nav__item svg { width: 22px; height: 22px; flex-shrink: 0; }
.ls-bottom-nav__item.is-active,
.ls-bottom-nav__item:hover { color: var(--ls-gold); }
.ls-bottom-nav__item--book { color: transparent; }
.ls-bottom-nav__book-btn {
    width: 52px; height: 52px;
    background: var(--ls-grad-gold);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(201,168,76,.4);
    margin-bottom: 0;
    transition: transform var(--ls-dur-fast) var(--ls-spring), box-shadow var(--ls-dur-fast);
    margin-top: -12px;
}
.ls-bottom-nav__book-btn svg { width: 24px; height: 24px; color: var(--ls-black); }
.ls-bottom-nav__item--book:hover .ls-bottom-nav__book-btn {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(201,168,76,.5);
}
.ls-bottom-nav__item--book span { color: rgba(255,255,255,.5); font-size: .65rem; margin-top: -2px; }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .ls-nav { display: none; }
    .ls-hamburger { display: flex; }
    .ls-header__book { display: none; }
    .ls-header__wa { display: none; }
}

@media (max-width: 768px) {
    .ls-header { height: var(--ls-header-h-mob); }
    .ls-bottom-nav { display: grid; }
    /* Ensure body has padding for bottom nav */
    body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
}

/* ── Page offset for fixed header ── */
.ls-main { padding-top: var(--ls-header-h); }
.ls-main--no-offset { padding-top: 0; }
@media (max-width: 768px) {
    .ls-main { padding-top: var(--ls-header-h-mob); }
}
/* Pages with hero that overlaps header */
.ls-main--hero-overlap { padding-top: 0; }

/* ── Account icon ── */
.ls-header__account {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    color: rgba(255,255,255,.75);
    background: rgba(255,255,255,.06);
    transition: all var(--ls-dur-fast);
    text-decoration: none;
}
.ls-header__account:hover { background: rgba(255,255,255,.12); color: var(--ls-gold); }
.ls-header__account--in { background: rgba(201,168,76,.15); }
.ls-header__account--in:hover { background: rgba(201,168,76,.25); }
.ls-header__avatar {
    width: 28px; height: 28px; border-radius: 50%;
    background: linear-gradient(135deg, #c9a84c, #e8c97a);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--ls-font-heading);
    font-size: .75rem; font-weight: 900; color: var(--ls-black);
}

/* ── Cart icon ── */
.ls-header__cart {
    position: relative;
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    color: rgba(255,255,255,.75);
    background: rgba(255,255,255,.06);
    transition: all var(--ls-dur-fast);
    text-decoration: none;
}
.ls-header__cart:hover { background: rgba(255,255,255,.12); color: var(--ls-gold); }
.ls-header__cart-count {
    position: absolute; top: -4px; right: -4px;
    width: 18px; height: 18px;
    background: var(--ls-gold);
    color: var(--ls-black);
    border-radius: 50%;
    font-size: .6rem; font-weight: 900;
    display: flex; align-items: center; justify-content: center;
}

/* ── PRELOADER ── */
.ls-preloader {
    position: fixed; inset: 0; z-index: 99999;
    background: #0a0908;
    display: flex; align-items: center; justify-content: center;
    transition: opacity .5s ease, visibility .5s ease;
}
.ls-preloader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.ls-preloader__inner { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.ls-preloader__logo { animation: ls-pre-pop .6s var(--ls-spring) both; }
.ls-preloader__wordmark {
    font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 900;
    color: #fff; letter-spacing: -.03em;
}
.ls-preloader__bar {
    width: 160px; height: 2px; background: rgba(255,255,255,.1);
    border-radius: 2px; overflow: hidden;
}
.ls-preloader__fill {
    height: 100%; width: 0; border-radius: 2px;
    background: linear-gradient(90deg, #c9a84c, #e8c97a, #c9a84c);
    background-size: 200%;
    animation: ls-pre-fill 1.4s ease forwards, ls-pre-shimmer 1s .2s linear infinite;
}
.ls-preloader__dots { display: flex; gap: 8px; }
.ls-preloader__dots span {
    width: 6px; height: 6px; border-radius: 50%;
    background: rgba(201,168,76,.5);
    animation: ls-pre-dot .8s ease-in-out infinite;
}
.ls-preloader__dots span:nth-child(2) { animation-delay: .15s; }
.ls-preloader__dots span:nth-child(3) { animation-delay: .3s; }

@keyframes ls-pre-pop {
    from { opacity: 0; transform: scale(.8) translateY(10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes ls-pre-fill {
    0%   { width: 0; }
    60%  { width: 80%; }
    100% { width: 100%; }
}
@keyframes ls-pre-shimmer {
    0%   { background-position: 0%; }
    100% { background-position: 200%; }
}
@keyframes ls-pre-dot {
    0%, 100% { opacity: .3; transform: scale(.8); }
    50%       { opacity: 1; transform: scale(1.2); }
}

/* ── Logo centered, no nav ── */
.ls-header { position: fixed; }
.ls-header__inner { position: relative; }

/* Hide desktop nav entirely */
.ls-nav { display: none !important; }

/* Header actions pushed to right, logo stays centered */
.ls-header__actions {
    margin-left: auto;
}

/* ── Book Now btn — smaller on mobile ── */
@media (max-width: 480px) {
    .ls-header__book { display: none; }
}
