/* CSS VARIABELEN */
:root {
    --display-font: 'Newsreader', serif;
    --intro-fs: 3rem;
    --primary-font: 'Inter', sans-serif;
    --text-color: #2b2a28;
    --muted-color: #6b6862;
    --border-color: #ded8cd;
    --background-color: #f7f4ee;
    --link-color: #a8623f;
    --link-color-hover: #7d4830;
    --brand-color: #ffe500;
}

/* RESET EN BASIS STYLING */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--primary-font);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* PAGINA-LAYOUT */
.page {
    max-width: 704px;
    margin: 0 auto;
    padding: 6rem 2rem 6rem;
}

.content {
    text-align: left;
}

/* OVERLAY: grote band in de merkkleur onderaan het scherm; schuift met scrollsnelheid naar beneden weg (JS zet de transform) */
.overlay {
    --ov-fs: clamp(1.1rem, 8vw, 9rem);
    --ov-mark-w: calc(var(--ov-fs) * 3.1907);
    background: var(--brand-color);
    color: var(--text-color);
}

.js .overlay {
    background: rgba(255, 229, 0, 0.95);
    background: color-mix(in srgb, var(--brand-color) 95%, transparent);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    will-change: transform;
}

.overlay-inner {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: calc(var(--ov-fs) * 0.456);
    padding: calc(var(--ov-fs) * 0.55);
}

.overlay-mark {
    --mark-bg: transparent;
    display: block;
    flex: none;
    width: var(--ov-mark-w);
    height: calc(var(--ov-fs) * 1.1721);
    margin-right: calc(var(--ov-mark-w) * -0.074);
}

.overlay-title {
    font-family: var(--display-font);
    font-size: calc(var(--ov-fs) * 0.9421);
    font-style: italic;
    font-weight: 500;
    font-variation-settings: 'opsz' 72;
    line-height: 1;
    white-space: nowrap;
    margin-bottom: calc(var(--ov-fs) * 0.236 - 0.265em);
}

/* TOPBAR: sticky header, pagina-achtergrond met 5% doorzichtigheid; schuift van boven in beeld als de band weg is */
.topbar {
    display: none;
}

.js .topbar {
    --tb-mark-w: 81.3px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30;
    padding: 0.9rem max(2rem, calc((100% - 640px) / 2));
    background: rgba(247, 244, 238, 0.95);
    background: color-mix(in srgb, var(--background-color) 95%, transparent);
    transform: translateY(-100%);
    visibility: hidden;
    transition: transform 0.35s ease, visibility 0s linear 0.35s;
}

.js .topbar.is-visible {
    transform: none;
    visibility: visible;
    transition-delay: 0s;
}

.topbar-mark {
    display: block;
    width: var(--tb-mark-w);
    height: calc(var(--tb-mark-w) * 0.3673);
    padding: 0;
    border: 0;
    background: none;
    line-height: 0;
    cursor: pointer;
    color: var(--text-color);
}

.topbar-mark svg {
    display: block;
    width: 100%;
    height: 100%;
}

.topbar-mark:focus-visible {
    outline: 2px solid var(--link-color);
    outline-offset: 3px;
}

.topbar-brand {
    margin-right: calc(var(--tb-mark-w) * 0.1429);
    font-family: var(--display-font);
    font-size: calc(var(--tb-mark-w) * 0.2953);
    font-style: italic;
    font-weight: 500;
    font-variation-settings: 'opsz' 72;
    line-height: 1;
    align-self: end;
    position: relative;
    top: calc(0.265em - var(--tb-mark-w) * 0.074);
    color: var(--text-color);
}

.topbar-link {
    margin-left: auto;
    align-self: end;
    position: relative;
    top: calc(0.155em - var(--tb-mark-w) * 0.074);
    line-height: 1;
    font-family: 'Jost', var(--primary-font);
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-color);
}

.topbar-link:hover {
    color: var(--link-color);
}

/* Brede schermen: mark links en contact rechts, direct naast de tekstkolom (tekst loopt ertussendoor) */
@media (min-width: 980px) {
    .js .topbar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 640px minmax(0, 1fr);
        column-gap: calc(var(--tb-mark-w) * 0.1429);
        padding: 0.9rem 2rem;
    }

    .topbar-brand {
        grid-column: 1;
        justify-self: end;
        margin-right: 0;
    }

    .topbar-mark {
        grid-column: 2;
        justify-self: start;
    }

    .topbar-link {
        grid-column: 3;
        justify-self: start;
        margin-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .js .topbar {
        transition: none;
    }
}

/* INTRO PARAGRAAF */
.intro {
    margin-bottom: 5rem;
}

.intro-text {
    font-family: var(--display-font);
    font-size: var(--intro-fs);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.intro-text .wave {
    font-size: 1.1em;
}

.intro-text .brand {
    font-family: var(--display-font);
    font-style: italic;
    font-weight: 500;
}

.intro-tagline {
    font-family: var(--display-font);
    font-size: 1.6em;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

/* SECTIE PARAGRAPHS */
.section {
    font-size: 1.15em;
    font-weight: normal;
    margin-bottom: 4rem;
}

.section-title {
    display: block;
    font-family: var(--display-font);
    font-size: 1.3em;
    font-weight: 500;
    letter-spacing: 0.01em;
    margin-bottom: 1rem;
}

.section .item {
    display: block;
    margin-top: 1.5rem;
}

.section .item-title {
    font-weight: 600;
}

.clients {
    font-weight: 600;
}

/* PROVEN IMPACT KADER */
.impact-box {
    border: 1px solid var(--border-color);
    padding: 2rem;
    margin: 5rem 0;
    box-shadow: 0 2px 16px rgba(43, 42, 40, 0.05);
}

/* LINKS */
a {
    color: var(--link-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--link-color-hover);
}

/* FOOTER */
.footer {
    text-align: left;
    font-size: 0.85em;
    color: var(--muted-color);
    margin-top: 5rem;
    padding-bottom: 2rem;
}

@media (max-width: 768px) {
    .page {
        padding: 3rem 1.5rem 4rem;
    }

    .js .topbar {
        padding: 0.75rem max(1.5rem, calc((100% - 656px) / 2));
    }

    .overlay {
        --ov-fs: 9vw;
    }

    .overlay-inner {
        padding: calc(var(--ov-fs) * 0.95) 1.5rem;
    }

    .intro {
        margin-bottom: 3.5rem;
    }

    .intro-tagline {
        font-size: 1.5em;
    }

    .impact-box {
        padding: 1.5rem;
        margin: 3.5rem 0;
    }

    .section {
        margin-bottom: 3.5rem;
    }
}

@media (max-width: 480px) {
    :root {
        --intro-fs: 2.5rem;
    }

    .intro-tagline {
        font-size: 1.4em;
    }
}

/* Smalle schermen: mark, naam en e-mailadres moeten samen op 1 regel passen */
@media (max-width: 560px) {
    .js .topbar {
        --tb-mark-w: clamp(64px, 20.8vw, 81.3px);
    }

    .topbar-mark {
        flex: none;
    }

    .topbar-link {
        font-size: 0.8rem;
        letter-spacing: 0.04em;
        white-space: nowrap;
    }
}
