/* ============================================================================
   HensIT — corporate site.

   Eén stylesheet, geen framework, geen externe bron. Geen Google Fonts: op een
   site die informatiebeveiliging in de zorg verkoopt is een verzoek naar een
   font-CDN bij elk bezoek niet uit te leggen. De typografie komt uit
   systeemfonts (serif voor koppen, sans voor tekst, mono voor labels) — dezelfde
   aanpak als nen7510-scan.nl.
   ============================================================================ */

/* ---- reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, ul, ol, li, figure, fieldset, legend { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

/* ---- design-tokens ---- */
:root {
    --ground: #FBFAF7;
    --surface: #FFFFFF;
    --sunken: #F3F1EB;
    --night: #101A16;
    --night-2: #18241F;

    --ink: #16211C;
    --muted: #4C5A54;
    --faint: #6A776F;
    --line: #E3E0D7;
    --line-soft: #EFEDE6;

    /* Merkgroen #2ECB71 is te licht voor tekst en knoppen; dit is de donkere
       variant ervan. Contrast op --surface 5,4:1 en op --ground 5,2:1 (AA). */
    --green: #0F7A46;
    --green-deep: #0B5D35;
    --green-soft: #E8F2EC;
    --brand-green: #2ECB71;

    --blue: #1E5FBF;
    --blue-soft: #E9F0FB;

    --serif: Georgia, 'Iowan Old Style', 'Palatino Linotype', Palatino, serif;
    --sans: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --mono: ui-monospace, 'Cascadia Mono', 'SF Mono', Consolas, 'Liberation Mono', monospace;

    --wrap: 1080px;
    --nav-h: 68px;
}

/* ---- basis ---- */
html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--ground);
    -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }

h1, h2 {
    font-family: var(--serif);
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.15;
    text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.15rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.05rem; font-weight: 650; line-height: 1.35; }

p { color: var(--muted); }
p + p { margin-top: 1rem; }

.eyebrow {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--faint);
}

.lede { font-size: 1.1rem; max-width: 60ch; }

section[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }

/* ---- header ---- */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    background: rgba(251, 250, 247, 0.9);
    backdrop-filter: saturate(1.4) blur(8px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.header.scrolled { border-bottom-color: var(--line); }

/* .wrap is hier een flex-item van .header; zonder expliciete breedte krimpt hij
   naar zijn inhoud en komt de balk gecentreerd te staan in plaats van uitgelijnd. */
.header > .wrap { width: 100%; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--serif);
    font-size: 1.22rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.logo img { width: 30px; height: 32px; }
/* Het woordmerk is één flex-item; anders zet de gap van .logo een spatie tussen
   "Hens" en "IT". */
.logo .wordmark { white-space: nowrap; }
.logo .wordmark span { color: var(--green); }

.nav-links { display: flex; align-items: center; gap: 1.6rem; }

.nav-links a {
    position: relative;
    font-size: 0.93rem;
    color: var(--muted);
    padding: 0.35rem 0;
    transition: color 0.15s ease;
}

/* Het lijntje groeit uit bij hover en staat vol zodra je in die sectie bent
   (de actieve staat wordt in main.js meegeschoven tijdens het scrollen). */
.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 1.5px;
    width: 0;
    background: var(--green);
    transition: width 0.22s ease;
}

.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.nav-cta { color: var(--ink); font-weight: 600; }
.nav-links a.nav-cta::after { background: var(--brand-green); }

.menu-btn { display: none; padding: 0.4rem; line-height: 0; color: var(--ink); }

/* ---- knoppen ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.72rem 1.35rem;
    border-radius: 4px;
    font-size: 0.97rem;
    font-weight: 600;
    border: 1.5px solid transparent;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-deep); }

.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--ink); }

.btn-block { width: 100%; justify-content: center; }

/* Een uitgeschakelde knop moet er ook uitgeschakeld uitzien; anders klikt iemand
   op een knop die niets doet. */
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary:disabled:hover { background: var(--green); }

.arrow-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--green);
    border-bottom: 1.5px solid var(--green-soft);
    padding-bottom: 1px;
    transition: border-color 0.15s ease;
}

.arrow-link:hover { border-bottom-color: var(--green); }
.arrow-link .ar { transition: transform 0.15s ease; }
.arrow-link:hover .ar { transform: translateX(3px); }

/* ---- hero ---- */
.hero { padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.hero .eyebrow { display: block; margin-bottom: 1.4rem; }
.hero h1 { max-width: 15ch; }
.hero .lede { margin-top: 1.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }


/* ---- secties ---- */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section-sunken { background: var(--sunken); border-block: 1px solid var(--line); }
.section-head { max-width: 62ch; margin-bottom: 3rem; }
.section-head .eyebrow { display: block; margin-bottom: 0.85rem; }
.section-head p { margin-top: 1rem; }

/* ---- producten ---- */
.product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 3.5rem);
    align-items: center;
    padding: clamp(2.25rem, 5vw, 3.25rem) 0;
    border-top: 1px solid var(--line);
}

.product:last-child { border-bottom: 1px solid var(--line); }
.product.flip .product-visual { order: -1; }

.product-name {
    font-family: var(--serif);
    font-size: 1.9rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.product-tagline { color: var(--green); font-weight: 600; margin-top: 0.35rem; font-size: 1rem; }
.product-body p { margin-top: 1.15rem; }

.status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.28rem 0.6rem;
    border-radius: 3px;
    margin-bottom: 1rem;
}

.status.live { background: var(--green-soft); color: var(--green-deep); }
.status.prod { background: var(--blue-soft); color: var(--blue); }
.status .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.checklist { margin-top: 1.5rem; }

.checklist li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 0.55rem;
    font-size: 0.97rem;
    color: var(--muted);
}

.checklist li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 9px;
    height: 9px;
    border-radius: 2px;
    background: var(--brand-green);
}

.checklist li:nth-child(even)::before { background: var(--blue); }

.product-actions { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; margin-top: 1.9rem; }

.shot {
    display: block;
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: 0 1px 2px rgba(22, 33, 28, 0.04);
}

.shot img { display: block; width: 100%; }

/* ---- vergrootbare schermafdruk ----
   De knop is er voor het toetsenbord: een <img> met een klik-handler is met
   Tab niet te bereiken. De vergrootglas-badge maakt zichtbaar dat het kan. */
.zoombtn {
    display: block;
    position: relative;
    width: 100%;
    padding: 0;
    cursor: zoom-in;
    line-height: 0;
}

.zoombtn img { display: block; width: 100%; }

.zoombtn::after {
    content: '⤢';
    position: absolute;
    right: 0.6rem;
    bottom: 0.6rem;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    line-height: 1;
    color: #fff;
    background: rgba(16, 26, 22, 0.72);
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.zoombtn:hover::after, .zoombtn:focus-visible::after { opacity: 1; }
.zoombtn:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

/* Op aanraakschermen bestaat hover niet — dan altijd tonen. */
@media (hover: none) {
    .zoombtn::after { opacity: 1; }
}

.shot figcaption { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.zoomhint { color: var(--green); }
.shot figcaption {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--faint);
    padding: 0.55rem 0.8rem;
    border-top: 1px solid var(--line-soft);
}

/* ---- werkwijze ---- */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }

.principle { border-top: 2px solid var(--ink); padding-top: 1.1rem; }
.principle .num { font-family: var(--mono); font-size: 0.72rem; color: var(--faint); }
.principle h3 { margin: 0.5rem 0 0.7rem; }
.principle p { font-size: 0.97rem; }

/* ---- buiten de zorg ---- */
.side-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.side-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
}

.side-card .zoombtn { border-bottom: 1px solid var(--line-soft); }
.side-card .zoombtn img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }

.side-body { padding: 1.35rem 1.35rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.side-body .kind { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.side-body h3 { margin: 0.45rem 0 0.6rem; }
.side-body p { font-size: 0.94rem; }
.side-body .arrow-link, .side-body .btn { margin-top: auto; padding-top: 1.1rem; align-self: flex-start; }
.side-body .btn { margin-top: auto; padding: 0.6rem 1.1rem; font-size: 0.9rem; }
.fineprint { font-size: 0.82rem; color: var(--faint); margin-top: 0.8rem; }

/* ---- over ---- */
.about-text { max-width: 64ch; }

/* ---- contact ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-direct { margin-top: 2rem; }
.contact-direct dt { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.contact-direct dd { margin: 0.2rem 0 1.15rem; font-size: 1rem; }
.contact-direct a { border-bottom: 1px solid var(--line); }
.contact-direct a:hover { color: var(--green); border-bottom-color: var(--green); }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: clamp(1.5rem, 3vw, 2rem); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-size: 0.87rem; font-weight: 600; margin-bottom: 0.35rem; }

.field input, .field select, .field textarea {
    width: 100%;
    font: inherit;
    font-size: 0.97rem;
    padding: 0.65rem 0.75rem;
    color: var(--ink);
    background: var(--ground);
    border: 1px solid var(--line);
    border-radius: 4px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea { resize: vertical; min-height: 130px; }

.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px var(--green-soft);
}

.form-note { font-size: 0.82rem; color: var(--faint); margin-top: 0.9rem; }
.form-note a { border-bottom: 1px solid var(--line); }

.form-status { margin-top: 1rem; font-size: 0.93rem; padding: 0.7rem 0.9rem; border-radius: 4px; }
.form-status.ok { background: var(--green-soft); color: var(--green-deep); }
.form-status.err { background: #F9E9E7; color: #96372F; }

/* ---- footer ---- */
.footer { background: var(--night); color: #fff; padding: clamp(3rem, 6vw, 4rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer .logo { color: #fff; }
.footer .logo .wordmark span { color: var(--brand-green); }
.footer-brand p { color: rgba(255, 255, 255, 0.6); font-size: 0.92rem; margin-top: 1rem; max-width: 32ch; }

.footer h4 { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); font-weight: 400; margin-bottom: 1rem; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { font-size: 0.93rem; color: rgba(255, 255, 255, 0.72); }
.footer-col a:hover { color: var(--brand-green); }

.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a { color: rgba(255, 255, 255, 0.72); }
.footer-bottom a:hover { color: var(--brand-green); }
.footer-bottom .sep { color: rgba(255, 255, 255, 0.25); margin: 0 0.5rem; }

/* ---- lightbox: schermafdruk op ware grootte ---- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(16, 26, 22, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 4vw, 3rem);
    cursor: zoom-out;
}

.lightbox figure { max-width: 100%; max-height: 100%; }

.lightbox img {
    display: block;
    max-width: 100%;
    max-height: 86vh;
    width: auto;
    border-radius: 4px;
    background: #fff;
    cursor: default;
}

.lightbox figcaption {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    padding-top: 0.8rem;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    width: 40px;
    height: 40px;
    font-size: 1.9rem;
    line-height: 1;
    color: #fff;
    opacity: 0.7;
    border-radius: 4px;
}

.lightbox-close:hover { opacity: 1; background: rgba(255, 255, 255, 0.1); }

/* ---- losse pagina (privacy) ---- */
.doc { padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(3rem, 7vw, 5rem); }
.doc h1 { margin-bottom: 0.75rem; }
.doc .updated { font-family: var(--mono); font-size: 0.75rem; color: var(--faint); }
.doc h2 { font-size: 1.3rem; margin: 2.5rem 0 0.75rem; }
.doc p, .doc li { font-size: 0.98rem; color: var(--muted); }
.doc ul { margin: 0.75rem 0 0 1.15rem; list-style: disc; }
.doc li { margin-bottom: 0.4rem; }
.doc a { color: var(--green); border-bottom: 1px solid var(--green-soft); }
.doc a:hover { border-bottom-color: var(--green); }

/* ---- responsive ---- */
@media (max-width: 900px) {
    .principles, .side-grid { grid-template-columns: 1fr 1fr; }
    .product, .contact-grid { grid-template-columns: 1fr; }
    .product.flip .product-visual { order: 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    body { font-size: 16px; }
    .principles, .side-grid, .form-row, .footer-grid { grid-template-columns: 1fr; }
    .hero-actions .btn { flex: 1 1 auto; justify-content: center; }

    .menu-btn { display: inline-flex; }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--surface);
        border-block: 1px solid var(--line);
        padding: 0.5rem 24px 1rem;
    }

    .nav-links.open { display: flex; }
    .nav-links a { padding: 0.75rem 0; border-bottom: 1px solid var(--line-soft); }
    .nav-links a::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
