@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&display=swap');

/* =========================================================
   FvE fotografie — basisstijl (header, footer, typografie)
   Gelijk aan het ontwerp "Website FvE fotografie – pagina's"
   ========================================================= */

:root {
    --ink: #111111;
    --paper: #ffffff;
    --muted: #555555;
    --line: #111111;
    --line-soft: #cccccc;
    --placeholder: #d9d9d9;
    --hero: #3d3d3d;

    --container: 1200px;
    --gutter: 24px;
    --page-top: 72px;
    --page-bottom: 96px;
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Archivo", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body,
body * {
    font-family: "Archivo", sans-serif;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

img {
    max-width: 100%;
}

h1,
h2,
h3 {
    margin: 0;
    color: var(--ink);
    line-height: 1.1;
}

h1 {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ---------- Header ---------- */

.site-header {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    width: 100%;
    max-width: var(--container);
    min-height: 108px;
    margin: 0 auto;
    padding: 0 var(--gutter);
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}

.site-header__brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
}

.site-header__brand span:first-child {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.site-header__brand span:last-child {
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.5em;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.site-nav a,
.site-nav__dropdown summary {
    display: block;
    padding: 14px 18px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 400;
    line-height: 16px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease;
}

.site-nav__dropdown {
    position: relative;
}

.site-nav__dropdown summary {
    list-style: none;
}

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

.site-nav a:hover,
.site-nav__dropdown summary:hover {
    background: #f0f0f0;
}

.site-nav a[aria-current="page"],
.site-nav__dropdown summary[aria-current="page"] {
    background: var(--ink);
    color: var(--paper);
}

.site-nav a[aria-current="page"]:hover,
.site-nav__dropdown summary[aria-current="page"]:hover,
.site-nav__dropdown[open] summary[aria-current="page"] {
    background: #333;
    color: var(--paper);
}

.site-nav__submenu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1;
    display: flex;
    min-width: 12rem;
    flex-direction: column;
    margin-top: 4px;
    padding: 4px 0;
    border: 1px solid var(--line);
    background: var(--paper);
}

.site-nav__submenu a {
    padding: 12px 18px;
}

.site-nav__submenu a[aria-current="page"] {
    background: var(--ink);
    color: var(--paper);
}

.site-nav a:focus-visible,
.site-nav__dropdown summary:focus-visible,
.site-header__brand:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

.site-menu-toggle__input,
.site-menu-toggle {
    display: none;
}

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

.site-footer {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
    margin-top: auto;
    padding: 64px max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
    background: var(--ink);
    color: var(--paper);
    font-size: 13px;
    line-height: 1.5;
}

.site-footer__item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.site-footer__label {
    margin-bottom: -4px;
    color: var(--paper);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.site-footer__links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.site-footer a {
    color: var(--paper);
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 160ms ease;
}

.site-footer a:hover {
    color: #bbbbbb;
}

/* ---------- Gedeelde knop ---------- */

.btn,
.over-btn,
.prints-all-btn {
    display: inline-block;
    width: fit-content;
    padding: 16px 24px;
    border: 1px solid var(--ink);
    background: var(--ink);
    color: var(--paper);
    font-size: 13px;
    font-weight: 500;
    line-height: 16px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease;
}

.btn:hover,
.over-btn:hover,
.prints-all-btn:hover {
    background: #333;
    border-color: #333;
}

/* ---------- Foto zoom ---------- */

.foto-zoom {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px;
    background: rgba(17, 17, 17, 0.94);
}

.foto-zoom[hidden] {
    display: none;
}

.foto-zoom__kader {
    display: grid;
    width: min(100%, 1100px);
    height: calc(100vh - 128px);
    max-height: 900px;
    grid-template-rows: minmax(0, 1fr) 3.5em;
    gap: 12px;
    margin: 0;
}

.foto-zoom__foto {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.foto-zoom__titel {
    max-width: 100%;
    max-height: 2.7em;
    margin: 0;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.55);
    color: var(--paper);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    overflow-wrap: anywhere;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.foto-zoom__knop {
    position: absolute;
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease, opacity 160ms ease;
}

.foto-zoom__knop:hover:not(:disabled) {
    border-color: var(--paper);
    background: transparent;
    color: var(--paper);
}

.foto-zoom__knop:focus-visible {
    outline: 2px solid var(--paper);
    outline-offset: 3px;
}

.foto-zoom__knop:disabled {
    opacity: 0.35;
    cursor: default;
}

.foto-zoom__knop--vorige {
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
}

.foto-zoom__knop--volgende {
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

.foto-zoom__knop--sluiten {
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: transparent;
    color: var(--paper);
    font-size: 32px;
}

.foto-zoom__knop--sluiten:hover {
    border-color: transparent;
    background: rgba(255, 255, 255, 0.15);
    color: var(--paper);
}

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

@media (max-width: 900px) {
    :root {
        --page-top: 48px;
        --page-bottom: 72px;
    }

    h1 {
        font-size: 40px;
    }

    .site-header {
        flex-wrap: wrap;
        gap: 16px;
        min-height: 88px;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .site-header__brand {
        margin-right: auto;
    }

    .site-menu-toggle__input {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .site-menu-toggle {
        display: flex;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--ink);
        cursor: pointer;
    }

    .site-menu-toggle__icon {
        display: flex;
        width: 20px;
        flex-direction: column;
        gap: 5px;
    }

    .site-menu-toggle__icon span {
        width: 100%;
        height: 2px;
        background: var(--ink);
        transition: transform 160ms ease, opacity 160ms ease;
    }

    .site-menu-toggle__input:focus-visible + .site-menu-toggle {
        outline: 2px solid var(--ink);
        outline-offset: 3px;
    }

    .site-menu-toggle__input:checked + .site-menu-toggle .site-menu-toggle__icon span:first-child {
        transform: translateY(7px) rotate(45deg);
    }

    .site-menu-toggle__input:checked + .site-menu-toggle .site-menu-toggle__icon span:nth-child(2) {
        opacity: 0;
    }

    .site-menu-toggle__input:checked + .site-menu-toggle .site-menu-toggle__icon span:last-child {
        transform: translateY(-7px) rotate(-45deg);
    }

    .site-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .site-menu-toggle__input:checked ~ .site-nav {
        display: flex;
    }

    .site-nav__dropdown {
        width: 100%;
    }

    .site-nav__submenu {
        position: static;
        min-width: 0;
        width: 100%;
        margin-top: 4px;
        border: 0;
        border-left: 1px solid var(--line);
    }
}

@media (max-width: 650px) {
    .site-footer {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .foto-zoom {
        padding: 56px 52px;
    }

    .foto-zoom__kader {
        height: calc(100vh - 112px);
    }

    .foto-zoom__titel {
        font-size: 18px;
    }

    .foto-zoom__knop--vorige {
        left: 8px;
    }

    .foto-zoom__knop--volgende {
        right: 8px;
    }

    .foto-zoom__knop--sluiten {
        top: 8px;
        right: 8px;
    }
}
