/* Algemene Reset & Basisstijlen */
:root {
    --primary-color: #FF6F00; /* Oranje van het logo */
    --secondary-color: #333;  /* Donkergrijs/zwart van het logo */
    --text-color: #444;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --shadow-light: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 8px 16px rgba(0, 0, 0, 0.15);
    --hover-primary-color: #E66400; /* Iets donkerder oranje voor hover */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff; /* Altijd wit */
    scroll-behavior: smooth; /* Smooth scrolling voor ankers */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    margin-bottom: 0.8em;
}

h1 { font-size: 2.8em; }
h2 {
    font-size: 2.2em;
    text-align: center;
    margin-bottom: 1.5em;
    position: relative; /* Voor de onderstreping */
    padding-bottom: 10px; /* Ruimte voor de onderstreping */
}

h2::after { /* Onderstreping voor H2 */
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

h3 { font-size: 1.6em; }
p { margin-bottom: 1em; }

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--hover-primary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Knoppen (Buttons) */
.button {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 14px 28px;
    border-radius: 50px; /* Pilvormig */
    text-transform: uppercase;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1em;
}

.button:hover {
    background-color: var(--hover-primary-color);
    transform: translateY(-2px);
}

/* Header & Hero Sectie */
.hero-section {
    background-color: #fff; /* Witte achtergrond, geen banner */
    color: var(--secondary-color); /* Tekstkleur aanpassen voor witte achtergrond */
    text-align: center;
    padding: 50px 20px;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}


.hero-content {
    max-width: 800px;
    z-index: 10;
    /* margin-top: -50px;  Offset om de logo/text omhoog te plaatsen - niet meer nodig */
}

.hero-logo {
    width: 250px;
    height: auto;
    margin-bottom: 20px;
}

.hero-section h1 {
    font-size: 3.5em;
    margin-bottom: 0.5em;
    color: var(--secondary-color);
    text-shadow: none;
}

.hero-section p {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: var(--text-color);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Secties algemeen */
section {
    padding: 80px 20px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff; /* Altijd wit */
}

/* Diensten Sectie */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.service-item img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.service-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* USP Sectie */
.usp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.usp-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    text-align: left;
    transition: transform 0.3s ease;
}

.usp-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.usp-item h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    position: relative;
    padding-left: 40px; /* Ruimte voor de cirkel */
}

.usp-item h3::before { /* Gekleurde cirkel naast de titel */
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 25px;
    height: 25px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

/* Over Ons Sectie */
.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.about-content p {
    margin-bottom: 1.5em;
    font-size: 1.1em;
}

/* Contact Sectie */
.contact-section {
    background-color: #fff; /* Altijd wit */
}

.contact-intro {
    font-size: 1.1em;
    margin-bottom: 40px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto 40px;
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-group textarea {
    resize: vertical;
}

.contact-form .button {
    width: auto; /* Zodat de breedte wordt bepaald door padding/content */
    display: block; /* Zodat het een eigen regel krijgt */
    margin: 0 auto; /* Centreer de knop */
}

.form-message {
    margin-top: 20px;
    padding: 10px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    display: none; /* Standaard verborgen */
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.contact-info {
    margin-top: 20px; /* Aanpassing marge boven contact info */
    margin-bottom: 40px; /* Marge onder contact info, boven formulier */
    text-align: center;
    font-size: 1.1em;
}

.contact-info p {
    margin-bottom: 0.5em;
}

/* Footer */
footer {
    background-color: #fff; /* Aangepast naar wit */
    color: var(--secondary-color); /* Tekstkleur aangepast voor witte achtergrond */
    text-align: center;
    padding: 25px 20px;
    font-size: 0.9em;
    border-top: 1px solid #eee; /* Optionele lichte rand bovenaan de footer */
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 { font-size: 2.2em; }
    h2 { font-size: 1.8em; }
    h3 { font-size: 1.4em; }

    .hero-section {
        padding: 40px 20px 60px;
        min-height: 60vh;
    }

    .hero-content {
        margin-top: 0; /* Geen offset meer nodig */
    }

    .hero-logo {
        width: 180px;
    }

    .hero-section p {
        font-size: 1.1em;
        margin-bottom: 30px;
    }

    section {
        padding: 60px 20px;
    }

    .services-grid,
    .usp-grid {
        grid-template-columns: 1fr; /* Kolommen onder elkaar op kleine schermen */
    }

    .service-item,
    .usp-item,
    .contact-form {
        padding: 25px;
    }

    .usp-item h3 {
        padding-left: 35px;
        font-size: 1.5em;
    }
    .usp-item h3::before {
        width: 20px;
        height: 20px;
    }

    .contact-form .button {
        width: 100%; /* Knop vult de breedte */
    }

}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 2em;
    }

    .hero-logo {
        width: 150px;
    }

    .hero-section p {
        font-size: 1em;
    }

    .button {
        padding: 12px 20px;
        font-size: 0.9em;
    }

    .contact-info p {
        font-size: 1em;
    }
}

/* --- Modal Styling --- */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.7); /* Black w/ opacity */
    display: flex; /* Use flexbox for centering */
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
    opacity: 0; /* Start hidden for animation */
    visibility: hidden; /* Start invisible for animation */
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: #fff;
    margin: 15% auto; /* Adjust margin for positioning */
    padding: 30px;
    border-radius: 8px;
    position: relative;
    width: 90%; /* Responsive width */
    max-width: 600px; /* Max width */
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transform: translateY(20px); /* Start slightly lower for animation */
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: translateY(0); /* Animate to original position */
}

.modal-close {
    color: #aaa;
    /* float: right; */ /* Niet meer nodig met absolute positioning */
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 20px;
}

.modal-close:hover,
.modal-close:focus {
    color: #333;
    text-decoration: none;
}

.modal-content h3 {
    color: var(--secondary-color); /* Aangepast naar secondary color */
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.8em;
}

.modal-content p {
    color: var(--text-color); /* Aangepast naar text color */
    line-height: 1.6;
}

/* Responsive adjustments for modal */
@media (max-width: 768px) {
    .modal-content {
        padding: 20px;
        width: 95%; /* Wider on smaller screens */
    }
    .modal-content h3 {
        font-size: 1.5em;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 15px;
        margin: 10% auto; /* Adjust margin for very small screens */
    }
    .modal-close {
        font-size: 24px;
        right: 15px;
    }
}

/* Styling for the More info button - Gebruikt nu consistentie met main buttons */
.more-info-button {
    margin-top: 20px;
    display: inline-block;
    padding: 10px 20px; /* Iets kleiner dan de hoofdknoppen */
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px; /* Minder rond dan de hoofdknoppen */
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.more-info-button:hover {
    background-color: var(--hover-primary-color);
}