/* ══════════════════════════════════════════════════════════════
   JMNL Innovation — gedeelde stylesheet
   Gebruikt door alle pagina's in /nl/, /en/ en /de/.
   Aanvulling op tailwind.css; alleen wat Tailwind niet dekt.
   Wordt ná tailwind.css geladen en overschrijft die dus waar nodig.
   ══════════════════════════════════════════════════════════════ */

/* ── Inter (variabel, 400–700) — lokaal gehost ─────────────
   Twee subsets: 'latin' dekt Nederlands, Engels en Duits volledig.
   'latin-ext' wordt alleen opgehaald wanneer een pagina tekens
   buiten Latin-1 bevat, bijvoorbeeld Poolse of Tsjechische namen. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/inter-latin.var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/inter-latin-ext.var.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/inter-latin-italic.var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/inter-latin-ext-italic.var.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  background: #ffffff;
}
::selection { background: rgba(0,184,196,.28); color: #fff; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #081120; }
::-webkit-scrollbar-thumb { background: #00B8C4; border-radius: 3px; }

/* ── Cyber grid ─────────────────────────────── */
.bg-cyber-grid {
  background-image:
    linear-gradient(rgba(0,184,196,.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,184,196,.065) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* ── Header ─────────────────────────────────── */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .45s ease, border-color .45s ease, box-shadow .45s ease;
}
#site-header.scrolled {
  background: rgba(8,17,32,.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 4px 40px rgba(0,0,0,.45);
}
/* Documentpagina's hebben een lichte achtergrond: header direct donker tonen */
#site-header.solid {
  background: rgba(8,17,32,.98);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-link { position: relative; }
.nav-link::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 1px; background: #00B8C4;
  transition: width .3s ease;
}
.nav-link:hover::after { width: 100%; }
#mobile-menu {
  overflow: hidden; max-height: 0; opacity: 0;
  transition: max-height .4s ease, opacity .3s ease;
}
#mobile-menu.open { max-height: 520px; opacity: 1; }

/* ── Taalkiezer ─────────────────────────────── */
.lang-switch { position: relative; }
.lang-current {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem .7rem; border-radius: .6rem;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: #cbd5e1; font-size: .75rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  cursor: pointer; font-family: inherit;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.lang-current:hover { border-color: rgba(0,184,196,.45); color: #fff; background: rgba(0,184,196,.1); }
.lang-current svg { transition: transform .2s ease; }
.lang-switch.open .lang-current svg { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + .5rem);
  min-width: 11rem; padding: .35rem;
  border-radius: .75rem;
  background: rgba(8,17,32,.98);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 18px 44px rgba(0,0,0,.5);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 60;
}
.lang-switch.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .55rem .7rem; border-radius: .5rem;
  color: #94a3b8; font-size: .8125rem; font-weight: 500;
  text-decoration: none; transition: background .18s ease, color .18s ease;
}
.lang-menu a:hover { background: rgba(255,255,255,.06); color: #fff; }
.lang-menu a[aria-current="true"] { color: #00B8C4; }
.lang-menu a .lang-code {
  font-size: .6875rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: #475569;
}
.lang-menu a:hover .lang-code { color: #94a3b8; }
.lang-menu a[aria-current="true"] .lang-code { color: #00B8C4; }

/* Taalkiezer in het mobiele menu */
.lang-mobile { display: flex; gap: .5rem; margin-top: .85rem; }
.lang-mobile a {
  flex: 1; text-align: center; padding: .6rem .25rem;
  border-radius: .6rem; border: 1px solid rgba(255,255,255,.12);
  color: #94a3b8; font-size: .75rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  transition: border-color .2s, color .2s, background .2s;
}
.lang-mobile a:hover { color: #fff; border-color: rgba(0,184,196,.4); }
.lang-mobile a[aria-current="true"] {
  color: #00B8C4; border-color: rgba(0,184,196,.45); background: rgba(0,184,196,.1);
}

/* ── Scroll-reveal ──────────────────────────── */
.sr { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.sr.visible { opacity: 1; transform: translateY(0); }
.sr-left { opacity: 0; transform: translateX(-28px); transition: opacity .7s ease, transform .7s ease; }
.sr-left.visible { opacity: 1; transform: translateX(0); }
.sr-right { opacity: 0; transform: translateX(28px); transition: opacity .7s ease, transform .7s ease; }
.sr-right.visible { opacity: 1; transform: translateX(0); }
.sr-scale { opacity: 0; transform: scale(.95); transition: opacity .55s ease, transform .55s ease; }
.sr-scale.visible { opacity: 1; transform: scale(1); }
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }
.delay-4 { transition-delay: .4s; }
.delay-5 { transition-delay: .5s; }

/* ── Hero entrance ──────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.h-a1 { animation: fadeUp .7s ease .08s both; }
.h-a2 { animation: fadeUp .7s ease .2s  both; }
.h-a3 { animation: fadeUp .7s ease .35s both; }
.h-a4 { animation: fadeUp .7s ease .5s  both; }
.h-a5 { animation: fadeUp .7s ease .65s both; }
.h-cards { animation: fadeUp .85s ease .3s both; }
.h-scroll { animation: fadeIn 1s ease 1.2s both; }

/* ── Animaties ──────────────────────────────── */
@keyframes pulseDot {
  0%,100% { opacity:1; transform:scale(1); }
  50% { opacity:.4; transform:scale(.75); }
}
@keyframes bounceSoft {
  0%,100% { transform:translateY(0); }
  50% { transform:translateY(7px); }
}
@keyframes spin { to { transform: rotate(360deg); } }
.pulse-dot { animation: pulseDot 2.2s ease-in-out infinite; }
.bounce-soft { animation: bounceSoft 2s ease-in-out infinite; }

/* ── Cards & hover ──────────────────────────── */
.service-card { transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(0,184,196,.09), 0 4px 20px rgba(0,0,0,.07);
  border-color: rgba(0,184,196,.28) !important;
}
.stat-card { transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(0,184,196,.1);
  border-color: rgba(0,184,196,.32) !important;
}
.trust-card { transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.trust-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(0,0,0,.06);
  border-color: rgba(0,184,196,.22) !important;
}
.hero-mini-card { transition: border-color .25s ease, box-shadow .25s ease; }
.hero-mini-card:hover {
  border-color: rgba(0,184,196,.45) !important;
  box-shadow: 0 8px 24px rgba(0,184,196,.12);
}
.layer-row { transition: border-color .2s ease; }
.layer-row:hover { border-color: rgba(0,184,196,.45) !important; }

/* ── Formulier ──────────────────────────────── */
.finput {
  width: 100%; padding: .75rem 1rem; border-radius: .75rem;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  color: #fff; font-size: .875rem; font-family: inherit;
  transition: border-color .2s ease, background .2s ease;
  outline: none;
}
.finput::placeholder { color: #475569; }
.finput:focus { border-color: rgba(0,184,196,.52); background: rgba(255,255,255,.07); }
.finput[aria-invalid="true"] { border-color: rgba(248,113,113,.6); background: rgba(248,113,113,.06); }

.field-error {
  display: none; margin-top: .4rem;
  color: #f87171; font-size: .75rem; font-weight: 500;
}
.field-error.show { display: block; }

/* Honeypot — onzichtbaar voor mensen, zichtbaar voor domme bots */
.hp-field {
  position: absolute !important; left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}

.form-alert {
  display: none; margin-bottom: 1.25rem; padding: .85rem 1rem;
  border-radius: .75rem; font-size: .8125rem; line-height: 1.5;
  border: 1px solid rgba(248,113,113,.35);
  background: rgba(248,113,113,.08); color: #fca5a5;
}
.form-alert.show { display: block; }

/* Knop in verzendtoestand */
.btn-primary[data-busy="true"] { opacity: .65; cursor: progress; }
.spinner {
  width: 1rem; height: 1rem; flex-shrink: 0;
  border: 2px solid rgba(8,17,32,.28);
  border-top-color: #081120;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

/* ── OT glow ring ───────────────────────────── */
.panel-glow { position: relative; }
.panel-glow::before {
  content: '';
  position: absolute; inset: -1px; border-radius: 26px;
  background: linear-gradient(135deg, rgba(0,184,196,.22), transparent 50%, rgba(0,184,196,.1));
  filter: blur(1px); z-index: -1;
}

/* ── Knoppen ────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .85rem 1.75rem; border-radius: .75rem;
  background: #00B8C4; color: #081120; font-weight: 600; font-size: .875rem;
  box-shadow: 0 8px 24px rgba(0,184,196,.28);
  transition: background .2s ease, box-shadow .2s ease, transform .15s ease;
  text-decoration: none; white-space: nowrap;
  border: none; cursor: pointer; font-family: inherit;
}
.btn-primary:hover { background: #00D4E0; box-shadow: 0 8px 28px rgba(0,184,196,.42); transform: translateY(-1px) scale(1.02); }
.btn-primary[data-busy="true"]:hover { transform: none; background: #00B8C4; }
.btn-outline {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .85rem 1.75rem; border-radius: .75rem;
  border: 1px solid rgba(255,255,255,.22); color: #fff; font-weight: 500; font-size: .875rem;
  transition: background .2s ease, border-color .2s ease;
  text-decoration: none;
}
.btn-outline:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.36); }

/* ── Sectortag ──────────────────────────────── */
.sector-tag {
  padding: .25rem .75rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.1);
  color: #64748b; font-size: .75rem; font-weight: 500;
  transition: border-color .2s, color .2s;
  cursor: default;
}
.sector-tag:hover { border-color: rgba(0,184,196,.32); color: #00B8C4; }

/* ══════════════════════════════════════════════
   DOCUMENTPAGINA'S (voorwaarden, privacy, disclosure)
   ══════════════════════════════════════════════ */
.doc-hero {
  background: #081120; position: relative; overflow: hidden;
  padding: 9rem 0 4rem;
}
.doc-body { max-width: 52rem; }
.doc-body h2 {
  font-size: 1.375rem; font-weight: 700; color: #0f172a;
  letter-spacing: -.01em; margin: 3rem 0 1rem;
  padding-top: 1.75rem; border-top: 1px solid #e2e8f0;
  scroll-margin-top: 6rem;
}
.doc-body h2:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }
.doc-body h3 {
  font-size: 1rem; font-weight: 700; color: #1e293b;
  margin: 2rem 0 .75rem; scroll-margin-top: 6rem;
}
.doc-body p {
  color: #475569; font-size: .9375rem; line-height: 1.75; margin-bottom: 1rem;
}
.doc-body ul, .doc-body ol { margin: 0 0 1.25rem; padding-left: 1.25rem; }
.doc-body li {
  color: #475569; font-size: .9375rem; line-height: 1.75; margin-bottom: .5rem;
}
.doc-body ul li { list-style: disc; }
.doc-body ol li { list-style: decimal; }
.doc-body a { color: #0891a0; text-decoration: underline; text-underline-offset: 2px; }
.doc-body a:hover { color: #00B8C4; }
.doc-body strong { color: #1e293b; font-weight: 600; }

/* Genummerde clausule: "1.1 <tekst>" met uitlijning */
.clause {
  display: grid; grid-template-columns: 3.25rem 1fr; gap: .5rem;
  color: #475569; font-size: .9375rem; line-height: 1.75; margin-bottom: .85rem;
}
.clause > .n {
  font-variant-numeric: tabular-nums; font-weight: 600; color: #94a3b8; font-size: .875rem;
  padding-top: .05rem;
}

/* Inhoudsopgave */
.doc-toc {
  padding: 1.5rem; border-radius: 1.25rem;
  background: #f8fafc; border: 1px solid #e2e8f0;
}
.doc-toc ol { margin: 0; padding-left: 1.1rem; }
.doc-toc li { margin-bottom: .4rem; font-size: .875rem; line-height: 1.5; list-style: decimal; }
.doc-toc a { color: #475569; text-decoration: none; }
.doc-toc a:hover { color: #00B8C4; text-decoration: underline; }

/* Attentieblok */
.doc-note {
  padding: 1.15rem 1.25rem; border-radius: 1rem; margin-bottom: 2rem;
  background: rgba(0,184,196,.06); border: 1px solid rgba(0,184,196,.25);
}
.doc-note p { margin: 0; color: #334155; font-size: .875rem; line-height: 1.65; }
.doc-note p + p { margin-top: .6rem; }

/* Definitietabel (privacy: bewaartermijnen, grondslagen) */
.doc-table-wrap { overflow-x: auto; margin-bottom: 1.75rem; }
.doc-table { width: 100%; border-collapse: collapse; min-width: 34rem; }
.doc-table th, .doc-table td {
  text-align: left; padding: .75rem .9rem;
  border-bottom: 1px solid #e2e8f0; font-size: .875rem; line-height: 1.6;
}
.doc-table th {
  color: #0f172a; font-weight: 600; background: #f8fafc;
  border-bottom: 1px solid #cbd5e1;
}
.doc-table td { color: #475569; vertical-align: top; }

/* Codeblok (security.txt-voorbeeld, PGP) */
.doc-code {
  display: block; overflow-x: auto; padding: 1.1rem 1.25rem;
  border-radius: .85rem; background: #081120; color: #cbd5e1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .8125rem; line-height: 1.7; margin-bottom: 1.75rem;
  white-space: pre;
}
.doc-code .k { color: #00B8C4; }
.doc-code .c { color: #64748b; }

@media (max-width: 768px) {
  .hero-h1 { font-size: 2.5rem; }
  .doc-hero { padding: 7.5rem 0 3rem; }
  .clause { grid-template-columns: 2.5rem 1fr; }
}

/* Respecteer voorkeur voor minder beweging */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .sr, .sr-left, .sr-right, .sr-scale { opacity: 1; transform: none; }
}
