/* ==========================================================
   Stadstafel Klundert — statische site
   Kleuren ontleend aan de blauw-gele luiken van het stadhuis.
   ========================================================== */

:root {
  --navy: #16325c;
  --navy-dark: #0e2240;
  --navy-soft: #e6ecf5;
  --yellow: #f5c400;
  --yellow-soft: #fff4c7;
  --paper: #f7f5f0;
  --white: #fff;
  --ink: #172033;
  --muted: #5a6475;
  --line: rgba(23, 32, 51, .1);
  --green: #3f7d4e;
  --radius: 16px;
  --shadow: 0 8px 28px rgba(22, 50, 92, .08);
  --shadow-lg: 0 22px 56px rgba(22, 50, 92, .16);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--navy-dark); text-decoration-color: var(--yellow); text-decoration-thickness: 2px; }

h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; color: var(--navy-dark); }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1.1em; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, 760px); margin-inline: auto; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color: var(--white); padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.logo { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--navy-dark); }
.logo:hover { color: var(--navy-dark); text-decoration: none; }
.logo svg { width: 42px; height: 42px; flex: none; border-radius: 8px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text strong { font-family: var(--serif); font-size: 1.3rem; }
.logo-text small { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; align-items: center; }
.nav a {
  display: block; padding: .55rem 1rem; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-weight: 500;
  transition: background .2s, color .2s;
}
.nav a:hover { background: var(--navy-soft); color: var(--navy-dark); }
.nav a[aria-current="page"] { color: var(--navy-dark); box-shadow: inset 0 -3px 0 var(--yellow); border-radius: 0; }
.nav a.nav-cta { background: var(--navy); color: var(--white); border-radius: 8px; margin-left: .5rem; }
.nav a.nav-cta:hover { background: var(--navy-dark); }
.nav a.nav-cta[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--yellow); }

.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; color: var(--navy-dark); }
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 76px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 1rem 1.25rem 1.5rem; }
  .nav a { padding: .85rem 1rem; }
  .nav a.nav-cta { margin: .5rem 0 0; text-align: center; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .9rem 1.5rem; border-radius: 10px; border: 0;
  font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .2s, background .2s, box-shadow .2s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-yellow { background: var(--yellow); color: var(--navy-dark); box-shadow: 0 8px 20px rgba(245, 196, 0, .35); }
.btn-yellow:hover { background: #ffd21f; color: var(--navy-dark); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-dark); color: var(--white); }
.btn-ghost { background: rgba(255, 255, 255, .14); color: var(--white); border: 1.5px solid rgba(255, 255, 255, .6); }
.btn-ghost:hover { background: rgba(255, 255, 255, .26); color: var(--white); }
.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Hero ---------- */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(86vh, 720px);
  display: flex; align-items: flex-end;
  color: var(--white); padding: 8rem 0 4.5rem;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(14, 34, 64, .3) 0%, rgba(14, 34, 64, .55) 40%, rgba(14, 34, 64, .94) 100%);
}
.hero h1 { color: var(--white); max-width: 17ch; text-shadow: 0 2px 20px rgba(0, 0, 0, .25); }
.hero .lead { max-width: 52ch; font-size: 1.2rem; opacity: .95; margin-bottom: 2rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font: 700 .78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  color: var(--navy); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; background: var(--yellow); border-radius: 2px; }
.hero .eyebrow, .page-hero .eyebrow, .section-navy .eyebrow { color: var(--yellow); }

.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  color: var(--white); padding: 6.5rem 0 3.5rem;
  background: var(--navy);
}
.page-hero .hero-bg { opacity: .9; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14, 34, 64, .95) 0%, rgba(14, 34, 64, .75) 55%, rgba(14, 34, 64, .45) 100%); }
.page-hero h1 { color: var(--white); max-width: 22ch; }
.page-hero p { max-width: 60ch; font-size: 1.15rem; opacity: .92; margin: 0; }
.breadcrumb { font-size: .9rem; margin-bottom: 1.2rem; opacity: .85; }
.breadcrumb a { color: var(--white); }
.breadcrumb span { margin: 0 .4rem; opacity: .6; }

/* ---------- Sections ---------- */

.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-white { background: var(--white); }
.section-navy { background: var(--navy); color: rgba(255, 255, 255, .88); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-head { max-width: 680px; margin-bottom: 2.75rem; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section-navy .section-head p { color: rgba(255, 255, 255, .75); }
.section-head-row { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.section-head-row .section-head { margin-bottom: 0; }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

.framed { position: relative; }
.framed img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.framed::before {
  content: ""; position: absolute; inset: 1.25rem -1.25rem -1.25rem 1.25rem; z-index: -1;
  border-radius: var(--radius); background: var(--yellow);
}
.framed-wrap { position: relative; isolation: isolate; }

/* ---------- Pillars (wat doet de stadstafel) ---------- */

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }
.pillar { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); padding: 1.75rem; }
.pillar p { margin: 0; }
.pillar h3 { margin-top: 1rem; }

.icon {
  flex: none; width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--yellow-soft); color: var(--navy);
}
.icon svg { width: 24px; height: 24px; }
.section-navy .icon { background: var(--yellow); color: var(--navy-dark); }

/* ---------- Dossier cards ---------- */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  text-decoration: none; color: var(--ink);
  transition: transform .25s, box-shadow .25s;
  border-top: 4px solid var(--yellow);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); color: var(--ink); text-decoration: none; }
.card-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-soft); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 1.4rem 1.5rem 1.6rem; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 1.25rem; margin-bottom: .4rem; }
.card-body p { color: var(--muted); font-size: .98rem; line-height: 1.55; }
.card-more { margin-top: auto; font-weight: 600; color: var(--navy); display: inline-flex; gap: .4rem; align-items: center; font-size: .95rem; }
.card-more svg { width: 18px; height: 18px; transition: transform .2s; }
.card:hover .card-more svg { transform: translateX(4px); }

.tag {
  display: inline-block; align-self: flex-start;
  font: 700 .72rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase;
  color: var(--navy); background: var(--navy-soft); padding: .4rem .6rem; border-radius: 6px; margin-bottom: .8rem;
}
.tag.closed { background: #eee; color: #666; }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.chip {
  border: 1.5px solid var(--line); background: var(--white);
  padding: .55rem 1rem; border-radius: 999px; cursor: pointer;
  font: 500 .95rem/1 var(--sans); color: var(--ink); transition: all .2s;
}
.chip:hover { border-color: var(--navy); }
.chip.active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.chip small { opacity: .6; margin-left: .25rem; }

/* ---------- Links tiles ---------- */

.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
@media (max-width: 760px) { .tiles { grid-template-columns: 1fr; } }
.tile {
  display: flex; gap: 1.2rem; align-items: flex-start;
  background: var(--white); border-radius: var(--radius); padding: 1.6rem;
  box-shadow: var(--shadow); text-decoration: none; color: var(--ink);
  transition: transform .2s, box-shadow .2s;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--ink); text-decoration: none; }
.tile h3 { margin-bottom: .3rem; font-size: 1.2rem; }
.tile p { margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.55; }
.tile .ext { font-size: .85rem; color: var(--navy); font-weight: 600; margin-top: .6rem; display: inline-block; }

/* ---------- Article (dossier) ---------- */

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 960px) { .article-layout { grid-template-columns: 1fr; } }

.prose { font-size: 1.1rem; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: 1.6rem; margin-top: 2rem; }
.prose h3 { margin-top: 1.8rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.3em; }
.prose li { margin-bottom: .6em; }
.prose li::marker { color: var(--navy); font-weight: 700; }
.prose ol ol { margin-top: .6em; list-style: lower-alpha; }
.prose figure { margin: 2rem 0; }
.prose figure img { border-radius: 12px; box-shadow: var(--shadow); }
.prose figure.small img { max-width: 420px; width: 100%; }
.prose figcaption { font-size: .9rem; color: var(--muted); margin-top: .6rem; }
.prose .intro { font-size: 1.25rem; font-family: var(--serif); color: var(--navy-dark); line-height: 1.5; }

.notice {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--yellow-soft); border-left: 4px solid var(--yellow);
  border-radius: 10px; padding: 1.1rem 1.25rem; margin-bottom: 2rem; font-size: .98rem; line-height: 1.55;
}
.notice svg { width: 22px; height: 22px; flex: none; color: var(--navy); margin-top: .1rem; }
.notice p { margin: 0; }

.aside-box { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; margin-bottom: 1.25rem; }
.aside-box h3 { font-size: 1.1rem; margin-bottom: .9rem; }
.aside-box dl { margin: 0; display: grid; gap: .7rem; font-size: .95rem; }
.aside-box dt { font-weight: 700; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.aside-box dd { margin: 0; }
.aside-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.aside-box li a { text-decoration: none; font-weight: 500; display: flex; gap: .5rem; align-items: baseline; line-height: 1.4; }
.aside-box li a::before { content: "›"; color: var(--yellow); font-weight: 800; }
.aside-box li a:hover { text-decoration: underline; }
.aside-cta { background: var(--navy); color: rgba(255, 255, 255, .88); }
.aside-cta h3 { color: var(--white); }
.aside-cta p { font-size: .95rem; }
.sticky { position: sticky; top: 100px; }

.download {
  display: flex; gap: 1rem; align-items: center;
  background: var(--white); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 1rem 1.25rem; text-decoration: none; color: var(--ink); margin: 1.5rem 0;
  transition: border-color .2s, box-shadow .2s;
}
.download:hover { border-color: var(--navy); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.download strong { display: block; }
.download small { color: var(--muted); }

.pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); flex-wrap: wrap; }
.pager a { text-decoration: none; max-width: 48%; }
.pager small { display: block; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.pager strong { font-family: var(--serif); font-size: 1.1rem; }
.pager .next { text-align: right; margin-left: auto; }

/* ---------- CTA band ---------- */

.cta-band {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: 22px; color: var(--white);
  padding: clamp(2.5rem, 6vw, 4rem); background: var(--navy);
}
.cta-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(14, 34, 64, .96) 0%, rgba(14, 34, 64, .8) 55%, rgba(14, 34, 64, .35) 100%); }
.cta-band h2 { color: var(--white); max-width: 20ch; }
.cta-band p { max-width: 50ch; opacity: .9; font-size: 1.1rem; margin-bottom: 1.8rem; }
.cta-band .eyebrow { color: var(--yellow); }

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: 2rem; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.panel { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.5rem, 4vw, 2.5rem); }
.address { font-style: normal; line-height: 1.8; }
.contact-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: .9rem; align-items: center; }
.contact-list .icon { width: 42px; height: 42px; }

.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
.form label small { font-weight: 400; color: var(--muted); }
.form input, .form textarea, .form select {
  width: 100%; font: inherit; font-size: 1rem;
  padding: .8rem 1rem; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--paper);
  transition: border-color .2s, background .2s;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--navy); background: var(--white); }
.form textarea { min-height: 150px; resize: vertical; }
.form-note { font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy-dark); color: rgba(255, 255, 255, .75); padding: 4rem 0 2rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 3rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .logo { color: var(--white); margin-bottom: 1rem; }
.site-footer .logo-text small { color: rgba(255, 255, 255, .6); }
.site-footer h3 { color: var(--white); font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-footer a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.site-footer address { font-style: normal; line-height: 1.8; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .88rem; color: rgba(255, 255, 255, .55); }

/* ---------- Misc ---------- */

.lead { font-size: 1.2rem; }
.muted { color: var(--muted); }
.mt-2 { margin-top: 2rem; }
[hidden] { display: none !important; }

.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}
