/* T Nieuw Project — Kasten op Maat */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #FAFAF8;
  --bg-alt:   #F3EFE8;
  --bg-card:  #FFFFFF;
  --text:     #2C2820;
  --text-mid: #6B5F52;
  --text-lt:  #A09487;
  --accent:   #96775A;
  --accent-dk:#7A5E43;
  --border:   #E5DDD5;
  --white:    #FFFFFF;
  --radius:   4px;
  --shadow:   0 2px 24px rgba(44,40,32,.06);
  --shadow-lg:0 8px 48px rgba(44,40,32,.10);
  --nav-h:    72px;
  --max:      1180px;
  --ease:     cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── TYPOGRAFIE ── */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.display { font-size: clamp(48px, 7vw, 88px); font-weight: 300; line-height: 1.05; letter-spacing: -0.03em; }
.h2 { font-size: clamp(36px, 4vw, 56px); }
.h3 { font-size: clamp(24px, 3vw, 36px); }
.label {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.lead {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-mid);
  line-height: 1.7;
  font-weight: 300;
}

/* ── LAYOUT ── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section-alt { background: var(--bg-alt); }

/* ── NAVIGATIE ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(250,250,248,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.nav.scrolled {
  border-color: var(--border);
  box-shadow: 0 1px 16px rgba(44,40,32,.05);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px;
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  letter-spacing: 0.01em;
  transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta {
  padding: 10px 24px;
  background: var(--text);
  color: var(--white) !important;
  border-radius: var(--radius);
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em;
  transition: background .2s var(--ease), transform .15s !important;
}
.nav-cta:hover { background: var(--accent) !important; transform: translateY(-1px); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all .3s; }

/* ── HERO ── */
.hero {
  position: relative;
  height: 100svh; min-height: 600px;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.hero-slides {
  position: absolute; inset: 0;
}
.hero-slides img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.hero-slides img.active { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(44,40,32,.72) 0%,
    rgba(44,40,32,.18) 50%,
    rgba(44,40,32,.04) 100%
  );
}
.hero-content {
  position: relative; z-index: 2;
  width: 100%; padding: 0 0 clamp(48px, 8vw, 96px);
}
.hero-content .container { display: grid; grid-template-columns: 1fr auto; align-items: flex-end; gap: 48px; }
.hero-text {}
.hero-text .label { color: rgba(255,255,255,.7); margin-bottom: 20px; }
.hero-text .display { color: var(--white); margin-bottom: 28px; }
.hero-text .lead { color: rgba(255,255,255,.82); max-width: 520px; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-dots {
  display: flex; flex-direction: column; gap: 10px;
  padding-bottom: 8px;
}
.hero-dot {
  width: 3px; height: 32px;
  background: rgba(255,255,255,.25);
  border-radius: 2px; cursor: pointer;
  transition: background .3s, height .3s;
}
.hero-dot.active { background: var(--white); height: 48px; }

/* ── KNOPPEN ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.04em;
  border-radius: var(--radius);
  transition: all .22s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--white); color: var(--text);
}
.btn-primary:hover { background: var(--accent); color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(150,119,90,.3); }
.btn-outline {
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,.4);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.1); }
.btn-dark {
  background: var(--text); color: var(--white);
}
.btn-dark:hover { background: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(150,119,90,.3); }
.btn-ghost {
  background: transparent; color: var(--accent);
  border: 1.5px solid var(--border); padding: 12px 28px;
}
.btn-ghost:hover { border-color: var(--accent); background: rgba(150,119,90,.06); }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ── STATS BALK ── */
.stats-bar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.stats-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  divide-x: 1px solid var(--border);
}
.stat {
  padding: 32px 24px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 300;
  color: var(--text);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-num span { font-size: 0.55em; color: var(--accent); font-weight: 400; }
.stat-lbl { font-size: 12px; font-weight: 500; color: var(--text-lt); letter-spacing: 0.08em; text-transform: uppercase; }

/* ── DIENSTEN ── */
.diensten-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 64px;
}
.dienst-card {
  position: relative; overflow: hidden;
  aspect-ratio: 4/5;
  cursor: pointer;
}
.dienst-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.dienst-card:hover img { transform: scale(1.04); }
.dienst-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(44,40,32,.82) 0%, rgba(44,40,32,.1) 60%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 32px;
  transition: background .3s;
}
.dienst-card:hover .dienst-overlay { background: linear-gradient(to top, rgba(150,119,90,.88) 0%, rgba(44,40,32,.1) 60%, transparent 100%); }
.dienst-label { color: rgba(255,255,255,.65); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 8px; }
.dienst-title { font-family: 'Cormorant Garamond', serif; font-size: 28px; color: var(--white); font-weight: 400; margin-bottom: 12px; }
.dienst-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,.7);
  letter-spacing: 0.08em; text-transform: uppercase;
  transform: translateY(8px); opacity: 0;
  transition: all .25s var(--ease);
}
.dienst-card:hover .dienst-link { transform: translateY(0); opacity: 1; }
.dienst-link svg { width: 14px; height: 14px; }

/* ── PORTFOLIO GRID ── */
.portfolio-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 48px; gap: 24px;
}
.portfolio-filter {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 32px;
}
.filter-btn {
  padding: 8px 20px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
  color: var(--text-mid);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  transition: all .2s var(--ease);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--text); color: var(--white); border-color: var(--text);
}
.portfolio-grid {
  columns: 3;
  column-gap: 16px;
}
.portfolio-item {
  break-inside: avoid;
  margin-bottom: 16px;
  position: relative; overflow: hidden;
  border-radius: 2px;
  cursor: pointer;
}
.portfolio-item img {
  width: 100%; display: block;
  transition: transform .5s var(--ease);
}
.portfolio-item:hover img { transform: scale(1.03); }
.portfolio-item-overlay {
  position: absolute; inset: 0;
  background: rgba(44,40,32,.5);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s;
}
.portfolio-item:hover .portfolio-item-overlay { opacity: 1; }
.portfolio-item-overlay svg { color: white; width: 32px; height: 32px; }
.portfolio-load-more { text-align: center; margin-top: 48px; }
.portfolio-hidden { display: none; }

/* ── OVER ONS SECTIE (home) ── */
.over-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.over-img {
  position: relative;
}
.over-img-main {
  width: 100%; aspect-ratio: 4/5;
  object-fit: cover; border-radius: 2px;
}
.over-img-badge {
  position: absolute;
  bottom: -24px; right: -24px;
  background: var(--accent);
  color: var(--white);
  padding: 28px 32px;
  text-align: center;
  border-radius: 2px;
}
.over-img-badge strong {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px; font-weight: 300;
  line-height: 1;
}
.over-img-badge span { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; opacity: .85; }
.over-text { }
.over-text .label { margin-bottom: 16px; }
.over-text .h2 { margin-bottom: 24px; }
.over-text .lead { margin-bottom: 32px; }
.over-values { display: flex; flex-direction: column; gap: 20px; margin-bottom: 40px; }
.over-value { display: flex; gap: 16px; align-items: flex-start; }
.over-value-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--bg-alt);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  margin-top: 2px;
}
.over-value-icon svg { width: 18px; height: 18px; }
.over-value-text strong { display: block; font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.over-value-text span { font-size: 14px; color: var(--text-mid); }

/* ── TESTIMONIALS ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
}
.testimonial {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.testimonial-stars { color: var(--accent); margin-bottom: 16px; font-size: 16px; letter-spacing: 2px; }
.testimonial-text { font-size: 15px; line-height: 1.7; color: var(--text-mid); margin-bottom: 24px; font-style: italic; }
.testimonial-author strong { font-size: 14px; font-weight: 600; }
.testimonial-author span { font-size: 12px; color: var(--text-lt); }

/* ── CTA SECTIE ── */
.cta-section {
  background: var(--text);
  color: var(--white);
  padding: clamp(72px, 10vw, 120px) 0;
  text-align: center;
}
.cta-section .label { color: rgba(255,255,255,.5); margin-bottom: 20px; }
.cta-section .h2 { color: var(--white); margin-bottom: 20px; }
.cta-section .lead { color: rgba(255,255,255,.65); margin-bottom: 48px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── CONTACT PAGINA ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: start;
}
.contact-info .label { margin-bottom: 16px; }
.contact-info .h2 { margin-bottom: 24px; }
.contact-info .lead { margin-bottom: 40px; }
.contact-details { display: flex; flex-direction: column; gap: 20px; }
.contact-detail { display: flex; gap: 16px; align-items: flex-start; }
.contact-detail-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--bg-alt);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.contact-detail-icon svg { width: 20px; height: 20px; }
.contact-detail-text strong { display: block; font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.contact-detail-text span, .contact-detail-text a { font-size: 15px; color: var(--text-mid); }
.contact-detail-text a:hover { color: var(--accent); }

/* ── FORMULIER ── */
.form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label { font-size: 13px; font-weight: 600; color: var(--text); letter-spacing: 0.02em; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--text);
  transition: border-color .2s;
  appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(150,119,90,.1);
}
.form-textarea { resize: vertical; min-height: 140px; }
.form-note { font-size: 12px; color: var(--text-lt); margin-top: 4px; }
.form-submit { margin-top: 8px; }

/* ── DIENSTEN PAGINA ── */
.diensten-list { display: flex; flex-direction: column; gap: 0; }
.dienst-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
  overflow: hidden;
}
.dienst-item:nth-child(even) { direction: rtl; }
.dienst-item:nth-child(even) > * { direction: ltr; }
.dienst-item-img { overflow: hidden; }
.dienst-item-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.dienst-item:hover .dienst-item-img img { transform: scale(1.03); }
.dienst-item-content {
  padding: clamp(40px, 5vw, 72px);
  display: flex; flex-direction: column; justify-content: center;
  background: var(--bg-card);
}
.dienst-item-content .label { margin-bottom: 16px; }
.dienst-item-content .h3 { margin-bottom: 20px; }
.dienst-item-content p { color: var(--text-mid); font-size: 15px; line-height: 1.75; margin-bottom: 16px; }
.dienst-item-content ul { list-style: none; margin-bottom: 32px; display: flex; flex-direction: column; gap: 10px; }
.dienst-item-content ul li { display: flex; gap: 10px; font-size: 14px; color: var(--text-mid); }
.dienst-item-content ul li::before { content: '—'; color: var(--accent); flex-shrink: 0; }

/* ── PAGE HERO (klein) ── */
.page-hero {
  padding: calc(var(--nav-h) + 64px) 0 72px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.page-hero .label { margin-bottom: 16px; }
.page-hero .h2 { margin-bottom: 20px; }
.page-hero .lead { max-width: 560px; }

/* ── LIGHTBOX ── */
.lightbox {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(20,18,14,.95);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox-img { max-width: 90vw; max-height: 88vh; object-fit: contain; border-radius: 2px; }
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  color: rgba(255,255,255,.6); font-size: 32px; line-height: 1;
  cursor: pointer; padding: 8px;
  transition: color .2s;
}
.lightbox-close:hover { color: white; }
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  color: rgba(255,255,255,.6); padding: 20px;
  cursor: pointer; transition: color .2s;
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-prev:hover, .lightbox-next:hover { color: white; }
.lightbox-prev svg, .lightbox-next svg, .lightbox-close svg { width: 28px; height: 28px; }

/* ── FOOTER ── */
footer {
  background: var(--text);
  color: rgba(255,255,255,.55);
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 32px;
}
.footer-brand .nav-logo { color: var(--white); font-size: 20px; margin-bottom: 16px; display: block; }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 280px; }
.footer-col h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,.9); margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 14px; transition: color .2s; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px;
}
.footer-bottom a { transition: color .2s; }
.footer-bottom a:hover { color: rgba(255,255,255,.8); }

/* ── ANIMATIES ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ── MOBILE ── */
@media (max-width: 900px) {
  .diensten-grid { grid-template-columns: 1fr 1fr; }
  .over-grid { grid-template-columns: 1fr; }
  .over-img-badge { right: 16px; bottom: -16px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .dienst-item { grid-template-columns: 1fr; min-height: auto; direction: ltr !important; }
  .dienst-item:nth-child(even) > * { direction: ltr; }
  .dienst-item-img { aspect-ratio: 16/9; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-bar .container { grid-template-columns: 1fr 1fr; }
  .stat { border-bottom: 1px solid var(--border); }
  .portfolio-grid { columns: 2; }
  .hero-content .container { grid-template-columns: 1fr; }
  .hero-dots { flex-direction: row; position: absolute; bottom: 0; right: 0; }
  .hero-dot { width: 32px; height: 3px; }
  .hero-dot.active { width: 48px; height: 3px; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; inset: var(--nav-h) 0 0;
    background: var(--bg); padding: 32px 24px;
    gap: 24px; z-index: 99;
  }
  .nav-links.open a { font-size: 22px; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .diensten-grid { grid-template-columns: 1fr; }
  .portfolio-grid { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .portfolio-header { flex-direction: column; align-items: flex-start; }
}
