/* mobile.css – overrides for mobile navigation and layout */

@media (max-width: 768px) {
    /* Header layout */
    .rij-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.9rem 1.25rem;
        position: sticky;
        top: 0;
        z-index: 50;
        backdrop-filter: blur(12px);
    }
.rij-header a {
    text-decoration: none !important;
}

    .rij-logo-text {
        font-size: 1.1rem;
    }

    /* Hide default nav horizontally on mobile */
    .rij-nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: rgba(5, 6, 8, 0.97);
        display: none;
        flex-direction: column;
        gap: 0;
        padding: 0.75rem 1.25rem 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .rij-nav a {
        display: block;
        padding: 0.5rem 0;
        font-size: 0.95rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }

    .rij-nav a:last-child {
        border-bottom: none;
    }

    /* Show when menu is open */
    .rij-nav.nav-open {
        display: flex;
    }

 /* MOBILE MENU BUTTON (CIRCLE + 3 BARS) */
.rij-menu-toggle {
    display: none;
    position: relative;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    background: radial-gradient(circle at 20% 0%, #fce9b0 0, #b2821c 55%, #050608 100%);
    box-shadow: var(--shadow-gold);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

/* the 3 lines inside the circle */
.rij-menu-toggle .bar {
    position: absolute;
    left: 50%;
    width: 58%;
    height: 2px;
    background: #080706;
    border-radius: 999px;
    transform: translateX(-50%);
    transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease, bottom 0.2s ease;
}

/* top, middle, bottom bar positions */
.rij-menu-toggle .bar:nth-child(1) {
    top: 36%;
}
.rij-menu-toggle .bar:nth-child(2) {
    top: 50%;
}
.rij-menu-toggle .bar:nth-child(3) {
    top: 64%;
}

/* X state when open */
.rij-menu-toggle.is-open .bar:nth-child(1) {
    top: 50%;
    transform: translateX(-50%) rotate(45deg);
}
.rij-menu-toggle.is-open .bar:nth-child(2) {
    opacity: 0;
}
.rij-menu-toggle.is-open .bar:nth-child(3) {
    top: 50%;
    transform: translateX(-50%) rotate(-45deg);
}

/* show only on phones */
@media (max-width: 900px) {
    .rij-nav {
        display: none;
    }
    .rij-menu-toggle {
        display: flex;
    }
}
}
