/* ============================================================
   wwskeukens.nl — site-wide styles
   Editorial-utilitarian: NRC katern + MUJI catalogus + bouwbeurs
   ============================================================ */

:root {
  /* Brand tokens (huisstijl) */
  --stone: #cbc9c6;
  --ink: #1a1a1a;
  --ink-soft: #2a2a2a;
  --paper: #ffffff;
  --chartreuse: #ebf213;
  --walnut: #5c3a21;
  --sand: #e8dcc4;
  --err: #b91c1c;
  --ok: #166534;
  --line: rgba(0, 0, 0, 0.10);
  --line-strong: rgba(0, 0, 0, 0.22);
  --ink-line: rgba(255, 255, 255, 0.12);
  --ink-line-strong: rgba(255, 255, 255, 0.32);

  /* Type */
  --font-display: 'Host Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  /* Layout */
  --pad-x: clamp(20px, 4vw, 48px);
  --max: 1320px;
  --section-pad: clamp(64px, 9vw, 128px);
  --section-pad-tight: clamp(48px, 6vw, 88px);

  /* Header */
  --header-h: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
*::selection { background: var(--chartreuse); color: var(--ink); }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--walnut); outline-offset: 3px; }

/* ============================================================
   Typography
   ============================================================ */
.mono, .eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
  font-weight: 500;
}
.eyebrow { color: var(--walnut); }
.eyebrow--paper { color: rgba(255,255,255,0.7); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
}
h1 { font-size: clamp(2.75rem, 6vw, 5.5rem); line-height: 0.95; letter-spacing: -0.03em; font-weight: 700; }
h2 { font-size: clamp(1.875rem, 3.5vw, 2.75rem); line-height: 1.05; letter-spacing: -0.02em; font-weight: 600; }
h3 { font-size: 1.375rem; line-height: 1.2; font-weight: 600; }
h4 { font-size: 1rem; font-family: var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; color: var(--walnut); }

.lede {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

/* ============================================================
   Containers + sections
   ============================================================ */
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad-x); }
.full { padding: 0 var(--pad-x); }

section { padding: var(--section-pad) 0; }
section.tight { padding: var(--section-pad-tight) 0; }

.section-head {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: clamp(40px, 5vw, 64px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.section-head .num { padding-top: 6px; color: var(--walnut); }
.section-head h2 { max-width: 22ch; }
@media (max-width: 720px) {
  .section-head { grid-template-columns: 1fr; gap: 14px; }
}

/* ============================================================
   Header (sticky, 64px)
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .row {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 500; font-size: 20px;
  letter-spacing: -0.02em; color: var(--ink);
  line-height: 1;
}
.brand .mark { width: 14px; height: 14px; background: var(--chartreuse); display: inline-block; }
.brand .tld { color: var(--walnut); font-weight: 500; }
.site-nav { display: flex; gap: 28px; }
.site-nav a {
  position: relative;
  font-size: 14px; font-weight: 500;
  padding: 4px 0;
}
.site-nav a::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--walnut);
  transform: scaleX(0); transform-origin: left;
  transition: transform 200ms ease;
}
.site-nav a:hover::after, .site-nav a.is-active::after { transform: scaleX(1); }
@media (max-width: 1024px) {
  .site-nav { display: none; }
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }
@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }
}
.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0;
  background: var(--sand);
  z-index: 49;
  display: none;
  flex-direction: column;
  padding: 32px var(--pad-x) 64px;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  display: block;
  font-family: var(--font-display); font-size: 32px; font-weight: 600;
  letter-spacing: -0.02em;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-nav .btn { margin-top: 24px; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 20px;
  font-size: 14px; font-weight: 600;
  border: 1.5px solid transparent;
  border-radius: 0;
  transition: transform 200ms ease, background 200ms ease, color 200ms ease, border-color 200ms ease;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
}
.btn .arrow { display: inline-block; transition: transform 200ms ease; }
.btn:hover .arrow { transform: translateX(4px); }
.btn:active { opacity: 0.9; }
.btn--primary { background: var(--chartreuse); color: var(--ink); border-color: var(--chartreuse); }
.btn--primary:hover { background: var(--chartreuse); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--invert { background: var(--ink); color: var(--chartreuse); border-color: var(--ink); }
.btn--invert:hover { background: #000; }
.btn--walnut { background: transparent; color: var(--walnut); border-color: var(--walnut); }
.btn--walnut:hover { background: var(--walnut); color: var(--paper); }
.btn--lg { padding: 16px 26px; font-size: 15px; }
.btn--sm { padding: 8px 14px; font-size: 13px; }
.btn--full { width: 100%; justify-content: center; }

/* Pill link */
.link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--walnut); font-weight: 500;
  font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em;
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
  padding-bottom: 2px;
}
.link:hover { border-bottom-color: var(--walnut); }

/* ============================================================
   WWS-points badge (the differentiator)
   ============================================================ */
.wws-badge {
  display: inline-flex; align-items: baseline; gap: 8px;
  background: var(--chartreuse); color: var(--ink);
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 0;
}
.wws-badge .num { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.wws-badge .lbl { font-size: 11px; letter-spacing: 0.08em; }
.wws-badge--lg { padding: 10px 14px; }
.wws-badge--lg .num { font-size: 28px; }
.wws-badge--lg .lbl { font-size: 12px; }
.wws-badge--xl { padding: 14px 18px; }
.wws-badge--xl .num { font-size: 44px; line-height: 1; }
.wws-badge--xl .lbl { font-size: 13px; }
.wws-badge--paper { background: var(--paper); color: var(--ink); }
.wws-badge--walnut { background: var(--walnut); color: var(--paper); }
.wws-badge--outline { background: transparent; color: var(--ink); border: 1px solid var(--ink); }

/* ============================================================
   Tier badge (used on cases)
   ============================================================ */
.tier-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.12em;
}
.tier-badge .dot { width: 6px; height: 6px; background: currentColor; }
.tier-badge--budget { background: var(--walnut); color: var(--paper); }
.tier-badge--standaard { background: var(--stone); color: var(--ink); }
.tier-badge--premium { background: var(--chartreuse); color: var(--ink); }

/* ============================================================
   Cards
   ============================================================ */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 24px;
  display: flex; flex-direction: column; gap: 16px;
}
.card--feature { border-top: 4px solid var(--chartreuse); }
.card:hover { border-color: var(--walnut); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--ink); color: var(--paper);
  padding: 64px 0 32px;
  margin-top: 0;
}
.site-footer .foot-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 48px; border-bottom: 1px solid var(--ink-line);
}
@media (max-width: 900px) {
  .site-footer .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 520px) {
  .site-footer .foot-grid { grid-template-columns: 1fr; }
}
.site-footer h4 { color: rgba(255,255,255,0.55); margin-bottom: 18px; }
.foot-brand .word { font-family: var(--font-display); font-weight: 600; font-size: 24px; letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.foot-brand .word .tld { color: var(--chartreuse); font-weight: 500; }
.foot-brand .word .mark { width: 14px; height: 14px; background: var(--chartreuse); }
.foot-brand p { color: rgba(255,255,255,0.7); max-width: 36ch; font-size: 14px; line-height: 1.6; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer li a, .site-footer li { font-size: 14px; color: rgba(255,255,255,0.78); }
.site-footer li a:hover { color: var(--chartreuse); }
.foot-bottom {
  margin-top: 32px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.foot-mark {
  display: inline-block; width: 12px; height: 12px; background: var(--chartreuse);
  margin-left: 12px; vertical-align: middle;
}

/* ============================================================
   Motion: reveal-on-scroll
   ============================================================ */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms ease, transform 700ms cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal--delay-1 { transition-delay: 80ms; }
.reveal--delay-2 { transition-delay: 160ms; }
.reveal--delay-3 { transition-delay: 240ms; }
.reveal--delay-4 { transition-delay: 320ms; }

.line-draw { transform-origin: left center; transform: scaleX(0); transition: transform 900ms cubic-bezier(.2,.7,.2,1); }
.line-draw.is-in { transform: scaleX(1); }

.count { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .line-draw { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Marquee (mono ticker)
   ============================================================ */
.marquee {
  overflow: hidden;
  background: var(--ink); color: var(--paper);
  border-top: 1px solid var(--ink-line);
  border-bottom: 1px solid var(--ink-line);
}
.marquee__track {
  display: flex; gap: 56px;
  white-space: nowrap;
  padding: 14px 0;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  animation: marquee 40s linear infinite;
  will-change: transform;
}
.marquee__track > span { display: inline-flex; align-items: center; gap: 14px; flex-shrink: 0; }
.marquee__track .sep { width: 6px; height: 6px; background: var(--chartreuse); display: inline-block; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ============================================================
   Image placeholder (dashed walnut)
   ============================================================ */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(92,58,33,0.05) 0 8px,
      transparent 8px 16px
    ),
    var(--sand);
  border: 1.5px dashed var(--walnut);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--walnut);
  text-align: center;
  padding: 16px;
  overflow: hidden;
}
.ph__label { max-width: 80%; }
.ph--ratio-4-5 { aspect-ratio: 4 / 5; }
.ph--ratio-1 { aspect-ratio: 1; }
.ph--ratio-4-3 { aspect-ratio: 4 / 3; }
.ph--ratio-3-2 { aspect-ratio: 3 / 2; }
.ph--ratio-16-9 { aspect-ratio: 16 / 9; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }

/* ============================================================
   Editorial figure (used in blog posts)
   ============================================================ */
figure.fig {
  margin: 32px 0;
}
figure.fig .ph { aspect-ratio: 16/9; }
figure.fig figcaption {
  margin-top: 10px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--walnut);
}

/* ============================================================
   Article (blog post body)
   ============================================================ */
.article {
  max-width: 760px;
  margin: 0 auto;
}
.article h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); line-height: 1; margin-bottom: 24px; }
.article h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin: 56px 0 16px; padding-top: 32px; border-top: 1px solid var(--line); }
.article h3 { font-size: 1.25rem; margin: 32px 0 12px; font-family: var(--font-display); font-weight: 600; }
.article p, .article ul, .article ol { font-size: 17px; line-height: 1.7; color: var(--ink-soft); margin-bottom: 18px; text-wrap: pretty; }
.article ul, .article ol { padding-left: 1.4em; }
.article ul li, .article ol li { margin-bottom: 8px; padding-left: 4px; }
.article ul { list-style: none; padding-left: 0; }
.article ul li { position: relative; padding-left: 22px; }
.article ul li::before { content: ''; position: absolute; left: 0; top: 0.7em; width: 10px; height: 1.5px; background: var(--walnut); }
.article ol { list-style-position: outside; padding-left: 1.4em; }
.article ol li::marker { font-family: var(--font-mono); font-weight: 500; color: var(--walnut); }
.article a {
  color: var(--ink); border-bottom: 1px solid var(--walnut);
  transition: background 200ms ease;
}
.article a:hover { background: var(--chartreuse); }
.article strong { font-weight: 600; color: var(--ink); }
.article em { font-style: italic; }
.article hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }

.article blockquote {
  margin: 32px 0;
  padding: 24px 28px;
  background: var(--sand);
  border-left: 3px solid var(--walnut);
  font-family: var(--font-display);
  font-size: 18px; line-height: 1.55;
  color: var(--ink);
}
.article blockquote p { font-size: 18px; color: var(--ink); margin: 0; }
.article blockquote p + p { margin-top: 12px; }

.article table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 13px;
  margin: 32px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.article table th, .article table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.article table th {
  background: var(--paper);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px;
  color: var(--walnut);
  border-bottom: 1px solid var(--ink);
}
.article table tr:hover td { background: rgba(235, 242, 19, 0.06); }
.article table td strong { font-family: var(--font-display); font-weight: 600; font-size: 14px; }

.article code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--sand);
  padding: 2px 6px;
  border-radius: 0;
}

/* ============================================================
   Pill / tag (used in blog, products)
   ============================================================ */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: var(--paper);
}
.pill--cat { background: var(--sand); border-color: var(--sand); }
.pill--num { background: var(--chartreuse); border-color: var(--chartreuse); }
.pill--walnut { background: var(--walnut); color: var(--paper); border-color: var(--walnut); }

/* ============================================================
   Utilities
   ============================================================ */
.divider { height: 1px; background: var(--line); margin: 0; }
.divider--ink { background: var(--ink-line); }
.chartreuse-line { height: 2px; background: var(--chartreuse); width: 100%; }

.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
@media (max-width: 720px) { .grid-12 { grid-template-columns: 1fr; gap: 16px; } }

.flex-row { display: flex; gap: 16px; flex-wrap: wrap; }

.text-mono { font-family: var(--font-mono); }
.text-walnut { color: var(--walnut); }
.text-muted { color: rgba(0,0,0,0.6); }
.bg-sand { background: var(--sand); }
.bg-ink { background: var(--ink); color: var(--paper); }
.bg-paper { background: var(--paper); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* 12-col grid debug overlay (cmd+G) */
.grid-overlay {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9999;
  display: none;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 100vh;
}
.grid-overlay.is-on { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.grid-overlay > div { background: rgba(235, 242, 19, 0.15); border-left: 1px dashed rgba(235, 242, 19, 0.6); border-right: 1px dashed rgba(235, 242, 19, 0.6); height: 100%; }
