
.acn-navbar {
    width: 100%;
    z-index: 99999;
    background: var(--acn-bg, #fff);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
    font-family: inherit;
}

.acn-inner {
    width: min(calc(100% - 40px), var(--acn-max, 1340px));
    min-height: 100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.acn-logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    max-width: 260px;
}

.acn-logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 76px;
    object-fit: contain;
}

.acn-navigation {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.acn-menu,
.acn-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.acn-menu {
    display: flex;
    align-items: center;
    gap: clamp(12px, 1.6vw, 28px);
}

.acn-menu > li {
    position: relative;
    margin: 0;
    padding: 0;
}

.acn-menu a {
    display: flex;
    align-items: center;
    color: var(--acn-text, #003769);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
    padding: 16px 0;
    transition: color .18s;
}

.acn-menu a:hover,
.acn-menu li.current-menu-item > a,
.acn-menu li.current_page_item > a,
.acn-menu li.current-menu-parent > a,
.acn-menu li.current-menu-ancestor > a,
.acn-menu li.current_page_parent > a,
.acn-menu li.current_page_ancestor > a {
    color: var(--acn-active, #ea1e2c);
}

.acn-menu li.menu-item-has-children > a:after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin: 0 0 4px 9px;
}

.acn-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--acn-bg, #fff);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    padding: 8px 0;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .15s, transform .15s, visibility .15s;
}

.acn-menu li:hover > .sub-menu,
.acn-menu li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.acn-menu .sub-menu li {
    position: relative;
}

.acn-menu .sub-menu a {
    padding: 13px 20px;
    white-space: normal;
    font-size: 15px;
}

.acn-menu .sub-menu .sub-menu {
    top: 0;
    left: 100%;
}

/* Hamburger button */
.acn-toggle {
    display: none;
    background: transparent;
    border: 0;
    padding: 12px;
    cursor: pointer;
    color: var(--acn-text, #003769);
}

.acn-burger,
.acn-burger:before,
.acn-burger:after {
    display: block;
    width: 25px;
    height: 2px;
    background: currentColor;
    position: relative;
}

.acn-burger:before,
.acn-burger:after {
    content: "";
    position: absolute;
    left: 0;
}

.acn-burger:before {
    top: -7px;
}

.acn-burger:after {
    top: 7px;
}

/* Tablet and smaller desktop */
@media (max-width: 1100px) {
    .acn-inner {
        min-height: 86px;
        gap: 16px;
    }

    .acn-logo {
        max-width: 220px;
    }

    .acn-logo img {
        max-height: 68px;
    }

    .acn-menu {
        gap: 14px;
    }

    .acn-menu a {
        font-size: 14px;
    }
}

/* Mobile and tablet hamburger menu */
@media (max-width: 900px) {
    .acn-navbar {
        background: #fff;
    }

    .acn-inner {
        min-height: 78px;
        width: calc(100% - 32px);
        gap: 12px;
    }

    .acn-logo {
        max-width: 210px;
    }

    .acn-logo img {
        max-height: 62px;
    }

    /* Red hamburger on both mobile and tablet */
    .acn-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
        padding: 10px;
        color: #ea1e2c;
        border: 0;
        background: transparent;
    }

    .acn-burger,
    .acn-burger:before,
    .acn-burger:after {
        width: 19px;
        height: 2.5px;
        background: #ea1e2c;
    }

    .acn-burger:before {
        top: -6px;
    }

    .acn-burger:after {
        top: 6px;
    }

    .acn-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        margin: 0;
        background: #fff;
        box-shadow: 0 10px 18px rgba(0, 0, 0, .12);
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .acn-navbar.is-open .acn-navigation {
        display: block;
    }

    .acn-menu {
        display: block;
        padding: 8px 16px;
    }

    .acn-menu > li {
        border-bottom: 1px solid rgba(0, 0, 0, .07);
    }

    .acn-menu a {
        padding: 14px 8px;
        font-size: 16px;
    }

    .acn-menu li.menu-item-has-children > a {
        justify-content: space-between;
    }

    .acn-menu .sub-menu {
        display: none;
        position: static;
        min-width: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0 0 8px 14px;
        transition: none;
    }

    .acn-menu li.acn-submenu-open > .sub-menu {
        display: block;
    }

    .acn-menu .sub-menu a {
        padding: 11px 8px;
        font-size: 15px;
    }

    .acn-menu .sub-menu .sub-menu {
        left: auto;
        top: auto;
    }

    .acn-menu li:hover > .sub-menu {
        display: none;
    }

    .acn-menu li.acn-submenu-open > .sub-menu {
        display: block;
    }
}

/* Compact mobile header */
@media (max-width: 480px) {
    .acn-navbar {
        left: 14px;
        right: 14px;
        width: auto;
        top: 20px;
        border-radius: 0;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
    }

    .acn-inner {
        width: calc(100% - 36px);
        min-height: 60px;
        gap: 10px;
    }

    .acn-logo {
        max-width: 145px;
    }

    .acn-logo img {
        max-height: 42px;
    }

    .acn-toggle {
        padding: 10px;
        color: #ea1e2c;
        border: 0;
        background: transparent;
    }

    .acn-navigation {
        max-height: calc(100vh - 90px);
        left: 0;
        right: 0;
        background: #fff;
        border-top: 1px solid #edf0f3;
    }
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
    .acn-navbar * {
        transition: none !important;
    }
}

/* WordPress admin bar */
body.admin-bar #wpadminbar {
    z-index: 100000 !important;
}
