/* JEEMC² – site.css
   Huisstijl: Navy #12305A · Teal #0E93A3 · Teal licht #2CC4D4 · Nacht #0A1726 · Mist #F5F7FA
   Lettertype: Sora (zelf gehost, geen externe verzoeken) */

@font-face { font-family: "Sora"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/sora-Regular.woff") format("woff"); }
@font-face { font-family: "Sora"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/sora-SemiBold.woff") format("woff"); }
@font-face { font-family: "Sora"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/sora-ExtraBold.woff") format("woff"); }

:root {
  --navy: #12305A;
  --navy-deep: #0C2342;
  --night: #0A1726;
  --teal: #0E93A3;
  --teal-dark: #0B7D8C;
  --teal-light: #2CC4D4;
  --mist: #F5F7FA;
  --ink: #1A2433;
  --muted: #4A5B73;
  --line: #D9DEE6;
  --white: #FFFFFF;
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 10px;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: clamp(1.35rem, 1.15rem + 0.8vw, 1.65rem);
  --step-3: clamp(1.7rem, 1.3rem + 1.6vw, 2.3rem);
  --step-4: clamp(2.1rem, 1.4rem + 2.6vw, 3.1rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
body {
  margin: 0;
  font-family: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--teal-dark); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--teal-light); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { color: var(--navy); line-height: 1.15; margin: 0 0 0.6em; }
h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: var(--step-3); font-weight: 800; letter-spacing: -0.02em; }
h3 { font-size: var(--step-1); font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
address { font-style: normal; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: var(--white); padding: 0.75rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
.small { font-size: 0.875rem; color: var(--muted); }
.lead { font-size: var(--step-1); line-height: 1.55; color: var(--muted); max-width: 40em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.7rem 1.4rem; border-radius: 999px;
  background: var(--teal-dark); color: var(--white); font-weight: 600; text-decoration: none;
  border: 2px solid var(--teal-dark); transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.hero .btn:hover { background: var(--teal); border-color: var(--teal); }
.btn-small { min-height: 44px; padding: 0.45rem 1.1rem; font-size: 0.95rem; }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.btn-ghost-dark { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost-dark:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-light { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-light:hover { background: var(--mist); border-color: var(--mist); color: var(--navy); }
.text-link { font-weight: 600; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(8px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 76px; }
.brand { display: block; line-height: 0; flex: 0 0 auto; }
.brand img { width: 172px; height: auto; }
.main-nav { display: flex; align-items: center; gap: 1.75rem; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; }
.main-nav a, .main-nav span { white-space: nowrap; }
.main-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.97rem; padding: 0.5rem 0; }
.main-nav a:not(.btn):hover, .main-nav a[aria-current="page"] { color: var(--teal-dark); }
.main-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--teal); }
.lang-switch { gap: 0.25rem !important; font-size: 0.85rem; }
.lang-switch li { display: flex; }
.lang-switch a, .lang-switch span { display: inline-block; padding: 0.35rem 0.5rem !important; border-radius: 6px; font-weight: 600; }
.lang-switch span { background: var(--mist); color: var(--navy); }
.nav-toggle { display: none; }

@media (max-width: 1120px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: block; }
  .nav-toggle summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 0.6rem; min-height: 44px; padding: 0 0.25rem; font-weight: 600; color: var(--navy); }
  .nav-toggle summary::-webkit-details-marker { display: none; }
  .burger, .burger::before, .burger::after { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; position: relative; transition: transform .2s ease; }
  .burger::before, .burger::after { content: ""; position: absolute; left: 0; }
  .burger::before { top: -7px; } .burger::after { top: 7px; }
  .nav-toggle[open] .burger { background: transparent; }
  .nav-toggle[open] .burger::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[open] .burger::after { transform: translateY(-7px) rotate(-45deg); }
  .nav-mobile { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 1rem; padding: 1rem var(--gutter) 1.5rem; box-shadow: 0 12px 24px rgba(18,48,90,.08); }
  .nav-mobile ul { flex-direction: column; gap: 0; }
  .nav-mobile ul:not(.lang-switch) a { display: block; padding: 0.8rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-mobile a[aria-current="page"] { box-shadow: none; }
  .nav-mobile .lang-switch { flex-direction: row; }
  .brand img { width: 168px; }
}

/* ---------- hero (home) ---------- */
.hero { background: var(--navy); color: var(--white); overflow: hidden; position: relative; }
.hero::after { /* fijn raster: verwijst naar circuits/netwerken, bewust heel subtiel */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07;
  background-image: linear-gradient(var(--white) 1px, transparent 1px), linear-gradient(90deg, var(--white) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: linear-gradient(90deg, transparent 0%, #000 55%, #000 100%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: clamp(3.5rem, 8vw, 7rem); }
.hero h1 { color: var(--white); max-width: 14em; }
.hero .lead { color: #C7D5E8; }
.actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
.hero-visual { display: flex; justify-content: center; align-self: start; padding-top: 0.5rem; }
.hero-mark { width: min(100%, 280px); overflow: visible; }

/* één georkestreerd moment: het schild tekent zich, de candles stijgen, de pijl breekt uit */
.hm-draw { stroke-dasharray: 1; stroke-dashoffset: 0; }
.hm-candle { transform-box: fill-box; transform-origin: 50% 100%; }
@media (prefers-reduced-motion: no-preference) {
  .hm-l, .hm-r { animation: hm-draw 1.1s cubic-bezier(.6,.1,.3,1) both; }
  .hm-r { animation-delay: .15s; }
  .hm-circuit { animation: hm-fade .5s ease .9s both; }
  .hm-candle { animation: hm-rise .55s cubic-bezier(.3,1.4,.5,1) both; }
  .hm-c1 { animation-delay: 1.0s; } .hm-c2 { animation-delay: 1.15s; } .hm-c3 { animation-delay: 1.3s; }
  .hm-arrow { animation: hm-draw .7s cubic-bezier(.7,0,.3,1) 1.55s both; }
  .hm-head { animation: hm-pop .35s cubic-bezier(.3,1.6,.5,1) 2.15s both; transform-box: fill-box; transform-origin: 50% 50%; }
}
@keyframes hm-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes hm-rise { from { transform: scaleY(0); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }
@keyframes hm-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hm-pop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; justify-content: flex-start; }
  .hero-mark { width: 150px; }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section-mist { background: var(--mist); }
.section-title { max-width: 22em; }
.section-intro { color: var(--muted); max-width: 42em; margin-bottom: 2.5rem; }

.service-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 5vw, 4rem); }
.service-item { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 1.25rem; padding-block: 2rem; border-top: 1px solid var(--line); }
.service-item h3, .service-item h2 { font-size: var(--step-1); margin-bottom: 0.4rem; }
.service-item h3 a, .service-item h2 a { color: var(--navy); text-decoration: none; }
.service-item h3 a:hover, .service-item h2 a:hover { color: var(--teal-dark); text-decoration: underline; }
.service-item p { color: var(--muted); margin: 0; }
.service-item .for-whom { margin-top: 0.6rem; font-size: 0.93rem; color: var(--ink); }
.service-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--mist); color: var(--navy); display: grid; place-items: center; }
.section-mist .service-icon { background: var(--white); }
.service-icon .icon { width: 30px; height: 30px; }
.service-icon .icon path:first-child { color: inherit; }
.service-list-wide { grid-template-columns: 1fr; max-width: 52rem; }
@media (max-width: 760px) { .service-list { grid-template-columns: 1fr; } }

.steps { list-style: none; counter-reset: step; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.steps li { counter-increment: step; position: relative; padding-top: 3.4rem; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--white); font-weight: 800; font-size: 1rem; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 1.2rem; left: 3.2rem; right: -1.2rem; height: 2px; background: linear-gradient(90deg, var(--teal) 0, var(--teal) 60%, transparent 60%); background-size: 10px 2px; }
.steps h3 { margin-bottom: 0.4rem; }
.steps p { color: var(--muted); margin: 0; font-size: 0.97rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .steps li::after { display: none; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.principles dl { margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem clamp(2rem, 4vw, 3.5rem); }
.principles dt { font-weight: 800; color: var(--navy); font-size: var(--step-1); margin-bottom: 0.5rem; }
.principles dd { margin: 0; color: var(--muted); }
@media (max-width: 820px) { .principles dl { grid-template-columns: 1fr; } }

.post-list { list-style: none; margin: 1.5rem 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.post-list li { border-top: 3px solid var(--navy); padding-top: 1.25rem; }
.post-list h3, .post-list h2 { font-size: var(--step-1); }
.post-list h3 a, .post-list h2 a { color: var(--navy); text-decoration: none; }
.post-list h3 a:hover, .post-list h2 a:hover { color: var(--teal-dark); text-decoration: underline; }
.post-list p { color: var(--muted); }
.post-meta { font-size: 0.88rem; color: var(--muted); margin-bottom: 0.5rem; }
.post-list-index { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 3rem; }
@media (max-width: 820px) { .post-list, .post-list-index { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: var(--white); padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); font-size: var(--step-2); margin-bottom: 0.4rem; }
.cta-band p { color: #C7D5E8; margin: 0; max-width: 38em; }

/* ---------- inner pages ---------- */
.page-head { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2rem, 4vw, 3rem); background: var(--mist); border-bottom: 1px solid var(--line); margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.page-head h1 { max-width: 18em; }
.page-head .lead { margin-bottom: 0; }
.crumb { font-size: 0.92rem; font-weight: 600; margin-bottom: 1.25rem; }
.crumb a { text-decoration: none; }
.crumb a::before { content: "‹ "; }
.service-head { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 0.4rem; }
.service-head h1 { margin: 0; }
.service-icon-lg { width: 72px; height: 72px; flex: 0 0 auto; background: var(--white); border: 1px solid var(--line); }
.service-icon-lg .icon { width: 38px; height: 38px; }
@media (max-width: 600px) { .service-head { flex-direction: column; align-items: flex-start; } }

.prose { max-width: 46rem; padding-bottom: clamp(3rem, 6vw, 5rem); }
.prose h2 { font-size: var(--step-2); margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--teal); }
.prose blockquote { margin: 1.5em 0; padding: 1rem 1.25rem; background: var(--mist); border-radius: var(--radius); color: var(--navy); }
.prose blockquote p:last-child { margin: 0; }
.prose code { font-size: 0.9em; background: var(--mist); padding: 0.1em 0.35em; border-radius: 4px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 0.95rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--navy); }
.prose-after { padding-top: 2rem; }

.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-bottom: 3rem; }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; }
.contact-card h2 { font-size: var(--step-1); }
.contact-card .btn { margin: 0.5rem 0 0.75rem; }
.contact-lines a { font-weight: 600; font-size: 1.1rem; text-decoration: none; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { background: var(--night); color: #AFC0D6; padding-top: clamp(3rem, 6vw, 4.5rem); font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-brand img { width: 210px; margin-bottom: 1rem; }
.footer-brand p { max-width: 22em; }
.site-footer h2 { color: var(--white); font-size: 1rem; font-weight: 600; letter-spacing: 0; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.55rem; }
.site-footer a { color: #DCE6F2; text-decoration: none; }
.site-footer a:hover { color: var(--teal-light); text-decoration: underline; }
.footer-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem 2rem; border-top: 1px solid rgba(255,255,255,.12); padding-block: 1.25rem 1.75rem; font-size: 0.85rem; }
.footer-legal p { margin: 0; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- root language picker & 404 ---------- */
.tpl-root { min-height: 100vh; display: grid; place-items: center; background: var(--mist); }
.root-picker { text-align: center; padding: 2rem; }
.root-picker img { width: min(320px, 80vw); margin-bottom: 2rem; }
.root-picker ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.page-404 { min-height: 50vh; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .cta-band, .site-footer { display: none; } }

/* Lange samengestelde woorden (NL/DE/HU) netjes afbreken op smalle schermen */
h1, h2, h3 { overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }

/* ---------- visitekaartje (contact) ---------- */
.vcard-section { margin-bottom: 3rem; }
.vcard-heading { font-size: var(--step-2); margin-bottom: 1.25rem; }
.vcard-wrap { display: grid; grid-template-columns: minmax(0, 34rem) minmax(0, 1fr); gap: 2rem 2.5rem; align-items: center; }
.vcard { position: relative; aspect-ratio: 85 / 55; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; padding: clamp(1.1rem, 3.2vw, 1.75rem) clamp(1.1rem, 3.2vw, 1.75rem) calc(clamp(1.1rem, 3.2vw, 1.75rem) + 6px); background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 30px rgba(18, 48, 90, 0.10); overflow: hidden; }
.vcard::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--navy); }
.vcard-main { display: flex; flex-direction: column; min-width: 0; }
.vcard-logo { width: clamp(150px, 58%, 230px); height: auto; }
.vcard-id { margin-top: auto; }
.vcard-name { margin: 0; font-weight: 600; font-size: clamp(1rem, 2.6vw, 1.25rem); color: var(--navy); line-height: 1.25; }
.vcard-title { margin: 0.15rem 0 0; font-size: clamp(0.68rem, 1.7vw, 0.8rem); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-dark); }
.vcard-lines { list-style: none; margin: clamp(0.6rem, 2vw, 1rem) 0 0; padding: 0; display: grid; gap: 0.2rem; font-size: clamp(0.8rem, 2vw, 0.93rem); }
.vcard-lines li { display: flex; align-items: center; gap: 0.55rem; min-width: 0; }
.vcard-lines svg { width: 1em; height: 1em; flex: none; fill: none; stroke: var(--teal); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vcard-lines a { color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.vcard-lines a:hover { color: var(--teal-dark); text-decoration: underline; }
.vcard-qr { align-self: end; width: clamp(84px, 24vw, 128px); }
.vcard-qr svg { display: block; width: 100%; height: auto; }
.vcard-actions p { color: var(--muted); max-width: 26rem; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 820px) { .vcard-wrap { grid-template-columns: 1fr; } }
