:root {
    --bg: #f5f4f0;
    --mint: #e3efeb;
    --green: #1e6b57;
    --dark: #1d2025;
    --gutter: 60px;
    /* ruimte tussen content en schermrand */
    --section-gap: 32px;
    /* ruimte boven de footer */
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, system-ui, sans-serif;
    background: var(--bg);
    color: #3a434b;
    line-height: 1.5;

    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;

    &:not(.btn):hover {
        color: var(--green);
    }
}

h1,
h2,
h3,
p {
    margin: 0 0 16px;
    color: var(--dark);
}

.container {
    max-width: 1120px;
    width: 100%;
    margin: 0 auto;
    padding: 0 60px;
    position: relative;
    left: calc((100vw - 100%) / 2);
}

.img {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
}

.logo {
    width: 150px;
    height: 50px;
}

.navlogo {
    display: block;
    width: 300px;
    max-width: 100%;
    height: auto;
}

.header nav .nav-home {
    display: none;
}

.img-footer {
    width: 100%;
    max-width: 100%;
}

.icon {
    width: 36px;
    height: 36px;
    margin-bottom: 12px;
}

.btn {
    display: inline-block;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 600;
    border: 1.5px solid transparent;
    text-align: center;
}

.btn-green {
    background: var(--green);
    color: #fff;

    &:hover {
        background: var(--dark);
    }
}

.btn-outline {
    color: var(--green);
    margin-left: 10px;
}

.btn-white {
    background: #fff;
    color: var(--green);

    &:hover {
        background: var(--dark);
        color: var(--bg);
    }
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px 24px;
    padding-top: 20px;
    padding-bottom: 20px;
}

.header nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 35px;
    font-weight: 400;
}

.header nav a.active {
    font-weight: bold;
    font-size: 120%;
    color: var(--green);
}

.menu-toggle {
    display: none;
}

/* Hero */
.hero {
    position: relative;
    padding-top: 20px;
    margin-bottom: 60px;
    overflow-x: clip;
}

.hero .container {
    position: relative;
}

.hero h1 {
    font-size: clamp(36px, 6vw, 60px);
    line-height: 1.05;
    letter-spacing: -.03em;
}

.lead {
    font-size: clamp(17px, 2vw, 19px);
    margin-bottom: 24px;
}

.label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .14em;
    color: var(--green);
}

.hero-logo {
    position: absolute;
    right: 20%;
    bottom: 30%;
    height: 130%;
    z-index: -1;
}

.img-hero-logo {
    height: 200%;
    display: block;
    opacity: .2;
}

.img-hero-tekst {
    position: absolute;
    width: 70%;
    left: -5%;
    bottom: 0%;
}

.features {
    background: var(--mint);
    padding: 28px 0;
    margin-top: 60px;
}

.grid4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.grid4 h3 {
    font-size: 18px;
    margin-bottom: 6px;
}

.grid4 p {
    font-size: 14px;
}

/* Over ons */
.about {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    padding-top: 30px;
    padding-bottom: 30px;
}

.about-text {
    width: 75%;
    margin: 0 auto
}

.img-about {
    width: 75%;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    justify-self: center;
}

.img-kvk {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.8);
    transform-origin: 45% 20%;
}

.about h2 {
    font-size: clamp(28px, 4vw, 36px);
    line-height: 1.1;
}

/* CTA */
.cta {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 24px;
    width: min(1050px, calc(100% - 2 * var(--gutter)));
    margin: 30px auto 0;
    padding: 40px;
    border-radius: 18px;
    background: var(--green);
    color: #fff;
}

.cta h2,
.cta p {
    color: #fff;
    margin-bottom: 0;
}

.cta h2 {
    font-size: clamp(24px, 3.5vw, 32px);
    margin-bottom: 6px;
}

.cta p {
    margin-bottom: 0px;
}

.cta-text {
    text-align: left;
}

.cta-btn {
    justify-self: end;
}

/* Footer */
footer {
    background: var(--dark);
    color: #e9eef0;
    padding: 28px 0;
    padding-bottom: max(28px, env(safe-area-inset-bottom, 0px));
    margin-top: auto;
    /* Vaste ruimte boven de footer in de achtergrondkleur van de pagina */
    border-top: var(--section-gap) solid var(--bg);
    background-clip: padding-box;
}

footer .img {
    background: var(--dark);
}

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    font-size: 14px;
}

.socials {
    display: flex;
    gap: 14px;

    .insta {
        font-size: 180%;
    }

    .linkedin {
        font-size: 180%;
    }
}

.socials .icon {
    margin: 0;
}

.small {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .18);
    font-size: 12px;
    color: #aab4ba;
}

.small p {
    color: inherit;
    margin: 0;
}

.small a {
    margin-left: 16px;
}

/* Services page */
.hero-services {
    margin-bottom: 24px;
}

.services {
    padding-bottom: 30px;
    align-items: center;
}

.services-text {
    max-width: 720px;
    margin: 0 auto;
    align-items: center;
}

.services h2 {
    font-size: clamp(28px, 4vw, 36px);
    line-height: 1.1;
}

/* Projects page */
.projects-text {
    margin-bottom: 0px;
}

.projects {
    margin-top: 24px;
    margin-bottom: 24px;
}

/* About page */
.about-intro {
    margin-bottom: 0px;
}

.about-texts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding-bottom: 10px;
}

.about-text-part {
    display: flex;
    flex-direction: column;
    padding-inline: 15px;
}

.extras {
    display: flex;
    justify-content: center;
    margin-top: auto;
    margin-bottom: 16px;
}

.name-extra {
    margin: auto;
    display: flex;
    justify-content: center;
}

.name-extra-inner {
    width: fit-content;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.name-extra span {
    font-size: clamp(40px, 9vw, 75px);
    font-weight: 600;
    line-height: 1.1;
    color: var(--green);
}

.about-text-part:nth-child(odd) {
    border-right: 1px solid var(--dark);
}

.about-text-part:nth-child(-n + 2) {
    border-bottom: 1px solid var(--dark);
}

/* Contact page */
.lead.contact {
    padding-bottom: 0px;
    margin-bottom: 0px;
}

.contact-intro {
    margin-bottom: 16px;
    padding-bottom: 0px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-form label {
    font-weight: 600;
    color: var(--dark);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    font: inherit;
    border: 1.5px solid #cfd6d3;
    border-radius: 10px;
    background: #fff;
}

.privacy{
    color: var(--green);
}

.inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-bottom: 10px;
    gap: 30px;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    color: var(--dark);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--green);
}

.contact-form .btn {
    cursor: pointer;
    font: inherit;
    font-weight: 600;
}

.honeypot {
    position: absolute;
    left: -9999px;
}

.h-captcha {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s, opacity 0.3s, margin-bottom 0.3s;
}

.h-captcha.is-visible {
    max-height: 200px;
    opacity: 1;
}

.form-actions {
    display: grid;
    justify-items: center;
    align-items: center;
    margin-top: 8px;
}

.form-actions>* {
    grid-area: 1 / 1;
    transition: opacity .3s ease, visibility .3s ease;
}

.form-actions .btn {
    cursor: pointer;
    font: inherit;
    font-weight: 600;
}

.form-status {
    margin: 0;
    padding: 14px 26px;
    border-radius: 999px;
    border: 1.5px solid transparent;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
}

.form-status.loading {
    background: #fff;
    color: #3a434b;
    border-color: #cfd6d3;
}

.form-status.success {
    background: var(--mint);
    color: var(--green);
    border-color: var(--green);
}

.form-status.error {
    background: #fdecec;
    color: #9b1c1c;
    border-color: #e4a1a1;
}

.form-actions .btn.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.form-status.is-visible {
    opacity: 1;
}

.contact-text .img-about {
    width: 75%;
    max-width: 420px;
}

/* Tablet landscape / klein laptop */
@media (max-width: 1000px) {
    :root {
        --gutter: 40px;
    }

    .grid4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        margin-bottom: 48px;
    }

    .img-hero-tekst {
        width: 85%;
        left: 10px;
    }

    .about-text {
        width: 90%;
    }
}

/* Tablet portret / grote telefoon */
@media (max-width: 800px) {
    :root {
        --gutter: 24px;
        --section-gap: 24px;
    }

    .header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .header nav {
        justify-content: center;
        gap: 10px 22px;
    }

    .hero {
        padding-top: 12px;
        margin-bottom: 32px;
    }


    .hero-logo {
        position: absolute;
        right: 0;
        top: 70%;
        bottom: auto;
        height: min(80vw, 360px);
        aspect-ratio: 1;
        transform: translateY(-50%);
        z-index: -1;
        overflow: hidden;
    }

    .img-hero-logo {
        height: 100%;
        width: auto;
        max-width: none;
        display: block;
    }

    .img-hero-tekst {
        position: static;
        width: 100%;
        margin-top: 24px;
    }

    .hero-photo {
        position: static;
        width: 100%;
        margin-top: 30px;
    }

    .grid4,
    .about {
        grid-template-columns: 1fr;
        justify-content: center;
        align-items: center;
    }

    .grid4 {
        gap: 24px;
    }

    .about {
        gap: 20px;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .about-text {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .about-text-only {
        display: flex;
        flex-direction: column;
        justify-content: baseline;
    }

    .img-about,
    .contact-text .img-about {
        width: 60%;
        max-width: 320px;
    }

    .cta {
        grid-template-columns: 1fr;
        margin: 20px auto 0;
        padding: 24px;
    }

    .cta-btn {
        justify-self: start;
    }

    /* Over-ons pagina: 2x2 grid wordt 1 kolom */
    .about-texts {
        grid-template-columns: 1fr;
    }

    .about-text-part {
        padding: 16px 0;
    }

    .about-text-part:first-child {
        padding-top: 0;
    }

    .about-text-part:nth-child(odd) {
        border-right: none;
    }

    .about-text-part:nth-child(-n + 2) {
        border-bottom: none;
    }

    .about-text-part:not(:last-child) {
        border-bottom: 1px solid var(--dark);
    }

    /* Contactformulier */
    .inputs {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Footer */
    .footer-row {
        flex-direction: column;
        text-align: center;
    }

    footer nav {
        justify-content: center;
    }

    .small a {
        margin: 0 8px;
    }
}

/* Kleine telefoon */
@media (max-width: 520px) {
    :root {
        --gutter: 0px;
    }

    .header {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        text-align: left;
    }

    .header nav .nav-home {
        display: block;
    }

    .navlogo {
        width: 200px;
    }

    /* Hamburgerknop */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        padding: 0 10px;
        background: var(--green);
        border: 1.5px solid var(--bg);
        border-radius: 12px;
        cursor: pointer;
        transition: background .2s ease;
    }

    .menu-toggle span {
        display: block;
        height: 2px;
        width: 100%;
        background: var(--bg);
        border-radius: 2px;
        transition: transform .3s ease, opacity .2s ease, background .2s ease;
    }

    .menu-toggle.open {
        background: var(--green);
    }

    .menu-toggle.open span {
        background: var(--bg);
    }

    .menu-toggle.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Dropdown-paneel */
    .header nav {
        position: absolute;
        top: 100%;
        left: 15px;
        right: 15px;
        z-index: 100;
        flex-direction: column;
        align-items: stretch;
        flex-wrap: nowrap;
        gap: 4px;
        padding: 12px;
        background: #fff;
        border-radius: 14px;
        box-shadow: var(--dark);

        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
    }

    .header nav.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .header nav a {
        padding: 12px 16px;
        border-radius: 10px;
        font-size: 17px;
    }

    .header nav a:not(.btn):hover {
        background: var(--mint);
    }

    .header nav .btn {
        margin-top: 6px;
    }

    .btn {
        padding: 12px 22px;
    }

    .btn-outline {
        margin-left: 0;
    }

    .hero .btn {
        margin-bottom: 10px;
    }

    .hero {
        min-height: 340px;
    }

    .hero-logo {
        right: -2%;
        top: 55%;
        height: 75vw;
        max-height: 300px;
    }

    .img-hero-logo {
        height: 100%;
    }

    .hero {
        margin-bottom: 20px;
        min-height: auto;
    }

    .container {
        padding-inline: 15px;
    }

    .cta {
        left: 0;
        width: calc(100% - 32px);
        margin: 20px auto 0;
        padding: 24px 20px;
        border-radius: 14px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .projects-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}