* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* ===================== Header Wrapper (fixed) ===================== */
.header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    margin: 0;
    padding: 0;
    border-top: none;
}

.header-wrapper.scrolled .header {
    background: rgba(0, 8, 119, .596);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all .3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}

.header-wrapper.scrolled .top-bar {
    display: none;
}

.top-bar,
.header {
    vertical-align: top;
}

/* ===================== Top Sub Bar ===================== */
.top-bar {
    background: linear-gradient(135deg, #000555 0%, #000333 100%);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    padding: 0;
    transition: height .3s ease, opacity .3s ease, padding .3s ease;
}

.top-bar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 2rem;
    height: 40px;
}

.top-bar-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 0;
}

.top-bar-item {
    position: relative;
}

.top-bar-link {
    color: rgba(255, 255, 255, .8);
    text-decoration: none;
    padding: .75rem 1rem;
    display: flex;
    align-items: center;
    font-weight: 400;
    font-size: .85rem;
    transition: all .3s ease;
    border-radius: 4px;
    position: relative;
}

.top-bar-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, .1);
    transform: translateY(-1px);
}

.top-bar-link::before {
    content: '';
    margin-right: 8px;
    width: 12px;
    height: 12px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: .7;
    transition: opacity .3s ease;
}

.top-bar-link:hover::before {
    opacity: 1;
}

/* icons */
.top-bar-link[href="#remote-support"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E");
}

.top-bar-link[href="#customer-portal"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
}

.top-bar-link[href="#employee-portal"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M16 4c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2zM4 18v-4h3v-2.5c0-.8.7-1.5 1.5-1.5h7c.8 0 1.5.7 1.5 1.5V14h3v4h4v2H0v-2h4zm12.5-11.5c.8 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5S15 8.8 15 8s.7-1.5 1.5-1.5zM7.5 6.5C8.3 6.5 9 7.2 9 8s-.7 1.5-1.5 1.5S6 8.8 6 8s.7-1.5 1.5-1.5z'/%3E%3C/svg%3E");
}

.top-bar-link[href="#search"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E");
}

.top-bar-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, .2);
}

/* ===================== Primary Header Row ===================== */
.header {
    background: linear-gradient(135deg, #000777 0%, #000555 100%);
    padding: 0;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 7, 119, .25);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 70px;
    gap: 1rem;
}

.logo {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -.5px;
}

.logo img {
    display: block;
    height: 56px;
    width: auto;
}

/* ===================== Desktop Nav ===================== */
.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    padding: 1.5rem 1.5rem;
    display: block;
    font-weight: 500;
    font-size: .95rem;
    transition: all .3s ease;
    border-radius: 4px;
    position: relative;
    white-space: nowrap;
}

.nav-link:hover {
    background: rgba(255, 255, 255, .15);
    transform: translateY(-1px);
}

.nav-link.has-dropdown::after {
    content: '▼';
    margin-left: 8px;
    font-size: .7rem;
    transition: all .3s cubic-bezier(.16, 1, .3, 1);
    opacity: .8;
}

.nav-item:hover .nav-link.has-dropdown::after {
    transform: rotate(180deg);
    opacity: 1;
}

/* Dropdowns */
.dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #fff;
    min-width: 380px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .15), 0 0 0 1px rgba(0, 0, 0, .05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px) scale(.95);
    transition: all .4s cubic-bezier(.16, 1, .3, 1);
    z-index: 1000;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.dropdown.wide {
    min-width: 600px;
    display: flex;
}

.dropdown.wide .dropdown-content {
    display: flex;
    width: 100%;
    gap: 0;
}

.dropdown.wide .dropdown-column {
    flex: 1;
    padding: 1.5rem 2rem;
}

.dropdown.wide .dropdown-column:not(:last-child) {
    border-right: 1px solid #f1f5f9;
}

.dropdown::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 20px;
    width: 16px;
    height: 16px;
    background: #fff;
    transform: rotate(45deg);
    box-shadow: -2px -2px 5px rgba(0, 0, 0, .1);
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-content {
    padding: 1.5rem 0;
    position: relative;
    z-index: 2;
}

.dropdown-section {
    padding: 0 2rem 1.5rem 2rem;
    position: relative;
}

.dropdown-section:not(:last-child) {
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 1.5rem;
}

.dropdown-section:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 2rem;
    right: 2rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}

.dropdown-section.featured {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    margin: -1.5rem -2rem 1.5rem -2rem;
    padding: 2rem;
    border-bottom: none;
}

.dropdown-section.featured::after {
    display: none;
}

/* Grid option */
.dropdown-section.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 0 2rem 1.5rem 2rem;
}

.dropdown-section.grid .dropdown-link {
    margin: 0;
    padding: .75rem;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
    background: #fff;
    transition: all .3s ease;
}

.dropdown-section.grid .dropdown-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, .15);
    border-color: #f97316;
}

.dropdown-title {
    color: #f97316;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    position: relative;
}

.dropdown-title::before {
    content: '';
    width: 3px;
    height: 16px;
    background: linear-gradient(135deg, #f97316, #fb923c);
    border-radius: 2px;
    margin-right: 12px;
    box-shadow: 0 2px 4px rgba(249, 115, 22, .3);
}

.dropdown-link {
    color: #475569;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: .75rem 0;
    font-size: .9rem;
    font-weight: 500;
    transition: all .3s cubic-bezier(.16, 1, .3, 1);
    line-height: 1.4;
    border-radius: 6px;
    margin: 0 -.5rem;
    padding-left: .5rem;
    padding-right: .5rem;
    position: relative;
    overflow: hidden;
}

.dropdown-link.with-icon::before {
    content: '';
    width: 16px;
    height: 16px;
    margin-right: 12px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: .6;
    transition: opacity .3s ease;
}

.dropdown-link.with-icon:hover::before {
    opacity: 1;
}

.dropdown-link .link-desc {
    font-size: .75rem;
    color: #94a3b8;
    font-weight: 400;
    line-height: 1.3;
    margin-top: 2px;
}

.dropdown-link.has-desc {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem .5rem;
}

.dropdown-link.has-desc .link-title {
    font-weight: 600;
    color: #1e293b;
}

.dropdown-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg, #f97316, transparent);
    transition: width .3s ease;
}

.dropdown-link::after {
    content: '→';
    opacity: 0;
    margin-left: auto;
    color: #f97316;
    font-weight: 700;
    transform: translateX(-10px);
    transition: all .3s ease;
}

.dropdown-link:hover {
    color: #1e293b;
    background: linear-gradient(135deg, #fff7ed, #fed7aa);
    transform: translateX(8px);
    padding-left: 1rem;
}

.dropdown-link:hover::before {
    width: 3px;
}

.dropdown-link:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* CTA */
.cta-button {
    background: linear-gradient(135deg, #f97316, #fb923c);
    white-space: nowrap;
    color: #fff;
    border: 2px solid #f97316;
    padding: .75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: .9rem;
    transition: all .3s ease;
    margin-left: 1rem;
    box-shadow: 0 2px 8px rgba(249, 115, 22, .3);
}

.cta-button:hover {
    background: linear-gradient(135deg, #ea580c, #f97316);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, .4);
    border-color: #ea580c;
}

/* Pattern */
.dropdown::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(0, 7, 119, .02) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(249, 115, 22, .02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

/* Hover underline */
.nav-item {
    position: relative;
}

.nav-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    transition: all .3s ease;
    transform: translateX(-50%);
}

.nav-item:hover::before {
    width: 80%;
}

/* ===================== Hamburger & Mobile Menu ===================== */
/* Hidden on desktop by default (specific + important to beat old rules) */
.header .nav-container>.hamburger {
    display: none !important;
    appearance: none;
    -webkit-appearance: none;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.header .nav-container>.hamburger span {
    width: 24px;
    height: 2px;
    background: #fff;
    margin: 0;
    flex: 0 0 auto;
}

/* Button animation */
.hamburger.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
    opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Panel */
.mobile-menu {
    position: fixed;
    inset: 0 0 0 30%;
    max-width: 420px;
    margin-left: auto;
    background: #0b0f1a;
    color: #fff;
    z-index: 1100;
    transform: translateX(100%);
    transition: transform .3s ease;
    padding: 16px 16px 28px;
    overflow-y: auto;
    box-shadow: -12px 0 30px rgba(0, 0, 0, .35);
    pointer-events: none;
    /* closed: ignore clicks */
}

.mobile-menu.open {
    transform: translateX(0);
    pointer-events: auto;
}

.mobile-menu[hidden] {
    display: none;
}

/* actually removed when hidden */

/* Links */
.mobile-links {
    list-style: none;
    margin: 0;
    padding: 6px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mobile-links a,
.sub-toggle {
    display: block;
    width: 100%;
    text-align: left;
    text-decoration: none;
    border: 0;
    background: transparent;
    color: #e5e7eb;
    font-weight: 600;
    font-size: 1rem;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
}

.mobile-links a:hover,
.sub-toggle:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.cta-link {
    background: linear-gradient(135deg, #f97316, #fb923c);
    color: #fff !important;
    text-align: center;
    border-radius: 999px;
}

.divider {
    height: 1px;
    background: rgba(255, 255, 255, .1);
    margin: 8px 0;
}

/* Accordions */
.has-sub .sub-list {
    list-style: none;
    margin: 0;
    padding: 0 0 8px 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
}

.has-sub.open .sub-list {
    max-height: 600px;
}

.sub-title {
    display: block;
    color: #a7b0c2;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .04em;
    margin: 10px 12px 2px;
}

/* Overlay (doesn't catch clicks when hidden) */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 1090;
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}

.menu-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.menu-overlay[hidden] {
    display: none !important;
}

/* ===================== Responsive ===================== */
@media (max-width:768px) {
    .top-bar {
        display: none !important;
    }

    /* move these to mobile menu */
    .desktop-nav,
    .nav-menu,
    .cta-button {
        display: none !important;
    }

    .header .nav-container>.hamburger {
        display: inline-flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        width: 44px;
        height: 44px;
        line-height: 0;
    }

    .nav-container {
        height: 60px;
        padding: 0 1rem;
        gap: .5rem;
    }

    .logo img {
        height: 40px;
        max-width: 180px;
        width: auto;
    }
}

/* Full-width on tiny screens */
@media (max-width:420px) {
    .mobile-menu {
        inset: 0;
        max-width: none;
    }
}

/* Accessibility */
@media (prefers-reduced-motion:reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}

:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
    border-radius: 6px;
}