@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #0F4C81;
    --text: #2D3748;
    --muted: #718096;
    --light: #F7FAFC;
    --border: #E2E8F0;
    --sponsor: #0D7A5F;
    --news: #DD6B20;
    --accent: #0F4C81;
    --white: #ffffff;
    --shadow: 0 12px 30px rgba(45, 55, 72, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', 'Roboto', 'Open Sans', Arial, sans-serif;
    color: var(--text);
    background: #ffffff;
    line-height: 1.65;
}

body.modal-open { overflow: hidden; }

img { max-width: 100%; display: block; }

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

button, input, textarea { font: inherit; }

.site-header {
    width: 100%;
    min-height: 100px;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 9000;
}

.header-inner {
    min-height: 100px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: minmax(230px, 1fr) auto;
    align-items: center;
    gap: 24px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.04em;
    font-size: clamp(26px, 3vw, 40px);
    line-height: 1;
}

.logo-link img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 14px;
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.contact-line {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: flex-end;
    font-size: 14px;
    color: var(--text);
}

.contact-line a { color: var(--primary); font-weight: 700; }

.mobile-nav-toggle {
    display: none;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--primary);
    border-radius: 8px;
    padding: 8px 12px;
    font-weight: 700;
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    margin: 0;
}

.nav-link, .dropdown-toggle {
    border: 0;
    background: transparent;
    color: var(--text);
    font-weight: 700;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
}

.nav-link:hover, .dropdown-toggle:hover, .nav-link.active, .dropdown-toggle.active {
    color: var(--primary);
    background: #EBF4FF;
}

.nav-item { position: relative; }

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    min-width: 250px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 8px;
}

.nav-item:hover .dropdown-menu,
.nav-item:focus-within .dropdown-menu,
.nav-item.open .dropdown-menu { display: block; }

.dropdown-menu button {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text);
}

.dropdown-menu button:hover { background: var(--light); color: var(--accent); }

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 520px;
    min-height: 230px;
    max-height: 520px;
    overflow: hidden;
}

.hero-placeholder { position: relative; overflow: hidden; }
.hero-placeholder img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15,76,129,0.10), rgba(255,255,255,0.04));
}

main { background: #ffffff; }

.section {
    max-width: 980px;
    margin: 0 auto;
    padding: 64px 24px;
}

.page-section { display: none; }
.page-section.active { display: block; }

.kicker {
    color: var(--accent);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 13px;
}

h1, h2, h3 { line-height: 1.18; margin: 0 0 18px; color: var(--text); }
h1 { font-size: clamp(34px, 5vw, 58px); letter-spacing: -0.05em; color: var(--primary); }
h2 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -0.04em; }
h3 { font-size: clamp(22px, 3vw, 30px); color: var(--accent); }

p { margin: 0 0 18px; }

.content-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: clamp(24px, 4vw, 44px);
    box-shadow: var(--shadow);
}

.home-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 32px;
}

.info-card {
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 0;
    border-radius: 10px;
    padding: 12px 18px;
    background: var(--primary);
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover { transform: translateY(-1px); background: #0D4271; }
.btn.secondary { background: #E2E8F0; color: var(--text); }
.btn.sponsor { background: var(--sponsor); }
.btn.news { background: var(--news); }

.platform-page.sponsor { --accent: var(--sponsor); }
.platform-page.news { --accent: var(--news); }

.platform-intro {
    border-left: 5px solid var(--accent);
    padding-left: 22px;
    margin-bottom: 28px;
}

.form-wrap {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: clamp(22px, 4vw, 42px);
    box-shadow: var(--shadow);
}

fieldset {
    border: 1px solid var(--border);
    border-radius: 14px;
    margin: 0 0 24px;
    padding: 22px;
}

legend { font-weight: 800; color: var(--primary); padding: 0 8px; }

label { font-weight: 600; }

.question { margin-bottom: 22px; }
.question-title { display: block; font-weight: 800; margin-bottom: 10px; }

.form-check { display: block; margin-bottom: 10px; }
.input-medium { height: 80px; width: 100%; max-width: 500px; padding: 10px; box-sizing: border-box; }
.input-large { height: 135px; width: 100%; max-width: 600px; padding: 12px; box-sizing: border-box; }

textarea, input[type='text'], input[type='email'] {
    border: 1px solid #CBD5E0;
    border-radius: 10px;
    color: var(--text);
    background: #ffffff;
    resize: vertical;
}

textarea:focus, input:focus { outline: 3px solid rgba(15, 76, 129, 0.18); border-color: var(--primary); }

.form-status {
    margin-top: 16px;
    font-weight: 700;
    color: var(--primary);
}

.site-footer {
    background: var(--text);
    color: #ffffff;
    padding: 34px 24px;
    text-align: center;
}

.site-footer a { color: #ffffff; font-weight: 800; }

/* Toast Styling */
#pp-notification-toast {
    position: fixed; background-color: #ffffff; color: #2D3748;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.15); border-radius: 8px;
    padding: 16px 32px 16px 16px; font-family: 'Inter', sans-serif; font-size: 14px; z-index: 9999;
    transition: opacity 0.4s ease, transform 0.4s ease; border-left: 4px solid var(--accent);
}
@media (min-width: 769px) { #pp-notification-toast { bottom: 24px; right: 24px; max-width: 350px; } }
@media (max-width: 768px) { #pp-notification-toast { bottom: 0; left: 0; right: 0; border-radius: 12px 12px 0 0; border-left: none; border-top: 4px solid var(--accent); padding: 16px; } }
.pp-toast-hidden { opacity: 0; transform: translateY(20px); pointer-events: none; }
.pp-toast-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.pp-toast-close { position: absolute; top: 8px; right: 12px; background: none; border: none; font-size: 18px; cursor: pointer; color: #A0AEC0; }
.pp-toast-btn { background: none; border: none; color: var(--accent); font-weight: bold; text-decoration: underline; cursor: pointer; padding: 0; font-size: 14px; margin-top: 4px; display: inline-block; }

/* Presentatie Viewer Modal Styling */
#presentation-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.85); z-index: 10000;
    display: flex; justify-content: center; align-items: center;
    transition: opacity 0.3s ease;
}
.pres-modal-hidden { opacity: 0; pointer-events: none; display: none !important; }
.pres-modal-content {
    background-color: #ffffff; width: 90%; max-width: 960px;
    border-radius: 12px; padding: 24px; display: flex; flex-direction: column; align-items: center;
}
.pres-slides-container {
    width: 100%; aspect-ratio: 16/9; background-color: #f7fafc;
    border: 1px solid #e2e8f0; border-radius: 8px; display: flex;
    justify-content: center; align-items: center; text-align: center; padding: 40px; box-sizing: border-box;
}
.pres-slide { display: none; flex-direction: column; justify-content: center; height: 100%; width: 100%; font-family: 'Inter', sans-serif; }
.pres-slide.active { display: flex; }
.pres-slide h3 { font-size: clamp(22px, 3vw, 28px); color: var(--accent); margin-bottom: 20px; }
.pres-slide p { font-size: clamp(14px, 2vw, 18px); color: #2D3748; line-height: 1.6; margin: 8px 0; }

/* Besturingselementen */
.pres-controls { margin-top: 20px; display: flex; gap: 15px; width: 100%; justify-content: center; }
.pres-controls button {
    padding: 10px 20px; font-size: 15px; font-weight: 600; border: none; border-radius: 6px; cursor: pointer; transition: background 0.2s;
}
#pres-btn-prev { background-color: #E2E8F0; color: #4A5568; }
#pres-btn-next { background-color: var(--accent); color: #ffffff; }
#pres-btn-close { background-color: #E53E3E; color: #ffffff; margin-left: auto; }
#pres-btn-prev:hover { background-color: #CBD5E0; }
#pres-btn-next:hover { filter: brightness(0.92); }
#pres-btn-close:hover { background-color: #C53030; }
.pres-controls button:disabled { opacity: 0.45; cursor: not-allowed; }

@media (max-width: 900px) {
    .header-inner { grid-template-columns: 1fr; padding: 14px 20px; gap: 10px; }
    .header-right { align-items: stretch; }
    .contact-line { justify-content: flex-start; }
    .mobile-nav-toggle { display: inline-flex; align-self: flex-start; }
    .main-nav { display: none; }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; align-items: stretch; }
    .nav-link, .dropdown-toggle { width: 100%; text-align: left; }
    .dropdown-menu { position: static; width: 100%; box-shadow: none; margin-top: 4px; }
    .home-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hero { grid-template-columns: 1fr; height: auto; max-height: none; }
    .hero-placeholder { height: 32vh; min-height: 180px; }
    .section { padding: 42px 18px; }
    .input-medium, .input-large { width: 100%; max-width: 100%; }
    .form-check { display: block; margin-bottom: 12px; }
    .pres-modal-content { width: 96%; padding: 14px; }
    .pres-slides-container { padding: 20px; }
    .pres-controls { flex-wrap: wrap; gap: 10px; }
    #pres-btn-close { margin-left: 0; width: 100%; }
}
