/* ==========================================================================
   Goed en Geregeld — één compact stylesheet, geen frameworks.
   Kleuren uit het logo: crème #FAF8F5, donkergroen #1F3D2B.
   ========================================================================== */

:root {
  --bg:        #FAF8F5;
  --ink:       #1F3D2B;
  --ink-soft:  #2E5240;
  --text:      #33453B;
  --muted:     #6B7C71;
  --line:      #E7E1D6;
  --card:      #FFFFFF;
  --accent:    #1F3D2B;
  --accent-2:  #C9A961;
  --danger:    #A03A2E;
  --radius:    16px;
  --shadow:    0 1px 2px rgba(31, 61, 43, .05), 0 12px 32px -16px rgba(31, 61, 43, .18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

main { flex: 1; width: 100%; }

.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink-soft); }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px;
  border-radius: 8px; transition: top .15s;
}
.skip:focus { top: 12px; }

/* ---------- Koppen en tekst ---------- */
h1, h2, h3 { color: var(--ink); line-height: 1.12; letter-spacing: -.015em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 3.4vw, 1.9rem); font-weight: 650; }
h3 { font-size: 1.15rem; font-weight: 650; }

.eyebrow {
  color: var(--accent-2); font-weight: 700; font-size: .82rem;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px;
}

.lead { font-size: clamp(1.05rem, 2.6vw, 1.25rem); color: var(--muted); max-width: 46ch; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 245, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 76px; padding-block: 10px;
}
.brand img { width: 132px; height: auto; }
.brand { display: inline-flex; align-items: center; }

.nav-toggle {
  display: none; border: 1px solid var(--line); background: var(--card);
  border-radius: 10px; padding: 11px 10px; cursor: pointer;
}
.nav-toggle-bar {
  display: block; width: 20px; height: 2px; background: var(--ink);
  border-radius: 2px; transition: transform .2s, opacity .2s;
}
.nav-toggle-bar + .nav-toggle-bar { margin-top: 5px; }
.nav-toggle.open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav ul { list-style: none; display: flex; align-items: center; gap: 6px; }
.site-nav a:not(.btn) {
  display: block; padding: 10px 14px; border-radius: 10px;
  text-decoration: none; font-weight: 550;
}

@media (max-width: 819px) {
  .nav-toggle { display: inline-flex; flex-direction: column; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 48px -24px rgba(31, 61, 43, .25);
    display: none; padding: 8px 20px 20px; z-index: 60;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav a:not(.btn) { font-size: 1.15rem; padding: 14px; }
}

/* ---------- Knoppen ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 620;
  font-size: 1rem; text-decoration: none; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .12s, box-shadow .12s, background .12s;
  min-height: 48px; /* comfortabel op mobiel */
}
.btn:active { transform: scale(.98); }
.btn-primary {
  background: var(--ink); color: #FAF8F5;
  box-shadow: 0 8px 20px -10px rgba(31, 61, 43, .55);
}
.btn-primary:hover { background: var(--ink-soft); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }
.btn-sm { padding: 7px 14px; min-height: 0; font-size: .9rem; }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 10vw, 110px) 0 clamp(40px, 7vw, 70px); }
.hero h1 { max-width: 14ch; margin-bottom: 22px; }
.hero .lead { margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Secties ---------- */
.section { padding: clamp(30px, 6vw, 56px) 0; border-top: 1px solid var(--line); }
.section-head { margin-bottom: 26px; }
.section-head p { color: var(--muted); margin-top: 6px; }

/* ---------- Projectkaarten ---------- */
.cards { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .cards { grid-template-columns: 1fr 1fr; } }

.card {
  display: flex; flex-direction: column; border-radius: var(--radius);
  overflow: hidden; text-decoration: none; box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s; background: var(--card);
  border: 1px solid var(--line);
}
.card:hover { transform: translateY(-3px); box-shadow:
  0 2px 4px rgba(31,61,43,.06), 0 20px 44px -18px rgba(31,61,43,.28); }
.card-media img { width: 100%; height: auto; }
.card-body { display: flex; flex-direction: column; gap: 9px; padding: 24px 24px 26px; }
.card-label { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.card-title { font-size: 1.35rem; font-weight: 700; color: var(--ink); }
.card-slogan { font-weight: 600; color: var(--ink-soft); }
.card-text { color: var(--muted); font-size: .98rem; }
.card-link { margin-top: 8px; font-weight: 650; font-size: .95rem; }

.card-light { background: #fff; }
.card-light .card-label { color: #2F6B4F; }
.card-light .card-link { color: #1D5BBF; }

.card-dark { background: #0E1B14; border-color: #0E1B14; }
.card-dark .card-title, .card-dark .card-slogan { color: #F2EFE7; }
.card-dark .card-label { color: #7EDAC0; }
.card-dark .card-text { color: #A8B8AD; }
.card-dark .card-link { color: #7EDAC0; }

/* natuurlijke hoogte: screenshots worden nooit weggesneden */

/* ---------- Proza / pagina's ---------- */
.page-narrow { max-width: 720px; margin-inline: auto; padding: clamp(40px, 7vw, 72px) 0 80px; }
.page-wide { padding: clamp(40px, 7vw, 72px) 0 80px; }
.page-head { margin-bottom: 28px; }
.prose p { margin-bottom: 1.2em; }
.prose h2 { margin: 1.6em 0 .5em; }
.prose ul { margin: 0 0 1.2em 1.2em; }
.prose li { margin-bottom: .4em; }

/* ---------- Blog ---------- */
.post-list { display: flex; flex-direction: column; }
.post-item {
  display: block; text-decoration: none; padding: 24px 4px;
  border-bottom: 1px solid var(--line);
}
.post-item h2 { font-size: 1.3rem; margin-bottom: 6px; }
.post-item p { color: var(--muted); }
.post-meta { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.post .prose { font-size: 1.06rem; }
.post-back { margin-top: 40px; }

/* ---------- Formulieren ---------- */
.form { display: flex; flex-direction: column; gap: 20px; }
.field-label {
  display: block; font-weight: 650; color: var(--ink);
  margin-bottom: 7px; font-size: .95rem;
}
input[type="text"], input[type="email"], textarea {
  width: 100%; padding: 14px 16px; font: inherit; color: var(--text);
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px;
  transition: border-color .12s, box-shadow .12s;
}
input:focus-visible, textarea:focus-visible, .btn:focus-visible, a:focus-visible {
  outline: none; border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(31, 61, 43, .14);
}
textarea { resize: vertical; min-height: 140px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 550; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.form-note { font-size: .88rem; color: var(--muted); }
.hp {
  position: absolute !important; left: -9999px !important; width: 1px; height: 1px;
  opacity: 0; pointer-events: none;
}
code {
  background: #EFE9DE; border-radius: 6px; padding: 1px 6px;
  font-size: .9em; color: var(--ink);
}

.notice {
  border: 1px solid var(--line); background: #fff; border-radius: 12px;
  padding: 16px 20px; margin-bottom: 26px;
}
.notice ul { margin-left: 1.1em; }
.notice-ok { border-color: #B7D3C0; background: #F0F7F1; }
.notice-warn { border-color: #E3C9A8; background: #FBF4E8; }

/* ---------- Beheer ---------- */
.admin-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.admin-box {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(20px, 4vw, 32px); margin-bottom: 28px;
}
.admin-box h2 { margin-bottom: 20px; }
.admin-list { list-style: none; }
.admin-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.admin-list li:last-child { border-bottom: 0; }
.admin-list-actions { display: flex; gap: 10px; }
.inline-form { display: inline; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink); color: #E9E4D8; margin-top: 60px;
  padding: clamp(36px, 6vw, 56px) 0 22px; font-size: .95rem;
}
.footer-inner {
  display: grid; gap: 32px; grid-template-columns: 1fr;
  padding-bottom: 30px;
}
@media (min-width: 760px) {
  .footer-inner { grid-template-columns: 1.2fr 1fr .8fr; }
}
.footer-brand img { filter: none; margin-bottom: 10px; }
.footer-brand p { color: var(--accent-2); font-weight: 600; letter-spacing: .04em; }
.footer-addr { font-style: normal; line-height: 1.9; color: #CBD4CC; }
.footer-addr strong { color: #fff; }
.footer-addr a { color: #E9E4D8; }
.footer-nav ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-nav a { color: #CBD4CC; text-decoration: none; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-note { border-top: 1px solid rgba(233, 228, 216, .16); padding-top: 20px; }
.footer-note p { font-size: .82rem; color: #9AA89F; margin: 0; }

/* ---------- Verminderde beweging ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
