/* hallmark · v2.0.0 · theme: custom-sage-paper · shape: workbench · hero: split-workbench · nav: inline-compact · footer: editorial-columns · signature: interactive-conversation-workbench */
/* critique: warm paper surface, deep sage green anchor, terracotta primary action, sans-serif headings max-weight 700, zero eyebrow caps, hairline grouping instead of card clutter */

:root {
  --bg: #ffffff;
  --surface: #f3f6f5;
  --surface-strong: #e6ecea;
  --surface-white: #ffffff;
  --ink: #16211d;
  --ink-soft: #384742;
  --ink-muted: #55645f;
  --line: #d8e0dd;
  --line-strong: #bcc8c3;
  --brand: #1e4d40;
  --brand-dark: #15382e;
  --brand-tint: #e8f1ee;
  --accent: #b8502c;
  --accent-dark: #943e20;
  --accent-tint: #faede8;
  --ok: #1f6a45;
  --ok-tint: #e6f4ed;
  --warn: #8c5211;
  --warn-tint: #fdf3e7;
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius-sm: 6px;
  --radius-md: 10px;
  --container: 1120px;
  --measure: 68ch;
  --gutter: clamp(18px, 3vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* Header & navigatie */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.015em;
  flex-shrink: 0;
}

.brand-mark { width: 28px; height: 28px; border-radius: var(--radius-sm); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 7px 11px;
  border-radius: var(--radius-sm);
  transition: background-color 150ms ease-out, color 150ms ease-out;
}

.site-nav a:hover { background: var(--surface); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--brand); background: var(--brand-tint); font-weight: 600; }
.site-nav a.nav-cta {
  background: var(--brand);
  color: var(--surface-white);
  font-weight: 600;
  margin-left: 4px;
}
.site-nav a.nav-cta:hover { background: var(--brand-dark); color: var(--surface-white); }

.menu-toggle {
  display: none;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 7px 13px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

/* Kruimelpad */
.crumb-bar {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.86rem;
  color: var(--ink-muted);
  padding: 8px 0;
}
.crumb-bar a { color: var(--ink-soft); text-decoration: none; }
.crumb-bar a:hover { text-decoration: underline; }
.crumb-sep { margin: 0 7px; color: var(--ink-muted); }

/* Hero */
.hero {
  padding: clamp(28px, 4vw, 48px) 0 clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
}

.hero-grid.workbench-first {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

.hero h1 {
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 14px;
  overflow-wrap: break-word;
  min-width: 0;
}

.hero-lead {
  font-size: 1.06rem;
  line-height: 1.58;
  color: var(--ink-soft);
  margin: 0 0 20px;
  max-width: 54ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.hero-figure {
  margin: 0;
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.hero-figure figcaption {
  margin-top: 8px;
  font-size: 0.84rem;
  color: var(--ink-muted);
}

/* Knoppen */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out;
}

.btn-primary {
  background: var(--accent);
  color: var(--surface-white);
}
.btn-primary:hover { background: var(--accent-dark); color: var(--surface-white); }

.btn-brand {
  background: var(--brand);
  color: var(--surface-white);
}
.btn-brand:hover { background: var(--brand-dark); color: var(--surface-white); }

.btn-ghost {
  background: transparent;
  color: var(--brand);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--surface); color: var(--ink); }

/* Interactieve werkbank (zonder card-in-card) */
.tool-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: clamp(18px, 2.5vw, 26px);
}

.tool-panel .tool-title, .tool-panel h2, .tool-panel h3 {
  margin-top: 0;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.field-grid.single { grid-template-columns: minmax(0, 1fr); }

.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 5px;
}

.field input[type="text"],
.field input[type="number"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  padding: 9px 11px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--surface-white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}

.field input[type="range"] {
  width: 100%;
  accent-color: var(--brand);
  cursor: pointer;
}

.range-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.range-val {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--brand);
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.pill-btn {
  background: var(--surface-white);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 8px 13px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 140ms ease-out, border-color 140ms ease-out, color 140ms ease-out;
}

.pill-btn:hover { border-color: var(--brand); color: var(--brand); }
.pill-btn[aria-pressed="true"], .pill-btn.active {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--surface-white);
  font-weight: 600;
}

.tool-output {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line-strong);
  animation: fadeSlide 160ms ease-out;
}

.output-highlight {
  background: var(--surface-white);
  border-left: 3px solid var(--brand);
  padding: 13px 15px;
  margin: 10px 0;
}

.output-warn {
  background: var(--warn-tint);
  border-left: 3px solid var(--accent);
  padding: 13px 15px;
  margin: 10px 0;
  color: var(--ink);
}

.output-ok {
  background: var(--ok-tint);
  border-left: 3px solid var(--ok);
  padding: 13px 15px;
  margin: 10px 0;
  color: var(--ink);
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0;
}

.metric-item {
  padding: 10px 0;
  border-top: 2px solid var(--brand);
}

.metric-num {
  display: block;
  font-size: 1.45rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--brand);
  line-height: 1.2;
}

.metric-lbl {
  font-size: 0.84rem;
  color: var(--ink-muted);
}

/* Secties & inhoud */
.section {
  padding: clamp(32px, 4.5vw, 52px) 0;
  border-bottom: 1px solid var(--line);
}

.section-tint { background: var(--surface); }

.section h2 {
  font-size: clamp(1.38rem, 2.2vw, 1.75rem);
  line-height: 1.24;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 14px;
}

.section h3 {
  font-size: 1.12rem;
  line-height: 1.32;
  font-weight: 700;
  color: var(--ink);
  margin: 22px 0 8px;
}

.prose {
  max-width: var(--measure);
}

.prose p { margin: 0 0 14px; color: var(--ink-soft); }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 20px; color: var(--ink-soft); }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--ink); }

.split-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 3.5vw, 44px);
  align-items: start;
}

.split-media {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(22px, 3.5vw, 40px);
  align-items: center;
}

.split-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-md);
}

/* Haarlijn-lijst i.p.v. kaartenmuur */
.index-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.index-list li {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) auto;
  gap: 16px;
  align-items: baseline;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.index-list a.item-title {
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.02rem;
}
.index-list a.item-title:hover { color: var(--accent); text-decoration: underline; }
.index-list .item-desc { color: var(--ink-soft); font-size: 0.94rem; margin: 0; }
.index-list .item-link { font-size: 0.9rem; font-weight: 600; white-space: nowrap; }

/* Tabellen */
.table-wrap {
  overflow-x: auto;
  margin: 18px 0;
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  min-width: 540px;
}

table.data-table th {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 2px solid var(--brand);
  color: var(--ink);
  font-weight: 700;
  background: var(--surface);
}

table.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  vertical-align: top;
}

table.data-table td strong { color: var(--ink); }

.tool-panel table.data-table {
  min-width: 0;
  font-size: 0.88rem;
}
.tool-panel table.data-table th,
.tool-panel table.data-table td {
  padding: 8px 9px;
}

/* Productgrid (verdiende kaarten alleen voor gelijkwaardige producten om naast elkaar te vergelijken) */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.product-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-white);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.product-item.featured {
  border-color: var(--brand);
  background: var(--brand-tint);
}

.product-price {
  font-size: 1.35rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--brand);
}

/* Blogoverzicht & artikel */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 20px;
}

.blog-entry {
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}

.blog-entry img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}

.blog-meta {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.blog-entry h3 {
  margin: 0 0 8px;
  font-size: 1.18rem;
}

.blog-entry h3 a { color: var(--ink); text-decoration: none; }
.blog-entry h3 a:hover { color: var(--accent); text-decoration: underline; }

.article-body {
  max-width: var(--measure);
}

.article-body h2 { margin-top: 30px; }
.article-body figure { margin: 22px 0; }
.article-body figure img { border-radius: var(--radius-md); }
.article-body figcaption { font-size: 0.85rem; color: var(--ink-muted); margin-top: 7px; }

.callout {
  background: var(--surface);
  border-left: 3px solid var(--brand);
  padding: 15px 18px;
  margin: 20px 0;
}

.callout strong { color: var(--ink); }

/* Roos van Leary grid */
.leary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

/* Positieve Gezondheid SVG radar */
.radar-wrap {
  display: flex;
  justify-content: center;
  padding: 12px 0;
}

.radar-wrap svg {
  max-width: 340px;
  width: 100%;
  height: auto;
}

/* Scenario quiz */
.choice-list {
  display: grid;
  gap: 9px;
  margin: 12px 0;
}

.choice-btn {
  text-align: left;
  background: var(--surface-white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  color: var(--ink);
  cursor: pointer;
  line-height: 1.45;
  transition: border-color 140ms ease-out, background-color 140ms ease-out;
}
.choice-btn:hover { border-color: var(--brand); background: var(--brand-tint); }
.choice-btn.selected { border-color: var(--brand); background: var(--brand-tint); font-weight: 600; }

/* Footer */
.site-footer {
  background: var(--surface);
  padding: 40px 0 32px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  gap: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.footer-col h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 10px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.footer-col a { color: var(--ink-soft); text-decoration: none; }
.footer-col a:hover { color: var(--accent); text-decoration: underline; }

.footer-bottom {
  padding-top: 18px;
  font-size: 0.84rem;
  color: var(--ink-muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .brand-link { font-size: 0.9rem; gap: 7px; flex-shrink: 1; min-width: 0; }
  .brand-mark { width: 24px; height: 24px; flex-shrink: 0; }
  .menu-toggle { display: inline-flex; flex-shrink: 0; padding: 6px 11px; }
  .hero-grid,
  .hero-grid.workbench-first,
  .split-2,
  .split-media,
  .product-grid,
  .blog-grid,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .index-list li {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
  .field-grid { grid-template-columns: minmax(0, 1fr); }
  .metric-strip { grid-template-columns: minmax(0, 1fr); }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 66px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 14px var(--gutter);
    flex-direction: column;
    align-items: stretch;
  }
  .site-nav.open { display: flex; }
  .site-nav a.nav-cta { margin-left: 0; text-align: center; }
}

/* Intervisiekaarten & STOP-banner */
.intervisie-stop-banner {
  background: var(--accent-tint);
  border-left: 4px solid var(--accent);
  color: var(--ink);
  padding: 11px 14px;
  margin: 0 0 14px;
  font-size: 0.93rem;
}

.intervisie-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.intervisie-card {
  background: var(--surface-white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 12px 13px;
}

.intervisie-card .card-tag {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 5px;
}

.intervisie-card p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.45;
  color: var(--ink);
}

/* Verborgen print-sheet op scherm */
.print-sheet { display: none; }

@media (max-width: 900px) {
  .intervisie-cards { grid-template-columns: minmax(0, 1fr); }
}

@media print {
  @page { size: A4 portrait; margin: 14mm; }
  body { background: #ffffff !important; color: #111111 !important; font-size: 10.5pt; }
  body.printing-sheet > :not(#print-sheet) { display: none !important; }
  body.printing-sheet #print-sheet {
    display: block !important;
    width: 100%;
    color: #16211d;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .print-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 2px solid #1e4d40;
    padding-bottom: 8px;
    margin-bottom: 14px;
  }
  .print-kicker { font-size: 8.5pt; font-weight: 700; color: #1e4d40; }
  .print-header h2 { margin: 2px 0 0; font-size: 15pt; color: #16211d; }
  .print-date { font-size: 9pt; color: #55645f; }
  .print-scores {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px 12px;
    font-size: 9.5pt;
    padding: 8px 10px;
    background: #f3f6f5;
    border-radius: 4px;
    margin-bottom: 10px;
  }
  .print-radar { display: flex; justify-content: center; margin: 8px 0 12px; }
  .print-radar svg { width: 250px; height: auto; }
  .print-body .table-wrap { overflow: visible; }
  .print-body table.data-table { min-width: 0; font-size: 9pt; }
  .print-body .intervisie-cards { grid-template-columns: repeat(2, 1fr); }
  .print-notes { margin-top: 16px; page-break-inside: avoid; }
  .print-line { border-bottom: 1px solid #9aa8a2; height: 22px; margin-top: 6px; }
  .print-footer {
    margin-top: 16px;
    padding-top: 8px;
    border-top: 1px solid #d8e0dd;
    font-size: 8.5pt;
    color: #55645f;
  }
  .site-header, .crumb-bar, .site-footer, .hero-actions, button { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
