@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #34495E; /* Diep blauwgrijs */
    --accent-color: #6A96C2; /* Zacht institutioneel blauw */
    --secondary-color: #5A7E9C; /* Ingetogen blauw */
    --bg-color: #FFFFFF;
    --bg-light-color: #F5F5F5; /* Licht neutraal grijs */
    --text-color: #2C3E50; /* Donker neutraal grijs */
    --text-muted: #555;
    --border-color: #e0e0e0;
    --header-height: 80px;
    --font-family: 'Open Sans', sans-serif;
    --border-radius: 8px;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* --- RESET & BASE --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }
p { margin-bottom: 1.5rem; }
a { color: var(--accent-color); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--primary-color); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; border-radius: var(--border-radius); }
ul, ol { list-style-position: inside; padding-left: 0; }
hr.section-divider { border: 0; height: 1px; background-color: var(--border-color); margin: 3rem 0; width: 80%; margin-left: auto; margin-right: auto;}

/* --- LAYOUT & CONTAINER --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

/* --- HEADER & NAVIGATION --- */
.main-header {
    background-color: var(--bg-color);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}
.logo:hover { text-decoration: none; }

.main-nav ul { list-style: none; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-link { font-weight: 600; font-size: 1rem; color: var(--text-color); text-decoration: none; position: relative; padding: 5px 0; }
.nav-link.active, .nav-link:hover { color: var(--accent-color); }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}
.nav-link.active::after, .nav-link:hover::after { width: 100%; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown .nav-link svg { transition: transform 0.3s ease; }
.dropdown:hover .nav-link svg { transform: rotate(180deg); }
.dropdown-menu {
    display: none;
    position: absolute;
    top: 150%;
    left: -20px;
    background-color: white;
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);
    padding: 1rem;
    list-style: none;
    min-width: 220px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.dropdown:hover .dropdown-menu { display: block; opacity: 1; transform: translateY(0); top: 100%; }
.dropdown-menu a { display: block; padding: 0.75rem 1rem; color: var(--text-color); font-weight: 400; border-radius: 4px; }
.dropdown-menu a:hover { background-color: var(--bg-light-color); color: var(--primary-color); text-decoration: none; }

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 22px;
    flex-direction: column;
    justify-content: space-between;
}
.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* --- HERO SECTIONS --- */
.hero, .hero-short {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background-size: cover;
    background-position: center;
    background-color: var(--primary-color);
}
.hero { min-height: 85vh; padding: 5rem 1.5rem; }
.hero-short { min-height: 40vh; padding: 4rem 1.5rem; }

.hero::before, .hero-short::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(44, 62, 80, 0.7); /* translucent primary color */
}
.hero-content { position: relative; z-index: 1; max-width: 900px; }
.hero-title {
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    color: white;
}
.hero-intro {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    font-weight: 300;
    max-width: 800px;
    margin: 1.5rem auto 0;
    line-height: 1.8;
}

/* --- CONTENT SECTIONS --- */
.content-section { padding: clamp(40px, 8vw, 80px) 0; }
.content-section.bg-light { background-color: var(--bg-light-color); }
.content-section.no-padding-top { padding-top: 0; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-subtitle { font-size: 1.1rem; color: var(--text-muted); max-width: 700px; margin: 0.5rem auto 0; }

.content-text { max-width: 800px; margin: 0 auto; }
.centered-text { text-align: center; }
.grid-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.editorial-section { background: var(--bg-color); padding: 2rem; border-radius: var(--border-radius); border: 1px solid var(--border-color); }
.editorial-section h3 { margin-bottom: 1rem; }
.editorial-section p { margin-bottom: 1rem; }
.text-link { font-weight: 600; display: inline-block; margin-top: 1rem; }

.content-image-block { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.content-image-block.reverse { grid-template-columns: 1fr 1fr; }
.content-image-block.reverse .content-image-half { order: -1; }
.content-image-half img { box-shadow: var(--shadow); }

.article-list { list-style: none; padding: 0; }
.article-list li { margin-bottom: 1rem; }
.article-list li a { font-weight: 600; font-size: 1.1rem; }

/* --- BREADCRUMBS --- */
.breadcrumb {
    display: flex;
    list-style: none;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}
.breadcrumb-item + .breadcrumb-item::before { content: '>'; margin: 0 0.5rem; color: var(--text-muted); }
.breadcrumb-item a { color: var(--text-muted); }
.breadcrumb-item a:hover { color: var(--primary-color); }
.breadcrumb-item.active { color: var(--text-color); font-weight: 600; }

/* --- FEATURE CARDS --- */
.feature-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.feature-card-text { text-align: left; padding: 2rem; border-radius: var(--border-radius); border-left: 4px solid var(--accent-color); background: var(--bg-color); }

/* --- ARTICLE PAGE --- */
.article-container { max-width: 850px; }
.article-body h2 { margin-top: 3rem; margin-bottom: 1.5rem; }
.article-body p, .article-body ul { margin-bottom: 1.5rem; }
.article-body ul { list-style: disc; list-style-position: outside; padding-left: 1.5rem; }
.article-body ul li { margin-bottom: 0.75rem; }
.article-image { margin: 2rem 0; }
.article-image figcaption { text-align: center; font-style: italic; font-size: 0.9rem; color: var(--text-muted); margin-top: 0.5rem; }

.editorial-callout {
    margin: 3rem 0;
    padding: 2rem;
    background-color: var(--bg-light-color);
    border-left: 5px solid var(--accent-color);
    text-align: center;
}
.editorial-callout p {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--primary-color);
    margin: 0;
    font-weight: 600;
}

.related-articles { margin-top: 4rem; border-top: 1px solid var(--border-color); padding-top: 2rem; }
.related-articles h3 { margin-bottom: 1.5rem; }
.related-articles ul { list-style: none; padding: 0; }
.related-articles li a { display: block; padding: 0.5rem 0; font-weight: 600; }

/* --- CONTACT PAGE --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}
.contact-details { margin-top: 2rem; }
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.contact-item svg { color: var(--accent-color); flex-shrink: 0; margin-top: 4px; }
.contact-item strong { display: block; margin-bottom: 0.25rem; }
.contact-item p, .contact-item a { margin: 0; font-size: 1rem; }
.contact-form-container { background-color: var(--bg-light-color); padding: 2.5rem; border-radius: var(--border-radius); }
.contact-form .form-group { margin-bottom: 1.5rem; }
.contact-form label { display: block; font-weight: 600; margin-bottom: 0.5rem; }
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent-color); box-shadow: 0 0 0 3px rgba(106, 150, 194, 0.3); }
.map-container {
    width: 100%;
    height: 450px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-top: 3rem;
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.btn-primary { background-color: var(--accent-color); color: white; }
.btn-primary:hover { background-color: var(--secondary-color); }
.btn-secondary { background-color: var(--text-color); color: white; }
.btn-secondary:hover { background-color: var(--primary-color); }

/* --- FOOTER --- */
.main-footer {
    background-color: var(--primary-color);
    color: #ecf0f1;
    padding: 4rem 0 2rem;
    font-size: 0.9rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}
.footer-column h4 { color: white; margin-bottom: 1.5rem; font-size: 1.1rem; }
.footer-column p, .footer-column a { color: #bdc3c7; }
.footer-column a:hover { color: white; }
.footer-column ul { list-style: none; }
.footer-column ul li { margin-bottom: 0.75rem; }
.footer-bottom { text-align: center; border-top: 1px solid #4a6278; padding-top: 2rem; }
.footer-bottom p { color: #bdc3c7; margin: 0; }

/* --- COOKIE BANNER --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--primary-color);
    color: white;
    padding: 1.5rem 0;
    z-index: 9999;
    display: none;
    box-shadow: 0 -3px 15px rgba(0,0,0,0.1);
}
.cookie-banner .container-flex { justify-content: space-between; align-items: center; gap: 2rem; }
.cookie-banner p { margin: 0; }
.cookie-banner p a { color: white; font-weight: 600; }
.cookie-buttons { display: flex; gap: 1rem; flex-shrink: 0; }
.cookie-buttons .btn-secondary { background: #fff; color: var(--primary-color); }
.cookie-buttons .btn-secondary:hover { background: #e0e0e0; }

/* --- THANK YOU / 404 PAGE --- */
.thank-you-section {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
}
.thank-you-icon {
    width: 80px; height: 80px; background: var(--accent-color); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; margin-bottom: 30px;
}
.thank-you-icon svg { width: 40px; height: 40px; color: white; stroke-width: 1.5; }
.thank-you-section h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 20px; }
.thank-you-section p { font-size: 1.2rem; color: var(--text-muted); max-width: 600px; margin-bottom: 30px; }
.error-code { font-size: clamp(5rem, 20vw, 10rem); color: var(--accent-color); margin-bottom: 0; line-height: 1; }

/* --- SCROLL TO TOP BUTTON --- */
#to-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 999;
}
#to-top-btn.show { display: flex; opacity: 1; }
#to-top-btn:hover { background-color: var(--secondary-color); }

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
    .content-image-block, .content-image-block.reverse { grid-template-columns: 1fr; }
    .content-image-block.reverse .content-image-half { order: 0; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    .grid-2-col { grid-template-columns: 1fr; }
    .map-container { height: 350px; }
    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--bg-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3rem;
        transition: left 0.4s ease-in-out;
        padding-bottom: var(--header-height);
    }
    .nav-links.active { left: 0; }
    .nav-link { font-size: 1.5rem; }
    .mobile-nav-toggle { display: flex; }
    body.nav-open { overflow: hidden; }

    .main-header.scrolled {
      background-color: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(5px);
    }

    .mobile-nav-toggle.open .hamburger-line:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .mobile-nav-toggle.open .hamburger-line:nth-child(2) { opacity: 0; }
    .mobile-nav-toggle.open .hamburger-line:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }
    
    .dropdown:hover .dropdown-menu { display: none; }
    .dropdown.open .dropdown-menu {
        display: block;
        opacity: 1;
        transform: none;
        position: static;
        background: none;
        box-shadow: none;
        min-width: unset;
        text-align: center;
    }
    .dropdown .nav-link svg { display: inline-block; }
    .dropdown-menu a { color: var(--text-color) }
    
    .cookie-banner { text-align: center; }
    .cookie-banner .container-flex { flex-direction: column; }
}