/* ===== Fonts (lokaal gehost, geen Google) ===== */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/space-grotesk-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/space-grotesk-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/space-grotesk-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2'); }

/* ===== RHMS – basis ===== */
:root {
  --dark: #55007C;
  --mid: #8512AD;
  --light: #C288D5;
  --tint: #f5ecf8;
  --black: #0a0a0a;
  --ink: #111111;
  --muted: #555555;
  --line: #e8e8e8;
  --pad-x: clamp(24px, 8vw, 160px);
  --max: 1200px;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-head); margin: 0; }
p { margin: 0; }
a { color: var(--mid); }
a:hover { color: var(--dark); }
section[id] { scroll-margin-top: 76px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.container { max-width: var(--max); margin: 0 auto; }
.section-pad-x { padding-left: var(--pad-x); padding-right: var(--pad-x); }
.section { padding-top: 120px; padding-bottom: 120px; }
.section-tint { background: #f7f5f8; }
.section-dark { background: var(--black); color: #fff; }
.stack-56 { display: flex; flex-direction: column; gap: 56px; }
.accent { color: var(--light); }

/* ===== Knoppen ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 16px 26px; border-radius: 12px;
  font: 600 16px/1 var(--font-body); text-decoration: none;
  cursor: pointer; border: none; transition: background .2s, border-color .2s, color .2s;
}
.btn-primary { background: var(--mid); color: #fff; }
.btn-primary:hover { background: var(--dark); color: #fff; }
.btn-ghost { border: 1px solid #3a3a3a; color: #e6e6e6; }
.btn-ghost:hover { border-color: var(--light); color: #fff; }
.btn-sm { min-height: 44px; padding: 12px 20px; border-radius: 10px; font-size: 15px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: wait; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,0.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid #ececec;
  padding: 0 var(--pad-x);
}
.header-inner {
  padding: 16px 0; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { height: 38px; width: auto; }
.brand span { font: 700 27px var(--font-head); letter-spacing: .5px; }
.main-nav { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; font-size: 15px; }

.nav-link {
  position: relative; color: #1a1a1a; text-decoration: none; font-weight: 500;
  padding: 6px 0; transition: color .2s;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px;
  border-radius: 2px; background: var(--mid);
  transform: scaleX(0); transform-origin: right; transition: transform .3s ease;
}
.nav-link:hover { color: var(--mid); }
.nav-link:hover::after, .nav-link:focus-visible::after { transform: scaleX(1); transform-origin: left; }

.lang-switch {
  display: flex; border: 1px solid var(--light); border-radius: 10px; overflow: hidden;
  font: 500 13px var(--font-mono);
}
.lang-btn {
  background: #fff; color: var(--dark); border: none; padding: 0 12px;
  min-height: 44px; min-width: 44px; font: inherit; cursor: pointer;
  transition: background .2s, color .2s;
}
.lang-btn:hover { background: var(--tint); }
.lang-btn[aria-pressed="true"] { background: var(--mid); color: #fff; }
.lang-btn[aria-pressed="true"]:hover { background: var(--dark); }

/* ===== Hamburgermenu (vanaf 880px) ===== */
.show-sm { display: none !important; }
@media (max-width: 880px) {
  .hide-sm { display: none !important; }
  .show-sm { display: inline-flex !important; }
}
.burger {
  position: relative; width: 48px; height: 48px; background: transparent; border: none;
  padding: 0; cursor: pointer; color: var(--ink);
}
.burger:hover { color: var(--mid); }
.burger-line {
  position: absolute; left: 10px; width: 28px; height: 2.5px; border-radius: 2px; background: currentColor;
  transition: transform .3s ease, opacity .2s ease, top .3s ease;
}
.burger-line:nth-child(1) { top: 15px; }
.burger-line:nth-child(2) { top: 23px; }
.burger-line:nth-child(3) { top: 31px; }
.burger.is-open .burger-line:nth-child(1) { top: 23px; transform: rotate(45deg); }
.burger.is-open .burger-line:nth-child(2) { opacity: 0; transform: scaleX(.2); }
.burger.is-open .burger-line:nth-child(3) { top: 23px; transform: rotate(-45deg); }
.mobile-menu {
  display: none; grid-template-rows: 0fr; opacity: 0; visibility: hidden;
  transition: grid-template-rows .35s ease, opacity .25s ease, visibility 0s linear .35s;
}
@media (max-width: 880px) { .mobile-menu { display: grid; } }
.mobile-menu.is-open {
  grid-template-rows: 1fr; opacity: 1; visibility: visible;
  transition: grid-template-rows .35s ease, opacity .25s ease .05s, visibility 0s;
}
.mobile-menu-inner { overflow: hidden; min-height: 0; }
.mobile-menu .menu-link, .mobile-menu .mobile-menu-bottom {
  transform: translateY(-10px); opacity: 0; transition: transform .3s ease, opacity .3s ease;
}
.mobile-menu.is-open .menu-link, .mobile-menu.is-open .mobile-menu-bottom { transform: none; opacity: 1; }
.mobile-menu.is-open .menu-link:nth-child(1) { transition-delay: .05s; }
.mobile-menu.is-open .menu-link:nth-child(2) { transition-delay: .1s; }
.mobile-menu.is-open .menu-link:nth-child(3) { transition-delay: .15s; }
.mobile-menu.is-open .mobile-menu-bottom { transition-delay: .2s; }
.mobile-nav { display: flex; flex-direction: column; padding: 4px 0 24px; }
.menu-link {
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 18px;
  padding: 14px 0; border-bottom: 1px solid #f0f0f0; min-height: 44px; display: flex; align-items: center;
}
.menu-link:hover { color: var(--mid); }
.mobile-menu-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 20px; }
.mobile-menu-bottom .lang-btn { min-width: 48px; padding: 0 14px; }
.menu-cta { flex: 1 1 auto; }

/* ===== Hero ===== */
.hero { background: var(--black); color: #fff; position: relative; overflow: hidden; }
.hero-glow {
  position: absolute; right: -160px; top: -160px; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(133,18,173,0.45), rgba(85,0,124,0) 70%);
}
.hero-inner {
  position: relative; padding: 112px 0 120px;
  display: flex; flex-wrap: wrap; gap: 64px; align-items: center;
}
.hero-text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-weight: 700; font-size: clamp(46px, 6vw, 72px); line-height: 1.05; letter-spacing: -1.5px; color: #fff; }
.lead { font-size: 19px; line-height: 1.6; color: #cfcfcf; max-width: 560px; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

.code-window {
  flex: 1 1 420px; min-width: 0; background: #141414; border: 1px solid #2a2a2a;
  border-radius: 16px; box-shadow: 0 30px 80px rgba(85,0,124,0.35); overflow: hidden;
}
.code-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid #242424; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-1 { background: var(--dark); } .dot-2 { background: var(--mid); } .dot-3 { background: var(--light); }
.code-file { margin-left: 12px; font: 12px var(--font-mono); color: #8a8a8a; }
.code-window pre {
  margin: 0; padding: 24px; font: 14px/1.75 var(--font-mono); color: #e6e6e6;
  white-space: pre-wrap; overflow-x: auto;
}
.kw { color: var(--light); } .ty { color: #fff; } .cm { color: #7a7a7a; }

/* ===== Sectiekoppen ===== */
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.section-head-wide { max-width: 1100px; }
.eyebrow { font: 500 13px var(--font-mono); color: var(--mid); }
.eyebrow-light { color: var(--light); }
.section h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.1; letter-spacing: -1px; }
.section-sub { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 631px; }

/* ===== Grids: 4 → 2×2 → 1 (nooit 3+1) ===== */
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-gap-20 { gap: 20px; }
.grid-gap-32 { gap: 32px; }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .grid-4 { grid-template-columns: minmax(0, 1fr); } }

/* ===== Dienstkaarten ===== */
.card {
  border: 1px solid var(--line); border-radius: 16px; padding: 32px; background: #fff;
  display: flex; flex-direction: column; gap: 16px;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--light); transform: translateY(-2px); }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--tint); color: var(--mid);
  display: flex; align-items: center; justify-content: center;
}
.card h3 { font-size: 22px; }
.card p { font-size: 16px; line-height: 1.6; color: var(--muted); }

/* ===== Werkwijze ===== */
.steps { list-style: none; margin: 0; padding: 0; }
.step { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 2px solid; }
.step-num { font: 700 40px var(--font-head); }
.step h3 { font-size: 20px; }
.step p { font-size: 16px; line-height: 1.6; color: var(--muted); }
.step-1 { border-color: var(--dark); } .step-1 .step-num { color: var(--dark); }
.step-2 { border-color: var(--mid); }  .step-2 .step-num { color: var(--mid); }
.step-3 { border-color: var(--light); } .step-3 .step-num { color: var(--mid); }
.step-4 { border-color: var(--ink); }  .step-4 .step-num { color: var(--ink); }

/* ===== Over ===== */
.about { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.photo-col { flex: 0 0 300px; max-width: 300px; position: relative; }
.photo-backdrop { position: absolute; inset: 12px -12px -12px 12px; border-radius: 20px; background: var(--light); }
.photo-col img {
  position: relative; width: 100%; height: auto; aspect-ratio: 4 / 5;
  object-fit: cover; object-position: center top; border-radius: 20px; background: var(--tint);
}
@media (max-width: 1020px) { .photo-col { display: none; } }
@media (max-width: 650px) { .code-window { display: none; } }

.about-text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.linkedin {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 10px;
  color: var(--mid); text-decoration: none; font-weight: 600; font-size: 16px;
  min-height: 44px; margin-top: -26px;
}
.linkedin:hover { color: var(--dark); }
.body-lg { font-size: 18px; line-height: 1.7; color: #444; }
.tech { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid #ececec; padding-top: 24px; margin-top: 8px; }
.tech-label { font: 13px var(--font-mono); color: var(--muted); }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font: 13px var(--font-mono); padding: 6px 12px; background: var(--tint); color: var(--dark); border-radius: 999px; }

/* ===== Contact ===== */
.contact { display: flex; flex-wrap: wrap; gap: 64px; }
.contact-info { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.section-dark h2 { font-size: clamp(32px, 4vw, 52px); }
.contact-sub { font-size: 18px; line-height: 1.6; color: #cfcfcf; }
.contact-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; font-size: 17px; }
.contact-list a, .contact-row {
  display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; min-height: 44px;
}
.contact-list a:hover { color: var(--light); }
.contact-icon {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; color: var(--light);
  background: rgba(133,18,173,0.22); border: 1px solid rgba(194,136,213,0.35);
  display: flex; align-items: center; justify-content: center;
}

.contact-form {
  flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 18px;
  background: #141414; border: 1px solid #2a2a2a; border-radius: 20px; padding: 36px;
}
.form-row { display: flex; flex-wrap: wrap; gap: 18px; }
.form-row .field { flex: 1 1 180px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; color: #cfcfcf; }
.field input, .field textarea {
  background: var(--black); border: 1px solid #333; border-radius: 10px; padding: 14px;
  color: #fff; font: 16px var(--font-body); width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--mid); outline-offset: 1px; border-color: var(--mid); }
.hp { position: absolute; left: -9999px; }
.form-status { font-size: 15px; min-height: 1em; color: #cfcfcf; }
.form-status.ok { color: var(--light); }
.form-status.err { color: #ff9b9b; }

/* ===== Footer ===== */
.site-footer { background: var(--black); color: #a8a8a8; border-top: 1px solid #222; padding-top: 32px; padding-bottom: 32px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; font-size: 14px; }
.footer-inner strong { font-family: var(--font-head); color: #fff; }
.footer-inner a { color: #a8a8a8; }
.footer-inner a:hover { color: #fff; }

/* ===== Mobiel ===== */
@media (max-width: 760px) {
  .main-nav { gap: 12px; }
  .section { padding-top: 88px; padding-bottom: 88px; }
  .hero-inner { padding: 72px 0 88px; gap: 48px; }
  .contact-form { padding: 24px; }
}
@media (max-width: 420px) {
  .btn-sm { padding: 12px 14px; }
  .header-inner { gap: 12px; }
}

/* ===== Privacyverklaring ===== */
.legal { padding-top: 40px; }
.legal-inner { max-width: 760px; }
.legal h1 { font-size: clamp(36px, 5vw, 52px); letter-spacing: -1px; margin: 16px 0 8px; }
.legal h2 { font-size: 22px; margin: 40px 0 12px; letter-spacing: 0; }
.legal p, .legal li { font-size: 17px; line-height: 1.7; color: #444; }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 12px 0 0; padding-left: 22px; }
.legal-meta { font: 13px var(--font-mono) !important; color: var(--muted) !important; }
.back-link { font-weight: 600; text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }

/* ===== 404 ===== */
.page-404 { background: var(--black); }
.notfound { min-height: 100vh; display: flex; align-items: center; }
.notfound-inner { position: relative; width: 100%; padding: 64px 0; display: flex; flex-direction: column; gap: 32px; }
.notfound h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.05; letter-spacing: -1.5px; margin-bottom: 20px; }
.notfound .lead { margin-bottom: 28px; }
.brand-light, .brand-light:hover { color: #fff; }
.brand-tile { background: #fff; border-radius: 10px; padding: 6px 8px; display: inline-flex; }
.notfound-code { margin: 0; font: 15px var(--font-mono); color: #e6e6e6; }
