/* ═══════════════════════════════════════════════════════════════
   Vakwerkhuis — Gedeelde stijlen
   ═══════════════════════════════════════════════════════════════ */

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

:root {
  --goud:      #b5892a;
  --goud-lt:   #d4a94a;
  --ink:       #1a1814;
  --ink-2:     #4a4740;
  --ink-3:     #8a8680;
  --papier:    #f5f2ed;
  --papier-2:  #ede9e2;
  --papier-3:  #e2ddd5;
  --wit:       #ffffff;
  --border:    rgba(26,24,20,0.10);
  --radius:    8px;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:  'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
  --max-w:     1200px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--wit);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ── Typografie ────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
}
h1 { font-size: clamp(28px, 4vw, 46px); }
h2 { font-size: clamp(22px, 3vw, 34px); }
h3 { font-size: clamp(18px, 2vw, 24px); }

/* ── Container ─────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Knoppen ───────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary   { background: var(--goud); color: white; border-color: var(--goud); }
.btn-primary:hover { background: var(--goud-lt); border-color: var(--goud-lt); }
.btn-secondary { background: transparent; color: white; border-color: white; }
.btn-secondary:hover { background: white; color: var(--ink); }
.btn-outline   { background: transparent; color: var(--goud); border-color: var(--goud); }
.btn-outline:hover { background: var(--goud); color: white; }

/* ── Header ────────────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.site-logo img { height: 48px; width: auto; }
.site-logo:hover { opacity: .85; }

.hoofd-nav { display: flex; align-items: center; gap: 32px; }
.hoofd-nav a {
  font-size: 13px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; text-decoration: none;
  color: var(--ink-2);
  transition: color .18s;
  white-space: nowrap;
}
.hoofd-nav a:hover, .hoofd-nav a.actief { color: var(--goud); }

.header-contact {
  display: flex; align-items: center; gap: 16px;
}
.header-tel {
  font-size: 13px; font-weight: 600; color: var(--ink);
  text-decoration: none; white-space: nowrap;
}
.header-tel:hover { color: var(--goud); }
.header-wa {
  display: flex; align-items: center; gap: 6px;
  background: #25D366; color: white;
  padding: 7px 14px; border-radius: 20px;
  font-size: 12px; font-weight: 600;
  text-decoration: none; white-space: nowrap;
  transition: background .2s;
}
.header-wa:hover { background: #1ebe5a; }

.menu-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 4px;
}
.menu-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: all .3s;
}

/* ── Hero pagina ───────────────────────────────────────────── */
.sectie-hero {
  position: relative;
  padding-top: 72px; /* header hoogte */
  background: var(--ink);
  color: white;
  overflow: hidden;
}
.sectie-hero .hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .45;
}
.sectie-hero .container {
  position: relative; z-index: 1;
  padding-top: 80px; padding-bottom: 80px;
}
.sectie-hero--small .container {
  padding-top: 56px; padding-bottom: 56px;
}
.boven-titel {
  font-size: 12px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--goud);
  margin-bottom: 14px;
}
.hero-sub {
  font-size: 18px; color: rgba(255,255,255,.75);
  margin-top: 14px; max-width: 560px;
}

/* ── Secties ───────────────────────────────────────────────── */
.sectie { padding: 72px 0; }
.sectie-papier { background: var(--papier); }
.sectie-donker { background: var(--ink); color: white; }
.sectie-donker h2, .sectie-donker h3 { color: white; }

.sectie-kop {
  text-align: center; margin-bottom: 48px;
}
.sectie-kop .boven-titel { color: var(--goud); }
.sectie-kop p {
  font-size: 17px; color: var(--ink-2);
  max-width: 600px; margin: 12px auto 0;
}

/* ── Diensten hero blok ────────────────────────────────────── */
.dienst-hero-img {
  width: 100%; max-height: 400px; object-fit: cover;
  display: block; margin-top: 72px;
}
.dienst-intro {
  padding: 56px 0;
}
.dienst-intro p {
  font-size: 17px; line-height: 1.75;
  color: var(--ink-2); max-width: 760px;
  margin-bottom: 18px;
}

/* ── Project grid ──────────────────────────────────────────── */
.projecten-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.project-kaart {
  display: block; text-decoration: none; color: inherit;
  background: white; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border);
  transition: box-shadow .2s, transform .2s;
}
.project-kaart:hover {
  box-shadow: 0 8px 28px rgba(26,24,20,.10);
  transform: translateY(-3px);
}
.project-kaart img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
}
.project-kaart .kaart-body { padding: 16px 18px; }
.project-kaart .kaart-tag {
  font-size: 11px; font-weight: 600; letter-spacing: .07em;
  text-transform: uppercase; color: var(--goud);
  margin-bottom: 4px;
}
.project-kaart h3 { font-size: 16px; font-weight: 500; }

/* ── CTA sectie ────────────────────────────────────────────── */
.sectie-cta {
  background: var(--ink);
  color: white;
  padding: 72px 0;
  text-align: center;
}
.sectie-cta h2 { color: white; margin-bottom: 12px; }
.sectie-cta p { color: rgba(255,255,255,.65); font-size: 17px; margin-bottom: 28px; }
.cta-knoppen { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: #111;
  color: rgba(255,255,255,.6);
  padding: 56px 0 28px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 28px;
}
.footer-logo img { height: 40px; filter: brightness(0) invert(1); margin-bottom: 14px; }
.footer-omschrijving { font-size: 13px; line-height: 1.65; max-width: 260px; }
.footer-adres { margin-top: 12px; font-size: 13px; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 12px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: white;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { color: rgba(255,255,255,.55); text-decoration: none; font-size: 13px; }
.footer-col ul a:hover { color: var(--goud); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px;
  font-size: 12px; color: rgba(255,255,255,.35);
}
.footer-bottom a { color: rgba(255,255,255,.35); text-decoration: none; }
.footer-bottom a:hover { color: var(--goud); }

/* ── Filterbar ─────────────────────────────────────────────── */
.filterbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.filter-knop {
  padding: 8px 18px; border-radius: 24px;
  border: 1px solid var(--border);
  background: white; color: var(--ink-2);
  font-family: var(--font-body); font-size: 13px;
  cursor: pointer; transition: all .18s;
}
.filter-knop:hover { border-color: var(--goud); color: var(--goud); }
.filter-knop.actief { background: var(--goud); border-color: var(--goud); color: white; font-weight: 600; }

/* ── Blog lijst ────────────────────────────────────────────── */
.blog-uitgelicht {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
  padding-bottom: 48px; margin-bottom: 40px;
  border-bottom: 1px solid var(--border);
  text-decoration: none; color: inherit;
}
.blog-uitgelicht img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  border-radius: var(--radius);
}
.blog-uitgelicht:hover h2 { color: var(--goud); }
.blog-uitgelicht h2 { transition: color .18s; margin-bottom: 12px; }
.blog-uitgelicht .blog-intro {
  font-size: 16px; color: var(--ink-2); line-height: 1.65;
  margin-bottom: 10px;
}
.blog-rij {
  display: grid; grid-template-columns: 220px 1fr;
  gap: 24px; align-items: center;
  padding: 24px 0; border-bottom: 1px solid var(--border);
  text-decoration: none; color: inherit;
}
.blog-rij:last-child { border-bottom: none; }
.blog-rij img {
  width: 220px; height: 140px; object-fit: cover;
  border-radius: var(--radius);
}
.blog-rij:hover h3 { color: var(--goud); }
.blog-rij h3 { transition: color .18s; margin-bottom: 6px; }
.blog-categorie {
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--goud);
  margin-bottom: 6px;
}
.blog-meta { font-size: 12px; color: var(--ink-3); margin-top: 8px; }
.lees-verder { font-size: 13px; font-weight: 600; color: var(--goud); }

/* ── Detail pagina ─────────────────────────────────────────── */
.detail-hero-img {
  width: 100%; max-height: 520px; object-fit: cover;
  display: block; margin-top: 72px;
}
.detail-container { max-width: 780px; margin: 0 auto; padding: 48px 24px 80px; }
.detail-meta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.detail-discipline {
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--goud);
}
.detail-datum { font-size: 13px; color: var(--ink-3); }
.detail-intro {
  font-size: 18px; line-height: 1.65; color: var(--ink-2);
  margin: 18px 0 32px; padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.detail-inhoud { font-size: 16px; line-height: 1.8; }
.detail-inhoud h2 { margin: 36px 0 14px; font-size: 24px; }
.detail-inhoud h3 { margin: 28px 0 10px; font-size: 20px; }
.detail-inhoud p { margin-bottom: 18px; }
.detail-inhoud blockquote {
  border-left: 3px solid var(--goud);
  padding: 12px 20px; margin: 24px 0;
  background: var(--papier);
  font-style: italic; font-size: 17px; color: var(--ink-2);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.detail-inhoud img { border-radius: var(--radius); margin: 24px 0; }
.detail-nav {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 48px; padding-top: 28px;
  border-top: 1px solid var(--border); gap: 12px; flex-wrap: wrap;
}
.detail-nav a { font-size: 13px; font-weight: 600; color: var(--goud); text-decoration: none; }
.detail-nav .midden { color: var(--ink-3); font-size: 13px; }

/* ── Galerij ───────────────────────────────────────────────── */
.galerij { margin-top: 40px; padding-top: 36px; border-top: 1px solid var(--border); }
.galerij h2 { font-size: 22px; margin-bottom: 20px; }
.galerij-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px;
}
.galerij-grid img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: var(--radius); cursor: zoom-in;
  transition: opacity .2s;
}
.galerij-grid img:hover { opacity: .85; }

/* ── Lightbox ──────────────────────────────────────────────── */
.lightbox {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.9); z-index: 200;
  align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 88vh; border-radius: 4px; object-fit: contain; }
.lightbox-sluit {
  position: absolute; top: 18px; right: 22px;
  background: none; border: none; color: white;
  font-size: 32px; cursor: pointer; line-height: 1;
}
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.15); border: none; color: white;
  font-size: 24px; padding: 14px 18px; cursor: pointer;
  border-radius: 6px; transition: background .15s;
}
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.3); }
.lightbox-prev { left: 14px; }
.lightbox-next { right: 14px; }

/* ── Skeleton loader ───────────────────────────────────────── */
.skeleton { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }
.skel { background: var(--papier-2); border-radius: 6px; display: block; }

/* ── Contact ───────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-info-item { display: flex; gap: 16px; margin-bottom: 28px; }
.contact-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.contact-info-item h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; font-family: var(--font-body); }
.contact-info-item p, .contact-info-item a { font-size: 15px; color: var(--ink-2); text-decoration: none; }
.contact-info-item a:hover { color: var(--goud); }

.contact-form .veld { margin-bottom: 16px; }
.contact-form label {
  display: block; font-size: 12px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 6px;
}
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 15px; color: var(--ink);
  background: var(--papier); outline: none; transition: border-color .2s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  border-color: var(--goud);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.veld-rij { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-succes {
  background: #d4edda; color: #1d5c35;
  padding: 14px 18px; border-radius: var(--radius);
  font-size: 14px; margin-top: 14px; display: none;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hoofd-nav, .header-contact { display: none; }
  .menu-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .blog-uitgelicht { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .blog-rij { grid-template-columns: 1fr; }
  .blog-rij img { width: 100%; height: 180px; }
  .veld-rij { grid-template-columns: 1fr; }
}

/* ── Mobiel menu ───────────────────────────────────────────── */
.mobiel-menu {
  display: none;
  position: fixed; top: 72px; left: 0; right: 0;
  background: white; z-index: 99;
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  flex-direction: column; gap: 0;
}
.mobiel-menu.open { display: flex; }
.mobiel-menu a {
  padding: 12px 0;
  font-size: 15px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; text-decoration: none; color: var(--ink-2);
  border-bottom: 1px solid var(--border);
}
.mobiel-menu a:last-child { border-bottom: none; }
.mobiel-menu a:hover { color: var(--goud); }
