:root {
    --lime: #b6d905;
    --lime-dark: #93b000;
    --grey: #a6a6a6;
    --ink: #11140e;
    --text: #f3f5ee;
    --text-muted: #cfd5c4;
    --panel: rgba(17, 20, 14, 0.74);
    --sidebar: rgba(17, 20, 14, 0.82);
    --sidebar-width: 17rem;
    --radius: 14px;
    --fade: 1.5s;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

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

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

a {
    color: var(--lime);
}

h1,
h2,
h3 {
    line-height: 1.2;
    margin: 0 0 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem);
}

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

h2::after {
    content: "";
    display: block;
    width: 3rem;
    height: 4px;
    margin-top: 0.75rem;
    border-radius: 2px;
    background: var(--lime);
}

h3 {
    font-size: 1.15rem;
    margin-top: 2rem;
    color: var(--lime);
}

p {
    margin: 0 0 1rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 100;
    padding: 0.5rem 1rem;
    background: var(--lime);
    color: var(--ink);
    border-radius: 6px;
}

.skip-link:focus {
    top: 1rem;
}

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

/* ---------- Achtergrond ---------- */

.background {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: var(--ink);
}

.background__layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity var(--fade) ease;
}

.background__layer.is-visible {
    opacity: 1;
}

.background::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 12, 8, 0.25), rgba(10, 12, 8, 0.45));
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.9rem;
    padding: 0.6rem 1.25rem;
    border: 2px solid var(--lime);
    border-radius: 999px;
    background: var(--lime);
    color: var(--ink);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.button:hover {
    background: var(--lime-dark);
    border-color: var(--lime-dark);
}

.button svg {
    width: 1.1rem;
    height: 1.1rem;
    fill: currentColor;
    flex-shrink: 0;
}

.button--ghost {
    background: transparent;
    color: var(--text);
}

.button--ghost:hover {
    background: rgba(182, 217, 5, 0.15);
    border-color: var(--lime);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

/* ---------- Sidebar / header ---------- */

.sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1rem;
    background: var(--sidebar);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

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

.brand__logo {
    width: 2.75rem;
    height: 2.75rem;
}

.brand__name {
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.15;
}

.brand__name span {
    display: block;
    color: var(--lime);
    font-weight: 600;
}

.menu-toggle {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
}

.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
    display: block;
    width: 1.5rem;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

.menu-toggle__bars {
    position: relative;
}

.menu-toggle__bars::before,
.menu-toggle__bars::after {
    content: "";
    position: absolute;
    left: 0;
}

.menu-toggle__bars::before {
    top: -7px;
}

.menu-toggle__bars::after {
    top: 7px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars {
    background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after {
    transform: translateY(-7px) rotate(-45deg);
}

.main-menu {
    display: none;
    width: 100%;
}

.main-menu.is-open {
    display: block;
}

.main-menu ul {
    list-style: none;
    margin: 0.5rem 0 0.25rem;
    padding: 0;
}

.main-menu a {
    display: block;
    padding: 0.7rem 0.25rem;
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.main-menu a:hover,
.main-menu a.is-active {
    color: var(--lime);
}

.sidebar__contact {
    display: none;
}

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

.section {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 3rem 1rem;
}

.panel {
    width: 100%;
    max-width: 44rem;
    padding: 1.75rem 1.5rem;
    border-radius: var(--radius);
    background: var(--panel);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.panel--wide {
    max-width: 62rem;
}

.panel > :last-child {
    margin-bottom: 0;
}

.eyebrow {
    margin-bottom: 0.75rem;
    color: var(--lime);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.slogan {
    color: var(--lime);
    font-style: italic;
}

/* ---------- Galerij ---------- */

.gallery {
    list-style: none;
    margin: 0 0 0.5rem;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
}

.gallery a {
    display: block;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 4 / 3;
    background: rgba(255, 255, 255, 0.06);
}

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

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

.gallery--designs a {
    background: #fff;
}

.gallery--designs img {
    object-fit: contain;
}

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

.contact-card {
    margin: 1.5rem 0 0;
    padding: 1.25rem 1.5rem;
    font-style: normal;
    border-left: 4px solid var(--lime);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0 10px 10px 0;
}

.contact-card a {
    text-decoration: none;
}

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

.footer {
    padding: 1.5rem 1rem 6rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
    background: var(--sidebar);
}

/* ---------- Mobiele contactbalk ---------- */

.mobile-contact {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom));
    background: var(--sidebar);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

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

.lightbox {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(8, 10, 6, 0.94);
    color: var(--text);
}

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

.lightbox__figure {
    height: 100%;
    margin: 0;
    padding: 3.5rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.lightbox__image {
    max-height: calc(100% - 3rem);
    width: auto;
    object-fit: contain;
    border-radius: 6px;
}

.lightbox__caption {
    text-align: center;
    color: var(--text-muted);
}

.lightbox__button {
    position: absolute;
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.lightbox__button:hover {
    background: var(--lime);
    color: var(--ink);
}

.lightbox__button--close {
    top: 0.75rem;
    right: 0.75rem;
}

.lightbox__button--prev,
.lightbox__button--next {
    top: 50%;
    transform: translateY(-50%);
}

.lightbox__button--prev {
    left: 0.75rem;
}

.lightbox__button--next {
    right: 0.75rem;
}

.lightbox__button[hidden] {
    display: none;
}

/* ---------- Tablet ---------- */

@media (min-width: 640px) {
    .gallery {
        grid-template-columns: repeat(3, 1fr);
    }

    .panel {
        padding: 2.5rem;
    }
}

/* ---------- Desktop: vaste sidebar links ---------- */

@media (min-width: 960px) {
    html {
        scroll-padding-top: 0;
    }

    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: var(--sidebar-width);
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        justify-content: flex-start;
        padding: 2.5rem 1.75rem;
    }

    .brand {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .brand__logo {
        width: 8rem;
        height: 8rem;
    }

    .brand__name {
        font-size: 1.3rem;
    }

    .menu-toggle {
        display: none;
    }

    .main-menu {
        display: block;
        margin-top: 2.5rem;
    }

    .main-menu a {
        padding: 0.8rem 0.5rem;
        font-size: 1.05rem;
    }

    .sidebar__contact {
        display: grid;
        gap: 0.6rem;
        margin-top: auto;
    }

    .sidebar__contact .button {
        font-size: 0.95rem;
        padding-inline: 0.75rem;
    }

    main,
    .footer {
        margin-left: var(--sidebar-width);
    }

    .section {
        padding: 6rem clamp(2rem, 6vw, 6rem);
    }

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

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

    .footer {
        padding-bottom: 1.5rem;
    }

    .mobile-contact {
        display: none;
    }

    .lightbox__button--prev {
        left: 1.5rem;
    }

    .lightbox__button--next {
        right: 1.5rem;
    }
}

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

    .background__layer,
    .gallery img {
        transition: none;
    }
}
