@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

@font-face {
    font-family: "Colendra";
    src: url("../fonts/Colendra.eot") format("embedded-opentype"),
    url("../fonts/Colendra.woff") format("woff"),
    url("../fonts/Colendra.woff2") format("woff2"),
    url("../fonts/Colendra.otf") format("opentype"),
    url("../fonts/Colendra.ttf") format("truetype");
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

body {
    font-family: 'Ubuntu', sans-serif;
    background: #fff;
    color: var(--primary-color);
    line-height: 1.2;
    font-size: 1.3rem;
    /* height: 100vh; */
}

ul {
    list-style: none;
}

a {
    color: var(--tertiary-color);
    text-decoration: none;
}

/* Header */
img.bogen {
	position: absolute;
	top: 0;
    right: 0;
	width: 450px;
    z-index: 1;
}

#nav-section {
    height: 20vh;
    background-color: #f4f4f4;
}

.logo-wrapper {
    position: relative;
    height: 100%;
    padding: 30px 20px 10px 50px;
}

#nav-section img.logo {
    position: relative;
    height: 100%;
    z-index: 1;
}

.hero {
    background: url(../images/hero.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 80vh;
    position: relative;
}

.hero .content {
    display: flex;
    height: 100%;
}

.hero .left-column,
.hero .right-column {
    display: flex;
    flex-direction: column;
    width: 50%;
    text-align: right;
    align-items: end;
    justify-content: space-between;
    padding: 150px 70px;
}

.hero .right-column {
    align-items: end;
    justify-content: end;
}

.hero .content p {
    color: var(--primary-color);
    font-size: 1.6rem;
    width: 75%;
}

/* Values section */
.values {
    display: flex;
    height: 150px;
    width: 100%;
    background: #f4f4f4;
    margin: 50px 0px 70px 0px;
}

.value-keywords {
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding: 0px 70px;
}

.value-keyword {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
}

.value-keyword img {
    width: 70px;
    margin-bottom: 10px;
}

.value-keyword p {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2em;
}

.services-wrapper {
    display: flex;
    padding: 0px 70px;
    gap: 70px;
    margin-bottom: 70px;
}

.service-box {
    display: flex;
    flex-direction: column;
    flex: 25%;
    max-width: 100%;
}

.service-box img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    object-position: center;
}

.service-box h2 {
    font-size: 1.6rem;
    font-weight: 400;
    margin: 30px 0px;
}

.service-box p {
    text-align: justify;
    hyphens: auto;
    margin-bottom: 20px;
    min-height: 100px;
}

.service-box a {
    color: var(--quaternary-color);
    font-weight: 700;
    justify-self: flex-end;
    margin-top: auto;
}

.service-box a:hover {
    text-decoration: underline;
}

/* Banner section */
.banner-wrapper {
    display: flex;
    background: var(--primary-color);
    color: #fff;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
    padding: 25px;
}

.banner-wrapper h2 {
    font-family: Colendra, sans-serif;
    font-size: 3.4rem;
    margin: 0px;
}

/* Contact Form */
#contact {
    padding: 0px;
}

.contact-content {
    display: flex;
}

.contact-left-column {
    display: flex;
    align-self: center;
    flex: 6;
    flex-direction: column;
    padding: 100px 80px 90px 70px;
}

.contact-right-column {
    display: flex;
    background: var(--tertiary-color);
    flex-direction: column;
    flex: 4;
}

.contact-form {
    display: flex;
    flex-wrap: wrap;
}

.form-row {
    display: flex;
    flex-basis: 100%;
    margin-bottom: 10px;
}

.form-row.textarea-row {
    margin-bottom: 5px;
}

.form-group {
    flex: 1;
    margin-right: 20px;
}

input {
    width: 100%;
    height: 80px;
    padding: 20px;
    font-size: 24px;
    border: solid 2px var(--primary-color);
    text-transform: uppercase;
    font-family: 'Ubuntu', sans-serif;
}

textarea {
    width: 100%;
    height: 260px;
    padding: 20px;
    border: solid 2px var(--primary-color);
    font-size: 24px;
    font-family: 'Ubuntu', sans-serif;
}

textarea::placeholder {
    font-size: 24px;
    text-transform: uppercase;
    font-family: 'Ubuntu', sans-serif;
}

.contact-button {
    cursor: pointer;
    width: 100%;
    height: 80px;
    font-size: 28px;
    background: var(--primary-color);
    color: #fff;
    border: solid 2px var(--primary-color);
    margin-right: 20px;
    font-weight: 700;
    text-transform: uppercase;
}

.contact-button:hover {
    color: var(--primary-color);
    background: #fff;
}

.consent {
    display: flex;
    align-items: center;
    justify-content:start;
    width: 100%;
    font-size: 16px;
    color: var(--primary-color);
    text-align: left;
}

.consent-checkbox {
    width: 24px;
    margin-right: 10px;
    padding: 0px;
}

.consent a {
    color: var(--quaternary-color);
    margin-top: auto;
    align-items: flex-end;
}

.consent a:hover {
    text-decoration: underline;
}

.slogan-wrapper {
    display: flex;
    flex-direction: column;
    padding: 0px 70px 160px 0px;
    text-align: right;
    margin-top: auto;
    margin-left: auto;
    max-width: 300px;
}

.contact-slogan {
    color: #fff;
    margin-bottom: 80px;
    font-size: 1.8rem;
}

.contact-us {
    font-family: Colendra, sans-serif;
    color: #fff;
    font-size: 3.2rem;
}

.contact-form .success-message {
    display: none;
    padding: 20px;
    background-color: #fff; /* Green */
    color: var(--tertiary-color);
    margin-bottom: 15px;
    font-weight: 700;
    border: none;
}

.contact-form .fail-message {
    display: none;
    padding: 20px;
    background-color: #fff; /* Red */
    color: #f44336;
    margin-bottom: 15px;
    font-weight: 700;
    border: none;
}

/* Footer */
.footer {
    font-size: 0.9em;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    flex-direction: row;
    height: 140px;
    padding: 20px 70px;
    justify-content: space-between;
}

.footer .address {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: left;
    justify-content: center;
}

.footer .splynter {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: right;
    justify-content: space-between;
}

footer p,
footer p > a,
footer a {
    color: #fff;
    padding: 0px;
    margin: 0px;
}

.splynter__text {
    font-size: 0.6em;
}

.footer i {
    font-size: 1.em;
}

.footer img {
    height: 1.4em;
}

.footer img:hover {
    opacity: 0.8;
}

.footer a:hover {
    color: var(--secondary-color);
}

/* Dakwerken */
.dakwerken-hero {
    background: url('../images/hero-dakwerken.webp');
    background-size: cover;
    background-position: center calc(50% - 350px);
    background-repeat: no-repeat;
    position: relative;
    height: 50vh;
}

.hero__button {
    display: block;
    background: var(--secondary-color);
    color: #fff;
    padding: 10px 70px;
    font-size: 2.3rem;
    position: absolute;
    bottom: 50px;
    right: 70px;
}

.secondary__button {
    background: var(--secondary-color);
}

.tertiary__button {
    background: var(--tertiary-color);
}

/* Project properties */
.properties__wrapper {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 30px 0px;
}

.project__divider {
    width: 150px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 0 auto;
}

.properties__title {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 10px;
}

.properties__subtitle {
    font-family: Colendra, sans-serif;
    font-size: 4rem;
    font-weight: 300;
    color: var(--primary-color);
}

.properties__description {
    max-width: 60%;
    margin: 30px auto;
}

/* Project content */
.project__content--wrapper,
.over__content--wrapper {
    display: flex;
    background: #f4f4f4;
    padding: 50px 70px;
}

.project__content--element {
    flex: 50%;
    text-align: center;
}

.project__element__icon img,
.over__element__icon img {
    height: 60px;
    margin-bottom: 30px;
}

.project__element__title,
.over__element__title {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 20px;
}

/* Project images */
.project__images--wrapper {
    display: flex;
    padding: 50px 70px;
    gap: 60px;
}

.project__image {
    flex: 30%;
}

.project__image img {
    width: 100%;
}

/* Renovatie */
.renovatie-hero {
    background: url('../images/hero-renovatie.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    height: 50vh;
}

/* Houtskeletbouw */
.houtskelet-hero {
    background: url('../images/hero-houtskelet.webp');
    background-size: cover;
    background-position: center calc(50% + 80px);
    background-repeat: no-repeat;
    position: relative;
    height: 50vh;
}

/* Gevelbekleding */
.gevelbekleding-hero {
    background: url('../images/hero-gevel.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    height: 50vh;
}

/* Over */
.over-hero {
    background: url('../images/hero-over.webp');
    background-size: cover;
    background-position: center calc(50% - 50px);
    background-repeat: no-repeat;
    position: relative;
    height: 50vh;
}

.over__content--wrapper {
    padding: 70px 150px;
    gap: 200px;
}

.over__content--element {
    flex: 30%;
    text-align: justify;
}

.privacy {
    padding: 50px;
}

#privacy h3 {
    margin-bottom: 20px;
}

/* Non wide-screen */
@media(max-width: 1460px) {
    .services-wrapper {
        flex-wrap: wrap;
    }

    .service-box {
        flex: 40%;
    }

    /* Dakwerken */
    .dakwerken-hero {
        background-position: center calc(50% - 200px);
    }

    /* Renovatie */
    .project__element__title {
        font-size: 2rem;
    }
    
    /* Over */
    .over-hero {
        background-position: right center;
    }
}

/* Non wide-screen */
@media(max-width: 1250px) {
    #nav-section {
        height: 15vh;
    }

    .hero {
        height: 90vh;
    }

    img.bogen {
        width: 350px;
    }

    .hero .right-column {
        padding: 120px 50px 170px 50px;
    }

    .value-keywords {
        flex-wrap: wrap;
    }

    .value-keyword {
        margin-bottom: 15px;
    }

    .form-group.name,
    .form-group.email {
        flex-basis: 100%;
    }

    .project__content--wrapper,
    .project__images--wrapper,
    .over__content--wrapper {
        flex-direction: column;
        gap: 50px;
        padding: 50px 40px;
    }

    .project__content--element
    .project-image {
        flex: 100%;
    }
}

/* Mobile */
@media(max-width: 1000px) {
    body {
        font-size: 1.1rem;
    }

    img.bogen {
        width: 250px;
    }

    .logo-wrapper {
        position: relative;
        height: 100%;
        padding: 20px 20px 10px 20px;
    }

    .hero .content {
        flex-direction: column;
    }

    .hero .left-column {
        display: none;
    }

    .hero .right-column {
        height: 100%;
        width: 100%;
        text-align: center;
        align-items: center;
        padding: 70px 0px 170px 0px;
    }

    .hero .content p {
        width: 100%;
        background: rgba(127, 143, 118, 0.7);
        color: #fff;
        font-size: 1rem;
        padding: 20px;
    }

    .values {
        height: 250px;
        padding: 20px;
    }

    .value-wrapper {
        margin: 20px;
    }
    
    .value-keywords {
        display: flex;
        flex-wrap: wrap;
        font-size: 0.7rem;
        padding: 0px 20px;
    }

    .value-keyword {
        flex: 30%;
    }
    
    .value-keyword img {
        width: 40px;
        margin-bottom: 10px;
    }

    .services-wrapper {
        padding: 0px 50px;
    }

    .service-box {
        flex: 100%;
    }

    .service-box h2 {
        font-size: 1.5em;
    }

    #banner {
        margin-bottom: 30px;
    }

    .banner-wrapper h2 {
        font-size: 1.8rem;
    }

    #contact {
        padding: 0px;
    }

    .contact-content {
        flex-direction: column;
        padding: 0;
    }

    .contact-left-column {
        padding: 50px;
        width: 100%;
    }

    .contact-right-column {
        width: 100%;
        margin: 0;
    }

    .form-group,
    .contact-button {
        margin-right: 0px;
        font-size: 18px;;
    }

    input, textarea, textarea::placeholder {
        font-size: 18px;
    }

    .contact-button {
        height: 60px;
    }

    .consent-checkbox {
        width: 18px;
        margin-right: 7px;
    }

    .consent {
        font-size: 0.8rem;
    }

    .slogan-wrapper {
        text-align: center;
        margin: 0 auto;
        align-items: center;
        justify-content: center;
        max-width: 80%;
        padding: 70px;
    }

    .contact-slogan {
        margin-bottom: 40px;
        font-size: 1.3rem;
    }

    .contact-us {
        font-size: 2.3rem;
    }
    
    .footer {
        flex-direction: column;
        height: 240px;
        text-align: center;
        padding: 20px;
    }

    .footer .address {
        text-align: center;
        justify-content: center;
    }

    .footer .splynter {
        text-align: center;
    }

    /* Dakwerken */
    .dakwerken-hero {
        background-position: center calc(50% - 0px);
    }

    .hero__button {
        padding: 7px 20px;
        font-size: 1.3rem;
        position: absolute;
        bottom: 20px;
        right: 20px;
    }

    .properties__wrapper {
        padding: 30px;
    }

    .properties__title {
        font-size: 1.4rem;
    }

    .properties__subtitle {
        font-size: 3rem;
    }

    .properties__description {
        max-width: 100%;
        padding: 0px 20px;
        margin-top: 20px;
    }

    .project__element__icon img,
    .over__element__icon img {
        height: 50px;
        margin-bottom: 20px;
    }

    .project__element__title,
    .over__element__title {
        font-size: 1.7rem;
    }

    .over__content--element {
        text-align: center;
    }
}

@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-2px, -3px) rotate(-1deg); }
    20% { transform: translate(-4px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-2px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
  }

.animate {
    animation: shake 0.1s;
    animation-duration: 2s;
}