/* RESET  */
html,body,div,p,h1,h2,h3,h4,h5,h6,pre,figure,
ul,ol,li,dl,dt,dd,form,fieldset,caption,legend,
table,tr,td,th,address,blockquote,img {
  margin:0;
  padding:0;
}

img, fieldset {
  border:none;
}

blockquote, q {
  quotes:none;
}

body *, *:after, *:before {
  box-sizing:border-box;
}

legend {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  display:block;
}

button, label, summary {
  cursor:pointer;
}

html, body {
  height:100%;
}

body, button, input, table, textarea, select {
  font-size:1rem;
  line-height:1.5;
}

h1,h2,h3,h4,h5,h6 {
  text-transform: uppercase;
}

h1,h2 {
    letter-spacing: .125rem;
}

a,
a:hover {
  color: currentColor;
}

/* ICONS */
[class*=icon-] {
	display: inline-block;
	mask-position: center;
	mask-size: cover;
	width: 1.5rem;
	height: 1.5rem;
}

.icon-menu,
.icon-close {
    mask-image: url("../img/icon-menu.66e73b107b16.svg");
    width: 3rem;
    height: 2.75rem;
   
    background-color: #f7f7f7;
    z-index: 1;
    cursor: pointer;
}

.icon-close {
    mask-image: url("../img/icon-close.cbd0ccee8356.svg");
    width: 2.25rem;
    height: 2.25rem;
    position: absolute;
    z-index: 1000;
}

.icon-prev {
	mask-image: url("../img/icon-prev.c2469870f448.svg");
	background-color: #f7f7f7;
}

.icon-next {
	mask-image: url("../img/icon-next.d5ebb7b1c570.svg");
	background-color: #f7f7f7;
}

/* VARIABLES */
:root {
    --color-red: #E30A17;
    /* --color-blue: #00bcd4; */
    --color-blue: #7099df;
    --color-blue-1: #77aaff;
    --color-blue-2: #99ccff;
    --color-blue-3: #bbeeff;
    --color-black: #3c3b3c;
    --font-default: 'Nunito Regular';
    --font-bold: 'Nunito Bold';
    --font-bolder: 'Nunito Extra Bold';
    --font-light: 'Nunito Extra Light';
}

/* ANIMATIONS */
/* Animation keyframes for fade-in */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Animation keyframes for grayscale-to-color */
@keyframes grayscaleToColor {
    0% {
        filter: grayscale(100%);
    }
    100% {
        filter: grayscale(0%);
    }
}

/* BASE */
@font-face {
    font-family: 'Nunito Extra Light';
    src: url("../fonts/Nunito-ExtraLight.26a1ec90be63.ttf") format('truetype');
    font-weight: lighter;
    font-style: normal;
}

@font-face {
    font-family: 'Nunito Bold';
    src: url("../fonts/Nunito-Bold.6f47bcfc0657.ttf") format('truetype');
    font-weight: 700;
    font-style: bold;
}

@font-face {
    font-family: 'Nunito Extra Bold';
    src: url("../fonts/Nunito-ExtraBold.8f56148bb7b7.ttf") format('truetype');
    font-weight: 900;
    font-style: bolder;
}
  
@font-face {
    font-family: 'Nunito Regular';
    src: url("../fonts/Nunito-Regular.65bb0a158ee1.ttf") format('truetype');
    font-weight: normal;
    font-style: nromal;
}
  

::selection {
    background: var(--color-red);
}
  
html {
    font-size: 16px;
}
  
body {
    font-family: var(--font-default);
    letter-spacing: .0625rem;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}
  
body * {
    box-sizing: border-box;
    color: var(--color-black);
}
  
.outer {
    width: 100%;
    min-height: 100%;
    background-color: #f7f7f7;
    padding-top: clamp(0rem, -1.7143rem + 8.5714vw, 6rem);
    padding-left: 1rem;
    padding-right: 1rem;
}

.inner {
    width: 100%;
    height: 100%;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: 90rem;
    margin: auto;
    padding: .5rem;
    border-radius: .5rem .5rem .5rem .5rem;
}
  
.main {
    flex-grow: 1;
    min-height: 70vh;
}

p {
    font-size: clamp(1rem, 0.9091rem + 0.4545vw, 1.25rem);
    margin: 1rem 0;
}
  
h1, h2, h3, h4 {
    font-family: var(--font-bold);
    margin: 0;
    padding: clamp(0.125rem, 0.0179rem + 0.5357vw, 0.5rem) 0;
    line-height: 1.1;
    letter-spacing: .125rem;
    font-weight: bold;

}
  
h2 {
    text-transform: uppercase;
    font-size: clamp(1.4rem, 1.2909rem + 0.5455vw, 1.7rem);
}

h3 {
    font-size: clamp(1.25rem, 1.1591rem + 0.4545vw, 1.5rem);
}

article h2,
article h3,
article h4 {
    font-family: var(--font-bold);
    text-transform: none;
    padding: 1rem 0 0 0;
    line-height: 1;
}

.wrapper {
    max-width: 80rem;
    margin: auto;
}

ul {
    list-style: none;
    padding: 0;
}

figcaption {
    font-family: var(--font-light);
    font-variant: all-small-caps;
    line-height: 1;
    font-weight: bold;
}

img {
    max-width: 100%;
    height: auto;
}

/* HEADER  */
.header-inner {
    display: flex;
    justify-content: space-between;
    padding: 3rem 1rem 3.25rem;
}

h1 {
    font-size: clamp(1.25rem, 1.2045rem + 0.2273vw, 1.375rem);
    text-transform: capitalize;
    letter-spacing: .25rem;
    padding: 0;
    font-family: var(--font-bolder);
}

.header {
    color: var(--color-black);
    position: relative;
    display: none;
}

.header ul {
    display: flex;
}

.header ul li {
    text-transform: uppercase;
    font-size: clamp(1.125rem, 0.6964rem + 0.8929vw, 1.5rem);
    letter-spacing: 0;
}

.header ul li:not(:first-of-type) {
    margin-left: clamp(1.5rem, 0.3571rem + 2.3810vw, 2.5rem);
}

.header ul li a {
    text-decoration: none;
}

.header ul li.active a {
    color: var(--color-blue);
}

.header.visible {
    display: block;
}

.header.visible ul {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--color-blue);
    position: sticky;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2;
}

.header.visible ul li a {
   color: #f7f7f7;
   font-size: 1.5rem;
}

.header.visible ul li.active a {
    color: #ffff48;
}

.icon-container {
    width: 3rem;
    height: 3rem;
    background-color: rgba(112, 153, 221, .8);
    /* background-color: var(--color-blue); */
    /* background-color: rgba(0, 0, 0, .35); */
    position: absolute;
    top: 3rem;
    transform: translateY(-55%);
    right: clamp(1rem, calc(0.6364rem + 1.8182vw), 2rem);
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: .5rem;
}

/* PADDING */
section.home-technieken,
section.techniek-content,
section.press-index-content,
section.abouts-index-content,
section.abouts-index-cards,
section.galleries {
    padding: clamp(0.5rem, -0.2143rem + 3.5714vw, 3rem);
}

.techniek-content article,
section.abouts-content article,
.contact-content,
.results-content {
    padding-left: clamp(0rem, -2.1818rem + 10.9091vw, 6rem);
    padding-right: clamp(0rem, -2.1818rem + 10.9091vw, 6rem);
}

/* BLOCKQUOTES */
blockquote {
    padding: 1rem 2rem 1rem 2rem;
    font-size: 1.5rem;
    text-indent: -.45em;
    background: beige;
    margin: 1rem 0;
}

/* blockquote::before {
    content: '\201C';
    width: 1rem;
}

blockquote::after {
    content: '\201D';
} */


@supports ( hanging-punctuation: first) {
    blockquote {
        text-indent: 0;
        hanging-punctuation: first;
    }
}

/* SECTION-HEADER */
.section-header {
    font-family: var(--font-light);
    letter-spacing: 0;
    margin: 1rem 0;
    line-height: 1;
}

.section-header span {
    font-family: var(--font-bolder);
    font-weight: 900;
    font-size: .65em;
    letter-spacing: .25rem;
    text-transform: lowercase;
    margin-left: 1rem;
}

/* BOX-SHADOW */
.inner,
.cards li,
.press-index-content article {
    box-shadow: 0 0 1rem rgba(0, 0, 0, .15);
}

/* HOME */
.hero {
    position: relative;
    filter: grayscale(100%);
    animation: fadeIn 0.6s ease-out forwards, grayscaleToColor 3s ease-in forwards;
}

.hero figure {
    width: 100%;
    height: 45rem;
    max-height: 66.667vh;
}

.hero figure::after,
.cards li .image::after,
.cards li .text::after,
.press-index-content article .img::after,
.press-index-content article .text::after,
.contact-content article .image::after,
.results-content article .image::after {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background-image: linear-gradient(
    to bottom,
    transparent 98%,
    white
   );
}

.hero figure img {
    object-fit: cover;
    object-position: top;
    width: 100%;
    height: 100%;
    border-radius: .5rem .5rem 0 0;
}

.hero h1 {
    font-family: var(--font-light);
    font-size: clamp(1.75rem, 1.3929rem + 1.7857vw, 3rem);
    text-transform: uppercase;
    color: #fff;
    position: absolute;
    right: clamp(1rem, 0.4286rem + 2.8571vw, 3rem);
    bottom: 4rem;
    letter-spacing: -.0625rem;
    font-weight: 100;
    opacity: .85;
}

.hero h1 span {
    font-family: var(--font-bolder);
    display: block;
    color: #fff;
    font-size: .45em;
    letter-spacing: .5rem;
    font-weight: 900;
    /* opacity: .7; */
    transform: translateX(.25rem);
}

/* CARDS */

/* Animation keyframes for fade-in */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Animation keyframes for grayscale-to-color */
@keyframes grayscaleToColor {
    0% {
        filter: grayscale(100%);
    }
    100% {
        filter: grayscale(0%);
    }
}


.cards {
    display: grid;
    gap: clamp(1rem, -1.2857rem + 4.7619vw, 3rem);
    justify-content: center;
}

.cards li {
    border: .5rem solid #fff;
    border-radius: .25rem .25rem .25rem .25rem;
    aspect-ratio: .8;
    overflow: hidden;
    opacity: 0;
    filter: grayscale(100%);
}

.cards li.fade-in {
    animation: fadeIn 0.6s ease-out forwards, grayscaleToColor 3s ease-in forwards;
}

.cards li a {
    text-decoration: none;
}

.cards li .image {
    width: 100%;
    height: 66.667%;
    position: relative;
    transition: transform .5s ease-in-out;
}

.cards li .image::after {
    background-image: linear-gradient(
        to bottom,
        transparent 98%,
        var(--color-blue)
    );
}

.cards li:nth-of-type(3n + 2) .image::after {
    background-image: linear-gradient(
        to bottom,
        transparent 98%,
        var(--color-blue-2)
    );
}

.cards li:nth-of-type(3n + 3) .image::after {
    background-image: linear-gradient(
        to bottom,
        transparent 98%,
        var(--color-blue-3)
    );
}

.cards li .image img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    border-radius: .25rem .25rem 0 0;
}

.cards li .text {
    height: 33.333%;
    padding: clamp(0.5rem, 0.3571rem + 0.7143vw, 1rem) clamp(0.5rem, 0.0714rem + 2.1429vw, 2rem);
    position: relative;
    background-color: var(--color-blue);

}

.cards li:nth-of-type(3n + 2) .text {
    background-color: var(--color-blue-2);
}

.cards li:nth-of-type(3n + 3) .text {
    background-color: var(--color-blue-3);
}

.cards li .text::after {
    background-image: linear-gradient(
        to bottom,
        transparent 85%,
        var(--color-blue)
    );
}

.cards li:nth-of-type(3n + 2) .text::after {
    background-image: linear-gradient(
        to bottom,
        transparent 85%,
        var(--color-blue-2)
    );
}

.cards li:nth-of-type(3n + 3) .text::after {
    background-image: linear-gradient(
        to bottom,
        transparent 85%,
        var(--color-blue-3)
    );
}

.cards li * {
    margin: 0;
    color: #fff;
}

.cards li:nth-of-type(3n + 2) *,
.cards li:nth-of-type(3n + 3) * {
    color: var(--color-black);
}

@media (hover:hover) {
    .cards li .image:hover {
        transition: transform 3s ease-in-out;
        transform: scale(1.01);
    }  
}

/* TECHNIEK SINGLE */

.techniek-content article ul,
.techniek-content article ol {
    margin-top: 1rem;
    background-color: #7099df1a;
    padding: 1rem clamp(1.5rem, 0.9545rem + 2.7273vw, 3rem);
    border-radius: .5rem .5rem .5rem .5rem;
    max-width: 54rem;
    font-size: 1.25rem;
}

.techniek-content article ul {
    list-style: disclosure-closed;

}

.techniek-content article ul li:not(:last-of-type) {
    margin-bottom: 1rem;
}

/* ABOUT PAGE */
.abouts-index-content {
    position: relative;
}

.abouts-index-content::after {
    content: '';
    position: absolute;
    height: .0625rem;
    width: 12rem;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    background-color: #eaeaea;
}

.abouts-index-content article img {
    height: 40rem;
    width: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: .5rem .5rem .5rem .5rem;
}

.abouts-index-cards article .text {
    border-bottom: .0625rem solid #aeaeae;
}

.abouts-index-cards article .read-more-btn {
    font-family: var(--font-bold);
    /* border-left: .5rem solid #fff; */
    /* border-right: .5rem solid #fff; */
    border: none;
    /* color: var(--color-black); */
}

section.abouts-content .image {
    float: left;
    margin: 0 3rem 2rem 0;
}

section.abouts-content .image img {
    border-radius: .5rem .5rem .5rem .5rem;

}

section.abouts-content .text h3:first-of-type {
    clear: both;
}

/* GALLERY */
.galleries-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.gallery {
    padding: 1rem;
    border: .125rem solid;
    background-color: #f7f7f7;
}

.gallery-images {
    columns: 3;
    column-gap: .5rem;
}

/* Lightbox overlay */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-blue);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;

    img {
        max-width: 66.667%;
        max-height: 90%;
        object-fit: contain;
    }
  }
  
  /* Lightbox content */
  .lightbox-content {
    position: relative;
    max-width: 80%;
    max-height: 80%;
  }
  

  .lightbox-overlay .icon-prev,
  .lightbox-overlay .icon-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    cursor: pointer;
    z-index: 1001;
    width: 3rem;
    height: 3rem;
  }
  
  .lightbox-overlay .icon-prev {
    left: 1rem;
  }
  
  .lightbox-overlay .icon-next {
    right: 1rem;
  }

  .lightbox-overlay .icon-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background-color: #fff;
    width: 2.5rem;
    height: 2.5rem;
  }

  .lightbox-overlay img {
    box-shadow: 0 0 1rem rgba(0, 0, 0, .15);
  }
  
  .lightbox-caption {
    color: rgba(255,255,255, .7);
    text-align: center;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.5);
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    font-family: var(--font-light);
    font-size: 1.125rem;
  }

/* FORM */
.contact-content .image img {
    object-fit: cover;
    height: 100%;
}

form {
    position: relative;
    padding: 1rem;
    border: 1px dotted #eee;
    background-color: var(--color-blue);
    padding: 3rem 0 3rem 2rem;
}

label, input {
    display: block;
}

label {
    font-family: var(--font-bold);
    font-size: .75rem;
    padding: .125rem;
}

input, textarea {
    width: clamp(16rem, 13.1429rem + 14.2857vw, 26rem);
    padding: .25rem;
    border: none;
    margin-bottom: 1rem;
    border-radius: .5rem;
}

textarea {
    height: 12rem;
}

::placeholder {
    font-family: var(--font-light);
    font-size: 1.125rem;
}

/* FOOTER */
footer.footer {
    margin-top: 6rem;
    padding: 3rem 1rem;
    font-size: .875rem;
    font-family: var(--font-light);
    background-image: linear-gradient(
        to top,
        var(--color-blue) 98%,
        #fff
    );
    color: #f7f7f7;
    text-align: center;
}

/* LINE CENTER */

h2.page-header::before,
h2.page-header::after,
.section-header::before,
.section-header::after,
.footer::before,
.footer::after {
    content: '';
    border-top: .125rem solid;
    margin-right: clamp(0rem, -0.4545rem + 2.2727vw, 1.25rem);
    margin-left: clamp(0rem, -0.4545rem + 2.2727vw, 1.25rem);
    flex: 1 0 1.25rem;
}

h2.page-header::after,
.section-header::after,
.footer::after {
    margin-left: clamp(0rem, -0.4545rem + 2.2727vw, 1.25rem);

}

h2.page-header::after,
.section-header::after,
.footer::after {
    content: "";
    flex-grow: 1;
    height: .0625rem; /* Line thickness */
    background-color: var(--color-blue); /* Line color */
    margin-left: clamp(0rem, -0.4545rem + 2.2727vw, 1.25rem);
}

/* PRESS INDEX PAGE */
.press-index-content article,
.abouts-index-cards article {
    display: flex;
    flex-direction: column;
    margin: 3rem 0;
    border-radius: .5rem .5rem .5rem .5rem;
    position: relative;
}

.press-index-content article .img,
.abouts-index-cards article .img {
    background-size: cover;
    background-position: center;
    border-radius: .5rem .5rem 0 0;
    position: relative;
    height: 18rem;

}

.press-index-content article .text {
    overflow-y: hidden;
    border-bottom: .0625rem solid #eaeaea;
    padding: 1rem 2rem;
    position: relative;
}

.press-index-content article .text::after {
    background-image: linear-gradient(
        to bottom,
        transparent 80%,
        #fff 90%
    );
}

/* READ MORE BTN */
.button,
.read-more-btn {
    border-radius: .25rem .25rem .25rem .25rem;
    background-color: var(--color-blue);
    text-decoration: none;
    font-size: 1.125rem;
    text-transform: uppercase;
    color: #f7f7f7;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: .25rem 2rem;
    font-family: var(--font-bold);
    border: .125rem solid #eaeaea;
}

.read-more-btn {
    position: absolute;
    bottom: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 12rem;
    height: 3rem;
    padding: 0 0 .125rem 0;
}

.button:hover,
.read-more-btn:hover {
    box-shadow: 0 0 1rem rgba(0, 0, 0, .175);
    color: #fff;
    transition: box-shadow .3s;
}

.button:active,
.read-more-btn:active {
   scale: .9;
}

/* RESULTS */
ul.results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr));
    gap: 1rem;
    padding: 1rem 1rem 0 0;
}

/* MEDIA QUERIES */

@media (width >= 48rem) {
    .header {
       display: block;
       height: 0;
    }

    .header ul {
        justify-content: flex-end;
    }

    .icon-menu,
    .icon-container {
        display: none;
    }

    .cards {
        grid-template-columns: 1fr 1fr;
    }

    /* PRESS INDEX PAGE */
    .press-index-content article,
    .abouts-index-cards article {
        display: grid;
        grid-template-columns: 1fr 2fr;
        gap: 2rem;
        height: 14rem;
    }

    .press-index-content article .img,
    .abouts-index-cards article .img {
        border-radius: .5rem 0 0 .5rem;
        height: auto;
    }

    .press-index-content article .text {
        padding: 0 4rem 0 0;
    }
}

@media (width > 60rem) {

    .hero h1 {
        top: 2rem;
    }

    .header {
        transform: translateY(-4.25rem);
    }

    h2.page-header,
    .section-header,
    .footer {
        display: flex;
        width: 100%;
        justify-content: center;
        align-items: center;
        text-align: center;
}

    .section-header span {
        display: inline-block;
    }

    .cards li {
        aspect-ratio: 1;
    }

    .press-index-content article,
    .abouts-index-cards article {
        grid-template-columns: 1fr 4fr;
    }

    .abouts-index-content article,
    .contact-content article,
    .results-content article {
        box-shadow: 0 0 2rem rgba(0, 0, 0, .15);
        margin-top: 2rem;
        border-radius: 1rem;
    }

    .abouts-index-content article {
        box-shadow: none;
    }

    .abouts-index-content article .grid,
    .contact-content article .grid,
    .results-content article .grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    /* .abouts-index-content article .image img, */
    .contact-content article .image img,
    .results-content article .image img {
        object-fit: cover;
        width: 100%;
        height: 100%;
        min-height: 35rem;
        border-radius: 1rem 0 0 1rem;
    }

    .contact-content article .image,
    .results-content article .image {
        position: relative;
    }

    .contact-content article .image::after,
    .results-content article .image::after {
        background-image: linear-gradient(
            to right,
            transparent 99%,
            #fff
        );
    }

    .abouts-index-content article .text,
    .contact-content article .text,
    .results-content article .text {
        padding-top: 2rem;
    }

    .abouts-index-content article .text p,
    .contact-content article .text p,
    .results-content article .text p {
        margin-right: 2rem;
    }
}

@media (width < 48rem) {
    .techniek-content article {
        padding: 0;
    }
}