/* Wijkraden Nieuw Noord — uitsluitend grijstinten */
:root {
  --color-primary: #404040;
  --color-primary-dark: #262626;
  --color-accent: #525252;
  --color-accent-hover: #171717;
  --bg: #f0f0f0;
  --bg-card: #ffffff;
  --text: #1a1a1a;
  --text-muted: #666666;
  --border: #cccccc;
  --focus: #404040;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  --font-sans: "Epilogue", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --wrap: min(1120px, calc(100% - 2rem));
}

img,
video {
  filter: grayscale(100%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--color-primary);
  color: #fff;
  z-index: 1000;
  border-radius: var(--radius);
  font-weight: 600;
}
.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

/* Header */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  flex-wrap: wrap;
}

.site-logo {
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.site-logo__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.2;
  color: var(--color-primary);
}

.site-logo__tag {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.25rem;
}

.site-nav__list a {
  display: block;
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
}

.site-nav__list a:hover {
  background: var(--bg);
  color: var(--color-primary);
}

.site-nav__list a[aria-current="page"] {
  background: var(--color-primary);
  color: #fff;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }
  .site-nav {
    display: none;
    width: 100%;
    padding-bottom: 0.5rem;
  }
  .site-nav.is-open {
    display: block;
  }
  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
  }
  .site-nav__list a {
    padding: 0.65rem 0.75rem;
  }
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #2a2a2a 0%, #404040 45%, #5c5c5c 100%);
  color: #f0f0f0;
  padding: 2.75rem 0 3rem;
}

.hero__inner {
  max-width: 40rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.hero p {
  margin: 0;
  font-size: 1.1rem;
  opacity: 0.95;
}

.hero__actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

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

.btn--primary {
  background: #fff;
  color: var(--color-primary-dark);
}

.btn--primary:hover {
  background: #e8e8e8;
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn--accent {
  background: var(--color-accent);
  color: #fff;
}

.btn--accent:hover {
  background: var(--color-accent-hover);
}

/* Sections */
.section {
  padding: 2.5rem 0;
}

.section--alt {
  background: #e5e5e5;
  border-block: 1px solid #bdbdbd;
}

.section__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: var(--color-primary-dark);
}

.section__intro {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  max-width: 42rem;
}

/* Grid cards */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
  color: var(--color-primary-dark);
}

.card p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--text-muted);
}

.card a {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
}

.card a:hover {
  text-decoration: underline;
}

/* News list */
.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-list li {
  border-bottom: 1px solid var(--border);
}

.news-list li:last-child {
  border-bottom: none;
}

.news-list a {
  display: block;
  padding: 1rem 0;
  text-decoration: none;
  color: inherit;
}

.news-list a:hover h3 {
  color: var(--color-accent);
}

.news-list h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  color: var(--text);
}

.news-list time {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.news-list p {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Agenda */
.agenda-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.agenda-list li {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

@media (max-width: 480px) {
  .agenda-list li {
    grid-template-columns: 1fr;
  }
}

.agenda-list .date {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 0.9rem;
}

.agenda-list strong {
  display: block;
  margin-bottom: 0.2rem;
}

/* Page layout (inner pages) */
.page-head {
  padding: 2rem 0 1.5rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.page-head h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin: 0 0 0.5rem;
  color: var(--color-primary-dark);
}

.page-head p {
  margin: 0;
  color: var(--text-muted);
  max-width: 40rem;
}

.prose {
  max-width: 42rem;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
  color: var(--color-primary-dark);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose ul {
  margin: 0 0 1rem;
}

.prose ul {
  padding-left: 1.25rem;
}

.prose a {
  color: var(--color-accent);
  font-weight: 500;
}

/* CTA strip */
.cta-strip {
  background: #3a3a3a;
  color: #f0f0f0;
  padding: 2rem 0;
  text-align: center;
}

.cta-strip h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}

.cta-strip p {
  margin: 0 0 1.25rem;
  opacity: 0.95;
}

.cta-strip .btn--primary {
  background: #fff;
  color: var(--color-primary-dark);
}

/* Footer */
.site-footer {
  background: #2d2d2d;
  color: #d0d0d0;
  padding: 2.5rem 0 2rem;
  margin-top: auto;
}

.site-footer a {
  color: #b0b0b0;
  text-decoration: none;
}

.site-footer a:hover {
  color: #ffffff;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

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

.site-footer h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9a9a9a;
  margin: 0 0 0.75rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
}

.site-footer li {
  margin-bottom: 0.4rem;
}

.site-footer__bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid #525252;
  font-size: 0.85rem;
  color: #8a8a8a;
}

/* Layout shell */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page main {
  flex: 1;
}

/* Contact / definition list */
.dl-grid dt {
  font-weight: 600;
  margin-top: 1rem;
  color: var(--color-primary-dark);
}

.dl-grid dt:first-child {
  margin-top: 0;
}

.dl-grid dd {
  margin: 0.25rem 0 0;
  color: var(--text-muted);
}

/* Doc table */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}

table.simple {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

table.simple th,
table.simple td {
  padding: 0.65rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

table.simple th {
  background: var(--bg);
  font-weight: 600;
  color: var(--color-primary-dark);
}

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

/* Homepage: kaart Tilburg Noord */
.map-block {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

#map-noord {
  height: min(420px, 55vh);
  width: 100%;
  z-index: 1;
}

.map-note {
  margin: 0.65rem 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.map-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .map-layout {
    grid-template-columns: 1fr;
  }
}

.map-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
}

.map-legend li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.map-legend li:last-child {
  border-bottom: none;
}

.map-legend strong {
  display: block;
  color: var(--color-primary-dark);
  font-size: 0.95rem;
}

/* FAQ (details / summary) */
.faq-list {
  max-width: 42rem;
}

.faq-list details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  margin-bottom: 0.65rem;
  box-shadow: var(--shadow);
}

.faq-list summary {
  cursor: pointer;
  padding: 1rem 1.1rem;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 2.5rem;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  color: var(--text-muted);
  font-size: 1.25rem;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details .faq-body {
  padding: 0 1.1rem 1rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  border-top: 1px solid var(--border);
  margin: 0 0 0;
  padding-top: 0.85rem;
}

.faq-list details .faq-body p {
  margin: 0 0 0.65rem;
}

.faq-list details .faq-body p:last-child {
  margin-bottom: 0;
}

/* Doorverwijzingen / partners */
.ref-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 768px) {
  .ref-grid {
    grid-template-columns: 1fr;
  }
}

.ref-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  background: var(--bg-card);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.ref-card:hover {
  border-color: #999;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ref-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
  color: var(--color-primary-dark);
}

.ref-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.ref-card .ref-meta {
  margin-top: 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-accent);
}

/* Zoekpagina */
.search-panel {
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.search-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-primary-dark);
}

.search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.search-input {
  flex: 1;
  min-width: 200px;
  padding: 0.65rem 0.85rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.search-input:focus {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.search-submit {
  border: none;
}

.search-status {
  margin: 0.75rem 0 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.search-results {
  margin-bottom: 2rem;
}

.search-hit-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.search-hit {
  margin-bottom: 0.5rem;
}

.search-hit__link {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: border-color 0.15s;
}

.search-hit__link:hover {
  border-color: #999;
}

.search-hit__title {
  font-weight: 600;
  color: var(--color-primary-dark);
}

.search-hit__tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  align-self: flex-start;
}

.search-hit__desc {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.search-browse__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 1rem;
  color: var(--color-primary-dark);
}

.search-browse__grid {
  margin-bottom: 0;
}

.search-linklist {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.95rem;
}

.search-linklist li {
  margin: 0.35rem 0;
}

.search-linklist a {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
}

.search-linklist a:hover {
  text-decoration: underline;
}

.search-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Contactformulier */
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field label {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-primary-dark);
}

.form-field .label-hint {
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: 0.6rem 0.75rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.form-field textarea {
  min-height: 8rem;
  resize: vertical;
}

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

.form-actions {
  margin-top: 0.25rem;
}

.form-footnote {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}
