/* Shared page styles for Emendis sub-pages (cases, producten, vacatures, etc.) */
:root {
  --ink: #0B0E12;
  --ink-2: #12161C;
  --grey: #3A4149;
  --grey-2: #4A5159;
  --grey-soft: #6B7280;
  --red: #D61F4E;
  --red-hover: #B01840;
  --red-soft: #FCE7EC;
  --red-glow: #ff3d6b;
  --paper: #ffffff;
  --surface: #FAFAFA;
  --surface-2: #F5F5F7;
  --surface-warm: #FAF8F5;
  --line: #E8E9EC;
  --line-soft: #F0F1F4;
  --text: #3A4149;
  --text-muted: rgba(58, 65, 73, 0.68);
  --text-faint: rgba(58, 65, 73, 0.48);
  --success: #15803d;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; font-family: 'Inter', sans-serif; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--paper);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-feature-settings: 'ss01', 'cv11';
  letter-spacing: -0.005em;
}
svg { display: block; }
.container { max-width: 1320px; margin: 0 auto; padding: 0 2.5rem; }
.mono { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; }

/* ===== Buttons — v4 (rebuilt from scratch, premium) =====
   Markup: <a class="btn btn-{primary|secondary|outline|ghost}"> Tekst <svg class="btn-arrow">…</svg> </a>
   Sizes:  add .btn-sm or .btn-lg. Default is medium.

   Design principles for this rebuild:
   - Pixel-locked heights per size (40/48/56) — never em-based, so labels and
     arrows can scale type without breaking the geometry.
   - Arrow is a 1em-square SVG; vertical alignment uses align-items:center on
     a flex parent (correct math) plus a tuned viewBox so the arrowhead's
     visual mass sits on the x-height. No translate-hack.
   - Subtle elevation system: rest = soft shadow, hover = +1px lift, active
     = pressed (no shadow). Premium feel without flashiness.
   - Hairline borders that respect the variant (12% ink for outline, not the
     too-light --line token).
*/
.btn {
  /* layout */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  /* type */
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.005em;
  white-space: nowrap;
  text-decoration: none;
  /* shape — pill */
  border: 1px solid transparent;
  border-radius: 999px;
  /* default size: medium = 48px tall */
  height: 48px;
  padding: 0 22px;
  /* behaviour */
  cursor: pointer;
  user-select: none;
  position: relative;
  isolation: isolate;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .15s ease, box-shadow .2s ease;
  -webkit-tap-highlight-color: transparent;
  vertical-align: middle;
}
.btn:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
.btn:active {
  transform: translateY(0) !important;
  transition-duration: .05s;
}

/* arrow — flex centers it vertically; align with text baseline naturally */
.btn-arrow {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  display: block;
  transition: transform .2s ease;
}
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ----- variants ----- */
.btn-primary {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 1px 2px rgba(214,31,78,.18), 0 4px 12px rgba(214,31,78,.18);
}
.btn-primary:hover {
  background: var(--red-hover);
  border-color: var(--red-hover);
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 2px 4px rgba(214,31,78,.22), 0 10px 22px rgba(214,31,78,.28);
}
.btn-primary:active {
  background: var(--red-hover);
  box-shadow: 0 1px 2px rgba(214,31,78,.2);
}

.btn-secondary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 1px 2px rgba(11,14,18,.18), 0 4px 12px rgba(11,14,18,.12);
}
.btn-secondary:hover {
  background: var(--ink-2);
  border-color: var(--ink-2);
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 2px 4px rgba(11,14,18,.22), 0 10px 22px rgba(11,14,18,.18);
}
.btn-secondary:active {
  background: #000;
  box-shadow: 0 1px 2px rgba(11,14,18,.2);
}

.btn-outline {
  background: var(--paper);
  color: var(--ink);
  border-color: rgba(11,14,18,0.14);
  box-shadow: 0 1px 2px rgba(11,14,18,.04);
}
.btn-outline:hover {
  border-color: rgba(11,14,18,0.28);
  background: var(--paper);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(11,14,18,.06), 0 8px 18px rgba(11,14,18,.06);
}
.btn-outline:active {
  background: var(--surface-2);
  box-shadow: 0 1px 2px rgba(11,14,18,.04);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.22);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-1px);
}
.btn-ghost:active {
  background: rgba(255,255,255,0.04);
}

/* ----- sizes ----- */
.btn-sm {
  height: 40px;
  padding: 0 18px;
  font-size: 14px;
  gap: 0.45rem;
}
.btn-lg {
  height: 56px;
  padding: 0 28px;
  font-size: 16px;
  gap: 0.55rem;
}

/* ----- block ----- */
.btn-block { width: 100%; }

/* legacy: .arrow span used in older markup (problem-foot, proof-link).
   Style as inline-flex sibling so vertical centering works the same. */
.btn .arrow,
.arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: transform .2s ease;
}
.btn:hover .arrow,
a:hover > .arrow { transform: translateX(3px); }

/* ===== Eyebrow / labels ===== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.5rem 1rem; background: var(--paper); border: 1px solid var(--line);
  border-radius: 999px; font-size: 0.78rem; font-weight: 500; color: var(--grey);
  margin-bottom: 1.75rem; box-shadow: 0 2px 8px rgba(58,65,73,0.04);
}
.eyebrow-dot { width: 6px; height: 6px; background: var(--red); border-radius: 50%; box-shadow: 0 0 10px var(--red); animation: pulse 2s ease-in-out infinite; }
.section-label {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; font-weight: 500; color: var(--grey-soft); margin-bottom: 1rem;
}
.section-label::before { content: ""; width: 24px; height: 1px; background: var(--red); display: inline-block; }

/* ===== Hero (light) ===== */
.page-hero {
  padding: 11rem 0 5rem; background: var(--surface); position: relative; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 800px 500px at 15% 30%, rgba(214,31,78,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 900px 600px at 85% 70%, rgba(58,65,73,0.04) 0%, transparent 60%);
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(58,65,73,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58,65,73,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.25rem); line-height: 1.05; letter-spacing: -0.035em;
  font-weight: 800; color: var(--ink); margin-bottom: 1.25rem; max-width: 14em;
}
.page-hero h1 .red { color: var(--red); }
.page-hero p {
  font-size: 1.15rem; color: var(--text-muted); line-height: 1.6; max-width: 600px;
}

/* Hero (dark) */
.page-hero.dark {
  background: linear-gradient(135deg, #1C2128 0%, #0B0E12 100%); color: white; text-align: center;
}
.page-hero.dark::before {
  background:
    radial-gradient(ellipse 700px 400px at 25% 40%, rgba(214,31,78,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 700px 400px at 80% 60%, rgba(120,60,220,0.14) 0%, transparent 60%);
}
.page-hero.dark::after {
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse at center, black 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 10%, transparent 70%);
}
.page-hero.dark h1 { color: white; margin-left: auto; margin-right: auto; }
.page-hero.dark h1 .red { color: var(--red-glow); }
.page-hero.dark p { color: rgba(255,255,255,0.72); margin-left: auto; margin-right: auto; }
.page-hero.dark .eyebrow {
  background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85); backdrop-filter: blur(10px);
}

/* ===== Section title shared ===== */
.section-title {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: var(--ink);
  line-height: 1.05; letter-spacing: -0.025em;
}
.section-title .red { color: var(--red); }

/* ===== Final CTA - donker-blauwe navy band met radial-glow (huisstijl, zoals hero) ===== */
.final-cta {
  background: linear-gradient(180deg, #0f1729 0%, #131a2e 50%, #0e1426 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
  color: white;
  isolation: isolate;
}
.final-cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 700px 400px at 20% 30%, rgba(214, 31, 78, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 900px 600px at 85% 80%, rgba(88, 101, 242, 0.20) 0%, transparent 60%);
}
.final-cta::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(ellipse 800px 500px at 50% 50%, black 10%, transparent 75%);
          mask-image: radial-gradient(ellipse 800px 500px at 50% 50%, black 10%, transparent 75%);
}
.final-cta-inner { position: relative; z-index: 2; text-align: center; max-width: 720px; margin: 0 auto; }
.final-cta .section-label { color: rgba(255,255,255,0.85); justify-content: center; }
.final-cta .section-label::before { background: rgba(255,255,255,0.4); }
.final-cta h2 {
  font-weight: 800; font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.05; letter-spacing: -0.025em; color: white; margin-bottom: 1rem;
}
.final-cta h2 .red { color: var(--red-glow, #ff6b95); }
.final-cta p { font-size: 1.05rem; color: rgba(255,255,255,0.78); margin-bottom: 2rem; line-height: 1.55; max-width: 560px; margin-left: auto; margin-right: auto; }
.final-cta .btn-primary { background: var(--red, #D61F4E); color: #fff; border-color: var(--red, #D61F4E); }
.final-cta .btn-primary:hover { background: var(--red-hover, #b00b3a); color: #fff; }
.final-cta .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.22); }
.final-cta .btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); }
.final-cta .cta-row { justify-content: center; display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ===== Footer (injected) ===== */
.em-footer { background: var(--ink); color: rgba(255,255,255,0.7); padding: 4rem 0 2rem; }
.em-footer .footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.4fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.em-footer .footer-brand .logo-text { color: white; font-weight: 900; font-size: 1.4rem; letter-spacing: 0.02em; }
.em-footer .footer-brand .logo { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-decoration: none; }
.em-footer .footer-brand .logo-accent { display: flex; gap: 3px; }
.em-footer .footer-brand .logo-accent span { display: block; height: 2.5px; background: var(--red); }
.em-footer .footer-brand .logo-accent span:first-child { width: 16px; }
.em-footer .footer-brand .logo-accent span:last-child { width: 7px; }
.em-footer .footer-brand p { margin-top: 1.5rem; max-width: 22rem; font-size: 0.9rem; line-height: 1.6; }
.em-footer .footer-col h5 { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.15em; color: rgba(255,255,255,0.5); margin-bottom: 1.25rem; font-weight: 500; }
.em-footer .footer-col ul { list-style: none; padding: 0; margin: 0; }
.em-footer .footer-col li { margin-bottom: 0.65rem; }
.em-footer .footer-col a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.em-footer .footer-col a:hover { color: var(--red-glow); }
.em-footer .footer-contact strong { display: block; color: white; font-weight: 500; margin-bottom: 0.35rem; font-size: 0.95rem; }
.em-footer .footer-contact { font-size: 0.9rem; line-height: 1.7; }
.em-footer .footer-contact a { color: rgba(255,255,255,0.7); text-decoration: none; }
.em-footer .footer-contact a:hover { color: var(--red-glow); }
.em-footer .footer-bottom { padding-top: 2rem; display: flex; justify-content: space-between; font-size: 0.8rem; color: rgba(255,255,255,0.4); flex-wrap: wrap; gap: 1rem; }

/* Animations */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.15); } }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s cubic-bezier(.4,0,.2,1), transform 0.8s cubic-bezier(.4,0,.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1024px) {
  .em-footer .footer-top { grid-template-columns: 1fr 1fr 1fr 1fr; gap: 2.5rem; }
  .em-footer .footer-brand { grid-column: span 4; }
}
@media (max-width: 860px) {
  .container { padding: 0 1.25rem; }
  .em-footer .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .em-footer .footer-brand { grid-column: span 2; }
  .em-footer .footer-bottom { flex-direction: column; text-align: center; }
  .page-hero { padding: 8rem 0 4rem; }
  .final-cta { padding: 4.5rem 0; }
}
@media (max-width: 540px) {
  .em-footer .footer-top { grid-template-columns: 1fr; }
  .em-footer .footer-brand { grid-column: span 1; }
}

@media (max-width: 420px) {
  .container { padding: 0 1rem; }
  h1, .h1 { font-size: clamp(1.75rem, 8vw, 2.4rem); line-height: 1.1; }
  .btn-lg { height: 48px; padding: 0 1.4em; font-size: 0.95rem; }
  .page-hero { padding: 7rem 0 3rem; }
  .final-cta { padding: 3.5rem 0; }
}

/* ===== Globale focus-styles (a11y, WCAG 2.1 AA) ===== */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible,
.em-nav-links a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--red, #DC2626);
  outline-offset: 3px;
  border-radius: 6px;
}
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--red, #DC2626);
  outline-offset: 1px;
}
/* On dark hero, switch focus ring to white for contrast */
.dark-hero a:focus-visible,
.dark-hero button:focus-visible {
  outline-color: #fff;
}

/* ===== FAQ (shared across product pages) ===== */
.faq-section { background: var(--surface); padding: 6rem 0; }
.faq-section .faq-header { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.faq-section .faq-header h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; color: var(--ink); margin: 0.75rem 0 0; }
.faq-section .faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-section .faq-item { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: all 0.3s; }
.faq-section .faq-item:hover { border-color: var(--red); }
.faq-section .faq-item[open] { border-color: var(--red); box-shadow: 0 12px 30px rgba(214,31,78,0.08); }
.faq-section .faq-q { padding: 1.25rem 1.75rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; font-weight: 600; font-size: 1rem; color: var(--ink); list-style: none; }
.faq-section .faq-q::-webkit-details-marker { display: none; }
.faq-section .faq-icon { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--grey); transition: all 0.3s; position: relative; }
.faq-section .faq-icon::before, .faq-section .faq-icon::after { content: ""; position: absolute; background: currentColor; transition: transform 0.3s; }
.faq-section .faq-icon::before { width: 10px; height: 1.5px; }
.faq-section .faq-icon::after { width: 1.5px; height: 10px; }
.faq-section .faq-item[open] .faq-icon { background: var(--red); border-color: var(--red); color: white; transform: rotate(180deg); }
.faq-section .faq-item[open] .faq-icon::after { transform: scaleY(0); }
.faq-section .faq-a { padding: 0 1.75rem 1.75rem; font-size: 0.95rem; color: var(--text-muted, var(--grey)); line-height: 1.65; }
.faq-section .faq-a p { margin: 0 0 0.75rem; }
.faq-section .faq-a p:last-child { margin-bottom: 0; }
.faq-section .faq-a strong { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) {
  .faq-section { padding: 4rem 0; }
}

/* Reveal observer */
