/* ════════════════════════════════════════════════════════════════
   ZP / SERVICES — Een Dutch-design hommage.
   Editorial typography, paper-warm palette, rust accent.
   ════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght,SOFT@0,9..144,300..900,0..100;1,9..144,300..900,0..100&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500&display=swap');

/* ─── reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; color: inherit; }

/* ─── tokens ────────────────────────────────────────────── */
:root {
  /* palette */
  --paper:       #ECE5D5;
  --paper-2:     #E2D9C2;
  --paper-3:     #F4EEDF;
  --paper-dark:  #1A1814;
  --ink:         #14130F;
  --ink-2:       #2D2B25;
  --ink-soft:    #58544A;
  --ink-muted:   #8E8A7C;
  --rust:        #C04A28;
  --rust-deep:   #8E2A12;
  --rust-soft:   rgba(192, 74, 40, 0.12);
  --rule:        rgba(20, 19, 15, 0.16);
  --rule-soft:   rgba(20, 19, 15, 0.06);
  --hilite:      #E8B341;

  /* typography */
  --f-display: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --f-body:    'Geist', 'Helvetica Neue', system-ui, sans-serif;
  --f-mono:    'JetBrains Mono', 'IBM Plex Mono', Menlo, monospace;

  /* spacing */
  --pad-x:    clamp(20px, 5vw, 72px);
  --pad-y:    clamp(72px, 11vw, 160px);
  --nav-h:    68px;
}

/* ─── base ──────────────────────────────────────────────── */
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

/* paper grain — subtle multiply texture */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.08;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: multiply;
}

/* paper edge — gentle vignette */
body::after {
  content: '';
  position: fixed; inset: 0;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(20,19,15,0.10) 100%);
  pointer-events: none;
  z-index: 1;
}

::selection { background: var(--ink); color: var(--paper-3); }

/* ─── typography helpers ────────────────────────────────── */
.serif    { font-family: var(--f-display); }
.mono     { font-family: var(--f-mono); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.eyebrow::before {
  content: '';
  width: 22px; height: 1px;
  background: var(--ink-soft);
}
.eyebrow.no-dash::before { display: none; }

.h-display {
  font-family: var(--f-display);
  font-weight: 360;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
  letter-spacing: -0.028em;
  line-height: 0.93;
  font-size: clamp(3rem, 9vw, 8rem);
  color: var(--ink);
}
.h-display i, .h-display em {
  font-style: italic;
  font-variation-settings: 'opsz' 144, 'SOFT' 90;
  font-weight: 360;
  color: var(--rust);
}

.h-1 {
  font-family: var(--f-display);
  font-weight: 380;
  font-variation-settings: 'opsz' 120, 'SOFT' 35;
  letter-spacing: -0.022em;
  line-height: 0.98;
  font-size: clamp(2.4rem, 5.5vw, 4.6rem);
}
.h-1 i, .h-1 em {
  font-style: italic;
  font-variation-settings: 'opsz' 120, 'SOFT' 80;
  color: var(--rust);
}

.h-2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-variation-settings: 'opsz' 72, 'SOFT' 28;
  letter-spacing: -0.015em;
  line-height: 1.04;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}
.h-2 i, .h-2 em {
  font-style: italic;
  font-variation-settings: 'opsz' 72, 'SOFT' 60;
  color: var(--rust);
}

.h-3 {
  font-family: var(--f-display);
  font-weight: 450;
  font-variation-settings: 'opsz' 36, 'SOFT' 20;
  letter-spacing: -0.01em;
  line-height: 1.15;
  font-size: clamp(1.3rem, 1.9vw, 1.65rem);
}

.lede {
  font-family: var(--f-display);
  font-weight: 350;
  font-variation-settings: 'opsz' 36, 'SOFT' 60;
  font-style: italic;
  font-size: clamp(1.15rem, 1.9vw, 1.55rem);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 38ch;
}

.body-l  { font-size: 1.05rem; line-height: 1.7; color: var(--ink-2); }
.body-m  { font-size: 0.95rem; line-height: 1.7; color: var(--ink-soft); }
.body-s  { font-size: 0.85rem; line-height: 1.65; color: var(--ink-soft); }

.tag {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.num-roman {
  font-family: var(--f-display);
  font-style: italic;
  font-variation-settings: 'opsz' 36, 'SOFT' 70;
  color: var(--rust);
}

/* ─── layout primitives ─────────────────────────────────── */
main { position: relative; z-index: 2; }
.shell { padding-inline: var(--pad-x); }
.section { padding-block: var(--pad-y); position: relative; z-index: 2; }
.section.compact { padding-block: clamp(48px, 7vw, 100px); }

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(16px, 2vw, 28px);
}

.rule       { height: 1px; background: var(--rule); width: 100%; }
.rule-ink   { height: 1px; background: var(--ink); }
.rule-thick { height: 2px; background: var(--ink); }
.rule-rust  { height: 1px; background: var(--rust); }

.divider {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft);
}
.divider::after { content: ''; flex: 1; height: 1px; background: var(--rule); }
.divider::before { content: ''; width: 28px; height: 1px; background: var(--ink); }

/* ─── nav ───────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(236, 229, 213, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  height: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-inline: var(--pad-x);
  gap: 24px;
}

.brand {
  display: inline-flex; align-items: baseline; gap: 8px;
  font-family: var(--f-display);
  font-weight: 480;
  font-variation-settings: 'opsz' 36, 'SOFT' 30;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.brand .slash { color: var(--rust); font-style: italic; font-weight: 360; }
.brand .sub   { font-family: var(--f-mono); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); }

.nav-links {
  display: flex; align-items: center; gap: 4px;
}
.nav-links a {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 10px 14px;
  position: relative;
  transition: color 0.2s;
}
.nav-links a span.idx {
  font-family: var(--f-display);
  font-style: italic;
  color: var(--rust);
  margin-right: 6px;
  font-size: 0.85rem;
  font-variation-settings: 'opsz' 36, 'SOFT' 80;
  letter-spacing: 0;
  text-transform: none;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: 4px; left: 14px; right: 14px;
  height: 1px; background: var(--ink);
}

.nav-right { display: flex; align-items: center; gap: 14px; justify-content: flex-end; }

.lang {
  display: inline-flex; gap: 0;
  font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.1em;
}
.lang button {
  padding: 6px 10px;
  color: var(--ink-muted);
  transition: color 0.15s;
}
.lang button.on { color: var(--rust); }
.lang button + button { border-left: 1px solid var(--rule); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--ink); color: var(--paper-3);
  padding: 11px 18px;
  border-radius: 999px;
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: var(--rust); transform: translateY(-1px); }
.nav-cta .arr { transition: transform 0.2s; }
.nav-cta:hover .arr { transform: translateX(3px); }

.ham {
  display: none;
  width: 38px; height: 38px;
  align-items: center; justify-content: center;
  border: 1px solid var(--rule);
  border-radius: 999px;
}
.ham span {
  width: 14px; height: 1px; background: var(--ink); position: relative;
}
.ham span::before, .ham span::after {
  content: ''; position: absolute; left: 0; width: 14px; height: 1px; background: var(--ink);
}
.ham span::before { top: -5px; }
.ham span::after  { top: 5px; }

/* mobile menu */
.mob {
  position: fixed; inset: 0; z-index: 100;
  background: var(--paper);
  display: none; flex-direction: column;
  padding: 24px var(--pad-x);
}
.mob.open { display: flex; }
.mob-head { display: flex; justify-content: space-between; align-items: center; padding-block: 8px; }
.mob-close {
  width: 38px; height: 38px;
  border: 1px solid var(--rule); border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--f-mono); font-size: 0.85rem;
}
.mob-nav {
  margin-top: 36px;
  display: flex; flex-direction: column;
}
.mob-nav a {
  font-family: var(--f-display);
  font-weight: 380;
  font-variation-settings: 'opsz' 72, 'SOFT' 50;
  letter-spacing: -0.02em;
  font-size: clamp(2rem, 9vw, 3.2rem);
  padding-block: 18px;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1.4em 1fr auto;
  align-items: baseline;
  gap: 14px;
}
.mob-nav a .idx {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--ink-soft);
  letter-spacing: 0.1em;
  align-self: center;
}
.mob-nav a .arr {
  font-family: var(--f-display);
  font-style: italic;
  color: var(--rust);
  font-size: 0.6em;
  font-variation-settings: 'opsz' 72, 'SOFT' 90;
  align-self: center;
}
.mob-foot {
  margin-top: auto;
  padding-block: 24px;
  font-family: var(--f-mono); font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted);
  display: flex; justify-content: space-between;
}

/* ─── buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 14px 22px;
  border-radius: 999px;
  transition: background 0.25s, color 0.25s, transform 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.btn-fill {
  background: var(--ink);
  color: var(--paper-3);
}
.btn-fill:hover { background: var(--rust); transform: translateY(-2px); }
.btn-fill .arr { transition: transform 0.25s; }
.btn-fill:hover .arr { transform: translate(3px, -3px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper-3); transform: translateY(-2px); }

.btn-rust {
  background: var(--rust);
  color: var(--paper-3);
}
.btn-rust:hover { background: var(--rust-deep); transform: translateY(-2px); }

.link {
  display: inline-flex; align-items: baseline; gap: 8px;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s, gap 0.2s;
}
.link:hover { color: var(--rust); border-color: var(--rust); gap: 12px; }
.link .arr { font-family: var(--f-display); font-style: italic; font-size: 0.95rem; line-height: 1; transform: translateY(1px); }

/* ─── reveal animation ──────────────────────────────────── */
.rv { opacity: 0; transform: translateY(20px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.22,.61,.36,1); }
.rv.in { opacity: 1; transform: none; }
.rv.d-1 { transition-delay: 0.08s; }
.rv.d-2 { transition-delay: 0.16s; }
.rv.d-3 { transition-delay: 0.24s; }
.rv.d-4 { transition-delay: 0.32s; }
.rv.d-5 { transition-delay: 0.40s; }
.rv.d-6 { transition-delay: 0.48s; }

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
}

/* ─── forms ─────────────────────────────────────────────── */
.form { display: grid; gap: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.field { display: grid; gap: 8px; }
.field label {
  font-family: var(--f-mono); font-size: 0.65rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft);
  display: flex; justify-content: space-between; align-items: baseline;
}
.field label .req { color: var(--rust); font-family: var(--f-display); font-style: italic; }
.field input, .field textarea, .field select {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule);
  padding: 10px 0;
  font-family: var(--f-body);
  font-size: 1rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
  border-radius: 0;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-muted); }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--ink);
}
.field textarea { resize: vertical; min-height: 90px; line-height: 1.55; }
.field select { cursor: pointer; padding-right: 24px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%2358544A' stroke-width='1.5'><path d='M1 1l4 4 4-4'/></svg>"); background-repeat: no-repeat; background-position: right 4px center; }

.form-success {
  display: none;
  padding: 28px;
  border: 1px solid var(--rust);
  background: var(--rust-soft);
}
.form-success .h-3 { color: var(--ink); margin-bottom: 8px; }
.form-success.show { display: block; }

/* ─── footer ────────────────────────────────────────────── */
.foot {
  background: var(--paper-dark);
  color: var(--paper-3);
  position: relative; z-index: 2;
}
.foot::before {
  content: ''; display: block; height: 1px; background: rgba(255,255,255,0.08);
}
.foot-top {
  padding: clamp(56px, 8vw, 100px) var(--pad-x) clamp(40px, 6vw, 80px);
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
}
.foot-headline {
  font-family: var(--f-display);
  font-weight: 360;
  font-variation-settings: 'opsz' 144, 'SOFT' 40;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 0.96;
  letter-spacing: -0.022em;
  margin-bottom: 26px;
}
.foot-headline i { font-style: italic; color: var(--hilite); font-variation-settings: 'opsz' 144, 'SOFT' 90; }
.foot-contact { display: grid; gap: 6px; font-family: var(--f-mono); font-size: 0.78rem; }
.foot-contact a { color: var(--paper-3); border-bottom: 1px solid rgba(255,255,255,0.16); padding-bottom: 1px; }
.foot-contact a:hover { color: var(--hilite); border-color: var(--hilite); }

.foot-col h4 {
  font-family: var(--f-mono); font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); margin-bottom: 18px; font-weight: 400;
}
.foot-col ul { list-style: none; display: grid; gap: 9px; }
.foot-col a {
  font-family: var(--f-display); font-weight: 380; font-variation-settings: 'opsz' 36, 'SOFT' 20; font-size: 1.05rem; color: var(--paper-3); transition: color 0.2s;
}
.foot-col a:hover { color: var(--hilite); }
.foot-col p { font-family: var(--f-mono); font-size: 0.78rem; color: rgba(255,255,255,0.65); line-height: 1.7; }

.foot-bot {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 22px var(--pad-x);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.1em; color: rgba(255,255,255,0.5);
}
.foot-bot .marquee {
  font-family: var(--f-display); font-style: italic;
  font-variation-settings: 'opsz' 144, 'SOFT' 80;
  font-size: 0.95rem;
  color: var(--hilite);
}

/* ─── floating availability badge ──────────────────────── */
.avail {
  position: fixed;
  bottom: 22px; right: 22px;
  z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--paper-3);
  border: 1px solid var(--rule);
  padding: 10px 16px;
  border-radius: 999px;
  font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink);
  box-shadow: 0 6px 24px rgba(20,19,15,0.08);
  transition: transform 0.4s cubic-bezier(.22,.61,.36,1), opacity 0.4s;
}
.avail-dot { width: 7px; height: 7px; border-radius: 50%; background: #2F7D32; box-shadow: 0 0 0 0 rgba(47, 125, 50, 0.6); animation: pulse 2.2s infinite; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(47, 125, 50, 0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(47, 125, 50, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 125, 50, 0); }
}

/* ─── responsive ────────────────────────────────────────── */
@media (max-width: 920px) {
  .nav-inner { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .nav-cta   { display: none; }
  .ham { display: inline-flex; }
  .grid { grid-template-columns: repeat(6, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-bot { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; column-gap: 0; }
  .foot-top { grid-template-columns: 1fr; gap: 28px; }
  .avail { bottom: 14px; right: 14px; padding: 8px 14px; font-size: 0.65rem; }
}
