/* =========================================================
   NTSN Website - Mobile First Design System
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
    color-scheme: light;

    /* Brand colors */
    --ntsn-primary: #014d95;
    --ntsn-primary-dark: #143a6b;
    --ntsn-primary-darker: #0e2a4e;
    --ntsn-primary-light: #e8f0fa;
    --ntsn-primary-rgb: 1, 77, 149;
    --ntsn-accent: #2e7dd1;
    --ntsn-bg: #ffffff;
    --ntsn-bg-soft: #f4f7fb;
    --ntsn-bg-section: #eef3f9;
    --ntsn-text: #1a2433;
    --ntsn-text-muted: #5a6b80;
    --ntsn-border: #dde5ef;

    /* Semantische tokens (maken licht/donker mogelijk zonder elke regel te wijzigen) */
    --ntsn-surface: #ffffff;                    /* kaarten, drawer, formuliervelden */
    --ntsn-brand: var(--ntsn-primary);          /* gevulde 'merk'-vlakken met witte tekst */
    --ntsn-brand-hover: var(--ntsn-primary-dark);
    --ntsn-header-bg: var(--ntsn-primary);      /* achtergrond van de headerbalk */
    --ntsn-on-brand: #ffffff;                   /* tekst/iconen op merkvlakken */

    /* Typography scale (mobile first) */
    --fs-display: clamp(1.75rem, 5vw + 0.5rem, 2rem);
    --fs-h2:      clamp(1.4rem, 2.5vw + 0.6rem, 1.1rem);
    --fs-h3:      clamp(1.1rem, 1vw + 0.8rem, 1.4rem);
    --fs-lead:    clamp(0.9rem, 0.5vw + 0.9rem, 0.8rem);
    --fs-body:    0.9rem;
    --fs-small:   0.875rem;

    /* Spacing */
    --space-section: clamp(2.5rem, 6vw, 5rem);
    --radius: 12px;
    --radius-lg: 18px;
    --shadow-sm: 0 1px 2px rgba(20, 40, 80, 0.06);
    --shadow-md: 0 6px 24px rgba(20, 40, 80, 0.08);
    --shadow-lg: 0 18px 40px rgba(20, 40, 80, 0.12);

    --transition: 200ms ease;
}

/* ---------- Dark mode palet ---------- */
/* Attribuut-gestuurd (html[data-theme="dark"]); een klein script in <head> zet
   het thema vóór de eerste paint op basis van opgeslagen keuze of systeemvoorkeur. */
[data-theme="dark"] {
    color-scheme: dark;

    /* Merkkleur wordt op donker een lichtere, leesbare accenttint (tekst/links/iconen) */
    --ntsn-primary: #5ea6ff;
    --ntsn-primary-dark: #8cc0ff;   /* hover = lichter op donker */
    --ntsn-primary-darker: #b9d9ff;
    --ntsn-primary-light: #14304e;  /* 'lichtblauwe' chips → donkerblauw vlak */
    --ntsn-primary-rgb: 94, 166, 255;
    --ntsn-accent: #4f9bff;

    --ntsn-bg: #0b1119;
    --ntsn-bg-soft: #111a26;
    --ntsn-bg-section: #0e1620;
    --ntsn-text: #e7eef7;
    --ntsn-text-muted: #9fb1c6;
    --ntsn-border: #25344a;

    --ntsn-surface: #131f2e;

    /* Gevulde merkvlakken blijven diep genoeg voor witte tekst (knoppen, header) */
    --ntsn-brand: #16498f;
    --ntsn-brand-hover: #1e5db0;
    --ntsn-header-bg: #0a2342;
    --ntsn-on-brand: #ffffff;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.45);
    --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.6);
}

/* Soepele overgang bij het wisselen van thema (uitgezet bij reduced motion onderaan).
   Alleen op vlakken zonder eigen transition, om hover-animaties niet te overschrijven. */
body { transition: background-color 300ms ease, color 300ms ease; }
.site-header::before,
.site-footer,
.page-breadcrumb-bar { transition: background-color 300ms ease, border-color 300ms ease; }

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--ntsn-bg);
    color: var(--ntsn-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 0.9625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#main-content {
    flex: 1 0 auto;
}

.site-footer {
    flex-shrink: 0;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
    font-family: 'Inter', sans-serif;
    color: var(--ntsn-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0;
}

p { margin-top: 0; }

a {
    color: var(--ntsn-primary);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: var(--ntsn-primary-dark); text-decoration: underline; }

/* Focus visible voor WCAG */
:focus-visible {
    outline: 3px solid var(--ntsn-accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    background: var(--ntsn-brand);
    color: var(--ntsn-on-brand);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius);
    z-index: 9999;
    font-weight: 600;
    transition: top var(--transition);
}
.skip-link:focus { top: 1rem; color: var(--ntsn-on-brand); text-decoration: none; }

/* Alleen voor schermlezers (visueel verborgen, wel voorgelezen) */
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: var(--fs-body);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: var(--ntsn-brand);
    color: var(--ntsn-on-brand) !important;
    border-color: var(--ntsn-brand);
}
.btn-primary:hover { background: var(--ntsn-brand-hover); border-color: var(--ntsn-brand-hover); color: var(--ntsn-on-brand); box-shadow: var(--shadow-md); }

.btn-outline-primary {
    background: transparent;
    color: var(--ntsn-primary) !important;
    border-color: var(--ntsn-primary);
}
.btn-outline-primary:hover { background: var(--ntsn-brand); color: var(--ntsn-on-brand) !important; box-shadow: var(--shadow-md); }

.btn-arrow svg { transition: transform var(--transition); }
.btn-arrow:hover svg { transform: translateX(3px); }

/* ---------- Container ---------- */
.container-ntsn {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}
@media (min-width: 768px) { .container-ntsn { padding: 0 2rem; } }

/* ---------- Header / Navigatie ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1020;
    box-shadow: 0px 1px 50px rgba(0,0,0,0.7);
    padding-top: 1.4rem;
    padding-bottom: 1.25rem;
    transition: padding 280ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Compacte header bij scrollen (shrink-on-scroll) */
    .site-header.is-compact {
        padding-top: 0.7rem;
        padding-bottom: 0.7rem;
        box-shadow: 0px 1px 50px rgba(0,0,0,0.7);
    }
.site-header.is-compact .nav-wrapper { min-height: 44px; }
.site-header.is-compact .brand-logo { max-width: 140px; }
/* Frosted glass via pseudo-element zodat de header zelf geen containing block
   wordt voor de fixed-positioned mobiele drawer (backdrop-filter doet dat wel). */
.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--ntsn-header-bg);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    z-index: -1;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 1rem;
    transition: min-height 280ms cubic-bezier(0.4, 0, 0.2, 1);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--ntsn-primary);
}
.brand:hover { text-decoration: none; }
.site-header .brand { color: #fff; }
/* Brand links, alle headeracties (thema-knop, hamburger, menu) rechts ervan. */
.nav-wrapper .brand { margin-right: auto; }
.brand-logo {
    width: auto;
    height: auto;
    max-width: 200px;
    transition: max-width 280ms cubic-bezier(0.4, 0, 0.2, 1);
}
.site-footer .brand-logo { width: auto; max-width: 200px; mix-blend-mode: multiply; }
/* Dual-logo: JPEG (met witte rand) op licht, transparant licht logo op donker. */
.site-footer .brand-logo--dark { display: none; }

@media (min-width: 992px) {
    .brand-logo {  }
    .brand-text { font-size: 0.82rem; }
    .brand-text strong { font-size: 1rem; }
}

/* Hamburger */
.nav-toggle {
    background: none;
    border: 0;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 44px;
    height: 44px;
    justify-content: center;
    align-items: center;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 992px) {
    .nav-toggle { display: none; }
}

/* ---------- Header-acties (thema-knop) ---------- */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Subtiele glas-knop op de gekleurde headerbalk. Werkt in licht én donker
   omdat hij relatief t.o.v. de header-achtergrond ingekleurd is. */
.theme-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.4);
}
.theme-toggle:active { transform: scale(0.94); }
.theme-toggle svg {
    position: absolute;
    width: 21px;
    height: 21px;
    transition: opacity 260ms ease, transform 360ms cubic-bezier(0.4, 0, 0.2, 1);
}
/* Standaard (licht): toon de maan (klik = naar donker). Verberg de zon. */
.theme-toggle .icon-sun  { opacity: 0; transform: rotate(-90deg) scale(0.5); }
.theme-toggle .icon-moon { opacity: 1; transform: rotate(0) scale(1); }
/* Donker actief: toon de zon (klik = terug naar licht). */
[data-theme="dark"] .theme-toggle .icon-sun  { opacity: 1; transform: rotate(0) scale(1); }
[data-theme="dark"] .theme-toggle .icon-moon { opacity: 0; transform: rotate(90deg) scale(0.5); }

@media (prefers-reduced-motion: reduce) {
    .theme-toggle svg { transition: opacity 260ms ease; transform: none !important; }
}

/* ---------- Mobile menu (drawer) ---------- */
.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 280ms ease, visibility 280ms ease;
    z-index: 1030;
}
.nav-backdrop.is-open { opacity: 1; visibility: visible; }

.main-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(86vw, 360px);
    background: var(--ntsn-surface);
    padding: 0;
    transform: translateX(100%);
    transition: transform 320ms cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: -14px 0 44px rgba(20, 40, 80, 0.18);
    z-index: 1040;
    display: flex;
    flex-direction: column;
}
.main-nav[data-open="true"] { transform: translateX(0); }

.main-nav__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.05rem 1.25rem;
    border-bottom: 1px solid var(--ntsn-border);
}
.main-nav__title {
    font-weight: 700;
    color: var(--ntsn-primary);
    font-size: 1.05rem;
}
.nav-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 0;
    background: var(--ntsn-bg-soft);
    color: var(--ntsn-primary);
    border-radius: 10px;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}
.nav-close:hover { background: var(--ntsn-brand); color: var(--ntsn-on-brand); }

.nav-list {
    list-style: none;
    margin: 0;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1 0 auto;
}
.nav-link {
    display: flex;
    align-items: center;
    padding: 0.95rem 1rem;
    color: var(--ntsn-text);
    font-weight: 600;
    font-size: 1.02rem;
    border-radius: var(--radius);
    transition: background var(--transition), color var(--transition);
}
.nav-link:hover {
    color: var(--ntsn-primary);
    background: var(--ntsn-bg-soft);
    text-decoration: none;
}
.nav-link.active {
    color: var(--ntsn-primary);
    background: var(--ntsn-primary-light);
    font-weight: 700;
    text-decoration: none;
}

/* ---------- Submenu (mobiel: accordeon) ---------- */
.nav-item { position: relative; }
.nav-item--has-sub > .nav-link { flex: 1; }
/* Op mobiel zit de link + toggle naast elkaar op één rij */
.nav-item--has-sub {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
.nav-caret { display: none; }
.nav-sub-toggle {
    margin-left: auto;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: none;
    color: var(--ntsn-text);
    cursor: pointer;
    border-radius: var(--radius);
}
.nav-sub-toggle:hover { background: var(--ntsn-bg-soft); color: var(--ntsn-primary); }
.nav-sub-toggle svg { transition: transform var(--transition); }
.nav-sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.nav-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    flex-basis: 100%;
    overflow: hidden;
    max-height: 0;
    visibility: hidden;
    transition: max-height 280ms cubic-bezier(0.4, 0, 0.2, 1), visibility 280ms ease;
}
.nav-submenu.is-open { max-height: 20rem; visibility: visible; }
.nav-sublink {
    display: block;
    padding: 0.7rem 1rem 0.7rem 1.6rem;
    color: var(--ntsn-text-muted);
    font-size: 0.98rem;
    border-radius: var(--radius);
    transition: background var(--transition), color var(--transition);
}
.nav-sublink:hover {
    color: var(--ntsn-primary);
    background: var(--ntsn-bg-soft);
    text-decoration: none;
}
.nav-sublink.active { color: var(--ntsn-primary); font-weight: 600; text-decoration: none; }

/* Desktop nav */
@media (min-width: 992px) {
    .nav-backdrop { display: none; }
    .main-nav__header { display: none; }
    .main-nav {
        position: static;
        top: auto;
        right: auto;
        bottom: auto;
        width: auto;
        transform: none;
        padding: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
        overflow: visible;
        z-index: auto;
    }
    .nav-list {
        flex-direction: row;
        gap: 0.25rem;
        align-items: center;
        padding: 0;
        flex: 0 1 auto;
    }
    .nav-link {
        padding: 0.5rem 1rem;
        position: relative;
        border-radius: 0;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.92);
    }
    .nav-link:hover { background: transparent; color: #fff; }
    .nav-link.active { background: transparent; color: #fff; }
    /* Animated underline voor hover én actief */
    .nav-link::after {
        content: "";
        position: absolute;
        left: 1rem;
        right: 1rem;
        bottom: -2px;
        height: 2px;
        background: #fff;
        border-radius: 2px;
        transform: scaleX(0);
        transform-origin: left center;
        transition: transform 220ms cubic-bezier(0.4, 0, 0.2, 1);
    }
    .nav-link:hover::after {
        transform: scaleX(1);
    }
    .nav-link.active::after {
        transform: scaleX(1);
        background: #fff;
    }

    /* Desktop submenu: dropdown bij hover/focus i.p.v. accordeon */
    .nav-sub-toggle { display: none; }
    .nav-caret {
        display: inline-flex;
        align-items: center;
        margin-left: 0.3rem;
        transition: transform var(--transition);
    }
    .nav-item--has-sub { flex-wrap: nowrap; }
    .nav-item--has-sub:hover .nav-caret,
    .nav-item--has-sub:focus-within .nav-caret { transform: rotate(180deg); }

    .nav-submenu {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 230px;
        flex-basis: auto;
        max-height: none;
        overflow: visible;
        margin-top: 0.5rem;
        padding: 0.5rem;
        background: var(--ntsn-surface);
        border: 1px solid var(--ntsn-border);
        border-radius: var(--radius);
        box-shadow: var(--shadow-lg);
        opacity: 0;
        visibility: hidden;
        transform: translateY(8px);
        transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
        z-index: 1040;
    }
    /* Onzichtbare brug zodat de muis van link naar dropdown kan zonder te sluiten */
    .nav-submenu::before {
        content: "";
        position: absolute;
        top: -0.5rem;
        left: 0;
        right: 0;
        height: 0.5rem;
    }
    .nav-item--has-sub:hover .nav-submenu,
    .nav-item--has-sub:focus-within .nav-submenu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .nav-sublink {
        color: var(--ntsn-text);
        padding: 0.6rem 0.9rem;
    }
    .nav-sublink:hover { background: var(--ntsn-primary-light); }
}

.nav-cta-item { margin-top: auto; }
.nav-cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    padding: 0.9rem 1rem;
    background: var(--ntsn-brand);
    color: var(--ntsn-on-brand) !important;
    border-radius: var(--radius);
    font-weight: 600;
    transition: background var(--transition);
}
.nav-cta-icon:hover { background: var(--ntsn-brand-hover); text-decoration: none; }
.nav-cta-label { font-size: 1rem; }

/* Desktop: LinkedIn terug naar compacte icoonknop */
@media (min-width: 992px) {
    .nav-cta-item { margin-top: 0; }
    .nav-cta-icon {
        width: 40px;
        height: 40px;
        gap: 0;
        padding: 0;
        border-radius: 8px;
        margin-left: 0.5rem;
        background: rgba(255, 255, 255, 0.16);
    }
    .nav-cta-icon:hover { background: rgba(255, 255, 255, 0.28); }
    .nav-cta-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .main-nav,
    .nav-backdrop,
    .site-header,
    .nav-wrapper,
    .brand-logo { transition-duration: 0.01ms; }
}

/* Body lock when mobile nav open */
body.nav-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hp-hero {
    background: linear-gradient(160deg, var(--ntsn-primary-light) 0%, #f8fbff 60%, #fff 100%);
    padding: 3rem 0 2.5rem;
    overflow: hidden;
}
.hp-hero__inner {
    display: block;
    position: relative;
}
.hp-hero__content {
    max-width: 560px;
    position: relative;
    z-index: 1;
}
@media (min-width: 992px) {
    .hp-hero {
        padding: 0rem 0 0rem;
    }
    .hp-hero__inner {
        background: url('/site/home-hero.jpg') no-repeat right center / auto 100%;
        padding-top: 1rem;
        min-height: 420px;
    }
}
.hp-hero__title {
    font-size: var(--fs-display);
    color: var(--ntsn-primary);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 1.1rem;
    line-height: 1.1;
}
.hp-hero__lead {
    font-size: var(--fs-lead);
    color: var(--ntsn-text-muted);
    margin: 0 0 1.75rem;
    max-width: 62ch;
}
.hp-hero__lead p { margin: 0 0 0.75rem; }
.hp-hero__lead p:last-child { margin-bottom: 0; }
.hp-hero__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}


/* ---------- Section base ---------- */
.section { padding: var(--space-section) 0; }
.section-soft { background: var(--ntsn-bg-soft); }
.section-section { background: var(--ntsn-bg-section); }

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 4.5rem;
}
.section-title {
    font-size: var(--fs-h2);
    margin: 0 0 0.75rem;
}
.section-lead {
    color: var(--ntsn-text-muted);
    font-size: var(--fs-lead);
    margin: 0;
}

/* ---------- Features (Wat wij doen) ---------- */
.features-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}
@media (min-width: 576px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .features-grid { grid-template-columns: repeat(4, 1fr); } }

.feature-card {
    background: var(--ntsn-surface);
    border: 1px solid var(--ntsn-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.5rem;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--ntsn-primary-light);
}
.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--ntsn-primary-light);
    color: var(--ntsn-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}
.feature-icon svg { width: 28px; height: 28px; }
.feature-card h3 {
    font-size: var(--fs-h3);
    margin: 0 0 0.5rem;
}
.feature-card p {
    color: var(--ntsn-text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* ---------- Subpagina-kaarten (sectie-landingspagina) ---------- */
.subpage-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}
@media (min-width: 576px) { .subpage-grid { grid-template-columns: repeat(2, 1fr); } }

.subpage-card {
    display: flex;
    flex-direction: column;
    background: var(--ntsn-surface);
    border: 1px solid var(--ntsn-border);
    border-radius: var(--radius-lg);
    padding: 1.6rem 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.subpage-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--ntsn-primary-light);
    text-decoration: none;
}
.subpage-card__title {
    font-size: var(--fs-h3);
    color: var(--ntsn-primary);
    margin: 0 0 0.5rem;
}
.subpage-card__text {
    color: var(--ntsn-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 1rem;
}
.subpage-card__more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: auto;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ntsn-primary);
}
.subpage-card__more svg { transition: transform var(--transition); }
.subpage-card:hover .subpage-card__more svg { transform: translateX(3px); }

/* ---------- News ---------- */
.news-header {
    text-align: left;
    max-width: none;
    margin: 0 0 2.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--ntsn-border);
}
.news-header .section-title { margin-bottom: 0.5rem; }
.news-header .section-lead { font-size: 1rem; }
.news-header .section-lead p:last-child { margin-bottom: 0; }

.news-grid {
    display: grid;
    gap: 1.75rem;
    grid-template-columns: 1fr;
}
@media (min-width: 640px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .news-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }

/* Bij 1 of 2 artikelen: centreren en maximale kaartbreedte beperken,
   zodat de cards niet uitrekken over de hele breedte. */
@media (min-width: 640px) {
    .news-grid--count-1 {
        grid-template-columns: minmax(0, 460px);
        justify-content: center;
    }
    .news-grid--count-2 {
        grid-template-columns: repeat(2, minmax(0, 420px));
        justify-content: center;
    }
}
@media (min-width: 992px) {
    .news-grid--count-1 { grid-template-columns: minmax(0, 520px); }
    .news-grid--count-2 { grid-template-columns: repeat(2, minmax(0, 460px)); }
}

.news-card {
    background: var(--ntsn-surface);
    border: 1px solid var(--ntsn-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.news-card:focus-within {
    box-shadow: var(--shadow-lg);
    border-color: var(--ntsn-accent);
}

.news-card__media-link {
    display: block;
    overflow: hidden;
    line-height: 0;
}
.news-card__media {
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, var(--ntsn-primary-light), var(--ntsn-surface));
    overflow: hidden;
}
.news-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms ease;
}
.news-card:hover .news-card__media img { transform: scale(1.04); }
.news-card__media--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ntsn-primary);
    opacity: 0.55;
}

.news-card__body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.5rem;
}
.news-card__date {
    font-size: var(--fs-small);
    color: var(--ntsn-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 500;
}
.news-card__title {
    font-size: 1.2rem;
    line-height: 1.3;
    margin: 0;
    color: var(--ntsn-primary);
}
.news-card__title a {
    color: inherit;
    text-decoration: none;
}
.news-card__title a:hover { color: var(--ntsn-primary-dark); text-decoration: none; }

.news-card__excerpt {
    color: var(--ntsn-text-muted);
    font-size: 0.95rem;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card__link {
    margin-top: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--ntsn-primary);
    position: relative;
    z-index: 1;
}
.news-card__link svg { transition: transform var(--transition); }
.news-card__link:hover svg { transform: translateX(3px); }

.news-empty {
    text-align: center;
    padding: 3.5rem 1.5rem;
    background: var(--ntsn-bg-soft);
    border: 1px dashed var(--ntsn-border);
    border-radius: var(--radius-lg);
    color: var(--ntsn-text-muted);
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}
.news-empty__icon {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--ntsn-primary-light);
    color: var(--ntsn-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}
.news-empty__title {
    color: var(--ntsn-primary);
    font-size: 1.35rem;
    margin: 0;
}
.news-empty__text {
    margin: 0;
    max-width: 440px;
    line-height: 1.55;
}
.news-empty .btn { margin-top: 1rem; }

/* ---------- News detail ---------- */
.news-detail { padding-bottom: var(--space-section); }

.news-detail__header {
    padding: 2.5rem 0 1.5rem;
}
.news-detail__back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ntsn-text-muted);
    margin-bottom: 1.25rem;
    text-decoration: none;
    transition: color var(--transition), transform var(--transition);
}
.news-detail__back:hover {
    color: var(--ntsn-primary);
    text-decoration: none;
}
.news-detail__back:hover svg { transform: translateX(-3px); }
.news-detail__back svg { transition: transform var(--transition); }

.news-detail__title {
    font-size: var(--fs-h2);
    line-height: 1.2;
    margin: 0 0 1rem;
    color: var(--ntsn-primary);
    max-width: 28ch;
}

.news-detail__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    color: var(--ntsn-text-muted);
    font-size: 0.9rem;
}
.news-detail__meta time,
.news-detail__meta span:not(.news-detail__meta-sep) {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.news-detail__meta svg { opacity: 0.8; }
.news-detail__meta-sep { color: var(--ntsn-border); }

.news-detail__hero {
    margin: 0 0 2.5rem;
}
.news-detail__hero img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.news-detail__body { }
.news-detail__content {
    max-width: 72ch;
    margin: 0 auto;
}

.news-detail__lead {
    font-size: 1.2rem;
    line-height: 1.55;
    color: var(--ntsn-text);
    font-weight: 500;
    margin: 0 0 1.75rem;
    padding-left: 1.25rem;
    border-left: 4px solid var(--ntsn-accent);
}

.news-detail__share {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--ntsn-border);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
}
.news-detail__share-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ntsn-text-muted);
    margin-right: 0.25rem;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ntsn-bg-soft);
    color: var(--ntsn-primary);
    transition: background var(--transition), color var(--transition), transform var(--transition);
}
.share-btn:hover {
    background: var(--ntsn-brand);
    color: var(--ntsn-on-brand);
    text-decoration: none;
    transform: translateY(-2px);
}

/* ---------- News detail pager ---------- */
.news-detail__pager {
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--ntsn-border);
}
.news-pager {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .news-pager { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}
.news-pager__item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1.25rem 1.5rem;
    background: var(--ntsn-surface);
    border: 1px solid var(--ntsn-border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--ntsn-text);
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.news-pager__item:hover {
    border-color: var(--ntsn-accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    text-decoration: none;
}
.news-pager__item--next { text-align: right; align-items: flex-end; }
.news-pager__label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ntsn-text-muted);
    font-weight: 600;
}
.news-pager__title {
    font-weight: 600;
    color: var(--ntsn-primary);
    font-size: 1rem;
    line-height: 1.3;
}

/* ---------- CTA tiles ---------- */
.cta-tiles {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) { .cta-tiles { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } }

.cta-tile {
    background: var(--ntsn-surface);
    border: 1px solid var(--ntsn-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 0;
    transition: transform var(--transition), box-shadow var(--transition);
}
.cta-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.cta-tile__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--ntsn-primary-light);
    color: var(--ntsn-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.cta-tile__body { margin-bottom: 1.5rem; }
.cta-tile__body h3 { font-size: var(--fs-h3); margin: 0 0 0.4rem; }
.cta-tile__body p { color: var(--ntsn-text-muted); font-size: 0.9rem; margin: 0; line-height: 1.55; }
.cta-tile .btn { align-self: end; }

/* ---------- Text link button ---------- */
.btn-text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--ntsn-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: gap var(--transition), color var(--transition);
}
.btn-text-link:hover { color: var(--ntsn-primary-dark); gap: 0.55rem; text-decoration: none; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--ntsn-bg-soft);
    color: var(--ntsn-text-muted);
    border-top: 3px solid var(--ntsn-primary);
    padding: 3.5rem 0 1.5rem;
    /*margin-top: var(--space-section);*/
}
.footer-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}
@media (min-width: 576px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; } }

.footer-brand .brand { padding-bottom: 0.75rem; }
.footer-brand p {
    margin: 1rem 0 0;
    color: var(--ntsn-text-muted);
    font-size: var(--fs-small);
    max-width: 32ch;
}
.footer-brand .brand-text { color: var(--ntsn-primary); }
.footer-brand .brand-text strong { color: var(--ntsn-primary); }

.footer-heading {
    color: var(--ntsn-primary);
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 1rem;
}
.footer-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-list a, .footer-contact a {
    color: var(--ntsn-text-muted);
    text-decoration: none;
    transition: color var(--transition);
}
.footer-list a:hover, .footer-contact a:hover { color: var(--ntsn-primary); text-decoration: underline; }

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--ntsn-text-muted);
    font-size: 0.95rem;
}
.footer-contact svg {
    color: var(--ntsn-primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--ntsn-border);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: var(--fs-small);
    color: var(--ntsn-text-muted);
}
.footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}
.footer-bottom-links a { color: var(--ntsn-text-muted); }
@media (min-width: 768px) {
    .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ---------- Cookie banner ---------- */
.cookie-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    z-index: 1049;
    animation: cookie-overlay-fade 0.25s ease-out;
}
@keyframes cookie-overlay-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}
body.cookie-open { overflow: hidden; }

.cookie-consent {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    max-width: 520px;
    margin: 0 auto;
    background: var(--ntsn-surface);
    color: var(--ntsn-text);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--ntsn-border);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}
.cookie-consent.is-visible { animation: cookie-pop-in 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes cookie-pop-in {
    from { opacity: 0; transform: translateY(16px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.cookie-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--ntsn-primary-light);
    color: var(--ntsn-primary);
}
.cookie-body { display: flex; flex-direction: column; gap: 0.35rem; }
.cookie-title { font-size: var(--fs-h3); margin: 0; }
.cookie-consent p { margin: 0; font-size: 0.95rem; color: var(--ntsn-text-muted); }
.cookie-consent p a { font-weight: 600; text-decoration: underline; }

.cookie-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    width: 100%;
}
.cookie-actions .btn { width: 100%; padding: 0.7rem 1.1rem; }

@media (min-width: 600px) {
    .cookie-consent {
        flex-direction: row;
        text-align: left;
        align-items: center;
        max-width: 760px;
        gap: 1.25rem;
    }
    .cookie-body { flex: 1 1 auto; }
    .cookie-actions { width: auto; flex-shrink: 0; }
    .cookie-actions .btn { white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-overlay,
    .cookie-consent.is-visible { animation: none; }
}

/* ---------- Content (generic pages) ---------- */
.content-area { font-size: 0.95rem; line-height: 1.75; max-width: 76ch; }
.content-area h2 { margin: 1.75rem 0 0.85rem; font-size: var(--fs-h2); }
.content-area h3 { margin: 1.35rem 0 0.6rem; font-size: var(--fs-h3); }
.content-area p { margin-bottom: 1rem; }
.content-area ul, .content-area ol { padding-left: 1.4rem; margin-bottom: 0.85rem; }
.content-area li { margin-bottom: 0.3rem; }
.content-area img { border-radius: var(--radius); margin: 1rem 0; }

/* ---------- Breadcrumb bar ---------- */
.page-breadcrumb-bar {
    background: var(--ntsn-primary-light);
    border-bottom: 1px solid var(--ntsn-border);
    padding: 0.55rem 0;
}

.breadcrumb {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem;
    font-size: 0.82rem;
    letter-spacing: 0.01em;
    color: var(--ntsn-text-muted);
}
.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
/* Subtiel chevron-separator: kleiner, lichter, perfect uitgelijnd */
.breadcrumb li + li::before {
    content: "";
    display: inline-block;
    width: 0.4rem;
    height: 0.4rem;
    margin-right: 0.25rem;
    border-top: 1.5px solid var(--ntsn-text-muted);
    border-right: 1.5px solid var(--ntsn-text-muted);
    opacity: 0.7;
    transform: rotate(45deg);
    transition: border-color 0.2s ease;
}
.breadcrumb a {
    position: relative;
    color: var(--ntsn-primary);
    font-weight: 500;
    text-decoration: none;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.breadcrumb a:hover {
    background-color: rgba(var(--ntsn-primary-rgb, 17, 71, 161), 0.08);
    text-decoration: none;
    transform: translateY(-1px);
}
.breadcrumb a:focus-visible {
    outline: 2px solid var(--ntsn-primary);
    outline-offset: 2px;
}
.breadcrumb li:last-child {
    color: var(--ntsn-text);
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    background: var(--ntsn-surface);
    border: 1px solid var(--ntsn-border);
    border-radius: 999px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

/* ---------- Contactgegevens-kaart ---------- */
.contact-card {
    background: var(--ntsn-primary-light);
    border: 1px solid var(--ntsn-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
}
@media (min-width: 900px) {
    .contact-card { position: sticky; top: 2rem; }
}
.contact-card__title {
    font-size: var(--fs-h3);
    margin: 0 0 1.25rem;
}
.contact-card__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}
.contact-card__item {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
}
.contact-card__icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--ntsn-surface);
    color: var(--ntsn-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}
.contact-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}
.contact-card__label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ntsn-text-muted);
}
.contact-card__value {
    font-size: 0.95rem;
    color: var(--ntsn-text);
    word-break: break-word;
}
.contact-card__value a {
    color: var(--ntsn-primary);
    text-decoration: none;
    font-weight: 500;
}
.contact-card__value a:hover { text-decoration: underline; }

/* ---------- Dark mode: gerichte component-overrides ----------
   De meeste vlakken volgen automatisch via de tokens. Deze regels corrigeren
   plekken met hard-coded licht (hero-verloop, status-alerts) of effecten die in
   donker omgekeerd moeten (logo blend-mode, witte logo-achtergrond). */

/* Hero-verloop: van donkerblauw naar de donkere pagina-achtergrond i.p.v. wit. */
[data-theme="dark"] .hp-hero {
    background: linear-gradient(160deg, var(--ntsn-primary-light) 0%, var(--ntsn-bg-soft) 55%, var(--ntsn-bg) 100%);
}
/* Desktop-kaart (home-hero.jpg) is een lichte JPEG; met een donkerblauwe overlay +
   multiply-blend smelt het witte vlak weg en blijven alleen subtiele blauwe
   kaartlijnen over, zodat de knoppen op een egaal donker vlak staan. */
@media (min-width: 992px) {
    [data-theme="dark"] .hp-hero__inner {
        background:
            linear-gradient(160deg, #1b2d46 0%, #101b2b 100%) center / cover,
            url('/site/home-hero.jpg') no-repeat right center / auto 100%;
        background-blend-mode: multiply;
    }
}

/* Footer-logo: wissel naar het transparante (lichte) logo i.p.v. de witte JPEG. */
[data-theme="dark"] .site-footer .brand-logo--light { display: none; }
[data-theme="dark"] .site-footer .brand-logo--dark { display: block; mix-blend-mode: normal; }

/* Cookie-icoon en hero gebruiken --ntsn-primary-light als zacht vlak; in donker
   blijft dat leesbaar dankzij het aangepaste token. Status-alerts krijgen eigen
   donkere tinten (de groen/rood-pasteltinten zijn te fel op donker). */
/* Skip-link en knoptekst blijven wit op merkkleur (token --ntsn-on-brand). */

/* ---------- Print ---------- */
@media print {
    .site-header, .site-footer, .cookie-consent, .nav-toggle, .skip-link { display: none !important; }
    main { padding: 0; }
    a { color: #000; text-decoration: underline; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}
