﻿/* =======================================================
   RESET + BASIS
======================================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Nunito', Arial, sans-serif;
    background: #f3f3f3;
    color: #333;
    display: flex;
    flex-direction: column;
}

/* =======================================================
   HEADER
======================================================= */
header {
    background: #222; /* heel donker grijs */
    padding: 18px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 3px solid #333;
}

    header img {
        height: 80px;
    }

.logo {
    filter: invert(1) hue-rotate(180deg);
}

/* =======================================================
   DESKTOP MENU
======================================================= */
nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    color: #eaeaea;
    text-decoration: none;
    font-size: 17px;
    font-weight: 600;
    padding-bottom: 4px;
    transition: 0.2s;
}

    nav a:hover {
        color: #fff;
        border-bottom: 2px solid #777;
    }

/* =======================================================
   HAMBURGER ICON
======================================================= */
.menu-btn {
    display: none;
    font-size: 32px;
    color: white;
    cursor: pointer;
    padding: 10px;
}

/* =======================================================
   MOBILE MENU — FULLSCREEN OVERLAY
======================================================= */
@media (max-width: 780px) {

    /* desktop menu verbergen */
    nav ul {
        display: none;
    }

        /* volledige overlay wanneer open */
        nav ul.show {
            display: flex;
            flex-direction: column;
            position: absolute;
            top: 90px; /* ONDER HET LOGO */
            left: 0;
            width: 100vw; /* Hele breedte */
            height: calc(100vh - 90px); /* Hele hoogte */
            background: #262626; /* donker grijs */
            padding: 30px;
            gap: 25px;
            border-top: 2px solid #333;
            z-index: 9999;
            overflow-y: auto;
            animation: fadeIn 0.25s ease-in-out;
        }

    .menu-btn {
        display: block;
    }

    nav ul li a {
        font-size: 22px;
        padding: 8px 0;
        border-bottom: 1px solid #444;
        color: #fff;
    }
}

/* Animatie bij openen menu */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =======================================================
   CONTENT
======================================================= */
.content {
    max-width: 1100px;
    width: 90%;
    margin: 20px auto;
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    flex-grow: 1; /* zorgt dat footer onderaan blijft */
}

    .content h1 {
        margin-bottom: 20px;
        font-weight: 700;
    }

/* =======================================================
   FOOTER
======================================================= */
footer {
    background: #222;
    color: #aaa;
    text-align: center;
    padding: 18px;
    font-size: 14px;
    border-top: 3px solid #333;
}

.content ul {
    margin-left: 25px;
    padding-left: 5px;
}




/* ======================================
   FEATURE ICON BLOCKS
====================================== */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: center;
    transition: 0.2s;
}

    .feature-item:hover {
        transform: translateY(-4px);
        box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    }

    .feature-item i {
        font-size: 42px;
        color: #444;
        margin-bottom: 15px;
    }

    .feature-item h3 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .feature-item p {
        font-size: 15px;
        color: #555;
        line-height: 1.5;
    }

.content h2,
.content h3 {
    margin-top: 30px; /* ruimte boven kop */
    margin-bottom: 12px; /* ruimte onder kop */
    line-height: 1.3; /* mooie compacte kop */
}


/* Mobiel weergave */
@media (max-width: 780px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
}



.contact-wrapper {
    max-width: 700px;
    margin: 40px auto;
}

.contact-form {
    margin-top: 25px;
}

.form-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.btn {
    background: #333;
    color: #fff;
    padding: 10px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

    .btn:hover {
        background: #000;
    }

.contact-success {
    background: #e6f8e6;
    border: 1px solid #4caf50;
    color: #2d6a2d;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.contact-error {
    background: #ffe8e8;
    border: 1px solid #d9534f;
    color: #b92727;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
}



.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.project-item {
    display: block;
    padding: 20px;
    border-radius: 8px;
    background: #f7f7f7;
    text-decoration: none;
    color: #222;
    border: 1px solid #e0e0e0;
    transition: 0.2s;
}

    .project-item:hover {
        background: #ffffff;
        border-color: #cfcfcf;
        box-shadow: 0 3px 10px rgba(0,0,0,0.06);
    }

    .project-item h3 {
        margin-top: 0;
        margin-bottom: 10px;
        font-size: 20px;
        font-weight: 700;
    }

    .project-item p {
        margin: 0;
        line-height: 1.45;
        font-size: 15px;
    }


/* Mobiele padding voor alle contentgebieden */
.contact-wrapper,
.content,
.projecten-wrapper,
.diensten-wrapper {
    padding: 20px;
}

/* Alleen mobiel (tot 768px breed) */
@media (max-width: 768px) {
    .contact-wrapper,
    .content,
    .projecten-wrapper,
    .diensten-wrapper {
        padding: 20px !important;
    }

    .form-input,
    textarea.form-input {
        width: 100%;
        box-sizing: border-box;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

