/* ============================================================
   VDPL PREMIUM MOBILE MENU (STRIPE/LINEAR INSPIRED)
   Version: 5.0 - Ultra Modern x Luminous
   ============================================================ */

:root {
    --mm-bg: #FFFFFF;
    --mm-text: #0F172A;
    --mm-text-muted: #64748B;
    --mm-accent: #6366F1;
    --mm-border: rgba(0, 0, 0, 0.06);
    --mm-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.15);
    --mm-transition: 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- OVERLAY BACKDROP --- */
.mm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* Prevent interference on desktop */
    transition: all var(--mm-transition);
}

.mm-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* --- MENU PANEL --- */
.mm-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 400px;
    background: var(--mm-bg);
    z-index: 10001;
    transform: translateX(100%);
    transition: transform var(--mm-transition);
    display: flex;
    flex-direction: column;
    box-shadow: var(--mm-shadow);
}

.mm-panel.active {
    transform: translateX(0);
}

/* --- TOP BAR --- */
.mm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--mm-border);
    background: #FFFFFF;
    position: sticky;
    top: 0;
    z-index: 10;
}

.mm-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--mm-text);
}

.mm-logo-icon {
    width: 32px;
    height: 32px;
    background: var(--mm-accent);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 700;
}

.mm-logo-text {
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.mm-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #F8FAFC;
    border: 1px solid var(--mm-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--mm-text);
    transition: all 0.3s ease;
}

.mm-close:active {
    transform: scale(0.9);
    background: #F1F5F9;
}

/* --- MENU CONTENT --- */
.mm-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    scrollbar-width: none;
}

.mm-body::-webkit-scrollbar {
    display: none;
}

/* --- ACCORDION SYSTEM --- */
.mm-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mm-item {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.mm-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--mm-text);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    font-family: inherit;
    transition: background 0.3s ease;
}

.mm-trigger:active {
    background: #F8FAFC;
}

.mm-trigger-content {
    display: flex;
    align-items: center;
    gap: 14px;
}

.mm-trigger-icon {
    width: 20px;
    height: 20px;
    color: var(--mm-accent);
    opacity: 0.8;
}

.mm-chevron {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--mm-text-muted);
}

.mm-item.active .mm-chevron {
    transform: rotate(180deg);
}

.mm-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    background: #FFFFFF;
}

.mm-item.active .mm-content {
    max-height: 2000px; /* Large enough for nested items */
}

/* --- SERVICES CARD STYLE --- */
.mm-sub-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 4px 16px 16px;
}

.mm-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #F8FAFC;
    border: 1px solid rgba(0, 0, 0, 0.02);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mm-card:active {
    background: #F1F5F9;
    transform: scale(0.98);
}

.mm-card-icon {
    width: 40px;
    height: 40px;
    background: #FFFFFF;
    border: 1px solid var(--mm-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mm-accent);
    flex-shrink: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.mm-card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mm-card-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--mm-text);
}

.mm-card-desc {
    font-size: 0.8125rem;
    color: var(--mm-text-muted);
    line-height: 1.4;
}

/* --- SIMPLE LINKS --- */
.mm-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    text-decoration: none;
    color: var(--mm-text);
    font-weight: 600;
    border-radius: 12px;
    transition: background 0.3s ease;
}

.mm-link:active {
    background: #F8FAFC;
}

/* --- FOOTER CTA --- */
.mm-footer {
    padding: 24px;
    border-top: 1px solid var(--mm-border);
    background: #FFFFFF;
}

.mm-cta {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    background: var(--mm-accent);
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 600;
    border-radius: 14px;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
    transition: all 0.3s ease;
}

.mm-cta:active {
    transform: translateY(2px);
    box-shadow: 0 5px 10px rgba(99, 102, 241, 0.1);
}

/* --- BODY LOCK --- */
body.mm-open {
    overflow: hidden;
}

/* --- MENU TOGGLE (HAMBURGER) --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: #F8FAFC;
    border: 1px solid var(--mm-border);
    border-radius: 12px;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--mm-text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle span:nth-child(2) {
    width: 70%;
    margin-left: auto;
}

.menu-toggle:active {
    transform: scale(0.9);
    background: #F1F5F9;
}

@media (max-width: 1024px) {
    .menu-toggle {
        display: flex;
    }
}

/* Hide current mobile menu toggle styles to allow new one */
@media (max-width: 1024px) {
    .header__nav.open {
        display: none !important;
    }
}

/* --- MOBILE SOCIAL LINKS --- */
.mm-social {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.mm-social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mm-text-muted);
    background: #F8FAFC;
    border: 1px solid var(--mm-border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.mm-social-link:active {
    color: var(--mm-accent);
    border-color: var(--mm-accent);
    background: rgba(99, 102, 241, 0.05);
    transform: scale(0.95);
}

