:root {
  --bg: #f2f2f2;
  --panel: #ffffff;
  --panel-2: #f4f4f4;
  --border: #e0e0e0;
  --text: #111111;
  --muted: #6b7280;
  --accent: #e8873b;
  --font-display: 'Roboto', system-ui, sans-serif;
  --font-mono: 'Roboto Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
}

#header-bar {
  position: absolute;
  top: 24px;
  left: 20px;
  right: 20px;
  height: 48px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  padding: 0 28px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  width: 100%;
}
.header-nav-item {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.12s ease;
}
.header-nav-item:hover { color: var(--accent); }
/* Default (desktop) display for the links wrapper — makes it behave
   exactly like the individual <a> tags used to (each its own flex item
   with .header-nav's own 32px gap) now that they're grouped inside this
   div for the mobile dropdown (see #header-menu-toggle below and the
   @media block further down). Without this explicit flex+gap, the div
   would fall back to its default block display, breaking the desktop
   row into a single bunched-up box. */
#header-nav-links { display: flex; align-items: center; gap: 32px; }

/* Hidden on desktop — shown only inside the @media (max-width: 800px)
   block below, which also defines its actual look (flex/gap/etc). */
#header-menu-toggle { display: none; }

@media (max-width: 800px) {
  /* Header stays visible on mobile — nav links collapse behind a
     hamburger toggle instead (same pattern as style.css/viewer.css, for
     consistency across every page). overflow was only ever hidden to
     clip content to the bar's own rounded corners on desktop; the
     dropdown menu below needs room to actually show instead of getting
     clipped by the header's own box. */
  #header-bar { left: 12px; right: 12px; top: 12px; padding: 0 16px; overflow: visible; }
  .header-brand { padding-right: 12px; font-size: 13px; }
  .header-logo-mark { height: 24px; }
  .lang-toggle button { padding: 5px 6px; font-size: 10px; }

  #header-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 5px;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
  }
  #header-menu-toggle span {
    display: block;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
  }
  #header-nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    padding: 10px;
  }
  #header-nav-links.open { display: flex; }
  #header-nav-links .header-nav-item {
    padding: 11px 12px;
    border-radius: 8px;
  }
  #header-nav-links .header-nav-item:hover { background: var(--panel-2); }
}


.header-brand {
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  padding-right: 20px;
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 6px;
}
.header-brand:hover { opacity: 0.8; }
.header-logo-mark {
  height: 30px;
  width: auto;
  display: block;
}
.header-logo-right {
  display: flex;
  align-items: center;
  margin-left: auto;
}

#contact-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 140px 20px 80px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  #contact-page { padding-top: 100px; }
}

.contact-info h1 {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 24px;
}
.contact-info p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 20px;
  max-width: 44ch;
}
.contact-email {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.contact-email:hover { color: var(--accent); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-row {
  display: flex;
  gap: 12px;
}
.contact-field {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-field label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.contact-field input,
.contact-field textarea {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  resize: vertical;
}
.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

#contact-submit {
  align-self: center;
  margin-top: 8px;
  background: var(--accent);
  color: #1a1206;
  border: none;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 40px;
  cursor: pointer;
  transition: filter 0.12s ease;
}
#contact-submit:hover:not(:disabled) { filter: brightness(1.05); }
#contact-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.contact-status {
  text-align: center;
  font-size: 13px;
  min-height: 18px;
}
.contact-status.ok { color: #2f9e5b; }
.contact-status.err { color: #e0645f; }

/* NL/EN taalknop — zelfde design tokens als de rest van de header. */
.lang-toggle {
  display: flex;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}
.lang-toggle button {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  background: var(--panel-2);
  color: var(--muted);
  border: none;
  padding: 6px 9px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.lang-toggle button.active {
  background: var(--accent);
  color: #1a1206;
}
.lang-toggle button:not(.active):hover {
  color: var(--text);
}
