/* eenadvocaat.nl — ontwerp v3, warme kleuren (design/v3/warm.html). BEM, geen inline stijlen (CSP). */
:root {
  --navy: #012251;
  --navy-dark: #001536;
  --ink: #16181c;
  --muted: #5d5a54;
  --line: #ddd5c7;
  --paper: #f7f5f0;
  --card: #fffdf8;
  --soft: #efebe3;
  --sand: #e7dfcf;
  --bordeaux: #7a1f2b;
  --grey-dot: #9a958c;
  --focus: #0b5fff;
  --wrap: 76rem;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; }
a { color: var(--navy); text-underline-offset: 0.15em; }
a:hover { color: var(--navy-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }
fieldset { min-width: 0; min-inline-size: 0; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 10; padding: 0.6rem 1rem; background: var(--navy); color: #fff; border-radius: 6px; }
.skip:focus { top: 1rem; color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.main { display: block; }

/* Kop */
.top { position: relative; z-index: 5; }
.top__in { max-width: var(--wrap); margin: 0 auto; padding: 1rem 1.25rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; flex-wrap: wrap; }
.top__logo { display: inline-flex; }
.top__logo-img { display: block; width: 210px; height: auto; }
.top__nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.top__link { display: inline-block; padding: 0.3rem 0; color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent; }
.top__link:hover { color: var(--navy); border-bottom-color: var(--navy); }
.top__link[aria-current="page"] { color: var(--navy); border-bottom-color: var(--navy); }

/* Menuknop: alleen op smalle schermen en met JavaScript; zonder script blijft het menu gewoon zichtbaar */
.top__menu-btn { display: none; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0.5rem 1rem; font: inherit; font-weight: 700; color: var(--navy); background: var(--card); border: 2px solid var(--navy); border-radius: 999px; cursor: pointer; }
.top__menu-btn:hover { background: var(--soft); }
.top__menu-icon { display: block; fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; }
.top__menu-cross, .top__menu-btn[aria-expanded="true"] .top__menu-lines { display: none; }
.top__menu-btn[aria-expanded="true"] .top__menu-cross { display: inline; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: center; padding-top: 1.5rem; padding-bottom: 3rem; }
.hero > * { min-width: 0; }
.hero__title { margin: 0 0 1.1rem; font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.05; letter-spacing: -0.02em; color: var(--navy); }
.hero__intro { margin: 0 0 1.75rem; max-width: 32rem; font-size: 1.2rem; color: var(--muted); }

.find { display: grid; gap: 0.6rem; max-width: 32rem; justify-items: start; }
.find__label { font-weight: 700; }
.find__input { width: 100%; font: inherit; padding: 0.9rem 1rem; color: var(--ink); background: var(--card); border: 2px solid #8a857b; border-radius: 8px; }
.find__set { width: 100%; margin: 0.6rem 0 0; padding: 0; border: 0; }
.find__set .find__label { float: left; width: 100%; padding: 0; margin-bottom: 0.6rem; }
.find__chips { clear: both; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-block; padding: 0.5rem 0.9rem; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); font-weight: 600; cursor: pointer; }
.chip span:hover { border-color: var(--navy); }
.chip input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.find__btn { margin-top: 0.6rem; font: inherit; font-weight: 700; padding: 0.9rem 1.4rem; border: 0; border-radius: 8px; background: var(--navy); color: #fff; cursor: pointer; }
.find__btn:hover { background: var(--navy-dark); }
.find__hint { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.95rem; }

.nlmap { display: block; width: 100%; height: auto; max-height: 640px; }
.nlmap__land { fill: var(--sand); stroke: #fff; stroke-width: 1; stroke-linejoin: round; }
.nlmap__dots circle { fill: #5b6f8f; }
.nlmap__ring { fill: var(--navy); }
.nlmap__city text { font-size: 15px; font-weight: 700; fill: var(--navy); paint-order: stroke; stroke: var(--paper); stroke-width: 4px; }
.nlmap__city:hover text, .nlmap__city:focus text { text-decoration: underline; }
.nlmap__city:focus-visible { outline: none; }
.nlmap__city:focus-visible .nlmap__ring { stroke: var(--focus); stroke-width: 4; r: 9; }
.nlmap__city:focus-visible text { fill: var(--focus); text-decoration: underline; text-decoration-thickness: 2px; }

/* Secties */
.band { background: var(--soft); padding: 3rem 0; }
.sec { padding: 3rem 0 0; }
.sec:last-child { padding-bottom: 3.5rem; }
.h2 { margin: 0 0 0.5rem; font-size: 1.6rem; line-height: 1.2; color: var(--navy); }
.h2--small { margin-top: 2.5rem; font-size: 1.25rem; }
.lead { margin: 0 0 1.5rem; color: var(--muted); }
.more { margin: 2rem 0 0; font-weight: 600; }

.cities { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 0.75rem; }
.cities__link { display: flex; justify-content: space-between; gap: 0.75rem; padding: 0.9rem 1rem; background: var(--card); border: 1px solid var(--line); border-radius: 8px; font-weight: 700; text-decoration: none; }
.cities__link:hover { border-color: var(--navy); }
.cities__n { font-weight: 400; color: var(--muted); }
.cities--small .cities__link { padding: 0.7rem 0.9rem; }

.areas { list-style: none; margin: 0; padding: 0; columns: 4 13rem; column-gap: 2rem; }
.areas__item { padding: 0.35rem 0; break-inside: avoid; }
.areas__n { margin-left: 0.35rem; font-size: 0.9rem; color: var(--muted); }

.faq-wrap { max-width: 46rem; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { padding: 1rem 2rem 1rem 0; font-weight: 700; cursor: pointer; position: relative; list-style: none; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: "+"; position: absolute; right: 0.25rem; top: 0.85rem; font-size: 1.3rem; line-height: 1; color: var(--navy); }
.faq__item[open] .faq__q::after { content: "\2212"; }
.faq__a { padding: 0 0 1rem; }
.faq__a p { margin: 0; }

/* Pagina's */
.page { padding-top: 2rem; padding-bottom: 3rem; }
.page--narrow > * { max-width: 46rem; }
.page__title { margin: 0 0 0.5rem; font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.1; letter-spacing: -0.015em; color: var(--navy); overflow-wrap: anywhere; }
.page__intro { margin: 0 0 2rem; max-width: 46rem; font-size: 1.15rem; color: var(--muted); }
.prose p, .prose ul { margin: 0 0 1rem; }
.prose__title { margin: 2rem 0 0.5rem; font-size: 1.3rem; color: var(--navy); }

/* Filter */
.filter { margin: 0 0 1.25rem; max-width: 40rem; }
.filter__label { display: block; margin-bottom: 0.35rem; font-weight: 700; }
.filter__input { width: 100%; font: inherit; padding: 0.75rem 0.9rem; background: var(--card); border: 2px solid #8a857b; border-radius: 8px; }
.filter__count { margin: 0.4rem 0 0; font-size: 0.95rem; color: var(--muted); }

/* Kantoren in een lijst */
.firms { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.firm { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 0.25rem 1rem; padding: 1rem 1.25rem; background: var(--card); border: 1px solid var(--line); border-radius: 8px; }
.firm--zonder-km { grid-template-columns: minmax(0, 1fr); }
.firm--match { border-left: 5px solid var(--bordeaux); box-shadow: 0 1px 3px rgba(1, 34, 81, 0.08); }
.firm__km { font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.firm__name { margin: 0; font-size: 1.15rem; line-height: 1.3; overflow-wrap: anywhere; }
.firm__link { text-decoration: none; }
.firm__link:hover { text-decoration: underline; }
.firm__addr { margin: 0; }
.firm__tag { display: inline-block; margin: 0.35rem 0.35rem 0 0; padding: 0.15rem 0.6rem; border-radius: 999px; background: var(--bordeaux); color: #fff; font-size: 0.85rem; font-weight: 700; }
.firm__areas { margin: 0.3rem 0 0; color: var(--muted); font-size: 0.92rem; }
.firm--compact { padding: 0.8rem 1rem; }
.firm--compact .firm__name { font-size: 1.05rem; }
/* gedempt: kantoren die niet bij het gekozen rechtsgebied passen */
.firms--rest { gap: 0; border-top: 1px solid var(--line); }
.firms--rest .firm { padding: 0.6rem 0; background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--muted); }
.firms--rest .firm__km { font-weight: 400; color: var(--muted); }
.firms--rest .firm__name { font-size: 1rem; }
.firms--rest .firm__link { color: var(--ink); }
.firms--rest .firm__addr, .firms--rest .firm__areas { font-size: 0.92rem; margin: 0; }
.firms__empty { margin: 1rem 0; font-weight: 600; }

/* Plaatspagina */
.place { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); gap: 2.5rem; padding-top: 2rem; padding-bottom: 3rem; align-items: start; }
.place__title { margin: 0 0 0.5rem; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; letter-spacing: -0.015em; color: var(--navy); }
.place__sub { margin: 0 0 1.5rem; font-size: 1.1rem; color: var(--muted); }
.place__side { position: sticky; top: 1rem; }
.place__legend { margin: 0.6rem 0 0; font-size: 0.9rem; line-height: 1.8; color: var(--muted); }
.legend__dot { display: inline-block; width: 0.7rem; height: 0.7rem; margin: 0 0.3rem 0 0.6rem; border-radius: 50%; }
.legend__dot:first-child { margin-left: 0; }
.legend__dot--match { background: var(--navy); }
.legend__dot--rest { background: var(--grey-dot); }

.rfilter { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin: 0 0 1.25rem; }
.rfilter__label { margin-right: 0.25rem; font-weight: 700; }
.rfilter__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.rchip { display: inline-block; padding: 0.4rem 0.8rem; font-size: 0.95rem; font-weight: 600; color: var(--ink); text-decoration: none; background: var(--soft); border: 1px solid var(--line); border-radius: 999px; }
.rchip:hover { border-color: var(--navy); color: var(--ink); }
.rchip[aria-current="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

.rgroup { margin: 0 0 2rem; }
.rgroup__title { margin: 0 0 0.75rem; font-size: 1.3rem; color: var(--navy); }
.rgroup__text { margin: -0.4rem 0 1rem; font-size: 0.95rem; color: var(--muted); }
.rgroup--rest .rgroup__title { font-size: 1.1rem; color: var(--ink); }

/* Kaartjes */
.map { display: block; width: 100%; height: auto; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.map__land { fill: var(--sand); stroke: #fff; stroke-width: 1; }
.map__radius { fill: rgba(1, 34, 81, 0.05); stroke: var(--navy); stroke-width: 1.5; stroke-dasharray: 4 5; }
.map__dot { fill: var(--navy); stroke: #fff; stroke-width: 2; }
.map__dot--rest { fill: var(--grey-dot); r: 4; stroke-width: 1.5; }
.map__dot--main { fill: var(--bordeaux); stroke: #fff; stroke-width: 2; }
.map__name { font-size: 13px; font-weight: 700; fill: var(--ink); paint-order: stroke; stroke: var(--card); stroke-width: 4px; }

/* Kantoorpagina */
.office { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); gap: 2.5rem; padding: 2rem 0 3rem; align-items: start; }
.office__title { margin: 0 0 0.4rem; font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.1; letter-spacing: -0.015em; color: var(--navy); overflow-wrap: anywhere; }
.office__where { margin: 0 0 1.25rem; font-size: 1.1rem; color: var(--muted); }
.office__text { max-width: 42rem; }
.office__text p, .office__text ul { margin: 0 0 1rem; }
.tags { list-style: none; margin: 0 0 1.75rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag { display: inline-block; padding: 0.35rem 0.8rem; font-weight: 600; text-decoration: none; color: var(--navy); background: var(--card); border: 1px solid var(--line); border-radius: 999px; }
.tag:hover { border-color: var(--navy); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.card .map { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.card__body { padding: 1.25rem; }
.card__title { margin: 0 0 0.75rem; font-size: 1.15rem; color: var(--navy); }
.card__list { margin: 0; }
.card__row { padding: 0.6rem 0; border-top: 1px solid var(--line); }
.card__row:first-child { border-top: 0; padding-top: 0; }
.card__label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.card__value { margin: 0.1rem 0 0; overflow-wrap: anywhere; }
.card__extra { display: block; margin-top: 0.2rem; }

/* Melding */
.note { margin: 2.5rem 0 0; max-width: 46rem; padding: 1rem 1.25rem; font-size: 0.95rem; background: var(--soft); border-left: 4px solid var(--bordeaux); }

/* Voet */
.foot { margin-top: 3rem; background: var(--navy); color: #e3e9f3; }
.foot__in { max-width: var(--wrap); margin: 0 auto; padding: 2.5rem 1.25rem 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem 3rem; }
.foot__col { max-width: 26rem; }
.foot__logo { display: block; width: 190px; height: auto; margin-bottom: 0.9rem; }
.foot__text { margin: 0; }
.foot__list { list-style: none; margin: 0; padding: 0; }
.foot__list li { padding: 0.2rem 0; }
.foot__link, .foot__link:hover { color: #fff; }
.foot :focus-visible { outline-color: #ffd34d; }
.foot__base { max-width: var(--wrap); margin: 0 auto; padding: 1rem 1.25rem 1.75rem; font-size: 0.9rem; border-top: 1px solid rgba(255, 255, 255, 0.2); }

@media (max-width: 52rem) {
  .hero, .place, .office { grid-template-columns: 1fr; }
  .place__side { position: static; }
  .js-menu .top__in { flex-wrap: nowrap; }
  .js-menu .top__menu-btn { display: inline-flex; }
  .js-menu .top__menu { display: none; position: absolute; left: 0; right: 0; top: 100%; padding: 0.25rem 1.25rem 1rem; background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(22, 24, 28, 0.12); }
  .js-menu .top__menu--open { display: block; }
  .js-menu .top__nav { flex-direction: column; gap: 0; font-size: 1.15rem; }
  .js-menu .top__link { display: block; padding: 0.8rem 0.25rem; border-bottom: 1px solid var(--line); }
  .js-menu .top__nav li:last-child .top__link { border-bottom: 0; }
  .js-menu .top__link[aria-current="page"] { border-bottom-color: var(--line); box-shadow: inset 4px 0 0 var(--navy); padding-left: 0.9rem; }
}
@media (max-width: 30rem) {
  .top__logo-img { width: 180px; }
  .hero__intro { font-size: 1.1rem; }
  .firm { grid-template-columns: 1fr; }
  .firm__km { order: 2; font-size: 0.95rem; }
  .firm__body { order: 1; }
}
/* Heel smal (320 px): alleen het icoon; het woord "Menu" blijft voor schermlezers */
@media (max-width: 23rem) {
  .top__menu-btn { padding: 0.5rem 0.7rem; }
  .top__menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
