/* ════════════════════════════════════════════════════════════════
   Nonzerosum Blocks — Global CSS
   ════════════════════════════════════════════════════════════════ */

:root {
  --nzs-cream:       #FBFCF7;
  --nzs-forest:      #345247;
  --nzs-forest-dark: #1E3A35;
  --nzs-mint:        #3DCEAA;
  --nzs-mint-dark:   #2EB896;
  --nzs-body:        #3D4F4B;
  --nzs-card-tint:   #E8EDE9;
  --nzs-white:       #FFFFFF;

  --nzs-font-heading: 'Poppins', 'Mulish', system-ui, sans-serif;
  --nzs-font-body:    'Mulish', system-ui, sans-serif;

  --nzs-radius-sm:   4px;
  --nzs-radius-md:   12px;
  --nzs-radius-lg:   24px;
  --nzs-radius-pill: 999px;

  --nzs-ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --nzs-transition: all 0.25s var(--nzs-ease);

  --nzs-wrap: 1280px;
  --nzs-px:   clamp(1.25rem, 4vw, 2rem);
}

/* ── Reset ──────────────────────────────────────────────────────── */
.nzs-section *, .nzs-section *::before, .nzs-section *::after {
  box-sizing: border-box;
}

/* ── Wrap ───────────────────────────────────────────────────────── */
.nzs-wrap {
  max-width: var(--nzs-wrap);
  margin-inline: auto;
  padding-inline: var(--nzs-px);
  width: 100%;
}

/* ── Label pill ─────────────────────────────────────────────────── */
.nzs-label {
  display: inline-block;
  border: 1px solid rgba(52,82,71,0.3);
  border-radius: var(--nzs-radius-pill);
  padding: 0.375rem 1.25rem;
  font-family: var(--nzs-font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nzs-forest);
}
.nzs-section--dark .nzs-label {
  border-color: rgba(245,244,239,0.3);
  color: var(--nzs-cream);
}

/* ── Pill knop ──────────────────────────────────────────────────── */
.nzs-pill, .wp-block-button .wp-block-button__link {
  display: inline-flex !important;
  align-items: center;
  gap: 0.75rem;
  padding: 0.375rem 0.375rem 0.375rem 1.5rem !important;
  border-radius: var(--nzs-radius-pill) !important;
  font-family: var(--nzs-font-body) !important;
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: var(--nzs-transition);
  cursor: pointer;
  border: none !important;
  background: var(--nzs-mint) !important;
  color: var(--nzs-forest) !important;
}
.nzs-pill:hover, .wp-block-button .wp-block-button__link:hover {
  background: var(--nzs-mint-dark) !important;
  transform: translateY(-1px);
}
.nzs-pill__icon {
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  background: var(--nzs-forest);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.nzs-pill__icon svg { stroke: var(--nzs-cream); fill: none; }
.nzs-pill:hover .nzs-pill__icon { transform: translateX(3px); }

/* Outline variant (op donkere secties) */
.nzs-pill--outline {
  background: transparent !important;
  border: 1.5px solid rgba(245,244,239,0.4) !important;
  color: var(--nzs-cream) !important;
}
.nzs-pill--outline:hover { background: rgba(245,244,239,0.08) !important; }
.nzs-pill--outline .nzs-pill__icon { background: var(--nzs-mint); }
.nzs-pill--outline .nzs-pill__icon svg { stroke: var(--nzs-forest); }

/* ── Secties basisstijlen ───────────────────────────────────────── */
.nzs-section {
  background: var(--nzs-cream);
  padding: 5rem 0;
  width: 100%;
}
.nzs-section--dark {
  background: var(--nzs-forest);
  color: var(--nzs-cream);
}
.nzs-section--flush { padding: 0; }

/* ── InnerBlocks typografie — standaard Gutenberg stijlen werken ── */
.nzs-inner h1, .nzs-inner h2, .nzs-inner h3,
.nzs-inner h4, .nzs-inner h5, .nzs-inner h6 {
  font-family: var(--nzs-font-heading);
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--nzs-forest);
  margin: 0 0 0.75rem;
}
.nzs-section--dark .nzs-inner h1,
.nzs-section--dark .nzs-inner h2,
.nzs-section--dark .nzs-inner h3 {
  color: var(--nzs-cream);
}
.nzs-inner p {
  font-family: var(--nzs-font-body);
  line-height: 1.7;
  color: var(--nzs-body);
  margin: 0 0 1em;
}
.nzs-inner p:last-child { margin-bottom: 0; }
.nzs-section--dark .nzs-inner p { color: rgba(245,244,239,0.8); }

/* Eyebrow class op paragraph */
.nzs-inner .nzs-eyebrow,
.nzs-inner p.nzs-eyebrow {
  display: inline-block;
  border: 1px solid rgba(52,82,71,0.3);
  border-radius: var(--nzs-radius-pill);
  padding: 0.375rem 1.25rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nzs-forest);
  margin-bottom: 1.25rem;
}
.nzs-section--dark .nzs-inner .nzs-eyebrow {
  border-color: rgba(245,244,239,0.3);
  color: var(--nzs-cream);
}

/* Arrow-shape clip */
.nzs-arrow-shape {
  clip-path: polygon(0 0, 88% 0, 100% 50%, 88% 100%, 0 100%, 12% 50%);
  overflow: hidden;
}

/* ── writing-mode reset — voorkomt verticale tekst ── */
body, body * {
  writing-mode: horizontal-tb;
}
/* Specifiek voor hero content */
.nzs-hero__content,
.nzs-hero__content * {
  writing-mode: horizontal-tb !important;
}

/* =========================================================
   NZS 12-koloms grid systeem
   Container: max 1316px, gutter: 16px
   ========================================================= */
:root {
  --nzs-wrap: 1316px;
  --nzs-container: 1316px;
  --nzs-gutter: 16px;
  --nzs-grid-width: min(calc(100vw - 48px), var(--nzs-container));
  --nzs-grid-col: calc((var(--nzs-grid-width) - (11 * var(--nzs-gutter))) / 12);
  --nzs-px: 24px;
}

.nzs-wrap {
  max-width: var(--nzs-container);
  padding-inline: 24px;
}

@media (max-width: 767px) {
  :root {
    --nzs-grid-width: min(calc(100vw - 32px), var(--nzs-container));
    --nzs-px: 16px;
  }

  .nzs-wrap {
    padding-inline: 16px;
  }
}

/* Zwevende verticale CTA: spontane sollicitatie */
#spontane-sollicitatie {
  scroll-margin-top: 120px;
}
.nzs-float-apply {
  position: fixed;
  right: 0;
  top: 50%;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 14px 18px;
  background: var(--nzs-forest);
  color: var(--nzs-cream);
  text-decoration: none;
  border-radius: 12px 0 0 12px;
  box-shadow: 0 8px 24px rgba(30, 58, 53, 0.18);
  transform: translateY(-50%);
  writing-mode: vertical-rl !important;
  text-orientation: mixed;
}
.nzs-float-apply,
.nzs-float-apply * {
  writing-mode: vertical-rl !important;
}
.nzs-float-apply__label {
  font-family: var(--nzs-font-body);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
}
.nzs-float-apply:hover,
.nzs-float-apply:focus-visible {
  background: var(--nzs-forest-dark);
  color: var(--nzs-cream);
}
@media (max-width: 767px) {
  .nzs-float-apply {
    padding: 12px 10px 14px;
  }
  .nzs-float-apply__label {
    font-size: 11px;
  }
}

/* CookieHub notice: bottom-right instead of centered overlay */
#ch2-dialog.ch2-dialog-center,
#ch2-dialog.ch2-dialog-center.ch2-visible {
  top: auto !important;
  left: auto !important;
  right: 24px !important;
  bottom: 24px !important;
  transform: none !important;
  width: min(420px, calc(100vw - 32px)) !important;
  max-height: min(640px, calc(100vh - 48px));
  overflow: auto;
  animation: none !important;
}
#ch2-dialog.ch2-dialog-center .ch2-dialog-content {
  float: none !important;
  display: block !important;
  width: 100% !important;
  margin: 0 0 16px !important;
}
#ch2-dialog.ch2-dialog-center .ch2-dialog-actions,
#ch2-dialog.ch2-dialog-center .ch2-dialog-actions-vertical {
  float: none !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
}
#ch2-dialog.ch2-dialog-center .ch2-dialog-actions button,
#ch2-dialog.ch2-dialog-center .ch2-dialog-actions-vertical button {
  width: 100% !important;
  margin: 0 0 8px !important;
}
@media (max-width: 575px) {
  #ch2-dialog.ch2-dialog-center,
  #ch2-dialog.ch2-dialog-center.ch2-visible {
    right: 12px !important;
    bottom: 12px !important;
    left: 12px !important;
    width: auto !important;
  }
}
