

/*--- FONTS ---*/
@font-face {
    font-family: 'Avenir';
    src: url('fonts/Avenir-Roman.woff2') format('woff2'),
        url('fonts/Avenir-Roman.woff') format('woff'),
        url('fonts/Avenir-Roman.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Avenir';
    src: url('fonts/Avenir-Heavy.woff2') format('woff2'),
        url('fonts/Avenir-Heavy.woff') format('woff'),
        url('fonts/Avenir-Heavy.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Avenir';
    src: url('fonts/Avenir-Black.woff2') format('woff2'),
        url('fonts/Avenir-Black.woff') format('woff'),
        url('fonts/Avenir-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}
/*--- ---*/

/*--- ALGEMEEN ---*/
:root {
    --blauw1: #1B3258;
    --blauw2: #31456B;
    --blauw3: #8DA1C1;
    --blauw4: #D0D7DE;
    --blauw5: #E3E7EB;

    --contentBoxMargin: 17vw;
}
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html{
    font-family: Avenir, sans-serif;
    font-size: 10px;
    line-height: 28px;
    color: black;
    scroll-behavior: smooth;
}
h1 {
    font-size: 9em;
    font-weight: 900;
    line-height: 90px;
    color: white;
    text-transform: uppercase;
    text-align: right;
}
h2 {
    font-size: 2.8em;
    font-weight: 700;
}
h3 {
    font-size: 2em;
    font-weight: 700;
}
p {
    font-size: 1.8em;
    font-weight: 400;
}
a{
    text-decoration: none;
}
button{
    all:unset;
}
img{
    display: block;
    width: 100%;
}
div,
section {
    position: relative;
}
.Boldtxt{
    font-weight: 700;
}
.flex-right {
    display: flex;
    justify-content: flex-end;
    margin-right: var(--contentBoxMargin);
}
/*--- ---*/

/*--- NAV ---*/
nav{
    display: flex;
    width: 100%;
    min-height: 80px;
}
nav > div:first-of-type{
    flex-grow: 1;
    flex-basis: 33.333%;
}
nav > div:last-of-type{
    flex-grow: 2;
    background-color: var(--blauw1);
    flex-basis: 66.666%;
}
nav .logo{
    position: absolute;
    right: 0px;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 40px;
}
nav .logo img{
    height: 39px;
}
nav ul{
    position: relative;
    right: var(--contentBoxMargin);
}
nav li{
    display: inline-block;
    float: right;
    padding: 30px 40px 30px 0;
    font-size: 1.6em;
    font-weight: 900;
    text-transform: uppercase;
    color: white;
}
nav > li:first-of-type{
    padding-right: 0;
}
nav li a,
nav li a:active{
    color: white;
    transition: color 300ms ease;
}
nav li a:hover{
    color: var(--blauw4);
}

.menuButton {
    display: none;
    position: absolute;
    top: 20px;
    right: var(--contentBoxMargin);
}
.menu-mobiel{
    background-color: var(--blauw1);
    overflow: hidden;
    max-height: 0px;
    height: 100%;
    transition: max-height 600ms ease;
}
.menu-mobiel.actief{
    max-height: 200px;
}
.menu-mobiel ul{
    list-style-type: none;
}
.menu-mobiel li{
    font-size: 1.6em;
    font-weight: 900;
    text-transform: uppercase;
    color: white;
    padding: 10px 0 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.menu-mobiel li:last-of-type{
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.menu-mobiel a {
    display: block;
    color: white;
    width: 100%;
    padding: 0 var(--contentBoxMargin) 0 var(--contentBoxMargin);
}
/*--- ---*/


/*--- HEADER ---*/
header{
    position: relative;
    height: 500px;
    overflow: hidden;
}
header .header-video{
    height: 100%;
}
header .header-video video{
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: auto;
    width: auto;
    min-width: 100vw;
    min-height: 100%;
    z-index: 99;
}
header .header-image{
    height: 100%;
}
header .header-image img {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: auto;
    width: auto;
    min-width: 100vw;
    min-height: 100%;
}
header h1 {
    position: absolute;
    top: 50%;
    right: var(--contentBoxMargin);
    z-index: 999;
}
/*--- ---*/

/*--- INTRO ---*/
section.intro > div:first-of-type{
    background-color: var(--blauw4);
    margin-right: var(--contentBoxMargin);
    padding: 40px 80px 80px 0;
}
section.intro p{
    margin-left: var(--contentBoxMargin);
    max-width: 850px;
    
}
/*--- ---*/

/*--- ONS BEDRIJF ---*/
section.onsBedrijf{
    display: flex;
    padding: 80px 0 80px 0;
}
section.onsBedrijf > div:first-of-type {
    margin-left: var(--contentBoxMargin);
    margin-right: 80px;
    flex: 1 0 auto;
}
section.onsBedrijf h3{
    position: relative;
}
section.onsBedrijf h3::after{
    content: "";
    position: absolute;
    bottom: -20px;
    left: 0px;
    height: 3px;
    width: 80px;
    background-color: var(--blauw3);
}
section.onsBedrijf p {
    margin-top: calc(40px + 3px);
    max-width: 576px;
}
section.onsBedrijf > div:last-of-type {
    position: relative;
    flex: 1 1 auto;
    max-height: 420px;
    overflow: hidden;
}
section.onsBedrijf img{
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}
/*--- ---*/


/*--- ONS MACHINEPARK ---*/
section.machinePark{
    padding: 40px 0 0 0;
    background-color: var(--blauw4);
}
section.machinePark > div:first-of-type {
    margin-left: var(--contentBoxMargin);
}
section.machinePark h3 {
    position: relative;
}
section.machinePark h3::after {
    content: "";
    position: absolute;
    bottom: -20px;
    left: 0px;
    height: 3px;
    width: 80px;
    background-color: var(--blauw3);
}
section.machinePark p {
    margin-top: calc(40px + 3px);
    max-width: 820px;
    margin-bottom: 80px;
}
section.machinePark > div:last-of-type {
    height: 100vh;
    width: 100%;
    overflow: hidden;
}
section.machinePark img {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-height: 100%;
    width: auto;
    
}
/*--- ---*/


/*--- ONZE WERKWIJZE ---*/
section.werkwijze{
    padding: 40px 0 160px 0;
}
section.werkwijze h3 {
    position: relative;
}
section.werkwijze h3::after {
    content: "";
    position: absolute;
    bottom: -20px;
    left: 0px;
    height: 3px;
    width: 80px;
    background-color: var(--blauw3);
}
section.werkwijze p {
    margin-top: calc(40px + 3px);
    max-width: 820px;
}
section.werkwijze .fotografie{
    display: flex;
    column-gap: 20px;
    max-width: 100%;
    margin-top: 80px;
}
section.werkwijze .fotografie img{
    flex: 0 1 33%;
    width: 1px;
}
/*--- ---*/


/*--- SWING KING ---*/
aside{
    display: flex;
    background-color: var(--blauw4);
    padding: 0 0 40px 0;
}
aside > div:first-of-type {
    margin-left: var(--contentBoxMargin);
    margin-right: 80px; 
    padding: 40px 0 40px 0;
    flex: 1 0 auto;
}
aside h2 {
    position: relative;
}
aside h2::after {
    content: "";
    position: absolute;
    bottom: -20px;
    left: 0px;
    height: 3px;
    width: 80px;
    background-color: var(--blauw3);
}
aside p {
    margin-top: calc(40px + 3px);
    margin-bottom: 40px;
    max-width: 576px;
}
aside .flex{
    display: flex;
    justify-content: space-between;
    gap: 40px;
}
aside .flex img{
    max-width: 165px;
}
aside .flex button {
    background-color: #94BE31;
    color: white;
    text-align: center;
    padding: 10px 30px 10px 30px;
    height: fit-content;
    max-width: fit-content;
    cursor: pointer;
    transition: background-color 150ms ease;
}
aside .flex button:hover {
    background-color: #9ac633;
}
aside .flex button h3 {
    font-size: 1.6em;
}
aside .flex button a{
    color: white;
    cursor: pointer;
}
aside .flex > * {
    flex: 1 1 50%;
}
aside > div:last-of-type {
    position: relative;
    flex: 1 1 auto;
    max-height: 530px;
    overflow: hidden;
}
aside > div:last-of-type img {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
}
/*--- ---*/


/*--- Footer ---*/
footer{
    background-color: var(--blauw2);
    padding-bottom: 160px;
}
footer .flex{
    display: flex;
    justify-content: space-between;
    background-color: var(--blauw1);
    padding: 80px 0 80px var(--contentBoxMargin);
    max-width: 90vw;
}
footer .flex p.Boldtxt {
    color: white;
}
footer .flex p {
    font-size: 1.5em;
    color: var(--blauw3);
}
footer .flex > div:nth-of-type(2) {
    max-width: 555px;
    margin-right: calc(var(--contentBoxMargin) - 10vw);
}
footer .flex p.smallTxt{
    font-size: 1.2em;
}
footer .flex img {
    max-height: clamp(30px, 3vw, 39px);
    width: auto;
    max-width: 246px;
    margin-bottom: 40px;
}
footer .flex button {
    background-color: var(--blauw3);
    color: white;
    font-size: 1.2em;
    font-weight: 700;
    line-height: 15px;
    text-align: center;
    padding: 10px 30px 10px 30px;
    margin-top: 40px;
    height: fit-content;
    max-width: fit-content;
    cursor: pointer;
    transition: background-color 150ms ease;
}
footer .flex button:hover {
    background-color: #90a6c8;
}
footer .flex button a{
    color: white;
    cursor: pointer;
}
footer > div:last-of-type{
    display: flex;
    justify-content: space-between;
    margin: 40px var(--contentBoxMargin) 0 var(--contentBoxMargin);
    font-size: 1.2em;
    color: var(--blauw3);
}
footer > div:last-of-type a{
    text-decoration: none;
    color: var(--blauw3);
}
footer > div:last-of-type img {
    max-height: 20px;
    flex: 0 1 100%;
    width: auto;
    max-width: 320px;
}
/*--- ---*/



/*--- MEDIAQUERIES---*/
@media screen and (max-width:1600px) {
    section.onsBedrijf > div:first-of-type {
        flex: 1 1 auto;
    }
    section.onsBedrijf > div:last-of-type {
        flex: 1 2 auto;
    }
    aside > div:first-of-type {
        flex: 1 1 auto;
    }
    aside > div:last-of-type {
        flex: 1 2 auto;
    }
}

@media screen and (max-width:1280px) {
    h1{
        font-size: clamp(3.5em, 7vw, 9em);
        line-height: clamp(1em, 7vw, 2.6em);
    }
    nav ul {
        display: none;
    }
    nav .menu-mobiel ul{
        display: block;
    }
    .menuButton {
        display: block;
        top: 27px;
    }
    header{
        height: clamp(250px, 50vh, 500px);
    }
    section.onsBedrijf {
        flex-wrap: wrap;
    }
    section.onsBedrijf > div:first-of-type {
        margin: 0 var(--contentBoxMargin) 40px var(--contentBoxMargin);
    }
    section.onsBedrijf p{
        max-width: 100%;    
    }
    section.onsBedrijf > div:last-of-type {
        margin: 0 0 0 var(--contentBoxMargin);
    }
    section.machinePark > div:first-of-type {
        margin: 0 var(--contentBoxMargin) 0 var(--contentBoxMargin);
    }
    section.machinePark p {
        max-width: 100%;
    }

    section.werkwijze .flex-right{
        margin: 0 var(--contentBoxMargin) 0 var(--contentBoxMargin);
    }
    section.werkwijze p {
        max-width: 100%;
    }
    aside{
        flex-wrap: wrap;
    }
    aside > div:first-of-type{
        margin: 0 var(--contentBoxMargin) 0 var(--contentBoxMargin);
    }
    aside p{
        max-width: 100%;
    }
    aside > div:last-of-type {
        margin: 0 0 0 var(--contentBoxMargin);
    }
    footer .flex{
        max-width: 100vw;
        padding: 80px var(--contentBoxMargin) 80px var(--contentBoxMargin);
    }
    footer .flex > div:nth-of-type(2) {
        max-width: 350px;
        margin-right: 0;
    }
    footer > div:last-of-type{
        flex-wrap: wrap;
    }
    footer > div:last-of-type img {
        margin-top: 10px;
    }
}

@media screen and (max-width:1050px) {
    footer .flex {
        flex-wrap: wrap;
        column-gap: 40px;
    }
    footer .flex > div:first-of-type{
        margin-bottom: 40px;
    }
}

@media screen and (max-width:992px) {
    .menuButton {
        top: 20px;
    }
    nav{
        min-height: 60px;
    }
    nav .logo{
        margin-right: clamp(10px, 2vw, 40px);
    }
    nav .logo img {
        height: 30px;
    }
    section.werkwijze .fotografie{
        column-gap: 5px;
    }
    aside .flex button h3 {
        font-size: clamp(1.4em, 2.6vw, 1.6em);
    }
}

@media screen and (max-width:750px) {
    :root {    
        --contentBoxMargin: 8vw;
    }
    html {
        font-size: 9px;
        line-height: 24px;
    }
    section.intro > div:first-of-type{
        padding: 40px 40px 40px 0;
    }
    section.machinePark > div:last-of-type{
        height: clamp(350px, 50vw, 100vh );
    }
    section.onsBedrijf {
        padding: 60px 0 60px 0;
    }
    section.werkwijze {
        padding: 60px 0 80px 0;
    }
    section.werkwijze .fotografie {
        margin-top: 40px;
    }
    footer .flex {
        padding: 60px var(--contentBoxMargin) 60px var(--contentBoxMargin);
    }
    footer {
        padding-bottom: 80px;
    }
    footer .flex img {
        margin-bottom: 20px;
    }
}

@media screen and (max-width:600px) {
    .menuButton {
        top: 27px;
    }
    nav {
        min-height: 80px;
    }
    nav > div:first-of-type {
        flex-grow: 1;
        flex-basis: 50%;
        padding: 0 20px;
    }
    nav > div:nth-of-type(2) {
        flex-grow: 1;
        background-color: var(--blauw1);
        flex-basis: 50%;
    }
    nav .logo {
        position: static;
        margin-right: 0;
    }
    nav .logo img {
        height: 100%;
    }
    section.werkwijze .fotografie {
       overflow-x: scroll;
    }
    section.werkwijze .fotografie img{
        min-width: 195px;
    }
}

@media screen and (max-width:400px) {
    .menuButton {
        top: 20px;
    }
    nav {
        min-height: 60px;
    }
    section.intro > div:first-of-type{
        margin: 0;
    }
    aside .flex img {
        flex: 1 3 50%;
    }
    aside .flex button{
        padding: 10px 20px 10px 20px;
    }
}

@media screen and (min-width:750px) and (max-height:600px)  {
    header{
        min-height: 500px;
    }
}
/*--- ---*/


/*--- MENU BUTTON ---*/

#nav-icon{
    width: 25px;
    height: 45px;
    position: relative;
    transform: rotate(0deg);
    transition: .5s ease-in-out;
    cursor: pointer;
}

#nav-icon span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 1px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .2s ease-in-out;
}

#nav-icon span:nth-child(1) {
    top: 0px;
    transform-origin: left center;
}

#nav-icon span:nth-child(2) {
    top: 10px;
    transform-origin: left center;
}

#nav-icon span:nth-child(3) {
    top: 20px;
    transform-origin: left center;
}

#nav-icon.open span:nth-child(1) {
    transform: rotate(45deg);
    top: 0px;
    left: 0px;
}

#nav-icon.open span:nth-child(2) {
    width: 0%;
    opacity: 0;
}

#nav-icon.open span:nth-child(3) {
    transform: rotate(-45deg);
    top: 18px;
    left: 0px;
}
/*--- ---*/