/* ConstructLab Base Styles — Reset & Typography */

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

[hidden] { display: none !important; }

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--cl-font);
    font-size: var(--cl-text-base);
    font-weight: var(--cl-weight-regular);
    line-height: var(--cl-leading-relaxed);
    color: var(--cl-text);
    background-color: var(--cl-warm-white);
    min-height: 100vh;
}

/* ── Typografie ── */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--cl-font);
    font-weight: var(--cl-weight-semibold);
    line-height: var(--cl-leading-tight);
    color: var(--cl-text);
    letter-spacing: var(--cl-tracking-tight);
}

h1 { font-size: var(--cl-h1); line-height: 1.05; }
h2 { font-size: var(--cl-h2); line-height: 1.15; }
h3 { font-size: var(--cl-h3); line-height: 1.25; }
h4 { font-size: var(--cl-h4); line-height: 1.35; letter-spacing: 0; }
h5 { font-size: var(--cl-text-base); font-weight: var(--cl-weight-semibold); }
h6 { font-size: var(--cl-text-sm);  font-weight: var(--cl-weight-semibold); }

p {
    line-height: var(--cl-leading-relaxed);
    color: var(--cl-text-secondary);
}

p + p { margin-top: var(--cl-space-4); }

a {
    color: var(--cl-graphite);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--cl-transition), opacity var(--cl-transition);
}

a:hover  { color: var(--cl-steel-blue); }
a:focus-visible {
    outline: 2px solid var(--cl-steel-blue);
    outline-offset: 3px;
    border-radius: var(--cl-radius-xs);
}

strong, b { font-weight: var(--cl-weight-semibold); color: var(--cl-text); }
em, i     { font-style: italic; }

small { font-size: var(--cl-text-sm); }

abbr[title] {
    text-decoration: underline dotted;
    cursor: help;
}

/* ── Lijsten ── */

ul, ol {
    padding-left: var(--cl-space-6);
}

li {
    margin-bottom: var(--cl-space-2);
    color: var(--cl-text-secondary);
    line-height: var(--cl-leading-normal);
}

/* ── Media ── */

img, video, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

img {
    border-style: none;
}

/* ── Formulier elementen basis ── */

button, input, optgroup, select, textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
}

input, textarea, select {
    appearance: none;
    -webkit-appearance: none;
}

/* ── Tabel ── */

table {
    border-collapse: collapse;
    width: 100%;
}

th, td {
    padding: var(--cl-space-3) var(--cl-space-4);
    text-align: left;
    border-bottom: 1px solid var(--cl-border);
    font-size: var(--cl-text-sm);
}

th {
    font-weight: var(--cl-weight-semibold);
    color: var(--cl-text);
    background-color: var(--cl-graphite-05);
}

/* ── Accessibility ── */

.cl-skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    padding: var(--cl-space-3) var(--cl-space-6);
    background: var(--cl-graphite);
    color: var(--cl-warm-white);
    font-size: var(--cl-text-sm);
    font-weight: var(--cl-weight-medium);
    text-decoration: none;
    z-index: var(--cl-z-modal);
    border-radius: 0 0 var(--cl-radius) 0;
    transition: top var(--cl-transition);
}

.cl-skip-link:focus { top: 0; }

.sr-only,
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ── Layout helpers ── */

.cl-container {
    width: 100%;
    max-width: var(--cl-max-width);
    margin-inline: auto;
    padding-inline: var(--cl-container-pad);
}

.cl-container--narrow {
    max-width: var(--cl-content-width);
}

/* ── Prose (rijke tekst) ── */

.cl-prose {
    max-width: 68ch;
    color: var(--cl-text-secondary);
}

.cl-prose h2 { font-size: var(--cl-h3); margin-top: var(--cl-space-10); margin-bottom: var(--cl-space-4); }
.cl-prose h3 { font-size: var(--cl-h4); margin-top: var(--cl-space-8);  margin-bottom: var(--cl-space-3); }
.cl-prose h4 { margin-top: var(--cl-space-6); margin-bottom: var(--cl-space-2); }

.cl-prose p  { margin-bottom: var(--cl-space-5); }

.cl-prose ul,
.cl-prose ol { margin-bottom: var(--cl-space-5); }

.cl-prose li { margin-bottom: var(--cl-space-2); }

.cl-prose strong { color: var(--cl-text); }

.cl-prose a {
    color: var(--cl-graphite);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cl-prose blockquote {
    border-left: 3px solid var(--cl-steel-blue);
    padding-left: var(--cl-space-6);
    margin-left: 0;
    font-style: italic;
    color: var(--cl-text-secondary);
}

.cl-prose img {
    border-radius: var(--cl-radius-lg);
    margin-block: var(--cl-space-8);
}

.cl-prose hr {
    border: none;
    border-top: 1px solid var(--cl-border);
    margin-block: var(--cl-space-10);
}

/* ── Section base ── */

.cl-section {
    padding-block: var(--cl-section-y);
}

.cl-section--tint  { background-color: var(--cl-warm-white-dark); }
.cl-section--white { background-color: var(--cl-white); }
.cl-section--dark  { background-color: var(--cl-graphite); }
.cl-section--compact { padding-block: var(--cl-section-y-sm); }

.cl-section__header {
    text-align: center;
    max-width: 600px;
    margin-inline: auto;
    margin-bottom: var(--cl-space-16);
}

.cl-section__header--left {
    text-align: left;
    margin-inline: 0;
}

.cl-section__eyebrow {
    font-size: var(--cl-text-xs);
    font-weight: var(--cl-weight-semibold);
    letter-spacing: var(--cl-tracking-wider);
    text-transform: uppercase;
    color: var(--cl-steel-blue);
    margin-bottom: var(--cl-space-3);
}

.cl-section__eyebrow--muted { color: var(--cl-text-muted); }

.cl-section__title {
    font-size: var(--cl-h2);
    color: var(--cl-text);
    margin-bottom: var(--cl-space-4);
}

.cl-section__title--light { color: var(--cl-warm-white); }

.cl-section__lead {
    font-size: var(--cl-text-lg);
    color: var(--cl-text-secondary);
    line-height: var(--cl-leading-relaxed);
}

.cl-section__footer-link {
    text-align: center;
    margin-top: var(--cl-space-12);
}

/* ── Logo ── */

.cl-logo-text {
    font-family: var(--cl-font);
    font-size: 1.0625rem;
    font-weight: var(--cl-weight-bold);
    letter-spacing: var(--cl-tracking-wider);
    text-transform: uppercase;
    color: var(--cl-graphite);
    text-decoration: none;
}

.cl-logo-text--light { color: var(--cl-warm-white); }

/* ── Breadcrumb ── */

.cl-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: var(--cl-space-2);
    list-style: none;
    padding: 0;
    margin: 0 0 var(--cl-space-6);
    font-size: var(--cl-text-sm);
    color: var(--cl-text-muted);
}

.cl-breadcrumb ol li + li::before {
    content: '/';
    margin-right: var(--cl-space-2);
    opacity: 0.4;
}

.cl-breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.cl-breadcrumb a:hover { color: var(--cl-steel-blue); }

.cl-breadcrumb--light ol { color: rgba(246, 244, 241, 0.6); }
.cl-breadcrumb--light a  { color: rgba(246, 244, 241, 0.6); }
.cl-breadcrumb--light a:hover { color: var(--cl-warm-white); }

/* ── Paginering ── */

.cl-pagination {
    display: flex;
    justify-content: center;
    gap: var(--cl-space-2);
    margin-top: var(--cl-space-16);
}

.cl-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--cl-radius);
    font-size: var(--cl-text-sm);
    font-weight: var(--cl-weight-medium);
    text-decoration: none;
    color: var(--cl-text);
    border: 1px solid var(--cl-border);
    transition: all var(--cl-transition);
}

.cl-pagination .page-numbers.current,
.cl-pagination .page-numbers:hover {
    background: var(--cl-graphite);
    border-color: var(--cl-graphite);
    color: var(--cl-warm-white);
}

/* ── No results ── */

.cl-no-results {
    color: var(--cl-text-muted);
    font-size: var(--cl-text-lg);
    padding: var(--cl-space-16) 0;
}
