/* =========================
   HAMBURGER BUTTON
========================= */
.hamburger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(128, 0, 0, 0.05);
    border: 1px solid rgba(128, 0, 0, 0.1);
    font-size: 22px;
    color: var(--maroon);
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hamburger-btn:hover {
    background: var(--maroon);
    color: white;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 10px 20px rgba(128, 0, 0, 0.2);
}

.hamburger-btn:active {
    transform: scale(0.9);
}

/* =========================
   MOBILE NAV PANEL
========================= */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    z-index: 1100;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 360px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1200;
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.15);
}

.mobile-nav-panel.active {
    right: 0;
}

/* Header */
.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 24px;
    background: linear-gradient(to right, #fff, #f8fafc);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.mobile-logo-text {
    font-size: 20px;
    font-weight: 900;
    color: var(--dark);
    margin: 0;
    letter-spacing: -1px;
}

.mobile-logo-text span {
    color: var(--maroon);
}

.close-nav-btn {
    background: #f1f5f9;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 18px;
    color: var(--dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-nav-btn:hover {
    background: var(--maroon);
    color: white;
    transform: rotate(90deg);
}

/* Search */
.mobile-search {
    margin: 20px 24px;
}

.mobile-search form {
    display: flex;
    width: 100%;
    background: #f8fafc;
    border-radius: 16px;
    padding: 4px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.mobile-search form:focus-within {
    background: white;
    border-color: var(--maroon);
    box-shadow: 0 10px 30px rgba(128, 0, 0, 0.08);
}

.mobile-search input {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
}

.mobile-search button {
    background: var(--maroon);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-search button:hover {
    background: var(--maroon-dark);
    transform: scale(0.95);
}

/* Links */
.mobile-nav-list {
    list-style: none;
    padding: 10px 24px;
    margin: 0;
    flex: 1;
}

.mobile-nav-list > li {
    margin-bottom: 5px;
}

.mobile-nav-list a,
.mobile-dropdown-trigger > a,
.mobile-dropdown-trigger > span {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    font-weight: 700;
    font-size: 16px;
    color: var(--dark);
    border-radius: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.mobile-nav-list a:hover,
.mobile-dropdown-trigger:hover > a,
.mobile-dropdown-trigger:hover > span {
    background: rgba(128, 0, 0, 0.04);
    color: var(--maroon);
    padding-left: 25px;
}

.mobile-nav-list a.active {
    background: var(--maroon);
    color: white;
    box-shadow: 0 10px 20px rgba(128, 0, 0, 0.15);
}

/* Dropdown */
.mobile-submenu {
    display: none;
    padding: 5px 0 10px 20px;
    margin: 5px 0 15px 20px;
    list-style: none;
    border-left: 2px solid rgba(0, 191, 255, 0.2);
}

.mobile-submenu.active {
    display: block;
    animation: slideIn 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mobile-submenu li a {
    font-weight: 500;
    font-size: 14px;
    color: var(--medium-grey);
    padding: 12px 18px;
    background: transparent !important;
}

.mobile-submenu li a:hover {
    color: var(--cyan);
    padding-left: 22px;
}

/* Socials */
.mobile-socials {
    margin-top: auto;
    display: flex;
    gap: 15px;
    justify-content: center;
    padding: 30px 24px;
    background: #f8fafc;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.mobile-socials a {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    font-size: 18px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mobile-socials a:hover {
    background: var(--maroon);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(128, 0, 0, 0.15);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 991px) {
    .nav-desktop,
    .search-bar-desktop,
    .desktop-only {
        display: none !important;
    }
}

@media (min-width: 992px) {
    .hamburger-btn,
    .mobile-nav-panel,
    .mobile-overlay {
        display: none !important;
    }
}