/* Premium Mobile Navigation Menu - Redesign V3 (Brand Dark Navy) */

:root {
    --mobile-menu-bg: #05014A;
    /* Brand Primary Navy */
    --mobile-menu-accent: #FFC857;
    /* Brand Gold Accent */
    --mobile-menu-text: #FFFFFF;
    --mobile-menu-text-muted: rgba(255, 255, 255, 0.7);
    --mobile-menu-overlay: rgba(0, 0, 0, 0.6);
    --mobile-menu-icon-bg-dark: #030030;
    /* Darker shade for contrast */
    --mobile-menu-icon-bg-light: rgba(255, 255, 255, 0.1);
}

/* Main Mobile Menu Wrapper */
.mobile-nav__wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s 0.3s, opacity 0.3s ease;
}

.mobile-nav__wrapper.expanded {
    visibility: visible;
    opacity: 1;
    transition: visibility 0s 0s, opacity 0.3s ease;
}

/* Backdrop Overlay */
.mobile-nav__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--mobile-menu-overlay);
    backdrop-filter: blur(5px);
    /* Restored subtle blur for depth */
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
    /* Indicate clickable */
}

.mobile-nav__wrapper.expanded .mobile-nav__overlay {
    opacity: 1;
}

/* Menu Content Panel */
.mobile-nav__content {
    position: absolute;
    top: 0;
    right: -100%;
    width: 85%;
    /* Leave 15% visible for context */
    max-width: 320px;
    /* Reduced width */
    height: 100%;
    background: var(--mobile-menu-bg);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.4);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 30px;
    transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
}

.mobile-nav__wrapper.expanded .mobile-nav__content {
    right: 0;
}

/* Close Button */
.mobile-nav__close {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    /* Visible background */
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    /* High z-index */
    transition: all 0.3s ease;
}

.mobile-nav__close::before,
.mobile-nav__close::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 3px;
    /* Thicker lines */
    background: #ffffff;
    /* Explicit White */
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-nav__close::before {
    transform: rotate(45deg);
}

.mobile-nav__close::after {
    transform: rotate(-45deg);
}

.mobile-nav__close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.mobile-nav__close:hover::before,
.mobile-nav__close:hover::after {
    background: var(--mobile-menu-accent);
}

/* Logo */
.mobile-nav__content .logo-box {
    margin-bottom: 40px;
    padding-top: 10px;
    /* Space for logo, close btn is absolute */
    /* Optional: Brightness filter if logo is dark */
    /* filter: brightness(0) invert(1); */
}

/* Navigation List */
.mobile-nav__content .main-menu__list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.mobile-nav__content .main-menu__list>li {
    display: block;
    padding: 0;
    margin-bottom: 25px;
}

.mobile-nav__content .main-menu__list>li>a {
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: var(--mobile-menu-text);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

/* Active State - Gold */
.mobile-nav__content .main-menu__list>li.current>a,
.mobile-nav__content .main-menu__list>li>a:hover {
    color: var(--mobile-menu-accent);
    padding-left: 5px;
}

/* Dropdown Toggles */
.mobile-nav__content .main-menu__list li.dropdown>a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-nav__content .main-menu__list li.dropdown>a>button {
    background: none;
    border: none;
    font-size: 14px;
    color: inherit;
    transform: rotate(-90deg);
    transition: transform 0.3s;
}

.mobile-nav__content .main-menu__list li.dropdown>a>button.expanded {
    transform: rotate(0deg);
}

/* Submenu */
.mobile-nav__content .main-menu__list>li>ul {
    display: none;
    padding-left: 15px;
    margin-top: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav__content .main-menu__list>li>ul>li>a {
    font-size: 15px;
    color: var(--mobile-menu-text-muted);
    padding: 8px 0;
    display: block;
}

.mobile-nav__content .main-menu__list>li>ul>li>a:hover {
    color: var(--mobile-menu-text);
}

/* Contact Info Section (Divider + Dark Icons) */
.mobile-nav__contact {
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

.mobile-nav__contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav__contact li {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.mobile-nav__contact li i {
    width: 40px;
    height: 40px;
    background-color: var(--mobile-menu-icon-bg-light);
    color: var(--mobile-menu-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-right: 15px;
    flex-shrink: 0;
}

.mobile-nav__contact li a {
    color: var(--mobile-menu-text);
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
}

/* Social Links (Light Circles) */
.mobile-nav__social {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.mobile-nav__social a {
    width: 45px;
    height: 45px;
    background-color: var(--mobile-menu-icon-bg-light);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s;
}

.mobile-nav__social a:hover {
    background-color: var(--mobile-menu-accent);
    color: #05014A;
}

/* Body Lock */
body.locked {
    overflow: hidden;
}

/* HAMBURGER MENU TOGGLER */
.mobile-nav__toggler {
    position: relative;
    width: 40px;
    height: 40px;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background-color: #1A1F71;
    /* Brand Blue Background */
    border: none;
    border-radius: 8px;
    /* Rounded Square as per image */
    padding: 0;
    z-index: 9998;
    /* Lower than menu wrapper (9999) so menu covers it */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    /* Shadow for visibility */
    color: #ffffff;
    /* White lines */
    transition: all 0.3s ease;
}

.mobile-nav__toggler:hover {
    background-color: #05014A;
    /* Darker navy on hover */
}

.mobile-nav__toggler span {
    display: block;
    width: 28px;
    height: 2px;
    background: currentColor;
    transition: all 0.3s ease;
    position: absolute;
}

.mobile-nav__toggler span:nth-child(1) {
    top: 12px;
}

.mobile-nav__toggler span:nth-child(2) {
    top: 19px;
}

.mobile-nav__toggler span:nth-child(3) {
    top: 26px;
}

/* Hide Hamburger when menu is open (Body Locked) 
   The internal 'Close Button' inside the panel takes over. */
body.locked .mobile-nav__toggler {
    opacity: 0;
    pointer-events: none;
}

/* Response Breakpoints */
@media (max-width: 1199px) {
    .mobile-nav__toggler {
        display: flex;
    }
}

@media (max-width: 400px) {
    .mobile-nav__content {
        width: 85%;
        max-width: 320px;
    }
}