/* CSS for MJWs 2nd draft Header */
body {
    padding-top: 88px;
}
.atrbutecontainer {
    margin-top: 88px;
}
.page-header .searchIcon {
    width: 14px;
    height: 14px;
    position: relative;
    top: 2px;
    fill: #333;
}
.page-header .main-nav__link:hover .searchIcon {
    fill: #afafaf;
}
.page-header {
    position: fixed;
    top: 0;
    left: 0;
    height: 260px;
    width: 100%;
    -webkit-transition: 1s;
    transition: 1s;
    padding: 0 100px;
    box-sizing: border-box;
    z-index: 1000;
    background: white;
}
.page-header--scrolled {
    height: 88px;
}

.page-header__banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    -webkit-transition: 1s;
    transition: 1s;
}
.page-header--scrolled .page-header__banner {
    opacity: 0;
}
.page-header__logo {
    position: absolute;
    top: 0%;
    right: 50%;
    bottom: 0%;
    margin: auto;
    transition: right 1s 0s;
    width: 294px;
    height: 85px;
    z-index: 10;
    -webkit-filter: drop-shadow(1px 1px 1px rgba(255, 255, 255, 0.6));
    filter: drop-shadow(1px 1px 1px rgba(255, 255, 255, 0.6));
    -webkit-transition: top 1s 0s, width 1s 0s, right 1s 1s;
    transition: top 1s 0s, width 1s 0s, right 1s 1s;
}

/*.page-header__logo .logo__image:hover, .page-header__logo .logo__image:focus{
  -webkit-filter: invert(1) drop-shadow(0 0 7px rgba(0, 0, 0, 0.1));
          filter: invert(1) drop-shadow(0 0 7px rgba(0, 0, 0, 0.1));
}*/
.page-header--scrolled .page-header__logo {
    top: 25%;
    width: 150px;
}
.logo__image {
    display: block;
    width: 100%!important;
    max-width: 100%;
    height: auto;
    position: relative;
    right: -50%;
    -webkit-transition: right 1s 1s;
    transition: right 1s 1s;
}
.page-header--scrolled .page-header__logo .logo__image {
    right: -50%;
    -webkit-transition: right 1s 0s;
    transition: right 1s 0s;
    right: -0%;
    -webkit-transition: right 1s 1s;
    transition: right 1s 1s;
}

.page-header__nav {
    position: relative;
    top: 50%;
    transform: perspective(1px)  translateY(-50%);
}
.main-nav {
    position: relative;
}
.main-nav__list {
    position: relative;
    display: -webkit-box;
    display: flex;
    margin: 0;
    padding: 31px 0;
    list-style: none;
    -webkit-transition: 1s;
    transition: 1s;
}
.main-nav__link {
    font-family: 'cardo', serif;
    font-style: italic;
    display: block;
    color: #212121!important;
    background-color: #fff;
    padding: 5px 10px 7px 10px; /* MJW: AMENDED 24072020 */
    margin-right: 20px;
    text-decoration: none;
    box-shadow: 2px 3px 7px 0 rgba(0, 0, 0, 0.05); /* MJW: AMENDED 24072020 */
    min-height: 22px; /* (22px + the 6px padding top & bottom = 34px) MJW: AMENDED 24072020 */
    max-height: 22px; /* (22px + the 6px padding top & bottom = 34px) MJW: AMENDED 24072020 */
}
.main-nav__link.hamburger {
    padding: 0px 0px;
    width: 34px;
    height: 34px;
}
.main-nav__link:hover {
    color: #afafaf!important;
    box-shadow: 2px 3px 7px 0 rgba(0, 0, 0, 0.05); /* MJW: AMENDED 24072020 */
}
.main-nav__item--active .main-nav__link {
    color: #212121!important;
    background-color: #fff;
}
.main-nav__item--active .main-nav__link:hover {
    color: #afafaf!important;
    background-color: #fff;
}

/* HAMBURGER */
.button {
    background-color: #ffffff;
    border: none;
    color: white;
    width: 34px;
    height: 34px;
    padding: 0px;
    display: inline-block;
    margin: 0px;
    margin-right: 20px;
    box-shadow: 2px 3px 7px 0 rgba(0, 0, 0, 0.05); /* MJW: AMENDED 24072020 */
    cursor: pointer;
    min-height: 34px; /* MJW: AMENDED 24072020 */
    max-height: 34px; /* MJW: AMENDED 24072020 */
}
.model-atrbute * {
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}
section.model-atrbute {
    height: 34px;
    padding-top: 0px;
    float: left;
    width: 34px;
    position: relative;
}
.model-atrbute .menu {
    height: 34px;
    width: 34px;
    position: relative;
    margin: auto;
    padding-top: 0px;
    border: 10px solid transparent;
    -moz-border-radius: 100%;
    -webkit-border-radius: 100%;
    border-radius: 100%;
    -moz-transition: 0.3s;
    -o-transition: 0.3s;
    -webkit-transition: 0.3s;
    transition: 0.3s;
    cursor: pointer;
}
.model-atrbute .bar {
    height: 1px;
    width: 14px; /* MJW: AMENDED 24072020 */
    display: block;
    margin: 3px auto;
    position: relative;
    background-color: #333;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    border-radius: 3px;
    -moz-transition: 0.4s;
    -o-transition: 0.4s;
    -webkit-transition: 0.4s;
    transition: 0.4s;
}
.model-atrbute {
    background-color: #fff;
}
.button.showMenu:hover .model-atrbute .bar { /* This is the hamburger "hover" section and thus this will also be the animation when it have the extra/new "hamburger--menuOpen" class */
    background-color: #afafaf;
}
.model-atrbute .bar:nth-of-type(1) {
    -moz-animation: rotateR 1.5s cubic-bezier(0.5, 0.2, 0.2, 1);
    -webkit-animation: rotateR 1.5s cubic-bezier(0.5, 0.2, 0.2, 1);
    animation: rotateR 1.5s cubic-bezier(0.5, 0.2, 0.2, 1);
}
.model-atrbute .bar:nth-of-type(2) {
    -moz-animation: fade 1.5s cubic-bezier(0.1, 0.8, 0.1, 1);
    -webkit-animation: fade 1.5s cubic-bezier(0.1, 0.8, 0.1, 1);
    animation: fade 1.5s cubic-bezier(0.1, 0.8, 0.1, 1);
}
.model-atrbute .bar:nth-of-type(3) {
    -moz-animation: rotateL 1.5s cubic-bezier(0.5, 0.2, 0.2, 1);
    -webkit-animation: rotateL 1.5s cubic-bezier(0.5, 0.2, 0.2, 1);
    animation: rotateL 1.5s cubic-bezier(0.5, 0.2, 0.2, 1);
}

.hamburger--menuOpen .model-atrbute .menu .bar:nth-of-type(1) {  /* This is the hamburger animation when it have the extra/new "hamburger--menuOpen" class */
    -moz-transform: translateY(4px) rotate(45deg);
    -ms-transform: translateY(4px) rotate(45deg);
    -webkit-transform: translateY(4px) rotate(45deg);
    transform: translateY(4px) rotate(45deg);
}
.hamburger--menuOpen .model-atrbute .menu .bar:nth-of-type(2) {
    opacity: 0;
}
.hamburger--menuOpen .model-atrbute .menu .bar:nth-of-type(3) {
    -moz-transform: translateY(-4px) rotate(-45deg);
    -ms-transform: translateY(-4px) rotate(-45deg);
    -webkit-transform: translateY(-4px) rotate(-45deg);
    transform: translateY(-4px) rotate(-45deg);
}
/* END OF HAMBURGER */

/* Small devices (Portrait phones, 320px and up) */
@media screen and (min-width: 320px){
    .main-nav__list {
        font-size: 18px;
    }
}

/* Very Small devices (Portrait phones, 375px and up to 414px, where the next query takes over) */
/* This will be the menu sliding in from the side */
@media screen and /* (min-width: 375px) and */ (max-width: 414px) {
    .page-header .page-header__logo {
        top: 25%;
        left: 205px !important;
        width: 150px;
        -webkit-transform: translate(100%, -100%);
        transform: translate(100%, -100%);
        -webkit-transform: none;
        transform: none;
    }
    .main-nav__link.search {
        position: absolute;
        right: 0%;
        margin-right: 0px;
    }
}

/* Medium devices (Tablet, portrait, 768px and down) */
@media screen and (max-width: 768px){
    body {
        padding-top: 18px; /*was 37 */
    }
    .atrbutecontainer {
        margin-top: 56px;
    }
    .page-header {
        height: 88px;
    }
    .page-header .page-header__logo {
        top: 50%;
        right: 50%;
        left: auto !important;
        width: 150px;
        -webkit-transform: translate(50%) !important;
        transform: translate(50%) !important;
        -webkit-transform: none;
        transform: none;
    }
    .page-header {
        padding: 0 2%;
    }
    .logo__image {
        right: -0%;
    }
}
/* Medium devices (Just bigger than a Tablet, portrait, 769px and up) */
@media screen and (min-width: 769px){
    body{
        padding-top: 117px;
    }
    .atrbutecontainer {
        margin-top: 117px;
    }
    .page-header {
        padding: 0 2%;
    }
    .page-header--scrolled .page-header__logo {
        right: 2%;
    }
}
@media screen and (min-width: 769px) and (max-width: 1024px){
    body{ /* Martin, adding for landscape iPad */
        padding-top: 18px;
    }
    .atrbutecontainer { /* Martin, adding for landscape iPad */
        margin-top: 47px;
    }
    .page-header { /* Martin, adding for landscape iPad */
        height: 88px;
    }
    .page-header .page-header__logo {
        top: 50%;
        right: 2%;
        width: 150px;
        -webkit-transform: translate(100%, -100%);
        transform: translate(100%, -100%);
        -webkit-transform: none;
        transform: none;
    }
    .page-header--scrolled .page-header__logo {
        top: 50%;
    }
    .page-header {
        padding: 0 2%;
    }
    .page-header--scrolled .page-header__logo {
        right: 2%;
    }
    .logo__image {
        right: -0%;
    }
}
/* Large devices (Tablet, landscape, 1025px and up) */
@media screen and (min-width: 1025px){
    body{
        padding-top: 107px;
    }
    .atrbutecontainer {
        margin-top: 0px;
    }
    .homepage-items {
        margin-top: 125px;
    }
    .page-header {
        padding: 0 2%;
    }
    .page-header--scrolled .page-header__logo {
        top: 50%;
        right: 2%;
        width: 150px;
        -webkit-transition: top 1s 0s, width 1s 0s, right 1s 1s;
        transition: top 1s 0s, width 1s 0s, right 1s 1s;
    }
}
/* Larger devices (Laptop displays, 1366px and up) */
/* RHB - taken these out, they were not adjusted properly and fighting % paddings on the content
 moved homepage content to fixed to padding so this & menu can align properly */
/*
@media screen and (min-width: 1366px){
    body{
        padding-top: 0px;
    }
    .atrbutecontainer {
        margin-top: 97px;
    }
    .homepage-items {
        margin-top: 103px;
    }
    .page-header {
        padding: 0 2%;
    }
}
/* Extra large devices (desktops, 1680px and up) */
/*
@media screen and (min-width: 1680px){
    body{
        padding-top: 87px;
    }
    .atrbutecontainer {
        margin-top: 0px;
    }
    .homepage-items {
        margin-top: 97px;
    }
    .page-header {
        padding: 0 2%;
    }
*/
@media screen and (max-width: 560px){
    .main-nav__list li:not(:first-child){
        display: none;
    }
}
