/* Public site navigation  - conversion-focused
   Brand: charcoal #1a1a1a / gold #B17006 */

header.site-header {
    --nav-ink: #1a1a1a;
    --nav-gold: #b17006;
    --nav-gold-deep: #8f5a05;
    --nav-muted: rgba(255, 255, 255, 0.72);
    --nav-line: rgba(255, 255, 255, 0.12);
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    background: rgba(26, 26, 26, 0.94) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--nav-line);
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
    padding: 0 !important;
    transform: none !important;
    box-shadow: none;
}

header.site-header.scrolled {
    background: #1a1a1a !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22) !important;
    padding: 0 !important;
}

.eka-nav__inner {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    min-height: 68px;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.eka-nav__brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.eka-nav__brand img {
    height: 36px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
}

.eka-nav__links {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    flex: 1;
    justify-content: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.eka-nav__links a {
    color: var(--nav-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 0.55rem 0.7rem;
    border-radius: 4px;
    transition: color 0.2s ease, background-color 0.2s ease;
    white-space: nowrap;
}

.eka-nav__links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.eka-nav__links a.is-active {
    color: #fff;
}

.eka-nav__actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
    margin-left: auto;
}

.eka-nav__account {
    position: relative;
}

.eka-nav__ghost {
    appearance: none;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    font: inherit;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0.65rem;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 40px;
}

.eka-nav__ghost:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.eka-nav__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.65rem 1.15rem;
    background: var(--nav-gold);
    color: #fff !important;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 4px;
    border: 0;
    transition: background-color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.eka-nav__cta:hover {
    background: var(--nav-gold-deep);
    color: #fff !important;
    transform: translateY(-1px);
}

.eka-nav__menu-btn {
    display: none;
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: transparent;
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 4px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.eka-nav__menu-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.eka-nav__menu-btn i {
    font-size: 1.35rem;
    line-height: 1;
}

/* Account dropdown */
.eka-nav__dropdown {
    position: absolute;
    top: calc(100% + 0.4rem);
    right: 0;
    min-width: 200px;
    background: #fff;
    border: 1px solid rgba(26, 26, 26, 0.1);
    border-radius: 4px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
    padding: 0.4rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 20;
}

.eka-nav__account.is-open .eka-nav__dropdown,
.eka-nav__account:focus-within .eka-nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.eka-nav__dropdown a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1rem;
    color: var(--nav-ink);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.eka-nav__dropdown a:hover {
    background: rgba(177, 112, 6, 0.08);
    color: var(--nav-gold);
}

.eka-nav__dropdown a.is-danger {
    color: #b42318;
    border-top: 1px solid rgba(26, 26, 26, 0.08);
    margin-top: 0.25rem;
}

/* Drawer */
.eka-drawer {
    position: fixed;
    inset: 0;
    z-index: 1100;
    pointer-events: none;
}

.eka-drawer.is-open {
    pointer-events: auto;
}

.eka-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 26, 0.55);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.eka-drawer.is-open .eka-drawer__backdrop {
    opacity: 1;
}

.eka-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(360px, 92vw);
    height: 100%;
    background: #fffaf4;
    color: var(--nav-ink);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.18);
}

.eka-drawer.is-open .eka-drawer__panel {
    transform: translateX(0);
}

.eka-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid rgba(26, 26, 26, 0.08);
}

.eka-drawer__head img {
    height: 30px;
    width: auto;
}

.eka-drawer__close {
    appearance: none;
    border: 0;
    background: transparent;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    cursor: pointer;
    color: var(--nav-ink);
    font-size: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.eka-drawer__close:hover {
    background: rgba(26, 26, 26, 0.06);
}

.eka-drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0 1.5rem;
}

.eka-drawer__label {
    margin: 0.5rem 1.25rem 0.35rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8a8278;
}

.eka-drawer__nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.eka-drawer__nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
    color: var(--nav-ink);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
}

.eka-drawer__nav a:hover,
.eka-drawer__nav a.is-active {
    background: rgba(177, 112, 6, 0.08);
    color: var(--nav-gold);
}

.eka-drawer__nav--secondary a {
    font-size: 0.95rem;
    font-weight: 500;
    color: #5c564e;
}

.eka-drawer__foot {
    padding: 1rem 1.25rem 1.35rem;
    border-top: 1px solid rgba(26, 26, 26, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    background: #fff;
}

.eka-drawer__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    background: var(--nav-gold);
    color: #fff !important;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
}

.eka-drawer__cta:hover {
    background: var(--nav-gold-deep);
}

.eka-drawer__link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 1px solid rgba(26, 26, 26, 0.18);
    color: var(--nav-ink);
    text-decoration: none;
    font-weight: 500;
    border-radius: 4px;
}

.eka-drawer__user {
    padding: 0.85rem 1.25rem 1rem;
    border-bottom: 1px solid rgba(26, 26, 26, 0.08);
}

.eka-drawer__user strong {
    display: block;
    font-size: 1rem;
}

.eka-drawer__user span {
    display: block;
    font-size: 0.82rem;
    color: #6b655c;
    margin-top: 0.15rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Hide legacy slide-menu remnants if any page still references */
.slide-menu,
.menu-backdrop,
.menu-toggle,
.desktop-auth {
    /* kept unused; new nav supersedes */
}

@media (max-width: 980px) {
    .eka-nav__links {
        display: none;
    }

    .eka-nav__ghost--desktop {
        display: none;
    }

    .eka-nav__menu-btn {
        display: inline-flex;
    }

    .eka-nav__cta-label-full {
        display: none;
    }

    .eka-nav__cta-label-short {
        display: inline;
    }
}

@media (min-width: 981px) {
    .eka-nav__cta-label-short {
        display: none;
    }
}

@media (max-width: 480px) {
    .eka-nav__inner {
        width: calc(100% - 1.25rem);
        min-height: 60px;
        gap: 0.65rem;
    }

    .eka-nav__brand img {
        height: 30px;
    }

    .eka-nav__cta {
        padding: 0.55rem 0.8rem;
        min-height: 40px;
        font-size: 0.85rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-header,
    .eka-drawer__panel,
    .eka-drawer__backdrop,
    .eka-nav__dropdown,
    .eka-nav__cta {
        transition: none !important;
    }
}

/* Ensure page content clears fixed nav on non-hero pages */
body:not(.home-page):not(.space-page):not(.spaces-page):not(.equipment-page):not(.contact-page):not(.about-page):not(.gallery-page):not(.faq-page):not(.cart-page):not(.login-page):not(.register-page):not(.forgot-page):not(.reset-page):not(.affiliate-page):not(.terms-page):not(.thankyou-page):not(.confirm-page):not(.account-page) {
    padding-top: 68px;
}
