/* ==========================================================================
   Van de Wiel Techniek - huisstijl
   Marineblauw #143a63 · Goud #c89b3c · op wit/lichtgrijs
   ========================================================================== */

:root {
  --navy: #143a63;
  --navy-dark: #0e2a48;
  --navy-light: #1d4d80;
  --gold: #c89b3c;
  --gold-dark: #ad8128;
  --ink: #1c2733;
  --muted: #5c6b7a;
  --line: #e2e7ec;
  --bg: #ffffff;
  --bg-soft: #f4f6f8;
  --bg-softer: #eef1f4;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(20, 58, 99, 0.10);
  --shadow-sm: 0 2px 10px rgba(20, 58, 99, 0.08);
  --maxw: 1140px;
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
}

h1, h2, h3, h4 {
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

a { color: var(--navy-light); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 72px 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy); color: #dde6ef; }
.section--navy h2, .section--navy h3 { color: #fff; }

.eyebrow {
  display: inline-block;
  color: var(--gold-dark);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .78rem;
  margin-bottom: .6rem;
}
.section--navy .eyebrow { color: var(--gold); }

.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.section--navy .lead { color: #c4d2e2; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: #2a2008; }
.btn--gold:hover { background: var(--gold-dark); color: #fff; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-dark); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.section--navy .btn--ghost { color: #fff; border-color: rgba(255,255,255,.6); }
.section--navy .btn--ghost:hover { background: #fff; color: var(--navy); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px);
  box-shadow: 0 1px 14px rgba(20, 58, 99, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: auto; }
.brand:hover { text-decoration: none; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--ink);
  font-weight: 600;
  font-size: .96rem;
  padding: 10px 12px;
  border-radius: 8px;
}
.nav a:hover { color: var(--navy); background: var(--bg-soft); text-decoration: none; }
.nav a.active { color: var(--navy); background: var(--bg-soft); }
.nav .btn { margin-left: 10px; padding: 10px 18px; }

/* dropdown */
.nav .has-drop { position: relative; }
.nav .drop {
  position: absolute; top: 100%; left: 0;
  background: #fff; border: 1px solid var(--line);
  border-radius: 10px; box-shadow: var(--shadow);
  padding: 8px; min-width: 220px;
  display: none; flex-direction: column; gap: 2px;
}
.nav .has-drop:hover .drop,
.nav .has-drop:focus-within .drop { display: flex; }
.nav .drop a { padding: 9px 12px; font-weight: 500; }
.nav .drop a::after { display: none; }
.drop-toggle::after { content: " ▾"; font-size: .75em; color: var(--gold-dark); }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 8px; color: var(--navy);
}
.nav-toggle svg { width: 28px; height: 28px; }

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(rgba(10,28,48,.82), rgba(10,28,48,.86)),
    url("../images/hero.svg") center/cover no-repeat;
  color: #fff;
  padding: 96px 0;
}
.hero h1 { color: #fff; max-width: 18ch; }
.hero p { color: #d4deea; font-size: 1.2rem; max-width: 56ch; }
.hero .btn-row { margin-top: 28px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Grid / cards ---------- */
.grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
/* Clean single row of four (balanced feature/process blocks) */
.grid--4 { grid-template-columns: repeat(4, 1fr); }
/* Centered wrapping for odd card counts (e.g. 5 -> 3 + 2 centered) */
.grid--center { display: flex; flex-wrap: wrap; justify-content: center; }
.grid--center > * { flex: 1 1 280px; max-width: 340px; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); margin-bottom: .8em; }
.card .arrow { color: var(--gold-dark); font-weight: 700; }
a.card-link { display: block; color: inherit; }
a.card-link:hover, a.card-link:hover * { text-decoration: none; }
a.project:hover, a.project:hover * { text-decoration: none; }

.icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-softer); color: var(--navy);
  border-radius: 12px; margin-bottom: 16px;
}
.icon svg { width: 28px; height: 28px; }

/* ---------- Section heading ---------- */
.sec-head { max-width: 64ch; margin-bottom: 40px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Project cards ---------- */
.project {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.project:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
a.project { display: block; color: inherit; }
a.project:hover { text-decoration: none; }
.project .thumb { aspect-ratio: 16/10; background: var(--bg-softer); }
.project .thumb img { width: 100%; height: 100%; object-fit: cover; }
.project .body { padding: 22px 24px; }
.project .tag {
  display: inline-block; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--gold-dark); margin-bottom: .5em;
}
.project h3 { margin-bottom: .3em; }
.project p { color: var(--muted); margin: 0; font-size: .96rem; }

/* ---------- Split / feature ---------- */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Spec list ---------- */
.spec-list { list-style: none; padding: 0; margin: 0; }
.spec-list li {
  padding: 9px 0;
  display: flex; gap: 12px; align-items: flex-start;
}
.spec-list li::before {
  content: "✓"; color: var(--gold-dark); font-weight: 800; flex: none;
}
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding: 8px 0 8px 30px; position: relative; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 8px;
  color: var(--gold-dark); font-weight: 800;
}

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c4d2e2; max-width: 56ch; margin: 0 auto 24px; }

/* ---------- Contact / form ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: start; }
form .field { margin-bottom: 18px; }
.form-status { margin: 14px 0 0; font-size: .92rem; min-height: 1em; }
.form-status.is-busy { color: var(--muted); }
.form-status.is-error { color: #b3261e; }
button[disabled] { opacity: .6; cursor: default; }
form label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
form input, form textarea, form select {
  width: 100%; padding: 12px 14px; font: inherit;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
form input:focus, form textarea:focus, form select:focus {
  outline: none; border-color: var(--navy-light); box-shadow: 0 0 0 3px rgba(29,77,128,.12);
}
form textarea { min-height: 140px; resize: vertical; }
.contact-info { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact-info .row { display: flex; gap: 12px; margin-bottom: 16px; align-items: flex-start; }
.contact-info .row svg { width: 22px; height: 22px; color: var(--gold-dark); flex: none; margin-top: 3px; }
.contact-info strong { color: var(--navy); display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #b9c7d8; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1em; }
.site-footer a { color: #b9c7d8; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-brand img { height: 40px; margin-bottom: 14px; }
.footer-bottom {
  margin-top: 44px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: .86rem; color: #8fa1b6;
}

/* ---------- Page hero (sub pages) ---------- */
.page-hero { background: var(--navy); color: #fff; padding: 64px 0; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #c4d2e2; max-width: 60ch; margin: 0; }
.breadcrumb { font-size: .85rem; color: #9fb3c9; margin-bottom: 14px; }
.breadcrumb a { color: #c4d2e2; }

/* ---------- Service hero (dienstpagina's) ---------- */
.service-hero { padding: 64px 0 72px; }
.service-hero .container {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 56px; align-items: center;
}
.service-hero h1 { margin-bottom: .4em; }
.service-hero .lead { margin-bottom: 1.2em; }
.service-hero .visual img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.service-hero .btn { margin-top: 18px; }

/* ---------- Stats band ---------- */
.stats { background: var(--navy); padding: 44px 0; }
.stats .container {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 28px; text-align: center;
}
.stat .num {
  display: block; font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 600; color: var(--gold); line-height: 1.15;
}
.stat .label { color: #c4d2e2; font-size: .95rem; }
.stats--usp { padding: 24px 0; }
.stats--usp .container { gap: 18px; }
.stats--usp .num { font-size: clamp(1.05rem, 1.5vw, 1.3rem); white-space: nowrap; }
.stats--usp .label { font-size: .85rem; }
@media (max-width: 560px) { .stats--usp .num { white-space: normal; } }

/* ---------- Feature rows (categorieën binnen een dienst) ---------- */
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 52px; align-items: center; margin-top: 56px;
}
.feature-row .visual img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.feature-row:nth-of-type(even) .visual { order: 2; }
.feature-row p { color: var(--muted); margin-bottom: 0; }

/* ---------- Carousel (voorbeeldonderdelen) ---------- */
.car-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 30px;
}
.car-head .sec-head { margin-bottom: 0; }
.car-nav { display: flex; gap: 10px; flex: none; }
.car-btn {
  width: 46px; height: 46px; border-radius: 50%;
  border: none; cursor: pointer;
  background: var(--navy); color: #fff;
  font-size: 1.15rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease, transform .15s ease;
}
.car-btn:hover { background: var(--gold); color: #2a2008; transform: translateY(-2px); }
.carousel-track {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((100% - 44px) / 3);
  gap: 22px; overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
  padding-bottom: 6px;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track figure { margin: 0; scroll-snap-align: start; }
.carousel-track img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  background: var(--bg-softer);
}
.carousel-track figcaption {
  font-size: .9rem; color: var(--muted); margin-top: 10px; text-align: center;
}

/* ---------- Project detail (uitklap) ---------- */
.project.clickable { cursor: pointer; }
.project.is-open { outline: 3px solid var(--gold); outline-offset: -3px; }
.project .more { color: var(--gold-dark); font-weight: 700; font-size: .92rem; display: inline-block; margin-top: 10px; }
.project-detail {
  display: none;
  grid-column: 1 / -1;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
  margin-top: 6px;
}
.project-detail.open { display: block; }
.project-detail .detail-grid {
  display: grid; grid-template-columns: .9fr 1.1fr;
  gap: 40px; align-items: start;
}
.project-detail img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.project-detail h3 { font-size: 1.45rem; margin-bottom: .4em; }
.project-detail .facts {
  list-style: none; padding: 0; margin: 18px 0 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px;
}
.project-detail .facts li { font-size: .95rem; color: var(--muted); }
.project-detail .facts strong { display: block; color: var(--navy); }
.detail-close {
  float: right; border: none; background: var(--bg-softer);
  width: 40px; height: 40px; border-radius: 50%;
  font-size: 1.05rem; cursor: pointer; color: var(--navy);
}
.detail-close:hover { background: var(--gold); color: #2a2008; }
@media (max-width: 900px) {
  .project-detail .detail-grid { grid-template-columns: 1fr; gap: 24px; }
  .project-detail { padding: 24px; }
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-hero .container, .feature-row { grid-template-columns: 1fr; gap: 32px; }
  .feature-row:nth-of-type(even) .visual { order: 0; }
  .feature-row { margin-top: 44px; }
  .stats .container { grid-template-columns: repeat(2, 1fr); }
  .carousel-track { grid-auto-columns: calc((100% - 22px) / 2); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 16px 18px; gap: 2px;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 10px; }
  .nav .has-drop { position: static; }
  .nav .drop {
    position: static; display: flex; box-shadow: none; border: none;
    padding: 4px 0 4px 14px; min-width: 0;
    margin: 0 0 6px 10px; background: var(--bg-soft); border-radius: 8px;
  }
  .nav .drop a { padding: 9px 10px; }
  .drop-toggle { pointer-events: none; color: var(--muted) !important; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
  .nav .btn { margin: 8px 0 0; text-align: center; }
  .section { padding: 56px 0; }
  .hero { padding: 72px 0; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: 1fr; }
  body { font-size: 16px; }
  .carousel-track { grid-auto-columns: 86%; }
  .car-head { flex-direction: column; align-items: flex-start; }
}
