:root {
  --bg: #0b0b0c;
  --surface: #151517;
  --surface-2: #1d1d20;
  --text: #f7f5f1;
  --muted: #b8b5b0;
  --red: #e31e24;
  --red-dark: #b6161b;
  --line: #343438;
  --max: 1180px;
  --radius: 8px;
  --shadow: 0 22px 60px rgba(0, 0, 0, .3);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Montserrat, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
section[id] { scroll-margin-top: 88px; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #ff6c70; outline-offset: 3px; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.narrow { width: min(calc(100% - 40px), 840px); margin-inline: auto; }
.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 9999;
  transform: translateY(-160%); padding: 10px 16px;
  background: var(--text); color: #111; border-radius: 4px;
}
.skip-link:focus { transform: translateY(0); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.eyebrow {
  margin: 0 0 12px; color: #ff5a5f; font-size: .78rem;
  font-weight: 800; letter-spacing: .17em; text-transform: uppercase;
}
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.08; letter-spacing: -.025em; }
h1, h2 { text-transform: uppercase; }
h1 { font-size: clamp(2.7rem, 7vw, 6.2rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.8rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }
.lead { color: #d3d0cb; font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 720px; }
.muted { color: var(--muted); }

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 1000; transition: .25s ease;
  background: linear-gradient(rgba(0,0,0,.86), rgba(0,0,0,0));
}
.site-header.scrolled { background: rgba(11,11,12,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.header-inner { min-height: 220px; display: flex; align-items: center; gap: 28px; transition: .3s ease; }
.scrolled .header-inner { min-height: 104px; }
.brand { margin-right: auto; }
.brand img { width: 220px; height: auto; max-height: 190px; object-fit: contain; object-position: left center; transition: .3s ease; filter: drop-shadow(0 5px 12px rgba(0,0,0,.55)); }
.scrolled .brand img { width: 110px; max-height: 94px; }
.subpage-header {
  position: relative;
  background: var(--bg);
  border-bottom: 2px solid var(--red);
}
.subpage-header .header-inner { min-height: 176px; }
.subpage-header .brand img { width: 150px; max-height: 138px; }
.subpage .page-hero { padding-top: 70px; }
.primary-nav { display: flex; align-items: center; gap: 26px; }
.primary-nav a {
  text-decoration: none; color: #f4f2ee; font-size: .82rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
}
.primary-nav a:not(.button):hover { color: #ff5b60; }
.menu-toggle {
  display: none; width: 46px; height: 46px; background: transparent; color: white;
  border: 1px solid var(--line); border-radius: 4px; cursor: pointer;
}
.menu-toggle span:not(.sr-only) { display: block; width: 22px; height: 2px; margin: 5px auto; background: currentColor; }

.button {
  display: inline-flex; justify-content: center; align-items: center; gap: 9px;
  min-height: 48px; padding: 12px 21px; border: 2px solid var(--red);
  border-radius: 4px; background: var(--red); color: white; cursor: pointer;
  font-size: .84rem; font-weight: 900; letter-spacing: .06em;
  line-height: 1.1; text-decoration: none; text-transform: uppercase; transition: .2s ease;
}
.button:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-1px); }
.button-outline { background: rgba(12,12,13,.5); border-color: #777; }
.button-outline:hover { border-color: white; background: white; color: #111; }
.button-small { min-height: 42px; padding: 10px 15px; }
.button-wide { width: 100%; }

.hero {
  min-height: 760px; min-height: 100svh; display: grid; align-items: end;
  padding: 170px 0 90px; position: relative; overflow: hidden;
  background: linear-gradient(90deg, rgba(6,6,7,.93) 0%, rgba(6,6,7,.74) 48%, rgba(6,6,7,.32) 100%),
    linear-gradient(0deg, var(--bg), transparent 35%),
    url("../img/hero-bouw.jpg") center/cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 58px 58px; mask-image: linear-gradient(90deg, #000, transparent 75%);
}
.hero .container { position: relative; }
.hero h1 { max-width: 930px; }
.hero h1 span { color: var(--red); }
.hero-actions, .contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.trust-row {
  display: flex; flex-wrap: wrap; gap: 22px; padding: 22px 0 0; margin: 38px 0 0;
  border-top: 1px solid rgba(255,255,255,.2); list-style: none;
  color: #dedbd6; font-size: .85rem; font-weight: 700;
}
.trust-row li::before { content: "✓"; color: #ff5b60; margin-right: 8px; }

.section { padding: clamp(76px, 10vw, 132px) 0; }
.section-compact { padding: 68px 0; }
.section-light { background: #f0ede7; color: #171719; }
.section-heading { max-width: 760px; margin-bottom: 48px; }
.section-heading p:last-child { color: #5c5955; }
.intro-grid, .contact-grid, .legal-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 8vw, 110px); align-items: center; }
.intro-card {
  min-height: 480px; padding: 42px; display: flex; flex-direction: column; justify-content: end;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.83)),
    url("../img/project-timmerwerk.jpg") center/cover; box-shadow: var(--shadow); border-radius: var(--radius);
}
.intro-card strong { font-size: clamp(2.6rem, 6vw, 5.4rem); line-height: 1; }
.intro-card span { color: #ddd; font-weight: 700; text-transform: uppercase; }
.check-list { padding: 0; margin: 28px 0 0; list-style: none; }
.check-list li { position: relative; padding: 12px 0 12px 30px; border-bottom: 1px solid rgba(255,255,255,.12); }
.check-list li::before { content: "—"; position: absolute; left: 0; color: var(--red); font-weight: 900; }
.section-light .check-list li { border-color: rgba(0,0,0,.12); }

.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service-card {
  min-height: 265px; padding: 30px; border: 1px solid var(--line);
  background: linear-gradient(150deg, var(--surface-2), var(--surface));
  border-radius: var(--radius); transition: .25s ease;
}
.service-card:hover { transform: translateY(-5px); border-color: var(--red); }
.service-number { display: block; margin-bottom: 50px; color: #ff5a5f; font-weight: 900; }
.service-card p { color: var(--muted); font-size: .94rem; }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
.process-card { padding: 30px; border-left: 1px solid #c9c4bd; counter-increment: step; }
.process-card::before {
  content: "0" counter(step); display: block; margin-bottom: 36px;
  color: var(--red); font-size: 2rem; font-weight: 900;
}

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.project-card { position: relative; min-height: 430px; overflow: hidden; border-radius: var(--radius); background: #222; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: .55s ease; }
.project-card:hover img { transform: scale(1.045); }
.project-card figcaption {
  position: absolute; inset: auto 0 0; padding: 80px 26px 25px;
  background: linear-gradient(transparent, rgba(0,0,0,.93));
}
.project-card strong { display: block; font-size: 1.25rem; text-transform: uppercase; }
.project-card span { color: #d3d0cb; font-size: .9rem; }

.service-area {
  background: var(--red); color: white; padding: 62px 0;
}
.service-area-inner { display: flex; justify-content: space-between; align-items: center; gap: 50px; }
.service-area h2 { max-width: 650px; margin: 0; }
.area-list { display: flex; flex-wrap: wrap; gap: 10px; max-width: 420px; }
.area-list span { padding: 8px 13px; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; font-size: .82rem; font-weight: 700; }

.contact-panel { padding: 42px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: var(--radius); }
.contact-panel address { font-style: normal; }
.contact-panel a { text-decoration: none; }
.contact-panel a:hover { color: #ff5b60; }
.contact-list { list-style: none; padding: 0; margin: 28px 0; }
.contact-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-list strong { display: block; color: var(--muted); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }

.page-hero { padding: 170px 0 70px; background: radial-gradient(circle at 80% 10%, rgba(227,30,36,.18), transparent 35%), var(--bg); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.5rem, 6vw, 4.9rem); }
.breadcrumbs { color: var(--muted); font-size: .86rem; margin-bottom: 30px; }
.breadcrumbs a { text-decoration: none; }

.form-layout { display: grid; grid-template-columns: 1.25fr .75fr; gap: 36px; align-items: start; }
.form-card, .info-card, .legal-card {
  padding: clamp(24px, 5vw, 46px); background: var(--surface); border: 1px solid var(--line);
  border-top: 4px solid var(--red); border-radius: var(--radius); box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 20px; }
.field-full { grid-column: 1 / -1; }
label { display: block; margin-bottom: 7px; font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.optional { color: var(--muted); font-weight: 500; text-transform: none; }
input, select, textarea {
  width: 100%; padding: 14px 15px; border: 1px solid #4a4a4f; border-radius: 4px;
  background: #222225; color: white;
}
input:focus, select:focus, textarea:focus { border-color: #ff5b60; outline: 2px solid rgba(255,91,96,.22); }
textarea { min-height: 150px; resize: vertical; }
input[type="file"] { padding: 12px; border-style: dashed; }
.help { margin-top: 6px; color: var(--muted); font-size: .8rem; }
.checkbox { display: flex; align-items: flex-start; gap: 11px; margin: 8px 0 22px; }
.checkbox input { width: 18px; height: 18px; margin-top: 4px; flex: 0 0 auto; }
.checkbox label { text-transform: none; letter-spacing: 0; font-weight: 500; }
.honeypot { position: absolute !important; left: -10000px !important; }
.form-status { min-height: 1.4em; margin-bottom: 12px; color: #ffb5b7; }
.step-list { list-style: none; margin: 0; padding: 0; counter-reset: aside-step; }
.step-list li { position: relative; padding: 0 0 28px 58px; counter-increment: aside-step; }
.step-list li::before {
  content: counter(aside-step); position: absolute; left: 0; top: 0; width: 38px; height: 38px;
  display: grid; place-items: center; border-radius: 50%; background: var(--red); font-weight: 900;
}

.legal-card { box-shadow: none; }
.legal-card h2 { margin-top: 2em; color: #ff5b60; font-size: 1.45rem; text-transform: none; letter-spacing: 0; }
.legal-card h2:first-child { margin-top: 0; }
.legal-card li { margin-bottom: 7px; color: #d1cec9; }
.legal-card p { color: #d1cec9; }
.legal-note { padding: 16px 18px; border-left: 4px solid var(--red); background: #232326; color: #ddd; }

.thanks { min-height: 72vh; display: grid; place-items: center; text-align: center; padding: 160px 0 80px; }
.thanks-mark { width: 78px; height: 78px; margin: 0 auto 24px; display: grid; place-items: center; border-radius: 50%; background: var(--red); font-size: 2rem; font-weight: 900; }

.site-footer { padding: 68px 0 24px; border-top: 1px solid var(--line); background: #080809; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 42px; }
.footer-logo { width: 155px; height: 86px; object-fit: contain; object-position: left center; margin-bottom: 18px; }
.site-footer h3 { font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; }
.site-footer a { display: block; margin: 7px 0; color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: white; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 20px; margin-top: 52px; padding-top: 20px;
  border-top: 1px solid var(--line); color: #89878a; font-size: .78rem;
}
.footer-bottom div { display: flex; flex-wrap: wrap; gap: 18px; }
.floating-cta {
  position: fixed; right: 18px; bottom: 18px; z-index: 900; display: flex; gap: 9px;
}
.floating-cta a { box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.whatsapp { background: #157e48; border-color: #157e48; }
.whatsapp:hover { background: #0f6338; border-color: #0f6338; }

@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .primary-nav {
    position: absolute; inset: 100% 0 auto; display: none; padding: 28px 20px;
    flex-direction: column; align-items: stretch; background: rgba(11,11,12,.99);
    border-bottom: 2px solid var(--red);
  }
.primary-nav.open { display: flex; }
  .primary-nav a { padding: 9px 0; }
  .services-grid, .process-grid { grid-template-columns: 1fr 1fr; }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .project-card:last-child { grid-column: 1 / -1; }
  .intro-grid, .contact-grid, .form-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .container, .narrow { width: min(calc(100% - 28px), var(--max)); }
  .header-inner { min-height: 164px; }
  .scrolled .header-inner { min-height: 82px; }
  .brand img { width: 160px; max-height: 140px; }
  .scrolled .brand img { width: 92px; max-height: 76px; }
  .subpage-header .header-inner { min-height: 146px; }
  .subpage-header .brand img { width: 138px; max-height: 124px; }
  .hero { min-height: 760px; padding-top: 132px; background-position: 62% center; }
  .hero-actions .button { width: 100%; }
  .trust-row { gap: 10px; flex-direction: column; }
  .services-grid, .process-grid, .project-grid, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .project-card:last-child { grid-column: auto; }
  .process-card { border-left: 0; border-top: 1px solid #c9c4bd; }
  .service-area-inner, .footer-bottom { align-items: flex-start; flex-direction: column; }
  .intro-card, .project-card { min-height: 360px; }
  .contact-panel { padding: 26px; }
  .floating-cta { left: 12px; right: 12px; bottom: 12px; }
  .floating-cta a { flex: 1; padding-inline: 9px; }
}

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