/* ==========================================================
   BESLUITKLAAR.AI
   STYLES V7 (AZURE STATIC WEB APPS)

   Huisstijl volgens claude_huisstijl_spec.js (v3, zwart/wit/groen):
   - Groen       #259F36  accenten, sectielijnen
   - Lichtgroen  #D1FAE5  vlakken
   - Bijna-zwart #111827  koppen en primaire tekst
   - Donkergrijs #374151  lopende tekst
   - Wit         #FFFFFF  achtergrond
   Lettertypen: Montserrat (koppen), Calibri (tekst).
   Calibri is niet vrij te gebruiken op het web; Carlito
   (open licentie, gelijke maatvoering) wordt zelf gehost als
   terugval. Montserrat wordt zelf gehost zodra het bestand in
   /fonts staat; tot die tijd valt de kop terug op een lokaal
   geinstalleerde Montserrat, of anders Segoe UI/Arial.
========================================================== */


/* 01. LETTERTYPEN ---------------------------------------- */

@font-face {
    font-family: "Carlito";
    src: url("/fonts/carlito-regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Carlito";
    src: url("/fonts/carlito-bold.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Montserrat: @font-face volgt zodra montserrat.woff2 in /fonts staat. */


/* 02. ONTWERPTOKENS -------------------------------------- */

:root {
    --green: #1d7f2b;          /* donkerdere variant van huisstijlgroen #259F36 */
    --green-dark: #166522;
    --green-on-dark: #3ec455;  /* groen voor tekst en lijnen op antraciet */
    --anthracite: #23272b;
    --green-light: #d1fae5;
    --black: #111827;
    --gray: #374151;
    --gray-soft: #6b7280;
    --white: #ffffff;
    --tint: #f6faf7;
    --line: #e5e7eb;

    --font-heading: "Montserrat", "Segoe UI", Arial, sans-serif;
    --font-body: Calibri, "Carlito", "Segoe UI", Arial, sans-serif;

    --width: 1200px;
    --width-narrow: 820px;
    --header-height: 76px;
}


/* 03. BASIS ---------------------------------------------- */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
    margin: 0;
    color: var(--gray);
    background: var(--white);
    font-family: var(--font-body);
    font-size: 19px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    margin: 0;
    color: var(--black);
    font-family: var(--font-heading);
    font-weight: 700;
    text-wrap: balance;
}

h1 {
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(30px, 3.6vw, 44px);
    line-height: 1.15;
    letter-spacing: -0.015em;
}

h3 {
    font-size: 22px;
    line-height: 1.3;
}

p {
    margin: 0 0 1.1em;
    max-width: 70ch;
}

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

a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--green);
    outline-offset: 3px;
}

.container {
    width: min(100% - 48px, var(--width));
    margin-inline: auto;
}

.container.narrow > :not(.section-rule) {
    max-width: var(--width-narrow);
}

.lead {
    color: var(--black);
    font-size: 22px;
    line-height: 1.5;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 2000;
    padding: 12px 18px;
    color: var(--white);
    font-weight: 700;
    background: var(--black);
}

.skip-link:focus {
    top: 16px;
}

#inhoud:focus {
    outline: none;
}


/* 04. KNOPPEN -------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 12px 26px;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid var(--green);
    transition: background-color 160ms ease, color 160ms ease;
}

.btn-primary {
    color: var(--white);
    background: var(--green);
}

.btn-primary:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
}

.btn-secondary {
    color: var(--black);
    background: transparent;
}

.btn-secondary:hover {
    background: var(--green-light);
}

.hero .btn-secondary {
    color: var(--white);
    border-color: var(--green-on-dark);
}

.hero .btn-secondary:hover {
    color: var(--anthracite);
    background: var(--green-on-dark);
}

.btn-small {
    min-height: 42px;
    padding: 8px 18px;
    font-size: 15px;
}


/* 05. HEADER --------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 40px;
    min-height: var(--header-height);
}

.logo {
    color: var(--black);
    font-family: var(--font-heading);
    font-size: 29px;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.logo-accent {
    color: var(--green);
}

.main-nav {
    display: flex;
    gap: 28px;
    margin-left: auto;
}

.main-nav a {
    color: var(--black);
    font-size: 17px;
    text-decoration: none;
    padding-block: 6px;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover {
    border-bottom-color: var(--green);
}


/* 06. HERO ----------------------------------------------- */

.hero {
    padding: 120px 0 110px;
    color: var(--white);
    background: var(--anthracite);
}

.hero h1 {
    color: var(--white);
}

.hero-kicker {
    margin-bottom: 22px;
    color: var(--green-on-dark);
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 600;
}

.hero h1 {
    max-width: 18ch;
}

.nowrap {
    white-space: nowrap;
}

.hero-lead {
    max-width: 62ch;
    margin: 32px 0 40px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 23px;
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}


/* 07. SECTIES EN GROENE SCHEIDINGSLIJN ------------------- */

.section {
    padding: 96px 0;
    border-top: 2px solid var(--green);
}

.section-tint {
    background: var(--tint);
}

/* De groene lijn ligt op de grens waar de achtergrondkleur wisselt. */

.section h2 {
    margin-bottom: 28px;
}

.section-intro {
    max-width: var(--width-narrow);
    margin-bottom: 56px;
}


/* 08. WERKWIJZE (UITKOMSTEN) ----------------------------- */

.outcomes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 56px 64px;
}

.outcome h3 {
    margin-bottom: 14px;
}

.outcome p {
    margin: 0;
}


/* 09. PRODUCTEN ------------------------------------------ */

.products {
    display: grid;
    gap: 0;
}

.product {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 2fr;
    gap: 40px;
    padding: 36px 0;
    border-top: 1px solid var(--line);
}

.product:last-child {
    border-bottom: 1px solid var(--line);
}

.product p {
    margin: 0;
}

.tag {
    display: inline-block;
    margin-top: 10px;
    padding: 3px 10px;
    color: var(--green-dark);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    background: var(--green-light);
    vertical-align: middle;
}

.product-upcoming h3 {
    color: var(--gray);
}


/* 10. WAAROM --------------------------------------------- */

.reasons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.reason h3 {
    margin-bottom: 12px;
    font-size: 20px;
}

.reason p {
    margin: 0;
    font-size: 18px;
}


/* 11. STATEMENT ------------------------------------------ */

.statement {
    margin: 48px 0 0;
    padding: 0 0 0 28px;
    color: var(--black);
    font-family: var(--font-heading);
    font-size: clamp(24px, 2.6vw, 32px);
    font-weight: 600;
    line-height: 1.3;
    border-left: 4px solid var(--green);
}


/* 12. UITKLAPLIJSTEN (VEELGESTELDE VRAGEN EN KADERS) -----
   Dicht: grijze lijn en gedempte tekst.
   Open: groene lijnen erboven en eronder en zwarte tekst. */

.accordion {
    margin-top: 40px;
}

.accordion details {
    border-top: 2px solid var(--line);
}

.accordion details:last-of-type {
    border-bottom: 2px solid var(--line);
}

.accordion details[open] {
    border-top-color: var(--green);
    border-bottom: 2px solid var(--green);
}

.accordion details[open] + details {
    border-top-color: transparent;
}

.accordion summary {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 0;
    color: var(--gray-soft);
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
    cursor: pointer;
    list-style: none;
    transition: color 160ms ease;
}

.accordion summary > span:first-child {
    flex: 1;
}

.accordion summary:hover,
.accordion details[open] summary {
    color: var(--black);
}

.accordion summary::-webkit-details-marker {
    display: none;
}

.accordion summary::after {
    content: "+";
    flex-shrink: 0;
    width: 24px;
    margin-left: auto;
    color: var(--gray-soft);
    font-size: 28px;
    font-weight: 400;
    line-height: 1;
    text-align: center;
}

.accordion details[open] summary::after {
    content: "\2212";
    color: var(--green);
}

.accordion details p {
    margin: 0 0 30px;
    color: var(--black);
    font-size: 20px;
    line-height: 1.6;
}

.role {
    flex-shrink: 0;
    padding: 3px 10px;
    color: var(--gray);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    background: var(--line);
}

.role-built {
    color: var(--green-dark);
    background: var(--green-light);
}

.disclaimer {
    margin-top: 32px;
    color: var(--gray-soft);
    font-size: 16px;
}


/* 13. CONTACT -------------------------------------------- */

.section-dark {
    color: rgba(255, 255, 255, 0.85);
    background: var(--anthracite);
    border-top-color: var(--green-on-dark);
}

.section-dark h2,
.section-dark .lead {
    color: var(--white);
}

.section-dark a {
    color: var(--green-on-dark);
}

.section-dark .btn-primary {
    color: var(--white);
    background: var(--green);
    border-color: var(--green);
}

.section-dark .btn-primary:hover {
    background: var(--green-on-dark);
    border-color: var(--green-on-dark);
    color: var(--anthracite);
}

.section-dark .accordion details {
    border-top-color: rgba(255, 255, 255, 0.16);
}

.section-dark .accordion details:last-of-type {
    border-bottom-color: rgba(255, 255, 255, 0.16);
}

.section-dark .accordion details[open] {
    border-top-color: var(--green-on-dark);
    border-bottom-color: var(--green-on-dark);
}

.section-dark .accordion details[open] + details {
    border-top-color: transparent;
}

.section-dark .accordion summary,
.section-dark .accordion summary::after {
    color: rgba(255, 255, 255, 0.6);
}

.section-dark .accordion summary:hover,
.section-dark .accordion details[open] summary {
    color: var(--white);
}

.section-dark .accordion details[open] summary::after {
    color: var(--green-on-dark);
}

.section-dark .accordion details p {
    color: rgba(255, 255, 255, 0.9);
}

.contact-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin: 28px 0 0;
    font-size: 18px;
}

.contact-details a {
    color: var(--green-on-dark);
}


/* 14. FOOTER --------------------------------------------- */

.site-footer {
    padding: 64px 0 36px;
    color: var(--gray);
    background: var(--white);
    border-top: 2px solid var(--green);
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 32px;
    padding-bottom: 36px;
}

.footer-tagline {
    margin: 10px 0 0;
    font-size: 17px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
}

.footer-nav a {
    color: var(--black);
    font-size: 17px;
    text-decoration: none;
}

.footer-nav a:hover {
    color: var(--green-dark);
    text-decoration: underline;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding-top: 24px;
    color: var(--gray-soft);
    font-size: 15px;
    border-top: 1px solid var(--line);
}


/* 15. TERUG-NAAR-BOVENKNOP ------------------------------- */

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 900;
    width: 48px;
    height: 48px;
    color: var(--white);
    font-size: 22px;
    background: var(--green);
    border: 0;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 180ms ease, visibility 180ms ease;
}

.back-to-top-visible {
    opacity: 1;
    visibility: visible;
}


/* 16. TABLET EN MOBIEL ----------------------------------- */

@media (max-width: 1080px) {
    .main-nav {
        display: none;
    }

    .header-inner .btn-small {
        margin-left: auto;
    }

    .reasons {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 720px) {
    body {
        font-size: 18px;
    }

    .hero {
        padding: 72px 0 64px;
    }

    .hero-lead,
    .lead {
        font-size: 20px;
    }

    .section {
        padding: 64px 0;
    }

    .outcomes,
    .reasons {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .header-inner {
        gap: 16px;
    }

    .logo {
        font-size: 25px;
    }

    .btn-small {
        padding: 8px 14px;
        font-size: 14px;
    }

    .accordion summary {
        font-size: 18px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .accordion details p {
        font-size: 18px;
    }
}


/* 18. VERDIEPINGSDOCUMENT IN DE HERO -------------------- */

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    align-items: center;
    gap: 64px;
}

.hero-doc {
    margin: 0;
    justify-self: center;
    max-width: 300px;
    text-align: center;
}

.doc-cover {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    background: none;
    border: 0;
    cursor: zoom-in;
    transform: rotate(-3deg);
    transition: transform 220ms ease;
}

.doc-cover img {
    display: block;
    width: 100%;
    height: auto;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.doc-cover:hover,
.doc-cover:focus-visible {
    transform: rotate(0deg) scale(1.03);
}

.doc-cover-hint {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 6px 12px;
    color: var(--white);
    font-size: 15px;
    font-weight: 700;
    background: var(--green);
    opacity: 0;
    transition: opacity 180ms ease;
}

.doc-cover:hover .doc-cover-hint,
.doc-cover:focus-visible .doc-cover-hint {
    opacity: 1;
}

.hero-doc figcaption {
    display: grid;
    gap: 2px;
    margin-top: 28px;
}

.doc-label {
    color: var(--green-on-dark);
    font-size: 15px;
    font-weight: 700;
}

.doc-title {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 600;
}

.doc-download {
    margin-top: 8px;
    color: var(--green-on-dark);
    font-size: 17px;
}

.doc-links {
    margin-top: 20px;
}

.link-button {
    padding: 0;
    color: var(--green-dark);
    font: inherit;
    text-decoration: underline;
    background: none;
    border: 0;
    cursor: pointer;
}


/* 19. BLADERVIEWER --------------------------------------- */

.viewer {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    padding: 0;
    color: var(--white);
    background: #14171a;
    border: 0;
}

.viewer::backdrop {
    background: rgba(0, 0, 0, 0.6);
}

.viewer[open] {
    display: flex;
    flex-direction: column;
}

.viewer-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 14px 24px;
    border-bottom: 2px solid var(--green-on-dark);
}

.viewer-title {
    flex: 1;
    margin: 0;
    color: var(--white);
    font-size: 18px;
}

.viewer-count {
    color: rgba(255, 255, 255, 0.75);
    font-size: 16px;
}

.viewer-close {
    width: 44px;
    height: 44px;
    color: var(--white);
    font-size: 30px;
    line-height: 1;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
    cursor: pointer;
}

.viewer-stage {
    position: relative;
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 20px 80px;
    touch-action: pan-y pinch-zoom;
}

.viewer-page {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    background: var(--white);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.viewer-nav {
    position: absolute;
    top: 50%;
    width: 52px;
    height: 52px;
    color: var(--white);
    font-size: 36px;
    line-height: 1;
    background: var(--green);
    border: 0;
    cursor: pointer;
    transform: translateY(-50%);
}

.viewer-nav:disabled {
    opacity: 0.25;
    cursor: default;
}

.viewer-prev { left: 16px; }
.viewer-next { right: 16px; }

body.viewer-open {
    overflow: hidden;
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-doc {
        justify-self: start;
        max-width: 200px;
        text-align: left;
    }

    .doc-cover {
        transform: none;
    }
}

@media (max-width: 720px) {
    .viewer-bar {
        flex-wrap: wrap;
        gap: 10px 14px;
        padding: 10px 14px;
    }

    .viewer-title {
        font-size: 16px;
    }

    .viewer-stage {
        padding: 12px;
    }

    .viewer-nav {
        top: auto;
        bottom: 16px;
        width: 46px;
        height: 46px;
        transform: none;
        opacity: 0.9;
    }
}


/* 17. MINDER BEWEGING ------------------------------------ */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
    }
}
