/* Boosten Staalconstructie
   Ontwerptaal: werkplaats en constructietekening. Zinkgrijs tekenpapier,
   staalzwarte inkt, het blauw uit het eigen logo als enige accent.
   Lijnwerk (maatlijn, stuklijst, titelblok) komt uit de constructietekening. */

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

:root {
  --paper: #e8ecef;
  --paper-2: #dde2e6;
  --plate: #f4f6f7;
  --ink: #15191d;
  --ink-2: #414b54;
  --line: #b9c2ca;
  --line-strong: #15191d;
  --accent: #1e5eaa;          /* logo-blauw, voor tekst en lijnen */
  --accent-bg: #1e5eaa;       /* logo-blauw, voor vlakken met witte tekst */
  --accent-ink: #ffffff;
  --accent-soft: #96b2de;     /* lichtblauw uit het I-profiel van het logo */
  --focus: #1e5eaa;
  --shadow: 0 1px 0 rgb(21 25 29 / .06), 0 18px 40px -24px rgb(30 60 100 / .35);

  --f-sans: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --f-mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --header-h: 72px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121518;
    --paper-2: #181c20;
    --plate: #eef1f3;
    --ink: #e5e9ec;
    --ink-2: #a3adb6;
    --line: #2f363d;
    --line-strong: #e5e9ec;
    --accent: #8fb4ea;
    --accent-bg: #1e5eaa;
    --accent-ink: #ffffff;
    --accent-soft: #7fa3d8;
    --focus: #8fb4ea;
    --shadow: none;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-stretch: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a, button, input, select, textarea, label { touch-action: manipulation; -webkit-tap-highlight-color: rgb(30 94 170 / .15); }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--f-mono); font-size: .8125rem; letter-spacing: .02em; }
.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;
}
.ico { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }

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

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 14px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- knoppen: rechte hoeken, zoals plaatstaal ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  min-height: 48px; padding: 0 1.25rem;
  font: 600 1rem/1 var(--f-sans); font-stretch: 105%;
  text-decoration: none; white-space: nowrap;
  border: 2px solid transparent; border-radius: 0;
  cursor: pointer;
  transition: transform .12s ease-out, background-color .2s var(--ease-out), color .2s var(--ease-out), border-color .2s var(--ease-out);
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn-primary { background: var(--accent-bg); color: var(--accent-ink); }
.btn-primary:hover { background: var(--ink); color: var(--paper); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-ghost .ico { transition: transform .25s var(--ease-out); }
.btn-ghost:hover .ico { transform: translateX(3px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand { display: block; flex: none; padding: 4px 8px; margin-left: -8px; background: transparent; }
.brand { text-decoration: none; }
.woordmerk { display: flex; flex-direction: column; line-height: 1; color: #1e5eaa; }
.woordmerk-naam { font: 800 1.75rem/1 var(--f-sans); font-stretch: 110%; letter-spacing: -.01em; }
.woordmerk-sub { font: 500 .625rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: #15191d; margin-top: 4px; }
@media (prefers-color-scheme: dark) {
  /* logo heeft zwarte letters: in donker op een lichte naamplaat */
  .brand { background: var(--plate); }
}
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 4px; }
.nav a {
  display: block; padding: 10px 12px; text-decoration: none;
  font-weight: 500; font-size: .98rem; color: var(--ink);
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0 2px; background-position: 12px calc(100% - 6px); background-repeat: no-repeat;
  transition: background-size .3s var(--ease-out);
}
.nav a:hover { background-size: calc(100% - 24px) 2px; }
.btn-call { background: var(--ink); color: var(--paper); min-height: 44px; font-variant-numeric: tabular-nums; }
.btn-call:hover { background: var(--accent-bg); color: var(--accent-ink); }

@media (max-width: 899px) {
  .nav { display: none; }
  .header-call { margin-left: auto; padding: 0 .9rem; }
  .woordmerk-naam { font-size: 1.5rem; }
}
@media (max-width: 380px) {
  .header-call span { font-size: .92rem; }
}

/* ---------- hero ---------- */
.hero { padding: clamp(28px, 5vw, 72px) 0 clamp(48px, 7vw, 96px); }
.hero-grid {
  display: grid; gap: clamp(28px, 4vw, 64px);
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  align-items: center;
}
.hero-kicker { color: var(--accent); font-weight: 500; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 20px; }
.hero-title {
  font-size: clamp(2.5rem, 4.6vw, 4.25rem);
  line-height: 1; letter-spacing: -.025em;
  font-weight: 780; font-stretch: 108%;
  text-wrap: balance;
}
.hero-sub { margin-top: 24px; max-width: 42ch; font-size: clamp(1.08rem, 1.3vw, 1.25rem); color: var(--ink-2); text-wrap: pretty; }
.hero-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero-figure { position: relative; }
.hero-frame {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  background: var(--paper-2);
  box-shadow: var(--shadow);
}
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero-drawing {
  position: absolute; inset: 0; width: 100%; height: 100%;
  fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linejoin: miter;
  vector-effect: non-scaling-stroke; pointer-events: none; opacity: 0;
}
.hero-drawing .thin { stroke-width: 1.2; stroke: var(--accent-soft); }
.hero-drawing path { vector-effect: non-scaling-stroke; }
.hero-figure figcaption { margin-top: 12px; color: var(--ink-2); }

@media (max-width: 899px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; margin-inline: calc(var(--gutter) * -1); }
  .hero-figure figcaption { padding-inline: var(--gutter); }
  .hero-frame { aspect-ratio: 16 / 11; box-shadow: none; }
  .hero-title { font-size: clamp(2.3rem, 10.5vw, 3.4rem); }
}

/* ---------- sectie-koppen ---------- */
.section-title {
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  line-height: 1.02; letter-spacing: -.02em;
  font-weight: 760; font-stretch: 110%;
  text-wrap: balance;
}
.section-lead { margin-top: 16px; max-width: 52ch; color: var(--ink-2); font-size: 1.125rem; text-wrap: pretty; }

/* ---------- stuklijst ---------- */
.maken { padding: clamp(64px, 9vw, 128px) 0; border-top: 1px solid var(--line); }
.maken-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: start; }

.stuklijst {
  width: 100%; margin-top: 40px; border-collapse: collapse;
  border: 2px solid var(--line-strong);
}
.stuklijst thead th {
  text-align: left; font: 500 .75rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-2); padding: 12px 16px; border-bottom: 2px solid var(--line-strong);
}
.stuklijst td { padding: 20px 16px; vertical-align: top; border-top: 1px solid var(--line); }
.stuklijst tbody tr:first-child td { border-top: 0; }
.stuklijst th:first-child, .stuklijst td.pos { width: 64px; border-right: 1px solid var(--line); }
.stuklijst .col-profiel { width: 140px; border-left: 1px solid var(--line); }
.stuklijst td.pos { color: var(--ink-2); padding-top: 24px; }
.stuklijst strong { display: block; font-size: 1.35rem; font-weight: 700; font-stretch: 108%; letter-spacing: -.01em; }
.stuklijst td span { display: block; color: var(--ink-2); margin-top: 4px; max-width: 46ch; }
.stuklijst tbody tr { cursor: default; transition: background-color .25s var(--ease-out); }
.stuklijst tbody tr:hover, .stuklijst tbody tr.is-active { background: var(--paper-2); }
.stuklijst tbody tr.is-active strong { color: var(--accent); }
.profiel { width: 64px; height: 48px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: miter; }
.stuklijst tr.is-active .profiel { stroke: var(--accent); }
.col-profiel .mono { display: block; margin-top: 6px; color: var(--ink-2); font-size: .75rem; }
.row-thumb { display: none; }

.maken-preview { position: sticky; top: calc(var(--header-h) + 32px); }
.preview-frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-2); box-shadow: var(--shadow); }
.preview-frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.04);
  transition: opacity .45s var(--ease-out), transform .9s var(--ease-out);
}
.preview-frame img.is-active { opacity: 1; transform: none; }

@media (max-width: 899px) {
  .maken-grid { grid-template-columns: 1fr; }
  .maken-preview { display: none; }
  .stuklijst .col-profiel { width: 64px; padding-inline: 6px; text-align: center; }
  .stuklijst .col-profiel .mono { display: none; }
  .stuklijst th:first-child, .stuklijst td.pos { width: 40px; padding-inline: 8px; }
  .stuklijst td { padding: 16px 12px; }
  .stuklijst strong { font-size: 1.2rem; }
  .row-thumb { display: block; margin-top: 14px; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
  .profiel { width: 44px; height: 33px; margin-inline: auto; }
}

/* ---------- werk: horizontale galerij ---------- */
.werk { background: var(--paper-2); border-block: 1px solid var(--line); overflow: hidden; }
.werk-pin { padding: clamp(56px, 7vw, 96px) 0; }
.werk-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.link-fb {
  display: inline-flex; align-items: center; gap: .5em; font-weight: 600;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
  padding: 8px 0;
}
.link-fb:hover { color: var(--accent); }
.werk-track {
  display: flex; gap: clamp(16px, 2vw, 28px); align-items: flex-end;
  margin-top: 40px;
  padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  -webkit-overflow-scrolling: touch;
}
.werk-track::-webkit-scrollbar { display: none; }
.shot { flex: none; scroll-snap-align: start; }
.shot img { width: 100%; object-fit: cover; background: var(--paper); }
.shot-wide { width: min(46vw, 640px); }
.shot-wide img { aspect-ratio: 16 / 9; }
.shot-mid { width: min(36vw, 500px); }
.shot-mid img { aspect-ratio: 4 / 3; }
.shot-tall { width: min(24vw, 330px); }
.shot-tall img { aspect-ratio: 3 / 4; }
.shot figcaption { margin-top: 12px; font-size: .95rem; color: var(--ink-2); max-width: 40ch; }
/* als GSAP de galerij vastpint, scrollt de track niet meer zelf */
.werk.is-pinned .werk-track { overflow: visible; scroll-snap-type: none; }
.werk.is-pinned .werk-pin { min-height: calc(100dvh - var(--header-h)); display: flex; flex-direction: column; justify-content: center; box-sizing: border-box; }

@media (max-width: 899px) {
  .shot-wide, .shot-mid { width: 84vw; }
  .shot-tall { width: 64vw; }
}

/* ---------- over ons: maatlijn ---------- */
.over { padding: clamp(72px, 10vw, 144px) 0; }
.over-title {
  font-size: clamp(2.3rem, 5.4vw, 5rem); line-height: 1; letter-spacing: -.03em;
  font-weight: 800; font-stretch: 118%; max-width: 16ch; text-wrap: balance;
}
.maatlijn { position: relative; margin-top: clamp(40px, 6vw, 72px); height: 40px; }
.maatlijn-svg { width: 100%; height: 40px; overflow: visible; fill: none; stroke: var(--accent); stroke-width: 1.5; }
.maatlijn-svg path { vector-effect: non-scaling-stroke; }
.maatlijn-label {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: var(--paper); color: var(--accent); padding: 0 14px; font-weight: 500; font-size: .9rem;
}
.over-grid { display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: clamp(24px, 4vw, 64px); margin-top: 28px; }
.over-point .year { font-size: clamp(2rem, 3vw, 2.75rem); font-weight: 780; font-stretch: 112%; letter-spacing: -.02em; line-height: 1; margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.over-point p:not(.year) { color: var(--ink-2); max-width: 30ch; }
.over-point-end { text-align: right; justify-self: end; }
.over-point-end p:not(.year) { margin-left: auto; }
.over-quote { padding-top: 6px; }
.over-quote p { font-size: clamp(1.25rem, 1.9vw, 1.6rem); line-height: 1.35; font-weight: 500; font-stretch: 100%; text-wrap: pretty; }
.over-quote footer { margin-top: 16px; font-family: var(--f-mono); font-size: .85rem; color: var(--ink-2); }

@media (max-width: 899px) {
  .over-grid { grid-template-columns: 1fr 1fr; }
  .over-quote { grid-column: 1 / -1; grid-row: 2; }
}

/* ---------- contact: titelblok ---------- */
.contact { padding: clamp(64px, 9vw, 128px) 0; border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: start; }

.titelblok {
  margin-top: 40px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 2px solid var(--line-strong);
}
.tb-cell { padding: 14px 16px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
.tb-cell:nth-child(2n) { border-right: 0; }
.tb-wide { grid-column: 1 / -1; border-right: 0; }
.tb-cell:nth-last-child(-n+2) { border-bottom: 0; }
.tb-cell dt { color: var(--ink-2); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.tb-cell dd { margin-top: 6px; font-size: 1.15rem; font-weight: 600; overflow-wrap: anywhere; }
.tb-cell dd a { text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat; }
.tb-cell dd a:hover { color: var(--accent); }
.tb-cell dd a.tb-link { display: inline-flex; align-items: center; gap: .35em; margin-left: 12px; font-size: .95rem; font-weight: 500; color: var(--accent); background: none; text-decoration: underline; text-underline-offset: 3px; }

.aanvraag {
  background: var(--plate); color: #15191d;
  padding: clamp(20px, 3vw, 36px);
  border: 2px solid var(--line-strong);
  display: grid; gap: 18px;
}
.field { display: grid; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.aanvraag label { font-weight: 600; font-size: .98rem; }
.aanvraag input[type="text"], .aanvraag input[type="tel"], .aanvraag input[type="email"], .aanvraag select, .aanvraag textarea {
  width: 100%; min-height: 48px; padding: 10px 12px;
  font: inherit; font-size: 1rem; color: #15191d;
  background: #ffffff; border: 1.5px solid #6b7680; border-radius: 0;
  transition: border-color .15s ease-out, box-shadow .15s ease-out;
}
.aanvraag textarea { resize: vertical; min-height: 110px; }
.aanvraag input:focus-visible, .aanvraag select:focus-visible, .aanvraag textarea:focus-visible {
  outline: none; border-color: #1e5eaa; box-shadow: 0 0 0 3px rgb(30 94 170 / .3);
}
.aanvraag [aria-invalid="true"] { border-color: #b3261e; }
.aanvraag .hint { font-size: .88rem; color: #4a545d; }
.file-label { display: inline-flex; align-items: center; gap: .45em; }
.optional { font-weight: 400; color: #4a545d; }
.aanvraag input[type="file"] { font: inherit; font-size: .95rem; color: #414b54; }
.aanvraag input[type="file"]::file-selector-button {
  font: 600 .95rem var(--f-sans); padding: 10px 14px; margin-right: 12px;
  background: transparent; color: #15191d; border: 1.5px solid #15191d; border-radius: 0; cursor: pointer;
}
.btn-submit { justify-self: start; background: #1e5eaa; color: #fff; }
.btn-submit:hover { background: #15191d; color: #fff; }
.form-status { font-weight: 500; color: #15191d; min-height: 1.5em; }
.form-status.is-error { color: #b3261e; }
.aanvraag :focus-visible { outline-color: #1e5eaa; }

@media (max-width: 899px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; }
  .titelblok { grid-template-columns: 1fr; }
  .tb-cell { border-right: 0; }
  .tb-cell:nth-last-child(2) { border-bottom: 1px solid var(--line); }
}

/* ---------- footer ---------- */
.site-footer { border-top: 2px solid var(--line-strong); padding: 40px 0 48px; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 24px 48px; align-items: center; }
.footer-brand { padding: 6px 8px; margin-left: -8px; }
@media (prefers-color-scheme: dark) { .footer-brand, .footer-links .mu { background: var(--plate); } }
.footer-brand .woordmerk-naam { font-size: 1.6rem; }
.footer-address { font-style: normal; color: var(--ink-2); line-height: 1.7; }
.footer-address a { color: var(--ink); text-underline-offset: 3px; }
.footer-links { display: flex; align-items: center; gap: 24px; }
.footer-links .fb { display: inline-flex; align-items: center; gap: .45em; font-weight: 600; text-underline-offset: 3px; padding: 8px 0; }
.footer-links .mu { display: block; padding: 6px 8px; }
.footer-links .mu img { width: 110px; }
.footer-copy { grid-column: 1 / -1; color: var(--ink-2); padding-top: 20px; border-top: 1px solid var(--line); }

@media (max-width: 899px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ---------- beweging: alleen als het mag ---------- */
.js-motion .reveal { opacity: 0; transform: translateY(18px); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js-motion .reveal { opacity: 1; transform: none; }
}
