/* ============================================================
   MSA Medical Solutions — huisstijl
   ============================================================ */
:root {
    /* Kleuren afgeleid van het nieuwe MSA-logo */
    --navy:        #183050;
    --navy-700:    #14283f;
    --navy-900:    #0f2138;
    --green:       #187858;
    --green-600:   #14664b;
    --green-100:   #e3f1ea;
    --blue:        #436F94;   /* staalblauw uit het logo (subkoppen) */
    --blue-100:    #e9eff5;
    --ink:         #1c2733;
    --muted:       #5a6b7a;
    --line:        #dde5ec;
    --bg:          #ffffff;
    --bg-soft:     #f6f8fa;
    --white:       #ffffff;
    --amber:       #c47d2a;
    --radius:      8px;
    --radius-lg:   12px;
    --shadow:      0 6px 22px rgba(24, 48, 80, .07);
    --shadow-lg:   0 16px 44px rgba(24, 48, 80, .13);
    --maxw:        1180px;
    --font:        "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; font-weight: 800; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.01em; }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1rem; }
a  { color: var(--green-600); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: clamp(3rem, 7vw, 6rem) 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy); color: #dce6f0; }
.section--navy h2, .section--navy h3 { color: #fff; }

.eyebrow {
    display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; color: var(--green); margin-bottom: .8rem;
}
.lead { font-size: 1.15rem; color: var(--muted); }
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.measure { max-width: 640px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .78rem 1.5rem; border-radius: var(--radius); font-weight: 700; font-size: .98rem;
    border: 2px solid transparent; cursor: pointer; transition: .18s ease; text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-600); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-700); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--green); color: var(--green-600); }
.btn--light { background: #fff; color: var(--navy); }
.btn--white-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--white-ghost:hover { background: rgba(255,255,255,.1); }
.btn--block { width: 100%; justify-content: center; }
/* Compacte, nette iconen in knoppen en links (geen grote pijlen) */
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.card-link svg { width: 15px; height: 15px; }
.contact-info .ci-icon svg { width: 20px; height: 20px; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
    backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 76px; }
.brand img { height: 42px; width: auto; }
.nav { display: flex; align-items: stretch; gap: 1.6rem; }
.nav a { color: var(--navy); font-weight: 600; font-size: .96rem; }
.nav a:hover { color: var(--green-600); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: .7rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; }
/* Dropdown-navigatie */
.nav { align-self: stretch; }
/* Nav-items vullen de volledige headerhoogte zodat de muis zonder gat van de
   link naar het uitklapmenu beweegt (geen flikkeren / "clippende" rand meer). */
.nav-item { position: relative; display: flex; align-items: stretch; }
.nav-item > a { display: inline-flex; align-items: center; gap: .28rem; height: 100%; }
.nav .chev { width: 13px; height: 13px; opacity: .65; transition: transform .18s; }
.nav-item.has-sub:hover .chev { transform: rotate(180deg); }
.nav a.active { color: var(--green-600); }
/* top:100% = onderkant van de header; de link vult de hele hoogte, dus het
   menu sluit naadloos aan. padding-top vormt de onzichtbare hover-brug. */
.nav-sub { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); padding-top: 10px; display: none; z-index: 60; }
.nav-item.has-sub:hover .nav-sub, .nav-item.has-sub:focus-within .nav-sub { display: block; }
.nav-sub-inner { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 40px rgba(16,42,67,.14); padding: .5rem; min-width: 210px; display: flex; flex-direction: column; gap: .1rem; }
.nav-sub-inner a { padding: .55rem .8rem; border-radius: 9px; font-weight: 600; font-size: .92rem; color: var(--navy); white-space: nowrap; text-decoration: none; }
.nav-sub-inner a:hover, .nav-sub-inner a:focus { background: var(--bg-soft); color: var(--green-600); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    background:
        radial-gradient(1200px 500px at 80% -10%, rgba(46,135,102,.12), transparent 60%),
        linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
    padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3.5rem, 8vw, 6rem);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.hero h1 { margin-bottom: 1rem; }
.hero .lead { margin-bottom: 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-visual {
    aspect-ratio: 4/3; border-radius: var(--radius-lg); background: var(--green-100);
    box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
    display: grid; place-items: center;
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual .placeholder-icon { width: 42%; opacity: .5; }

/* ---------- Trust bar ---------- */
.trustbar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.trustbar .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .8rem 2rem; padding-top: 1.2rem; padding-bottom: 1.2rem; }
.trustbar .chip { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--navy); font-size: .95rem; }
.trustbar .chip::before { content: ''; width: 10px; height: 10px; border-radius: 3px; background: var(--green); transform: rotate(45deg); }

/* ---------- Grid & cards ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.6rem; box-shadow: var(--shadow); transition: .2s ease;
    display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #d3e0d9; }
.card .icon {
    width: 52px; height: 52px; border-radius: 13px; background: var(--green-100); color: var(--green);
    display: grid; place-items: center; margin-bottom: 1rem;
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: .4rem; }
.card .card-sub { color: var(--blue); font-weight: 600; font-size: .9rem; margin-bottom: .6rem; }
.card p { color: var(--muted); margin-bottom: 1rem; }
.card .card-link { margin-top: auto; font-weight: 700; color: var(--green-600); display: inline-flex; align-items: center; gap: .3rem; }

/* Media cards (blog/cases) */
.media-card { padding: 0; overflow: hidden; }
.media-card .thumb { aspect-ratio: 16/10; background: var(--blue-100); display: grid; place-items: center; }
.media-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.media-card .thumb .placeholder-icon { width: 64px; opacity: .4; }
.media-card .body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.tag { display: inline-block; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
    color: var(--green-600); background: var(--green-100); padding: .25rem .6rem; border-radius: 6px; margin-bottom: .7rem; align-self: flex-start; }
.meta { color: var(--muted); font-size: .85rem; }

/* ---------- Section heading ---------- */
.section-head { max-width: 680px; margin-bottom: 2.5rem; }
.section-head.center { margin-left: auto; margin-right: auto; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split .visual { aspect-ratio: 4/3; border-radius: var(--radius-lg); overflow: hidden; background: var(--green-100); box-shadow: var(--shadow); display: grid; place-items: center; }
.split .visual img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Testimonials ---------- */
.quote-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); }
.quote-card .quote { font-size: 1.1rem; color: var(--navy); font-weight: 500; }
.quote-card .quote::before { content: '“'; color: var(--green); font-size: 2.4rem; line-height: 0; vertical-align: -.4em; margin-right: .1em; }
.quote-card .who { margin-top: 1rem; font-weight: 700; color: var(--navy); }
.quote-card .who small { display: block; color: var(--muted); font-weight: 500; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-900) 100%); color: #fff; border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.5rem); text-align: center; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfe0d9; max-width: 560px; margin: 0 auto 1.6rem; }
.cta-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-top: 1.8rem; }
/* Knop: genoeg ruimte zodat staartletters (g, j, p) niet worden afgeknipt */
.btn { line-height: 1.35; }

/* ---------- Page header ---------- */
.page-hero { background: var(--navy); color: #fff; padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.page-hero h1 { color: #fff; margin-bottom: .5rem; }
.page-hero p { color: #b9cbdd; max-width: 620px; }
.breadcrumb { color: #9fb6cc; font-size: .85rem; margin-bottom: .8rem; }
.breadcrumb a { color: #cfe0f0; }

/* ---------- Prose (article body) ---------- */
.prose { font-size: 1.05rem; color: #33414f; }
.prose p { margin-bottom: 1.1rem; }
.prose h2, .prose h3 { margin-top: 1.8rem; }
.prose ul { padding-left: 1.2rem; }
.prose img { border-radius: var(--radius); margin: 1.5rem 0; }

/* ---------- FAQ ---------- */
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .8rem; overflow: hidden; }
.faq-item summary { padding: 1.1rem 1.4rem; font-weight: 700; color: var(--navy); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--green); font-size: 1.4rem; font-weight: 400; }
.faq-item[open] summary::after { content: '−'; }
.faq-item .answer { padding: 0 1.4rem 1.2rem; color: var(--muted); }

/* ---------- Forms ---------- */
.form-field { margin-bottom: 1.1rem; }
.form-field label { display: block; font-weight: 600; color: var(--navy); margin-bottom: .35rem; font-size: .92rem; }
.input, .textarea, select.input {
    width: 100%; padding: .75rem .9rem; border: 1.5px solid var(--line); border-radius: 10px;
    font: inherit; color: var(--ink); background: #fff; transition: .15s;
}
.input:focus, .textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-100); }
.textarea { min-height: 140px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }

/* ---------- Alerts ---------- */
.alert { padding: .9rem 1.1rem; border-radius: 10px; margin-bottom: 1.2rem; font-weight: 500; }
.alert--success { background: var(--green-100); color: var(--green-600); }
.alert--error { background: #fdecec; color: #c0392b; }
.alert--info { background: var(--blue-100); color: var(--navy); }

/* ---------- Contact layout ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact-info li { list-style: none; display: flex; gap: .8rem; margin-bottom: 1.1rem; }
.contact-info { padding: 0; margin: 1.5rem 0 0; }
.contact-info .ci-icon { width: 42px; height: 42px; border-radius: 11px; background: var(--green-100); color: var(--green); display: grid; place-items: center; flex-shrink: 0; }
.contact-info strong { display: block; color: var(--navy); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #a9bccf; padding: 3.5rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.site-footer a { color: #a9bccf; display: block; margin-bottom: .5rem; font-size: .93rem; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.footer-brand img { height: 34px; margin-bottom: 1rem; background: #fff; padding: 8px 12px; border-radius: 10px; }
.footer-brand p { font-size: .92rem; max-width: 280px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: .85rem; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-legal a { margin: 0; opacity: .85; }
.footer-legal a:hover { opacity: 1; }
.socials { display: flex; gap: .6rem; margin-top: 1rem; }
.socials a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; margin: 0; }
.socials a:hover { background: var(--green); }
.socials svg { width: 18px; height: 18px; }

/* ---------- Utilities ---------- */
.stat-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; text-align: center; }
.stat .num { font-size: 2.4rem; font-weight: 800; color: var(--green); }
.stat .label { color: var(--muted); font-weight: 600; }
.mt-2 { margin-top: 2rem; } .mb-0 { margin-bottom: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
    .grid--4 { grid-template-columns: repeat(2,1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-visual { max-width: 480px; }
    .stat-row { grid-template-columns: repeat(2,1fr); }
}
/* Hamburger-menu vanaf iPad-breedte en kleiner (voorkomt dat de volledige
   desktop-nav overloopt op tablets). */
@media (max-width: 1024px) {
    .nav, .nav-actions .btn { display: none; }
    .nav-toggle { display: block; }
    .site-header.open .nav {
        display: flex; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column;
        background: #fff; border-bottom: 1px solid var(--line); padding: 1rem 1.5rem; gap: 1rem; align-items: flex-start;
        box-shadow: 0 18px 40px rgba(16,42,67,.12); max-height: calc(100vh - 76px); overflow-y: auto;
    }
    /* Submenu's inline uitklappen op mobiel/tablet */
    .nav-item { flex-direction: column; align-items: flex-start; width: 100%; }
    .nav-sub { position: static; transform: none; display: block; padding: 0; margin-top: .4rem; }
    .nav-sub-inner { border: none; box-shadow: none; padding: 0 0 0 .9rem; min-width: 0; gap: .2rem; }
    .nav .chev { display: none; }
}
@media (max-width: 760px) {
    .grid--3, .grid--2, .grid--4 { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}
.faq-cat { margin: 2.2rem 0 .9rem; font-size: 1.05rem; color: var(--green-600); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.faq-cat:first-child { margin-top: 0; }

/* ============ Fotocarrousel (slideshow) ============ */
.msa-carousel { position: relative; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); background: var(--bg-soft); }
.msa-carousel-track { display: flex; transition: transform .6s cubic-bezier(.4,0,.2,1); }
.msa-carousel-track > figure { min-width: 100%; margin: 0; position: relative; }
.msa-carousel-track img { width: 100%; height: clamp(300px, 46vw, 540px); object-fit: cover; display: block; }
.msa-carousel figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem 1.7rem 1.3rem; color: #fff; font-weight: 600; font-size: 1.05rem; background: linear-gradient(transparent, rgba(15,33,56,.82)); }
.msa-prev, .msa-next { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: var(--navy); cursor: pointer; display: grid; place-items: center; z-index: 3; box-shadow: 0 4px 14px rgba(24,48,80,.14); transition: transform .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease; }
.msa-prev svg, .msa-next svg { width: 20px; height: 20px; display: block; }
.msa-prev { left: 16px; } .msa-next { right: 16px; }
.msa-prev:hover, .msa-next:hover { background: var(--green); color: #fff; border-color: var(--green); box-shadow: 0 8px 22px rgba(24,120,88,.32); transform: translateY(-50%) scale(1.06); }
.msa-prev:active, .msa-next:active { transform: translateY(-50%) scale(.96); }
.msa-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 3; }
.msa-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255,255,255,.55); cursor: pointer; padding: 0; transition: .15s; }
.msa-dots button.active { background: #fff; transform: scale(1.2); }

/* ============ Klanten-ribbon (marquee) ============ */
.msa-ribbon { overflow: hidden; padding: .3rem 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.msa-ribbon-track { display: flex; align-items: center; gap: 3.2rem; width: max-content; animation: msa-ribbon 34s linear infinite; }
.msa-ribbon:hover .msa-ribbon-track { animation-play-state: paused; }
.msa-ribbon span { font-weight: 800; font-size: 1.15rem; color: var(--navy); opacity: .55; white-space: nowrap; }
/* Logo's: elk in een even groot vak, gecentreerd en passend geschaald → zelfde formaat. */
.msa-ribbon span:has(img) { display: inline-flex; align-items: center; justify-content: center; height: 44px; opacity: 1; flex: 0 0 auto; }
.msa-ribbon span img { height: 44px; width: auto; max-width: 180px; object-fit: contain; display: block; }
@keyframes msa-ribbon { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .msa-ribbon-track { animation: none; } }

/* ============================================================
   Moderne, gelikte laag — glas, meer tinten blauw/groen/wit,
   blok-accenten (thema mockup + Apple-achtige transparantie)
   ============================================================ */
:root {
    --mint:   #eaf6f0;
    --sky:    #eef4fa;
    --steel-100: #e9eff5;
    --glass:  rgba(255,255,255,.72);
    --grad-hero: linear-gradient(135deg, #183050 0%, #14283f 55%, #1a5f49 145%);
    --grad-cta:  linear-gradient(120deg, #187858 0%, #14664b 100%);
    --grad-soft: linear-gradient(180deg, var(--sky) 0%, #fff 70%);
}

/* ---- Topbar (credentials + contact) ---- */
.topbar { background: var(--navy-900); color: #c4d3e2; font-size: 13px; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 38px; }
.topbar-creds span { margin-right: 20px; white-space: nowrap; opacity: .85; }
.topbar-creds span::before { content: ""; display: inline-block; width: 7px; height: 7px; background: var(--green); transform: rotate(45deg); margin-right: 7px; vertical-align: middle; }
.topbar-contact a { color: #c4d3e2; margin-left: 20px; font-weight: 600; }
.topbar-contact a:hover { color: #fff; text-decoration: none; }
@media (max-width: 720px) { .topbar-creds { display: none; } .topbar-contact a:last-child { display: none; } }

/* ---- Glazige, grotere header ---- */
.site-header { background: rgba(255,255,255,.72); -webkit-backdrop-filter: saturate(1.7) blur(16px); backdrop-filter: saturate(1.7) blur(16px); }
.brand img { height: 52px; }

/* ---- Kaarten als nette blokjes met groen accent ---- */
.card { border-radius: 14px; border-top: 3px solid var(--green); box-shadow: 0 10px 30px rgba(24,48,80,.06); }
.card:hover { box-shadow: 0 22px 48px rgba(24,48,80,.13); border-color: var(--line); border-top-color: var(--green); }
.card .icon { border-radius: 12px; background: linear-gradient(135deg, var(--green-100), var(--steel-100)); color: var(--green); }

/* ---- Section-ritme met zachte tinten ---- */
.section--soft { background: var(--grad-soft); }
.section--tint { background: linear-gradient(180deg, var(--mint) 0%, #fff 70%); }

/* ---- Hero: rijker verloop + gelikte visual ---- */
.hero {
    background:
        radial-gradient(900px 440px at 88% -10%, rgba(24,120,88,.14), transparent 60%),
        radial-gradient(760px 420px at -5% 108%, rgba(67,111,148,.14), transparent 60%),
        linear-gradient(180deg, #fff 0%, var(--sky) 100%);
}
.hero-visual { border-radius: 18px; box-shadow: 0 26px 60px rgba(24,48,80,.18); }

/* ---- Trustbar luchtig ---- */
.trustbar { background: rgba(255,255,255,.65); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* ---- CTA-band: groene gradient, gelikt ---- */
.cta-band { background: var(--grad-cta); color: #fff; border-radius: 20px; padding: clamp(2rem, 4vw, 3.2rem); box-shadow: 0 24px 56px rgba(20,102,75,.26); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #dcf1e9; }

/* ---- Glas-paneel (herbruikbaar) ---- */
.glass { background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.6); border-radius: 18px; box-shadow: var(--shadow); }

/* ---- Team-kaart placeholder = MSA-kruis ---- */
.team-photo, .team-ph { width: 104px; height: 104px; margin: 0 auto 1rem; border-radius: 16px; overflow: hidden; background: linear-gradient(135deg, var(--green-100), var(--steel-100)); display: grid; place-items: center; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-ph img { width: 58px; height: 58px; opacity: .9; }

/* ---- Footer: logo groter, in wit chip (leesbaar op donker) ---- */
.footer-brand img { height: 58px; background: #fff; padding: 9px 13px; border-radius: 12px; }

/* ---- Media-kaart (cases) gelikter ---- */
.media-card { border-radius: 14px; overflow: hidden; }
.media-card .thumb img { transition: transform .5s ease; }
.media-card:hover .thumb img { transform: scale(1.05); }

/* ============ Drie pijlers (kreten) op navy ============ */
.pillars { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-900) 100%); }
.pillars .pillar { display: flex; flex-direction: column; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-top: 3px solid var(--green); border-radius: 14px; padding: 1.9rem 1.6rem; color: #dbe6f0; transition: .2s ease; }
.pillars .pillar:hover { background: rgba(255,255,255,.1); transform: translateY(-4px); text-decoration: none; box-shadow: 0 22px 46px rgba(0,0,0,.28); }
.pillar-num { font-size: .76rem; font-weight: 800; letter-spacing: .05em; color: #4cc79c; }
.pillars .pillar h3 { color: #fff; margin: .55rem 0 .5rem; }
.pillars .pillar p { color: #aec2d6; font-size: .96rem; flex: 1; margin-bottom: 0; }
.pillar-more { margin-top: 1.1rem; font-weight: 700; color: #fff; display: inline-flex; align-items: center; gap: .35rem; }
.pillar-more svg { width: 15px; height: 15px; }

/* ============ Credentials-band (navy) ============ */
.creds-band { background: var(--navy); color: #fff; }
.creds-band h2 { color: #fff; }
.creds-band .cred b { display: block; color: #fff; font-size: 1.05rem; font-weight: 800; margin-bottom: .4rem; }
.creds-band .cred span { color: #a9bccf; font-size: .9rem; line-height: 1.5; }

/* ============ Testimonials-carousel (coverflow: 3 zichtbaar) ============ */
.msa-carousel--quotes { background: transparent; box-shadow: none; border-radius: 0; overflow: hidden; padding: .5rem 0 0; }
.msa-carousel--quotes .msa-carousel-track { overflow: visible; align-items: center; transition: transform .55s cubic-bezier(.4,0,.2,1); }
.msa-carousel--quotes .quote-slide {
    min-width: min(56%, 640px); display: flex; justify-content: center; padding: 1.4rem 1rem; box-sizing: border-box;
    opacity: .32; transform: scale(.88); filter: saturate(.55);
    transition: opacity .5s ease, transform .5s ease, filter .5s ease;
}
.msa-carousel--quotes .quote-slide.is-active { opacity: 1; transform: scale(1); filter: none; }
.quote-card-lg { max-width: 640px; width: 100%; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--green); border-radius: 16px; padding: 2.4rem 2.6rem; box-shadow: var(--shadow); text-align: left; }
.msa-carousel--quotes .quote-slide.is-active .quote-card-lg { box-shadow: var(--shadow-lg); }
.quote-card-lg .q-mark { font-size: 3rem; line-height: .3; color: var(--green); font-weight: 800; }
.quote-card-lg .q-text { font-size: 1.15rem; color: var(--ink); font-style: italic; margin: 1.1rem 0 1.4rem; line-height: 1.6; }
.quote-card-lg .q-who b { color: var(--navy); font-weight: 800; }
.quote-card-lg .q-who span { display: block; color: var(--muted); font-size: .9rem; margin-top: .2rem; }
.msa-carousel--quotes .msa-dots { position: static; transform: none; justify-content: center; margin-top: 1.6rem; padding: 7px 0; }
.msa-carousel--quotes .msa-dots button { background: var(--line); }
.msa-carousel--quotes .msa-dots button.active { background: var(--green); }
@media (max-width: 780px){
    .msa-carousel--quotes .quote-slide { min-width: 84%; opacity: .4; }
    .msa-carousel--quotes .msa-prev, .msa-carousel--quotes .msa-next { display: none; }
    .quote-card-lg { padding: 1.8rem 1.5rem; }
}

/* ============================================================
   Verfijning: topbar, pijlers, diamant-textuur, scroll-rij
   ============================================================ */

/* Topbar strakker en lichter */
.topbar { background: linear-gradient(90deg, var(--navy-900), var(--navy-700)); color: #a9bccf; font-size: 12.5px; border-bottom: 1px solid rgba(255,255,255,.06); }
.topbar .container { height: 40px; }
.topbar-creds { display: flex; }
.topbar-creds span { display: inline-flex; align-items: center; margin-right: 0; padding: 0 16px; position: relative; gap: 7px; }
.topbar-creds span:first-child { padding-left: 0; }
.topbar-creds span:not(:last-child)::after { content: ""; position: absolute; right: 0; width: 1px; height: 12px; background: rgba(255,255,255,.14); }
.topbar-creds span::before { width: 7px; height: 7px; border-radius: 2px; background: var(--green); }
.topbar-contact a { color: #cfdeeb; font-weight: 600; }

/* Pijlers: ghost-nummer, glas, diamant-textuur */
.pillars { position: relative; overflow: hidden; background: linear-gradient(155deg, #1a3556 0%, #0f2138 100%); }
.pillars::before, .pillars::after, .creds-band::before, .hero::before { content: ""; position: absolute; border-radius: 48px; transform: rotate(45deg); pointer-events: none; }
.pillars::before { width: 260px; height: 260px; top: -110px; right: 8%; background: rgba(67,111,148,.16); }
.pillars::after { width: 200px; height: 200px; bottom: -90px; left: 4%; background: rgba(24,120,88,.14); }
.pillars .container { position: relative; z-index: 1; }
.pillars .pillar { position: relative; overflow: hidden; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 2rem 1.8rem; }
.pillars .pillar:hover { background: rgba(255,255,255,.09); border-color: rgba(76,199,156,.45); transform: translateY(-4px); }
.pillar-bignum { position: absolute; top: .3rem; right: 1.1rem; font-size: 4.4rem; font-weight: 800; line-height: 1; color: rgba(255,255,255,.06); letter-spacing: -.03em; }
.pillar-kicker { display: block; color: #4cc79c; font-weight: 800; font-size: .78rem; letter-spacing: .05em; position: relative; z-index: 1; }
.pillars .pillar h3 { color: #fff; font-size: 1.15rem; margin: .55rem 0 .6rem; position: relative; z-index: 1; }
.pillars .pillar p { color: #b3c5d8; font-size: .95rem; position: relative; z-index: 1; }

/* Diamant-textuur op hero en creds-band */
.hero::before { width: 300px; height: 300px; background: rgba(67,111,148,.08); top: -150px; left: -90px; }
.hero .container { position: relative; z-index: 1; }
.creds-band { position: relative; overflow: hidden; }
.creds-band::before { width: 240px; height: 240px; bottom: -120px; right: 6%; background: rgba(76,199,156,.12); }
.creds-band .container { position: relative; z-index: 1; }

/* Leesbare links op groene/navy vlakken */
.cta-band a:not(.btn), .section--navy a:not(.btn), .creds-band a:not(.btn) { color: #fff; text-decoration: underline; }

/* Horizontaal scrollbare rij (kernwaarden e.d.) */
.hscroll { display: flex; gap: 1.4rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .4rem .2rem 1.2rem; scrollbar-width: thin; }
.hscroll > * { flex: 0 0 auto; scroll-snap-align: start; min-width: min(340px, 82vw); }
.hscroll::-webkit-scrollbar { height: 8px; }
.hscroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }
.hscroll-hint { text-align: center; color: var(--muted); font-size: .82rem; margin-top: .3rem; }

/* Waarom MSA: kernwaarden — groot 5, tablet 3, telefoon onder elkaar */
.grid--5 { grid-template-columns: repeat(5, 1fr); gap: 1.25rem; align-items: stretch; }
.kw-grid .kw-card {
    display: flex; flex-direction: column; height: 100%;
    padding: 1.7rem 1.4rem 1.5rem; border: 1px solid var(--line); border-top: 3px solid var(--green);
    border-radius: 16px; background: #fff; box-shadow: 0 8px 24px rgba(24,48,80,.06);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.kw-grid .kw-card:hover { transform: translateY(-5px); box-shadow: 0 20px 44px rgba(24,48,80,.13); border-color: #cfe0d8; }
.kw-card .icon {
    width: 50px; height: 50px; border-radius: 14px; margin-bottom: 1.1rem;
    background: linear-gradient(135deg, var(--green) 0%, var(--green-600) 100%); color: #fff;
    display: grid; place-items: center; box-shadow: 0 8px 18px rgba(24,120,88,.3);
}
.kw-card .icon svg { width: 24px; height: 24px; }
.kw-card h3 { font-size: 1.06rem; line-height: 1.3; margin-bottom: .55rem; color: var(--navy); }
.kw-card p { font-size: .9rem; color: var(--muted); margin: 0; line-height: 1.6; }
/* Tablet: 3 naast elkaar. Telefoon: onder elkaar. */
@media (max-width: 1080px) { .grid--5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .grid--5 { grid-template-columns: 1fr; gap: 1rem; } }

/* Blauw diamant-vlak linksboven in de hero weghalen */
.hero::before { display: none; }

/* Pijler-/navy-kaarten zijn links, maar tekst niet onderstrepen
   (underline blijft alleen op de groene CTA met echte inline-links). */
.section--navy a:not(.btn), .creds-band a:not(.btn) { text-decoration: none; }
.pillars .pillar, .pillars .pillar:hover { text-decoration: none; }

/* ============================================================
   Geanimeerd dove-logo in de header
   Diamant verschijnt → M S A schuiven eruit → M wordt (medical)
   blauw + "Medical" verschijnt → S wordt blauw + "Solutions"
   ============================================================ */
.alogo { --mark: 46px; display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.alogo:hover { text-decoration: none; }
.alogo .alogo-mark { width: var(--mark); height: var(--mark); flex: 0 0 auto; display: block; }
.am-svg { width: 100%; height: 100%; display: block; overflow: visible; }
/* 1) afgeronde groene diamant verschijnt */
.am-diamond { fill: var(--green); transform-box: fill-box; transform-origin: center; opacity: 0; animation: am-in .6s cubic-bezier(.2,.85,.25,1) both; }
/* 3) de duif verschijnt gelikt mee (fade + zachte schaal) */
.am-dove-full { transform-box: fill-box; transform-origin: center; opacity: 0; animation: am-dove-in .6s cubic-bezier(.2,.85,.25,1) .35s both; }

.alogo-text { display: flex; flex-direction: column; line-height: 1; }
.alogo-word { display: flex; }
.al-l { font-size: 29px; font-weight: 800; letter-spacing: .5px; color: var(--navy); opacity: 0; line-height: 1; }
/* 2) M S A schuiven eruit */
.al-m { animation: al-slide .5s ease .6s both, al-flash 1s ease 1.5s 1; }
.al-s { animation: al-slide .5s ease .72s both, al-flash 1s ease 2s 1; }
.al-a { animation: al-slide .5s ease .84s both; }
.alogo-sub { margin-top: 3px; font-size: 13px; font-weight: 600; color: var(--steel); white-space: nowrap; }
.al-medical, .al-solutions { display: inline-block; opacity: 0; }
/* 4) M blauw + Medical, dan S blauw + Solutions */
.al-medical { animation: al-reveal .45s ease 1.65s both; }
.al-solutions { animation: al-reveal .45s ease 2.15s both; }
/* Al gespeeld deze sessie: direct de eindtoestand, geen animatie */
.alogo.played .am-diamond { opacity: 1; animation: none; }
.alogo.played .am-dove-full { opacity: 1; animation: none; transform: none; }
.alogo.played .al-l, .alogo.played .al-medical, .alogo.played .al-solutions { animation: none; opacity: 1; transform: none; color: var(--navy); }

@keyframes am-in { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
@keyframes am-dove-in { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
@keyframes al-slide { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: translateX(0); } }
@keyframes al-flash { 0% { color: var(--navy); } 45% { color: var(--blue); } 100% { color: var(--navy); } }
@keyframes al-reveal { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .am-diamond, .am-dove-full, .al-l, .al-medical, .al-solutions { animation: none !important; opacity: 1 !important; transform: none !important; }
}
@media (max-width: 520px) { .alogo { --mark: 38px; } .al-l { font-size: 23px; } .alogo-sub { font-size: 11.5px; } }

/* ============ Rich-text uit beheer (publieke weergave) ============ */
.rich-text > :first-child { margin-top: 0; }
.rich-text > :last-child { margin-bottom: 0; }
.rich-text p { margin: 0 0 .8rem; }
.rich-text ul { list-style: disc; padding-left: 1.4rem; margin: .6rem 0; }
.rich-text ol { list-style: decimal; padding-left: 1.4rem; margin: .6rem 0; }
.rich-text li { margin: .25rem 0; }
.rich-text a { color: var(--green-600); text-decoration: underline; }
.rich-text strong, .rich-text b { font-weight: 800; }
.rich-text u { text-decoration: underline; }

/* ================= WordPress-thema: extra componenten ================= */

/* Diensten-kaarten: icoon of foto i.p.v. cijfers, accent groen/blauw */
.msa-service-grid .service-card { display: flex; flex-direction: column; text-align: left; border-top: 3px solid var(--green); }
.service-media { margin-bottom: 1rem; }
.service-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: var(--green-100); color: var(--green); }
.service-icon svg { width: 26px; height: 26px; }
.service-photo { width: 100%; height: 170px; object-fit: cover; border-radius: 12px; }
.service-card h3 { margin-bottom: .3rem; color: var(--navy); }
.service-sub { color: var(--blue); font-weight: 600; font-size: .9rem; margin-bottom: .5rem; }
.service-more { margin-top: auto; padding-top: .8rem; font-weight: 700; color: var(--green-600); display: inline-flex; align-items: center; gap: .3rem; }
.service-more svg { width: 15px; height: 15px; }
/* Blauw accent */
.service-card--blue { border-top-color: var(--blue); }
.service-card--blue .service-icon { background: var(--blue-100); color: var(--blue); }
.service-card--blue h3 { color: var(--blue); }
.service-card--blue .service-more { color: var(--blue); }
/* Detailpagina: uniforme opmaak (navy hero + witte body), geen groen/blauw accent per dienst. */

.split--center { align-items: center; }

/* Certificeringen-doorlink-band */
.creds-cta { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
    background: linear-gradient(120deg, var(--navy) 0%, var(--navy-900) 100%); color: #fff; border-radius: var(--radius-lg); padding: clamp(1.6rem,4vw,2.6rem); }
.creds-cta h2 { color: #fff; margin: .2rem 0; }
.creds-cta p { color: #cdd9e6; margin: 0; }

/* Klantenrij */
.client-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem 1rem; }
.client-chip { font-weight: 700; color: var(--navy); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1.1rem; }

/* Teamkaarten (klikbaar → pop-up) — compacter en gecentreerd */
.team-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; align-items: stretch; }
.team-grid .team-card { position: relative; display: flex; flex-direction: column; text-align: left; flex: 0 1 280px; max-width: 280px; padding: 0; margin: 0; cursor: pointer;
    background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease; font: inherit; }
.team-grid .team-card:hover, .team-grid .team-card:focus-visible {
    transform: translateY(-3px); outline: none;
    box-shadow: 0 0 26px 4px rgba(24,120,88,.22), 0 14px 30px rgba(24,120,88,.12); /* zachte groene gloed, geen rand */
}
.team-grid .team-photo { width: 100%; height: auto; margin: 0; aspect-ratio: 1/1; border-radius: 0; background: var(--green-100); display: grid; place-items: center; overflow: hidden; }
.team-grid .team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.team-grid .team-photo img.placeholder-icon { width: 45%; height: auto; opacity: .5; }
.team-info { padding: 1rem 1.1rem 1.2rem; }
.team-info h3 { font-size: 1.05rem; margin: 0 0 .2rem; color: var(--navy); }
.team-info .card-sub { color: var(--muted); font-size: .9rem; margin: 0; }
.team-tenure { display: inline-block; margin-top: .5rem; color: var(--green-600); font-weight: 700; font-size: .8rem; }

/* Team-pop-up (modal) — grotere doorzichtige kaart */
.msa-modal { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; padding: 1.5rem; }
.msa-modal.is-open { display: flex; }
.msa-modal-overlay { position: absolute; inset: 0; background: rgba(15,33,56,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .22s ease; }
.msa-modal.is-open .msa-modal-overlay { opacity: 1; }
.msa-modal-card { position: relative; z-index: 1; width: 100%; max-width: 680px; display: grid; grid-template-columns: 220px 1fr; gap: 1.9rem; align-items: center;
    background: #fff; color: var(--navy); border: 1px solid var(--line);
    border-radius: 20px; padding: 2rem; box-shadow: 0 34px 90px rgba(15,33,56,.35); transform: translateY(12px) scale(.98); opacity: 0; transition: .22s ease; }
.msa-modal.is-open .msa-modal-card { transform: none; opacity: 1; }
.msa-modal-photo img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 14px; display: block; }
.msa-modal-name { color: var(--navy); margin: 0 0 .25rem; font-size: 1.5rem; }
.msa-modal-role { color: var(--muted); font-weight: 600; margin: 0 0 .35rem; }
.msa-modal-tenure { color: var(--green-600); font-weight: 700; font-size: .85rem; margin: 0 0 .9rem; }
.msa-modal-story { color: #33414f; line-height: 1.65; margin: 0; }
.msa-modal-close { position: absolute; top: .7rem; right: 1rem; background: none; border: 0; color: var(--navy); font-size: 1.9rem; line-height: 1; cursor: pointer; opacity: .55; }
.msa-modal-close:hover { opacity: 1; }
.msa-modal-close:hover { opacity: 1; }
@media (max-width: 560px) { .msa-modal-card { grid-template-columns: 1fr; } .msa-modal-photo img { max-width: 200px; margin: 0 auto; } }

/* FAQ open-animatie (op de originele <details>-structuur) */
.faq-item[open] .answer { animation: msaFaqOpen .28s ease; }
@keyframes msaFaqOpen { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Testimonials "lees meer" */
.q-more { background: none; border: 0; color: var(--green-600); font-weight: 700; cursor: pointer; padding: 0; font-size: inherit; text-decoration: underline; }

/* Vacature-rij */
.vacancy-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: #fff; border: 1px solid var(--line);
    border-radius: 12px; padding: 1.1rem 1.3rem; margin-bottom: .8rem; text-decoration: none; transition: .18s ease; }
.vacancy-row:hover { border-color: var(--green); box-shadow: var(--shadow); text-decoration: none; }
.vacancy-row h3 { margin: 0 0 .2rem; font-size: 1.1rem; }
.vacancy-meta { margin: 0; color: var(--muted); font-size: .9rem; }
.btn--sm { padding: .5rem 1rem; font-size: .9rem; }

/* Formulieren */
.form-card { padding: 1.6rem 1.7rem; }
.msa-form label { display: block; font-weight: 600; margin-bottom: .3rem; font-size: .92rem; }
.msa-form input[type=text], .msa-form input[type=email], .msa-form select, .msa-form textarea {
    width: 100%; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fff; }
.msa-form input:focus, .msa-form select:focus, .msa-form textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-100); }
.msa-form input[readonly] { background: var(--bg-soft); color: var(--muted); }
.msa-form p { margin: 0 0 1rem; }
.contact-info h3 { margin-bottom: .6rem; }
.contact-info p { margin: 0 0 .5rem; }

/* Begrippenlijst */
.term-list { display: flex; flex-direction: column; gap: 1.1rem; }
.term-item { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--green); border-radius: 10px; padding: 1.1rem 1.3rem; }
.term-item h3 { margin: 0 0 .3rem; }

/* Certificering-kaart */
.cred-card { text-align: left; }
.cred-card .icon { width: 46px; height: 46px; border-radius: 12px; background: var(--green-100); color: var(--green); display: grid; place-items: center; margin-bottom: .8rem; }
.cred-card .icon svg { width: 24px; height: 24px; }
.cred-issuer { display: block; color: var(--blue); font-weight: 600; font-size: .85rem; margin-bottom: .4rem; }

/* ================= Blog ================= */
.post-hero { padding: clamp(2rem,5vw,3.2rem) 0 1.2rem; background: linear-gradient(180deg,#fff,var(--bg-soft)); }
.post-cats { margin: .3rem 0 .6rem; display: flex; gap: .4rem; flex-wrap: wrap; }
.post-meta { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; color: var(--muted); font-size: .92rem; margin-top: .6rem; }
.post-author { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--navy); }
.post-author img { border-radius: 50%; }
.post-featured { margin: 1.5rem auto; }
.post-featured-img { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.post-layout { display: block; padding-top: 1.5rem; padding-bottom: 1.5rem; }
.post-main { max-width: 760px; margin: 0 auto; }
.post-content { font-size: 1.06rem; }
.post-content h2 { scroll-margin-top: 90px; margin-top: 1.8rem; }
.post-content h3 { scroll-margin-top: 90px; }

/* Inhoudsopgave */
.msa-toc { background: var(--bg-soft); border: 1px solid var(--line); border-left: 3px solid var(--green); border-radius: 10px; padding: 1rem 1.2rem; margin: 0 0 1.8rem; }
.msa-toc-title { font-weight: 800; color: var(--navy); margin: 0 0 .4rem; text-transform: uppercase; font-size: .78rem; letter-spacing: .06em; }
.msa-toc ul { list-style: none; margin: 0; padding: 0; }
.msa-toc li { margin: .25rem 0; }
.msa-toc li.toc-h3 { padding-left: 1rem; }
.msa-toc a { color: var(--navy); text-decoration: none; }
.msa-toc a:hover { color: var(--green-600); text-decoration: underline; }

.post-tags { margin: 1.6rem 0; display: flex; gap: .4rem; flex-wrap: wrap; }
.post-tags a { font-size: .82rem; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: .2rem .7rem; color: var(--muted); text-decoration: none; }

.post-share { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 1.6rem 0; }
.post-share span { color: var(--muted); font-weight: 600; }
.post-share a { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; color: var(--green-600); text-decoration: none; }
.post-share a svg { width: 16px; height: 16px; }

.author-box { display: flex; gap: 1rem; align-items: flex-start; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; padding: 1.3rem; margin: 1.8rem 0; }
.author-box img { border-radius: 50%; flex: 0 0 auto; }
.author-box strong { color: var(--navy); font-size: 1.05rem; }
.author-box p { margin: .3rem 0 0; color: var(--muted); font-size: .92rem; }

.post-cta { margin: 2rem 0 0; }
.post-cta h2 { font-size: clamp(1.3rem,2.4vw,1.7rem); }

/* Blog-archief */
.blog-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.blog-filters { display: flex; gap: .5rem; flex-wrap: wrap; }
.chip-filter { font-weight: 600; font-size: .9rem; color: var(--navy); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .45rem 1rem; text-decoration: none; }
.chip-filter:hover { border-color: var(--green); text-decoration: none; }
.chip-filter.is-active { background: var(--green); color: #fff; border-color: var(--green); }
.blog-search { display: flex; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
    box-shadow: 0 2px 10px rgba(24,48,80,.05); transition: border-color .15s ease, box-shadow .15s ease; }
.blog-search:focus-within { border-color: var(--green); box-shadow: 0 6px 18px rgba(24,120,88,.15); }
.blog-search input { border: 0; padding: .62rem 1rem; font: inherit; outline: none; background: transparent; min-width: 210px; color: var(--navy); }
.blog-search input::placeholder { color: var(--muted); }
.blog-search button { border: 0; background: var(--green); color: #fff; padding: 0 1.05rem; align-self: stretch; cursor: pointer; display: grid; place-items: center; transition: background .15s ease; }
.blog-search button:hover { background: #14664b; }
.blog-search button svg { width: 18px; height: 18px; }

.blog-card { position: relative; padding: 0; overflow: hidden; }
.blog-card-link { display: flex; flex-direction: column; text-decoration: none; height: 100%; }
.blog-card .thumb { position: relative; }
.badge-featured { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--green); color: #fff; font-size: .74rem; font-weight: 700; padding: .25rem .6rem; border-radius: 6px; letter-spacing: .03em; }
.blog-card-meta { display: block; margin-top: .6rem; color: var(--muted); font-size: .82rem; }

.no-results { padding: 3rem 1rem; }
.no-results h3 { margin-bottom: .5rem; }

/* Paginatie */
.pagination .nav-links, .navigation .nav-links { display: flex; gap: .4rem; justify-content: center; flex-wrap: wrap; }
.pagination .page-numbers, .navigation .page-numbers { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 .6rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--navy); text-decoration: none; font-weight: 600; }
.pagination .page-numbers.current { background: var(--green); color: #fff; border-color: var(--green); }
.pagination a.page-numbers:hover { border-color: var(--green); }

/* ================= Toegankelijkheid (WCAG) ================= */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 999; background: var(--green); color: #fff; padding: .7rem 1.2rem; border-radius: 0 0 8px 0; font-weight: 700; }
.skip-link:focus { left: 0; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
    outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 3px;
}

/* ===== WordPress-hoofdmenu: zelfde look & feel als de originele nav ===== */
.nav .nav-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; gap: 1.6rem; }
.nav .nav-menu > li { position: relative; display: flex; align-items: stretch; }
.nav .nav-menu a { display: inline-flex; align-items: center; gap: .3rem; height: 100%; color: var(--navy); font-weight: 600; font-size: .96rem; text-decoration: none; }
.nav .nav-menu a:hover { color: var(--green-600); text-decoration: none; }
.nav .nav-menu .current-menu-item > a,
.nav .nav-menu .current_page_item > a,
.nav .nav-menu .current-menu-parent > a { color: var(--green-600); }
/* Chevron bij items met een submenu */
.nav .nav-menu .menu-item-has-children > a::after {
    content: ""; width: 7px; height: 7px; margin-left: .15rem;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px); opacity: .6; transition: transform .18s;
}
.nav .nav-menu .menu-item-has-children:hover > a::after { transform: rotate(-135deg) translateY(2px); }
/* Uitklapmenu */
.nav .nav-menu .sub-menu {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    margin: 0; padding: .5rem; list-style: none; min-width: 210px; display: none; z-index: 60;
    background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 40px rgba(16,42,67,.14);
}
.nav .nav-menu li:hover > .sub-menu, .nav .nav-menu li:focus-within > .sub-menu { display: block; }
.nav .nav-menu .sub-menu li { display: block; width: 100%; }
.nav .nav-menu .sub-menu a { display: block; width: 100%; height: auto; padding: .55rem .8rem; border-radius: 9px; white-space: nowrap; font-size: .92rem; }
.nav .nav-menu .sub-menu a:hover { background: var(--bg-soft); color: var(--green-600); }

@media (max-width: 760px) {
    .nav .nav-menu { flex-direction: column; align-items: flex-start; gap: 1rem; width: 100%; }
    .nav .nav-menu > li { flex-direction: column; align-items: flex-start; width: 100%; }
    .nav .nav-menu .sub-menu { position: static; transform: none; display: block; border: none; box-shadow: none; padding: .2rem 0 0 .9rem; min-width: 0; }
    .nav .nav-menu .menu-item-has-children > a::after { display: none; }
}

/* CTA-tekst: originele gecentreerde smalle kolom behouden, ook met meerdere alinea's */
.cta-band .rich-text { max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-band .rich-text p { max-width: 560px; margin-left: auto; margin-right: auto; }

/* Pijler-icoon (vervangt het grote cijfer op de home, navy sectie) */
.pillar-icon { display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 13px; background: rgba(76,199,156,.16); color: #4cc79c; margin-bottom: 1rem; position: relative; z-index: 1; }
.pillar-icon svg { width: 26px; height: 26px; }

/* ---------- Taalwisselaar (vlaggen-dropdown) ---------- */
.msa-lang { position: relative; margin-right: .5rem; }
.msa-lang > summary {
    list-style: none; cursor: pointer;
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .35rem .5rem; border: 1px solid transparent; border-radius: 8px;
    font-size: .82rem; font-weight: 700; color: var(--navy, #183050);
    background: transparent; line-height: 1; user-select: none;
    transition: background .15s ease, border-color .15s ease;
}
.msa-lang > summary::-webkit-details-marker { display: none; }
.msa-lang > summary:hover { background: rgba(0,0,0,.05); }
.msa-lang[open] > summary { background: rgba(0,0,0,.05); }
.msa-lang .msa-flag { border-radius: 3px; display: block; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.msa-lang .msa-lang-caret { color: var(--muted, #64748b); transition: transform .15s ease; }
.msa-lang[open] .msa-lang-caret { transform: rotate(180deg); }
.msa-lang-menu {
    position: absolute; top: calc(100% + 6px); right: 0; z-index: 200;
    min-width: 168px; background: #fff; border: 1px solid #e2e8f0;
    border-radius: 10px; padding: 5px; box-shadow: 0 12px 30px rgba(0,0,0,.14);
    display: flex; flex-direction: column; gap: 2px;
}
.msa-lang-menu a {
    display: flex; align-items: center; gap: .55rem;
    padding: .5rem .6rem; border-radius: 7px; text-decoration: none;
    font-size: .9rem; font-weight: 600; color: var(--navy, #183050); line-height: 1.1;
}
.msa-lang-menu a:hover { background: #f1f5f9; }
.msa-lang-menu a.is-active { color: var(--green, #187858); background: rgba(24,120,88,.08); }

/* ============================================================
   Kernwaarden-scroll (home): foto even groot als de 5 punten,
   die per kernwaarde meeverandert tijdens het scrollen
   ============================================================ */
.kw-scroll { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: stretch; margin-top: 2.5rem; }
.kw-scroll-media {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
    background: var(--green-100); box-shadow: var(--shadow); min-height: 360px;
}
.kw-scroll-photo {
    position: absolute; inset: 0; opacity: 0;
    transition: opacity .9s cubic-bezier(.4,0,.2,1), transform 1.6s cubic-bezier(.22,.61,.36,1);
    transform: scale(1.08); display: grid; place-items: center; will-change: opacity, transform;
}
.kw-scroll-photo.is-active { opacity: 1; transform: scale(1); }
.kw-scroll-photo img { width: 100%; height: 100%; object-fit: cover; }
.kw-scroll-ph { color: var(--green); opacity: .4; }
.kw-scroll-ph svg { width: 92px; height: 92px; }
.kw-scroll-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; justify-content: space-between; }
.kw-scroll-item {
    display: grid; grid-template-columns: 2.2rem 46px 1fr; align-items: center; gap: 1.1rem;
    padding: clamp(1rem, 3vw, 1.8rem) 0; border-top: 1px solid var(--line);
    opacity: .38; transform: translateX(0);
    transition: opacity .6s cubic-bezier(.4,0,.2,1), transform .6s cubic-bezier(.4,0,.2,1);
}
.kw-scroll-item:first-child { border-top: 0; }
.kw-scroll-item.is-active { opacity: 1; transform: translateX(6px); }
.kw-scroll-num { font-weight: 800; font-size: .9rem; color: var(--green); font-variant-numeric: tabular-nums; transition: color .5s ease; }
.kw-scroll-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--green-100); color: var(--green); display: grid; place-items: center; transition: transform .55s cubic-bezier(.34,1.4,.5,1), background .5s ease, color .5s ease; }
.kw-scroll-item.is-active .kw-scroll-ico { background: var(--green); color: #fff; transform: scale(1.1); }
.kw-scroll-ico svg { width: 22px; height: 22px; }
.kw-scroll-item h3 { margin: 0; font-size: clamp(1.1rem, 2vw, 1.45rem); color: var(--navy); line-height: 1.25; }
@media (max-width: 800px) {
    .kw-scroll { grid-template-columns: 1fr; gap: 1.5rem; }
    .kw-scroll-media { order: -1; min-height: 260px; aspect-ratio: 4/3; }
    .kw-scroll-list { justify-content: flex-start; }
    .kw-scroll-item { opacity: 1; padding: 1rem 0; }
}

/* ============================================================
   Geschiedenis-pagina: animatieruimte + tijdlijn (met scroll-animatie)
   ============================================================ */
.hist-anim-wrap { padding-top: clamp(1.5rem, 3vw, 2.5rem); padding-bottom: 0; }
.hist-anim-title { text-align: center; font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 clamp(1rem, 2.5vw, 1.8rem); }
.hist-anim {
    aspect-ratio: 21/9; border-radius: var(--radius-lg); overflow: hidden;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-900) 100%);
    display: grid; place-items: center;
}
.hist-anim > * { max-width: 100%; }
.hist-anim iframe, .hist-anim video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Zelfstandige animatie (template of embed): vult het hele vak, geen dubbele kader. */
.hist-anim--live {
    aspect-ratio: auto; background: transparent; border: 0; border-radius: 0;
    overflow: visible; padding: 0; min-height: 0; display: block;
}
.hist-anim--live img { object-fit: contain; }
/* De ingebouwde MSA-animatie de volle breedte laten pakken (i.p.v. max 960px). */
.hist-anim--live .evo2 { --maxw: none; max-width: none; }
.hist-anim-ph { display: flex; flex-direction: column; align-items: center; gap: .8rem; color: rgba(255,255,255,.55); font-weight: 600; }
.hist-anim-ph svg { width: 54px; height: 54px; }

.hist-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.hist-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; background: var(--line); transform: translateX(-50%); border-radius: 3px; overflow: hidden; }
.hist-line-fill { position: absolute; left: 0; top: 0; width: 100%; height: 0; background: var(--green); border-radius: 3px; }
.hist-item {
    display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: center; padding: clamp(1.5rem, 4vw, 3rem) 0; position: relative;
}
.hist-item--alt .hist-media { order: 2; }
.hist-item--alt .hist-body  { order: 1; text-align: right; }
.hist-marker { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; }
.hist-marker span { position: relative; display: block; width: 18px; height: 18px; border-radius: 50%; background: #c2c8ce; box-shadow: 0 0 0 4px #fff, 0 0 0 5px #d8dde2; transition: box-shadow .35s ease, background .35s ease; }
/* Pulsering (verschijnt bij hover) */
.hist-marker span::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--green); opacity: 0; transition: opacity .3s ease; }
/* De groeiende lijn bereikt het bolletje → groen en pulseren (zoals het folder-stipje) */
.hist-item.line-reached .hist-marker span { background: var(--green); box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--green); }
.hist-item.line-reached .hist-marker span::after { opacity: 1; animation: msz-pulse 2s ease-out infinite; }
/* Hover over de mijlpaal → bolletje vast alvast groen tonen */
.hist-item:hover .hist-marker span { background: var(--green); box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--green); }
.hist-media { aspect-ratio: 4/3; border-radius: var(--radius-lg); overflow: hidden; background: var(--green-100); box-shadow: var(--shadow); display: grid; place-items: center; }
.hist-media img { width: 100%; height: 100%; object-fit: cover; }
/* Meerdere foto's: het carrousel het 4/3-vak laten vullen. */
.hist-media--gallery { display: block; }
.hist-media--gallery .msa-carousel { height: 100%; border-radius: 0; box-shadow: none; background: var(--green-100); }
.hist-media--gallery .msa-carousel-track,
.hist-media--gallery .msa-carousel-track > figure { height: 100%; }
.hist-media--gallery .msa-carousel-track img { height: 100%; min-height: 0; }
.hist-media-ph { color: var(--green); opacity: .45; }
.hist-media-ph svg { width: 64px; height: 64px; }
.hist-year { display: inline-block; font-weight: 800; color: var(--green); font-size: 1.05rem; letter-spacing: .04em; margin-bottom: .3rem; }
.hist-body h2 { font-size: clamp(1.3rem, 2.6vw, 1.9rem); margin: 0 0 .5rem; }
.hist-body p { color: var(--muted); margin: 0; }
.hist-item--alt .hist-body .rich-text { margin-left: auto; }
/* Scroll-animatie (alleen als JS actief is; anders gewoon zichtbaar) */
.anim-ready .hist-item { opacity: 0; transition: opacity .6s ease, transform .6s ease; }
.anim-ready .hist-item:not(.hist-item--alt) { transform: translate(-26px, 24px); }
.anim-ready .hist-item--alt { transform: translate(26px, 24px); }
.anim-ready .hist-item.is-in { opacity: 1; transform: none; }
@media (max-width: 820px) {
    .hist-line { left: 20px; }
    .hist-item { grid-template-columns: 1fr; gap: 1rem; padding-left: 48px; }
    .hist-item--alt .hist-media, .hist-item--alt .hist-body { order: 0; text-align: left; }
    .hist-item--alt .hist-body .rich-text { margin-left: 0; }
    .hist-marker { left: 20px; }
    .anim-ready .hist-item, .anim-ready .hist-item--alt { transform: translate(0, 24px); }
}

/* ============================================================
   Klantportaal (accountpagina)
   ============================================================ */
.account-wrap { max-width: 1040px; }
.alert { padding: .95rem 1.15rem; border-radius: var(--radius); margin-bottom: 1.8rem; font-size: .96rem; line-height: 1.5; }
.alert--success { background: var(--green-100); color: var(--green-600); border: 1px solid #bfe3d1; }
.alert--info { background: #eaf2fb; color: #1c4e80; border: 1px solid #cfe0f2; }
.alert--error { background: #fdecec; color: #a12b2b; border: 1px solid #f3c4c4; }

/* Auth-schermen (inloggen / aanvragen) */
.account-grid--auth { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
.form-card-eyebrow { display: inline-flex; align-items: center; gap: .45rem; font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--green); margin-bottom: .6rem; }
.form-card-eyebrow svg { width: 16px; height: 16px; }
.form-card--request { background: linear-gradient(180deg, #fff, var(--bg-soft)); }
.account-single { max-width: 460px; margin: 0 auto; }

/* Code-invoer */
.account-code { text-align: center; padding: clamp(1.6rem, 4vw, 2.6rem); }
.account-code-icon, .account-pending-icon, .account-code .account-code-icon { width: 60px; height: 60px; margin: 0 auto 1rem; border-radius: 16px; background: var(--green-100); color: var(--green); display: grid; place-items: center; }
.account-code-icon svg { width: 30px; height: 30px; }
.account-code h2 { margin: 0 0 .5rem; }
.account-code p { color: var(--muted); }
.account-code-form { margin-top: 1.4rem; }
.code-input {
    width: 100%; text-align: center; font-size: clamp(1.6rem, 6vw, 2.4rem); font-weight: 800;
    letter-spacing: .5em; text-indent: .5em; padding: .7rem .5rem; color: var(--navy);
    border: 2px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 1rem;
    font-variant-numeric: tabular-nums;
}
.code-input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(24,120,88,.12); }
.account-resend { margin-top: 1rem; }
.linklike { background: none; border: 0; color: var(--green-600); font-weight: 600; cursor: pointer; font-size: .92rem; text-decoration: underline; }
.linklike:hover { color: var(--green); }

/* Ingelogde weergave: zijbalk + hoofd */
.account-grid { display: grid; grid-template-columns: 300px 1fr; gap: 1.8rem; align-items: start; }
.account-side { text-align: center; position: sticky; top: 96px; }
.account-avatar { width: 76px; height: 76px; margin: 0 auto .9rem; border-radius: 50%; background: var(--navy); color: #fff; font-size: 2rem; font-weight: 800; display: grid; place-items: center; }
.account-side h3 { margin: 0 0 .2rem; }
.account-company { font-weight: 600; color: var(--navy); margin: 0 0 .1rem; }
.account-email { color: var(--muted); font-size: .9rem; margin: 0 0 1rem; word-break: break-all; }
.account-badge { display: inline-block; padding: .35rem .8rem; border-radius: 999px; font-size: .82rem; font-weight: 700; }
.account-badge--ok { background: var(--green-100); color: var(--green-600); }
.account-badge--wait { background: #fef3e0; color: #a3620b; }

.account-pending { text-align: center; padding: clamp(1.8rem, 5vw, 3rem); }
.account-pending-icon svg { width: 30px; height: 30px; }
.account-pending h2 { margin: 0 0 .5rem; }
.account-pending p { color: var(--muted); max-width: 440px; margin: 0 auto; }

.account-empty { text-align: center; padding: 2.2rem; }
.account-empty-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: var(--bg-soft); color: var(--muted); margin-bottom: .8rem; }
.account-empty-icon svg { width: 26px; height: 26px; }
.account-empty p { color: var(--muted); margin: 0; }

/* Documenten gegroepeerd per type */
.doc-group { margin-bottom: 1.8rem; }
.doc-group-title { display: flex; align-items: center; gap: .55rem; font-size: 1.05rem; color: var(--navy); margin: 0 0 .8rem; }
.doc-group-title svg { width: 20px; height: 20px; color: var(--green); }
.doc-group-count { margin-left: .1rem; font-size: .78rem; font-weight: 700; color: var(--muted); background: var(--bg-soft); border-radius: 999px; padding: .1rem .55rem; }
.doc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .7rem; }
.doc-item a { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.doc-item a:hover { border-color: var(--green); box-shadow: var(--shadow); transform: translateY(-1px); }
.doc-ext { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 11px; background: var(--green-100); color: var(--green-600); font-size: .68rem; font-weight: 800; letter-spacing: .02em; display: grid; place-items: center; }
.doc-body { display: flex; flex-direction: column; gap: .15rem; min-width: 0; flex: 1; }
.doc-title { font-weight: 700; color: var(--navy); }
.doc-meta { font-size: .84rem; color: var(--muted); }
.doc-desc { font-size: .88rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-download { flex: 0 0 auto; color: var(--green); opacity: .7; }
.doc-download svg { width: 20px; height: 20px; }
.doc-item a:hover .doc-download { opacity: 1; }

.account-profile { margin-top: 1.5rem; }
.account-profile > summary { cursor: pointer; font-weight: 700; color: var(--navy); list-style: none; }
.account-profile > summary::-webkit-details-marker { display: none; }
.account-profile > summary::before { content: '⚙ '; }

@media (max-width: 820px) {
    .account-grid, .account-grid--auth { grid-template-columns: 1fr; }
    .account-side { position: static; }
}

/* ============================================================
   Geschiedenis — interactieve folder (MSZ Oud)
   ============================================================ */
/* Klikbare voorkant in de tijdlijn */
.hist-media--folder { cursor: default; }
.hist-folder-trigger { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; position: relative; overflow: hidden; border-radius: inherit; }
.hist-folder-trigger img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.hist-folder-trigger:hover img, .hist-folder-trigger:focus-visible img { transform: scale(1.04); }
.hist-folder-badge { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: .45rem; background: rgba(24,120,88,.95); color: #fff; font-weight: 700; font-size: .9rem; padding: .5rem .9rem; border-radius: 999px; box-shadow: 0 6px 18px rgba(0,0,0,.25); white-space: nowrap; transition: transform .3s ease; }
.hist-folder-badge svg { width: 16px; height: 16px; }
.hist-folder-trigger:hover .hist-folder-badge, .hist-folder-trigger:focus-visible .hist-folder-badge { transform: translateX(-50%) translateY(-3px); }
/* "Klik hier"-tekstje onder de mijlpaaltekst */
.hist-folder-cta { display: inline-flex; align-items: center; gap: .55rem; margin-top: 1.1rem; padding: .2rem 0; background: none; border: 0; cursor: pointer; color: var(--green-600); font: inherit; font-weight: 800; font-size: 1rem; }
.hist-folder-cta svg { width: 18px; height: 18px; transition: transform .25s ease; }
.hist-folder-cta:hover { color: var(--green); }
.hist-folder-cta:hover svg { transform: translateX(5px); }
.hist-folder-cta-pulse { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--green); flex: 0 0 auto; }
.hist-folder-cta-pulse::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--green); animation: msz-pulse 2s ease-out infinite; }
.hist-item--alt .hist-folder-cta { flex-direction: row-reverse; }

/* Overlay + stage */
.msz-viewer { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; }
.msz-viewer[hidden] { display: none; }
.msz-overlay { position: absolute; inset: 0; background: rgba(10,22,38,.82); backdrop-filter: blur(3px); opacity: 0; transition: opacity .35s ease; }
.msz-viewer.is-open .msz-overlay { opacity: 1; }
.msz-stage { position: relative; width: 92vw; height: 88vh; display: grid; place-items: center; opacity: 0; transform: scale(.96); transition: opacity .35s ease, transform .35s ease; }
.msz-viewer.is-open .msz-stage { opacity: 1; transform: scale(1); }
.msz-book { position: relative; width: 100%; height: 100%; perspective: 1800px; }

/* Pagina's */
.msz-page {
    position: absolute; top: 50%; left: 50%;
    height: min(84vh, 940px); aspect-ratio: 210 / 297;
    transform: translate(-50%, -50%) rotateY(0deg);
    opacity: 0; visibility: hidden; pointer-events: none;
    transform-style: preserve-3d; backface-visibility: hidden; will-change: transform, opacity;
    transition: transform .66s cubic-bezier(.5,.05,.25,1), opacity .38s ease;
    border-radius: 8px;
    box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
.msz-page--wide { aspect-ratio: 1308 / 924; height: auto; width: min(92vw, 1240px); }
.msz-page img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 8px; user-select: none; }
.msz-page.is-current { opacity: 1; visibility: visible; pointer-events: auto; z-index: 2; transform: translate(-50%, -50%) rotateY(0deg); }
.msz-page.msz-under { z-index: 1; }

/* Boekje: ÉÉN blad slaat om (scharnier aan de spine-zijde), de rest blijft staan.
   backface-visibility verbergt het blad zodra het voorbij 90° is → de pagina eronder komt in beeld. */
.msz-leaf { z-index: 6; visibility: visible; opacity: 1; transform-origin: right center; will-change: transform; }
.msz-leaf::after { content: ''; position: absolute; inset: 0; border-radius: 8px; pointer-events: none;
    background: linear-gradient(to right, rgba(0,0,0,0) 55%, rgba(0,0,0,.22)); opacity: 0; transition: opacity .35s ease; }
.msz-turned { transform: translate(-50%, -50%) rotateY(180deg); box-shadow: -40px 30px 80px rgba(0,0,0,.5); }
.msz-turned::after { opacity: 1; }

/* De brede binnenspread (MSZ 4) slaat óók echt om als een blad, maar draait om
   zijn eigen middenas (niet om de verre rechterrand) — dat is een echte 3D-omslag
   zonder de zware, lelijke slinger die je bij een randscharnier van zo'n breed
   vlak krijgt. backface-visibility verbergt 'm voorbij 90°, zodat de achterpagina
   eronder in beeld komt. */
.msz-page--wide.msz-leaf { transform-origin: center center; }
.msz-page--wide.msz-turned { transform: translate(-50%, -50%) rotateY(180deg); box-shadow: -30px 30px 70px rgba(0,0,0,.4); }

/* Voorkant: de hele brievenbus (brass plaat) kantelt open, exacte uitsnede van de foto. */
.msz-page--cover { cursor: pointer; }
.msz-flap {
    position: absolute; left: 12%; top: 38.5%; width: 76%; height: 14%;
    overflow: hidden; border-radius: 4px; z-index: 4; backface-visibility: hidden;
    transform-origin: top center; transform: rotateX(0deg);
    transition: transform .6s cubic-bezier(.45,0,.3,1), box-shadow .6s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.msz-flap-img { position: absolute; width: 131.6%; height: 714.3%; left: -15.8%; top: -275%; max-width: none; display: block; }
.msz-page--cover.mailbox-open .msz-flap { transform: rotateX(-158deg); box-shadow: 0 -18px 34px rgba(0,0,0,.45); }
.msz-page--cover.mailbox-open { opacity: 0; transition: opacity .55s ease .3s; }

/* Gatefold — dicht = MSA 5 (Print + geel); klik op geel → de Print-helft van MSA 5
   komt náást het volledige MSA 6 te staan (breder). De hoogte is zo gekozen dat de
   open (bredere) stand altijd past. */
.msz-gatepage {
    --gh: min(74vh, calc(94vw / 2.12), 720px);
    aspect-ratio: auto; height: var(--gh); width: calc(var(--gh) * 1.414);
    transition: width .65s cubic-bezier(.5,.05,.25,1), opacity .38s ease;
}
.msz-gatepage.gate-open { width: calc(var(--gh) * 2.12); }
.msz-gate-closed, .msz-gate-openview { position: absolute; inset: 0; border-radius: 8px; overflow: hidden; }
/* Dicht: volledige MSA 5. */
.msz-gate-closed { z-index: 2; cursor: pointer; opacity: 1; transition: opacity .4s ease; }
.msz-gate-closed img { width: 100%; height: 100%; object-fit: cover; display: block; }
.msz-gate-closed::after { content: ''; position: absolute; top: 0; right: 0; width: 50%; height: 100%; background: rgba(255,255,255,0); transition: background .2s ease; }
.msz-gate-closed:hover::after { background: rgba(255,255,255,.1); }
.msz-gatepage.gate-open .msz-gate-closed { opacity: 0; pointer-events: none; }
/* Open: Print-helft (links) + heel MSA 6 (rechts) naast elkaar. */
.msz-gate-openview { z-index: 1; display: flex; opacity: 0; transition: opacity .5s ease .12s; }
.msz-gatepage.gate-open .msz-gate-openview { opacity: 1; }
.msz-gate-half { flex: 1; position: relative; overflow: hidden; }
.msz-gate-half img { position: absolute; left: 0; top: 0; width: 200%; max-width: none; height: 100%; display: block; }
.msz-gate-full { flex: 2; position: relative; overflow: hidden; box-shadow: -4px 0 14px rgba(0,0,0,.18); }
.msz-gate-full img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Mobiele MSA 6-pagina bestaat alleen op smalle schermen (zie media-query hieronder). */
.msz-only-mobile { display: none; }
@media (max-width: 900px) {
    /* Op telefoon/smal scherm geen uitklap-animatie: MSA 5 en MSA 6 gewoon als losse pagina's. */
    .msz-only-mobile { display: block; }
    .msz-gatepage, .msz-gatepage.gate-open {
        width: min(92vw, 680px) !important; height: auto !important; aspect-ratio: 1.414 / 1;
    }
    .msz-gate-openview { display: none !important; }
    .msz-gatepage .msz-gate-closed { opacity: 1 !important; pointer-events: auto; cursor: default; }
    .msz-gate-closed::after { display: none; }
}

/* Bolletjes (hotspots) */
.msz-dot { position: absolute; transform: translate(-50%, -50%); width: 26px; height: 26px; border: 0; background: none; padding: 0; cursor: pointer; z-index: 5; }
.msz-dot-core { position: absolute; inset: 0; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(24,120,88,.35), 0 2px 8px rgba(0,0,0,.35); }
.msz-dot-core::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--green); animation: msz-pulse 2s ease-out infinite; }
@keyframes msz-pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(2.6); opacity: 0; } }
.msz-dot--mailbox { width: 30px; height: 30px; }
.msz-tip {
    position: absolute; background: #fff; color: var(--navy); font-size: .85rem; font-weight: 600; line-height: 1.35;
    padding: .55rem .8rem; border-radius: 10px; width: max-content; max-width: 220px; text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,.3); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; z-index: 6;
}
.msz-tip::after { content: ''; position: absolute; border: 7px solid transparent; }
/* Tekstwolkje naar rechts (bolletje staat links) */
.msz-dot--right .msz-tip { left: calc(100% + 14px); top: 50%; transform: translateY(-50%) translateX(-6px); }
.msz-dot--right .msz-tip::after { right: 100%; top: 50%; transform: translateY(-50%); border-right-color: #fff; }
.msz-dot--right:hover .msz-tip, .msz-dot--right:focus-visible .msz-tip { opacity: 1; transform: translateY(-50%) translateX(0); }
/* Tekstwolkje naar links (bolletje staat rechts) */
.msz-dot--left .msz-tip { right: calc(100% + 14px); top: 50%; transform: translateY(-50%) translateX(6px); }
.msz-dot--left .msz-tip::after { left: 100%; top: 50%; transform: translateY(-50%); border-left-color: #fff; }
.msz-dot--left:hover .msz-tip, .msz-dot--left:focus-visible .msz-tip { opacity: 1; transform: translateY(-50%) translateX(0); }

/* ===== Blog-galerij: breekt uit de smalle leeskolom en vult het scherm met
   uitgevulde rijen van gelijke hoogte (geen witruimte-gaten, geen lazy-load-sprongen) ===== */
.post-content .wp-block-gallery.has-nested-images,
.rich-text .wp-block-gallery.has-nested-images {
    position: relative; left: 50%; transform: translateX(-50%);
    width: min(94vw, 1400px);
    display: flex; flex-wrap: wrap; gap: 10px; margin: 2rem 0;
}
/* JS ('data-msa-justified') zet per foto de exacte breedte/hoogte zodat elke rij
   op natuurlijke verhouding precies vol loopt — niets bijgesneden. De CSS hieronder
   is de terugval (gelijke-hoogte rijen) als JS uit staat. */
.post-content .wp-block-gallery.has-nested-images figure.wp-block-image,
.rich-text .wp-block-gallery.has-nested-images figure.wp-block-image {
    margin: 0 !important; flex: 1 1 auto; height: 240px; overflow: hidden;
    border-radius: 8px; box-shadow: 0 4px 14px rgba(16,42,67,.08); line-height: 0;
}
.post-content .wp-block-gallery.has-nested-images[data-msa-justified] figure.wp-block-image,
.rich-text .wp-block-gallery.has-nested-images[data-msa-justified] figure.wp-block-image { flex: 0 0 auto; }
.post-content .wp-block-gallery.has-nested-images figure.wp-block-image img,
.rich-text .wp-block-gallery.has-nested-images figure.wp-block-image img {
    width: 100% !important; height: 100% !important; aspect-ratio: auto !important;
    object-fit: cover !important; display: block; transition: transform .3s ease;
}
.post-content .wp-block-gallery.has-nested-images figure.wp-block-image:hover img,
.rich-text .wp-block-gallery.has-nested-images figure.wp-block-image:hover img { transform: scale(1.04); }
@media (max-width: 460px) {
    .post-content .wp-block-gallery.has-nested-images, .rich-text .wp-block-gallery.has-nested-images { width: 100%; left: 0; transform: none; }
}

/* ===== Foto-lightbox voor galerijen in blogberichten ===== */
body.msa-lb-open { overflow: hidden; }
.msa-lb {
    position: fixed; inset: 0; z-index: 9999; display: none;
    align-items: center; justify-content: center;
    background: rgba(8, 12, 16, .92); opacity: 0; transition: opacity .25s ease;
}
.msa-lb.is-open { display: flex; opacity: 1; }
.msa-lb-stage { margin: 0; max-width: 92vw; max-height: 92vh; display: flex; flex-direction: column; align-items: center; }
.msa-lb-img {
    max-width: 92vw; max-height: 86vh; width: auto; height: auto;
    border-radius: 6px; box-shadow: 0 24px 80px rgba(0,0,0,.6); background: #111; object-fit: contain;
}
.msa-lb-count { margin-top: .9rem; color: #dfe4e8; font-size: .9rem; letter-spacing: .02em; }
.msa-lb-close {
    position: absolute; top: 18px; right: 22px; width: 46px; height: 46px; border: 0; cursor: pointer;
    background: rgba(255,255,255,.12); color: #fff; border-radius: 50%; font-size: 1.9rem; line-height: 1;
    display: grid; place-items: center; transition: background .2s ease;
}
.msa-lb-close:hover { background: rgba(255,255,255,.24); }
.msa-lb-nav {
    position: absolute; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border: 0; cursor: pointer;
    background: rgba(255,255,255,.12); color: #fff; border-radius: 50%; display: grid; place-items: center;
    transition: background .2s ease;
}
.msa-lb-nav svg { width: 26px; height: 26px; }
.msa-lb-nav:hover { background: rgba(255,255,255,.24); }
.msa-lb-prev { left: 20px; }
.msa-lb-next { right: 20px; }
@media (max-width: 600px) {
    .msa-lb-prev { left: 8px; } .msa-lb-next { right: 8px; }
    .msa-lb-nav { width: 44px; height: 44px; }
}

/* Navigatie / sluiten / hint */
.msz-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--navy); display: grid; place-items: center; cursor: pointer; z-index: 10; box-shadow: 0 6px 20px rgba(0,0,0,.3); transition: background .2s ease, transform .2s ease; }
.msz-nav:hover { background: #fff; }
.msz-nav svg { width: 26px; height: 26px; }
.msz-fwd { right: 2vw; }  /* voorkant → naar rechts open */
.msz-back { left: 2vw; }
.msz-nav[disabled] { opacity: 0; pointer-events: none; }
.msz-close { position: absolute; top: -6px; right: 0; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--navy); font-size: 1.6rem; line-height: 1; cursor: pointer; z-index: 12; box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.msz-close:hover { background: #fff; }
.msz-hint { position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%); color: #fff; font-size: .9rem; font-weight: 600; background: rgba(0,0,0,.35); padding: .4rem .9rem; border-radius: 999px; opacity: .9; }
body.msz-open { overflow: hidden; }
@media (max-width: 700px) {
    .msz-page { height: auto; width: 86vw; }
    .msz-page--wide { width: 92vw; }
    .msz-nav { width: 42px; height: 42px; }
    .msz-fwd { right: 1vw; } .msz-back { left: 1vw; }
    .msz-tip { max-width: 160px; }
}

/* Klikbare kaart (Beleid & voorwaarden-overzicht) */
.card--link { display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease; }
.card--link:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(15,33,56,.12); text-decoration: none; }
.card--link h3 { color: var(--navy); }
.card--link p { color: var(--text, #4a5a6a); }
.card--link .card-more { margin-top: auto; padding-top: .8rem; display: inline-flex; align-items: center; gap: .35rem; color: var(--green-600); font-weight: 700; }
.card--link .card-more svg { width: 1em; height: 1em; }

/* "Lees meer" op kaarten (o.a. Certificeringen) */
.cert-text .msa-more-teaser, .cert-text .msa-more-full { margin: 0 0 .6rem; }
.msa-more-btn {
    display: inline-flex; align-items: center; gap: .3rem;
    background: none; border: 0; padding: 0; cursor: pointer;
    color: var(--green, #187858); font-weight: 700; font-size: inherit;
}
.msa-more-btn:hover { text-decoration: underline; }
.msa-more-btn:focus-visible { outline: 2px solid var(--green, #187858); outline-offset: 3px; border-radius: 3px; }
