/* ==========================================================
   MDR Interieur — klassieke stijl in beige & wit
   ========================================================== */
:root {
    --white: #ffffff;
    --cream: #faf7f2;
    --beige: #f1e9dc;
    --sand: #e3d5bf;
    --taupe: #c2a883;
    --bronze: #9a7a4f;
    --bronze-dark: #7a5f3b;
    --ink: #2b2620;
    --text: #4a4239;
    --muted: #8a7f72;
    --line: #e6dccd;

    --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

    --container: 1200px;
    --radius: 2px;
    --shadow: 0 18px 40px -20px rgba(60, 45, 25, .25);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--sans);
    font-weight: 300;
    font-size: 17px;
    line-height: 1.75;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--bronze); text-decoration: none; transition: color .2s; }
a:hover { color: var(--bronze-dark); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; color: var(--ink); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: 1.55rem; }
p { margin: 0 0 1.2em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; margin-top: 3rem; }

.eyebrow {
    display: inline-block;
    font-family: var(--sans);
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--bronze);
    margin-bottom: .9rem;
}
.divider { width: 64px; height: 1px; background: var(--taupe); margin: 1.2rem 0 1.8rem; position: relative; }
.divider::after { content: ""; position: absolute; left: 50%; top: -3px; width: 7px; height: 7px; background: var(--white); border: 1px solid var(--taupe); transform: translateX(-50%) rotate(45deg); }
.divider--center { margin-left: auto; margin-right: auto; }

/* ---------- Knoppen ---------- */
.btn {
    display: inline-block;
    padding: 16px 34px;
    background: var(--bronze);
    color: var(--white);
    font-family: var(--sans);
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    border: 1px solid var(--bronze);
    border-radius: var(--radius);
    cursor: pointer;
    transition: background .25s, color .25s, border-color .25s;
}
.btn:hover { background: var(--bronze-dark); border-color: var(--bronze-dark); color: var(--white); }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--outline { background: transparent; color: var(--bronze); }
.btn--outline:hover { background: var(--bronze); color: var(--white); }
.btn--small { padding: 11px 22px; font-size: .72rem; }

.link-arrow { font-size: .8rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--bronze); display: inline-flex; align-items: center; gap: .6em; }
.link-arrow::after { content: ""; width: 28px; height: 1px; background: currentColor; transition: width .25s; }
a:hover .link-arrow::after, .link-arrow:hover::after { width: 44px; }

/* ---------- Topbar & header ---------- */
.topbar { background: var(--cream); font-size: .8rem; color: var(--muted); letter-spacing: .05em; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 38px; }
.topbar__contact { display: flex; gap: 1.6rem; }
.topbar a { color: var(--text); }

.header { background: var(--white); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
.header.is-scrolled { box-shadow: 0 6px 24px -14px rgba(60,45,25,.3); }
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 92px; }

.logo { display: inline-flex; align-items: center; gap: 14px; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo__img { height: 56px; width: auto; max-width: 220px; object-fit: contain; }
.logo__name { font-family: var(--serif); font-weight: 600; font-size: 1.75rem; letter-spacing: .06em; line-height: 1; }
.logo--light, .logo--light:hover { color: var(--white); }
.footer .logo__img { height: 64px; }

.nav { display: flex; align-items: center; gap: 2.4rem; }
.nav a:not(.btn) { font-size: .82rem; font-weight: 400; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); position: relative; padding: 6px 0; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--bronze); transition: width .25s; }
.nav a:not(.btn):hover::after, .nav a.is-active::after { width: 100%; }
.nav a.is-active { color: var(--bronze); }
.nav__cta { margin-left: .6rem; }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 1px; background: var(--ink); margin: 7px 0; transition: transform .3s, opacity .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: calc(100vh - 130px); min-height: calc(100svh - 130px); display: flex; align-items: center; color: var(--white); overflow: hidden; background: #3a3128; }
.hero__bg, .project-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: slowzoom 18s ease-out forwards; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(35,27,19,.45) 0%, rgba(35,27,19,.55) 60%, rgba(35,27,19,.7) 100%); }
.hero--plain {
    background:
        repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 2px, transparent 2px 64px),
        radial-gradient(ellipse at 30% 20%, #8a7050 0%, #5a4733 45%, #2e261d 100%);
}
.hero--plain .hero__overlay { background: rgba(35,27,19,.15); }
.hero__content { position: relative; text-align: center; max-width: 900px; padding-top: 60px; padding-bottom: 80px; }
.hero__kicker { display: inline-block; font-size: .8rem; letter-spacing: .38em; text-transform: uppercase; color: var(--sand); margin-bottom: 1.4rem; padding: 0 1.2em; position: relative; }
.hero__kicker::before, .hero__kicker::after { content: ""; position: absolute; top: 50%; width: 36px; height: 1px; background: var(--taupe); }
.hero__kicker::before { right: 100%; }
.hero__kicker::after { left: 100%; }
.hero h1 { color: var(--white); font-weight: 400; margin-bottom: .45em; }
.hero p { font-size: 1.15rem; max-width: 640px; margin: 0 auto 2.4rem; color: rgba(255,255,255,.88); }
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 75%; }
.hero__scroll { position: absolute; bottom: 28px; left: 50%; width: 1px; height: 54px; background: rgba(255,255,255,.5); transform: translateX(-50%); overflow: hidden; }
.hero__scroll::after { content: ""; position: absolute; top: -20px; left: 0; width: 1px; height: 20px; background: var(--white); animation: scrolldown 2s infinite; }

@keyframes slowzoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes scrolldown { to { top: 60px; } }

/* ---------- Page hero (binnenpagina's) ---------- */
.page-hero { background: var(--cream); text-align: center; padding: 90px 0 80px; position: relative; }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--sand); }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
.page-hero p { max-width: 620px; margin: 0 auto; color: var(--muted); }

/* ---------- Secties ---------- */
.section { padding: 110px 0; }
.section--beige { background: var(--beige); }
.section--cream { background: var(--cream); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 60px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.split__media { position: relative; }
.split__media img, .split__media .ph { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split__media::before { content: ""; position: absolute; inset: -18px 18px 18px -18px; border: 1px solid var(--taupe); z-index: -1; }
.split__badge { position: absolute; right: -28px; bottom: 40px; background: var(--white); padding: 22px 28px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 14px; }
.split__badge strong { font-family: var(--serif); font-size: 2.6rem; font-weight: 500; color: var(--bronze); line-height: 1; }
.split__badge span { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; line-height: 1.4; }
.split__text p { color: var(--text); }

/* Placeholder zonder foto */
.ph { background: linear-gradient(135deg, var(--beige), var(--sand)); display: grid; place-items: center; width: 100%; height: 100%; }
.ph--tall { aspect-ratio: 4 / 5; }

/* Diensten */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--sand); border: 1px solid var(--sand); }
.service { background: var(--cream); padding: 48px 38px; text-align: center; transition: background .3s; }
.service:hover { background: var(--white); }
.service svg { width: 42px; height: 42px; fill: none; stroke: var(--bronze); stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; margin: 0 auto 1.2rem; }
.service h3 { margin-bottom: .4em; }
.service p { font-size: .95rem; color: var(--muted); margin: 0; }

/* Projectkaarten */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 370px)); justify-content: center; gap: 36px; }
.card { display: flex; flex-direction: column; background: var(--white); color: var(--text); border: 1px solid var(--line); transition: transform .35s, box-shadow .35s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); color: var(--text); }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--beige); }
.card__media img, .card__media .ph { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 28px 30px 32px; display: flex; flex-direction: column; flex: 1; }
.card__body .eyebrow { margin-bottom: .5rem; font-size: .7rem; }
.card__body h3 { font-size: 1.6rem; }
.card__body p { font-size: .95rem; color: var(--muted); flex: 1; }

.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 50px; }
.filters a { padding: 9px 20px; border: 1px solid var(--line); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text); }
.filters a:hover { border-color: var(--taupe); }
.filters a.is-active { background: var(--bronze); border-color: var(--bronze); color: var(--white); }
.empty { text-align: center; color: var(--muted); font-style: italic; font-family: var(--serif); font-size: 1.4rem; }

/* Werkwijze */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; counter-reset: s; }
.steps li { text-align: center; position: relative; }
.steps li span { display: block; font-family: var(--serif); font-size: 3.4rem; font-style: italic; color: var(--taupe); line-height: 1; margin-bottom: .6rem; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 28px; left: calc(50% + 50px); right: calc(-50% + 50px); height: 1px; background: var(--sand); }
.steps p { font-size: .95rem; color: var(--muted); }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; }
.values > div { padding: 40px 30px; background: var(--white); border: 1px solid var(--line); }
.values p { color: var(--muted); margin: 0; }

/* CTA-band */
.cta { background: #3a3128; color: var(--sand); padding: 80px 0; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 1px, transparent 1px 56px); }
.cta__inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; position: relative; }
.cta h2 { color: var(--white); margin-bottom: .25em; }
.cta p { margin: 0; color: rgba(227,213,191,.85); }
.cta .btn { flex-shrink: 0; }

/* ---------- Projectdetail ---------- */
.project-hero { position: relative; min-height: 62vh; display: flex; align-items: flex-end; color: var(--white); overflow: hidden; background: #3a3128; }
.project-hero--plain { min-height: 44vh; background: radial-gradient(ellipse at 30% 20%, #8a7050 0%, #5a4733 45%, #2e261d 100%); }
.project-hero__content { position: relative; padding-bottom: 60px; padding-top: 80px; }
.project-hero h1 { color: var(--white); font-weight: 400; max-width: 900px; font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
.project-hero .hero__kicker { padding: 0; }
.project-hero .hero__kicker::before, .project-hero .hero__kicker::after { display: none; }
.back { display: block; width: max-content; color: rgba(255,255,255,.8); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 1.6rem; }
.back::before { content: "\2190\00a0\00a0"; }
.back:hover { color: var(--white); }

.project { display: grid; grid-template-columns: 1fr 340px; gap: 80px; align-items: start; }
.project__body { font-size: 1.06rem; }
.lead { font-family: var(--serif); font-size: 1.6rem; line-height: 1.5; color: var(--ink); margin-bottom: 1.6em; padding-bottom: 1.2em; border-bottom: 1px solid var(--line); }
.project__aside { position: sticky; top: 120px; }
.project__aside dl { margin: 0 0 30px; border-top: 1px solid var(--line); }
.project__aside dt { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); padding-top: 16px; }
.project__aside dd { margin: 2px 0 0; padding-bottom: 16px; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 1.3rem; color: var(--ink); }
.aside-cta { background: var(--beige); padding: 32px; }
.aside-cta p { font-size: .95rem; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 80px; }
.gallery__item { overflow: hidden; aspect-ratio: 1; background: var(--beige); cursor: zoom-in; }
.gallery__item:nth-child(5n + 1) { grid-column: span 2; grid-row: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery__item:hover img { transform: scale(1.04); }

.pager { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 100px; }
.pager a { display: flex; flex-direction: column; font-family: var(--serif); font-size: 1.5rem; color: var(--ink); max-width: 45%; }
.pager small { font-family: var(--sans); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--bronze); }
.pager__next { text-align: right; margin-left: auto; }

.lightbox { position: fixed; inset: 0; background: rgba(25,20,15,.94); z-index: 100; display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 88vw; max-height: 86vh; object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox button { position: absolute; background: none; border: 0; color: var(--sand); font-size: 3rem; cursor: pointer; padding: 10px 20px; line-height: 1; }
.lightbox button:hover { color: var(--white); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 10px; top: 50%; transform: translateY(-50%); }

.preview-bar { background: var(--bronze); color: var(--white); text-align: center; padding: 10px; font-size: .9rem; letter-spacing: .05em; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 380px 1fr; gap: 80px; align-items: start; }
.contact__info dl { margin: 0; }
.contact__info dt { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--bronze); margin-top: 1.4rem; }
.contact__info dd { margin: .2rem 0 0; font-family: var(--serif); font-size: 1.3rem; color: var(--ink); line-height: 1.5; }
.contact__info dd a { color: var(--ink); }
.contact__form { background: var(--cream); padding: 50px; border: 1px solid var(--line); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: block; margin-bottom: 22px; }
.field span { display: block; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input, .field textarea, .field select {
    width: 100%; font: inherit; font-weight: 400; font-size: 1rem; color: var(--ink);
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 15px; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--taupe); box-shadow: 0 0 0 3px rgba(194,168,131,.2); }
.field small { display: block; color: #a4442f; margin-top: 6px; font-size: .85rem; }
.field.has-error input, .field.has-error textarea { border-color: #c98b7c; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 30px; }
.notice--ok { border-left: 3px solid var(--bronze); background: var(--white); }

/* ---------- Footer ---------- */
.footer { background: #2b2620; color: rgba(227,213,191,.75); padding: 90px 0 0; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 50px; padding-bottom: 60px; }
.footer h4 { color: var(--white); font-size: 1.35rem; margin-bottom: 1.1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: .5rem; }
.footer a { color: rgba(227,213,191,.85); }
.footer a:hover { color: var(--white); }
.footer__about { margin-top: 1.4rem; max-width: 320px; }
.socials { display: flex; gap: 1.2rem; margin-top: 1rem; }
.footer__bottom { display: flex; justify-content: space-between; border-top: 1px solid rgba(227,213,191,.15); padding-top: 24px; padding-bottom: 24px; font-size: .82rem; }
.footer__admin { opacity: .5; }

/* ---------- Animatie bij scrollen ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; }
    .hero__bg, .project-hero__img { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .services { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .steps li::after { display: none; }
    .split, .project, .contact { gap: 50px; }
    .project { grid-template-columns: 1fr 280px; }
    .contact { grid-template-columns: 1fr 1.4fr; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .nav {
        position: fixed; inset: 0 0 0 auto; width: min(320px, 85vw); background: var(--white);
        flex-direction: column; align-items: flex-start; gap: 1.6rem; padding: 110px 36px 36px;
        transform: translateX(100%); transition: transform .35s ease; box-shadow: -20px 0 40px -20px rgba(0,0,0,.2);
    }
    .nav.is-open { transform: none; }
    .nav__cta { margin: 1rem 0 0; }
    .nav-toggle { position: relative; z-index: 60; }
    .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .split, .project, .contact { grid-template-columns: 1fr; }
    .split__badge { right: 16px; }
    .project__aside { position: static; }
    .values { grid-template-columns: 1fr; }
    .cta__inner { flex-direction: column; text-align: center; }
}

@media (max-width: 640px) {
    body { font-size: 16px; }
    .container { padding: 0 16px; }
    .topbar__inner > span:first-child { display: none; }
    .topbar__inner { justify-content: center; }
    .topbar__contact { gap: 1rem; flex-wrap: wrap; justify-content: center; }
    .header__inner { min-height: 76px; }
    .logo__img { height: 44px; max-width: 170px; }
    .logo__name { font-size: 1.45rem; }
    .section { padding: 72px 0; }
    .services, .steps, .form-row { grid-template-columns: 1fr; }
    .grid { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
    .gallery__item:nth-child(5n + 1) { grid-column: span 2; grid-row: auto; }
    .split__media::before { display: none; }
    .contact__form { padding: 28px 20px; }
    .footer__grid { grid-template-columns: 1fr; gap: 36px; }
    .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
    .pager a { font-size: 1.2rem; }
    .hero__kicker::before, .hero__kicker::after { width: 20px; }
}
