:root {
  --paper: #f7f3ec;
  --paper-deep: #efe4d5;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-strong: #ffffff;
  --surface-soft: #fbf7f1;
  --line: rgba(112, 76, 47, 0.16);
  --line-strong: rgba(112, 76, 47, 0.28);
  --accent: #8b4d29;
  --accent-strong: #6f3b1d;
  --accent-soft: #ead8c8;
  --accent-faint: rgba(139, 77, 41, 0.09);
  --ink: #2c221b;
  --ink-soft: #66584c;
  --shadow-soft: 0 18px 40px rgba(63, 40, 25, 0.12);
  --shadow-strong: 0 28px 72px rgba(63, 40, 25, 0.16);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background: radial-gradient(
      circle at top left,
      rgba(255, 255, 255, 0.86),
      transparent 28%
    ),
    radial-gradient(
      circle at 88% 10%,
      rgba(234, 216, 200, 0.72),
      transparent 24%
    ),
    linear-gradient(
      180deg,
      #faf7f1 0%,
      var(--paper) 52%,
      var(--paper-deep) 100%
    );
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background: radial-gradient(
      circle at 18% 20%,
      rgba(255, 255, 255, 0.6),
      transparent 18%
    ),
    radial-gradient(
      circle at 82% 18%,
      rgba(139, 77, 41, 0.07),
      transparent 20%
    ),
    radial-gradient(
      circle at 75% 78%,
      rgba(255, 255, 255, 0.34),
      transparent 22%
    );
}

body::after {
  opacity: 0.32;
  background-image: linear-gradient(
      rgba(112, 76, 47, 0.04) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(112, 76, 47, 0.04) 1px, transparent 1px);
  background-size: 34px 34px;
}

a {
  color: var(--accent-strong);
  text-decoration-color: rgba(111, 59, 29, 0.38);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
  color: var(--accent);
}

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

body:not(.is-ready) .site-shell {
  opacity: 0;
  transform: translateY(18px);
}

body.is-ready .site-shell {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 420ms ease,
    transform 420ms ease;
}

.site-shell {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 3rem;
}

.site-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(300px, 0.95fr);
  gap: 1rem;
  align-items: stretch;
}

.site-hero__visual,
.site-hero__panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.site-hero__visual {
  display: block;
}

.site-hero__visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 26rem;
  object-fit: cover;
  object-position: left center;
}

.site-hero__panel {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 1.4rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: linear-gradient(
    180deg,
    rgba(255, 253, 249, 0.98),
    rgba(244, 236, 226, 0.96)
  );
}

.site-hero__wordmark {
  width: min(100%, 34rem);
  filter: drop-shadow(0 10px 22px rgba(63, 40, 25, 0.08));
}

.site-hero__seal {
  width: min(15rem, 58%);
  border-radius: 999px;
  box-shadow: 0 14px 28px rgba(63, 40, 25, 0.14);
}

.nav-shell {
  position: sticky;
  top: 0.8rem;
  z-index: 20;
  margin: 1rem 0 1.2rem;
}

.nav-shell__surface {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: 1rem 1.25rem;
  border: 0;
  border-radius: 24px;
  background: transparent;
  color: var(--accent-strong);
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0.8rem;
  justify-content: center;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
  background: var(--accent-faint);
  color: var(--accent-strong);
  transform: translateY(-1px);
  outline: none;
}

.site-nav__link.is-active {
  color: #fffdf9;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 12px 24px rgba(111, 59, 29, 0.22);
}

.page-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-strong);
  padding: clamp(0.9rem, 2vw, 1.4rem);
}

.legacy-content {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(0.5rem, 1vw, 1rem);
}

.legacy-content > :first-child {
  margin-top: 0;
}

.legacy-content :where(p, li, td, div, strong, em) {
  font-family: var(--font-body);
  color: var(--ink);
}

.legacy-content p,
.legacy-content li,
.legacy-content td,
.legacy-content div {
  line-height: 1.75;
}

.legacy-content p {
  margin: 0 0 1rem;
}

.legacy-content h1,
.legacy-content h2,
.legacy-content h3 {
  margin: 2rem 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  color: var(--ink);
}

.legacy-content h1 {
  margin-top: 0;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--line);
  font-size: clamp(2.1rem, 4vw, 3.2rem);
}

.legacy-content h2 {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

.legacy-content h3 {
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
}

.legacy-content strong {
  color: var(--ink);
}

.legacy-content em {
  color: var(--ink-soft);
}

.legacy-content table {
  width: 100%;
  max-width: 100%;
  margin: 1rem 0;
  border-collapse: separate;
  border-spacing: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.legacy-content td,
.legacy-content th {
  padding: 0.55rem 0.7rem;
  vertical-align: top;
  border-top: 0;
  background: transparent;
}

.legacy-content > table.legacy-table--layout {
  margin: 0;
}

.legacy-content > table.legacy-table--layout > tbody > tr > :is(td, th) {
  padding: 0;
}

.legacy-content table.legacy-table--layout {
  background: transparent;
  box-shadow: none;
}

.legacy-content table.legacy-table--layout td,
.legacy-content table.legacy-table--layout th {
  border: 0;
}

.legacy-content table.legacy-table--data,
.table-scroll > table {
  border: 1px solid rgba(112, 76, 47, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 24px rgba(63, 40, 25, 0.05);
}

.legacy-content table.legacy-table--data tr:first-child > :is(td, th),
.table-scroll > table tr:first-child > :is(td, th) {
  border-top: 0;
}

.legacy-content table.legacy-table--data td,
.legacy-content table.legacy-table--data th,
.table-scroll > table td,
.table-scroll > table th {
  padding: 0.8rem 0.95rem;
  border-top: 1px solid rgba(112, 76, 47, 0.12);
}

.legacy-content table p:last-child,
.legacy-content table div:last-child {
  margin-bottom: 0;
}

.legacy-content img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 16px 32px rgba(63, 40, 25, 0.14);
}

.legacy-content table img {
  max-width: min(100%, 24rem);
  margin-inline: auto;
}

.legacy-content img[src$="topje.gif"],
.legacy-content img[src$="loep.gif"],
.legacy-content img[src$="brief.jpg"],
.legacy-content img[src$="telefoon.jpg"],
.legacy-content img[src$="mobiel.jpg"],
.legacy-content img[src$="e-mail.jpg"] {
  width: auto;
  max-width: none;
  border-radius: 0;
  box-shadow: none;
}

.legacy-content img[src$="topje.gif"] {
  display: inline-block;
  width: 2.25rem;
}

.legacy-content img[src$="loep.gif"] {
  display: inline-block;
  width: 2.35rem;
  margin: 0 0.45rem 0 0;
  vertical-align: text-bottom;
}

.legacy-content img[src$="brief.jpg"] {
  display: inline-block;
  width: 2rem;
}

.legacy-content img[src$="telefoon.jpg"],
.legacy-content img[src$="mobiel.jpg"] {
  display: inline-block;
  width: 1.5rem;
}

.legacy-content img[src$="e-mail.jpg"] {
  display: inline-block;
  width: 1.75rem;
}

.legacy-content iframe {
  width: 100%;
  max-width: 100%;
  min-height: 20rem;
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(63, 40, 25, 0.16);
}

.legacy-content a[name] {
  scroll-margin-top: 8rem;
}

.legacy-content .align-center {
  text-align: left;
}

.legacy-content .align-center > :where(table, .table-scroll, img, iframe) {
  margin-inline: auto;
}

.legacy-content :is(p, h1, h2, h3).align-center {
  text-align: center;
}

.align-right {
  text-align: right;
}

.content-list {
  list-style: none;
  margin: 1rem 0 2rem;
  padding: 0;
  display: grid;
  gap: 0;
}

.content-list li {
  position: relative;
  padding: 0.85rem 0 0.85rem 1.55rem;
  border-top: 1px solid rgba(112, 76, 47, 0.12);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.content-list li:first-child {
  border-top: 0;
}

.content-list li::before {
  content: "";
  position: absolute;
  top: 1.5rem;
  left: 0.35rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--accent);
  transform: translateY(-50%);
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  margin: 1.25rem 0 1.6rem;
  padding-bottom: 0.3rem;
}

.table-scroll > table {
  min-width: 40rem;
}

.table-scroll::-webkit-scrollbar {
  height: 10px;
}

.table-scroll::-webkit-scrollbar-track {
  background: rgba(112, 76, 47, 0.08);
  border-radius: 999px;
}

.table-scroll::-webkit-scrollbar-thumb {
  background: rgba(139, 77, 41, 0.28);
  border-radius: 999px;
}

[data-page="activiteiten"] .legacy-content h2 {
  margin-top: 2.4rem;
}

[data-page="activiteiten"] .legacy-content .content-list {
  margin-top: 0.8rem;
}

[data-page="index"] .legacy-content table img {
  max-width: min(100%, 26rem);
}

[data-page="doelstelling"] .legacy-content table td:first-child a img {
  width: min(100%, 10.5rem);
  max-width: none;
}

.redirect-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 2rem;
}

.redirect-card {
  width: min(38rem, 100%);
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface-strong);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.redirect-card h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.redirect-card p {
  margin: 0;
  line-height: 1.7;
}

@media (max-width: 980px) {
  .site-hero {
    grid-template-columns: 1fr;
  }

  .site-hero__visual img {
    min-height: 19rem;
  }
}

@media (max-width: 860px) {
  .site-shell {
    width: min(100%, calc(100% - 1rem));
    padding-top: 0.5rem;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    max-height: 0;
    overflow: hidden;
    padding: 0 0.8rem;
    flex-direction: column;
    align-items: stretch;
    transition:
      max-height 220ms ease,
      padding 220ms ease;
  }

  .nav-shell.is-open .site-nav {
    max-height: 80vh;
    padding: 0 0.8rem 0.8rem;
  }

  .site-nav__link {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
    border-radius: 18px;
  }

  .page-frame {
    border-radius: 24px;
    padding: 0.8rem;
  }

  .legacy-content td,
  .legacy-content th {
    padding: 0.8rem 0.85rem;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100%, calc(100% - 0.75rem));
  }

  .site-hero__panel {
    gap: 1rem;
    padding: 1.25rem;
  }

  .site-hero__seal {
    width: min(11rem, 54%);
  }

  .legacy-content {
    padding: 0.2rem;
  }

  .legacy-content iframe {
    min-height: 16rem;
  }

  .table-scroll > table {
    min-width: 32rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body.is-ready .site-shell,
  .site-nav__link,
  .site-nav,
  .menu-toggle {
    transition: none !important;
  }
}
