/* ═══════════════════════════════════════════
   SHARED NAVIGATION — Beyond Olives
   Zen minimalist style — clean, spacious, text-focused
   ═══════════════════════════════════════════ */

/* ──── ZEN CLEANUP: Hide visual clutter ──── */
.menu-link-thumb,
.menu-group-icon,
.section-nav-icon,
.dropdown-icon,
.progress-bar {
    display: none !important;
}

/* ──── LOGO MARK (SVG olive branch beside text) ──── */
.nav-logo-wrap {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    z-index: 301;
}
.nav-logo-wrap .nav-logo {
    margin: 0;
}
.nav-logo-mark {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    opacity: 0.85;
    transition: opacity 0.4s;
}
.nav-logo-wrap:hover .nav-logo-mark {
    opacity: 1;
}

/* ──── SECTION NAV STRIP ──── */
.section-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 190;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
    pointer-events: none;
}
.section-nav.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.section-nav-inner {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0.5rem;
    max-width: 100%;
    margin: 0 auto;
    background: rgba(28, 43, 18, 0.92);
    backdrop-filter: blur(20px) saturate(1.1);
    -webkit-backdrop-filter: blur(20px) saturate(1.1);
    border-bottom: 1px solid rgba(196, 162, 78, 0.06);
    padding: 0 2rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.section-nav-inner::-webkit-scrollbar { display: none; }

/* Section group in the strip */
.section-nav-group {
    position: relative;
    flex-shrink: 0;
}
.section-nav-trigger {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0.85rem 1.6rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.78rem;
    font-weight: 300;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(220, 200, 160, 0.4);
    white-space: nowrap;
    transition: color 0.4s;
    border-bottom: 1px solid transparent;
    position: relative;
}
.section-nav-trigger:hover {
    color: rgba(220, 200, 160, 0.8);
    background: none;
}
.section-nav-group.active > .section-nav-trigger {
    color: rgba(220, 201, 138, 0.85);
    border-bottom-color: rgba(196, 162, 78, 0.4);
}

/* Dropdown of sub-pages */
.section-nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    min-width: 200px;
    background: rgba(28, 43, 18, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(196, 162, 78, 0.08);
    border-radius: 2px;
    padding: 0.8rem 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}
.section-nav-group:hover .section-nav-dropdown,
.section-nav-group.dropdown-open .section-nav-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.section-nav-dropdown a {
    display: block;
    padding: 0.6rem 1.5rem;
    text-decoration: none;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-weight: 300;
    color: rgba(220, 200, 160, 0.45);
    transition: color 0.3s, padding-left 0.3s;
    white-space: nowrap;
}
.section-nav-dropdown a:hover {
    color: rgba(220, 201, 138, 0.9);
    padding-left: 1.8rem;
}
.section-nav-dropdown a.current-page {
    color: rgba(196, 162, 78, 0.8);
}

/* ──── FULLSCREEN MENU — ZEN LAYOUT ──── */
.menu-inner {
    gap: 5rem !important;
    max-width: 1000px !important;
}
.menu-group-title {
    display: block !important;
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.6rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: rgba(196, 162, 78, 0.6);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(196, 162, 78, 0.1);
}
.menu-group a {
    display: block !important;
    text-decoration: none;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    font-weight: 300;
    color: rgba(230, 220, 198, 0.4);
    padding: 0.65rem 0;
    transition: color 0.4s, padding-left 0.4s;
}
.menu-group a:hover {
    color: rgba(220, 201, 138, 0.9);
    padding-left: 0.6rem;
}
.menu-group a.menu-active {
    color: rgba(196, 162, 78, 0.7);
}

/* ──── RESPONSIVE ──── */
@media (max-width: 1024px) {
    .section-nav-trigger {
        padding: 0.75rem 1.2rem;
        font-size: 0.72rem;
    }
}
@media (max-width: 700px) {
    .section-nav-inner {
        justify-content: flex-start;
        padding: 0 0.8rem;
        gap: 0;
    }
    .section-nav-trigger {
        padding: 0.65rem 0.9rem;
        font-size: 0.65rem;
        letter-spacing: 0.18em;
    }
    .section-nav-dropdown {
        left: 0;
        transform: translateX(0) translateY(-4px);
        min-width: 180px;
    }
    .section-nav-group:hover .section-nav-dropdown,
    .section-nav-group.dropdown-open .section-nav-dropdown {
        transform: translateX(0) translateY(0);
    }
}

/* ──── ZEN NAV SPACING ──── */
nav#navbar {
    z-index: 200;
    padding: 2.4rem 4.5rem !important;
}
nav#navbar.scrolled {
    padding: 1.2rem 4.5rem !important;
}
.section-nav {
    z-index: 190;
}

/* Hide section nav when fullscreen menu is open */
.fullscreen-menu.open ~ .section-nav {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ──── IPHONE / SMALL MOBILE ──── */
@media (max-width: 700px) {
    nav#navbar {
        padding: 1.5rem 1.5rem !important;
    }
    nav#navbar.scrolled {
        padding: 1rem 1.5rem !important;
    }
    .fullscreen-menu {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        align-items: flex-start;
    }
    .fullscreen-menu .menu-inner {
        padding: 5rem 1.5rem 3rem;
        width: 100%;
    }
}
