/* ===== NAVIGATION STYLES ===== */
.nav-glass {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(226,232,240,0.6);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.nav-glass.scrolled {
    background: rgba(255,255,255,0.97);
    box-shadow: 0 4px 12px -2px rgba(0,0,0,0.08);
}

/* Nav links */
.nav-link {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 8px 14px;
    font-size: 13.5px; font-weight: 500; color: #475569;
    border-radius: 10px;
    transition: all 0.2s ease;
    position: relative;
    cursor: pointer; border: none; background: none;
}
.nav-link::after {
    content: ''; position: absolute; bottom: 2px; left: 14px; right: 14px;
    height: 2px; background: #0f766e; border-radius: 1px;
    transform: scaleX(0); transform-origin: center;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-link:hover { color: #0f766e; background: rgba(240,253,250,0.6); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link-active { color: #0f766e !important; }
.nav-link-active::after { transform: scaleX(1) !important; }

/* Nav CTA */
.nav-cta-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 20px;
    font-size: 13px; font-weight: 600; color: #fff;
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
    border-radius: 10px;
    box-shadow: 0 2px 8px -2px rgba(15,118,110,0.35);
    transition: all 0.25s ease;
    text-decoration: none;
}
.nav-cta-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px -2px rgba(15,118,110,0.45); }

/* Mega dropdown */
.nav-mega-panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%; transform: translateX(-50%) translateY(8px);
    min-width: 720px;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(226,232,240,0.7);
    border-radius: 20px;
    box-shadow: 0 20px 60px -12px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}
.nav-mega-panel::before {
    content: ''; position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
    width: 16px; height: 16px; background: white;
    border: 1px solid rgba(226,232,240,0.7);
    border-bottom: none; border-right: none;
    transform: translateX(-50%) rotate(45deg);
    border-radius: 3px 0 0 0;
}
.nav-dropdown-parent:hover .nav-mega-panel,
.nav-dropdown-parent.open .nav-mega-panel {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.nav-dropdown-parent:hover .nav-caret,
.nav-dropdown-parent.open .nav-caret { transform: rotate(180deg); }

/* Safe hover zone bridge */
.nav-dropdown-parent::after {
    content: ''; position: absolute;
    top: 100%; left: 0; right: 0; height: 16px;
}

/* Mega items */
.nav-mega-item {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 10px 12px; border-radius: 12px;
    transition: all 0.2s ease; text-decoration: none;
}
.nav-mega-item:hover { background: rgba(240,253,250,0.7); }
.nav-mega-icon {
    width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; flex-shrink: 0;
}
.nav-mega-title { font-size: 13px; font-weight: 600; color: #0f172a; margin-bottom: 1px; }
.nav-mega-desc { font-size: 11px; color: #94a3b8; line-height: 1.4; }

.nav-mega-item-compact {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 12px; border-radius: 10px;
    font-size: 13px; font-weight: 500; color: #475569;
    transition: all 0.2s ease; text-decoration: none;
}
.nav-mega-item-compact:hover { background: rgba(240,253,250,0.7); color: #0f766e; }

/* Hamburger */
.nav-hamburger { width: 20px; height: 14px; position: relative; }
.nav-hamburger span {
    position: absolute; left: 0; width: 100%; height: 2px;
    background: #334155; border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-hamburger span:nth-child(1) { top: 0; }
.nav-hamburger span:nth-child(2) { top: 6px; }
.nav-hamburger span:nth-child(3) { top: 12px; }
.nav-hamburger.active span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.active span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* Mobile overlay */
.nav-mobile-overlay {
    position: fixed; inset: 0; background: rgba(15,23,42,0.5);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    z-index: 65;
    transition: opacity 0.3s ease;
}
.nav-mobile-overlay.hidden { opacity: 0; pointer-events: none; }
.nav-mobile-overlay.visible { opacity: 1; pointer-events: auto; }

/* Mobile panel — full-screen slide-up */
.nav-mobile-panel {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    z-index: 70;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    display: flex; flex-direction: column;
}
.nav-mobile-panel.open { transform: translateX(0); }

/* Mobile panel header */
.nav-mobile-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(226,232,240,0.6);
    flex-shrink: 0;
}
.nav-mobile-close {
    width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: #f1f5f9; border: none; cursor: pointer;
    color: #64748b; font-size: 18px;
    transition: all 0.2s ease;
}
.nav-mobile-close:hover { background: #e2e8f0; color: #0f172a; }

/* Mobile panel body */
.nav-mobile-body {
    flex: 1; overflow-y: auto;
    padding: 16px 20px 0;
}

/* Mobile nav group label */
.nav-mobile-label {
    font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase; color: #94a3b8;
    padding: 0 4px; margin-bottom: 8px;
}

/* Mobile links — redesigned compact style */
.nav-mobile-link {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; border-radius: 12px;
    font-size: 15px; font-weight: 500; color: #1e293b;
    transition: all 0.2s ease; text-decoration: none;
    cursor: pointer; border: none; background: none; text-align: left;
    width: 100%;
}
.nav-mobile-link:hover, .nav-mobile-link:active { background: #f0fdfa; color: #0f766e; }

.nav-mobile-link .nav-mi {
    width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; font-size: 16px;
}

/* Mobile accordion */
.nav-mobile-accordion { padding-left: 12px; }
.nav-mobile-sub {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 14px; border-radius: 10px;
    font-size: 13.5px; font-weight: 500; color: #64748b;
    text-decoration: none; transition: all 0.2s ease;
}
.nav-mobile-sub:hover { background: #f0fdfa; color: #0f766e; }
.nav-mobile-sub-icon {
    width: 28px; height: 28px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; font-size: 13px;
}

/* Mobile panel footer — sticky CTAs */
.nav-mobile-footer {
    flex-shrink: 0;
    padding: 16px 20px 24px;
    border-top: 1px solid rgba(226,232,240,0.6);
    background: #fff;
}

