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

:root {
    --charcoal: #202020;
    --paper: #f6f2e9;
    --lego-red: #e41d2d;
    --lego-blue: #0769b3;
    --lego-yellow: #f6ca27;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { scroll-behavior: smooth; }

body {
    background: var(--paper);
    color: var(--charcoal);
    font-family: 'DM Sans', Arial, sans-serif;
}

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

h1, h2, h3 {
    font-family: 'Montserrat', Arial, sans-serif;
    line-height: .98;
}

h1 { font-size: clamp(2.8rem, 8vw, 6.5rem); }
h2 { font-size: clamp(2.1rem, 5vw, 4rem); }
h3 { font-size: 1.5rem; }
p { line-height: 1.65; }

.eyebrow {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

/* Navigatie */
nav {
    background: var(--charcoal);
    color: white;
    z-index: 10;
}

.mobile-menu {
    display: flex;
    flex-direction: column;
    height: 62px;
    overflow: hidden;
}

.buffernav,
.desktop-menu {
    align-items: center;
    display: flex;
    justify-content: space-between;
    min-height: 62px;
}

.logo {
    display: block;
    margin-left: 1rem;
    width: 42px;
}

.iconen {
    align-items: flex-end;
    background: none;
    border: 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-right: .8rem;
    padding: .65rem;
}

.line {
    background: white;
    border-radius: 2px;
    display: block;
    height: 3px;
    width: 27px;
}

.article ul {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: .85rem;
    list-style: none;
    padding: .85rem 1rem 1.15rem;
}

nav a {
    color: white;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .13em;
    position: relative;
    text-decoration: none;
    text-transform: uppercase;
}

nav a::after {
    background: var(--lego-yellow);
    bottom: -5px;
    content: '';
    height: 2px;
    left: 0;
    position: absolute;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .25s ease;
    width: 100%;
}

nav a:hover::after,
nav a:focus-visible::after {
    transform: scaleX(1);
    transform-origin: left;
}

.desktop-menu { display: none; }
.open { animation: open-menu .35s ease forwards; }
.closed { animation: close-menu .35s ease forwards; }

@keyframes open-menu { from { height: 62px; } to { height: 232px; } }
@keyframes close-menu { from { height: 232px; } to { height: 62px; } }

.hero {
    align-items: end;
    display: flex;
    height: calc(100svh - 62px);
    isolation: isolate;
    overflow: hidden;
    padding: clamp(1.5rem, 5vw, 5rem);
    position: relative;
}

.hero::after {
    background: linear-gradient(90deg, rgba(0, 0, 0, .66), rgba(0, 0, 0, .08));
    content: '';
    inset: 0;
    position: absolute;
    z-index: -1;
}

.hero video {
    height: 100%;
    inset: 0;
    max-width: none;
    object-fit: cover;
    position: absolute;
    width: 100%;
    z-index: -2;
}

.hero-content { color: white; max-width: 850px; }
.hero-content h1 { margin: .6rem 0 1.6rem; }

.button {
    background: var(--lego-yellow);
    color: var(--charcoal);
    display: inline-block;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    padding: 1rem 1.25rem;
    text-decoration: none;
    text-transform: uppercase;
    transition: background .2s ease, transform .2s ease;
}

.button:hover,
.button:focus-visible { background: white; transform: translateY(-3px); }

/* Inhoud */
.intro,
.creative,
.story,
footer { padding: clamp(4rem, 9vw, 8rem) clamp(1.25rem, 7vw, 8rem); }

.section-heading { max-width: 730px; }
.section-heading h2 { margin-top: .7rem; }

.product-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2.5rem;
}

.product-card {
    background: var(--lego-blue);
    color: white;
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 280px;
    padding: 1.7rem;
}

.product-card--red { background: var(--lego-red); }
.product-card--yellow { background: var(--lego-yellow); color: var(--charcoal); }
.card-number { font-weight: 700; letter-spacing: .1em; margin-bottom: auto; }
.product-card h3 { margin: 1.6rem 0 .75rem; }
.product-card p { font-size: .94rem; }

.product-card a,
.text-link {
    align-self: flex-start;
    color: currentColor;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    margin-top: 1.5rem;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    text-transform: uppercase;
}

.creative {
    align-items: center;
    background: var(--charcoal);
    color: white;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.creative-image,
.creative-copy { flex: 1; }

.creative-image img {
    aspect-ratio: 1 / .8;
    object-fit: cover;
    width: 100%;
}

.creative-copy h2 { margin: .7rem 0 1.25rem; }
.creative-copy > p:not(.eyebrow) { max-width: 520px; }

.story { background: var(--paper); min-height: 460px; }
.story > div { max-width: 780px; }
.story h2 { margin: .7rem 0 1.25rem; }
.story p:not(.eyebrow) { font-size: clamp(1rem, 2vw, 1.3rem); }

/* Verkoopplaats */
.sale { background: white; padding: clamp(4rem, 9vw, 8rem) clamp(1.25rem, 7vw, 8rem); }
.sale-grid { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
.sale-card { background: var(--paper); padding: 1rem; }
.sale-card img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.sale-card h3 { margin-top: 1.25rem; }
.sale-card p { color: var(--lego-red); font-size: 1.2rem; font-weight: 700; margin: .5rem 0 1rem; }

footer {
    align-items: flex-start;
    background: var(--lego-red);
    color: white;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

footer h2 { margin-top: .7rem; max-width: 850px; }
.button--light { background: white; }

@media (min-width: 700px) {
    .mobile-menu { display: none; }

    .desktop-menu {
        align-items: center;
        display: flex;
        height: 72px;
        padding-right: clamp(1rem, 5vw, 5rem);
    }

    .desktop-menu .logo { margin-left: clamp(1rem, 5vw, 5rem); width: 50px; }

    .desktop-menu .article ul {
        flex-direction: row;
        gap: clamp(1.2rem, 3vw, 3rem);
        padding: 0;
    }

    .hero { height: calc(100svh - 72px); }
    .product-grid { flex-direction: row; gap: 1.5rem; }
    .sale-grid { grid-template-columns: repeat(3, 1fr); }
    .creative { flex-direction: row; gap: clamp(3rem, 8vw, 9rem); }

    footer {
        align-items: flex-end;
        flex-direction: row;
        justify-content: space-between;
    }
}
