/* NM3 Lovable navigation fidelity — load AFTER site.css */
.nm3-nav-group {
    position: relative;
}

.nm3-nav-trigger {
    cursor: pointer;
}

.nm3-nav-trigger[aria-expanded="true"] {
    background: var(--navy-line);
}

.nm3-dropdown[hidden], .nm3-mobile-sheet[hidden], [data-icon-sun][hidden], [data-icon-moon][hidden] {
    display: none !important;
}

.nm3-dropdown {
    position: absolute;
    top: calc(100% + 20px);
    left: 0;
    width: 320px;
    padding: 12px;
    background: var(--navy-deep);
    border: 1px solid var(--navy-line);
    color: var(--navy-foreground);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .24);
    z-index: 80;
}

.nm3-dropdown a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    min-height: 44px;
    font-size: 14px;
    line-height: 1.4;
    color: var(--navy-foreground);
    text-decoration: none;
    white-space: nowrap;
}

.nm3-dropdown a svg {
    flex-shrink: 0;
}

.nm3-dropdown a:hover, .nm3-dropdown a:focus-visible {
    background: var(--navy-line);
}

.nm3-mobile-sheet {
    position: fixed;
    z-index: 100;
    inset: 0 0 0 auto;
    width: 100%;
    max-width: 512px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--navy-deep);
    color: var(--navy-foreground);
    padding: 48px 24px 40px;
    box-shadow: -18px 0 50px rgba(0, 0, 0, .3);
}

.nm3-mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 18px;
}

.nm3-mobile-head button {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 25px;
    cursor: pointer;
    color: var(--navy-foreground);
}

.nm3-mobile-sheet nav {
    margin-top: 32px;
}

.nm3-mobile-home {
    display: block;
    padding: 16px 0;
    font-size: 24px;
    font-weight: 600;
    border-bottom: 1px solid var(--navy-line);
}

.nm3-mobile-section {
    padding: 24px 0;
    border-bottom: 1px solid var(--navy-line);
}

.nm3-mobile-section p {
    margin: 0 0 12px;
    font-size: 12px;
    letter-spacing: .07em;
    color: var(--accent);
    text-transform: uppercase;
}

.nm3-mobile-section a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
    font-size: 18px;
    line-height: 1.45;
    color: var(--navy-foreground);
}

.nm3-mobile-section a span:last-child {
    font-size: 16px;
    flex-shrink: 0;
}

.nm3-mobile-contact {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
    padding: 16px;
    background: var(--navy-foreground);
    color: var(--navy);
    font-weight: 600;
}

.nm3-mobile-phone {
    display: block;
    margin-top: 24px;
    color: var(--navy-muted);
}

html.nm3-menu-open, html.nm3-menu-open body {
    overflow: hidden;
}

@media (min-width: 1024px) {
    .nm3-mobile-sheet {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nm3-mobile-sheet {
        scroll-behavior: auto;
    }
}
