/* =========================================
   LAYOUT.CSS - Structuur, grid en positionering
   ========================================= */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Containers */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0;
}

/* Navigation Layout */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: 80px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

/* Hamburger Menu Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background: #FFFFFF;
    border-radius: 3px;
    transition: all 0.3s linear;
    transform-origin: left;
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg); }

/* Hero Layout */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px; /* Offset for header */
}

.hero-content {
    max-width: 800px;
}

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

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Forms Layout */
.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
}

/* Footer Layout */
footer {
    padding: 4rem 0 2rem;
    margin-top: auto;
}

/* Responsive (Mobile/Tablet) */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 250px;
        flex-direction: column;
        background-color: #112240;
        padding-top: 80px;
        transition: right 0.3s ease;
        box-shadow: -2px 0 5px rgba(0,0,0,0.5);
    }
    
    .nav-links.active { right: 0; }
    
    .nav-links li { margin: 1.5rem 0; text-align: center; }
    
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    section {
        padding: 4rem 0;
    }
}

/* Hero Grid Layout */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
@media (max-width: 900px) {
    .hero-grid {
        display: flex;
        flex-direction: column;
        gap: 0; /* No flex gap */
        text-align: center;
    }
    .hero-image img {
        margin-bottom: 0;
        display: block;
    }
    .hero-text h1 {
        margin-top: 0;
    }
    .hero-image {
        order: -1; /* Puts the image above the text */
    }
    .hero-text {
        order: 1;
    }
    .hero-buttons {
        justify-content: center;
    }
}
