body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }

/* Layout concept: a church facade of arched windows opens the page, then a filterable grid of the practices that share the former Mariakerk, a live prikpunt clock and the two addresses. */
:root {
  --bg: #f1f4f3;
  --surface: #ffffff;
  --ink: #11282e;
  --muted: #4d6469;
  --line: #d3dcdb;
  --accent: #d9480f;






  --plate: #ffffff;
  --plate-sand: #d2cdc0;
  --font-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Figtree', 'Segoe UI', system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1a1e; --surface: #152429; --ink: #e9f0ef; --muted: #9db1b4; --line: #263b41;
    --accent: #ff8a4c;

    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1a1e; --surface: #152429; --ink: #e9f0ef; --muted: #9db1b4; --line: #263b41;
  --accent: #ff8a4c;

  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 8rem; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 1rem; line-height: 1.6;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 30; background: #ffffff;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap {
  width: 100%; max-width: 1180px; margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; letter-spacing: -0.015em; }
.label { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: #ffffff; border-bottom: 1px solid #d3dcdb;
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.7rem; }
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; flex: none; }
nav { display: flex; gap: 1.4rem; overflow-x: auto; white-space: nowrap; min-width: 0; scrollbar-width: none; }
nav::-webkit-scrollbar { display: none; }
nav a { text-decoration: none; color: #4d6469; font-weight: 500; font-size: 0.95rem; padding-block: 0.3rem; }
nav a:hover { color: #11282e; }

/* Hero */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4rem); }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: end; }
.hero h1 { max-width: 18ch; font-size: clamp(2.5rem, 5.8vw, 4.5rem); line-height: 1.02; font-weight: 700; }
.hero h1 span { color: var(--accent); }
.lead { max-width: 52ch; font-size: 1.15rem; color: var(--muted); margin: 1.4rem 0 0; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; padding: 0.8rem 1.4rem;
  border-radius: 999px; border: 2px solid var(--ink); color: var(--ink); background: transparent;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.hero-addr { margin: 2rem 0 0; color: var(--muted); }


/* Sections */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.25rem 2rem; margin-bottom: 2rem; }
.section-head h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); line-height: 1.08; font-weight: 700; }
.section-head p { margin: 0.6rem 0 0; color: var(--muted); max-width: 48ch; }


/* Practice cards */
.grid { display: grid; grid-template-columns: 1fr; gap: 1rem; grid-auto-flow: dense; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card--wide { grid-column: span 2; }
  .card--wide ul { grid-template-columns: 1fr 1fr; column-gap: 1.75rem; }
}

.card {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
}
.plate { height: 132px; display: flex; align-items: center; justify-content: center; padding: 0.75rem 1.25rem; background: var(--plate); border-bottom: 1px solid var(--line); }
.plate--sand { background: var(--plate-sand); }
.plate img { display: block; max-height: 100px; max-width: 100%; width: auto; height: auto; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 1.2rem 1.4rem 1.4rem; min-width: 0; }
.tag { color: var(--accent); }
.card h3 { font-size: 1.3rem; line-height: 1.2; font-weight: 700; margin: 0.3rem 0 0.5rem; }
.card-lead { margin: 0 0 0.75rem; color: var(--muted); }
.card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.card li { position: relative; padding-left: 1.1rem; min-width: 0; overflow-wrap: anywhere; }
.card li::before { content: ""; position: absolute; left: 0; top: 0.78em; width: 7px; height: 2px; background: var(--accent); }
.more { margin-top: auto; padding-top: 1.1rem; font-weight: 600; text-decoration: none; }
.more span { display: inline-block; transition: transform 0.15s; }
.more:hover { text-decoration: underline; text-underline-offset: 4px; }
.more:hover span { transform: translateX(3px); }

/* Prikpunt */

/* Locatie */
.places { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.place { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1.5rem 1.6rem; display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.place .label { color: var(--accent); }
.place address { font-style: normal; font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.2; font-weight: 700; margin-top: 0.2rem; }
.place a { margin-top: 0.9rem; font-weight: 600; width: fit-content; text-underline-offset: 4px; }

/* Foto's */
.photos { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; padding: 1.75rem 2rem; border: 1.5px solid var(--ink); border-radius: 10px; }
.photos h2 { font-size: 1.6rem; font-weight: 700; }
.photos p { margin: 0.3rem 0 0; color: var(--muted); }

footer { border-top: 1px solid var(--line); padding-block: 2rem 2.5rem; color: var(--muted); font-size: 0.92rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .places { grid-template-columns: 1fr; }
  .photos { padding: 1.4rem; }
  nav { gap: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .more span { transition: none; }
}
button.more { background: none; border: 0; padding: 1.1rem 0 0; font: inherit; font-weight: 600; color: inherit; cursor: pointer; text-align: left; width: fit-content; }
dialog { width: min(760px, calc(100% - 32px)); max-height: calc(100% - 32px); overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); padding: clamp(1.4rem, 4vw, 2.25rem); }
dialog::backdrop { background: rgba(8, 20, 24, 0.62); }
.dlg-close { position: absolute; top: 0.75rem; right: 0.75rem; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.dlg-close:hover { border-color: var(--ink); }
.dlg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem 2.5rem; align-items: start; }
dialog h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.1; font-weight: 700; margin-top: 0.3rem; padding-right: 2rem; }
dialog p { color: var(--muted); margin: 0.8rem 0 0; }
.dlg-tag { color: var(--accent); }
.dlg-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.3rem; }
.dlg-list li { position: relative; padding-left: 1.1rem; }
.dlg-list li::before { content: ""; position: absolute; left: 0; top: 0.78em; width: 7px; height: 2px; background: var(--accent); }
@media (max-width: 640px) { .dlg-grid { grid-template-columns: 1fr; } }
.brand-logo { display: block; height: 84px; width: auto; }
@media (max-width: 640px) { .brand-logo { height: 64px; } }
.plate--cover { padding: 0; background: #faf5f4; }
.plate--cover img { width: 100%; height: 100%; max-height: none; object-fit: cover; object-position: 50% 50%; }
.dlg-side { display: grid; gap: 1rem; min-width: 0; }
.contact { margin: 0; display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.contact > div { padding: 0.8rem 1.1rem; border-bottom: 1px solid var(--line); min-width: 0; }
.contact > div:last-child { border-bottom: 0; }
.contact dt { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.contact dd { margin: 0.1rem 0 0; font-weight: 500; overflow-wrap: anywhere; }
.contact a { text-underline-offset: 3px; }
.contact-pending { margin: 0; padding: 1rem 1.1rem; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); }
button.btn { font: inherit; font-weight: 600; cursor: pointer; }
dialog.gallery { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; border: 0; border-radius: 0; padding: 0; background: var(--bg); overflow: auto; }
.g-head { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.g-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.9rem; }
.gallery .g-head h2 { font-size: clamp(1.2rem, 2.6vw, 1.7rem); margin: 0; padding: 0; line-height: 1.15; }
.gallery .g-head p { margin: 0.15rem 0 0; font-size: 0.9rem; }
.g-close { flex: none; font: inherit; font-weight: 600; cursor: pointer; color: var(--ink); background: transparent; border: 1.5px solid var(--ink); border-radius: 999px; padding: 0.6rem 1.25rem; }
.g-close:hover { background: var(--ink); color: var(--bg); }
.g-grid { column-width: 260px; column-gap: 12px; padding-block: 1.25rem 3rem; }
.ph { display: block; width: 100%; margin: 0 0 12px; padding: 0; border: 0; border-radius: 6px; overflow: hidden; background: var(--line); cursor: zoom-in; break-inside: avoid; }
.ph img { display: block; width: 100%; height: auto; transition: transform 0.35s; }
.ph:hover img { transform: scale(1.03); }
.lb { display: none; position: fixed; inset: 0; z-index: 50; background: rgba(5, 12, 14, 0.95); align-items: center; justify-content: center; padding: 4.5rem 4.5rem 3.5rem; }
.lb[data-open="true"] { display: flex; }
.lb img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 4px; }
.lb-btn { position: absolute; width: 3.1rem; height: 3.1rem; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 1.9rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0 0 0.2rem; }
.lb-btn:hover { background: rgba(255, 255, 255, 0.28); }
.lb-close { top: max(1rem, env(safe-area-inset-top, 0px)); right: max(1rem, env(safe-area-inset-right, 0px)); }
.lb-prev { left: max(1rem, env(safe-area-inset-left, 0px)); top: 50%; transform: translateY(-50%); }
.lb-next { right: max(1rem, env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 1rem; left: 0; right: 0; margin: 0; text-align: center; color: rgba(255, 255, 255, 0.85); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .lb { padding: 4.5rem 0.75rem 4.5rem; }
  .lb-prev, .lb-next { top: auto; bottom: 0.75rem; transform: none; }
  .lb-prev { left: 1rem; } .lb-next { right: 1rem; }
  .g-grid { column-width: 150px; column-gap: 8px; }
  .ph { margin-bottom: 8px; }
}
