/* Huisstijl Fuse Solutions. De lettertypen staan op de eigen server en niet bij Google Fonts:
   wie een QR-code scant, stuurt zo geen gegevens naar Google (AVG). Alleen de Latijnse subset;
   overige tekens vallen terug op het systeemlettertype. */

@font-face {
    font-family: "Mulish";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("fonts/mulish-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Ubuntu";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("fonts/ubuntu-500-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Ubuntu";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("fonts/ubuntu-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+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --fuse-blue: #148adc;
    --fuse-dark: #002d36;
    --fuse-green: #4f9140;
    --fuse-green-light: #e8f2e3;
    --fuse-teal: #4c747b;
    --fuse-teal-light: #e4eef0;
    --fuse-border: #d5eaf9;
    --fuse-blue-light: #eaf6fe;
    --fuse-red: #e20810;
    --gutter: 1rem;
    --font-heading: "Ubuntu", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-body: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-code: ui-monospace, "Cascadia Mono", Consolas, monospace;
    color-scheme: light;
}

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

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    color: var(--fuse-dark);
    font-family: var(--font-body);
    line-height: 1.5;
}

h1, h2 {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.15;
}

h1 {
    font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.25rem);
}

/* FocusOnNavigate zet de focus op de h1 (voor schermlezers); geen kader daarvoor. */
h1:focus {
    outline: none;
}

h2 {
    font-size: 1.125rem;
}

p, ol, ul, dl, dd {
    margin: 0;
}

a {
    color: var(--fuse-dark);
}

a:hover {
    color: var(--fuse-blue);
}

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

/* Kop, inhoud en voet */

@media (min-width: 40rem) {
    :root {
        --gutter: 1.5rem;
    }
}

/* Smal voor lees- en materiaalpagina's, breed voor de kop, de voet en de startpagina. */
.site-container,
.site-container-wide {
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.site-container {
    max-width: 46rem;
}

.site-container-wide {
    max-width: 70rem;
}

.site-header {
    border-bottom: 1px solid var(--fuse-border);
}

.site-header .site-container-wide {
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
}

.site-mark {
    flex: none;
    width: 2.375rem;
    height: 2.375rem;
}

.site-wordmark {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    line-height: 1;
}

.site-wordmark-check {
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--fuse-green);
}

.site-wordmark-name {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--fuse-dark);
}

.site-main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

.site-footer {
    padding: 1.5rem 0 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    background: var(--fuse-dark);
    color: #ffffff;
    font-size: 0.875rem;
}

.site-footer-brand {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    color: #ffffff;
    text-decoration: none;
}

.site-footer-brand:hover {
    color: var(--fuse-green-light);
}

/* Het officiële logo voor donkere achtergronden; niet herkleuren. */
.site-footer-brand img {
    width: auto;
    height: 1.75rem;
}

/* Algemeen */

.mi-page {
    padding-top: 1.5rem;
    padding-bottom: 2rem;
}

.mi-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 3.125rem;
    padding: 0 1.5rem;
    border: 0;
    border-radius: 9999px;
    background: var(--fuse-dark);
    color: #ffffff;
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.mi-button:hover {
    background: var(--fuse-teal);
    color: #ffffff;
}

.mi-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mi-stack-sm {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.mi-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 36rem;
}

.mi-eyebrow {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--fuse-teal);
}

.mi-muted {
    color: var(--fuse-teal);
}

.mi-code {
    font-family: var(--font-code);
    font-size: 0.875rem;
    overflow-wrap: anywhere;
}

.mi-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* Foto's: een strook die op de telefoon doorloopt tot de rand van het scherm */

.mi-photos {
    display: flex;
    gap: 0.625rem;
    margin: 0 calc(-1 * var(--gutter));
    padding: 0 var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
}

.mi-photos a {
    position: relative;
    flex: 0 0 min(15rem, 70%);
    border-radius: 1rem;
    scroll-snap-align: start;
    cursor: zoom-in;
}

.mi-photos a:focus-visible {
    outline: 3px solid var(--fuse-green);
    outline-offset: 2px;
}

/* Vergroot-icoon in de hoek: laat zien dat de foto opengaat. */
.mi-photos a::after {
    content: "";
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgb(0 45 54 / 0.6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center / 1rem no-repeat;
}

.mi-photos img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 1rem;
    background: var(--fuse-teal-light);
    transition: filter 0.2s;
}

.mi-photos a:hover img {
    filter: brightness(0.92);
}

/* Fotoviewer (wwwroot/js/fotoviewer.js): schermvullend, donker, met miniaturen eronder. */

html:has(.mi-viewer[open]) {
    overflow: hidden;
}

.mi-viewer {
    width: 100%;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: #00151a;
    color: #ffffff;
}

/* Bij openen krijgt de dialoog zelf de focus (fotoviewer.js), voor de pijltjestoetsen. */
.mi-viewer:focus {
    outline: none;
}

.mi-viewer[open] {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
}

.mi-viewer::backdrop {
    background: rgb(0 20 24 / 0.6);
}

.mi-viewer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem var(--gutter);
}

.mi-viewer-count {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
}

.mi-viewer-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgb(255 255 255 / 0.12);
    color: #ffffff;
    cursor: pointer;
    transition: background 0.15s;
}

.mi-viewer-button:hover {
    background: rgb(255 255 255 / 0.24);
}

.mi-viewer-button:focus-visible,
.mi-viewer-thumb:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.mi-viewer-button svg {
    width: 1.375rem;
    height: 1.375rem;
}

/* Flex en geen grid: alleen zo werkt max-height: 100% op de foto, en past hij altijd in beeld. */
.mi-viewer-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 0 var(--gutter);
    overflow: hidden;
    touch-action: pan-y;
}

.mi-viewer-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0.5rem;
    user-select: none;
    transition: opacity 0.2s;
}

.mi-viewer-img.is-loading {
    opacity: 0;
}

/* Donker met een lichte rand: zichtbaar op de achtergrond én boven een lichte foto. */
.mi-viewer-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: 1px solid rgb(255 255 255 / 0.25);
    background: rgb(0 21 26 / 0.55);
    backdrop-filter: blur(6px);
}

.mi-viewer-nav:hover {
    background: rgb(0 21 26 / 0.8);
}

.mi-viewer-nav.is-prev {
    left: var(--gutter);
}

.mi-viewer-nav.is-next {
    right: var(--gutter);
}

.mi-viewer-thumbs {
    display: flex;
    justify-content: safe center;
    gap: 0.5rem;
    padding: 0.75rem var(--gutter) max(1rem, env(safe-area-inset-bottom));
    overflow-x: auto;
}

.mi-viewer-thumb {
    flex: none;
    width: 3.5rem;
    height: 3.5rem;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 0.625rem;
    overflow: hidden;
    background: rgb(255 255 255 / 0.08);
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.15s, border-color 0.15s;
}

.mi-viewer-thumb:hover {
    opacity: 0.85;
}

.mi-viewer-thumb[aria-current] {
    border-color: var(--fuse-green);
    opacity: 1;
}

.mi-viewer-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mi-viewer.is-single .mi-viewer-nav,
.mi-viewer.is-single .mi-viewer-thumbs {
    display: none;
}

@media (min-width: 40rem) {
    .mi-viewer-stage {
        padding: 0 5.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mi-viewer-img,
    .mi-viewer-button,
    .mi-viewer-thumb,
    .mi-photos img {
        transition: none;
    }
}

/* Herkomst (track & trace) */

.mi-route {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1.125rem 1.125rem 1.25rem;
    border-radius: 1.25rem;
    background: var(--fuse-green-light);
}

.mi-route-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mi-route-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
}

.mi-route-summary svg {
    flex: none;
    width: 1.375rem;
    height: 1.375rem;
    color: var(--fuse-green);
}

.mi-route-meta {
    font-size: 0.875rem;
}

.mi-steps {
    margin-top: 1rem;
    padding: 0;
    list-style: none;
}

.mi-step {
    position: relative;
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr);
    column-gap: 0.625rem;
    padding-bottom: 1.125rem;
}

.mi-step:last-child {
    padding-bottom: 0;
}

/* De stippellijn naar de volgende plek */
.mi-step:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 2.25rem;
    bottom: 0.25rem;
    left: calc(1rem - 1px);
    border-left: 2px dashed var(--fuse-green);
}

.mi-step-pin {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #ffffff;
}

.mi-step-pin svg {
    width: 1.125rem;
    height: 1.125rem;
}

.mi-step.is-current .mi-step-pin {
    background: var(--fuse-green);
    color: #ffffff;
}

.mi-step-place {
    padding-top: 0.25rem;
    font-weight: 800;
}

.mi-step-period {
    margin-top: 0.125rem;
    font-size: 0.8125rem;
    font-weight: 700;
}

/* Samenstelling */

.mi-composition {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    padding: 0;
    list-style: none;
}

.mi-composition-row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
}

.mi-bar {
    height: 0.625rem;
    margin-top: 0.375rem;
    overflow: hidden;
    border-radius: 9999px;
    background: var(--fuse-teal-light);
}

.mi-bar span {
    display: block;
    height: 100%;
    background: var(--fuse-green);
}

/* Eigenschappen */

.mi-tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.mi-tile {
    min-width: 0;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--fuse-border);
    border-radius: 0.875rem;
}

.mi-tile.is-wide {
    grid-column: 1 / -1;
}

.mi-tile dt {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--fuse-teal);
}

.mi-tile dd {
    font-weight: 800;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.mi-tile.is-wide dd {
    font-weight: 400;
}

@media (min-width: 40rem) {
    .mi-tiles {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Startpagina */

.home-hero-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.home-intro {
    flex: 1 1 26rem;
    min-width: 0;
    max-width: 34rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.home-eyebrow {
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--fuse-teal);
}

.home-intro h1 {
    font-size: clamp(2.25rem, 1.5rem + 2.6vw, 3.5rem);
    line-height: 1.08;
    letter-spacing: -0.01em;
}

.home-lead {
    font-size: 1.125rem;
}

.home-search {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.375rem;
}

.home-search label {
    font-size: 0.875rem;
    font-weight: 800;
}

.home-search-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.home-search input {
    flex: 1 1 15rem;
    min-width: 0;
    height: 3.125rem;
    padding: 0 1.125rem;
    border: 1px solid var(--fuse-teal);
    border-radius: 9999px;
    background: #ffffff;
    color: var(--fuse-dark);
    font: inherit;
    font-size: 0.9375rem;
}

.home-search input[aria-invalid="true"] {
    border: 2px solid var(--fuse-red);
}

.home-search-error {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--fuse-red);
}

/* De kringloop: het beeldmerk groot, met de vier stappen eromheen. */
.home-cycle {
    position: relative;
    flex: 0 1 25rem;
    min-width: 0;
    max-width: 25rem;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
}

.home-cycle svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.home-cycle ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-cycle li {
    position: absolute;
    transform: translate(-50%, -50%);
    padding: 0.4375rem 0.875rem;
    border-radius: 9999px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 45, 54, 0.12);
    font-size: 0.875rem;
    font-weight: 800;
    white-space: nowrap;
}

.home-cycle li:nth-child(1) {
    top: 15.6%;
    left: 50%;
}

.home-cycle li:nth-child(2) {
    top: 50%;
    left: 84.4%;
}

.home-cycle li:nth-child(3) {
    top: 84.4%;
    left: 50%;
}

.home-cycle li:nth-child(4) {
    top: 50%;
    left: 15.6%;
}

.home-audiences {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr));
    gap: 1.25rem;
    padding-bottom: 4.5rem;
}

.home-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1.75rem;
    border-radius: 1.5rem;
    background: var(--fuse-green-light);
}

.home-card.is-blue {
    background: var(--fuse-blue-light);
}

.home-card h2 {
    font-size: 1.5rem;
    line-height: 1.2;
}

.home-card .mi-button {
    margin-top: 0.375rem;
}

.home-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
    background: #ffffff;
}

.home-card-icon svg {
    width: 1.75rem;
    height: 1.75rem;
}

/* Vult de rest van een hoog scherm, zodat er geen witte strook boven de (donkere) voet komt. */
.home-figures {
    flex-grow: 1;
    background: var(--fuse-dark);
    color: #ffffff;
}

.home-figures-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem 4.5rem;
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

.home-figure {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.home-figure strong {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1;
}

.home-figure span {
    color: var(--fuse-green-light);
}

@media (min-width: 40rem) {
    .home-hero-row {
        padding-top: 4rem;
        padding-bottom: 3.5rem;
    }

    .home-card {
        padding: 2rem;
    }
}
