/* Het Digitale Maatje — huisstijl van de Digitale Maatje app */
:root {
  --bg: #f9fafc;
  --panel: #efecf9;
  --card: #ffffff;
  --ink: #232b4d;
  --body: #5a5f77;
  --muted: #8a8fa8;
  --blue: #3b6cf5;
  --indigo: #3f3491;
  --green: #6fc296;
  --green-dark: #58ab7f;
  --line: #e5e6f0;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(35, 43, 77, .07);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: "Nunito", -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1220px; margin: 0 auto; padding: 0 32px; }

/* ---------- Nav ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 248, 251, .93);
  backdrop-filter: blur(8px);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.logo {
  font-weight: 800; font-size: 21px; color: var(--ink);
  text-decoration: none; letter-spacing: -.2px;
}
.logo span { color: var(--blue); }
.nav-links { display: flex; align-items: center; gap: 16px; }
.nav-group {
  display: flex; align-items: center;
  border-radius: 12px; overflow: hidden;
  background: var(--blue);
}
.nav-group a {
  color: #fff; text-decoration: none; font-size: 15.5px; font-weight: 700;
  padding: 12px 24px;
}
.nav-group a:hover { background: #2f58d6; }
.nav-group a + a { border-left: 1.5px solid rgba(255,255,255,.28); }

.btn {
  display: inline-block;
  background: var(--green); color: #fff !important;
  padding: 12px 26px; border-radius: 12px;
  text-decoration: none; font-size: 15.5px; font-weight: 700;
  transition: background .2s;
}
.btn:hover { background: var(--green-dark); }
.btn.secondary {
  background: #fff; color: var(--ink) !important;
  border: 1.5px solid var(--line);
}
.btn.secondary:hover { border-color: var(--muted); background: #fff; }
.btn.blue { background: var(--blue); }
.btn.blue:hover { background: #2f58d6; }

/* ---------- HOME: één scherm ---------- */
body.home { height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
body.home main { flex: 1; display: flex; flex-direction: column; justify-content: center; min-height: 0; }
/* homepage: geen logo, menu links, contact rechts */
body.home .nav-links { width: 100%; justify-content: space-between; }

.hero2 { text-align: center; padding: 34px 24px 0; }
.hero2 h1 {
  font-size: clamp(40px, 4.8vw, 64px);
  font-weight: 800; color: var(--ink); line-height: 1.06;
  letter-spacing: -1px;
}
.hero2 h1 span { color: var(--blue); }
.hero2 .subtitle {
  margin-top: 8px; font-size: clamp(15.5px, 1.4vw, 18px);
  font-weight: 400; color: var(--indigo); letter-spacing: .3px;
}
.hero2 .desc { margin-top: 10px; font-size: 16.5px; color: var(--body); }
.hero2 .hero-cta { margin-top: 16px; }

/* diagram: illustratie → pijlen → knoppen */
.diagram {
  display: grid; grid-template-columns: minmax(280px, 340px) minmax(340px, 420px);
  align-items: center; justify-content: center;
  gap: 84px; margin-top: 44px; min-height: 0; flex: 0 1 auto;
}
.pillars { display: flex; flex-direction: column; gap: 12px; }
.pillars a {
  display: block; text-align: center;
  background: var(--blue); color: #fff; text-decoration: none;
  font-size: 14.5px; font-weight: 700;
  padding: 11px 16px; border-radius: 11px;
  transition: background .2s;
}
.pillars a:hover { background: #2f58d6; }
.diagram-img { text-align: center; }
.diagram-img img {
  max-width: 100%; max-height: min(42vh, 360px); height: auto;
  display: inline-block;
  transition: transform .2s;
}
.diagram-img a:hover img { transform: scale(1.02); }
.diagram-btns { display: flex; flex-direction: column; gap: 13px; }

.uc {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--card); border-radius: 13px;
  padding: 12px 18px; text-decoration: none;
  box-shadow: 0 2px 10px rgba(35,43,77,.05);
  transition: transform .15s, box-shadow .15s;
}
.uc:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(35,43,77,.10); }
.uc .t { font-size: 14.5px; color: var(--body); font-weight: 600; line-height: 1.35; }
.uc .t b { color: var(--ink); font-weight: 800; }
.uc .t small {
  display: inline-block; margin-left: 8px;
  background: #e3f3ea; color: var(--green-dark);
  font-size: 11.5px; font-weight: 800; padding: 2px 10px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .05em; vertical-align: middle;
}
.uc .t small.dev { background: var(--panel); color: var(--indigo); }
.more-uc {
  display: block; text-align: right;
  color: var(--blue); text-decoration: none;
  font-size: 14.5px; font-weight: 700; padding: 4px 6px 0 0;
}
.more-uc:hover { color: #2f58d6; }
.uc .arrow { color: var(--blue); font-weight: 800; font-size: 18px; flex-shrink: 0; }
.foot-right i { color: var(--muted); font-size: 13px; }

/* slim footer (alle pagina's) */
footer.slim {
  border-top: 1px solid var(--line);
  padding: 16px 0; font-size: 13.5px; color: var(--muted);
  background: var(--bg);
}
footer.slim .logo { font-size: 17px; }
footer.slim .tiny { font-size: 12.5px; color: var(--muted); margin-left: 10px; }
footer.slim .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer.slim a { color: var(--body); text-decoration: none; font-weight: 600; margin-left: 18px; }
footer.slim a:hover { color: var(--blue); }

/* ---------- Subpages ---------- */
.page-hero { padding-top: 64px; padding-bottom: 26px; }
.page-hero .kicker {
  display: inline-block; background: var(--panel); color: var(--indigo);
  font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  padding: 7px 16px; border-radius: 999px; margin-bottom: 24px;
}
h1.page-title {
  font-size: clamp(34px, 4.6vw, 52px); font-weight: 800; color: var(--ink);
  line-height: 1.12; letter-spacing: -.5px; max-width: 780px;
}
h1.page-title span { color: var(--blue); }
.page-hero .lead { margin-top: 20px; max-width: 640px; font-size: 18px; }

section { padding: 44px 0 72px; }
.prose { max-width: 730px; }
.prose h2 { font-size: 28px; font-weight: 800; color: var(--ink); margin: 46px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 16px; }
.prose blockquote {
  background: var(--panel); border-radius: var(--radius);
  padding: 26px 30px; margin: 30px 0;
  font-size: 20px; font-weight: 700; color: var(--indigo); line-height: 1.45;
}

.accent-item {
  background: #fff; border-radius: 14px; box-shadow: var(--shadow);
  padding: 18px 22px; margin-bottom: 14px; max-width: 680px;
}
.accent-item b { display: block; color: var(--ink); font-size: 16.5px; font-weight: 800; margin-bottom: 3px; }
.accent-item p { font-size: 15px; margin: 0; }

.callout {
  background: var(--panel); border-radius: var(--radius);
  padding: 26px 30px; margin: 34px 0; max-width: 730px;
}
.callout b { color: var(--ink); }
.callout a { color: var(--indigo); font-weight: 700; }

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

/* hero split (subpagina met illustratie) */
.hero-split {
  display: grid; grid-template-columns: 1.3fr 1fr;
  gap: 40px; align-items: center;
}
.pretitle {
  font-size: 20px; font-weight: 800; color: var(--body);
  margin-bottom: 2px; letter-spacing: -.2px;
}
.hero-illustration { text-align: center; }
.hero-illustration img { max-width: 100%; max-height: 380px; }

/* cards on subpages */
.cards { display: grid; gap: 18px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 30px 28px;
}
.card .cat {
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue); font-weight: 800; margin-bottom: 10px;
}
.card h3 { color: var(--ink); font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.card p { font-size: 15px; }

a.cardlink { text-decoration: none; display: block; transition: transform .15s, box-shadow .15s; }
a.cardlink:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(35,43,77,.12); }
a.cardlink .more { display: inline-block; margin-top: 12px; color: var(--blue); font-weight: 800; font-size: 14.5px; }

/* partners (compact grid) */
.partners {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  max-width: 680px;
}
.partner {
  background: #fff; border-radius: 12px; box-shadow: var(--shadow);
  padding: 14px 18px; text-align: center;
}
.partner b { display: block; color: var(--ink); font-size: 15px; font-weight: 800; }
.partner span { font-size: 13px; color: var(--muted); font-weight: 600; }

/* numbered steps */
.step {
  display: flex; gap: 16px; margin-bottom: 14px; max-width: 680px;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 16px 20px;
}
.step .n {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  background: var(--indigo); color: #fff; font-weight: 800; font-size: 15px;
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.step b { display: block; color: var(--ink); font-weight: 800; font-size: 16px; }
.step p { font-size: 14.5px; margin: 2px 0 0; }

/* ---------- Footer (subpages) ---------- */
footer.site {
  border-top: 1px solid var(--line);
  padding: 50px 0 36px; background: #fff;
}
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.foot p { font-size: 14.5px; margin-top: 10px; max-width: 320px; }
.foot h4 {
  font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); font-weight: 800; margin-bottom: 12px;
}
.foot a { display: block; color: var(--body); text-decoration: none; font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.foot a:hover { color: var(--blue); }
.copyright { margin-top: 38px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .wrap { padding: 0 16px; }
  .nav { justify-content: space-between; gap: 8px; }
  .nav-links { gap: 8px; width: 100%; justify-content: flex-end; }
  .nav-group { margin-right: auto; }
  .nav-group { border-radius: 10px; }
  .nav-group a { padding: 8px 8px; font-size: 12px; white-space: nowrap; }
  .nav .btn { padding: 8px 12px; font-size: 12.5px; border-radius: 10px; }
  .page-hero { padding-top: 36px; }
  .hero2 { padding-top: 20px; }
  .hero2 h1 { font-size: 38px; }
  footer.slim .wrap { justify-content: center; text-align: center; }
  body.home { height: auto; overflow: auto; }
  .diagram { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
  .pillars { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .pillars a { flex: 1 1 auto; }
  .diagram-img img { max-height: 300px; }
  .cards.two, .cards.three { grid-template-columns: 1fr; }
  .partners { grid-template-columns: 1fr 1fr; }
  .hero-split { grid-template-columns: 1fr; }
  .hero-illustration { display: none; }
  .foot { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-height: 780px) and (min-width: 981px) {
  .hero2 h1 { font-size: 48px; }
  .hero2 .subtitle { margin-top: 6px; font-size: 18px; }
  .hero2 .desc { margin-top: 6px; font-size: 15px; }
  .diagram-img img { max-height: 38vh; }
  .uc { padding: 10px 18px; }
  .nav { padding: 12px 0; }
}


/* ---------- Compact één-scherm-lay-out ---------- */
.page-hero { padding-top: 24px; padding-bottom: 6px; }
h1.page-title { font-size: clamp(26px, 3vw, 38px); }
.page-hero .lead { margin-top: 12px; font-size: 16px; max-width: 720px; }
.pretitle { font-size: 16px; }
section { padding: 14px 0 26px; }
h2 { font-size: 19px; font-weight: 800; color: var(--ink); margin: 0 0 10px; }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.cols3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px; align-items: start; }
.cols2 p, .cols3 p { font-size: 15px; margin-bottom: 12px; }
blockquote {
  background: var(--panel); border-radius: 14px;
  padding: 16px 20px; margin: 14px 0 0;
  font-size: 16px; font-weight: 700; color: var(--indigo); line-height: 1.4;
}
.accent-item { padding: 12px 16px; margin-bottom: 10px; }
.accent-item b { font-size: 14.5px; }
.accent-item p { font-size: 13.5px; }
.card { padding: 20px 20px; }
.card h3 { font-size: 16px; }
.card p { font-size: 13.5px; }
.card .cat { font-size: 11px; margin-bottom: 6px; }
.cards { gap: 14px; }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.card.status { background: var(--panel); }
.step { padding: 12px 16px; margin-bottom: 0; }
.step b { font-size: 14.5px; }
.step p { font-size: 13.5px; }
.step .n { width: 28px; height: 28px; font-size: 13px; }
.partner { padding: 10px 12px; }
.partner b { font-size: 13.5px; }
.partner span { font-size: 12px; }
.partners { gap: 10px; }
.hero-split { grid-template-columns: 1.4fr 1fr; gap: 30px; }
.hero-illustration img { max-height: 185px; }
.callout { padding: 16px 20px; margin: 20px 0; }
.callout, .callout b { font-size: 14.5px; }

/* ---------- Subpagina's: exact één scherm ---------- */
body:not(.home) { min-height: 100vh; display: flex; flex-direction: column; }
body:not(.home) main { flex: 1 0 auto; display: flex; flex-direction: column; justify-content: center; }
body:not(.home) footer.slim { flex-shrink: 0; }

/* aanmeldformulier */
.signup {
  background: var(--panel); border-radius: var(--radius);
  padding: 26px 30px; margin-top: 28px; max-width: 640px;
}
.signup h2 { margin-bottom: 6px; }
.signup form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.signup input[type=text], .signup input[type=email] {
  flex: 1 1 200px; padding: 12px 16px; border-radius: 11px;
  border: 1.5px solid var(--line); font-family: inherit; font-size: 15px;
  color: var(--ink); background: #fff; outline: none;
}
.signup input:focus { border-color: var(--blue); }
.signup .btn { border: none; cursor: pointer; font-family: inherit; }
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.form-error { color: #b3423f; font-weight: 700; font-size: 14px; }

@media (max-width: 980px) {
  .cols2, .cols3, .cards.four { grid-template-columns: 1fr; }
  .nav { justify-content: space-between; }
  .logo { font-size: 16px; }
}
