/* BS Timmerwerken: "werkplaats" look. Warm cream paper, dark wood, oak accent,
   serif headings and a measuring-ruler motif as signature element. */
:root {
  --wood: #2e2119;
  --wood-2: #3b2a1e;
  --oak: #b8732e;
  --oak-dark: #8f5620;
  --oak-soft: #f1e2cf;
  --cream: #f6f1ea;
  --paper: #fffdf9;
  --text: #2a211b;
  --muted: #6b5d52;
  --line: #e3d8ca;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 1px 2px rgb(46 33 25 / 6%), 0 18px 40px -12px rgb(46 33 25 / 22%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.65 var(--sans); color: var(--text); background: var(--paper); }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0; color: var(--wood); letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); }
h3 { font-size: 1.35rem; }
h1 em, h2 em { font-style: italic; color: var(--oak); }
p { margin: 0; }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 52ch; margin-top: 18px; }

/* Ruler: tick marks every 10px, longer every 50px */
.ruler {
  height: 14px;
  background:
    repeating-linear-gradient(90deg, var(--oak) 0 1px, transparent 1px 50px) left bottom / 100% 14px no-repeat,
    repeating-linear-gradient(90deg, var(--oak) 0 1px, transparent 1px 10px) left bottom / 100% 7px no-repeat;
  opacity: .55;
}

/* Small section label: "01  Diensten" */
.label { display: flex; align-items: center; gap: 12px; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--oak-dark); margin-bottom: 18px; }
.label span { font-family: var(--serif); font-style: italic; font-size: 1rem; letter-spacing: 0; color: var(--oak); }
.label::after { content: ""; width: 48px; height: 1px; background: currentColor; opacity: .5; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgb(246 241 234 / 92%); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 1.3rem; color: var(--wood); white-space: nowrap; }
.logo b { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; background: var(--wood); color: var(--oak-soft); font-size: .95rem; letter-spacing: .02em; }
.logo img { height: 46px; width: auto; }
nav { margin-left: auto; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
nav a { text-decoration: none; font-size: .95rem; font-weight: 500; color: var(--wood); padding: 6px 0; border-bottom: 2px solid transparent; }
nav a:hover { color: var(--oak-dark); }
nav a[aria-current="page"] { border-color: var(--oak); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: .95rem; text-decoration: none; background: var(--oak); color: #fff; border: 2px solid var(--oak); box-shadow: 0 8px 22px -8px rgb(184 115 46 / 70%); transition: background .2s, transform .2s; }
.btn:hover { background: var(--oak-dark); border-color: var(--oak-dark); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--wood); border-color: var(--wood); box-shadow: none; }
.btn.ghost:hover { background: var(--wood); color: #fff; }
.btn.light { background: var(--paper); color: var(--wood); border-color: var(--paper); box-shadow: none; }
.btn.line-light { background: transparent; border-color: rgb(255 255 255 / 45%); box-shadow: none; }
.btn.small { padding: 10px 18px; font-size: .88rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.arrow-link { font-weight: 600; color: var(--oak-dark); text-decoration: none; }
.arrow-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Photo with oak offset frame; shows --img, falls back to a wood-grain placeholder */
.photo {
  position: relative; aspect-ratio: 4 / 5; border-radius: 6px;
  background:
    var(--img, none) center / cover,
    repeating-linear-gradient(100deg, #e9dccb 0 3px, #efe4d6 3px 9px, #e6d7c4 9px 11px);
}
.photo.framed { box-shadow: var(--shadow); }
.photo.framed::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 2px solid var(--oak); border-radius: 6px; z-index: -1; }
.photo.wide { aspect-ratio: 4 / 3; }

/* Hero */
.hero { background: var(--cream); padding: 72px 0 96px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 72px; align-items: center; }
.hero .photo-wrap { position: relative; isolation: isolate; }
.trust { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--muted); font-size: .92rem; }
.trust li::before { content: "✓"; color: var(--oak); font-weight: 700; margin-right: 8px; }

/* Rotating stamp on the hero photo */
.stamp { position: absolute; left: -48px; bottom: 36px; width: 132px; height: 132px; border-radius: 50%; background: var(--wood); color: var(--oak-soft); box-shadow: var(--shadow); display: grid; place-items: center; }
.stamp svg { position: absolute; inset: 0; animation: spin 24s linear infinite; }
.stamp text { font: 700 10.5px var(--sans); letter-spacing: .22em; fill: currentColor; text-transform: uppercase; }
.stamp b { font-family: var(--serif); font-size: 1.7rem; color: var(--oak); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Marquee band */
.marquee { background: var(--wood); color: var(--oak-soft); overflow: hidden; padding: 18px 0; }
.marquee div { display: flex; width: max-content; animation: slide 38s linear infinite; }
.marquee span { font-family: var(--serif); font-size: 1.35rem; font-style: italic; padding: 0 28px; white-space: nowrap; }
.marquee span::after { content: "✦"; font-style: normal; color: var(--oak); font-size: .9rem; margin-left: 56px; vertical-align: middle; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .stamp svg, .marquee div { animation: none; } }

/* Sections */
section { padding: 104px 0; }
section.cream { background: var(--cream); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 56px; }

/* Services as an editorial list */
.services-split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; }
.services-split > div:first-child { position: sticky; top: 120px; }
.service-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.service-list a { display: grid; grid-template-columns: 56px 1fr auto; gap: 20px; align-items: baseline; padding: 28px 4px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background .2s, padding .2s; }
.service-list a:hover { background: var(--cream); padding-left: 16px; }
.service-list i { font-family: var(--serif); color: var(--oak); font-size: 1.05rem; }
.service-list p { color: var(--muted); margin-top: 6px; font-size: .98rem; }
.service-list a::after { content: "→"; color: var(--oak); font-size: 1.3rem; }

/* Project mosaic with captions on the photo */
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; gap: 18px; }
.mosaic .big { grid-column: span 2; grid-row: span 2; }
.tile { margin: 0; position: relative; overflow: hidden; border-radius: 6px; display: flex; align-items: end; text-decoration: none; }
.tile .photo { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; transition: transform .5s; }
.tile:hover .photo { transform: scale(1.04); }
.tile figcaption, .tile .caption { position: relative; width: 100%; padding: 48px 22px 18px; color: #fff; background: linear-gradient(transparent, rgb(30 21 15 / 78%)); }
.tile small { display: block; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--oak-soft); }
.tile strong { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; }

/* About */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 88px; align-items: center; }
.about .photo-wrap { position: relative; isolation: isolate; }
blockquote { margin: 32px 0 0; padding: 0 0 0 24px; border-left: 3px solid var(--oak); font-family: var(--serif); font-style: italic; font-size: 1.35rem; line-height: 1.45; color: var(--wood); }
blockquote footer { margin-top: 12px; font: 600 .85rem var(--sans); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: baseline; }
.checks li::before { content: "✓"; color: var(--oak); font-weight: 700; }

/* Process steps on a line */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 27px; left: 28px; right: 28px; height: 1px; background: var(--oak); opacity: .45; }
.steps li { position: relative; counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--paper); border: 1px solid var(--oak); color: var(--oak-dark); font-family: var(--serif); font-style: italic; font-size: 1.15rem; margin-bottom: 22px; }
.steps p { color: var(--muted); margin-top: 8px; font-size: .97rem; }

/* FAQ accordion */
.faq-split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: baseline; padding: 24px 0; font-family: var(--serif); font-size: 1.2rem; color: var(--wood); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { color: var(--oak); font-size: .95rem; }
.faq summary::after { content: "+"; font: 400 1.6rem/1 var(--sans); color: var(--oak); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 24px 56px; }

/* Closing call to action */
.cta { background: var(--wood); color: var(--oak-soft); text-align: center; padding: 0 0 104px; }
.cta .ruler { margin-bottom: 96px; }
.cta h2 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); }
.cta p { max-width: 50ch; margin: 18px auto 0; opacity: .85; }
.cta .actions { justify-content: center; }

/* Sub page heading */
.page-head { background: var(--cream); padding: 88px 0 0; }
.page-head .ruler { margin-top: 72px; }

/* Services page: alternating photo and text */
.zigzag { display: grid; gap: 96px; }
.zigzag article { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.zigzag article:nth-child(even) .photo-wrap { order: 2; }
.zigzag .photo-wrap { position: relative; isolation: isolate; }
.zigzag p { color: var(--muted); margin-top: 14px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 40px; box-shadow: var(--shadow); }
.panel h2 { font-size: 1.9rem; }
.panel p { color: var(--muted); margin-top: 14px; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.contact-list li { display: grid; grid-template-columns: 120px 1fr; gap: 12px; }
.contact-list strong { font-weight: 600; }

/* Footer */
.site-footer { background: #1f1712; color: rgb(255 255 255 / 68%); padding: 72px 0 28px; font-size: .95rem; }
.site-footer .cols { display: grid; gap: 40px; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.site-footer h4 { color: #fff; font: italic 600 1.1rem var(--serif); margin: 0 0 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .logo { color: #fff; margin-bottom: 16px; }
.site-footer .logo b { background: var(--oak); color: #fff; }
.site-footer .bottom { border-top: 1px solid rgb(255 255 255 / 10%); margin-top: 56px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: .88rem; }

/* Responsive */
@media (max-width: 980px) {
  .site-header .wrap { flex-wrap: wrap; gap: 6px 16px; padding-block: 12px; min-height: 0; }
  .site-header .btn { margin-left: auto; }
  nav { order: 3; width: 100%; margin: 0; }
  nav ul { justify-content: space-between; gap: 10px; }
  nav a { font-size: .88rem; white-space: nowrap; }
  .hero .wrap, .services-split, .about, .faq-split, .zigzag article, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .services-split > div:first-child { position: static; }
  .zigzag article:nth-child(even) .photo-wrap { order: 0; }
  .hero .photo-wrap, .about .photo-wrap, .zigzag .photo-wrap { margin-right: 22px; }
  .stamp { left: auto; right: -14px; bottom: -30px; width: 112px; height: 112px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 220px; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  section { padding: 72px 0; }
  .hero { padding: 48px 0 80px; }
  .logo { font-size: 1.1rem; }
  .logo b { width: 32px; height: 32px; font-size: .8rem; }
  .site-header .btn { padding: 8px 14px; font-size: .8rem; }
  nav a { font-size: .8rem; }
  .photo { aspect-ratio: 4 / 4.2; }
  .mosaic { grid-template-columns: 1fr; }
  .mosaic .big { grid-column: auto; grid-row: span 1; }
  .steps { grid-template-columns: 1fr; }
  .panel { padding: 28px; }
  .contact-list li { grid-template-columns: 1fr; gap: 0; }
  .site-footer .cols { grid-template-columns: 1fr; }
}
