/* ==========================================================================
   Header — Sticky glass-blur navigation
   ========================================================================== */

.reo-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(8, 8, 10, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}

/* Offset for WP admin bar when logged in */
body.admin-bar .reo-header {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .reo-header {
        top: 46px;
    }
}

.reo-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

/* Logo */
.reo-header__logo {
    text-decoration: none;
    color: var(--text-primary);
    flex-shrink: 0;
}

.reo-header__logo-img {
    display: block;
    height: 36px;
    width: auto;
}

.reo-header__logo-text {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 24px;
    letter-spacing: 2px;
    color: var(--accent);
}

/* Desktop Nav */
.reo-header__menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.reo-header__menu-item a {
    display: block;
    padding: 8px 16px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 14px;
    color: var(--text-dim);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.reo-header__menu-item a:hover,
.reo-header__menu-item.is-active a {
    color: var(--text-primary);
}

.reo-header__menu-item.is-active a {
    background: var(--accent-glow);
    color: var(--accent-light);
}

/* Shop CTA */
.reo-header__menu-item--cta a {
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius-pill);
    padding: 8px 20px;
    font-weight: 600;
}

.reo-header__menu-item--cta a:hover {
    background: var(--accent-light);
    color: #fff;
}

/* Mobile Toggle */
.reo-header__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.reo-header__toggle-bar {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile toggle animation */
.reo-header__toggle[aria-expanded="true"] .reo-header__toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.reo-header__toggle[aria-expanded="true"] .reo-header__toggle-bar:nth-child(2) {
    opacity: 0;
}

.reo-header__toggle[aria-expanded="true"] .reo-header__toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Mobile ---------- */
@media (max-width: 1024px) {
    .reo-header__toggle {
        display: flex;
    }

    .reo-header__nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(8, 8, 10, 0.96);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 32px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    body.admin-bar .reo-header__nav {
        top: 104px; /* 72px header + 32px admin bar */
    }

    .reo-header__nav.is-open {
        opacity: 1;
        visibility: visible;
    }

    .reo-header__menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .reo-header__menu-item a {
        font-size: 24px;
        padding: 12px 0;
    }

    .reo-header__menu-item--cta a {
        margin-top: 16px;
        font-size: 16px;
        padding: 12px 28px;
    }
}
