﻿
nav.with-menu {
    padding-bottom: 0;
}


nav li.login-link:after {
    display:none;
}
nav li.login-link{
    float:right;
    margin-left:15px;
}
nav a.login-link {
    background:url(/images/login-link.png) 0 50% no-repeat;
    padding: 4px 0 4px 25px;
    display:inline-block;
    text-align:left;
}




header + .full-width {
    margin-top : -1em;
}

nav li:after {
    content : "|";
    color:#ccc;
    padding:0 10px;
}
nav li.no-separator:after {
    display:none;
}
nav li:last-child::after, nav li.no-border::after {
    display:none;
}

nav ul ul li::after {
    display:none;
}

nav {
    background:#025E73;
    margin-bottom:1em;
}
nav input[type="text"] {
    border:1px solid #ccc;
    padding:3px
}
nav ul {
    background:#025E73;
    padding:0;
    margin:0;
}
nav a {
    color:#fff;
    text-decoration:none;
}

nav a:last-child {
    border-right:none;
    margin-right:0;
}

nav .grid .unit {
    padding:0;
    background:#025E73;
}
   nav li  {
        display:inline-block;
        list-style-type:none;
        background:none;
        padding:0;
    }
   nav li.bold {
       font-weight:bold;
   }
   nav li.right{
       float:right;
   }

   nav ul a {
       padding:10px 0;
        display: inline-block;
   }
nav li ul  {
    display:none;
}
    nav ul li:hover a, nav ul li.current a {
        color: #E4FC86;
    }
nav ul li:hover ul {
    display:block;
    min-width:220px;
    position:absolute;
    z-index:3;
    background:#025E73;
    margin-top:0px;
    margin-left:-10px;
    padding-top:0;
    box-shadow:3px 3px 4px rgba(0,0,0,0.3);
}
    nav ul li:hover ul li {
        display:block;
        margin:0;
    }
    nav ul li:hover ul li a {
        display:block;
        background:none;
        padding:5px;
        padding-right:20px;
        padding-left:10px;
        color:#fff;
        border-top: 1px solid rgba(128,128,128,0.4);
    }
    nav ul li:hover ul li a:hover {
        background:#3A8192;
    }


.header-links {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.header-links > div {
    padding: 20px;
    display: flex;
    align-items: center;
}
.header-links a {
    color: #A6144B;
    margin-left:20px;
}
.header-links a.login-link:hover {
    text-decoration:underline;
}
.header-links .header-icon {
    fill: none;
    height: 1.1em;
    margin-right: 4px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    vertical-align: -0.18em;
    width: 1.1em;
}
.red-button {
    background: #A6144B;
    padding: 5px 12px;
    border-radius: 4px;
    border: 1px solid transparent;
    color: #fff !important;
}

nav.flex-nav {
    background: #fff;
    display: flex;
    position: relative;
    z-index: 50;
}
nav.flex-nav a {
    color: #000;
    display: inline-block;
    text-decoration: none;
}
nav.flex-nav .flex-nav-group {
    flex-grow: 1;
    background: #025E73;
    box-shadow: inset -1px 0 rgba(255,255,255,0.18);
}
nav.flex-nav .flex-nav-group:last-child {
    box-shadow: none;
}
nav.flex-nav .flex-nav-group > span {
    text-transform: uppercase;
    color: #A6144B;
    font-size: 18px;
    font-weight: bold;
    display: block;
    padding: 10px 20px;
    background: #fff;
    outline: 1px solid #fff;
}

nav.flex-nav .flex-nav-items {
    background: #025E73;
    display: flex;
    align-items: stretch;
    min-height: 44px;
}

nav.flex-nav .flex-nav-items a {
    color: #fff;
    padding: 12px 20px;
    height: 100%;
    box-sizing: border-box;
    font-size:14px;
    line-height: 20px;
    transition: background-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

.flex-nav-items > div:hover > a,
.flex-nav-items > div:focus-within > a,
nav.flex-nav .flex-nav-items a:hover,
nav.flex-nav .flex-nav-items a:focus {
    background: #014d5e;
    color: #fff;
    outline: none;
    box-shadow: inset 0px 0px 4px 0px #00222a;
}
nav.flex-nav .flex-nav-links {
    background: #fff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    min-width: 200px;
    width: auto;
    padding: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 100;
    transform: translateY(-4px);
    transition: opacity 150ms ease, transform 150ms ease, visibility 0s linear 150ms;
}
.flex-nav-items > div:hover .flex-nav-links,
.flex-nav-items > div:focus-within .flex-nav-links {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity 150ms ease, transform 150ms ease, visibility 0s linear 0s;
}
nav.flex-nav .flex-nav-links > div:first-child {
    display: block;
    padding: 6px 0;
}
nav .menu-transparent {
    display: none;
}

.flex-nav-items > div {
    display: inline-block;
    position: relative;
}
nav.flex-nav .flex-nav-links a {
    background: none;
    border: none;
    border-radius: 0;
    color: #333;
    display: block;
    font-size: 14px;
    height: auto;
    padding: 9px 20px;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 120ms ease, color 120ms ease, box-shadow 120ms ease;
}
nav.flex-nav .flex-nav-links a:hover {
    background: #FEF0F4;
    color: #A6144B;
    box-shadow: inset 3px 0 0 #A6144B;
    transform: none;
}
nav.flex-nav .flex-nav-links a:focus {
    background: #FEF0F4;
    color: #A6144B;
    box-shadow: inset 3px 0 0 #A6144B;
    outline: none;
}
nav.flex-nav a.nav-button {
    text-transform: uppercase;
    white-space: nowrap;
    color: white;
    height: auto;
    padding: 0;
    margin: 12px 20px;
}

nav.flex-nav a.nav-button span {
    background: #A6144B;
    padding: 3px 12px;
    border-radius:4px;
    border:1px solid transparent;
    transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
nav.flex-nav a.nav-button:hover {
    color:#fff;
}
nav.flex-nav a.nav-button:hover span {
    border-color:#fff;
    background: #870036;
}
nav.flex-nav a.nav-button:active span,
nav.flex-nav .flex-nav-items > div > a:active {
    transform: scale(0.96);
}

/* mobile nav */
.mobile-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    position: sticky;
    top: 0;
    z-index: 210;
    background: #fff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}
.mobile-nav a {
    flex-grow: 1;
}
#menu-toggle {
    width: 44px;
    height: 44px;
    max-width: 44px;
    margin-right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 8px;
    flex-shrink: 0;
    transition: background-color 0.2s ease;
}
#menu-toggle:hover,
#menu-toggle:focus {
    background: rgba(166, 20, 75, 0.08);
    outline: none;
}
#menu-toggle:focus-visible {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #A6144B;
}
#menu-toggle .hamburger-box {
    width: 24px;
    height: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
#menu-toggle .hamburger-line {
    display: block;
    height: 3px;
    width: 100%;
    background: #701B33;
    border-radius: 2px;
    transform-origin: center;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, width 0.25s ease;
}
.mobile-nav.open #menu-toggle .hamburger-line:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}
.mobile-nav.open #menu-toggle .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.mobile-nav.open #menu-toggle .hamburger-line:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}
#menu-toggle svg {
    display: none;
}
#menu-toggle svg:first-child {
    display: inline-block;
}
.mobile-nav.open #menu-toggle svg:last-child {
    display: inline-block;
}
.mobile-nav.open #menu-toggle svg:first-child {
    display: none;
}
.mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(2, 46, 55, 0.35);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 190;
    transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}
.mobile-nav-backdrop.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.35s ease, visibility 0s linear 0s;
}
.mobile-nav-items {
    position: relative;
    z-index: 200;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, visibility 0s linear 0.45s;
}
.mobile-nav.open + .mobile-nav-items,
.mobile-nav.open + .mobile-nav-backdrop + .mobile-nav-items,
.mobile-nav-items.open {
    max-height: calc(100vh - 72px);
    max-height: calc(100dvh - 72px);
    opacity: 1;
    visibility: visible;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, visibility 0s linear 0s;
}
#mobile-logo {
    max-width: 80%;
}
body.mobile-menu-open {
    overflow: hidden;
}
.mobile-nav-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background: linear-gradient(180deg, #fef8fa 0%, #fff 100%);
}
.mobile-login-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px !important;
    border-radius: 8px;
    border: 1px solid rgba(166, 20, 75, 0.2);
    color: #A6144B !important;
    font-weight: 600;
    text-decoration: none;
    background: #fff;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.mobile-login-link:hover,
.mobile-login-link:focus {
    background: #fef0f4;
    border-color: #A6144B;
    box-shadow: 0 4px 12px rgba(166, 20, 75, 0.12);
    transform: translateY(-1px);
    outline: none;
}
.mobile-login-icon {
    fill: none;
    height: 1.15em;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 1.15em;
    flex-shrink: 0;
}

@media(max-width: 900px) {
    .header-links, .flex-nav {
        display: none !important;
    }
}
@media(min-width: 901px) {
    .mobile-nav,
    .mobile-nav-backdrop {
        display: none !important;
    }
    .mobile-nav-items {
        display: none !important;
    }
}


.mobile-nav-items, .mobile-child-links {
    margin: 0;
    padding: 0;
}

.mobile-nav-items > ul {
    padding: 8px 0 16px;
}

.mobile-nav-items > ul > li {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.mobile-nav.open + .mobile-nav-items > ul > li,
.mobile-nav.open + .mobile-nav-backdrop + .mobile-nav-items > ul > li,
.mobile-nav-items.open > ul > li {
    opacity: 1;
    transform: translateY(0);
}
.mobile-nav.open + .mobile-nav-items > ul > li:nth-child(1),
.mobile-nav.open + .mobile-nav-backdrop + .mobile-nav-items > ul > li:nth-child(1),
.mobile-nav-items.open > ul > li:nth-child(1) { transition-delay: 0.04s; }
.mobile-nav.open + .mobile-nav-items > ul > li:nth-child(2),
.mobile-nav.open + .mobile-nav-backdrop + .mobile-nav-items > ul > li:nth-child(2),
.mobile-nav-items.open > ul > li:nth-child(2) { transition-delay: 0.08s; }
.mobile-nav.open + .mobile-nav-items > ul > li:nth-child(3),
.mobile-nav.open + .mobile-nav-backdrop + .mobile-nav-items > ul > li:nth-child(3),
.mobile-nav-items.open > ul > li:nth-child(3) { transition-delay: 0.12s; }
.mobile-nav.open + .mobile-nav-items > ul > li:nth-child(4),
.mobile-nav.open + .mobile-nav-backdrop + .mobile-nav-items > ul > li:nth-child(4),
.mobile-nav-items.open > ul > li:nth-child(4) { transition-delay: 0.16s; }
.mobile-nav.open + .mobile-nav-items > ul > li:nth-child(5),
.mobile-nav.open + .mobile-nav-backdrop + .mobile-nav-items > ul > li:nth-child(5),
.mobile-nav-items.open > ul > li:nth-child(5) { transition-delay: 0.2s; }

.mobile-nav-items li {
    background: none;
    padding-left: 20px;
    list-style-type: none;
    margin: 0;
}

.mobile-nav-items .mobile-category {
    text-transform: uppercase;
    color: #025E73;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    display: block;
    padding: 14px 20px 6px 0;
}
.mobile-nav-items a {
    padding: 11px 40px 11px 0;
    display: block;
    color: #444;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: color 0.2s ease, padding-left 0.2s ease, background-color 0.2s ease;
}
.mobile-nav-items a:hover,
.mobile-nav-items a:focus {
    color: #A6144B;
    padding-left: 4px;
    background: rgba(254, 240, 244, 0.6);
    outline: none;
}

.mobile-nav-items a.has-items {
    position: relative;
}
.mobile-nav-items a.has-items:after {
    content: "";
    position: absolute;
    right: 20px;
    top: 50%;
    width: 8px;
    height: 8px;
    margin-top: -6px;
    border-right: 2px solid #A6144B;
    border-bottom: 2px solid #A6144B;
    transform: rotate(45deg);
    transition: transform 0.25s ease, margin-top 0.25s ease;
}
.mobile-nav-items a.has-items.open:after {
    transform: rotate(-135deg);
    margin-top: -2px;
}

.mobile-child-links {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-child-links li {
    padding-left: 12px;
}
.mobile-child-links a {
    font-size: 14px;
    color: #666;
    border-bottom-color: rgba(0, 0, 0, 0.04);
}
.mobile-nav-items a.has-items.open + .mobile-child-links {
    max-height: 600px;
}
