/* ===== Basis ===== */
:root {
  --bg: #000;
  --bg-soft: #0f0f0f;
  --bg-card: #161616;
  --border: #262626;
  --text: #f2f2f2;
  --text-muted: #a3a3a3;
  --accent: #a3d65c;        /* limoengroen van de BWB-trui */
  --accent-hover: #b8e37d;
  --on-accent: #0b0b0b;     /* tekstkleur op groene knoppen */
  --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; }

[hidden] { display: none !important; }

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: var(--on-accent); }
.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;
  gap: 12px;
}
.header__logo img { height: 64px; width: 92px; object-fit: cover; object-position: 50% 0%; }

.nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }

/* Instagram-knop in de header */
.header__insta {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  color: var(--text);
  transition: color .2s, border-color .2s;
}
.header__insta:hover { color: var(--accent); border-color: var(--accent); }
.ig-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav__link {
  padding: 10px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  color: var(--text-muted);
  white-space: nowrap;
  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: var(--on-accent); margin-left: 8px; }
.nav__link--cta:hover { background: var(--accent-hover); color: var(--on-accent); }
.nav__link--cta.is-active { color: var(--on-accent); }

.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(78,120,32,.9), 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; }

/* ===== Instagram-balk ===== */
.insta-band {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px 40px;
  margin-top: 48px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: transform .25s, border-color .25s;
}
.insta-band:hover { transform: translateY(-3px); border-color: var(--accent); }
.insta-band__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  border: 1px solid var(--border);
  color: var(--accent);
  flex-shrink: 0;
}
.insta-band__icon .ig-icon { width: 30px; height: 30px; stroke-width: 1.6; }
.insta-band__text { display: flex; flex-direction: column; flex: 1; }
.insta-band__text strong { font-size: 1.35rem; font-weight: 800; }
.insta-band__text span { color: var(--text-muted); }
.btn--insta { border-color: rgba(255,255,255,.6); color: #fff; white-space: nowrap; transition: border-color .2s, color .2s, transform .2s; }
.insta-band:hover .btn--insta { border-color: var(--accent); color: var(--accent); }
#page-home .insta-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 { display: flex; flex-direction: column; }
.service p { color: var(--text-muted); margin: 0 0 20px; }
.service__more { margin-top: auto; color: var(--accent); font-weight: 600; font-size: .9rem; }

/* ===== Dienst-detailpagina ===== */
.back-link { display: inline-block; color: var(--text-muted); font-weight: 600; margin-bottom: 32px; }
.back-link:hover { color: var(--accent); }
.dienst-head { display: flex; gap: 28px; align-items: flex-start; }
.dienst-head__icon {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.dienst-head__icon .service__icon { width: 48px; height: 48px; margin: 0; }
.dienst-projects__title { margin-bottom: 24px; }
.dienst-empty {
  padding: 32px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
}

/* ===== Projecten ===== */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.gallery--projecten { grid-template-columns: repeat(3, 1fr); }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filter {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.filter:hover { color: var(--text); border-color: var(--text-muted); }
.filter.is-active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.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__count {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(4px);
  font-size: .85rem;
  font-weight: 700;
}
.gallery__count svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.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__figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 100%; }
.lightbox img { max-height: 82vh; max-width: 100%; border-radius: var(--radius); }
.lightbox__caption { color: var(--text-muted); font-weight: 600; text-align: center; }
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.6);
  color: #fff;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.lightbox__nav:hover { border-color: var(--accent); color: var(--accent); }
.lightbox__nav svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }
.lightbox.is-single .lightbox__nav { display: none; }
.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:not(.eyebrow) { 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__insta { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }

.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; font-weight: 600; }
.form-status.is-success { color: var(--accent); }
.form-status.is-error { color: #ff8a7a; }
.form-status a { text-decoration: underline; }
.form-note { margin: 0; color: var(--text-muted); font-size: .85rem; }
.form-honeypot { display: none; }
.contact__form .btn:disabled { opacity: .6; cursor: wait; transform: none; }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--border); background: var(--bg-soft); color: var(--text-muted); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-block: 56px 40px;
}
.footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.footer__logo { height: 60px; width: 86px; object-fit: cover; object-position: 50% 0%; mix-blend-mode: screen; }
.footer__insta { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; }
.footer__insta:hover { color: var(--accent); }

.footer__title {
  margin: 6px 0 18px;
  color: var(--text);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
}
.footer__links { display: flex; flex-direction: column; gap: 12px; font-style: normal; font-size: .95rem; }
.footer__links a { width: fit-content; transition: color .2s; }
.footer__links a:hover { color: var(--accent); }
.footer__mail { overflow-wrap: anywhere; }

.footer__bottom { padding-block: 22px; border-top: 1px solid var(--border); font-size: .85rem; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px 24px; flex-wrap: wrap; }
.footer__bottom p { margin: 0; }
.footer__credit a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.footer__credit a:hover { color: var(--accent); }

/* ===== 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; }
  .gallery--projecten { grid-template-columns: 1fr 1fr; }
}

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

  .nav-toggle { display: block; }
  .header__insta { margin-left: auto; }
  .nav-toggle { order: 3; }
  .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; }
  .section--tight { padding-top: 0; }
  #page-home .section--tight:not(:last-child) { padding-bottom: 28px; }
  .usp-grid, .service-grid, .feature-grid, .gallery, .form-row { grid-template-columns: 1fr; }
  .gallery--projecten .gallery__item { aspect-ratio: 4 / 3; }
  .filters { gap: 8px; }
  .filter { padding: 8px 14px; font-size: .88rem; }
  .feature:last-child { display: flex; }
  .feature { aspect-ratio: 16 / 10; }
  .cta-band { padding: 32px 24px; }
  .insta-band { flex-direction: column; align-items: flex-start; padding: 28px 24px; gap: 16px; }
  .contact__form { padding: 24px; }
  .dienst-head { flex-direction: column; gap: 20px; }
  .dienst-head__icon { width: 72px; height: 72px; }
  .lightbox__nav { width: 44px; height: 44px; top: auto; bottom: 20px; transform: none; }
  /* Footer: merk bovenaan, daaronder navigatie | contact */
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; padding-block: 44px 32px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__mail { overflow-wrap: normal; white-space: nowrap; font-size: .82rem; }
  .footer__grid { grid-template-columns: .8fr 1.2fr; }
}
