:root {
  --ink: #1c2430;
  --muted: #5a6573;
  --paper: #f7f4ef;
  --card: #ffffff;
  --line: #d7d0c5;
  --navy: #1f3a5f;
  --navy-deep: #152a45;
  --brass: #b08a3c;
  --brass-deep: #8f6e2e;
  --brass-soft: #c9a65a;
  --soft-blue: #e8eef5;
  --accent: #2f6f7e;
  --shadow: 0 10px 30px rgba(28, 36, 48, 0.08);
  --font-display: "Fraunces", "Palatino Linotype", Palatino, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(47, 111, 126, 0.08), transparent 40%),
    linear-gradient(180deg, #eef3f7 0%, var(--paper) 28%, #f3efe8 100%);
  font-family: var(--font-body);
  line-height: 1.55;
}

body > main {
  flex: 1 0 auto;
  padding-bottom: 4.5rem;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(247, 244, 239, 0.88);
  border-bottom: 1px solid rgba(215, 208, 197, 0.8);
}

.site-header-inner,
.wrap {
  width: min(1080px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  color: var(--navy-deep);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  padding-left: 0;
  text-decoration: none;
  overflow: visible;
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  display: block;
  height: 2.55rem;
  width: auto;
  max-width: min(42vw, 11rem);
}

.brand-hero-logo {
  display: block;
  width: min(100%, 18rem);
  height: auto;
  margin: 0 0 0.9rem;
}

/* Klaar voor later gebruik als watermerk op pagina’s */
.watermark-logo {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  width: min(28vw, 11rem);
  opacity: 0.18;
  pointer-events: none;
  z-index: 5;
  user-select: none;
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.nav-toggle {
  display: none;
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 0.7rem;
  width: 2.7rem;
  height: 2.7rem;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--navy-deep);
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: var(--accent);
  outline: none;
}

.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.28rem;
  width: 1.15rem;
}

.nav-toggle-bars span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  transform-origin: center;
}

.nav.is-open .nav-toggle-bars span:nth-child(1) {
  transform: translateY(0.34rem) rotate(45deg);
}

.nav.is-open .nav-toggle-bars span:nth-child(2) {
  opacity: 0;
}

.nav.is-open .nav-toggle-bars span:nth-child(3) {
  transform: translateY(-0.34rem) rotate(-45deg);
}

.nav-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.62rem 1.1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--brass);
  background: linear-gradient(180deg, var(--brass-soft) 0%, var(--brass) 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 6px 14px rgba(176, 138, 60, 0.28);
}

.nav-btn:hover,
.nav-btn:focus-visible {
  background: linear-gradient(180deg, var(--brass) 0%, var(--brass-deep) 100%);
  border-color: var(--brass-deep);
  color: #fff;
  outline: none;
}

.nav-btn.is-active {
  background: var(--brass-deep);
  border-color: var(--brass-deep);
  color: #fff;
  box-shadow: none;
}

.hero {
  padding: 3.5rem 0 2rem;
}

.hero-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.page-home {
  min-height: 100dvh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(120, 92, 58, 0.12), transparent 36%),
    linear-gradient(160deg, #efe6da 0%, #f7f2eb 45%, #e7eee8 100%);
}

.page-home .site-header {
  flex-shrink: 0;
}

.page-home .site-header-inner {
  overflow: visible;
}

.page-home .site-footer {
  margin-top: 0;
  padding: 0.75rem 0 1rem;
  flex-shrink: 0;
}

.site-header--home {
  background: rgba(247, 242, 235, 0.82);
}

.home-hero {
  position: relative;
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  align-items: center;
  overflow: visible;
}

.home-hero-copy {
  position: relative;
  z-index: 2;
  max-width: min(32rem, 46%);
  padding: 1.2rem 0;
  padding-left: 0.15em;
  overflow: visible;
}

.brand-hero {
  margin: 0;
  font-size: 0;
  line-height: 0;
  padding-left: 0;
  overflow: visible;
}

.home-portrait {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: min(62vw, 40rem);
  height: min(46vh, 23rem);
  max-width: 100%;
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(42, 36, 28, 0.14);
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.home-portrait-image {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: 38% 42%;
  background-size: cover;
  opacity: 0.82;
  filter: saturate(0.95) contrast(0.98);
}

.home-portrait-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(247, 242, 235, 0.45) 0%, rgba(247, 242, 235, 0.12) 35%, transparent 70%),
    linear-gradient(180deg, rgba(247, 242, 235, 0.2) 0%, transparent 25%, transparent 80%, rgba(231, 238, 232, 0.28) 100%);
}

.home-portrait-shield {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--brass-deep);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow a {
  color: inherit;
  text-decoration: none;
}

.eyebrow a:hover {
  color: var(--brass);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--brass-deep);
}

h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

h2 {
  margin: 0 0 0.8rem;
  font-size: 1.7rem;
}

h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.lead {
  margin: 0;
  max-width: 36rem;
  color: #8a7348;
  font-size: 1.08rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.btn {
  appearance: none;
  border: 1px solid var(--brass);
  border-radius: 0.75rem;
  padding: 0.75rem 1.2rem;
  background: linear-gradient(180deg, var(--brass-soft) 0%, var(--brass) 100%);
  color: white;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 6px 14px rgba(176, 138, 60, 0.22);
}

.btn:hover {
  background: linear-gradient(180deg, var(--brass) 0%, var(--brass-deep) 100%);
  border-color: var(--brass-deep);
}

.btn-secondary {
  background: white;
  color: var(--brass-deep);
  border: 1px solid rgba(176, 138, 60, 0.45);
  box-shadow: none;
}

.btn-secondary:hover {
  background: rgba(201, 166, 90, 0.12);
  border-color: var(--brass);
  color: var(--brass-deep);
}

.hero-image {
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.section {
  padding: 1.5rem 0 2.5rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 260px));
  gap: 1.1rem;
  align-items: start;
}

.card {
  background: var(--card);
  border: 1px solid rgba(176, 138, 60, 0.28);
  border-radius: 1rem;
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.project-grid .card {
  padding: 0.9rem;
}

.card h2 {
  color: var(--brass-deep);
}

.card h2,
.card h3 {
  margin-top: 0;
}

.project-grid .card h2 {
  font-size: 1.25rem;
  margin-bottom: 0.45rem;
}

.project-grid .card .meta {
  font-size: 0.88rem;
  margin: 0 0 0.85rem;
}

.project-grid .card .btn,
.project-grid .card .btn-secondary {
  padding: 0.55rem 0.85rem;
  font-size: 0.92rem;
}

.project-grid .card p:has(.btn) {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
}

.card .hero-image {
  margin-bottom: 0.75rem;
  aspect-ratio: 4 / 3;
  max-height: 10.5rem;
}

.card .hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 15;
  margin-top: 0;
  padding: 0.85rem 0 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  background: rgba(247, 244, 239, 0.94);
  backdrop-filter: blur(10px);
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.footer-logo {
  height: 1.6rem;
  width: auto;
  opacity: 0.9;
}

.footer-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.footer-line {
  margin: 0;
}

.footer-meta {
  font-size: 0.82rem;
  opacity: 0.9;
}

.page-home .footer-inner {
  align-items: center;
}

/* Instructiepagina */
.instructie-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin: 1.5rem 0 1rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge {
  background: var(--soft-blue);
  color: var(--navy);
  border: 1px solid #c9d7e5;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.88rem;
  font-weight: 700;
}

.toc {
  background: white;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.2rem 1.4rem;
  margin-bottom: 2rem;
}

.toc ol {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
}

.toc a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.toc a:hover {
  color: var(--accent);
}

.block {
  background: white;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.4rem;
  margin-bottom: 1.4rem;
  box-shadow: var(--shadow);
}

.block > h2 {
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--soft-blue);
}

.callout {
  background: #f4f8fa;
  border-left: 4px solid var(--accent);
  padding: 0.9rem 1rem;
  margin: 1rem 0;
  border-radius: 0 0.6rem 0.6rem 0;
}

.warn {
  border-left-color: var(--brass);
  background: #fbf6ea;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.98rem;
}

th,
td {
  border: 1px solid var(--line);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--soft-blue);
  color: var(--navy-deep);
}

.stof-swatch {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border-radius: 0.2rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  margin-right: 0.4rem;
  vertical-align: middle;
}

.swatch-bg { background: #f4f1ea; }
.swatch-a { background: #d9a7b8; }
.swatch-b { background: #8fa0ad; }
.swatch-c { background: #e2a45a; }
.swatch-d { background: #c4a35a; }
.swatch-e { background: #f7f7f5; }
.swatch-f { background: #c9b3c8; }
.swatch-g { background: #e0c35a; }
.swatch-h { background: #8b6a4f; }
.swatch-i { background: #c15b5b; }

.step {
  margin: 1.1rem 0;
  padding: 1rem;
  background: #fcfcfb;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.8rem;
  height: 1.8rem;
  margin-right: 0.45rem;
  border-radius: 999px;
  background: var(--navy);
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
}

.measure {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}

.figure {
  margin: 1rem 0 0.2rem;
}

.figure img {
  border-radius: 0.8rem;
  border: 1px solid var(--line);
  background: white;
}

.figure figcaption {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
  align-items: start;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 0;
}

.checklist li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.7rem;
}

.checklist li::before {
  content: "□";
  position: absolute;
  left: 0;
  top: 0.3rem;
  color: var(--accent);
  font-weight: 700;
}

.note-small {
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 820px) {
  .hero-panel,
  .two-col {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
    z-index: 2;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0;
    min-width: min(16rem, calc(100vw - 2rem));
    padding: 0.55rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    box-shadow: var(--shadow);
    z-index: 40;
  }

  .nav.is-open .nav-menu {
    display: flex;
  }

  .nav-btn {
    width: 100%;
    justify-content: flex-start;
    padding: 0.8rem 0.95rem;
  }

  .page-home {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }

  .home-hero {
    min-height: auto;
    display: flex;
    flex-direction: column;
  }

  .home-hero-copy {
    order: 1;
    padding: 1rem 0 0.6rem;
    max-width: 100%;
    text-align: center;
  }

  .brand-hero-logo {
    margin-left: auto;
    margin-right: auto;
  }

  .home-hero-copy .lead {
    margin-inline: auto;
  }

  .home-portrait {
    order: 2;
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    width: min(100%, 22rem);
    height: 12rem;
    margin: 0.4rem 0 1rem;
    justify-self: start;
  }

  .home-portrait-image {
    opacity: 0.85;
    background-position: 38% 42%;
  }

  .home-portrait-fade {
    background:
      linear-gradient(180deg, rgba(247, 242, 235, 0.15) 0%, transparent 30%, transparent 75%, rgba(247, 242, 235, 0.22) 100%);
  }
}

@media print {
  @page {
    margin: 1.2cm;
  }

  body {
    background: white;
    color: black;
  }

  .site-header,
  .site-footer,
  .no-print,
  .instructie-toolbar .btn {
    display: none !important;
  }

  .wrap {
    width: 100%;
  }

  .block,
  .card,
  .toc,
  .step {
    box-shadow: none;
    break-inside: avoid;
  }

  a {
    color: inherit;
    text-decoration: none;
  }

  .figure img {
    max-height: 22cm;
    object-fit: contain;
  }

  h2 {
    break-after: avoid;
  }
}
