/* ==========================================================================
   Schouten Bouw & Verbouw
   Palet en vormtaal komen uit hun eigen werk: zwart gepotdekseld hout,
   douglas balken, zink, gebakken steen. Signatuur is de "balkenrand": het
   ritme van een overkapping, als scheiding tussen secties.
   ========================================================================== */

/* ---------- Fonts (self-hosted, geen externe requests) ---------- */
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/barlow-condensed-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/barlow-condensed-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/barlow-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/barlow-600.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  --ink:        #16181A;   /* zwart gepotdekseld hout */
  --ink-2:      #212528;
  --ink-3:      #2E3337;
  --wood:       #C6883F;   /* douglas, het accent */
  --wood-lit:   #E2AE6E;
  --zinc:       #6C7378;   /* zinken goot en daktrim */
  --zinc-lit:   #9BA2A7;
  --paper:      #F5F3EF;
  --paper-2:    #EBE7E0;
  --brick:      #8A4A38;
  --white:      #FFFFFF;

  --font-display: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
  --font-body: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --wrap: 1180px;
  --gap: clamp(1rem, 3vw, 2rem);
  --section-y: clamp(3.5rem, 8vw, 6.5rem);
  --radius: 2px;             /* bouw is recht, niet rond */
  --shadow: 0 2px 8px rgba(22, 24, 26, .10), 0 12px 32px rgba(22, 24, 26, .08);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, .96rem + .2vw, 1.115rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ---------- Typografie ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: .015em;
  text-transform: uppercase;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6.5vw, 4.6rem); }
h2 { font-size: clamp(1.95rem, 4.2vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); letter-spacing: .03em; }
h4 { font-size: 1.1rem; letter-spacing: .05em; }
p  { margin: 0 0 1.1em; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1.12rem, 1rem + .6vw, 1.35rem);
  line-height: 1.55;
  color: var(--ink-3);
}

/* Kicker: klein label boven een kop, met een douglas streep */
.kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .82rem;
  color: var(--wood);
  margin: 0 0 1rem;
}
.kicker::before {
  content: ""; width: 2.2rem; height: 3px;
  background: var(--wood); flex: none;
}
.on-dark .kicker { color: var(--wood-lit); }
.on-dark .kicker::before { background: var(--wood-lit); }

/* ---------- Layout ---------- */
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section--dark { background: var(--ink); color: var(--paper); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }
.section--tint { background: var(--paper-2); }

.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--ink-3); }
.section--dark .section-head p { color: var(--zinc-lit); }

/* Signatuur: balkenrand. Het ritme van de douglas balklaag van een
   overkapping, zoals op verbouw-2.jpg en verbouw-4.jpg. */
.beams {
  height: 14px;
  background:
    repeating-linear-gradient(90deg,
      var(--wood) 0 10px,
      transparent 10px 26px);
  border-top: 3px solid var(--ink);
  opacity: .9;
}
.section--dark .beams { border-top-color: var(--paper); }

/* ---------- Skip link ---------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--wood); color: var(--ink);
  padding: .8rem 1.2rem; font-weight: 600;
}
.skip:focus { left: 0; }

/* ---------- Focus ---------- */
:focus-visible {
  outline: 3px solid var(--wood);
  outline-offset: 3px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 68px;
}
.brand {
  display: inline-flex; align-items: center; gap: .7rem;
  text-decoration: none; color: var(--white); flex: none;
}
.brand img { height: 34px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-display); font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em; font-size: 1.16rem;
}
.brand-sub {
  font-family: var(--font-display); font-weight: 600;
  text-transform: uppercase; letter-spacing: .2em;
  font-size: .66rem; color: var(--zinc-lit); margin-top: .22rem;
}

.nav { display: flex; align-items: center; gap: .25rem; }
.nav a {
  font-family: var(--font-display); font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em; font-size: .96rem;
  color: var(--paper-2); text-decoration: none;
  padding: .55rem .8rem; border-radius: var(--radius);
  transition: color .15s, background-color .15s;
}
.nav a:hover { color: var(--white); background: rgba(255,255,255,.07); }
.nav a[aria-current="page"] { color: var(--wood-lit); }
.nav a[aria-current="page"]::after {
  content: ""; display: block; height: 2px; background: var(--wood);
  margin-top: .25rem;
}

.header-cta { display: flex; align-items: center; gap: .6rem; flex: none; }

.nav-toggle {
  display: none;
  background: transparent; border: 1px solid rgba(255,255,255,.25);
  color: var(--white); border-radius: var(--radius);
  padding: .5rem .7rem; cursor: pointer; font: inherit;
  align-items: center; gap: .5rem;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; background: currentColor;
  position: relative;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px;
  background: currentColor;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink-2);
    border-bottom: 3px solid var(--wood);
    padding: .5rem 0 1rem;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .85rem 1.25rem; font-size: 1.05rem; }
  .nav a[aria-current="page"]::after { display: none; }
  .header-cta .btn--ghost { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .55rem;
  font-family: var(--font-display); font-weight: 700;
  text-transform: uppercase; letter-spacing: .09em;
  font-size: 1.02rem; line-height: 1;
  padding: .95rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none; border: 2px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background-color .15s, color .15s, border-color .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }

.btn--primary { background: var(--wood); color: var(--ink); border-color: var(--wood); }
.btn--primary:hover { background: var(--wood-lit); border-color: var(--wood-lit); }

.btn--dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn--dark:hover { background: var(--ink-3); border-color: var(--ink-3); }

.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.35); }
.btn--ghost:hover { border-color: var(--wood); color: var(--wood-lit); }

.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--white); }

.btn--sm { padding: .6rem 1rem; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(15,17,19,.94) 0%, rgba(15,17,19,.86) 42%, rgba(15,17,19,.55) 72%, rgba(15,17,19,.42) 100%);
}
@media (max-width: 760px) {
  .hero-media::after {
    background: linear-gradient(to bottom, rgba(15,17,19,.80) 0%, rgba(15,17,19,.90) 55%, rgba(15,17,19,.95) 100%);
  }
}
.hero-inner {
  position: relative;
  padding-block: clamp(3.5rem, 9vw, 7rem);
  max-width: 44rem;
}
.hero h1 { color: var(--white); margin-bottom: .35em; }
.hero h1 .accent { color: var(--wood); display: block; }
.hero p { color: #D9D5CE; }
.hero .btn-row { margin-top: 2rem; }

.hero-facts {
  display: flex; flex-wrap: wrap; gap: 1.6rem;
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.16);
}
.hero-fact { display: flex; flex-direction: column; gap: .15rem; }
.hero-fact b {
  font-family: var(--font-display); font-size: 1.5rem;
  font-weight: 700; color: var(--wood-lit); line-height: 1;
}
.hero-fact span { font-size: .88rem; color: var(--zinc-lit); letter-spacing: .04em; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: var(--gap); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--paper-2);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 4px 12px rgba(22,24,26,.14), 0 18px 40px rgba(22,24,26,.12); }
.card-media { aspect-ratio: 4 / 3; background: var(--paper-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1.5rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: .5rem; }
.card-body p { color: var(--ink-3); font-size: .98rem; }
.card-link {
  margin-top: auto; padding-top: 1rem;
  font-family: var(--font-display); font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink); text-decoration: none;
  display: inline-flex; align-items: center; gap: .45rem;
  border-bottom: 0;
}
.card-link::after { content: "\2192"; transition: transform .15s; }
.card:hover .card-link::after { transform: translateX(4px); }
.card-link:hover { color: var(--brick); }

/* Card met douglas kopstreep */
.card--service { border-top: 4px solid var(--wood); }

/* ---------- Projecten ---------- */
.project-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
}
.project {
  position: relative; overflow: hidden;
  border-radius: var(--radius); background: var(--ink);
  aspect-ratio: 4 / 3;
}
.project img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.project:hover img { transform: scale(1.04); }
.project figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.6rem 1.1rem .95rem;
  background: linear-gradient(to top, rgba(12,14,15,.92), rgba(12,14,15,0));
  color: var(--white);
  font-family: var(--font-display); font-weight: 600;
  text-transform: uppercase; letter-spacing: .07em;
  font-size: 1rem; line-height: 1.2;
}
.project figcaption small {
  display: block; font-family: var(--font-body); font-weight: 400;
  text-transform: none; letter-spacing: 0; font-size: .86rem;
  color: #CFCAC2; margin-top: .3rem;
}
/* Dubbele breedte, dus ook dubbele verhouding: anders wordt de tegel twee keer
   zo hoog als zijn buren en valt het raster uit elkaar. */
.project--wide { grid-column: span 2; aspect-ratio: 8 / 3; }
@media (max-width: 640px) {
  .project--wide { grid-column: span 1; aspect-ratio: 4 / 3; }
}

/* ---------- Werkwijze (HowTo) ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 1rem; }
.step {
  counter-increment: step;
  display: grid; grid-template-columns: auto 1fr; gap: 1.1rem;
  align-items: start;
  padding: 1.35rem 1.4rem;
  background: var(--white); border: 1px solid var(--paper-2);
  border-left: 4px solid var(--wood);
  border-radius: var(--radius);
}
.section--dark .step { background: var(--ink-2); border-color: rgba(255,255,255,.10); border-left-color: var(--wood); }
.step::before {
  content: counter(step);
  font-family: var(--font-display); font-weight: 700; font-size: 1.6rem;
  color: var(--wood); line-height: 1; min-width: 1.6rem;
}
.step h3 { margin-bottom: .3rem; font-size: 1.18rem; }
.step p { font-size: .97rem; color: var(--ink-3); margin: 0; }
.section--dark .step p { color: var(--zinc-lit); }

/* ---------- Trust / USP ---------- */
.usp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.usp {
  display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: start;
}
.usp svg { width: 1.5rem; height: 1.5rem; color: var(--wood); flex: none; margin-top: .15rem; }
.usp b { display: block; font-family: var(--font-display); font-size: 1.15rem; letter-spacing: .03em; text-transform: uppercase; }
.usp span { color: var(--ink-3); font-size: .97rem; }
.section--dark .usp span { color: var(--zinc-lit); }

/* ---------- Split ---------- */
.split {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-text { grid-template-columns: 1.15fr .85fr; }
}
/* max-height houdt staande foto's in toom, zodat ze de tekst ernaast niet
   overvleugelen. */
.split-media img {
  border-radius: var(--radius); box-shadow: var(--shadow);
  width: 100%; max-height: 34rem; object-fit: cover;
}

/* ---------- Offerteblok ---------- */
.quote-band { background: var(--wood); color: var(--ink); }
.quote-band .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.75rem;
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
.quote-band h2 { margin-bottom: .4rem; color: var(--ink); }
.quote-band p { color: rgba(22,24,26,.82); margin: 0; max-width: 46ch; }
.quote-band .btn-row { flex: none; }

/* ---------- Contactkaarten ---------- */
.contact-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.contact-card {
  background: var(--white); border: 1px solid var(--paper-2);
  border-top: 4px solid var(--wood);
  border-radius: var(--radius); padding: 1.5rem;
  text-decoration: none; color: inherit; display: block;
  box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s;
}
a.contact-card:hover { transform: translateY(-3px); }
.contact-card .label {
  font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: .16em; font-size: .78rem; color: var(--zinc);
  display: block; margin-bottom: .45rem;
}
.contact-card .value {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.15;
  overflow-wrap: anywhere;
}
/* Een e-mailadres is een lang, onbreekbaar woord. Kleiner zetten voorkomt dat
   er een losse letter op de volgende regel belandt. */
.contact-card .value--sm { font-size: clamp(.98rem, 1.5vw, 1.12rem); letter-spacing: .01em; }
.contact-card .note { display: block; margin-top: .5rem; font-size: .9rem; color: var(--ink-3); }

/* ---------- Kaart ---------- */
.map-link {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--paper-2); border-radius: var(--radius);
  overflow: hidden; background: var(--white); box-shadow: var(--shadow);
}
.map-link img { width: 100%; height: auto; }
.map-link span {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .9rem 1.2rem;
  font-family: var(--font-display); font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
}
.map-link:hover span { color: var(--brick); }
.map-placeholder {
  aspect-ratio: 16 / 9; display: grid; place-content: center; text-align: center;
  background: var(--paper-2); color: var(--zinc); padding: 1rem;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em;
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .7rem; max-width: 52rem; }
.faq details {
  background: var(--white); border: 1px solid var(--paper-2);
  border-radius: var(--radius); padding: 0;
}
.faq details[open] { border-color: var(--wood); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 1.1rem 1.3rem;
  font-family: var(--font-display); font-weight: 700;
  text-transform: uppercase; letter-spacing: .03em;
  font-size: 1.1rem; line-height: 1.25;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.6rem; color: var(--wood); line-height: 1; flex: none;
}
.faq details[open] summary::after { content: "\2212"; }
.faq .faq-body { padding: 0 1.3rem 1.25rem; }
.faq .faq-body p { color: var(--ink-3); }

/* ---------- Prose (over ons, privacy) ---------- */
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 1.8rem; }
.prose ul { padding-left: 1.2rem; max-width: 68ch; }
.prose li { margin-bottom: .5rem; }
.prose a { color: var(--brick); text-underline-offset: 3px; }

/* ---------- Breadcrumbs ---------- */
.crumbs {
  font-size: .88rem; color: var(--zinc);
  padding-block: 1rem; letter-spacing: .02em;
}
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; }
.crumbs li::after { content: "/"; margin-left: .45rem; color: var(--zinc-lit); }
.crumbs li:last-child::after { content: ""; }
.crumbs a { color: var(--zinc); text-decoration: none; }
.crumbs a:hover { color: var(--brick); text-decoration: underline; }
.crumbs [aria-current="page"] { color: var(--ink); }

/* ---------- Pagina-kop ---------- */
.page-head { background: var(--ink); color: var(--paper); padding-block: clamp(2.5rem, 6vw, 4.25rem); }
.page-head h1 { color: var(--white); }
.page-head p { color: var(--zinc-lit); max-width: 60ch; margin-bottom: 0; }
.page-head .crumbs { padding-top: 0; padding-bottom: 1.25rem; }
.page-head .crumbs a, .page-head .crumbs li::after { color: var(--zinc-lit); }
.page-head .crumbs [aria-current="page"] { color: var(--wood-lit); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--zinc-lit); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer-grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}
.site-footer .footer-heading {
  color: var(--white); letter-spacing: .14em; font-size: .85rem;
  margin-bottom: 1rem;
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  line-height: 1.02;
}
.site-footer a { color: var(--paper-2); text-decoration: none; }
.site-footer a:hover { color: var(--wood-lit); text-decoration: underline; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-brand .brand-name { color: var(--white); font-size: 1.35rem; }
.footer-brand p { font-size: .95rem; margin-top: 1rem; color: var(--zinc-lit); }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between;
  font-size: .86rem;
}
.footer-nap { font-style: normal; }
.footer-nap b { color: var(--white); font-weight: 600; }

/* ---------- Utilities ---------- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.stack > * + * { margin-top: 1.1rem; }
