@import url('/assets/fonts/fonts.css');

/* ==========================================================================
   J&B Klusbedrijf, dakdekker specialist Sittard
   Palette derived from the trade: bitumen membrane, mineral granulate,
   zinc flashing, and the red mineral cap sheet from their own project photo.
   ========================================================================== */

:root {
  --bitumen:      #14161a;
  --bitumen-2:    #1e2228;
  --bitumen-3:    #2b3038;
  --grit:         #8b8e88;
  --zinc:         #b9bfc4;
  --kiezel:       #eaebe8;
  --kiezel-2:     #f3f4f1;
  --wit:          #fbfbfa;
  --mineraal:     #b0381f;
  --mineraal-2:   #8f2c17;
  --vlam:         #f0a020;

  --ink:          var(--bitumen);
  --ink-zacht:    #4a5058;

  --font-display: 'Archivo Black', 'Arial Black', system-ui, sans-serif;
  --font-body:    'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-label:   'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;

  --maat:  1200px;
  --smal:  760px;
  --radius: 3px;

  /* mineral granulate: high-frequency noise, the surface of every roll they lay */
  --granulaat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)' opacity='0.42'/%3E%3C/svg%3E");
}

*,*::before,*::after { box-sizing: border-box; }

html { 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(--wit);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--mineraal-2); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--mineraal); }

:focus-visible {
  outline: 3px solid var(--vlam);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--vlam); color: var(--bitumen);
  padding: .8rem 1.2rem; font-weight: 700;
}
.skip:focus { left: 0; }

/* ---------- type scale ---------- */

h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.04; letter-spacing: -0.018em; margin: 0 0 .6em; }
h1 { font-size: clamp(2.15rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(1.72rem, 3.5vw, 2.7rem); }
h3 { font-size: clamp(1.16rem, 1.9vw, 1.42rem); }
h4 { font-size: 1.05rem; }
p  { margin: 0 0 1.1em; }
p.lead { font-size: clamp(1.1rem, 1.9vw, 1.32rem); color: var(--ink-zacht); line-height: 1.55; max-width: 62ch; }

.label {
  font-family: var(--font-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .93rem;
  color: var(--mineraal);
  display: block;
  margin-bottom: .85rem;
}
.dark .label { color: var(--vlam); }

/* ---------- layout ---------- */

.wrap { width: min(100% - 2.6rem, var(--maat)); margin-inline: auto; }
.wrap-smal { width: min(100% - 2.6rem, var(--smal)); margin-inline: auto; }

section { padding: clamp(3.4rem, 7vw, 6rem) 0; }
section.dik { padding: clamp(4.2rem, 9vw, 8rem) 0; }

/* The signature: a lapped seam. Two membrane sheets overlap, the upper one
   casts a hard shadow on the lower. Every dark section starts on one. */
.dark {
  background-color: var(--bitumen);
  color: var(--kiezel);
  position: relative;
  border-top: 2px solid #05070a;
  box-shadow: inset 0 7px 0 -1px var(--bitumen-3);
}
.dark::after {
  content: ""; position: absolute; inset: 0;
  background-image: var(--granulaat);
  opacity: .16; pointer-events: none; mix-blend-mode: overlay;
}
.dark > * { position: relative; z-index: 1; }
.dark h1,.dark h2,.dark h3 { color: var(--wit); }
.dark p { color: #c9ccc8; }
/* Knoppen zijn hier uitgesloten: anders wint .dark a van .knop-bel en krijgt de
   amberkleurige knop amberkleurige tekst, dus onleesbaar. */
.dark a:not(.knop) { color: var(--vlam); }

.grijs { background: var(--kiezel); }

/* ---------- header ---------- */

.top {
  background: var(--vlam);
  color: var(--bitumen);
  font-family: var(--font-label);
  font-weight: 600;
  letter-spacing: .05em;
  font-size: 1rem;
}
.top .wrap { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; align-items: center; justify-content: center; padding: .5rem 0; text-align: center; }
.top a { color: var(--bitumen); font-weight: 700; }

.kop {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,251,250,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #d9dbd6;
}
.kop .wrap { display: flex; align-items: center; gap: 1.5rem; padding: .85rem 0; }
.kop .merk { display: flex; align-items: center; gap: .75rem; text-decoration: none; margin-right: auto; }
.kop .merk img { width: 132px; height: auto; }
.kop .merk span {
  font-family: var(--font-label); font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; font-size: .8rem; color: var(--mineraal);
  border-left: 2px solid var(--zinc); padding-left: .75rem; line-height: 1.15; max-width: 8.5rem;
}

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a {
  font-family: var(--font-label); font-weight: 600; text-transform: uppercase;
  letter-spacing: .07em; font-size: 1.02rem; color: var(--ink);
  text-decoration: none; padding: .3rem 0; border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--zinc); color: var(--mineraal-2); }
.nav a[aria-current="page"] { border-bottom-color: var(--mineraal); color: var(--mineraal); }

.nav-knop { display: none; background: none; border: 2px solid var(--bitumen); padding: .45rem .7rem; cursor: pointer; border-radius: var(--radius); }
.nav-knop span { display: block; width: 22px; height: 2px; background: var(--bitumen); margin: 4px 0; }

/* ---------- buttons ---------- */

.knop {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-label); font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; font-size: 1.09rem; 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 ease, color .15s ease;
}
.knop:hover { transform: translateY(-2px); }
.knop-primair   { background: var(--mineraal); color: #fff; border-color: var(--mineraal); }
.knop-primair:hover { background: var(--mineraal-2); color:#fff; }
.knop-bel       { background: var(--vlam); color: var(--bitumen); border-color: var(--vlam); }
.knop-bel:hover { background: #ffb52e; color: var(--bitumen); }
.knop-rand      { background: transparent; color: var(--ink); border-color: currentColor; }
.dark .knop-rand { color: var(--kiezel); }
.knop-rand:hover { background: var(--ink); color: var(--wit); border-color: var(--ink); }
.dark .knop-rand:hover { background: var(--kiezel); color: var(--bitumen); border-color: var(--kiezel); }

.knoppen { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- hero ---------- */

.hero { padding: clamp(3rem, 6vw, 5.5rem) 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.06fr .94fr; gap: clamp(2rem,4vw,3.6rem); align-items: center; }
.hero h1 { margin-bottom: .45em; }
.hero h1 em { font-style: normal; color: var(--vlam); }
.hero-foto { position: relative; }
.hero-foto img { border-radius: var(--radius); aspect-ratio: 4/3.2; object-fit: cover; width: 100%; }

/* the guarantee stamp, sprayed on the roll */
.stempel {
  position: absolute; right: -12px; bottom: -22px;
  background: var(--mineraal); color: #fff;
  border: 3px solid #fff;
  padding: .85rem 1.05rem; border-radius: var(--radius);
  transform: rotate(-7deg);
  font-family: var(--font-label); text-transform: uppercase; text-align: center;
  box-shadow: 0 10px 28px rgba(0,0,0,.34);
}
.stempel b { display: block; font-family: var(--font-display); font-size: 1.9rem; line-height: .95; letter-spacing: -.02em; }
.stempel span { display: block; font-weight: 600; letter-spacing: .11em; font-size: .82rem; }

.hero-strip { margin-top: clamp(2.4rem,5vw,3.6rem); border-top: 1px solid var(--bitumen-3); }
.hero-strip ul { list-style: none; margin: 0; padding: 1.5rem 0 0; display: grid; grid-template-columns: repeat(4,1fr); gap: 1.4rem; }
.hero-strip li { font-family: var(--font-label); text-transform: uppercase; letter-spacing: .08em; font-size: 1rem; color: var(--zinc); font-weight: 600; }
.hero-strip li b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.55rem; color: var(--wit); letter-spacing: -.02em; margin-bottom: .1rem; text-transform: none; }

/* ---------- cards ---------- */

.raster { display: grid; gap: 1.4rem; }
.raster-2 { grid-template-columns: repeat(2,1fr); }
.raster-3 { grid-template-columns: repeat(3,1fr); }
.raster-4 { grid-template-columns: repeat(4,1fr); }

.kaart {
  background: var(--wit); border: 1px solid #dcded9; border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.5rem; display: flex; flex-direction: column;
  border-top: 4px solid var(--bitumen);
  transition: border-top-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.kaart:hover { border-top-color: var(--mineraal); transform: translateY(-3px); box-shadow: 0 12px 26px rgba(20,22,26,.09); }
.kaart h3 { margin-bottom: .45rem; }
.kaart p { color: var(--ink-zacht); font-size: 1rem; margin-bottom: 1rem; }
.kaart .meer { margin-top: auto; font-family: var(--font-label); font-weight: 700; text-transform: uppercase; letter-spacing: .07em; text-decoration: none; font-size: 1rem; }
.kaart .meer::after { content: " \2192"; }
.kaart a.kaart-link { text-decoration: none; color: inherit; }

.grijs .kaart { background: var(--wit); }

/* ---------- reviews ---------- */

.review {
  background: var(--wit); border: 1px solid #dcded9; border-left: 4px solid var(--mineraal);
  border-radius: var(--radius); padding: 1.5rem 1.5rem 1.3rem;
}
.dark .review { background: var(--bitumen-2); border-color: var(--bitumen-3); border-left-color: var(--vlam); }
.review blockquote { margin: 0 0 .9rem; font-size: 1.04rem; line-height: 1.6; }
.review cite { font-style: normal; font-family: var(--font-label); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .97rem; color: var(--mineraal); }
.dark .review cite { color: var(--vlam); }

/* ---------- gallery ---------- */

.galerij { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.galerij figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--bitumen); }
.galerij img { aspect-ratio: 4/3; object-fit: cover; width: 100%; transition: transform .35s ease; }
.galerij figure:hover img { transform: scale(1.04); }
.galerij figcaption { font-family: var(--font-label); text-transform: uppercase; letter-spacing: .07em; font-size: .93rem; color: var(--kiezel); padding: .6rem .8rem .7rem; }

/* ---------- process ---------- */

.stappen { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4,1fr); gap: 1.4rem; }
.stappen li { counter-increment: s; border-top: 2px solid var(--bitumen-3); padding-top: 1.1rem; }
.stappen li::before {
  content: counter(s,decimal-leading-zero);
  font-family: var(--font-display); font-size: 1.05rem; color: var(--vlam);
  display: block; margin-bottom: .5rem; letter-spacing: .04em;
}
.stappen h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.stappen p { font-size: .99rem; margin: 0; }

/* ---------- faq ---------- */

.faq { border-top: 1px solid #d9dbd6; }
.faq details { border-bottom: 1px solid #d9dbd6; }
.faq summary {
  cursor: pointer; padding: 1.15rem 2.4rem 1.15rem 0; position: relative;
  font-family: var(--font-display); font-size: 1.09rem; line-height: 1.3; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .3rem; top: 50%; transform: translateY(-50%);
  font-family: var(--font-body); font-weight: 600; font-size: 1.5rem; color: var(--mineraal); line-height: 1;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details > div { padding: 0 2.4rem 1.3rem 0; }
.faq details > div > :last-child { margin-bottom: 0; }

/* ---------- prose ---------- */

.prose h2 { margin-top: 2.4rem; }
.prose h3 { margin-top: 1.9rem; }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 1.2rem; }
.prose li { margin-bottom: .45rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.6rem; font-size: 1rem; }
.prose th, .prose td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid #dcded9; vertical-align: top; }
.prose th { font-family: var(--font-label); text-transform: uppercase; letter-spacing: .08em; font-size: .95rem; background: var(--kiezel); }

.kader { background: var(--kiezel); border-left: 4px solid var(--mineraal); padding: 1.3rem 1.4rem; border-radius: var(--radius); margin: 0 0 1.6rem; }
.kader > :last-child { margin-bottom: 0; }

/* ---------- contact ---------- */

.nap { font-style: normal; line-height: 1.85; }
.nap a { font-weight: 600; }
.map-link { display: block; text-decoration: none; border-radius: var(--radius); overflow: hidden; border: 1px solid #dcded9; }
.map-link img { width: 100%; }
.map-link span { display: block; padding: .75rem 1rem; font-family: var(--font-label); font-weight: 700; text-transform: uppercase; letter-spacing: .07em; background: var(--kiezel); color: var(--ink); }

/* ---------- cta band ---------- */

.cta-band { text-align: center; }
.cta-band h2 { max-width: 20ch; margin-inline: auto; }
.cta-band p { max-width: 54ch; margin-inline: auto; }
.cta-band .knoppen { justify-content: center; margin-top: 1.7rem; }

/* ---------- footer ---------- */

.voet { background: var(--bitumen); color: var(--zinc); padding: clamp(3rem,5vw,4.2rem) 0 1.6rem; position: relative; border-top: 2px solid #05070a; box-shadow: inset 0 7px 0 -1px var(--bitumen-3); }
.voet::after { content:""; position:absolute; inset:0; background-image: var(--granulaat); opacity:.13; pointer-events:none; mix-blend-mode: overlay; }
.voet > * { position: relative; z-index: 1; }
.voet-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.4rem; }
.voet img.logo { width: 150px; margin-bottom: 1.1rem; }
.voet h2 { font-family: var(--font-label); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .95rem; color: var(--vlam); margin-bottom: .9rem; }
.voet ul { list-style: none; margin: 0; padding: 0; }
.voet li { margin-bottom: .45rem; }
.voet a { color: var(--zinc); text-decoration: none; }
.voet a:hover { color: #fff; text-decoration: underline; }
.voet p { color: var(--grit); font-size: .99rem; }
.voet-onder { border-top: 1px solid var(--bitumen-3); margin-top: 2.6rem; padding-top: 1.3rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .93rem; color: var(--grit); }

/* ---------- breadcrumb ---------- */

.kruimel { font-family: var(--font-label); text-transform: uppercase; letter-spacing: .07em; font-size: .93rem; padding: 1rem 0 0; color: var(--ink-zacht); }
.kruimel ol { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; }
.kruimel li:not(:last-child)::after { content: "/"; margin-left: .45rem; color: var(--zinc); }
.kruimel a { color: var(--ink-zacht); text-decoration: none; }
.kruimel a:hover { color: var(--mineraal); }

/* ---------- page head ---------- */

.paginakop { padding: clamp(2.4rem,4.5vw,4rem) 0 clamp(2rem,4vw,3rem); }
.paginakop p.lead { margin-bottom: 0; }

/* ---------- responsive ---------- */

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-foto { order: -1; }
  .stempel { right: 8px; bottom: -18px; }
  .raster-4 { grid-template-columns: repeat(2,1fr); }
  .stappen { grid-template-columns: repeat(2,1fr); }
  .voet-grid { grid-template-columns: 1fr 1fr; }
  .hero-strip ul { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 780px) {
  .nav-knop { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--wit); border-bottom: 2px solid var(--bitumen);
    padding: .5rem 0; box-shadow: 0 14px 24px rgba(20,22,26,.12);
  }
  .nav.open { display: flex; }
  .nav a { padding: .85rem 1.3rem; border-bottom: 1px solid #e6e7e3; font-size: 1.12rem; }
  .nav a[aria-current="page"] { border-bottom-color: #e6e7e3; background: var(--kiezel); }
  .kop .wrap { position: relative; }
  .raster-2, .raster-3, .galerij { grid-template-columns: 1fr; }
  .galerij { gap: .8rem; }
}

@media (max-width: 560px) {
  .raster-4 { grid-template-columns: 1fr; }
  .stappen { grid-template-columns: 1fr; }
  .voet-grid { grid-template-columns: 1fr; }
  .hero-strip ul { grid-template-columns: 1fr; gap: 1rem; }
  .knop { width: 100%; }
  .kop .merk span { display: none; }
}
