/* =========================================================
   Pietje Proces — styles.css  (v2)
   Plain CSS, no build step. Single committed light theme
   (like the reference sites). Serif display = Fraunces,
   UI/body = Inter. Brand accent: petrol/teal.
   ========================================================= */

:root {
  color-scheme: light;

  --bg:        #FBFAF8;
  --bg-tint:   #F3F1EA;
  --surface:   #FFFFFF;
  --ink:       #17191E;
  --ink-soft:  #464C55;
  --muted:     #767C86;
  --line:      #E7E3DA;
  --line-soft: #EFECE4;

  --accent:     #0F766E;
  --accent-ink: #0B5B54;
  --accent-soft:#E6F1EF;

  --dk-bg:     #14161A;
  --dk-surface:#1B1E23;
  --dk-ink:    #F4F2EC;
  --dk-muted:  #9BA1A9;
  --dk-line:   #2C3038;
  --dk-accent: #34D3BF;

  /* status colours for the product mock-ups */
  --st-new-bg:#E3F1EF;  --st-new-fg:#0B5B54;
  --st-busy-bg:#FBEEDD;  --st-busy-fg:#8A5A12;
  --st-done-bg:#E2ECF8;  --st-done-fg:#1F4E85;
  --st-picked-bg:#EAEBED; --st-picked-fg:#4A4F58;
  --st-paid-bg:#E6F4E9;  --st-paid-fg:#256B3A;

  --maxw: 1120px;
  --radius: 18px;
  --shadow-sm: 0 1px 2px rgba(20,22,26,.05), 0 4px 12px rgba(20,22,26,.05);
  --shadow-lg: 0 8px 24px rgba(20,22,26,.08), 0 40px 80px -20px rgba(20,22,26,.22);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }

h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 600; letter-spacing: -0.01em; }
.display, h1, h2 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
}
h1, .h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2, .h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
h3 { font-family: var(--sans); font-size: 1.06rem; font-weight: 650; letter-spacing: -0.005em; }
p { margin: 0 0 1rem; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
strong { font-weight: 640; }

/* ---------- layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.measure { max-width: 62ch; }
.muted { color: var(--muted); }
.center { text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans);
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-ink); margin: 0 0 1.1rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--accent); border-radius: 2px;
}
.center .eyebrow::before { display: none; }

.lead { font-size: 1.18rem; line-height: 1.6; color: var(--ink-soft); }

/* ---------- skip link ---------- */
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 66px; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand__mark { width: 28px; height: 28px; color: var(--ink); flex: none; }
.brand__dot { fill: var(--accent); }
.brand__name { font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em; }
.brand__accent { color: var(--accent-ink); }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { color: var(--ink-soft); text-decoration: none; font-size: .95rem; font-weight: 500; }
.site-nav a:hover { color: var(--ink); }
@media (max-width: 640px) { .site-nav a:not(.btn) { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px;
  background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 600; font-size: .98rem; border: 1px solid transparent; cursor: pointer;
  transition: transform .14s ease, background .14s ease, box-shadow .14s ease;
}
.btn:hover { background: var(--accent-ink); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--surface); }
.btn--wa { background: #25D366; color: #0A2E14; }
.btn--wa:hover { background: #1EBE5A; }
.btn--small { padding: 8px 15px; font-size: .9rem; }
.btn--lg { padding: 15px 28px; font-size: 1.02rem; }
.btn__icon { width: 1.2em; height: 1.2em; flex: none; }
:where(a, button, .btn, input, [tabindex]):focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px;
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: clip; padding: clamp(48px, 9vw, 96px) 0 clamp(40px, 7vw, 72px); }
.hero__inner { position: relative; z-index: 1; max-width: 900px; margin-inline: auto; text-align: center; }
.hero .eyebrow { justify-content: center; }
.hero .eyebrow::before { display: none; }
.hero h1 { margin-bottom: .35em; }
.hero .lead { max-width: 56ch; margin-inline: auto; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 2rem 0 1rem; }
.hero__note { font-size: .9rem; color: var(--muted); }
.hero__note b { color: var(--ink-soft); font-weight: 600; }

.hero__glow {
  position: absolute; left: 50%; top: 260px; translate: -50% 0;
  width: min(1150px, 128vw); aspect-ratio: 2.4 / 1; z-index: 0;
  background:
    radial-gradient(closest-side, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%),
    radial-gradient(closest-side at 30% 60%, color-mix(in srgb, #5EB8AE 34%, transparent), transparent 70%);
  filter: blur(80px); opacity: .7; pointer-events: none;
}
.hero__stage { position: relative; z-index: 1; margin-top: clamp(28px, 5vw, 56px); }

/* ---------- product window mock ---------- */
.appwin {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 1000px; margin-inline: auto;
}
.appwin__bar {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 16px; border-bottom: 1px solid var(--line-soft);
  background: color-mix(in srgb, var(--bg-tint) 60%, var(--surface));
}
.appwin__dots { display: flex; gap: 6px; }
.appwin__dots i { width: 10px; height: 10px; border-radius: 50%; background: #D9D4C9; }
.appwin__crumb { font-size: 12px; color: var(--muted); font-weight: 500; }
.appwin__tabs { margin-left: auto; display: flex; gap: 4px; }
.appwin__tab {
  font: inherit; font-size: 12px; font-weight: 600; color: var(--muted);
  padding: 5px 11px; border-radius: 999px; border: 1px solid transparent; background: none; cursor: pointer;
}
.appwin__tab[aria-selected="true"] { color: var(--accent-ink); background: var(--accent-soft); }
.appwin__body { display: grid; grid-template-columns: 188px 1fr; min-height: 430px; }
.appwin__nav { border-right: 1px solid var(--line-soft); padding: 16px 12px; background: color-mix(in srgb, var(--bg-tint) 35%, var(--surface)); }
.appwin__nav .np { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 14px 8px 6px; }
.appwin__nav a {
  display: flex; align-items: center; gap: 9px;
  font-size: 12.5px; color: var(--ink-soft); text-decoration: none;
  padding: 7px 9px; border-radius: 8px; font-weight: 500;
}
.appwin__nav a .ni { width: 6px; height: 6px; border-radius: 2px; background: #C9C3B6; flex: none; }
.appwin__nav a.active { background: var(--accent-soft); color: var(--accent-ink); font-weight: 650; }
.appwin__nav a.active .ni { background: var(--accent); }
.appwin__main { padding: 18px 20px; overflow: hidden; }
.appwin__head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.appwin__title { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.appwin__chip { font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; }
.appwin__spacer { margin-left: auto; }
.appwin__btn { font-size: 11px; font-weight: 600; color: var(--accent-ink); background: var(--accent-soft); border-radius: 8px; padding: 5px 10px; }

@media (max-width: 720px) {
  .appwin__body { grid-template-columns: 1fr; }
  .appwin__nav { display: none; }
  .appwin__crumb { display: none; }
  .appwin__bar .appwin__chip { display: none; }
  .appwin__main { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .appwin__head .appwin__chip { display: none; }
  .appwin__btn { white-space: nowrap; }
  .dtable { min-width: 460px; }
}

/* --- planning board --- */
.board { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.board__col { background: color-mix(in srgb, var(--bg-tint) 45%, var(--surface)); border: 1px solid var(--line-soft); border-radius: 10px; padding: 8px; min-height: 300px; }
.board__col h4 { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 2px 2px 8px; }
.board__col--open { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 25%, var(--line)); }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 8px 9px; margin-bottom: 6px; box-shadow: 0 1px 1px rgba(20,22,26,.04); }
.pcard__top { display: block; }
.pcard__client { display: block; font-size: 11.5px; font-weight: 650; color: var(--ink); line-height: 1.25; }
.pcard__nr { display: block; font-size: 9.5px; color: var(--muted); font-variant-numeric: tabular-nums; margin-top: 1px; }
.pcard__meta { font-size: 10.5px; color: var(--ink-soft); margin-top: 3px; }
.pcard__foot { display: flex; align-items: center; gap: 6px; margin-top: 7px; }
.ral { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ral i { width: 9px; height: 9px; border-radius: 3px; border: 1px solid rgba(0,0,0,.12); }
@media (max-width: 980px) { .board { grid-auto-flow: column; grid-auto-columns: 150px; grid-template-columns: none; overflow-x: auto; padding-bottom: 6px; } }

/* --- data table (orders / facturen) --- */
.dtable { width: 100%; border-collapse: collapse; font-size: 12px; }
.dtable th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.dtable td { padding: 10px; border-bottom: 1px solid var(--line-soft); color: var(--ink-soft); vertical-align: middle; }
.dtable tr:last-child td { border-bottom: 0; }
.dtable td:first-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.dtable .c-client { color: var(--ink); font-weight: 600; }
.dtable .num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.dtable tr.is-paid td { background: color-mix(in srgb, var(--st-paid-bg) 55%, transparent); }
.dtable__foot { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 10px 2px; font-size: 12px; color: var(--muted); }
.dtable__foot b { color: var(--ink); font-variant-numeric: tabular-nums; }
@media (max-width: 720px) { .dtable .opt { display: none; } }

.pill { display: inline-block; font-size: 10.5px; font-weight: 650; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.pill--new    { background: var(--st-new-bg);    color: var(--st-new-fg); }
.pill--busy   { background: var(--st-busy-bg);   color: var(--st-busy-fg); }
.pill--done   { background: var(--st-done-bg);   color: var(--st-done-fg); }
.pill--picked { background: var(--st-picked-bg); color: var(--st-picked-fg); }

.toggle { width: 30px; height: 18px; border-radius: 999px; background: #D7D2C7; position: relative; display: inline-block; }
.toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: left .15s; }
.toggle.on { background: var(--accent); }
.toggle.on::after { left: 14px; }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 10vw, 120px) 0; }
.section--tint { background: var(--bg-tint); border-block: 1px solid var(--line); }
.rule-top { border-top: 2px solid var(--ink); padding-top: 20px; }

/* statement block (Chronicle-style asymmetric) */
.statement { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: end; }
.statement h2 { margin: 0; }
.statement p { margin: 0; color: var(--ink-soft); font-size: 1.06rem; }
@media (max-width: 820px) { .statement { grid-template-columns: 1fr; gap: 16px; } }

/* diensten grid */
.svc { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: 40px; border-top: 1px solid var(--line); }
.svc__item { padding: 30px 28px 30px 0; border-bottom: 1px solid var(--line); }
.svc__item:nth-child(odd) { padding-right: 40px; border-right: 1px solid var(--line); }
.svc__item:nth-child(even) { padding-left: 40px; }
.svc__n { font-size: .8rem; font-weight: 700; letter-spacing: .06em; color: var(--accent-ink); }
.svc__item h3 { margin: 10px 0 6px; }
.svc__item p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
@media (max-width: 720px) {
  .svc { grid-template-columns: 1fr; }
  .svc__item, .svc__item:nth-child(odd), .svc__item:nth-child(even) { padding: 24px 0; border-right: 0; }
}

/* aanpak */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 36px; }
.principle { border-top: 2px solid var(--ink); padding-top: 18px; }
.principle h3 { margin-bottom: .3em; }
.principle p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
@media (max-width: 780px) { .principles { grid-template-columns: 1fr; gap: 20px; } }

/* case */
.case__grid { display: grid; grid-template-columns: 1fr; gap: 36px; }
.ticks { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: var(--ink-soft); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft); }
.ticks li::after { content: ""; position: absolute; left: 6px; top: .58em; width: 6px; height: 3px; border-left: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink); transform: rotate(-45deg); }
.kpis { display: flex; flex-wrap: wrap; gap: 30px; margin-top: 6px; }
.kpi b { display: block; font-family: var(--serif); font-weight: 500; font-size: 2rem; color: var(--ink); line-height: 1; }
.kpi span { font-size: .9rem; color: var(--muted); }

/* ---------- dark CTA ---------- */
.cta {
  background: var(--dk-bg); color: var(--dk-ink);
  padding: clamp(64px, 10vw, 120px) 0;
  text-align: center;
}
.cta h2 { color: var(--dk-ink); }
.cta p { color: var(--dk-muted); max-width: 46ch; margin-inline: auto; }
.cta .btn--ghost { color: var(--dk-ink); border-color: var(--dk-line); }
.cta .btn--ghost:hover { background: var(--dk-surface); }
.cta__meta { margin-top: 1.4rem; font-size: .9rem; color: var(--dk-muted); }
.cta__meta a { color: var(--dk-ink); text-decoration: none; }
.cta__meta a:hover { text-decoration: underline; }
.cta__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 1.8rem; }
.cta .eyebrow { justify-content: center; }
.cta .eyebrow::before { display: none; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); }
.site-footer__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 20px; padding-block: 26px; font-size: .88rem; color: var(--muted); }
.site-footer__contact { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* anchor offset under sticky header */
section[id], main [id] { scroll-margin-top: 84px; }
