/**
 * Mobile Navigation - Clean & Minimal
 */

/* ===== Hamburger Button (matches original slicknav) ===== */
.mobile-nav-trigger {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10001;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 5px;
}

.mobile-nav-trigger:focus {
    outline: none;
}

.mobile-nav-trigger-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    gap: 5px;
}

.mobile-nav-trigger-line {
    width: 30px;
    height: 3px;
    background: #04dbec;
    border-radius: 0;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Hamburger → X */
.mobile-nav-trigger.is-active .mobile-nav-trigger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background: #04dbec;
}

.mobile-nav-trigger.is-active .mobile-nav-trigger-line:nth-child(2) {
    opacity: 0;
}

.mobile-nav-trigger.is-active .mobile-nav-trigger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background: #04dbec;
}

/* ===== Fullscreen Panel ===== */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    z-index: 10000;
    background: #fff;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-nav-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

/* ===== Container ===== */
.mobile-nav-container {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    padding: 100px 32px 40px;
}

/* ===== Logo ===== */
.mobile-nav-logo {
    position: absolute;
    top: 24px;
    left: 24px;
}

.mobile-nav-logo img {
    height: 44px;
    width: auto;
}

/* ===== Close Button ===== */
.mobile-nav-close {
    position: fixed;
    top: 23px;
    right: 20px;
    z-index: 10002;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 10px;
    color: #1a1a1a;
    display: none;
}

.mobile-nav-overlay.is-active .mobile-nav-close {
    display: block;
}

.mobile-nav-close:hover {
    color: #04dbec;
}

.mobile-nav-close:focus {
    outline: none;
}

.mobile-nav-close svg {
    display: block;
    width: 24px;
    height: 24px;
}

/* ===== Menu ===== */
.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-item {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-item:last-child {
    border-bottom: none;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #1a1a1a;
    text-decoration: none;
    padding: 20px 0;
    transition: color 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
    color: #04dbec;
}

/* Arrow for parent items */
.mobile-nav-item--has-children>.mobile-nav-link::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    margin-right: 4px;
}

.mobile-nav-item--has-children.is-open>.mobile-nav-link::after {
    transform: rotate(-135deg);
}

/* Submenu */
.mobile-nav-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-nav-item--has-children.is-open>.mobile-nav-submenu {
    max-height: 400px;
}

.mobile-nav-submenu li {
    border-bottom: none;
}

.mobile-nav-submenu-link {
    display: block;
    font-family: 'Muli', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #666;
    text-decoration: none;
    padding: 14px 0 14px 16px;
    border-left: 2px solid #f0f0f0;
    margin-left: 4px;
    transition: all 0.2s ease;
}

.mobile-nav-submenu-link:hover,
.mobile-nav-submenu-link:focus {
    color: #04dbec;
    border-left-color: #04dbec;
}

/* ===== Language Switch ===== */
.mobile-nav-lang {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
}

.mobile-nav-lang-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Muli', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.mobile-nav-lang-link:hover {
    color: #04dbec;
}

.mobile-nav-lang-link svg {
    width: 16px;
    height: 16px;
}

/* ===== Footer ===== */
.mobile-nav-footer {
    margin-top: auto;
    padding-top: 32px;
}

.mobile-nav-cta {
    display: block;
    width: 100%;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    color: #fff;
    background: #04dbec;
    padding: 16px 24px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.mobile-nav-cta:hover {
    background: #03c4d3;
    color: #fff;
}

.mobile-nav-user-actions {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 20px;
}

.mobile-nav-user-link {
    font-family: 'Muli', sans-serif;
    font-size: 14px;
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.mobile-nav-user-link:hover {
    color: #04dbec;
}

/* ===== Contact Info ===== */
.mobile-nav-contact-info {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
    text-align: center;
}

.mobile-nav-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Muli', sans-serif;
    font-size: 14px;
    color: #666;
    text-decoration: none;
    margin: 8px 0;
    transition: color 0.2s ease;
}

.mobile-nav-contact-link:hover {
    color: #04dbec;
}

.mobile-nav-contact-link svg {
    flex-shrink: 0;
}

.mobile-nav-address {
    font-family: 'Muli', sans-serif;
    font-size: 13px;
    color: #999;
    margin: 12px 0 0;
    line-height: 1.5;
}

/* ===== Legal Links ===== */
.mobile-nav-legal {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
    text-align: center;
    font-family: 'Muli', sans-serif;
    font-size: 12px;
    color: #999;
}

.mobile-nav-legal a {
    color: #999;
    text-decoration: none;
    transition: color 0.2s ease;
}

.mobile-nav-legal a:hover {
    color: #04dbec;
}

.mobile-nav-legal span {
    margin: 0 8px;
}

/* ===== Body Lock ===== */
body.mobile-nav-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .mobile-nav-trigger {
        display: flex;
    }

    .slicknav_menu,
    .mobile_menu {
        display: none !important;
    }
}

@media (max-width: 575px) {
    .mobile-nav-trigger {
        top: 23px;
        right: 15px;
        width: 44px;
        height: 44px;
    }

    .mobile-nav-container {
        padding: 80px 24px 32px;
    }

    .mobile-nav-logo {
        top: 18px;
        left: 18px;
    }

    .mobile-nav-logo img {
        height: 44px;
    }

    .mobile-nav-link {
        font-size: 16px;
        padding: 18px 0;
    }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {

    .mobile-nav-trigger,
    .mobile-nav-trigger-line,
    .mobile-nav-overlay,
    .mobile-nav-submenu {
        transition: none;
    }
}

/* ===== Print ===== */
@media print {

    .mobile-nav-trigger,
    .mobile-nav-overlay {
        display: none !important;
    }
}