/* Additions on top of the published design in webflow.css. Kept deliberately tiny: anything that
   belongs to the design belongs in the design, not here. */

/* Het uitschuiven van het mobiele menu. Webflow animeerde dit vanuit zijn runtime met inline styles;
   site.js zet alleen de hoogte, de beweging staat hier. De duur volgt `data-duration` op de navbar. */
.w-nav-overlay {
  transition: height 0.4s ease;
}

@media (prefers-reduced-motion: reduce) {
  .w-nav-overlay,
  .w-slider-mask .w-slide {
    transition: none !important;
  }
}

/* Rich-text bodies come from the CMS, so their images are whatever an editor uploaded. */
.w-richtext img {
  max-width: 100%;
  height: auto;
}

/* Content hydrated from the API can be longer than the copy this page was published with. */
.w-richtext pre,
.w-richtext code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Code blocks in CMS bodies keep Webflow's rich-text classes. The published design coloured them with
   the inline a11y-dark theme that react-syntax-highlighter emits; inline styles never survive the
   ContentApi sanitizer, so the seed turns them into these classes and the theme lives here. */
.w-richtext pre.w-code-block {
  display: block;
  overflow-x: auto;
  background: #2b2b2b;
  color: #f8f8f2;
  padding: 0.5em;
}

.w-richtext .code-line {
  display: flex;
}

.w-richtext .react-syntax-highlighter-line-number {
  display: inline-block;
  min-width: 2.25em;
  padding-right: 1em;
  text-align: right;
  user-select: none;
}

/* Gutter width follows the line count of the block, like the published markup did. */
.w-richtext .react-syntax-highlighter-line-number.ln-1 { min-width: 1.25em; }
.w-richtext .react-syntax-highlighter-line-number.ln-3 { min-width: 3.25em; }

.w-richtext .hl-string { color: #abe338; }
.w-richtext .hl-name { color: #ffa07a; }
.w-richtext .hl-literal { color: #f5ab35; }
.w-richtext .hl-keyword { color: #dcc6e0; }
.w-richtext .hl-comment { color: #d4d0ab; }

/* --- Contactformulier (eigen backend i.p.v. HubSpot) --------------------------------------------
   Het formulier POST via site.js naar /api/v1/contact; nginx proxyt dat naar de ContentApi. */
.contact-form_fields {
  display: flex;
  flex-direction: column;
}

.contact-form_label {
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.contact-form_optional {
  font-weight: 400;
  opacity: 0.7;
}

.contact-form_input {
  margin-bottom: 1rem;
  border-radius: 0.4rem;
  border: 1px solid #cbd5e1;
  padding: 0.6rem 0.75rem;
}

.contact-form_message {
  resize: vertical;
  min-height: 8rem;
}

.contact-form_submit {
  align-self: flex-start;
}

.contact-form_submit[disabled] {
  opacity: 0.6;
  cursor: default;
}

/* Honeypot: uit de flow en onzichtbaar, maar niet display:none — sommige bots slaan dat over. */
.contact-form_hp {
  position: absolute;
  left: -5000px;
  top: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form_done,
.contact-form_fail {
  padding: 1rem 1.25rem;
  border-radius: 0.4rem;
}

.contact-form_done {
  background: #dcfce7;
  color: #15803d;
}

.contact-form_fail {
  background: #fee2e2;
  color: #b91c1c;
}
