@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("/assets/fonts/archivo-latin-standard-normal.woff2") format("woff2-variations"),
       url("/assets/fonts/archivo-latin-standard-normal.woff2") format("woff2");
}

:root {
  --ink: #1B1F2B;         /* antraciet uit het logo */
  --ink-soft: #2A3040;
  --orange: #E86A12;      /* logo-oranje: lijnen, iconen, knoppen op donker */
  --orange-deep: #B9500A; /* knoppen met witte tekst op licht */
  --concrete: #ECEEF1;
  --line: #D3D7DE;
  --muted: #565D6B;
  --white: #FFFFFF;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; line-height: 1.05; font-weight: 800; }
h2 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem); font-stretch: 118%; letter-spacing: -0.01em; }
h3 { font-size: 1.35rem; font-stretch: 110%; }
p { margin: 0 0 1em; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

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

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 8px 14px; }
.defs { position: absolute; }

/* Logo (inline SVG-symbool) */
.logo { display: block; height: 52px; width: auto; aspect-ratio: 252 / 118; --logo-ink: var(--ink); }
.logo-light { --logo-ink: var(--white); }
.logo-mdv { font-family: "Archivo", sans-serif; font-weight: 900; font-stretch: 112%; font-size: 92px; fill: var(--logo-ink, #1B1F2B); }
.logo-sub { font-family: "Archivo", sans-serif; font-weight: 700; font-stretch: 105%; font-size: 21px; fill: var(--logo-ink, #1B1F2B); }
.logo-house { fill: none; stroke: var(--orange); stroke-width: 8; stroke-linejoin: round; stroke-linecap: square; }
.logo-ink { fill: var(--logo-ink, #1B1F2B); }
.logo-orange { fill: var(--orange); }

/* Knoppen */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px;
  border: 2px solid var(--orange-deep); border-radius: var(--radius);
  background: var(--orange-deep); color: var(--white);
  font: inherit; font-weight: 700; font-stretch: 105%; text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: #9C4308; border-color: #9C4308; }
.btn-small { min-height: 42px; padding: 8px 16px; font-size: 0.95rem; }
.btn-on-dark { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.btn-on-dark:hover { background: #FF8331; border-color: #FF8331; }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: var(--white); }
.btn[disabled] { opacity: .7; cursor: wait; }

/* Kop */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 12px var(--gutter);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.top-logo { flex: none; }
.top-nav { display: flex; gap: 26px; margin-left: auto; }
.top-nav a { text-decoration: none; font-weight: 600; }
.top-nav a:hover { color: var(--orange-deep); }
.top-actions { display: flex; align-items: center; gap: 18px; }
.top-tel { font-weight: 700; text-decoration: none; white-space: nowrap; }
.top-tel:hover { color: var(--orange-deep); }

/* Hero: het werfbord */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
  padding: clamp(48px, 8vw, 104px) var(--gutter) clamp(56px, 8vw, 112px);
  background: var(--ink); color: var(--white);
}
.hero-text { max-width: 620px; justify-self: end; }
.hero h1 {
  font-size: clamp(2.6rem, 1rem + 4.4vw, 4.6rem);
  font-weight: 900; font-stretch: 125%; letter-spacing: -0.02em; line-height: 0.95;
}
.hero-lead { margin: 28px 0 32px; font-size: 1.2rem; line-height: 1.55; color: #CDD1DA; max-width: 52ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.site-sign { position: relative; max-width: 460px; width: 100%; padding: 92px 46px 40px; justify-self: start; }
.roof { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.roof path { fill: none; stroke: var(--orange); stroke-width: 10; stroke-linejoin: round; stroke-linecap: square; vector-effect: non-scaling-stroke; }
.board {
  position: relative; z-index: 1;
  background: var(--white); color: var(--ink);
  padding: 24px 26px 22px; border-radius: 3px;
  box-shadow: 0 0 0 6px var(--white), 0 0 0 8px var(--line);
}
.board-title { margin: 0 0 8px; font-size: 0.95rem; font-weight: 600; color: var(--muted); }
.board-logo { height: auto; width: 190px; --logo-ink: var(--ink); }
.board-list { margin: 18px 0 0; }
.board-list > div { display: grid; grid-template-columns: 78px 1fr; gap: 12px; padding: 12px 0; border-top: 2px solid var(--ink); }
.board-list dt { font-weight: 700; font-size: 0.9rem; padding-top: 2px; }
.board-list dd { margin: 0; font-weight: 600; line-height: 1.45; }
.board-list ul { list-style: none; margin: 0; padding: 0; }
.board-list a { text-decoration: none; }
.board-list a:hover { color: var(--orange-deep); text-decoration: underline; }
.post { position: absolute; bottom: -40px; width: 10px; height: 80px; background: #4B5263; z-index: 0; }
.post-l { left: 32%; }
.post-r { right: 32%; }

/* Eén keer bij het laden: de dakrand tekent zich rond het werfbord */
@media (prefers-reduced-motion: no-preference) {
  .js .roof path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s 0.2s cubic-bezier(.6,.1,.25,1) forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}

/* Secties */
.services, .compare, .steps, .about, .quote, .work {
  padding: clamp(64px, 9vw, 120px) var(--gutter);
}
.section-head { max-width: var(--wrap); margin: 0 auto 48px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; }
.section-head p { margin: 0; color: var(--muted); font-size: 1.1rem; max-width: 50ch; }

/* Diensten */
.service {
  max-width: var(--wrap); margin: 0 auto;
  display: grid; grid-template-columns: 56px minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 20px 40px; padding: 36px 0;
  border-top: 2px solid var(--ink);
}
.service-icon { width: 44px; height: 44px; fill: none; stroke: var(--orange-deep); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service-head p { margin: 10px 0 14px; color: var(--muted); max-width: 42ch; }
.service-link { font-weight: 700; color: var(--orange-deep); text-underline-offset: 4px; }
.service-list { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 32px; }
.service-list li { break-inside: avoid; padding: 6px 0 6px 18px; position: relative; }
.service-list li::before { content: ""; position: absolute; left: 0; top: 0.95em; width: 8px; height: 2px; background: var(--orange); }

.service-feature {
  margin-top: 28px; padding: 44px clamp(20px, 4vw, 48px);
  background: var(--ink); color: var(--white);
  border-top: 0; border-radius: var(--radius);
}
.service-feature .service-icon { stroke: var(--orange); }
.service-feature h3 { font-size: 1.9rem; font-stretch: 120%; }
.service-feature .service-head p { color: #CDD1DA; }
.service-feature .btn { margin-top: 4px; }

/* Vergelijking */
.compare { background: var(--concrete); }
.compare table { max-width: var(--wrap); width: 100%; margin: 0 auto; border-collapse: collapse; font-size: 1.05rem; }
.compare th { text-align: left; padding: 0 20px 14px 0; font-stretch: 110%; font-size: 1.1rem; }
.compare td { padding: 16px 20px 16px 0; border-top: 1px solid var(--line); vertical-align: top; width: 50%; }
.compare td:first-child { color: var(--muted); }
.compare td:last-child { font-weight: 600; border-top-color: var(--ink); }
.compare th:last-child { color: var(--orange-deep); }

/* Werkwijze (echte volgorde, dus genummerd) */
.steps ol {
  max-width: var(--wrap); margin: 0 auto; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px;
  counter-reset: none; position: relative;
}
.steps li { position: relative; padding-top: 76px; }
.steps li::before { content: ""; position: absolute; top: 26px; left: 56px; right: -32px; height: 2px; background: var(--line); }
.steps li:last-child::before { display: none; }
.step-nr {
  position: absolute; top: 0; left: 0;
  width: 54px; height: 54px; display: grid; place-items: center;
  border: 2px solid var(--ink); border-radius: 50%;
  font-weight: 900; font-stretch: 120%; font-size: 1.4rem;
}
.steps li:first-child .step-nr { background: var(--orange); border-color: var(--orange); }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); margin: 0; }

/* Realisaties (sjabloon, staat nog in commentaar) */
.work { background: var(--concrete); }
.work-grid { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.work figure { margin: 0; }
.work figcaption { padding-top: 10px; color: var(--muted); }
.work figcaption strong { display: block; color: var(--ink); }

/* Over ons */
.about {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px 72px;
  max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto;
  border-top: 1px solid var(--line);
}
.about-text h2 { margin-bottom: 24px; }
.about-text p { max-width: 54ch; }
.reasons { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 32px; align-content: start; }
.reasons li { position: relative; padding-left: 36px; color: var(--muted); }
.reasons strong { display: block; color: var(--ink); font-size: 1.1rem; }
.reasons svg { position: absolute; left: 0; top: 2px; width: 24px; height: 24px; fill: none; stroke: var(--orange-deep); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* Offerte */
.quote {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px 72px;
  background: var(--ink); color: var(--white);
}
.quote-side { max-width: 440px; justify-self: end; scroll-margin-top: 84px; }
.quote-side h2 { margin-bottom: 24px; }
.quote-side p { color: #CDD1DA; }
.contact-list { list-style: none; margin: 28px 0 0; padding: 0; }
.contact-list li { display: grid; grid-template-columns: 90px 1fr; padding: 12px 0; border-top: 1px solid #3A4152; font-weight: 600; }
.contact-list span { color: #A9AFBB; font-weight: 500; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--orange); text-decoration: underline; }

.form {
  max-width: 640px; width: 100%;
  background: var(--white); color: var(--ink);
  padding: clamp(22px, 4vw, 40px); border-radius: var(--radius);
}
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 0.98rem; }
.optional { font-weight: 500; color: var(--muted); }
.form input, .form select, .form textarea {
  width: 100%; min-height: 48px; padding: 10px 12px;
  font: inherit; color: var(--ink);
  border: 1.5px solid #9097A4; border-radius: 4px; background: var(--white);
}
.form input[type="file"] { padding: 9px; min-height: 0; background: var(--concrete); border-style: dashed; }
.form textarea { resize: vertical; min-height: 130px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(232,106,18,.45); }
.form [aria-invalid="true"] { border-color: #B3261E; }
.hint { margin: -6px 0 18px; font-size: 0.92rem; color: var(--muted); }
.error { margin: 6px 0 0; color: #B3261E; font-size: 0.92rem; font-weight: 600; }
.photo-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.photo-list li { display: flex; align-items: center; gap: 8px; padding: 4px 6px 4px 4px; background: var(--concrete); border-radius: 4px; font-size: 0.88rem; }
.photo-list img { width: 40px; height: 40px; object-fit: cover; border-radius: 3px; }
.photo-list button { border: 0; background: none; font: inherit; font-weight: 700; color: var(--orange-deep); cursor: pointer; padding: 4px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { width: 100%; margin-top: 6px; }
.privacy-note { margin: 14px 0 0; font-size: 0.88rem; color: var(--muted); }
.status { margin: 16px 0 0; padding: 14px 16px; border-radius: 4px; background: #E6F2EA; color: #1D5A32; font-weight: 600; }
.status.is-error { background: #FBEAE9; color: #8C1D18; }

/* Voet */
.foot {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px 48px;
  padding: 56px var(--gutter) 96px; background: #12151E; color: #CDD1DA;
  border-top: 4px solid var(--orange);
}
.foot-brand p { max-width: 36ch; margin-top: 16px; }
.foot .logo { height: 56px; }
.foot-contact { list-style: none; margin: 0; padding: 0; line-height: 2; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--orange); text-decoration: underline; }
.foot-links { display: flex; flex-direction: column; line-height: 2; }
.foot-legal { grid-column: 1 / -1; margin: 0; font-size: 0.88rem; color: #8A90A0; }

.callbar { display: none; }

/* Responsief */
@media (max-width: 1060px) {
  .top-nav { display: none; }
  .top-actions { margin-left: auto; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-text, .site-sign { justify-self: start; }
  .site-sign { margin-top: 8px; }
  .section-head { grid-template-columns: 1fr; }
  .service { grid-template-columns: 44px minmax(0, 1fr); }
  .service-list { grid-column: 2; }
  .steps ol { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
  .steps li:nth-child(2)::before { display: none; }
  .about, .quote { grid-template-columns: 1fr; }
  .quote-side { justify-self: start; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .top { padding-block: 10px; gap: 12px; }
  .logo { height: 42px; }
  .top-tel { display: none; }
  .site-sign { padding: 70px 22px 30px; }
  .board { padding: 20px 18px 18px; }
  .board-list > div { grid-template-columns: 1fr; gap: 4px; }
  .service { grid-template-columns: 1fr; padding: 28px 0; }
  .service-list { grid-column: auto; columns: 1; }
  .service-feature { padding: 32px 20px; }
  .service-feature .btn { width: 100%; }
  .compare thead { display: none; }
  .compare tr { display: block; padding: 14px 0; border-top: 1px solid var(--ink); }
  .compare td { display: block; width: auto; padding: 2px 0; border: 0; }
  .compare td:first-child { text-decoration: line-through; text-decoration-color: rgba(86,93,107,.5); }
  .steps ol { grid-template-columns: 1fr; gap: 0; }
  .steps li { padding: 0 0 32px 76px; min-height: 86px; }
  .steps li::before { display: block; top: 58px; bottom: 4px; left: 26px; right: auto; width: 2px; height: auto; }
  .steps li:nth-child(2)::before { display: block; }
  .steps li:last-child::before { display: none; }
  .reasons { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; padding-bottom: 110px; }
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    border-top: 1px solid #3A4152;
  }
  .callbar a {
    display: flex; align-items: center; justify-content: center; min-height: 56px;
    font-weight: 700; text-decoration: none; background: var(--ink); color: var(--white);
  }
  .callbar a + a { background: var(--orange); color: var(--ink); }
}

/* Losse pagina's */
.page-privacy { max-width: 720px; margin: 0 auto; padding: 64px var(--gutter) 96px; }
.page-privacy h1 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.4rem); font-stretch: 120%; margin-bottom: 32px; }
.page-privacy h2 { font-size: 1.4rem; font-stretch: 110%; margin: 36px 0 12px; }
.page-privacy ul { padding-left: 20px; }
.back { font-weight: 700; color: var(--orange-deep); }

.page-404 { min-height: 100vh; display: grid; place-content: center; gap: 20px; padding: 48px var(--gutter); background: var(--ink); color: var(--white); }
.page-404 h1 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); font-stretch: 122%; }
.page-404 p { color: #CDD1DA; max-width: 46ch; margin: 0; }
.page-404 .btn { justify-self: start; }
