/* Jitware — gedeelde paginastijl voor dienstpagina's */

:root {
  --brand-indigo: #4F46E5;
  --brand-violet: #7C3AED;
}

html, body { scroll-behavior: smooth; }

body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: #111827;
  background: #ffffff;
}

.heading { font-family: Sora, Inter, system-ui, sans-serif; }

.brand-text-gradient {
  background: linear-gradient(270deg, #4f46e5, #00f2ff, #200065, #00b3ff);
  background-size: 800% 800%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gradientMove 6s linear infinite;
}

@keyframes gradientMove {
  0% { background-position: 0% 50% }
  100% { background-position: 100% 50% }
}

.nav-glass {
  background: rgba(255, 255, 255, .7);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, .04);
}

.nav-solid { background: rgba(255, 255, 255, .95); }

.card {
  position: relative;
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 1rem;
  transition: transform .25s ease, box-shadow .25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 2px 6px rgba(16, 24, 40, .06), 0 20px 40px -20px rgba(16, 24, 40, .30), 0 12px 40px -10px rgba(79, 70, 229, .35);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  padding: .25rem .625rem;
  border-radius: 9999px;
  border: 1px solid rgba(0, 0, 0, .08);
  background: rgba(255, 255, 255, .7);
  backdrop-filter: saturate(180%) blur(6px);
  font-size: .75rem;
  color: #374151;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border-radius: 9999px;
  font-weight: 600;
  padding: .875rem 1.5rem;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.btn-primary {
  background: linear-gradient(90deg, var(--brand-indigo), var(--brand-violet));
  color: #fff;
  box-shadow: 0 8px 20px -12px rgba(79, 70, 229, .55);
}

.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.05); }

.btn-ghost {
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #374151;
}

.btn-ghost:hover { background: #f9fafb; transform: translateY(-1px); }

.link-underline { position: relative; }

.link-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--brand-indigo), var(--brand-violet));
  transition: width .25s ease;
}

.link-underline:hover::after { width: 100%; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.revealed { opacity: 1; transform: none; }

details.faq { border: 1px solid #eef0f3; border-radius: .75rem; background: #fff; }
details.faq summary { cursor: pointer; list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq[open] .faq-icon { transform: rotate(45deg); }
.faq-icon { transition: transform .2s ease; }

.flow-step { display: flex; align-items: flex-start; gap: 1rem; }

.silo-table { width: 100%; border-collapse: collapse; font-size: .95rem; }

.silo-table th,
.silo-table td {
  text-align: left;
  padding: .875rem 1rem;
  border-bottom: 1px solid #eef0f3;
  vertical-align: top;
}

.silo-table th { font-weight: 600; color: #374151; background: #f9fafb; }

.table-scroll { overflow-x: auto; }

.region-link {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  padding: .5rem .875rem;
  border-radius: .625rem;
  border: 1px solid #eef0f3;
  background: #fff;
  font-size: .875rem;
  color: #374151;
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
}

.region-link:hover {
  border-color: #c7d2fe;
  color: var(--brand-indigo);
  transform: translateY(-1px);
}

/* ── Voor/na-schuifvergelijking ─────────────────────────────────────────
   Beide beelden moeten dezelfde verhouding hebben. Het onderste beeld
   bepaalt de hoogte; het bovenste wordt weggeknipt op --pos. */

.ba {
  --pos: 50%;
  position: relative;
  overflow: hidden;
  border-radius: .75rem;
  background: #f3f4f6;
  line-height: 0;
  touch-action: pan-y;
}

.ba img { display: block; width: 100%; height: auto; }

.ba-clip {
  position: absolute;
  inset: 0;
  width: var(--pos);
  overflow: hidden;
  will-change: width;
}

.ba-clip img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: auto;
  max-width: none;
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(16, 24, 40, .15);
  pointer-events: none;
  will-change: left;
}

.ba-grip {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2.5rem;
  height: 2.5rem;
  transform: translate(-50%, -50%);
  border-radius: 9999px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(16, 24, 40, .25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-indigo);
}

.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
}

.ba-range::-webkit-slider-thumb { -webkit-appearance: none; width: 3rem; height: 100vh; cursor: ew-resize; }
.ba-range::-moz-range-thumb { width: 3rem; height: 100vh; border: 0; cursor: ew-resize; }
.ba-range:focus-visible { outline: none; }
.ba-range:focus-visible ~ .ba-handle { box-shadow: 0 0 0 3px rgba(79, 70, 229, .55); }

.ba-tag {
  position: absolute;
  top: .75rem;
  padding: .25rem .625rem;
  border-radius: 9999px;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(17, 24, 39, .72);
  backdrop-filter: blur(4px);
  pointer-events: none;
  line-height: 1.4;
}

.ba-tag-voor { left: .75rem; }
.ba-tag-na { right: .75rem; }

/* ── Beeldkader voor case-thumbnails ─────────────────────────────────── */

.case-media {
  position: relative;
  overflow: hidden;
  border-radius: .75rem;
  border: 1px solid #eef0f3;
  background: #f9fafb;
  line-height: 0;
}

.case-media img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .45s ease;
}

.card:hover .case-media img { transform: scale(1.035); }

/* ── Statistiektegel met meelopend cijfer ────────────────────────────── */

.stat-tile {
  border-radius: 1rem;
  border: 1px solid #eef0f3;
  background: #fff;
  padding: 1.25rem 1rem;
  text-align: center;
}

.stat-num {
  font-family: Sora, Inter, system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.875rem;
  line-height: 1.1;
  color: var(--brand-indigo);
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .brand-text-gradient { animation: none; }
  .case-media img { transition: none; }
  .card:hover .case-media img { transform: none; }
}
