/* Erfpachtcheck — civic ledger register: paper, ink navy, stamp red */

:root {
  --paper: #f5f0e4;
  --paper-raised: #ffffff;
  --ink: #1a2540;
  --ink-soft: #3d4a6b;
  --ink-muted: #6b7590;
  --line: #d8cfb8;
  --stamp: #a6402c;
  --stamp-dark: #7c2e20;
  --gold: #b8862f;
  --good: #2f6b4f;
  --good-bg: #e5efe6;
  --bad: #a6402c;
  --bad-bg: #f6e7e2;

  --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Source Serif 4', Georgia, serif;

  --radius: 6px;
  --shadow: 0 1px 2px rgba(26, 37, 64, 0.06), 0 4px 16px rgba(26, 37, 64, 0.06);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 16px;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--stamp-dark); text-decoration-thickness: 1.5px; }
a:hover { color: var(--stamp); }
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}
h1 { font-size: clamp(2rem, 6vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 3vw, 1.5rem); }
p { margin: 0 0 1em; color: var(--ink-soft); }
ul { padding-left: 1.2em; color: var(--ink-soft); }
strong { color: var(--ink); }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.5em;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn--stamp {
  background: var(--stamp);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn--stamp:hover { background: var(--stamp-dark); color: #fff; transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--sm { padding: 0.55em 1.1em; font-size: 0.9rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245, 240, 228, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.5em;
  text-decoration: none;
  color: var(--ink);
}
.brand__mark { color: var(--stamp); }
.brand__word {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--ink);
}
.brand__word em { color: var(--stamp); font-style: normal; }

.nav-toggle { display: none; }
.nav-burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}
.nav-burger span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  display: block;
}
.site-nav {
  position: fixed;
  inset: 62px 0 0 0;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 8px 20px 24px;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  border-top: 1px solid var(--line);
  overflow-y: auto;
}
.nav-toggle:checked ~ .site-nav {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
}
.site-nav a.btn { margin-top: 14px; border-bottom: none; text-align: center; }

@media (min-width: 768px) {
  .nav-burger { display: none; }
  .site-nav {
    position: static;
    flex-direction: row;
    align-items: center;
    padding: 0;
    background: transparent;
    border-top: none;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    gap: 28px;
    overflow: visible;
  }
  .site-nav a { border-bottom: none; padding: 0; font-size: 0.96rem; }
  .site-nav a.btn { margin-top: 0; padding: 0.6em 1.2em; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 85% -10%, rgba(184, 134, 47, 0.16), transparent 55%),
    linear-gradient(180deg, #1a2540 0%, #22304f 100%);
  color: #f2ede0;
  padding: 56px 0 72px;
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245,240,228,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,240,228,0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at 50% 0%, black, transparent 75%);
}
.hero__inner { position: relative; }
.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d9b25f;
  border: 1px solid rgba(217, 178, 95, 0.4);
  padding: 0.4em 0.9em;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 { color: #fff; max-width: 16ch; }
.hero__lede {
  color: #cdd3e2;
  font-size: 1.15rem;
  max-width: 46ch;
  margin-bottom: 28px;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.hero__ctas .btn--ghost { border-color: rgba(255,255,255,0.4); color: #fff; }
.hero__ctas .btn--ghost:hover { background: rgba(255,255,255,0.1); color: #fff; }

.hero__stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 24px;
}
.hero__stats div strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: #fff;
}
.hero__stats div span { font-size: 0.85rem; color: #a7afc4; }

@media (min-width: 640px) {
  .hero__stats { grid-template-columns: repeat(3, auto); gap: 40px; }
}
@media (min-width: 1024px) {
  .hero { padding: 88px 0 100px; }
}

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section--tight { padding: 40px 0; }
.section--alt { background: var(--paper-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { max-width: 60ch; margin-bottom: 36px; }
.section__head p { font-size: 1.05rem; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stamp-dark);
  font-weight: 700;
  margin-bottom: 10px;
}

/* ---------- Cards / grid ---------- */
.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.4em; }
.card p:last-child { margin-bottom: 0; }
.card__icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--stamp);
  margin-bottom: 16px;
}

/* ---------- Forms ---------- */
.form-panel {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
@media (min-width: 768px) { .form-panel { padding: 36px; } }

label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 6px;
  color: var(--ink);
}
select, input[type="text"], input[type="email"], textarea {
  width: 100%;
  padding: 0.8em 0.9em;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 18px;
}
select:focus, input:focus, textarea:focus {
  outline: none;
  border-color: var(--stamp);
  box-shadow: 0 0 0 3px rgba(166, 64, 44, 0.12);
}
.field-hint { font-size: 0.82rem; color: var(--ink-muted); margin-top: -12px; margin-bottom: 18px; }
textarea { min-height: 120px; resize: vertical; }

/* ---------- Result badge ---------- */
.result-panel { margin-top: 28px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.5em 1em;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.badge--bad { background: var(--bad-bg); color: var(--bad); }
.badge--good { background: var(--good-bg); color: var(--good); }

.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.info-list li:last-child { border-bottom: none; }
.info-list dt {
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  margin-bottom: 4px;
}
.info-list dd { margin: 0; color: var(--ink-soft); }

/* ---------- Table (gemeente overview) ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-raised); }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
th { font-family: var(--font-serif); font-weight: 600; background: var(--paper); color: var(--ink); }
tr:last-child td { border-bottom: none; }

/* ---------- Blog ---------- */
.post-card { display: flex; flex-direction: column; gap: 10px; }
.post-card time { font-size: 0.8rem; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.post-card a.stretched { text-decoration: none; color: inherit; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--stamp); }

.prose { max-width: 68ch; }
.prose p { font-size: 1.05rem; color: var(--ink-soft); }
.prose h2 { margin-top: 1.6em; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink);
  color: #f2ede0;
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #c7cede; max-width: 48ch; margin-left: auto; margin-right: auto; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #c7cede;
  margin-top: 64px;
}
.site-footer__inner {
  padding: 48px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.site-footer__brand p { color: #9aa3bc; max-width: 40ch; }
.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.site-footer__cols h3 {
  font-family: var(--font-body);
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.site-footer__cols a {
  display: block;
  color: #a7afc4;
  text-decoration: none;
  padding: 6px 0;
  font-size: 0.92rem;
}
.site-footer__cols a:hover { color: #fff; }
.site-footer__legal {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  font-size: 0.8rem;
  color: #7c86a3;
}
@media (min-width: 640px) {
  .site-footer__inner { flex-direction: row; justify-content: space-between; }
  .site-footer__cols { grid-template-columns: repeat(3, 1fr); min-width: 420px; }
}

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.divider { height: 1px; background: var(--line); border: none; margin: 32px 0; }
.small { font-size: 0.85rem; color: var(--ink-muted); }
