/* 
   Centralized Responsive Menu System for Ritini Child Theme 
   Clean, CSS-only Hamburger and Mobile Overlay
*/

/* Mobile Menu Container */
.ritini-mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: #ffffff;
    z-index: 10000;
    padding: 80px 40px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: right 0.4s cubic-bezier(0.77,0.2,0.05,1.0);
}

.ritini-mobile-nav.is-active {
    right: 0;
    display: block; /* Safety for some browsers */
}

/* Hamburger Trigger */
.ritini-burger {
    display: none;
    cursor: pointer;
    z-index: 10001;
    position: relative;
    width: 30px;
    height: 20px;
}

.ritini-burger span {
    display: block;
    width: 30px;
    height: 3px;
    background: currentColor;
    margin-bottom: 5px;
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* Checkbox Trick for functionality without JS if possible, 
   otherwise I'll trigger the .is-active class via a simple inline event */
.ritini-nav-toggle {
    display: none;
}

.ritini-nav-toggle:checked ~ .ritini-mobile-nav {
    right: 0;
}

.ritini-nav-toggle:checked ~ .ritini-burger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.ritini-nav-toggle:checked ~ .ritini-burger span:nth-child(2) {
    opacity: 0;
}

.ritini-nav-toggle:checked ~ .ritini-burger span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -7px);
}

/* Mobile Link Styles */
.ritini-mobile-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ritini-mobile-list li {
    margin-bottom: 25px;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s ease;
}

.ritini-nav-toggle:checked ~ .ritini-mobile-nav li {
    opacity: 1;
    transform: translateX(0);
}

.ritini-mobile-list a {
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    color: #333;
    display: block;
}

/* Responsive Visibility */
@media (max-width: 1024px) {
    .ritini-burger { display: block; }
    .ritini-mobile-nav { display: block; } /* Initial hidden via right: -100% */
    .desktop-only { display: none !important; }
}
