/* ==========================================================================
   Vranken Verzuimbegeleiding - modern thema
   Eén bestand, geen frameworks. --primary-color komt uit de themainstellingen
   (partials/head/stylesheets.htm) en wordt hier alleen gebruikt, nooit gedefinieerd.
   ========================================================================== */

/* Zelf gehoste fonts (latin) */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../fonts/montserrat-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/poppins-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/poppins-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/poppins-800-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* 1. Tokens ---------------------------------------------------------------- */
:root {
    --ink: #21333e;
    --ink-deep: #16242c;
    --ink-soft: #2e4553;
    --tint: #eef4ed;
    --text: #41545f;
    --muted: #566872;
    --white: #ffffff;
    --line: rgba(33, 51, 62, .12);
    --line-strong: #c9d6d1;

    /* Afgeleid van --primary-color uit het thema */
    --primary-soft: color-mix(in srgb, var(--primary-color, #3bdb22) 16%, white);
    --primary-hover: color-mix(in srgb, var(--primary-color, #3bdb22) 86%, black);
    --primary-ring: color-mix(in srgb, var(--primary-color, #3bdb22) 35%, transparent);
    --on-primary: #10200f;

    --font-head: 'Poppins', system-ui, sans-serif;
    --font-body: 'Montserrat', system-ui, sans-serif;

    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(22, 36, 44, .06), 0 12px 32px -12px rgba(22, 36, 44, .18);
    --shadow-lg: 0 2px 4px rgba(22, 36, 44, .06), 0 28px 56px -20px rgba(22, 36, 44, .3);
    --header-h: 76px;
    --section-y: clamp(64px, 8vw, 104px);
    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* 2. Basis ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
body.nav-lock { overflow: hidden; }
img, svg, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--primary-color); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 300; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--radius-sm) var(--radius-sm); transition: top .2s; }
.skip-link:focus { top: 0; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 24px; }
.container-narrow { max-width: 820px; }
.text-center { text-align: center; }

.section { padding-block: var(--section-y); }
.section-tint { background: var(--tint); }
.section-dark { background: var(--ink); color: rgba(255, 255, 255, .78); }
.section-dark h2, .section-dark h3 { color: #fff; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; margin-bottom: 44px; }
.section-intro { max-width: 720px; }
.section-intro h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: .5em; }
.section-intro p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.section-dark .section-intro p { color: rgba(255, 255, 255, .7); }
/* Markeerstift-accent op vetgedrukte woorden in koppen */
h2 strong, h1 strong {
    font-weight: inherit;
    background: linear-gradient(transparent 64%, color-mix(in srgb, var(--primary-color) 55%, transparent) 64%);
    padding-inline: .04em;
}
.lead-text { font-size: 1.2rem; color: var(--ink); }

/* 3. Knoppen --------------------------------------------------------------- */
.btn,
.btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 26px;
    font: 600 .95rem/1.2 var(--font-body);
    color: var(--on-primary);
    background: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    text-decoration: none; cursor: pointer;
    transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .2s var(--ease); }
.btn:hover, .btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--on-primary); transform: translateY(-1px); box-shadow: 0 10px 24px -10px var(--primary-color); }
.btn:hover svg { transform: translateX(3px); }
.btn-sm { padding: 10px 18px; font-size: .875rem; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: none; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.btn-ghost-light:hover { background: #fff; border-color: #fff; color: var(--ink); box-shadow: none; }

/* 4. Header ---------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 100; height: var(--header-h); background: var(--ink); transition: box-shadow .25s, background-color .25s; }
.site-header.is-scrolled { box-shadow: 0 8px 28px -12px rgba(0, 0, 0, .5); background: rgba(33, 51, 62, .96); backdrop-filter: blur(10px); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: block; flex: none; line-height: 0; }
.brand img { width: 60px; height: 60px; object-fit: contain; }
.main-nav { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-item { position: relative; }
.nav-link { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 10px; font-size: .92rem; font-weight: 600; color: rgba(255, 255, 255, .86); text-decoration: none; transition: color .2s, background-color .2s; }
.nav-link svg { width: 11px; height: 11px; transition: transform .2s; }
.nav-link:hover, .nav-item:focus-within > .nav-link { color: #fff; background: rgba(255, 255, 255, .08); }
.nav-item.is-current > .nav-link { color: #fff; box-shadow: inset 0 -2px 0 var(--primary-color); border-radius: 10px 10px 0 0; }
.sub-list {
    position: absolute; top: 100%; left: 0; min-width: 250px; padding: 8px; list-style: none;
    background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}
.has-sub:hover > .sub-list, .has-sub:focus-within > .sub-list { opacity: 1; visibility: visible; transform: none; }
.has-sub:hover > .nav-link svg { transform: rotate(180deg); }
.sub-list a { display: block; padding: 10px 14px; border-radius: 9px; color: var(--ink); font-size: .9rem; font-weight: 500; text-decoration: none; }
.sub-list a:hover, .sub-list a.is-current { background: var(--tint); }
.nav-contact { display: flex; align-items: center; gap: 20px; }
.nav-phone { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-size: .9rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.nav-phone svg { width: 18px; height: 18px; color: var(--primary-color); }
.nav-phone:hover { color: var(--primary-color); }

.menu-toggle { display: none; margin-left: auto; width: 46px; height: 46px; padding: 0; background: rgba(255, 255, 255, .08); border: 0; border-radius: 12px; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-toggle span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.nav-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1020px) {
    .menu-toggle { display: flex; }
    .main-nav {
        position: fixed; inset: var(--header-h) 0 0 0; z-index: 99; flex-direction: column; align-items: stretch; justify-content: flex-start;
        padding: 20px 24px 32px; background: var(--ink); overflow-y: auto; gap: 24px;
    }
    .js .main-nav { opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s var(--ease), visibility .25s; }
    .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
    .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
    .nav-link { padding: 16px 4px; font-size: 1.1rem; border-radius: 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
    .nav-item.is-current > .nav-link { box-shadow: none; color: var(--primary-color); }
    .sub-list { position: static; opacity: 1; visibility: visible; transform: none; background: transparent; box-shadow: none; padding: 4px 0 8px 14px; min-width: 0; }
    .sub-list a { color: rgba(255, 255, 255, .75); padding: 10px 4px; }
    .sub-list a:hover, .sub-list a.is-current { background: transparent; color: var(--primary-color); }
    .nav-link svg { display: none; }
    .nav-contact { flex-direction: column; align-items: stretch; gap: 16px; }
    .nav-phone { justify-content: center; font-size: 1rem; }
    .nav-contact .btn { width: 100%; }
}
@media (max-width: 560px) { :root { --header-h: 68px; } .brand img { width: 52px; height: 52px; } }

/* 5. Hero ------------------------------------------------------------------ */
.hero { position: relative; background: var(--ink-deep); color: #fff; overflow: hidden; }
.hero-track { display: grid; }
.hero-slide { grid-area: 1 / 1; position: relative; display: flex; align-items: center; min-height: clamp(520px, 78vh, 740px); opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero-slide::before {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background:
        radial-gradient(60% 80% at 12% 50%, rgba(22, 36, 44, .96), transparent 70%),
        linear-gradient(90deg, rgba(22, 36, 44, .96) 0%, rgba(22, 36, 44, .78) 48%, rgba(22, 36, 44, .25) 100%);
}
.hero-slide::after { /* subtiel groen accent in de hoek */
    content: ''; position: absolute; z-index: 1; right: -120px; bottom: -180px; width: 460px; height: 460px; border-radius: 50%;
    border: 2px solid color-mix(in srgb, var(--primary-color) 55%, transparent);
    box-shadow: 0 0 0 36px color-mix(in srgb, var(--primary-color) 8%, transparent);
}
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 660px; padding-block: 72px; }
.hero-content h1, .hero-content .h1 {
    font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 800; color: #fff; margin: 0 0 .45em; letter-spacing: -.02em; line-height: 1.08;
}
.hero-content h1::before, .hero-content .h1::before { content: ''; display: block; width: 56px; height: 5px; border-radius: 3px; background: var(--primary-color); margin-bottom: 24px; }
.hero-content .lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: rgba(255, 255, 255, .82); max-width: 54ch; margin-bottom: 2em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-actions.center { justify-content: center; margin-top: 32px; }
.hero-dots { position: absolute; z-index: 3; left: 0; right: 0; bottom: 28px; }
.hero-dots .container { display: flex; gap: 8px; }
.hero-dots button { width: 28px; height: 4px; padding: 0; border: 0; border-radius: 3px; background: rgba(255, 255, 255, .35); cursor: pointer; transition: background-color .2s, width .2s; }
.hero-dots button.is-active { width: 48px; background: var(--primary-color); }

/* 6. Paginakop ------------------------------------------------------------- */
.page-header { position: relative; background: var(--ink-deep); color: #fff; padding-block: clamp(48px, 7vw, 84px) clamp(40px, 5vw, 60px); overflow: hidden; }
.page-header-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.page-header::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, var(--ink-deep) 8%, rgba(22, 36, 44, .6) 100%); }
.page-header .container { position: relative; z-index: 2; }
.page-header h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 800; color: #fff; margin: 0; }
.page-header h1::after { content: ''; display: block; width: 56px; height: 5px; border-radius: 3px; background: var(--primary-color); margin-top: 22px; }
.crumbs { margin-bottom: 18px; font-size: .82rem; font-weight: 500; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; list-style: none; }
.crumbs li + li::before { content: '/'; margin-inline: 10px; opacity: .4; }
.crumbs a { display: inline-flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .7); text-decoration: none; }
.crumbs a:hover { color: var(--primary-color); }
.crumbs svg { width: 14px; height: 14px; }
.crumb-current { color: rgba(255, 255, 255, .95); }

/* 7. Kaarten --------------------------------------------------------------- */
.cards { display: grid; gap: 24px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.card { position: relative; display: flex; flex-direction: column; padding: 32px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--primary-color); }
.card h3 { font-size: 1.3rem; margin-bottom: .5em; }
.card-stretch { text-decoration: none; }
.card-stretch::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.card p { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; color: var(--text); margin-bottom: 1.4em; }
.card-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 22px; border-radius: 16px; background: var(--primary-soft); color: var(--ink); font-size: 26px; transition: background-color .3s; }
.card-icon i { line-height: 1; }
.card:hover .card-icon { background: var(--primary-color); }
.card-icon-lg { width: 64px; height: 64px; font-size: 30px; margin-bottom: 28px; }
.card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; font-weight: 700; font-size: .92rem; color: var(--ink); }
.card-link svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.card:hover .card-link svg { transform: translateX(5px); }
@media (max-width: 960px) { .cards-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards-3, .cards-2 { grid-template-columns: 1fr; } .card { padding: 26px; } }

/* 8. Klantervaringen ------------------------------------------------------- */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review-grid-2 { grid-template-columns: repeat(2, 1fr); }
.review-card { position: relative; margin: 0; padding: 32px; display: flex; flex-direction: column; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); }
.review-card blockquote { margin: 0 0 24px; }
.review-card blockquote p { font-size: 1.02rem; color: rgba(255, 255, 255, .88); margin: 0; }
.review-card .quote-mark { display: block; width: 34px; height: 34px; margin-bottom: 18px; color: var(--primary-color); }
.review-card figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review-card figcaption img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.review-card cite { font-style: normal; font-weight: 700; color: #fff; }
.review-card-light { background: #fff; border-color: var(--line); }
.review-card-light blockquote p { color: var(--text); }
.review-card-light cite { color: var(--ink); }
@media (max-width: 960px) { .review-grid { grid-template-columns: 1fr; } .review-grid-2 { grid-template-columns: 1fr; } }

/* 9. Detailpagina + zijbalk ------------------------------------------------ */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.detail-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.aside-card { padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.aside-card h2 { font-size: 1.15rem; margin-bottom: 1em; }
.aside-card-dark { background: var(--ink); border-color: var(--ink); color: rgba(255, 255, 255, .8); }
.aside-card-dark h2 { color: #fff; }
.aside-card-dark p { margin-bottom: 1.4em; }
.aside-list { list-style: none; margin: 0 -8px; }
.aside-list a { display: flex; align-items: center; gap: 12px; padding: 12px 8px; border-radius: 10px; color: var(--ink); font-weight: 600; font-size: .94rem; text-decoration: none; transition: background-color .2s; }
.aside-list a > i { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--primary-soft); font-size: 16px; }
.aside-list a > span { flex: 1; }
.aside-list a > svg { width: 16px; height: 16px; opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .2s; }
.aside-list a:hover, .aside-list a.is-active { background: var(--tint); }
.aside-list a:hover > svg, .aside-list a.is-active > svg { opacity: 1; transform: none; }
.aside-list a.is-active > i { background: var(--primary-color); }
@media (max-width: 960px) { .detail-grid { grid-template-columns: 1fr; } .detail-aside { position: static; } }

/* 10. Lopende tekst (prose) ------------------------------------------------ */
.prose { font-size: 1.0625rem; line-height: 1.8; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.prose h3 { font-size: 1.35rem; margin-top: 1.8em; }
.prose h4 { font-size: 1.3rem; font-weight: 700; margin: 2em 0 .55em; display: flex; align-items: center; gap: 12px; }
.prose h4::before { content: ''; flex: none; width: 4px; height: 1.1em; border-radius: 2px; background: var(--primary-color); }
.prose h4:first-child { margin-top: 0; }
.prose a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--primary-color); text-decoration-thickness: 2px; }
.prose a:hover { background: var(--primary-soft); }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.prose li { margin-bottom: .45em; padding-left: .3em; }
.prose ul li::marker { color: var(--primary-color); font-size: 1.15em; }
.prose img { border-radius: var(--radius); margin-block: 1.5em; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--primary-color); color: var(--ink); font-size: 1.12rem; }
.prose table { width: 100%; border-collapse: collapse; margin-block: 1.5em; font-size: .95rem; }
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { color: var(--ink); background: var(--tint); }
.prose hr { border: 0; height: 1px; background: var(--line); margin-block: 2.4em; }
.static-page > figure, .static-page > div[data-ajax-partial] { margin: 0; }
.static-page .cta { margin-top: 56px; border-radius: 24px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-top: 40px; }
.gallery-item { display: block; overflow: hidden; border-radius: 12px; aspect-ratio: 1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; margin: 0; transition: transform .5s var(--ease); }
.gallery-item:hover img { transform: scale(1.06); }
.lightbox { position: fixed; inset: 0; z-index: 500; display: none; align-items: center; justify-content: center; padding: 32px; background: rgba(10, 18, 22, .92); cursor: zoom-out; }
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 100%; width: auto; border-radius: 12px; }

/* 11. Contactpagina -------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-list { list-style: none; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: flex-start; gap: 12px; line-height: 1.5; }
.contact-list svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--primary-color); }
.contact-list a { text-decoration: none; font-weight: 600; }
.contact-list a:hover { color: var(--primary-color); }
.aside-card-dark .contact-list a, .aside-card-dark .contact-list span { color: #fff; }
.contact-map-wrap { margin-top: 56px; }
.contact-map { height: 380px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.contact-map iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }

/* 12. Formulieren (FormBuilder + reviews) ---------------------------------- */
.artisan-form-wrapper h3.form-header { font-size: 1.5rem; margin-bottom: 1em; }
.artisan-form-wrapper .row, .review-form .row { display: flex; flex-wrap: wrap; margin-inline: -10px; }
.artisan-form-wrapper .row > *, .review-form .row > * { width: 100%; padding-inline: 10px; }
@media (min-width: 768px) { .artisan-form-wrapper .col-md-6 { width: 50%; } }
.artisan-form-wrapper .mb-3, .review-form .form-group { margin-bottom: 18px; }
.artisan-form-wrapper .mb-4 { margin-bottom: 24px; }
.form-label, .artisan-form label { display: block; margin-bottom: 7px; font-size: .86rem; font-weight: 600; color: var(--ink); }
.form-control,
.artisan-form input[type="text"], .artisan-form input[type="email"], .artisan-form input[type="tel"], .artisan-form input[type="number"], .artisan-form input[type="date"], .artisan-form select, .artisan-form textarea {
    display: block; width: 100%; padding: 13px 16px; font: inherit; font-size: .97rem; color: var(--ink);
    background: #fff; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
    transition: border-color .2s, box-shadow .2s;
}
.form-control::placeholder, .artisan-form textarea::placeholder { color: #8b9aa2; }
.form-control:hover { border-color: #aebfb8; }
.form-control:focus, .artisan-form input:focus, .artisan-form select:focus, .artisan-form textarea:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 4px var(--primary-ring); }
textarea.form-control, .artisan-form textarea { min-height: 150px; }
.artisan-form .form-check { display: flex; align-items: center; gap: 10px; }
.artisan-form input[type="checkbox"], .artisan-form input[type="radio"] { accent-color: var(--primary-color); width: 18px; height: 18px; }
.artisan-form button.btn[disabled], .artisan-form button.btn.loading { opacity: .65; cursor: progress; }
.alert { padding: 16px 20px; margin-bottom: 20px; border-radius: var(--radius-sm); font-weight: 500; border: 1px solid transparent; }
.alert p { margin: 0; }
.alert-success { background: var(--primary-soft); border-color: var(--primary-color); color: var(--ink); }
.alert-danger, .alert-error, .alert-warning { background: #fdecec; border-color: #e9a4a4; color: #7a1f1f; }

/* 13. Contactblok (CTA) ---------------------------------------------------- */
.cta {
    position: relative; padding-block: var(--section-y); color: rgba(255, 255, 255, .82); overflow: hidden;
    background-color: var(--ink);
    background-image: linear-gradient(110deg, rgba(22, 36, 44, .97) 25%, rgba(22, 36, 44, .86)), var(--cta-image, none);
    background-size: cover; background-position: center;
}
.cta::after { content: ''; position: absolute; left: -140px; top: -140px; width: 380px; height: 380px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--primary-color) 40%, transparent); pointer-events: none; }
.cta-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.cta-text h2 { color: #fff; font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.cta-text p { font-size: 1.1rem; max-width: 44ch; margin: 0; }
.cta-form { padding: 32px; background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); color: var(--text); }
.cta-form h3.form-header { display: none; }
.cta-form .mb-3 { margin-bottom: 14px; }
.cta-form .btn { width: 100%; margin-top: 6px; }
.cta-form .artisan-form-wrapper .form-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 860px) { .cta-grid { grid-template-columns: 1fr; } .cta-form { padding: 24px; } }

/* 14. Footer --------------------------------------------------------------- */
.site-footer { background: var(--ink-deep); color: rgba(255, 255, 255, .7); font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 48px; padding-block: 72px 56px; }
.footer-brand img { width: 88px; height: 88px; object-fit: contain; margin-bottom: 24px; }
.footer-title { margin: 0 0 20px; font-family: var(--font-body); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.footer-links { list-style: none; display: grid; gap: 10px; }
.footer-links a { text-decoration: none; transition: color .2s, padding-left .2s; }
.footer-links a:hover { color: var(--primary-color); padding-left: 4px; }
.site-footer .contact-list a { color: #fff; }
.company-ids { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 22px 0 0; font-size: .85rem; }
.company-ids b { color: #fff; margin-right: 4px; }
.social-list { display: flex; gap: 10px; list-style: none; }
.social-list a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 255, 255, .08); color: #fff; transition: background-color .2s, color .2s, transform .2s var(--ease); }
.social-list a:hover { background: var(--primary-color); color: var(--on-primary); transform: translateY(-2px); }
.social-list svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 22px; font-size: .84rem; }
.footer-bottom p { margin: 0; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--primary-color); }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 32px; padding-block: 56px 40px; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* 15. 404 / error / onderhoud ---------------------------------------------- */
.notfound { padding-block: clamp(80px, 14vw, 160px); }
.status-code { font-family: var(--font-head); font-weight: 800; font-size: clamp(4rem, 12vw, 8rem); line-height: 1; color: var(--primary-color); margin: 0 0 .15em; letter-spacing: -.03em; -webkit-text-stroke: 0; }
.is-bare .notfound { min-height: 100vh; display: grid; align-items: center; }

/* 16. Cookiemelding (Matomo-plugin) ---------------------------------------- */
/* Compacte kaart linksonder. De plugin centreert de melding standaard; dat wordt hier overschreven. */
body #matomo-opt-out {
    left: 20px; right: auto; bottom: 20px;
    transform: none;
    width: calc(100% - 40px); max-width: 380px;
    padding: 20px;
    background: var(--ink);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 16px;
    box-shadow: 0 24px 56px rgba(10, 18, 22, .45);
    font-family: var(--font-body);
}
body #matomo-opt-out p { margin: 0 0 16px; font-size: 14px; line-height: 1.55; color: rgba(255, 255, 255, .86); }
body #matomo-opt-out .matomo-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
body #matomo-opt-out button {
    padding: 10px 12px; font: 600 14px/1.2 var(--font-body); border-radius: 10px; cursor: pointer;
    background: var(--primary-color); color: var(--on-primary); border: 1.5px solid var(--primary-color);
    transition: background-color .2s, border-color .2s, color .2s;
}
body #matomo-opt-out button:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
body #matomo-opt-out button.cookie-no-content-button { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
body #matomo-opt-out button.cookie-no-content-button:hover { background: #fff; border-color: #fff; color: var(--ink); }
body #matomo-opt-out button:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 2px; }

/* 17. Animaties ------------------------------------------------------------ */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .card.reveal { transition: opacity .7s var(--ease), transform .6s var(--ease), box-shadow .3s, border-color .3s; }
.js .card.reveal.is-visible:hover { transform: translateY(-5px); }
.js .reveal[data-delay="1"] { transition-delay: .05s; }
.js .reveal[data-delay="2"] { transition-delay: .15s; }
.js .reveal[data-delay="3"] { transition-delay: .25s; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; transform: none; }
}

/* CTA binnen smalle tekstpagina: onder elkaar */
.static-page .cta { padding-block: 48px; }
.static-page .cta-grid { grid-template-columns: 1fr; gap: 28px; padding-inline: 40px; }
@media (max-width: 560px) { .static-page .cta-grid { padding-inline: 20px; } }

/* Tijdens resizen geen overgangen (voorkomt flitsend mobiel menu bij wisselen van breakpoint) */
.is-resizing .main-nav, .is-resizing .main-nav * { transition: none !important; }

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