/* Pallethandel Beuk: base.css (gedeeld contract)
   Trailerblauw, beton, vers vurenhout. Tokens uit DESIGN.md. Pagina-CSS: css/home.css, css/pages.css.
   Library-componenten (cl:) lezen de --c-* mapping hieronder, zie css/components.css. */

@font-face { font-family: "Archivo"; src: url("../fonts/archivo-var.woff2") format("woff2"); font-weight: 400 800; font-stretch: 100% 125%; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/plexmono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  /* kleur, 1-op-1 uit DESIGN.md */
  --logo-navy: #2d476a;      /* logo en rustige merkvlakken; nooit als knopkleur */
  --trailer: #0e5ac0;
  --trailer-deep: #0b3f86;
  --ink: #13171d;
  --ink-2: #1f262f;
  --beton: #f6f6f3;
  --beton-2: #ebebe5;
  --card: #ffffff;
  --line: #d8d8d0;
  --muted: #4d545e;
  --hout: #f0dbb2;
  --hout-licht: #f8eedb;
  --hout-a: #dcc08c;
  --hout-b: #b29a72;
  --hout-c: #8c867b;
  --hout-ink: #6b5320;
  --sky: #dbe7fb;
  --fout: #b3261e;
  --goed: #1d6b3f;
  --on-ink-muted: #b9c0ca;
  --white: #ffffff;
  --line-ink: rgba(255, 255, 255, .14);

  /* type */
  --font-sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --fs-display: clamp(2.125rem, 1.2rem + 4vw, 4.125rem);
  --fs-h1: clamp(2.125rem, 1.4rem + 3vw, 3.25rem);
  --fs-h2: clamp(1.875rem, 1.3rem + 2.4vw, 2.75rem);
  --fs-h3: clamp(1.1875rem, 1.1rem + .4vw, 1.375rem);
  --fs-lead: clamp(1.125rem, 1.06rem + .3vw, 1.25rem);
  --fs-body: 1.0625rem;
  --fs-small: .9375rem;
  --fs-stempel: .8125rem;
  --wide: 125%;

  /* ruimte: 4/8/16/24/32/48/64/96/128 */
  --s1: 4px; --s2: 8px; --s3: 16px; --s4: 24px; --s5: 32px; --s6: 48px; --s7: 64px; --s8: 96px; --s9: 128px;
  --section-y: clamp(64px, 8vw, 128px);
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);

  /* vorm */
  --r-xs: 2px; --r-sm: 4px; --r-md: 8px; --r-lg: 12px;
  --shadow-1: 0 1px 0 rgba(19, 23, 29, .06), 0 10px 24px -14px rgba(19, 23, 29, .18);
  --shadow-2: 0 1px 0 rgba(19, 23, 29, .08), 0 18px 36px -16px rgba(11, 63, 134, .32);
  --ease: cubic-bezier(.2, 0, 0, 1);

  /* mapping voor ~/dgdh-os-shared/component-library (token contract v1) */
  --c-bg: var(--beton);
  --c-bg-alt: var(--beton-2);
  --c-surface: var(--card);
  --c-surface-alt: var(--beton-2);
  --c-fg: var(--ink);
  --c-fg-muted: var(--muted);
  --c-border: var(--line);
  --c-accent: var(--trailer);
  --c-accent-2: var(--hout);
  --c-accent-fg: var(--white);
  --font-display: var(--font-sans);
  --font-body: var(--font-sans);
  --lh-tight: 1.1;
  --tracking-tight: -.015em;
  --space-section: var(--section-y);
  --space-gutter: var(--gutter);
  --measure: 66ch;
  --radius: var(--r-md);
  --radius-lg: var(--r-lg);
  --radius-pill: 999px;
  --border-w: 1px;
  --dur-fast: 160ms;
  --dur: 380ms;
  --dur-slow: 560ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--beton); color: var(--ink); font-family: var(--font-sans); font-size: var(--fs-body); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--trailer); text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--trailer); outline-offset: 3px; border-radius: var(--r-xs); }
.on-blue :focus-visible, .on-ink :focus-visible { outline-color: var(--hout); }
h1, h2, h3 { font-family: var(--font-sans); color: var(--ink); margin: 0; text-wrap: balance; hyphens: manual; overflow-wrap: break-word; }
p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -64px; z-index: 100; background: var(--ink); color: var(--white); padding: 12px 16px; border-radius: var(--r-sm); }
.skip:focus { top: 8px; }

/* type-rollen: geen losse font-sizes buiten deze klassen */
.h-display { font-size: var(--fs-display); font-weight: 800; font-stretch: 112%; line-height: 1.0; letter-spacing: -.02em; }
.t-h1 { font-size: var(--fs-h1); font-weight: 800; font-stretch: var(--wide); line-height: 1.04; letter-spacing: -.02em; }
.t-h2 { font-size: var(--fs-h2); font-weight: 800; font-stretch: var(--wide); line-height: 1.06; letter-spacing: -.015em; }
.t-h3 { font-size: var(--fs-h3); font-weight: 700; font-stretch: 112%; line-height: 1.2; letter-spacing: -.01em; }
.t-lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--muted); max-width: 56ch; }
.t-body { max-width: 66ch; }
.t-small { font-size: var(--fs-small); line-height: 1.55; color: var(--muted); }
.eyebrow { font-family: var(--font-mono); font-size: var(--fs-stempel); font-weight: 500; line-height: 1.3; letter-spacing: .08em; text-transform: uppercase; color: var(--trailer); }
.spec { font-family: var(--font-mono); font-weight: 500; font-variant-numeric: tabular-nums; }
@media (min-width: 600px) { .h-display { font-stretch: var(--wide); } }
@media (max-width: 599px) { .t-h1, .t-h2 { font-stretch: 112%; } }

/* layout */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section--alt { background: var(--beton-2); }
.section--hout { background: var(--hout-licht); }
.section--ink { background: var(--ink); color: var(--on-ink-muted); }
.section--ink h2, .section--ink h3 { color: var(--white); }
.section--ink .t-lead { color: var(--on-ink-muted); }
.section--ink .eyebrow { color: var(--hout); }
.section--blue { background: var(--trailer-deep); color: var(--sky); }
.section--blue h2, .section--blue h3 { color: var(--white); }
.section--blue .t-lead { color: var(--sky); }
.section--blue .eyebrow { color: var(--hout); }
.section--blue a:not(.btn) { color: var(--white); }
.section-head { display: grid; gap: var(--s3); align-content: start; margin-bottom: var(--s6); max-width: 760px; }
.stack > * + * { margin-top: var(--s4); }
.stack-s > * + * { margin-top: var(--s3); }

/* voorstel-banner */
.proposal-bar { background: var(--ink); color: var(--on-ink-muted); font-size: .875rem; line-height: 1.4; text-align: center; padding: 8px var(--gutter); }
.proposal-bar strong { color: var(--white); font-weight: 600; }
.proposal-bar .pb-extra { display: none; }
@media (min-width: 640px) { .proposal-bar .pb-extra { display: inline; } }

/* header: cl:nav-sticky-blur, menu altijd zichtbaar (geen hamburger) */
.site-header { position: relative; z-index: 40; background: rgba(246, 246, 243, .94); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 64px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.brand img { width: auto; height: 30px; }
@media (min-width: 360px) { .brand img { height: 34px; } }
.header-actions { display: flex; align-items: center; gap: var(--s3); }
.header-tel { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--ink); text-decoration: none; font-weight: 700; font-stretch: 112%; background: var(--card); }
.header-tel svg { width: 20px; height: 20px; color: var(--trailer); }
.header-tel span { display: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.site-header .header-cta { display: none; }
.nav { display: flex; flex-wrap: wrap; justify-content: space-between; column-gap: var(--s2); row-gap: 0; border-top: 1px solid var(--line); padding-block: 4px; }
.nav a { display: inline-flex; align-items: center; min-height: 40px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9375rem; line-height: 1.2; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav a[aria-current="page"] { color: var(--trailer); border-bottom-color: var(--trailer); }
.nav .l-lang { display: none; }
@media (min-width: 640px) { .header-tel span { display: inline; } }
@media (min-width: 1024px) and (max-width: 1199px) {
  .nav { gap: var(--s3); }
  .nav a { font-size: .9375rem; }
  .header-tel { padding: 0 10px; }
  .site-header .header-cta { padding: 0 16px; }
}
@media (min-width: 1024px) {
  .site-header { position: sticky; top: 0; backdrop-filter: saturate(1.3) blur(10px); }
  .site-header__inner { min-height: 76px; }
  .brand img { height: 50px; }
  .nav { border-top: 0; padding: 0; gap: var(--s4); flex-wrap: nowrap; }
  .nav a { font-size: 1rem; }
  .nav .l-kort { display: none; }
  .nav .l-lang { display: inline; }
  .site-header .header-cta { display: inline-flex; }
  .nav-row { display: none; }
}
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { color: var(--trailer); }
  .header-tel:hover { border-color: var(--trailer); }
}
.nav--desktop { display: none; }
@media (min-width: 1024px) { .nav--desktop { display: flex; } }

/* knoppen */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: var(--r-sm); font-family: var(--font-sans); font-weight: 700; font-stretch: 112%; font-size: 1rem; line-height: 1.2; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .18s var(--ease), background-color .18s var(--ease), box-shadow .18s var(--ease), color .18s var(--ease); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary { background: var(--trailer); color: var(--white); }
.btn--hout { background: var(--hout); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--line-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .7); }
.btn:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--trailer-deep); box-shadow: var(--shadow-2); }
  .btn--hout:hover { background: var(--white); }
  .btn--ghost:hover { background: var(--ink); color: var(--white); }
  .btn--line-light:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
  a.link-arrow:hover svg { transform: translateX(3px); }
}
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-stretch: 112%; text-decoration: none; min-height: 44px; }
.link-arrow svg { width: 18px; height: 18px; transition: transform .18s var(--ease); }

/* stempel: maat, klasse, plaats. Haarlijn plus mono, zoals de brandmerken op een klos */
.stempels { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.stempel { display: inline-flex; align-items: center; gap: 8px; padding: 4px 8px; border: 1px solid currentColor; border-radius: var(--r-xs); font-family: var(--font-mono); font-size: var(--fs-stempel); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; line-height: 1.3; font-variant-numeric: tabular-nums; }

/* kaart */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5); box-shadow: var(--shadow-1); }

/* voorbeeld: zichtbaar wat Beuk nog aanlevert (PLACEHOLDERS.md) */
.voorbeeld { display: inline-flex; align-items: center; gap: 8px; padding: 0 8px; border: 1px dashed var(--muted); border-radius: var(--r-xs); background: var(--hout-licht); color: var(--muted); font-weight: 600; white-space: nowrap; }
.voorbeeld-note { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border: 1px dashed var(--muted); border-radius: var(--r-sm); background: var(--hout-licht); color: var(--muted); font-size: 1rem; line-height: 1.5; max-width: 66ch; }
.voorbeeld-note svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--muted); }
.voorbeeld-note strong { color: var(--ink); }
.section--ink .voorbeeld-note, .section--blue .voorbeeld-note { color: var(--muted); }
.placeholder-foto { display: grid; place-items: center; align-content: center; gap: 8px; text-align: center; min-height: 240px; border: 2px dashed var(--muted); border-radius: var(--r-lg); background: repeating-linear-gradient(135deg, var(--hout-licht) 0 12px, var(--beton) 12px 24px); color: var(--muted); padding: var(--s4); }
.placeholder-foto .note-kop { color: var(--ink); }
.placeholder-foto p { font-size: 1rem; max-width: 32ch; }

/* foto */
.foto { position: relative; overflow: hidden; border-radius: var(--r-md); background: var(--beton-2); }
.foto img { width: 100%; height: 100%; object-fit: cover; }
.foto > picture { display: contents; }
.foto figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(19, 23, 29, .82); color: var(--white); }

/* iconen (Lucide-stijl, inline) */
.ico { width: 24px; height: 24px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* footer: cl:footer-columns-cta, zonder nieuwsbrief */
.site-footer { background: var(--ink); color: var(--on-ink-muted); padding-block: var(--s7) calc(var(--s6) + 84px); line-height: 1.6; }
.site-footer a { color: var(--white); }
.site-footer .footer-logo { width: 220px; height: auto; margin-bottom: var(--s4); }
.site-footer__grid { display: grid; gap: var(--s5); }
.site-footer .foot-kop { color: var(--hout); margin-bottom: 12px; }
.site-footer ul { list-style: none; display: grid; gap: 4px; }
.site-footer__meta { margin-top: var(--s6); padding-top: var(--s4); border-top: 1px solid var(--line-ink); display: flex; flex-wrap: wrap; gap: 8px 24px; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
@media (min-width: 960px) { .site-footer { padding-bottom: var(--s6); } }

/* vaste mobiele balk: Bel / Prijs / WhatsApp */
.sticky-cta { position: fixed; inset: auto 0 0 0; z-index: 50; display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 8px; padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom)); background: rgba(19, 23, 29, .96); border-top: 1px solid var(--line-ink); }
.sticky-cta .btn { min-height: 52px; padding: 0 8px; gap: 8px; }
.sticky-cta .btn--call { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .5); }
.sticky-cta .btn--wa { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .5); }
@media (min-width: 960px) { .sticky-cta { display: none; } }

/* reveal: zie css/components.css (cl:scroll-reveal-stagger) */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .link-arrow svg { transition: none; }
}
