:root {
  --bg: #fdf6ef;
  --bg-alt: #f7ead9;
  --surface: #ffffff;
  --ink: #2b211c;
  --muted: #6d5f56;
  --primary: #b3492f;
  --primary-dark: #8f3a24;
  --primary-tint: #f6e0d5;
  --accent: #2f6f6b;
  --accent-tint: #e1efec;
  --gold: #cf9a3e;
  --line: rgba(43, 33, 26, 0.12);
  --shadow: 0 20px 45px rgba(43, 33, 26, 0.1);
  --radius: 18px;
  --footer-bg: #241a15;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; color: var(--muted); }

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

em {
  font-style: italic;
  color: var(--primary);
}

img, svg { max-width: 100%; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 clamp(1.1rem, 4vw, 2rem);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 100;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 28px rgba(179, 73, 47, 0.28);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--ink);
}

.btn-small {
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(253, 246, 239, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
}

.brand:hover { text-decoration: none; }

.brand-mark {
  width: 26px;
  height: 26px;
  fill: var(--primary);
}

.brand-text {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.2rem;
}

.brand-text em { color: var(--accent); }

.main-menu {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.main-menu a {
  color: var(--ink);
  font-weight: 500;
}

.main-menu a:hover { color: var(--primary); text-decoration: none; }

.main-menu a.active {
  color: var(--primary);
  font-weight: 700;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
}

/* Hero */

.hero {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  background:
    radial-gradient(circle at 85% 10%, rgba(207, 154, 62, 0.16), transparent 45%),
    radial-gradient(circle at 5% 90%, rgba(47, 111, 107, 0.14), transparent 45%);
}

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

.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.hero-copy .lead {
  font-size: 1.1rem;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.hero-visual {
  position: relative;
}

.hero-illustration {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.hero-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 0.6rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-size: 0.85rem;
  color: var(--ink);
}

.hero-badge strong {
  font-family: "Fraunces", Georgia, serif;
  color: var(--primary);
  margin-right: 0.3em;
}

/* Sections */

.section { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section-alt { background: var(--bg-alt); }

.section-title { margin-bottom: 0.35em; }
.section-lead { margin-bottom: 1.8rem; max-width: 60ch; }
.section-cta { margin-top: 2rem; }

.page-header {
  padding-block: clamp(2.2rem, 5vw, 3.2rem) 1rem;
}

.page-header .lead { max-width: 60ch; font-size: 1.05rem; }

.text-block { max-width: 68ch; }

.stad-banner {
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1.4rem;
}

.stad-h1 { margin-bottom: 0.4em; }

/* Category grid */

.categorie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.9rem;
}

.categorie-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.categorie-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.categorie-card .icon {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

/* Stad grid */

.stad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.9rem;
}

.stad-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  padding: 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stad-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.stad-card .icon {
  width: 22px;
  height: 22px;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.stad-card small {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.78rem;
}

/* Idea cards */

.idee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.2rem;
}

.idee-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.idee-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.idee-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.idee-stad {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

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

.idee-stad a:hover {
  text-decoration: underline;
}

.idee-prijs {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 700;
}

.idee-card h3 { margin-bottom: 0.4em; font-size: 1.15rem; }
.idee-card p { font-size: 0.95rem; margin-bottom: 0.9em; }

.idee-card h3 a {
  color: inherit;
  text-decoration: none;
}

.idee-card h3 a:hover {
  color: var(--primary);
  text-decoration: none;
}

.idee-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0;
  margin: 0;
}

.idee-tags li {
  background: var(--accent-tint);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
}

.idee-tags li a {
  color: inherit;
  text-decoration: none;
}

.idee-tags li a:hover {
  text-decoration: underline;
}

.idee-tags-large {
  margin-top: 1.4rem;
}

.idee-tags-large li {
  font-size: 0.85rem;
  padding: 0.4rem 0.9rem;
}

.idee-tag-prijs {
  background: var(--primary-tint) !important;
  color: var(--primary-dark) !important;
}

/* Breadcrumbs */

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.breadcrumbs a {
  color: var(--muted);
}

.breadcrumbs a:hover {
  color: var(--primary);
}

.breadcrumbs [aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

/* Idee detail page */

.idee-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: start;
}

.tip-box {
  background: var(--accent-tint);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  border-left: 4px solid var(--accent);
}

.tip-box p {
  color: var(--ink);
  margin: 0;
}

@media (max-width: 780px) {
  .idee-detail-grid {
    grid-template-columns: 1fr;
  }
}

/* Filter bar */

.filterbar {
  margin-bottom: 1rem;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.filter-search,
.filter-select {
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.95rem;
  color: var(--ink);
}

.filter-search {
  flex: 1 1 260px;
}

.filter-select {
  flex: 0 0 auto;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
}

.chip:hover { border-color: var(--primary); }

.chip.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.filter-status {
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

.filter-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

/* USP grid (ondernemers) */

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

.usp-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
}

.usp-card .icon {
  width: 26px;
  height: 26px;
  color: var(--primary);
  margin-bottom: 0.6rem;
}

.usp-card p { font-size: 0.95rem; margin-bottom: 0; }

/* CTA band */

.cta-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: var(--primary-tint);
  border-radius: 22px;
  padding: clamp(1.6rem, 4vw, 2.6rem);
}

.cta-band-inner h2 { margin-bottom: 0.3em; }
.cta-band-inner p { margin-bottom: 0; max-width: 50ch; }

/* Forms */

.form-section {
  max-width: 760px;
}

.form-intro { margin-bottom: 1.6rem; }

.site-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.site-form-narrow { max-width: 520px; }

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

.site-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
}

.site-form input,
.site-form select,
.site-form textarea {
  font: inherit;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
}

.site-form input:focus,
.site-form select:focus,
.site-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.site-form button { align-self: flex-start; }

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-notice {
  padding: 1rem 1.2rem;
  border-radius: 14px;
  margin-bottom: 1.4rem;
}

.form-notice p { margin: 0; }

.form-notice-success {
  background: var(--accent-tint);
  color: var(--accent);
}

.form-notice-error {
  background: #f8dede;
  color: #8a2c2c;
}

.form-alt {
  margin-top: 1.4rem;
  font-size: 0.92rem;
}

/* Stats dashboard */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.stats-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
}

.stats-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.stats-number {
  font-family: "Fraunces", Georgia, serif;
  font-size: 2.2rem;
  font-weight: 600;
}

.stats-sub {
  font-size: 0.82rem;
  color: var(--muted);
}

.stats-note {
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 70ch;
}

.stats-grid-compact {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  max-width: 480px;
}

.stats-subtitle {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.05rem;
  margin: 1.6rem 0 0.7rem;
}

.period-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.period-modes {
  display: flex;
  gap: 0.5rem;
}

.period-nav {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.period-label {
  font-weight: 700;
  min-width: 14ch;
  text-align: center;
}

.btn-disabled {
  opacity: 0.4;
  pointer-events: none;
}

.table-wrap {
  overflow-x: auto;
}

.stats-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.stats-table th,
.stats-table td {
  text-align: left;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

.stats-table th {
  background: var(--bg-alt);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.stats-table tbody tr:last-child td {
  border-bottom: none;
}

/* Footer */

.site-footer {
  background: var(--footer-bg);
  color: #ece3da;
  padding-block: 2.5rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1.6rem;
}

.footer-brand .brand-text { color: #fff; }
.footer-brand p { color: #b7a99b; font-size: 0.9rem; }

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav a { color: #ece3da; }
.footer-nav a:hover { color: var(--gold); }

.footer-contact a { color: var(--gold); }
.footer-contact .muted { color: #9a8c7e; font-size: 0.85rem; }

/* Responsive */

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

  .hero-visual {
    min-height: 200px;
    order: -1;
  }

  .menu-toggle { display: flex; }

  .main-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1rem 1rem;
  }

  .main-menu.open { display: flex; }

  .main-menu a,
  .main-menu .btn {
    padding: 0.75rem 0.2rem;
    border-bottom: 1px solid var(--line);
  }

  .main-menu .btn {
    margin-top: 0.6rem;
    text-align: center;
    border-bottom: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

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