/* ==========================================================================
   Mobile Nav — Backdrop
   ========================================================================== */

.rw-mob-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1099;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rw-mob-backdrop.is-visible {
    display: block;
    opacity: 1;
}


/* ==========================================================================
   Mobile Nav — Drawer
   ========================================================================== */

.rw-mob-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 390px;
    max-width: 100vw;
    background: #fff;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

/* JS removes [hidden] and adds .is-open */
.rw-mob-nav.is-open {
    transform: translateX(0);
}


/* ==========================================================================
   Mobile Nav — Header Bar
   ========================================================================== */

.rw-mob-nav__header {
    display: flex;
    flex-direction: column;
    background: #000;
    flex-shrink: 0;
}

.rw-mob-nav__header-top {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 5px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.rw-mob-nav__header-logo {
    display: flex;
    align-items: center;
    padding: 35px 30px 30px 30px;
}

.rw-mob-nav__logo-link {
    display: block;
    line-height: 0;
}

.rw-mob-nav__logo {
    max-width: 280px;
    height: auto;
}

.rw-mob-nav__close {
    background: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    cursor: pointer;
    color: #979797;
    font-size: 30px !important;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
    text-decoration: none;
}

.rw-mob-nav__close:hover {
    opacity: 0.7;
}


/* ==========================================================================
   Mobile Nav — Scrollable Body
   ========================================================================== */

.rw-mob-nav__body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 0 32px;
}


/* ==========================================================================
   Mobile Nav — Accordion Items
   ========================================================================== */

.rw-mob-nav__item {
    border-bottom: 1px solid #e8e8e8;
}

.rw-mob-nav__trigger,
.rw-mob-nav__trigger:focus{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 30px;
    background: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    cursor: pointer;
    font-size: 18px !important;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #111;
    text-align: left;
    text-decoration: none;
}

.rw-mob-nav__icon {
    font-size: 18px;
    color: #111;
    flex-shrink: 0;
    width: 12px;
    text-align: center;
    transition: transform 0.2s;
}

button.rw-mob-nav__trigger:hover, button.rw-mob-nav__trigger:hover i {
    color: var(--rw-primary) !important;
}


/* ==========================================================================
   Mobile Nav — Expanded Panel
   ========================================================================== */

.rw-mob-nav__panel {
    padding: 4px 30px 16px;
}

.rw-mob-nav__list {
    list-style: none;
    margin: 0;
    padding: 12px 0;
    background: #f2f2f2;
    border-radius: var(--rw-corners);
}

.rw-mob-nav__list-item {
    list-style: none;
}

.rw-mob-nav__link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 20px;
    text-decoration: none !important;
    color: #222;
    font-size: 16px;
    font-weight: 600;
    transition: color 0.2s;
}

.rw-mob-nav__link:hover {
    color: var(--rw-primary);
    text-decoration: none !important;
}

.rw-mob-nav__link i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    color: #444;
}

.rw-mob-nav__link:hover i {
    color: var(--rw-primary);
}


/* ==========================================================================
   Mobile Nav — Search Row
   ========================================================================== */

.rw-mob-nav__search-row {
    padding: 20px 24px 0;
    border-bottom: 1px solid #e8e8e8;
    padding-bottom: 20px;
}

.rw-mob-nav__search-trigger,
.rw-mob-nav__search-trigger:focus {
    background: none !important;
    border: none !important;
    outline: none;
    cursor: pointer;
    padding: 0;
    color: #111;
}

.rw-mob-nav__search-trigger:hover {
    color: var(--rw-primary);
}

.rw-mob-nav__search-trigger .rw-search-circle {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
}

.rw-mob-nav__search-panel {
    margin-top: 16px;
}


/* ==========================================================================
   Mobile Nav — Ghost CTA Buttons (black bar nav)
   ========================================================================== */

.rw-mob-nav__ctas {
    padding: 20px 30px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rw-mob-nav__cta-btn,
.rw-mob-nav__cta-btn:focus {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border: 2px solid var(--rw-primary);
    border-radius: 50px;
    text-decoration: none !important;
    color: var(--rw-primary);
    font-size: 16px;
    font-weight: 700;
    transition: background 0.2s, color 0.2s;
    box-sizing: border-box;
}

.rw-mob-nav__cta-btn:hover {
    background: var(--rw-primary);
    color: #fff;
    text-decoration: none !important;
    border-color: var(--rw-primary);
}

.rw-mob-nav__cta-btn i {
    font-size: 0.8rem;
}


/* ==========================================================================
   Hamburger — shown on mobile/tablet only
   ========================================================================== */

.rw-mob-hamburger {
    display: none;
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    color: #fff;
    font-size: 1.4rem;
    padding: 4px 0 4px 16px;
    transition: opacity 0.2s;
}

.rw-header--scrolled .rw-mob-hamburger,
.rw-header--panel-open .rw-mob-hamburger {
    color: #222;
}

.rw-mob-hamburger:hover {
    opacity: 0.7;
}

button#rw-mob-hamburger i {
    font-size: 25px;
}


/* ==========================================================================
   Breakpoints
   ========================================================================== */

@media ( max-width: 992px ) {
    /* Hide desktop nav, show hamburger */
    .rw-mega-nav {
        display: none;
    }

    .rw-mob-hamburger {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        margin-left: auto;
        background: transparent !important;
        border: none !important;
    }
}

@media ( max-width: 480px ) {
    /* Full width drawer on small mobile */
    .rw-mob-nav {
        width: 100vw;
    }

    /* No backdrop needed — covers full screen */
    .rw-mob-backdrop {
        display: none !important;
    }
}