/* ==========================================================================
   Voegwerken Van De Vijver Jens
   Kleuren en lettertype komen uit het logo: bordeaux #a63043 en Montserrat.
   ========================================================================== */

@font-face {
    font-family: "Montserrat";
    src: url("/fonts/montserrat.woff2") format("woff2");
    font-weight: 400 800;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("/fonts/inter.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --brand: #a63043;
    --brand-dark: #7e182e;
    --brand-deep: #4f0f1d;
    --brand-tint: #f6e9eb;
    --bg: #ffffff;
    --surface-alt: #f6f4f3;
    --ink: #1e1a1b;
    --ink-soft: #4a4446;
    --muted: #6d6e71;
    --line: #e4dfdf;
    --mortar: #bcbec0;
    --danger: #b42318;
    --danger-tint: #fdecea;

    --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-display: "Montserrat", var(--font-body);

    --radius: 4px;
    --container: 1140px;
    --gutter: clamp(16px, 4vw, 32px);
    --header-height: 76px;
}

/* --- Basis --------------------------------------------------------------- */

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
    margin: 0 0 0.6em;
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.15rem; font-weight: 700; }

p {
    margin: 0 0 1em;
    text-wrap: pretty;
}

a {
    color: var(--brand);
    text-underline-offset: 0.2em;
}

a:hover {
    color: var(--brand-dark);
}

ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

figure {
    margin: 0;
}

:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 3px;
}

.container {
    width: 100%;
    max-width: calc(var(--container) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 100;
    padding: 0.75rem 1rem;
    background: var(--brand);
    color: #fff;
}

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

.icon {
    width: 1.15em;
    height: 1.15em;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Klein label boven een titel, met het grijze "voeglijntje" van het truweel uit het logo. */
.eyebrow {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--brand);
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 32px;
    height: 3px;
    border-radius: 2px;
    background: var(--mortar);
}

.eyebrow-light {
    color: #fff;
}

.lead {
    font-size: clamp(1.1rem, 1.6vw, 1.25rem);
    max-width: 52ch;
}

/* --- Knoppen ------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.75rem 1.35rem;
    border: 2px solid transparent;
    border-radius: var(--radius);
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.btn-lg {
    padding: 0.95rem 1.6rem;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--brand);
    color: #fff;
}

.btn-primary:hover {
    background: var(--brand-dark);
    color: #fff;
}

.btn-ghost {
    border-color: var(--line);
    background: transparent;
    color: var(--ink);
}

.btn-ghost:hover {
    border-color: var(--ink);
    color: var(--ink);
}

.btn-light {
    background: #fff;
    color: var(--brand);
}

.btn-light:hover {
    background: var(--brand-tint);
    color: var(--brand-dark);
}

.btn-outline-light {
    border-color: rgb(255 255 255 / 0.55);
    color: #fff;
}

.btn-outline-light:hover {
    border-color: #fff;
    background: rgb(255 255 255 / 0.08);
    color: #fff;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2.25rem;
}

/* --- Header & navigatie -------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgb(255 255 255 / 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: var(--header-height);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--brand);
    text-decoration: none;
}

.brand:hover {
    color: var(--brand);
}

.brand-mark {
    width: 44px;
    height: auto;
}

.brand-text {
    display: flex;
    flex-direction: column;
    font-family: var(--font-display);
    line-height: 1.1;
}

.brand-text strong {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.brand-text small {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.nav-toggle {
    display: none;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--ink);
    cursor: pointer;
}

.nav-toggle .icon {
    width: 22px;
    height: 22px;
}

.site-nav {
    /* Het menu is een popover op kleine schermen; op desktop gewoon zichtbaar in de header. */
    display: flex;
    position: static;
    inset: auto;
    align-items: center;
    gap: 1.75rem;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    overflow: visible;
    background: none;
    color: inherit;
}

.site-nav ul {
    display: flex;
    gap: 0.25rem;
}

.site-nav ul a {
    display: block;
    padding: 0.5rem 0.8rem;
    color: var(--ink-soft);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.2s;
}

.site-nav ul a:hover {
    color: var(--brand);
}

@media (max-width: 859px) {
    .nav-toggle {
        display: grid;
    }

    .site-nav {
        display: none;
    }

    .site-nav:popover-open {
        display: flex;
        position: fixed;
        inset: calc(var(--header-height) + 8px) 12px auto 12px;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1rem;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: #fff;
        box-shadow: 0 16px 40px rgb(30 26 27 / 0.15);
    }

    .site-nav::backdrop {
        background: rgb(30 26 27 / 0.3);
    }

    .site-nav ul {
        flex-direction: column;
    }

    .site-nav ul a {
        padding: 0.85rem 0.5rem;
        border-bottom: 1px solid var(--line);
        font-size: 1rem;
    }
}

/* --- Hero ---------------------------------------------------------------- */

.hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(3.5rem, 8vw, 6.5rem);
    background: var(--brand);
    color: #fff;
}

/* De V uit het logo, groot en bijna onzichtbaar op de achtergrond. */
.hero-watermark {
    position: absolute;
    top: 50%;
    left: -6%;
    width: min(60vw, 640px);
    translate: 0 -50%;
    opacity: 0.07;
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: clamp(2rem, 5vw, 4.5rem);
}

.hero .lead {
    color: rgb(255 255 255 / 0.88);
}

.hero-media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: 0 24px 60px rgb(40 6 14 / 0.35);
}

/* --- Secties ------------------------------------------------------------- */

.section {
    padding-block: clamp(4rem, 8vw, 6.5rem);
}

.section-alt {
    background: var(--surface-alt);
}

.section-header {
    max-width: 640px;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

/* --- Diensten ------------------------------------------------------------ */

.service-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    counter-reset: service;
}

.service-list li {
    padding-top: 1.5rem;
    border-top: 3px solid var(--brand);
    counter-increment: service;
}

.service-list li::before {
    content: "0" counter(service);
    display: block;
    margin-bottom: 0.75rem;
    color: var(--mortar);
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.service-list p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.98rem;
}

/* --- Realisaties --------------------------------------------------------- */

.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.gallery li {
    overflow: hidden;
    aspect-ratio: 1;
    border-radius: var(--radius);
    background: var(--line);
}

.gallery a {
    display: block;
    height: 100%;
}

.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery a:hover img {
    transform: scale(1.04);
}

.gallery-collapsed li:nth-child(n + 13) {
    display: none;
}

.gallery-more {
    display: flex;
    margin: 1.5rem auto 0;
}

/* --- Over Jens ----------------------------------------------------------- */

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: clamp(2rem, 6vw, 5rem);
}

.split p {
    color: var(--ink-soft);
}

.steps {
    display: grid;
    gap: 1rem;
    counter-reset: step;
}

.steps li {
    position: relative;
    padding: 1.25rem 1.5rem 1.25rem 4.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    counter-increment: step;
}

.steps li::before {
    content: counter(step);
    position: absolute;
    top: 1.25rem;
    left: 1.5rem;
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius);
    background: var(--brand);
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
}

.steps h3 {
    margin-bottom: 0.2rem;
}

.steps p {
    margin: 0;
    font-size: 0.98rem;
}

/* --- Contact ------------------------------------------------------------- */

.contact-section {
    background: var(--brand);
    color: #fff;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    align-items: start;
    gap: clamp(2rem, 6vw, 5rem);
}

.contact-intro > p {
    color: rgb(255 255 255 / 0.88);
    max-width: 42ch;
}

.contact-list {
    display: grid;
    gap: 0.9rem;
    margin-top: 2rem;
    font-size: 1.05rem;
}

.contact-list li,
.contact-list a {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-list a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.contact-list a:hover {
    text-decoration: underline;
}

.contact-list li:first-child a {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
}

.form-card {
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: var(--radius);
    background: #fff;
    color: var(--ink);
    box-shadow: 0 24px 60px rgb(40 6 14 / 0.3);
}

.form {
    display: grid;
    gap: 1.1rem;
}

.field {
    display: grid;
    gap: 0.35rem;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
}

.field label {
    font-size: 0.9rem;
    font-weight: 600;
}

.field input,
.field textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-alt);
    color: var(--ink);
    font: inherit;
    font-size: 1rem;
    transition: border-color 0.2s, background-color 0.2s;
}

.field textarea {
    resize: vertical;
    min-height: 8rem;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--brand);
    background: #fff;
}

.field .input-validation-error {
    border-color: var(--danger);
}

.field-error {
    color: var(--danger);
    font-size: 0.875rem;
}

.field-error:empty {
    display: none;
}

.form .btn {
    justify-self: start;
}

.form .btn[disabled] {
    opacity: 0.6;
    cursor: progress;
}

.form-note {
    margin: 0;
    color: var(--muted);
    font-size: 0.85rem;
}

.hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.alert {
    margin-bottom: 1.25rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    background: var(--danger-tint);
    color: var(--danger);
}

.alert p:last-child {
    margin: 0;
}

.alert.validation-summary-valid {
    display: none;
}

.form .alert {
    margin: 0;
}

.success-panel {
    padding-block: 2rem;
    text-align: center;
}

.success-icon {
    display: inline-grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 1.25rem;
    border-radius: 50%;
    background: var(--brand-tint);
    color: var(--brand);
}

.success-icon .icon {
    width: 28px;
    height: 28px;
    stroke-width: 2.5;
}

.success-panel h3 {
    font-size: 1.5rem;
}

.success-panel p {
    max-width: 40ch;
    margin-inline: auto;
    color: var(--ink-soft);
}

/* --- Foutpagina ---------------------------------------------------------- */

.page-message {
    min-height: 50vh;
}

/* --- Footer -------------------------------------------------------------- */

.site-footer {
    background: var(--brand-deep);
    color: rgb(255 255 255 / 0.75);
    font-size: 0.95rem;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding-block: 3rem;
}

.footer-logo {
    width: 180px;
}

.footer-contact {
    display: grid;
    gap: 0.5rem;
}

.footer-contact li,
.footer-contact a {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.site-footer a {
    color: #fff;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 2rem;
    padding-block: 1.25rem;
    border-top: 1px solid rgb(255 255 255 / 0.12);
    font-size: 0.85rem;
}

.footer-bottom p {
    margin: 0;
}

/* --- Lightbox ------------------------------------------------------------ */

.lightbox {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgb(12 8 9 / 0.94);
    color: #fff;
}

.lightbox[open] {
    display: grid;
    place-items: center;
}

.lightbox::backdrop {
    background: transparent;
}

.lightbox-figure {
    display: grid;
    justify-items: center;
    gap: 0.75rem;
    padding: 4rem 1rem 2rem;
}

.lightbox-figure img {
    max-width: min(92vw, 1400px);
    max-height: 80dvh;
    border-radius: var(--radius);
    object-fit: contain;
}

.lightbox-figure figcaption {
    color: rgb(255 255 255 / 0.75);
    font-size: 0.95rem;
}

.lightbox-btn {
    position: fixed;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    background: rgb(255 255 255 / 0.12);
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s;
}

.lightbox-btn:hover {
    background: rgb(255 255 255 / 0.24);
}

.lightbox-btn .icon {
    width: 26px;
    height: 26px;
}

.lightbox-prev { left: 1rem; top: 50%; translate: 0 -50%; }
.lightbox-next { right: 1rem; top: 50%; translate: 0 -50%; }
.lightbox-close { right: 1rem; top: 1rem; }

/* --- Responsief ---------------------------------------------------------- */

@media (max-width: 1023px) {
    .service-list {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 2.5rem;
    }

    .gallery {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 799px) {
    :root {
        --header-height: 68px;
    }

    .hero-grid,
    .split {
        grid-template-columns: 1fr;
    }

    .hero-watermark {
        left: auto;
        right: -20%;
        width: 90vw;
    }
}

@media (max-width: 599px) {
    .service-list,
    .field-row {
        grid-template-columns: 1fr;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .button-row .btn {
        width: 100%;
    }

    .brand-mark {
        width: 36px;
    }

    .brand-text strong {
        font-size: 1.1rem;
    }

    .brand-text small {
        font-size: 0.62rem;
        letter-spacing: 0.18em;
    }

    .lightbox-prev,
    .lightbox-next {
        top: auto;
        bottom: 1rem;
        translate: none;
    }
}

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

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}
