/* =========================================
   MOBILE MENU - DEFINITIEVE STYLING
   Updated: January 2026 - Border Restored
   ========================================= */

/* --- 1. VARIABELEN & CONFIG --- */

:root {
    --mobile-nav-bg: rgba(7, 38, 76, 0.6);
    --mobile-nav-border: rgba(255, 255, 255, 0.25);
    --mobile-item-border: rgba(238, 238, 238, 0.4);
    --white-jrma: #ffffff;
    --navy-jrma: #07264c;
    --orange-jrma: #e33101;
    --orange-light: #fe4c1c;
    --font-body: "Sora", sans-serif;
}

/* --- 2. MENU CONTAINER (De Overlay) --- */

.mobile-menu-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: var(--mobile-nav-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: all 0.3s ease-in-out;
}

.mobile-menu-container.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* --- 3. TOP BAR (Binnenin Menu) --- */

.mobile-menu-top {
    height: 80px;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--mobile-nav-border);
    flex-shrink: 0;
}

.mobile-logo img {
    height: 3rem; 
    width: auto;
    display: block;
}

.mobile-menu-close {
    background-color: transparent;
    border: none;
    padding: 0;
    height: 48px; 
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    gap: 8px;
}

.close-label {
    color: var(--white-jrma);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
}

.mobile-menu-close svg {
    width: 24px;
    height: 24px;
    display: block;
}

/* --- 4. MENU ITEMS --- */

.mobile-menu-content {
    padding: 24px 0;
    flex-grow: 1;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    padding: 0 24px;
}

.mobile-nav-list > li > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px 12px 18px;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--white-jrma);
    text-decoration: none;
    font-weight: 400;
    border-bottom: 1px solid var(--mobile-item-border);
    transition: background-color 0.2s ease;
}

.mobile-nav-list > li > a:hover,
.mobile-nav-list > li.current-menu-item > a {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-nav-list .menu-item-has-children > a::after {
    content: '';
    width: 24px;
    height: 24px;
    background-color: var(--white-jrma);
    transition: transform 0.3s ease;
    -webkit-mask: url('data:image/svg+xml;utf8,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8.59 16.59L13.17 12L8.59 7.41L10 6L16 12L10 18L8.59 16.59Z" fill="white"/></svg>') no-repeat center;
    mask: url('data:image/svg+xml;utf8,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8.59 16.59L13.17 12L8.59 7.41L10 6L16 12L10 18L8.59 16.59Z" fill="white"/></svg>') no-repeat center;
}

.mobile-nav-list .menu-item-has-children.open > a::after {
    transform: rotate(90deg);
}

/* --- 5. SUBMENU --- */

.mobile-nav-list .sub-menu {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: var(--white-jrma);
    padding: 24px 0;
    margin-top: -1px;
}

.mobile-nav-list .menu-item-has-children.open .sub-menu {
    display: block;
}

.mobile-nav-list .sub-menu li {
    border-bottom: 1px solid var(--mobile-item-border);
}

.mobile-nav-list .sub-menu li:last-child {
    border-bottom: none;
}

.mobile-nav-list .sub-menu li a {
    display: block;
    padding: 14px 18px 12px 18px;
    color: var(--navy-jrma);
    font-family: var(--font-body);
    font-size: 16px;
    text-decoration: none;
    font-weight: 400;
}

.mobile-nav-list .sub-menu li a:hover {
    color: var(--orange-jrma);
    background-color: rgba(238, 238, 238, 0.3);
}

/* --- 6. BOTTOM ACTIONS --- */

.mobile-bottom-actions {
    margin-top: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-cta-btn {
    display: flex;
    align-items: stretch;
    text-decoration: none;
    overflow: hidden;
    height: 50px;
}

.cta-text {
    background-color: var(--orange-jrma);
    color: var(--white-jrma);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    padding: 0 18px;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.cta-icon-box {
    background-color: var(--orange-light);
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cta-icon-box img, .cta-icon-box svg {
    width: 24px;
    height: 24px;
}

.mobile-cta-btn:hover .cta-text {
    background-color: #b62701;
}

/* --- 7. HAMBURGER TOGGLE --- */

.menu-toggle {
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    gap: 8px;
    padding: 8px;
    transition: opacity 0.3s ease;
}

.menu-label {
    color: var(--white-jrma);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -0.02em;
}

.menu-toggle:hover {
    opacity: 0.8;
}

.menu-toggle img {
    filter: brightness(0) invert(1);
}

/* --- 8. LANGUAGE SWITCHER STYLING (HERSTELD) --- */

.mobile-language-selector {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    
    /* BORDER & BOX STYLING TERUGGEZET */
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    padding: 12px 16px;
    
    color: var(--white-jrma);
    font-family: var(--font-body);
    font-size: 16px;
    flex-wrap: wrap; /* Zorgt dat dropdown eronder komt */
    transition: background 0.3s ease;
}

.mobile-language-selector:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-language-selector .lang-icon {
    margin-right: 12px;
}

.mobile-language-selector .current-lang {
    margin-right: auto;
    font-weight: 500;
}

.mobile-language-selector .lang-arrow {
    width: 12px;
    height: auto;
    transition: transform 0.3s ease;
}

.mobile-language-selector.open .lang-arrow {
    transform: rotate(180deg);
}

/* Dropdown Lijst */
.lang-dropdown {
    display: none;
    width: 100%;
    list-style: none;
    padding: 10px 0 0 27px; /* Inspringen */
    margin: 0;
    flex-basis: 100%;
}

.mobile-language-selector.open .lang-dropdown {
    display: block;
    animation: fadeInDropdown 0.3s ease;
}

.lang-dropdown li {
    margin-bottom: 8px;
}

.lang-dropdown li:last-child {
    margin-bottom: 0;
}

.lang-dropdown li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 15px;
    display: block;
    transition: color 0.3s ease;
}

.lang-dropdown li a:hover {
    color: var(--orange-jrma);
}

@keyframes fadeInDropdown {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}