/* =============================================
   MOBILE MENU — Full responsive replacement
   ============================================= */

.ricas-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background: rgb(22, 14, 90);
    z-index: 9999;
    display: none;
    flex-direction: column;
    padding: 24px 20px;
    box-sizing: border-box;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.ricas-mobile-menu.active {
    display: flex;
}

/* ---- Top bar: logo LEFT, close button RIGHT ---- */
.ricas-mobile-menu-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.ricas-mobile-menu-top img {
    max-width: 200px;
    width: 100%;
    height: auto;
}

/* ---- Close button (top right) ---- */
.ricas-mobile-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: auto;
}

.ricas-mobile-close img {
    width: 30px;
    height: 30px;
}

/* CSS-only X cross — used if no close icon image */
.ricas-mobile-close-x {
    width: 32px;
    height: 32px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ricas-mobile-close-x::before,
.ricas-mobile-close-x::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2.5px;
    background: #fff;
    border-radius: 2px;
}

.ricas-mobile-close-x::before { transform: rotate(45deg); }
.ricas-mobile-close-x::after  { transform: rotate(-45deg); }

/* ---- Divider ---- */
.ricas-mobile-divider {
    width: 100%;
    height: 1.5px;
    background: rgba(255, 255, 255, 0.3);
    margin: 20px 0;
    flex-shrink: 0;
}

/* ---- Nav links — LEFT aligned ---- */
.ricas-mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
}

.ricas-mobile-nav a {
    color: #fff;
    text-decoration: none;
    padding: 18px 0;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    text-align: left;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.04em;
    transition: opacity 0.2s ease, padding-left 0.2s ease;
    display: block;
    box-sizing: border-box;
}

.ricas-mobile-nav a:last-child {
    border-bottom: none;
}

.ricas-mobile-nav a:active,
.ricas-mobile-nav a:hover {
    opacity: 0.7;
    padding-left: 6px;
}

/* ---- Social icons ---- */
.ricas-mobile-social {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-top: 30px;
    flex-shrink: 0;
    padding-bottom: env(safe-area-inset-bottom, 12px);
}

.ricas-mobile-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    transition: background 0.2s ease;
}

.ricas-mobile-social a:hover {
    background: rgba(255, 255, 255, 0.25);
}

.ricas-mobile-social img {
    width: 24px;
    height: 24px;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (min-width: 769px) {
    .ricas-mobile-menu {
        display: none !important;
    }
}

@media (max-width: 400px) {
    .ricas-mobile-nav a {
        font-size: 17px;
        padding: 15px 0;
    }

    .ricas-mobile-menu-top img {
        max-width: 130px;
    }
}