/* ===== Basis ===== */
:root {
  --bg: #000;
  --bg-soft: #0f0f0f;
  --bg-card: #161616;
  --border: #262626;
  --text: #f2f2f2;
  --text-muted: #a3a3a3;
  --accent: #d9622b;        /* baksteen-oranje, past bij de foto's */
  --accent-hover: #ef7438;
  --radius: 10px;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Montserrat', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
p  { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

.section { padding-block: 80px; }
.section--tight { padding-top: 0; }

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .8rem;
  font-weight: 700;
  margin-bottom: .8em;
}

.lead { color: var(--text-muted); font-size: 1.1rem; max-width: 640px; }

/* ===== Knoppen ===== */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow { color: var(--accent); font-weight: 600; }
.link-arrow:hover { color: var(--accent-hover); }

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0,0,0,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header__logo img { height: 64px; width: 92px; object-fit: cover; object-position: 50% 0%; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav__link {
  padding: 10px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  color: var(--text-muted);
  transition: color .2s, background .2s;
}
.nav__link:hover { color: var(--text); }
.nav__link.is-active { color: var(--text); }
.nav__link.is-active:not(.nav__link--cta) { box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.nav__link--cta { background: var(--accent); color: #fff; margin-left: 8px; }
.nav__link--cta:hover { background: var(--accent-hover); color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  margin: 6px 0;
  transition: transform .3s, opacity .3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== Pagina's (SPA) ===== */
.page { display: none; }
.page.is-active { display: block; animation: pageIn .45s ease; }

@keyframes pageIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

.page-head { margin-bottom: 48px; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.65) 55%, rgba(0,0,0,.35) 100%);
}
.hero__content { position: relative; max-width: 1180px; }
.hero h1 { max-width: 720px; }
.hero__text { font-size: 1.15rem; color: #d4d4d4; max-width: 560px; margin-bottom: 2em; }

/* ===== USP's ===== */
.usp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.usp {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.usp__number { display: block; color: var(--accent); font-weight: 800; font-size: 1.4rem; margin-bottom: 12px; }
.usp p { color: var(--text-muted); margin: 0; }

/* ===== Feature tegels (home) ===== */
.section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 24px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  transition: transform .3s;
}
.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,0) 60%);
  transition: background .3s;
}
.feature span { position: relative; font-weight: 700; font-size: 1.2rem; }
.feature:hover { transform: translateY(-4px); }
.feature:hover::before { background: linear-gradient(to top, rgba(217,98,43,.85), rgba(0,0,0,0) 70%); }

/* ===== CTA band ===== */
.cta-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 48px;
  margin-top: 64px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
}
.cta-band h2 { margin-bottom: .3em; }
.cta-band p { color: var(--text-muted); margin: 0; }
#page-home .cta-band { margin-top: 0; }

/* ===== Diensten ===== */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .25s, transform .25s;
}
.service:hover { border-color: var(--accent); transform: translateY(-4px); }
.service__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service p { color: var(--text-muted); margin: 0; }

/* ===== Projecten ===== */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.gallery__item {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 1 / 1;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 40px 20px 18px;
  background: linear-gradient(to top, rgba(0,0,0,.85), transparent);
  font-weight: 600;
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img { max-height: 90vh; max-width: 100%; border-radius: var(--radius); }
.lightbox__close {
  position: absolute;
  top: 16px; right: 20px;
  background: none;
  border: 0;
  color: #fff;
  font-size: 2.6rem;
  cursor: pointer;
  line-height: 1;
}

/* ===== Over ===== */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about__img img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.about__text p { color: var(--text-muted); }
.checklist { list-style: none; padding: 0; margin: 24px 0 32px; }
.checklist li { padding-left: 32px; position: relative; margin-bottom: 12px; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: .35em;
  width: 16px; height: 9px;
  border-left: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  transform: rotate(-45deg);
}

/* ===== Contact ===== */
.contact { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; }
.contact__info { display: flex; flex-direction: column; gap: 24px; }
.contact__item { display: flex; flex-direction: column; }
.contact__label {
  color: var(--accent);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 4px;
}
.contact__item a:hover { color: var(--accent); }

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact__form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .9rem; }
.contact__form input,
.contact__form select,
.contact__form textarea {
  font: inherit;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  transition: border-color .2s;
}
.contact__form input:focus,
.contact__form select:focus,
.contact__form textarea:focus { outline: none; border-color: var(--accent); }
.contact__form textarea { resize: vertical; }
.contact__form .btn { align-self: flex-start; }
.form-status { margin: 0; color: var(--accent); font-weight: 600; }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--border); background: var(--bg-soft); padding-block: 40px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__logo { height: 60px; width: 86px; object-fit: cover; object-position: 50% 0%; }
.footer__nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__nav a { color: var(--text-muted); font-size: .9rem; }
.footer__nav a:hover { color: var(--text); }
.footer__copy { color: var(--text-muted); font-size: .85rem; margin: 0; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .usp-grid, .service-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature:last-child { display: none; }
  .about, .contact { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 760px) {
  :root { --header-h: 72px; }
  .header__logo img { height: 54px; width: 78px; }

  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px;
    background: #000;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    transition: transform .3s ease;
    z-index: -1;
  }
  .nav.is-open { transform: none; }
  .nav__link { padding: 14px 16px; font-size: 1.05rem; }
  .nav__link.is-active:not(.nav__link--cta) { box-shadow: inset 3px 0 0 var(--accent); }
  .nav__link--cta { margin: 8px 0 0; text-align: center; }

  .section { padding-block: 56px; }
  .usp-grid, .service-grid, .feature-grid, .gallery, .form-row { grid-template-columns: 1fr; }
  .feature:last-child { display: flex; }
  .feature { aspect-ratio: 16 / 10; }
  .cta-band { padding: 32px 24px; }
  .contact__form { padding: 24px; }
  .footer__inner { flex-direction: column; text-align: center; }
}
