html{
    --nav-height: 4rem;
}

@media (min-width: 735px) {
    html{
        --nav-height: 6rem;
    }
}

.header{
    position: relative;
    font-family: var(--font-base);
    height: var(--nav-height);
    color: #313131;
    color: var(--color-nav-fg, #313131);
    background-color: #000050;
    
    z-index: 5000;
}

.header__wrapper{
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--width-site);
    margin-left: auto;
    margin-right: auto;
    padding-right: 1rem;
    padding-left: 1rem;
}

.header__logo{
    display: flex;
    color: var(--color-nav-fg);
    text-decoration: none;
}

.header__logo svg{
    height: 2rem;
    width: auto;
}

.nav-link{
    margin-left: 1rem;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: transform 0.1s;
    position: relative;
    display: inline-block;
}





/*
###########################################################
LANDSCAPE
###########################################################
*/

.header__panel .nav-link{
    padding-bottom: 5px;
}

a.nav-link:active {
    transform: translateY(2px);
}

.nav-link.nav-link--selected:before{
    content: " ";
    height: 1px;
    width: 100%;
    background-color: var(--color-nav-panel-fg);
    position: absolute;
    bottom: 10px;
    left: 0px;
    opacity: 0;
    animation-name: nav-link-selected;
    animation-delay: 0.5s;
    animation-duration: 0.5s;
    animation-fill-mode: forwards;
    animation-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
}
@media (min-width: 735px){
    .nav-link.nav-link--selected:before{
        bottom: 0;
    }
}
@keyframes nav-link-selected {
    from {opacity: 0; transform: translateY(5px);}
    to {opacity: 0.7; transform: translateY(0px);}
}





/*
###########################################################
PORTRAIT
###########################################################
*/

.header__toggle-on{
    cursor: pointer;
    transform: translateY(3px);
}

.header__toggle-off{
    position: absolute;
    top: 16px;
    right: var(--gutter);
    color: #313131;
    color: var(--color-nav-panel-fg, #313131);
    cursor: pointer;
}

.header__panel{
    display: none;
    flex-direction: column;
    position: fixed;
    justify-content: center;
    align-items: center;
    opacity: 0;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    padding: 1rem;
    padding: var(--gutter);
    box-shadow: 0 7px 50px 5px rgba(0, 0, 0, 0.2);
    background-color: #ffffff;
    background-color: var(--color-nav-panel-bg, #ffffff);
}

.header__panel.header__panel--on{
    display: flex;
    animation-name: header__panel--on;
    animation-delay: 0;
    animation-duration: 0.5s;
    animation-fill-mode: forwards;
    animation-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
}
@keyframes header__panel--on {
    from {opacity: 0;transform: translateY(-75px)}
    to {opacity: 1;transform: translateY(0)}
}

.header__panel-logo{
    position: absolute;
    top: 16px;
    left: var(--gutter);
    color: var(--color-nav-panel-fg, #313131);
}

.header__panel-logo svg{
    height: 2rem;
    width: auto;
}

.header__panel .nav-link{
    display: block;
    margin-left: 0;
    font-family: var(--font-alt-bold);
    font-size: 2rem;
    color: #313131;
    color: var(--color-nav-panel-fg, #313131);
}





/*
###########################################################
CART
###########################################################
*/

.site-header .cart .cart-icon{
    transform: translateY(6px);
}

.snipcart-items-count{
    position: absolute;
    font-size: 10px;
    color: #fff;
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #b1b1b1;
}
.landscape .snipcart-items-count{
    top: -4px;
    left: 13px;
}
.portrait .snipcart-items-count{
    top: 8px;
    left: 13px;
}





/*
###########################################################
MODULAR ROLE
###########################################################
*/

.hero--header,
.content--header,
.video--header,
.map--header{
 margin-top: 0;
}

.splash--header{
    margin-top: calc(var(--nav-height) * -1 - var(--gutter));
}