:root {
  --beige: #F2EDE6;
  --white: #ffffff;
  --ink: #211f1c;       /* headings */
  --text: #55514e;      /* body text */
  --brown: #927e6a;     /* buttons */
  --brown-dark: #7a6858;
  --link: #a68455;
  --dark: #342c1c;      /* footer */
  --mist: #ecf3f3;
  --radius: 10px;
  --maxw: 1200px;
  --font-body: "Roboto", Arial, sans-serif;
  --font-head: "Barlow Semi Condensed", "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 106.25%; scroll-behavior: smooth; } /* = 17px, as in the original */
body {
  margin: 0;
  background: var(--beige);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
a:hover, a:focus { color: var(--brown); }
p { margin: 0 0 1em; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 .5em;
}
h1 { font-size: 48px; line-height: 1.4; }
h2 { font-size: 38px; line-height: 1.3; }
h3 { font-size: 30px; line-height: 1.3; }
h4 { font-size: 24px; line-height: 1.2; }
strong { font-weight: 700; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.section { padding: 100px 0; }
.center { text-align: center; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: .6em 1em; z-index: 1000; }
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--brown);
  color: #fff;
  border: 0;
  border-radius: 3px;
  padding: 14px 28px;
  font: 600 13px/1.2 var(--font-body);
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s;
}
.btn:hover, .btn:focus { background: var(--brown-dark); color: #fff; }

/* ---------- Header ---------- */
.site-header { background: #fff; position: relative; z-index: 50; }
.header-inner { display: flex; flex-direction: column; align-items: center; padding: 14px 20px 8px; }
.logo img { width: 109px; height: auto; }
.nav-toggle {
  display: none; position: absolute; right: 20px; top: 28px;
  background: none; border: 1px solid #d9d5cf; border-radius: 3px; padding: 8px 12px;
  font: 600 12px var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--text); cursor: pointer;
}
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 34px; align-items: center; justify-content: center; }
.nav li { position: relative; }
.nav a {
  display: inline-block; padding: 12px 0;
  color: var(--text); text-decoration: none;
  font: 600 12px/1.2 var(--font-body); letter-spacing: .06em; text-transform: uppercase;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav .has-sub > a::after {
  content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 0 3px 7px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
}
.nav .sub {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  min-width: 210px; background: #fff; padding: 8px 20px; display: none; flex-direction: column; gap: 0; align-items: flex-start;
  border-top: 2px solid var(--ink); box-shadow: 0 8px 24px rgba(0,0,0,.08); z-index: 60;
}
.nav li:hover > .sub, .nav li:focus-within > .sub, .nav li.open > .sub { display: flex; }

/* ---------- Home ---------- */
.hero { background: var(--beige) url("../images/Ontwerp-zonder-titel-38.png") left center / contain no-repeat; }
.hero .container { display: flex; justify-content: flex-end; }
.hero-card { background: #fff; border-radius: 0 0 var(--radius) var(--radius); width: min(720px, 100%); padding: 100px 100px 100px 50px; margin-bottom: 100px; }
.hero-card h1 { letter-spacing: .01em; margin-bottom: .35em; }
.hero-card .tagline { font-size: 18px; line-height: 1.8; font-style: italic; margin-bottom: 1em; }
.hero-card .lead { font-size: 16px; margin-bottom: 1.6em; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split img { border-radius: var(--radius); }
.split .photo { justify-self: center; width: 100%; }
.split .photo.sm { max-width: 300px; }
.split .photo.md { max-width: 400px; }

.band {
  background: #ece6dd url("../images/werk-1.jpg") center / cover no-repeat;
  background-image: linear-gradient(rgba(255,255,255,.31), rgba(255,255,255,.31)), url("../images/werk-1.jpg");
  min-height: 67vh; display: flex; align-items: center; padding: 60px 0;
}
.band .container { display: flex; justify-content: flex-end; }
.card-beige { background: var(--beige); border-radius: var(--radius); padding: 40px; width: min(640px, 100%); }
.card-beige h2 { margin-bottom: .1em; }
.card-beige .year { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 1.6em; }
.card-beige h3 { font-size: 30px; }

.quote { background: var(--text); text-align: center; padding: 48px 24px; }
.quote img { width: 80px; margin: 0 auto 18px; }
.quote h3 { color: #fff; max-width: 820px; margin: 0 auto .6em; }
.quote h4 { color: #fff; font: 600 16px/1.2 var(--font-body); letter-spacing: 2px; text-transform: uppercase; margin: 0; }

.wording { background: #4b4337 url("../images/Ontwerp-zonder-titel-34.png") center / cover no-repeat; padding: 70px 0; }
.wording-grid { display: grid; grid-template-columns: 30% 1fr; gap: 20px; align-items: center; margin: 0 50px; }
.wording-grid .qm { width: 100%; max-width: 260px; justify-self: center; }
.wording-card { background: rgba(255,255,255,.88); border-radius: var(--radius); padding: 50px; }

/* ---------- Page titles ---------- */
.page-title { padding: 100px 0 40px; text-align: center; }
.page-title h1 { margin-bottom: .3em; }
.page-title .rule { display: block; width: 48px; height: 2px; background: var(--ink); margin: 0 auto 1.4em; }

/* ---------- Werken ---------- */
.work-bg { background-image: url("../images/Jasper2.jpg"); background-size: 100%; background-position: center; background-repeat: repeat-y; padding: 100px 0; }
.work { padding: 60px 0; }
.work-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.work.flip .work-media { order: 2; }
.work-media img { width: 100%; border-radius: var(--radius); }
.work-card { background: #fff; border-radius: var(--radius); padding: 20px 20px 30px; }
.work-row > * { min-width: 0; }
.work-card h2 { color: var(--ink); font-size: 34px; margin: 0 0 .4em; overflow-wrap: anywhere; }
.work-card .meta, .work-card .tags { font-size: 15px; font-style: italic; color: var(--ink); }
.work-card .meta { margin-bottom: 1.2em; }
.work-card .tags { margin: 1em 0 0; }
.work-card p { color: var(--ink); }
.work.dark { background: #342c1c linear-gradient(rgba(33,31,28,.55), rgba(33,31,28,.55)), url("../images/Jasper2.jpg") center / cover no-repeat; background-image: linear-gradient(rgba(33,31,28,.55), rgba(33,31,28,.55)), url("../images/Jasper2.jpg"); padding: 100px 0; }
.work.dark .work-card { background: transparent; }
.work.dark .work-card h2, .work.dark .work-card p { color: var(--mist); }
.work.dark .work-card .meta, .work.dark .work-card .tags { color: #fff; }
.work-card .btn { margin-top: 1.2em; }

/* ---------- Collectie ---------- */
.filters { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 6px; padding: 0; margin: 0 0 36px; }
.filters button {
  background: transparent; border: 0; border-bottom: 2px solid transparent; padding: 8px 14px;
  font: 600 13px/1.2 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--text); cursor: pointer;
}
.filters button:hover { color: var(--ink); }
.filters button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--brown); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-items: start; padding-bottom: 100px; }
.gallery figure { margin: 0; }
.gallery figure[hidden] { display: none; }
.gallery a { display: block; overflow: hidden; background: #e6e0d8; }
.gallery img { width: 100%; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.04); }

.lightbox { position: fixed; inset: 0; background: rgba(15,13,10,.92); display: none; align-items: center; justify-content: center; z-index: 500; padding: 2rem; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 86vh; max-width: 92vw; width: auto; }
.lightbox .caption { position: absolute; bottom: 1rem; left: 0; right: 0; text-align: center; color: #ddd; font-size: .85rem; padding: 0 3rem; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 2.4rem; cursor: pointer; padding: .5rem 1rem; line-height: 1; }
.lightbox .close { top: .5rem; right: .75rem; }
.lightbox .prev { left: .5rem; top: 50%; transform: translateY(-50%); }
.lightbox .next { right: .5rem; top: 50%; transform: translateY(-50%); }

/* ---------- Over Jasper ---------- */
.about-hero img { width: 100%; border-radius: var(--radius); box-shadow: 48px 96px 200px -48px rgba(31,49,51,.4); }
.about-intro { align-items: start; }
.about-intro .house { width: 150px; opacity: .54; margin-top: 30px; border-radius: 0; }
.sign { text-align: center; padding: 20px 0 0; }
.sign .qm { width: 90px; margin: 0 auto 10px; }
.sign h3 { max-width: 760px; margin-inline: auto; }
.sign .sig { width: 190px; margin: 10px auto 0; }
.about-block h2 { letter-spacing: -.5px; }
.about-block .em { font-weight: 700; font-style: italic; }
.about-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 0 0 100px; }
.about-cards .card { background: #fff; border-radius: var(--radius); padding: 40px; }
.about-cards .card h3 { font-size: 28px; }

/* ---------- Contact ---------- */
.contact-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding-bottom: 104px; }
.contact-info { padding-right: 48px; }
.contact-info hr { border: 0; border-top: 1px solid #d3cdc4; margin: 24px 0; }
.icon-list { list-style: none; padding: 0; margin: 0; font-size: 18px; }
.icon-list li { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.icon-list svg { width: 14px; height: 14px; fill: var(--text); flex: none; }
.icon-list a { color: var(--text); text-decoration: none; }
.icon-list a:hover { color: var(--ink); }
.contact-form { border-left: 1px solid var(--brown); padding-left: 48px; }
.field { margin-bottom: 18px; }
label { display: block; font-size: 15px; color: var(--ink); margin-bottom: 6px; }
input, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: #fafafa; border: 1px solid #ddd; border-radius: 3px; padding: 12px 14px;
}
input:focus, textarea:focus { outline: none; border-color: var(--link); }
textarea { min-height: 170px; resize: vertical; }
.form-note { font-size: 15px; margin-top: 14px; }
.hp { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #fff; padding: 56px 0 48px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; align-items: start; }
.site-footer h4 { font: 700 15px/1.2 var(--font-body); letter-spacing: .02em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.site-footer p { margin: 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-logo { justify-self: center; }
.footer-logo img { width: 120px; filter: brightness(0) invert(1); opacity: .85; }
.footer-menu a { display: block; }
.footer-menu .social { margin-top: 14px; display: inline-flex; }
.footer-menu .social svg { width: 22px; height: 22px; fill: #fff; }
.to-top {
  position: fixed; right: 24px; bottom: 24px; width: 44px; height: 44px; border: 0; border-radius: 3px;
  background: var(--brown); color: #fff; cursor: pointer; display: none; align-items: center; justify-content: center; z-index: 90;
}
.to-top.show { display: flex; }
.to-top::before { content: ""; width: 9px; height: 9px; border-left: 2px solid #fff; border-top: 2px solid #fff; transform: translateY(2px) rotate(45deg); }

/* ---------- Responsive ---------- */
@media (min-width: 1025px) {
  .band { background-attachment: fixed; }
}
@media (max-width: 1024px) {
  .hero-card { padding: 60px 40px; }
  .section { padding: 70px 0; }
}
@media (max-width: 921px) {
  .nav-toggle { display: block; }
  .nav { display: none; width: 100%; }
  .nav.open { display: block; padding-bottom: 12px; }
  .nav ul { flex-direction: column; gap: 0; align-items: center; }
  .nav .sub { position: static; transform: none; display: flex; border: 0; box-shadow: none; padding: 0 0 6px; align-items: center; min-width: 0; }
  .nav .has-sub > a::after { display: none; }
  h1 { font-size: 40px; } h2 { font-size: 32px; } h3 { font-size: 26px; }
  .split, .work-row, .contact-cols, .footer-grid, .about-cards, .wording-grid { grid-template-columns: 1fr; }
  .split { gap: 32px; }
  .work.flip .work-media { order: 0; }
  .contact-info { padding-right: 0; }
  .contact-form { border-left: 0; padding-left: 0; margin-top: 40px; }
  .footer-logo { justify-self: start; }
  .wording-grid { margin: 0; }
  .wording-card { padding: 30px 24px; }
  .band .container, .hero .container { justify-content: center; }
  .hero { background-size: 70% auto; background-position: center top; padding-top: 260px; }
  .hero-card { border-radius: var(--radius); margin-bottom: 40px; padding: 40px 24px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .page-title { padding: 60px 0 30px; }
  .card-beige { padding: 28px 22px; }
}
@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr; }
}
