/* ============================================================
   Project La-Neuve — Design system (official project style)
   ============================================================ */

:root {
  --navy: #0c2d6b;
  --navy-deep: #081f4a;
  --navy-mid: #1a3f7a;
  --blue: #1e4d8c;
  --accent: #2a6b4f;
  --accent-hover: #1e4d39;
  --gold: #e8a317;
  --gold-dark: #c4890f;
  --offwhite: #f5f6f8;
  --white: #ffffff;
  --text: #1a1d23;
  --text-muted: #5a6070;
  --border: #e2e5eb;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 4px 20px rgba(12, 45, 107, 0.08);
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
  --font: "Inter", "Segoe UI", system-ui, sans-serif;
  --max: 1100px;
  --header-h: 68px;
  --topbar-h: 36px;
}

body.mun-overijse {
  --accent: #6b2a4a;
  --accent-hover: #4d1e35;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--offwhite);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--accent); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.topbar {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.85);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
}
.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar-left { opacity: 0.9; }
.topbar-lang {
  display: flex;
  gap: 0.35rem;
  font-weight: 500;
}
.topbar-lang button {
  background: none;
  border: none;
  color: rgba(255,255,255,0.55);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.3rem;
}
.topbar-lang button.active { color: #fff; }
.topbar-lang span { opacity: 0.35; }

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--navy);
  flex-shrink: 0;
}
.logo-mark {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 0;
}
.logo-mark img {
  width: 48px;
  height: 48px;
  display: block;
}
.logo-text .name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.logo-text .sub {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-wrap: wrap;
}
.main-nav a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  transition: 0.15s ease;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--navy); background: var(--offwhite); }
.main-nav a.active {
  color: var(--navy);
  background: #eef2f8;
  font-weight: 600;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.mun-switch {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  font-size: 0.72rem;
  font-weight: 600;
}
.mun-switch button {
  background: transparent;
  border: none;
  padding: 0.35rem 0.6rem;
  color: var(--text-muted);
}
.mun-switch button.active {
  background: var(--navy);
  color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.4rem;
  color: var(--navy);
}
.nav-toggle svg { width: 22px; height: 22px; }

.main-content { flex: 1; width: 100%; }

.hero {
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 45%, var(--navy-mid) 100%);
  color: #fff;
  padding: 3.5rem 1.5rem 4rem;
  position: relative;
}
.hero-inner { max-width: var(--max); margin: 0 auto; }
.hero-badge {
  display: inline-block;
  background: var(--gold);
  color: #1a1200;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: clamp(1.85rem, 4.5vw, 2.85rem);
  font-weight: 700;
  line-height: 1.15;
  max-width: 18ch;
  margin-bottom: 1.15rem;
  letter-spacing: -0.02em;
}
.hero .lead {
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 48ch;
  opacity: 0.88;
  margin-bottom: 1.75rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  transition: 0.15s ease;
  text-decoration: none;
}
.btn-gold { background: var(--gold); color: #1a1200; }
.btn-gold:hover { background: var(--gold-dark); color: #1a1200; }
.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.45);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.1); color: #fff; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--navy); }

.stats-section {
  max-width: var(--max);
  margin: -2.25rem auto 0;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.04);
}
.stat-card .num {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.stat-card .lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.page-body {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.section { margin-bottom: 3rem; }
.section h2 {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
.section .intro {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 55ch;
  margin-bottom: 1.5rem;
  line-height: 1.65;
}

.prose { max-width: 65ch; }
.prose p { margin-bottom: 1rem; font-size: 0.95rem; line-height: 1.7; color: var(--text); }

.two-col {
  columns: 2;
  column-gap: 2.75rem;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.72;
  margin-bottom: 1.5rem;
}
.two-col p { margin: 0 0 1rem; break-inside: avoid; }
@media (max-width: 760px) { .two-col { columns: 1; } }
.prose h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin: 1.5rem 0 0.6rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.15rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  transition: box-shadow 0.15s ease;
}
.card:hover { box-shadow: var(--shadow); }
.card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.45rem;
}
.card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.55; }

.announce-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.75rem 1.75rem 1.75rem 1.5rem;
  margin: 1.5rem 0;
  box-shadow: var(--shadow-sm);
}
.announce-box .meta {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold-dark);
  margin-bottom: 0.6rem;
}
.announce-box h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.85rem;
}
.announce-box p {
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.timeline { position: relative; padding-left: 1.75rem; margin: 1.5rem 0; }
.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--border);
}
.timeline-item { position: relative; margin-bottom: 1.75rem; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.75rem;
  top: 0.4rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--navy);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--navy);
}
.timeline-item .year {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.35rem;
}
.timeline-item ul { padding-left: 1.1rem; margin-top: 0.35rem; }
.timeline-item li {
  list-style: disc;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.faq-list details {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.55rem;
  overflow: hidden;
}
.faq-list summary {
  padding: 1rem 1.15rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  color: var(--navy);
  font-size: 1.15rem;
  flex-shrink: 0;
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list details[open] summary { border-bottom: 1px solid var(--border); }
.faq-list .faq-body {
  padding: 0.9rem 1.15rem 1.15rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.testimonial {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
}
.testimonial .quote {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.55;
  margin-bottom: 0.9rem;
}
.testimonial .author {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.testimonial .author strong {
  display: block;
  color: var(--navy);
  font-style: normal;
}

.chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.6rem;
}
.chip {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  font-size: 0.85rem;
  text-align: center;
  color: var(--text);
  font-weight: 500;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  margin: 1.25rem 0;
}
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
th, td { padding: 0.8rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
th { background: var(--navy); color: #fff; font-weight: 600; font-size: 0.8rem; }
tr:last-child td { border-bottom: none; }

.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.7);
  padding: 2.5rem 1.5rem 1.5rem;
  margin-top: auto;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}
.footer-brand .name {
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.4rem;
}
.footer-brand p { font-size: 0.8rem; line-height: 1.5; max-width: 34ch; }
.footer-col h4 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.65rem;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: var(--max);
  margin: 1.75rem auto 0;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.72rem;
  text-align: center;
  color: rgba(255,255,255,0.4);
}

.about-notice {
  background: #f8f4e8;
  border: 1px solid #e8d9a8;
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #5a4a20;
}

.page-content { animation: fadeIn 0.22s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    align-items: stretch;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.7rem 1rem; }
  .mun-switch { display: none; }
  .header-inner { position: relative; }
  .stats-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero { padding: 2.5rem 1.25rem 3rem; }
  .hero h1 { font-size: 1.65rem; }
  .page-body { padding: 2rem 1.25rem 3rem; }
  .stats-section { margin-top: -1.5rem; }
}

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

/* ---- Theme: Tervuren (green) ---- */
body.mun-tervuren {
  --navy: #0d3d2e;
  --navy-deep: #082820;
  --navy-mid: #1a5c45;
  --accent: #2a6b4f;
  --gold: #c4a035;
  --gold-dark: #a68628;
}
body.mun-tervuren .hero {
  background: linear-gradient(160deg, #082820 0%, #0d3d2e 45%, #1a5c45 100%);
}
body.mun-tervuren .stat-card .num { color: #0d3d2e; }
body.mun-tervuren .main-nav a.active { background: #e8f2ed; color: #0d3d2e; }
body.mun-tervuren th { background: #0d3d2e; }

/* ---- Theme: Overijse (bordeaux/navy) ---- */
body.mun-overijse {
  --navy: #0c2d6b;
  --navy-deep: #081f4a;
  --navy-mid: #1a3f7a;
  --accent: #6b2a4a;
  --gold: #e8a317;
  --gold-dark: #c4890f;
}

/* ---- Contact form ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}
@media (max-width: 720px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.35rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  background: var(--white);
  color: var(--text);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid var(--navy);
  outline-offset: 1px;
  border-color: transparent;
}
.form-group textarea { min-height: 120px; resize: vertical; }
.contact-aside {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  height: fit-content;
}
.contact-aside h3 {
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 0.6rem;
}
.contact-aside p {
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: pre-line;
  line-height: 1.55;
}
.form-success {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  font-size: 0.9rem;
  color: #2e5a32;
  margin-top: 1rem;
  display: none;
}
.form-success.show { display: block; }

.doc-list { display: flex; flex-direction: column; gap: 0.55rem; }
.doc-item {
  display: flex; align-items: center; gap: 1rem;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.9rem 1.1rem;
  transition: box-shadow 0.15s ease;
}
.doc-item:hover { box-shadow: var(--shadow); }
.doc-icon {
  width: 40px; height: 40px; background: rgba(12,45,107,0.08);
  border-radius: 6px; display: flex; align-items: center; justify-content: center;
  color: var(--navy); font-size: 0.7rem; font-weight: 700; flex-shrink: 0;
}
.doc-info h4 { font-size: 0.92rem; color: var(--navy); margin-bottom: 0.1rem; }
.doc-info p { font-size: 0.75rem; color: var(--text-muted); }
body.mun-tervuren .doc-icon { background: rgba(13,61,46,0.1); color: #0d3d2e; }

/* ---- Mobile refinements ---- */
@media (max-width: 920px) {
  .topbar { font-size: 0.65rem; height: auto; min-height: 32px; padding: 0.35rem 0; }
  .topbar-inner { flex-wrap: wrap; gap: 0.25rem; }
  .topbar-left { max-width: 100%; line-height: 1.3; }
  .header-inner { height: auto; min-height: 60px; padding: 0.5rem 1rem; }
  .logo-text .name { font-size: 0.82rem; }
  .logo-text .sub { font-size: 0.58rem; }
  .logo-mark, .logo-mark img { width: 40px; height: 40px; }
  .stats-section { margin-top: -1.5rem; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .announce-box { padding: 1.25rem; }
  .page-body { padding: 1.75rem 1rem 3rem; }
  .section h2 { font-size: 1.3rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .chip-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { gap: 1.25rem; }
  /* touch targets */
  .main-nav a { min-height: 44px; display: flex; align-items: center; }
  .btn { min-height: 44px; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.45rem; max-width: none; }
  .hero .lead { font-size: 0.95rem; }
  .stats-grid { gap: 0.65rem; }
  .stat-card { padding: 1rem 0.75rem; }
  .stat-card .num { font-size: 1.4rem; }
  .chip-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
}
/* prevent horizontal overflow */
html, body { overflow-x: hidden; }
img, svg, table { max-width: 100%; }

/* ---- Cookie consent banner ---- */
#ln-cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1000;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(12, 45, 107, 0.18);
  max-width: 960px;
  margin: 0 auto;
}
#ln-cookie-banner .cc-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 1.25rem;
  flex-wrap: wrap;
}
#ln-cookie-banner .cc-text { flex: 1 1 340px; min-width: 0; }
#ln-cookie-banner .cc-text strong {
  display: block;
  color: var(--navy);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}
#ln-cookie-banner .cc-text p {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted, #5a6070);
  margin: 0;
}
#ln-cookie-banner .cc-more { color: var(--navy); text-decoration: underline; }
#ln-cookie-banner .cc-actions {
  display: flex;
  gap: 0.6rem;
  flex: 0 0 auto;
  flex-wrap: wrap;
}
#ln-cookie-banner .cc-actions .btn { font-size: 0.85rem; padding: 0.55rem 1.1rem; }
@media (max-width: 640px) {
  #ln-cookie-banner .cc-inner { flex-direction: column; align-items: stretch; }
  #ln-cookie-banner .cc-actions { justify-content: stretch; }
  #ln-cookie-banner .cc-actions .btn { flex: 1 1 auto; justify-content: center; min-height: 44px; }
}
.table-wrap { -webkit-overflow-scrolling: touch; }
