/* 
HEADER
*/
header {
    right: 0;
    left: 0;
    z-index: 100;
    background: black;
    transition: transform 1000ms ease-in-out;
}
body[data-template='home'] header {
    bottom: 0;
    border-top: 1px solid white;
    background: transparent;
}
body:not([data-template='home']) header {
    top: 0;
    border-bottom: 1px solid white;
}
body[data-template='contact'] header {
    background: white;
    border-bottom: 1px solid black;
}

body[data-load='false'] header {transform: translateY(100%);}


.header-section {
    display: flex !important;
    justify-content: center;
    align-items: center;
    padding: .7rem 1.25rem;
}
header .header-section:not(:last-child) {border-right: 1px solid white;}
body[data-template='contact'] header .header-section:not(:last-child) {border-right: 1px solid black;}

.header-section:not(#header-home) img {
    width: auto;
    height: 1.5rem;
    translate: 0 -2px;
}
.header-section#header-home img {
    width: auto;
    height: 2rem;
}
@media only screen and (min-width: 1096px) {
    .header-section:not(#header-home) img {
        height: 1.25rem;
        translate: 0 -1px;
    }

    .header-section#header-home img {
        width: auto;
        height: 2.5rem;
    }
}




/* HOME */
#header-home {min-width: 8rem;}
#header-home > div {
    mix-blend-mode: difference;
    transition: 250ms ease-in-out;
    opacity: 0;
    z-index: 5;
}

/* MENU */
#header-menu {width: 100%;}
#header-menu img {transition: rotate 500ms ease-in-out;}

/* SUBMENU */
#header-submenu {min-width: 8rem;}
#header-submenu > * {transition: 250ms ease-in-out;}
#header-langs img {transition: rotate 500ms ease-in-out;}
#header-search {
    margin-left: 1.2rem;
    transform: translateX(6px);
}
@media only screen and (min-width: 1096px) {
    #header-home {min-width: 12rem;}
    #header-menu {display: none !important;}
    
    #header-pages {width: 100%;}
    #header-pages a {
        display: flex !important;
        width: 100%;
        border-right: 1px solid white;
        transition: 250ms ease-in-out;
    }
    
    body[data-template='contact'] #header-pages a {border-right: 1px solid black;}
}
@media (hover: hover) {
    #header-home:hover > div {
        opacity: 1;
    }

    #header-pages a:hover {
        background: white !important;
        color: black !important;
    }

    body[data-template='contact'] #header-pages a:hover {
        background: black !important;
        color: white !important;
    }

    #header-submenu:hover * {opacity: .5;}
    #header-submenu *:hover {opacity: 1;} 
}




/* 
MENU
*/
#menu {
    right: 0;
    left: 0;
    z-index: 200;
}
body[data-template='home'] #menu {bottom: var(--header-m);}
body:not([data-template='home']) #menu {
    top: var(--header-m);
    background: black;
}
body[data-template='contact'] #menu {background: white;}

#menu[data-status='close'] {height: 0;}
#menu[data-status='open'] {height: auto;}
body[data-template='home'] #menu[data-status='open'] {border-top: 1px solid white;}
body:not([data-template='home']) #menu[data-status='open'] {border-bottom: 1px solid white;}
body[data-template='contact'] #menu[data-status='open'] {border-bottom: 1px solid black;}

#menu a {padding: 1rem;}
#menu a:not(:last-of-type) {border-bottom: 1px solid white;}
body[data-template='contact'] #menu a:not(:last-of-type) {border-bottom: 1px solid black;}



/* 
LANGS
*/
#menu-langs {
    min-width: calc(8rem + 1px);
    right: 0;
    z-index: 200;
}
body[data-template='home'] #menu-langs {bottom: var(--header-m);}
body:not([data-template='home']) #menu-langs {
    top: var(--header-m);
    background: black;
}
body[data-template='contact'] #menu-langs {background: white;}
@media only screen and (min-width: 1096px) {
    body[data-template='home'] #menu-langs {bottom: var(--header-d);}
    body:not([data-template='home']) #menu-langs {top: var(--header-d);}
}

#menu-langs[data-status='close'] {height: 0;}
#menu-langs[data-status='open'] {
    height: auto;
    border-left: 1px solid white;
}
body[data-template='contact'] #menu-langs[data-status='open'] {border-left: 1px solid black;}

body[data-template='home'] #menu-langs[data-status='open'] {border-top: 1px solid white;}
body:not([data-template='home']) #menu-langs[data-status='open'] {border-bottom: 1px solid white;}
body[data-template='contact'] #menu-langs[data-status='open'] {border-bottom: 1px solid black;}

#menu-langs a {padding: 1rem 1.25rem;}
#menu-langs a:not(:last-of-type) {border-bottom: 1px solid white;}
body[data-template='contact'] #menu-langs a:not(:last-of-type) {border-bottom: 1px solid black;}