/* ============================================================
   Navigation Header — nh-*
   ============================================================ */

/* ===== Header bar ===== */
.nh {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 72px;
    background: #fff;
    z-index: 1000;
    transition: box-shadow 0.3s, background 0.3s;
    box-shadow: 0 1px 0 rgba(36,54,116,0.07);
}

/* Glass effect after scroll */
.nh.scrolled {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 2px 24px rgba(36,54,116,0.1);
}

.nh-inner {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 32px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 0;
}

/* ===== Logo ===== */
.nh-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
    margin-right: 20px;
    transition: opacity 0.18s;
}

.nh-logo:hover { opacity: 0.8; }

.nh-logo-img {
    width: 34px;
    height: 34px;
    display: block;
}

.nh-logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.18rem;
    font-weight: 400;
    color: #243674;
    white-space: nowrap;
}

/* ===== Desktop nav ===== */
.nh-nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nh-list {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Nav links — underline animation style */
.nh-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    color: #444;
    text-decoration: none;
    padding: 8px 13px;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.18s;
    white-space: nowrap;
    line-height: 1;
    border-radius: 8px;
}

.nh-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 13px;
    right: 13px;
    height: 2px;
    background: #243674;
    border-radius: 1px;
    transform: scaleX(0);
    transition: transform 0.22s cubic-bezier(0.4,0,0.2,1);
}

.nh-link:hover {
    color: #243674;
}

.nh-link:hover::after,
.nh-item.open > .nh-link::after,
.nh-item.active > .nh-link::after {
    transform: scaleX(1);
}

.nh-item.active > .nh-link {
    color: #243674;
    font-weight: 500;
}

.nh-chevron {
    width: 13px;
    height: 13px;
    transition: transform 0.22s;
    flex-shrink: 0;
    color: #bbb;
}

.nh-item.open > .nh-link .nh-chevron {
    transform: rotate(180deg);
    color: #243674;
}

/* ===== Phone button ===== */
.nh-phone {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.93rem;
    font-weight: 500;
    color: #243674;
    text-decoration: none;
    padding: 9px 14px;
    border-radius: 10px;
    border: 1.5px solid rgba(36,54,116,0.18);
    background: none;
    cursor: pointer;
    white-space: nowrap;
    margin-left: 8px;
    flex-shrink: 0;
    transition: background 0.18s, border-color 0.18s, transform 0.15s;
}

.nh-phone svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.nh-phone:hover {
    background: #f0f3fb;
    border-color: rgba(36,54,116,0.32);
    transform: translateY(-1px);
}

/* ===== Dropdowns ===== */
.nh-dropdown {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    width: 100vw;
    background: #fff;
    box-shadow: 0 12px 48px rgba(36,54,116,0.12);
    border-radius: 0 0 24px 24px;
    border-top: 3px solid #243674;
    z-index: 999;
}

.nh-dropdown.open {
    display: block;
    animation: nh-drop-in 0.2s cubic-bezier(0.4,0,0.2,1);
}

@keyframes nh-drop-in {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Products dropdown */
.nh-drop-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 40px 28px;
    display: flex;
    gap: 32px;
}

.nh-drop-section {
    flex: 2 1 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nh-drop-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #243674;
    opacity: 0.5;
}

.nh-drones-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nh-drone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 8px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: #243674;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    text-align: center;
    line-height: 1.3;
    transition: background 0.18s, transform 0.2s, box-shadow 0.2s;
}

.nh-drone:hover {
    background: #f0f3fb;
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(36,54,116,0.1);
}

.nh-drone img {
    width: 78px;
    height: 58px;
    object-fit: contain;
    display: block;
    transition: transform 0.2s;
}

.nh-drone:hover img {
    transform: scale(1.06);
}

/* Links sidebar */
.nh-drop-links {
    flex: 1 1 220px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-left: 1px solid rgba(36,54,116,0.08);
    padding-left: 32px;
    min-width: 220px;
    justify-content: center;
}

.nh-drop-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: #333;
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    width: 100%;
    line-height: 1.4;
}

.nh-drop-link:hover {
    background: #f0f3fb;
    color: #243674;
}

.nh-drop-link--cta {
    color: #243674;
    font-weight: 500;
    margin-top: 4px;
}

.nh-drop-link--cta::before {
    content: '→ ';
}

/* Permits accordion */
.nh-permits {
    display: flex;
    flex-direction: column;
}

.nh-permits-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.nh-permits-chevron {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    color: #bbb;
    transition: transform 0.2s;
}

.nh-permits-toggle.open .nh-permits-chevron {
    transform: rotate(180deg);
    color: #243674;
}

.nh-permits-sub {
    display: none;
    flex-direction: column;
    gap: 2px;
    padding: 4px 0 4px 8px;
}

.nh-permits-sub.open {
    display: flex;
}

.nh-permits-link {
    font-size: 0.88rem !important;
    color: #888 !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    padding-left: 14px !important;
}

/* Services dropdown */
.nh-drop-inner--services {
    justify-content: center;
    padding: 28px 40px 32px;
}

.nh-services-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 920px;
    width: 100%;
}

.nh-service-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 20px;
    border-radius: 16px;
    background: #f5f7fd;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.nh-service-card:hover {
    background: #eaeffa;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(36,54,116,0.1);
    border-left-color: #243674;
}

.nh-service-icon {
    width: 36px;
    height: 36px;
    background: rgba(36,54,116,0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    flex-shrink: 0;
    transition: background 0.2s;
}

.nh-service-card:hover .nh-service-icon {
    background: rgba(36,54,116,0.14);
}

.nh-service-icon svg {
    width: 18px;
    height: 18px;
    color: #243674;
}

.nh-service-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.98rem;
    font-weight: 500;
    color: #243674;
    margin: 0 0 8px;
}

.nh-service-desc {
    font-size: 0.86rem;
    color: #666;
    line-height: 1.55;
    margin: 0 0 12px;
    flex: 1;
}

.nh-service-more {
    font-size: 0.86rem;
    color: #4a6cb3;
    font-weight: 500;
}

/* ===== Hamburger ===== */
.nh-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    margin-left: auto;
    flex-shrink: 0;
    transition: background 0.15s;
}

.nh-burger:hover { background: #f0f3fb; }

.nh-burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #243674;
    border-radius: 2px;
    transition: transform 0.28s cubic-bezier(0.4,0,0.2,1), opacity 0.2s;
    transform-origin: center;
}

/* Hamburger → × when open */
.nh-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nh-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nh-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Overlay ===== */
.nh-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15,29,69,0.4);
    z-index: 1001;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.nh-overlay.active {
    display: block;
    animation: nh-overlay-in 0.22s ease;
}

@keyframes nh-overlay-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ===== Mobile menu ===== */
.nh-mobile {
    position: fixed;
    top: 0;
    right: -360px;
    width: 320px;
    max-width: 90vw;
    height: 100dvh;
    background: #fff;
    z-index: 1002;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 48px rgba(36,54,116,0.16);
    transition: right 0.3s cubic-bezier(0.4,0,0.2,1);
    overflow: hidden;
}

.nh-mobile.open { right: 0; }

.nh-mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(36,54,116,0.07);
    flex-shrink: 0;
}

.nh-mobile-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nh-mobile-logo img {
    width: 28px;
    height: 28px;
    display: block;
}

.nh-mobile-logo span {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    color: #243674;
}

.nh-mobile-close {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    color: #777;
    transition: background 0.15s, color 0.15s;
}

.nh-mobile-close:hover {
    background: #f0f3fb;
    color: #243674;
}

.nh-mobile-body {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.nh-mobile-list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.nh-mobile-item {
    border-bottom: 1px solid rgba(36,54,116,0.05);
}

.nh-mobile-item:last-child { border-bottom: none; }

.nh-mobile-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 13px 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.97rem;
    font-weight: 400;
    color: #243674;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s;
}

.nh-mobile-link:hover { background: #f5f7fd; }

.nh-mob-chevron {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    color: #bbb;
    transition: transform 0.22s, color 0.18s;
}

.nh-mobile-item--sub.open .nh-mob-chevron {
    transform: rotate(180deg);
    color: #243674;
}

.nh-mobile-sub {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0 0 8px;
    background: #f8f9fe;
}

.nh-mobile-item--sub.open > .nh-mobile-sub { display: block; }

.nh-mobile-sublink {
    display: block;
    padding: 9px 20px 9px 34px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: #555;
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
}

.nh-mobile-sublink:hover {
    color: #243674;
    background: #eef1fb;
}

/* Mobile menu footer */
.nh-mobile-foot {
    flex-shrink: 0;
    padding: 16px 20px 24px;
    border-top: 1px solid rgba(36,54,116,0.07);
}

.nh-mob-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.97rem;
    font-weight: 500;
    color: #243674;
    text-decoration: none;
    padding: 12px;
    border-radius: 12px;
    border: 1.5px solid rgba(36,54,116,0.18);
    transition: background 0.15s, border-color 0.15s;
}

.nh-mob-phone:hover {
    background: #f0f3fb;
    border-color: rgba(36,54,116,0.3);
}

.nh-mob-phone svg {
    width: 16px;
    height: 16px;
}

/* ===== Responsive ===== */
@media (max-width: 1220px) {
    .nh-nav    { display: none; }
    .nh-burger { display: flex; }
}

@media (max-width: 600px) {
    .nh-inner     { padding: 0 16px; }
    .nh-logo-text { font-size: 1rem; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
    .nh,
    .nh-logo,
    .nh-link,
    .nh-link::after,
    .nh-chevron,
    .nh-phone,
    .nh-drop-link,
    .nh-drone,
    .nh-service-card,
    .nh-burger span,
    .nh-mobile,
    .nh-dropdown {
        transition: none;
        animation: none;
    }
    .nh-dropdown {
        animation: none;
    }
    .nh-mobile {
        transition: none;
    }
}
