/* Aannemingsbedrijf van den Akker, demo-homepage.
   Eén thema (licht), één accent, scherpe hoeken. */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../assets/fonts/schibsted-grotesk-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../assets/fonts/source-serif-4-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --strip-pad: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  --ink: #0e2036;
  --ink-2: #3a4a5d;
  --accent: #1b6bb0;
  --accent-dark: #14578f;
  --paper: #f3f6f9;
  --paper-2: #e6ecf2;
  --white: #ffffff;
  --line: #cfd8e1;
  --header-h: 72px;
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1360px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
section[id] { scroll-margin-top: var(--header-h); }
html.pin { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
a, button, summary, label { touch-action: manipulation; -webkit-tap-highlight-color: rgba(27, 107, 176, 0.18); }
a[href^="tel:"] { white-space: nowrap; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: #fff; }
input, textarea, select { caret-color: var(--accent); }
html { scrollbar-color: var(--ink) var(--paper-2); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { top: 12px; }

.h2 {
  font-size: clamp(1.9rem, 3.6vw, 3.1rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.028em;
  max-width: 22ch;
  text-wrap: balance;
}
.intro-text { color: var(--ink-2); max-width: 54ch; margin-top: 1rem; }

/* ---------- buttons ---------- */
.btn {
  --bx: 0px; --by: 0px;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  border: 2px solid var(--ink);
  background: transparent; color: var(--ink);
  font-weight: 700; font-size: 1rem; letter-spacing: 0.005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transform: translate(var(--bx), var(--by));
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.12s ease-out;
}
.btn:active { transform: translate(var(--bx), calc(var(--by) + 1px)) scale(0.98); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; border-color: #fff; color: var(--ink); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 0.95rem; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.985);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner {
  max-width: var(--max); margin-inline: auto; height: 100%;
  padding-inline: var(--gutter);
  display: flex; align-items: center; gap: 32px;
}
.brand { display: block; flex: none; height: 44px; color: var(--ink); text-decoration: none; }
.brand svg { height: 100%; width: auto; display: block; overflow: visible; }
.nav { display: flex; gap: clamp(18px, 2.6vw, 38px); margin-left: auto; }
.nav a { font-weight: 600; font-size: 0.98rem; text-decoration: none; padding: 8px 0; border-bottom: 2px solid transparent; transition: border-color 0.2s ease; }
.nav a:hover { border-bottom-color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 20px; }
.header-phone { font-weight: 700; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.header-phone:hover { color: var(--accent); }
.menu-btn { display: none; }

/* ---------- hero ---------- */
.hero { padding-top: var(--header-h); background: var(--white); min-height: 100svh; display: flex; flex-direction: column; }
.hero-top {
  display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4.4fr);
  gap: clamp(24px, 3vw, 48px); align-items: end;
  padding-top: clamp(20px, 3.2vw, 44px); padding-bottom: clamp(20px, 2.6vw, 34px);
}
.hero-title {
  font-size: clamp(2.5rem, 5.3vw, 5.2rem);
  font-weight: 800; line-height: 0.98; letter-spacing: -0.04em; white-space: nowrap;
  color: var(--ink);
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero-title .line > span { display: block; }
.hero-side { display: grid; gap: 22px; max-width: 46ch; padding-bottom: 6px; }
.lead { font-size: clamp(1.05rem, 1.35vw, 1.2rem); color: var(--ink-2); line-height: 1.5; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-photo { position: relative; overflow: hidden; background: var(--ink); flex: 1 1 auto; min-height: 380px; }
.hero-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; transform-origin: 50% 70%; }
.hero-photo::after { content: ""; position: absolute; inset: auto 0 0 0; height: 55%; background: linear-gradient(to top, rgba(14, 32, 54, 0.55), rgba(14, 32, 54, 0)); pointer-events: none; }
.routes { position: absolute; inset: auto 0 0 0; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 0; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); padding-bottom: clamp(16px, 2.4vw, 32px); column-gap: 16px; }
.route {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 92px; padding: 18px 22px 18px 26px;
  background: var(--ink); color: #fff; text-decoration: none;
  transition: background-color 0.25s ease, transform 0.35s var(--ease);
}
.route:hover { background: var(--accent); transform: translateY(-3px); }
.route-text { display: grid; gap: 4px; }
.route-title { font-size: clamp(1.15rem, 1.7vw, 1.55rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.route-sub { font-size: 0.95rem; color: #dbe5ef; }
.route-arrow { flex: none; display: grid; place-items: center; width: 44px; height: 44px; background: #fff; color: var(--ink); transition: transform 0.35s var(--ease); }
.ico { width: 22px; height: 22px; display: block; }
.ico-back { transform: scaleX(-1); }
.route:hover .route-arrow { transform: translateX(4px); }

/* ---------- diensten ---------- */
.diensten { background: var(--paper); border-top: 1px solid var(--line); }
/* zonder scroll-animatie: een gewone lijst met panelen */
.stage { padding-block: clamp(56px, 8vw, 112px); }
.words { display: none; }
.panels { display: grid; gap: clamp(48px, 7vw, 88px); }
.panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.panel-title { font-size: clamp(2.4rem, 8vw, 5rem); font-weight: 900; letter-spacing: -0.04em; line-height: 0.95; grid-column: 1 / -1; }
.panel-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.panel-figure figcaption { margin-top: 10px; font-size: 0.92rem; color: var(--ink-2); }
.panel-text { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.5; max-width: 34ch; }

/* met scroll-animatie: vastgezette sectie, woorden links, foto rechts */
html.pin .stage { height: 100svh; padding-block: calc(var(--header-h) + 12px) 24px; display: flex; }
html.pin .stage-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 4vw, 72px); align-items: center; height: 100%; }
html.pin .words { display: grid; gap: clamp(0px, 0.6vw, 8px); }
html.pin .word-btn { display: block; position: relative; width: 100%; padding: 0; margin: 0; background: none; border: 0; text-align: left; font: inherit; letter-spacing: inherit; line-height: inherit; color: inherit; cursor: pointer; }
html.pin .word {
  position: relative;
  font-size: clamp(2.7rem, 6.9vw, 6rem);
  font-weight: 900; line-height: 1; letter-spacing: -0.04em;
  white-space: nowrap;
}
html.pin .word .w-fill { display: block; color: var(--ink); opacity: 0; transition: opacity 0.45s var(--ease); }
/* contour: alleen de buitenrand, zonder de overlappende lijnen van het variabele lettertype */
html.pin .word .w-line { position: absolute; inset: 0; color: var(--ink); filter: url(#contour); opacity: 1; transition: opacity 0.45s var(--ease); }
html.pin .word.is-active .w-fill { opacity: 1; }
html.pin .word.is-active .w-line { opacity: 0; }
html.pin .panels { position: relative; display: block; height: min(100%, 640px); align-self: center; }
html.pin .panel { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr; grid-template-rows: auto auto; align-content: center; gap: 22px; opacity: 0; visibility: hidden; }
html.pin .panel.is-active { opacity: 1; visibility: visible; }
html.pin .panel-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
html.pin .panel-figure img { aspect-ratio: 3 / 2; max-height: 48svh; }
html.pin .panel-text { max-width: 40ch; }

/* ---------- projecten ---------- */
.projecten { padding-block: clamp(64px, 9vw, 128px) clamp(56px, 8vw, 104px); background: var(--white); overflow: hidden; }
.projecten-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: clamp(28px, 4vw, 52px); }
.strip-ctrl { display: flex; gap: 8px; flex: none; }
.strip-btn { display: grid; place-items: center; width: 52px; height: 52px; border: 2px solid var(--ink); background: transparent; cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease; }
.strip-btn:hover { background: var(--ink); color: #fff; }
.strip {
  display: flex; align-items: flex-start; gap: clamp(14px, 1.6vw, 24px);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--strip-pad);
  padding-inline: var(--strip-pad);
  padding-bottom: 20px; scrollbar-width: thin; scrollbar-color: var(--ink) var(--paper-2);
  overscroll-behavior-x: contain;
}
.card { flex: none; scroll-snap-align: start; }
.card-wide { width: min(76vw, 640px); }
.card-tall { width: min(62vw, 420px); }
.card img { width: 100%; object-fit: cover; }
.card-wide img { aspect-ratio: 3 / 2; }
.card-tall img { aspect-ratio: 4 / 5; }
.card-title { margin-top: 14px; font-weight: 800; font-size: 1.1rem; letter-spacing: -0.01em; line-height: 1.3; }
.card-meta { color: var(--ink-2); font-size: 0.97rem; margin-top: 2px; }

/* ---------- werkwijze ---------- */
.werkwijze { background: var(--ink); color: #fff; padding-block: clamp(64px, 9vw, 128px); }
.werkwijze .intro-text { color: #c9d6e3; }
.werkwijze-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 112px); align-items: start; }
.werkwijze-intro { position: sticky; top: calc(var(--header-h) + 32px); }
.steps { position: relative; display: grid; gap: clamp(36px, 5vw, 64px); padding-left: 44px; }
.steps-line { position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px; background: rgba(255, 255, 255, 0.22); }
.steps-line-fill { position: absolute; inset: 0; background: #fff; transform-origin: 50% 0; transform: scaleY(0); }
.step { position: relative; opacity: 0.55; transition: opacity 0.4s var(--ease); }
.step::before { content: ""; position: absolute; left: -44px; top: 8px; width: 16px; height: 16px; background: var(--ink); border: 2px solid rgba(255, 255, 255, 0.5); transition: background-color 0.3s ease, border-color 0.3s ease; }
.step.is-active { opacity: 1; }
.step.is-active::before { background: #fff; border-color: #fff; }
.step h3 { font-size: clamp(1.4rem, 2.2vw, 2rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; }
.step p { margin-top: 8px; color: #d3deea; max-width: 44ch; }

/* ---------- voor / tijdens / na ---------- */
.voorna { padding-block: clamp(64px, 9vw, 128px); background: var(--white); }
.voorna-grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "na voor" "na tijdens";
  gap: clamp(16px, 2vw, 28px); margin-top: clamp(28px, 4vw, 48px);
}
.vn { display: flex; flex-direction: column; gap: 10px; }
.vn img { width: 100%; flex: 1 1 auto; min-height: 0; object-fit: cover; }
.vn figcaption { font-weight: 700; font-size: 0.98rem; }
.vn-na { grid-area: na; } .vn-voor { grid-area: voor; } .vn-tijdens { grid-area: tijdens; }
.vn-na img { aspect-ratio: 4 / 3.15; }
.vn-voor img, .vn-tijdens img { aspect-ratio: 3 / 2; }

/* ---------- vertrouwen ---------- */
.trust { background: var(--paper); border-block: 1px solid var(--line); padding-block: clamp(44px, 6vw, 80px); }
.trust-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.trust-facts { display: grid; gap: 28px; }
.fact { display: grid; gap: 2px; }
.fact strong { font-size: clamp(1.7rem, 3vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.fact span { color: var(--ink-2); }
.regio-label { font-weight: 700; color: var(--ink-2); margin-bottom: 10px; }
.regio-list { font-size: clamp(1.4rem, 2.5vw, 2.2rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; text-wrap: balance; }

/* ---------- contact ---------- */
.contact { padding-block: clamp(64px, 9vw, 128px); background: var(--white); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(36px, 6vw, 112px); align-items: start; }
.form { margin-top: 32px; display: grid; gap: 20px; max-width: 560px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 700; font-size: 0.98rem; }
.field input[type="text"], .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; background: #fff; color: var(--ink);
  border: 2px solid #7d8da0; border-radius: 0; appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: 0; box-shadow: 0 0 0 3px rgba(27, 107, 176, 0.25); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #b3261e; }
.field-check { grid-template-columns: 26px 1fr; align-items: start; column-gap: 12px; }
.field-check input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--accent); }
.field-check label { font-weight: 400; color: var(--ink-2); font-size: 0.95rem; }
.field-check .error { grid-column: 2; }
.error { color: #a1231c; font-weight: 600; font-size: 0.95rem; }
.form .btn { justify-self: start; }
.form-note { padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); font-weight: 600; }

.contact-info { display: grid; gap: 40px; }
.info-label { font-weight: 700; color: var(--ink-2); font-size: 0.95rem; margin-bottom: 8px; }
.phone-big { font-size: clamp(2rem, 3.8vw, 3.4rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.08; font-variant-numeric: tabular-nums; }
.phone-big a { text-decoration: none; }
.phone-big a:hover { color: var(--accent); }
.phone-alt { font-size: clamp(1.5rem, 2.6vw, 2.2rem); color: var(--ink-2); }
address { font-style: normal; font-size: 1.2rem; font-weight: 600; line-height: 1.4; }
.hours { display: grid; gap: 10px; }
.hours div { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.hours dt { color: var(--ink-2); }
.hours dd { font-weight: 700; text-align: right; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #fff; padding-block: clamp(40px, 5vw, 72px); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: clamp(24px, 4vw, 64px); align-items: end; }
.footer-logo { width: min(100%, 340px); height: auto; color: #fff; }
.footer-line { color: #d3deea; line-height: 1.7; }
.footer-line a { text-decoration: none; font-weight: 600; color: #fff; }
.footer-line a:hover { text-decoration: underline; }

/* ---------- belbalk (mobiel) ---------- */
.callbar { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .header-phone { display: none; }
}
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .brand { height: 38px; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; background: var(--white); flex-direction: column; gap: 0;
    padding: 8px var(--gutter) 24px; border-bottom: 1px solid var(--line); margin: 0;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }
  .nav a { padding: 16px 0; font-size: 1.15rem; border-bottom: 1px solid var(--line); }
  .site-header.menu-open .nav { transform: none; opacity: 1; visibility: visible; }
  .header-actions { margin-left: auto; }
  .header-actions .btn { display: none; }
  .menu-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px; background: none; border: 0; font-weight: 700; cursor: pointer; }
  .menu-btn-bars { position: relative; width: 22px; height: 12px; border-block: 2px solid var(--ink); }
  .menu-btn-bars::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--ink); }

  .hero-top { grid-template-columns: 1fr; gap: 20px; }
  .hero-title { white-space: normal; font-size: clamp(2.3rem, 10.4vw, 4.4rem); }
  .hero { display: block; min-height: 0; }
  .hero-photo { min-height: 0; }
  .hero-photo > img { position: static; aspect-ratio: 4 / 3.4; height: auto; }
  .hero-photo::after { display: none; }
  .routes { position: static; grid-template-columns: 1fr; padding: 0; row-gap: 0; background: var(--ink); }
  .route { min-height: 84px; border-top: 1px solid rgba(255, 255, 255, 0.18); }
  .route:hover { transform: none; }

  .panel { grid-template-columns: 1fr; }
  html.pin .stage-inner { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); gap: 12px; align-items: start; }
  html.pin .words { gap: 0; }
  html.pin .word { font-size: clamp(2.3rem, 12.4vw, 4.4rem); }
  html.pin .panels { height: 100%; align-self: stretch; }
  html.pin .panel { align-content: start; gap: 14px; }
  html.pin .panel-figure img { max-height: 30svh; aspect-ratio: 16 / 10; }
  html.pin .panel-text { font-size: 1.05rem; }

  .projecten-head { align-items: flex-start; flex-direction: column; gap: 20px; }
  .werkwijze-grid { grid-template-columns: 1fr; }
  .werkwijze-intro { position: static; }
  .voorna-grid { grid-template-columns: 1fr; grid-template-areas: "voor" "tijdens" "na"; }
  .trust-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; align-items: start; }

  .callbar {
    display: grid; grid-template-columns: 1.15fr 1fr; gap: 8px; position: fixed; inset: auto 0 0 0; z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--ink);
    transform: translateY(110%); visibility: hidden; transition: transform 0.35s var(--ease), visibility 0s linear 0.35s;
  }
  .callbar.is-visible { transform: none; visibility: visible; transition-delay: 0s; }
  .callbar .btn { min-height: 48px; padding: 0 12px; font-size: 0.97rem; }
  body { padding-bottom: 0; }
  .site-footer { padding-bottom: 96px; }
}
@media (max-width: 520px) {
  .btn { padding: 0 20px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .hours div { flex-direction: column; gap: 2px; }
  .hours dd { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
