/* Website Dr. Thomas Van den Broeck — minimalistisch, rustig, wabi-sabi */

:root {
  --bg: #fbfaf7;          /* zacht warm wit */
  --bg-2: #f3f1ec;        /* heel licht steen, voor rustige vlakken */
  --ink: #34332f;         /* zacht zwart */
  --ink-2: #767068;       /* gedempt voor bijtekst */
  --line: #e7e3dc;        /* nauwelijks zichtbare lijn */
  --accent: #55685f;      /* salie, gedempt groen */
  --accent-2: #b9a17c;    /* zand/oker, enkel voor accenten */
  --max: 60rem;
  --text: 38rem;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere; /* lange woorden breken alleen af als ze anders niet passen (grote letters op gsm); geen koppeltekens */
}
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.25; color: var(--ink); margin: 0 0 .7em; letter-spacing: .005em; }
h1 { font-size: clamp(1.9rem, 3.6vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 2.2vw, 1.6rem); margin-top: 0; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1.1em; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: #3f514a; }
ul, ol { padding-left: 1.2em; }
li { margin: .35em 0; }
strong { font-weight: 600; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.4rem; }
.prose { max-width: var(--text); }
.lead { font-size: 1.15rem; color: var(--ink-2); }
.muted { color: var(--ink-2); }
.small { font-size: .92rem; }
.eyebrow { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 1.2rem; }

/* Nog te bevestigen: subtiel, enkel in de preview zichtbaar als gestippelde lijn */
.todo { background: none; border-bottom: 2px dotted var(--accent-2); padding-bottom: 1px; }
mark.todo { color: inherit; }

/* Toegankelijkheid */
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: .5rem 1rem; }
.skip:focus { left: 1rem; z-index: 100; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }

/* Header */
.site-header { background: var(--bg); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.3rem; padding-bottom: 1.1rem; flex-wrap: wrap; }
.brand { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--serif); font-size: 1.2rem; }
.brand-sub { font-size: .78rem; color: var(--ink-2); letter-spacing: .06em; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.6rem; flex-wrap: wrap; }
.site-nav li { margin: 0; }
.site-nav a { text-decoration: none; color: var(--ink-2); font-size: .92rem; padding: .3rem 0; border-bottom: 1px solid transparent; }
.site-nav a:hover, .site-nav a.is-current { color: var(--ink); border-bottom-color: var(--accent-2); }
.menu-toggle { display: none; font: inherit; font-size: .9rem; background: none; border: 1px solid var(--line); border-radius: 999px; padding: .3rem .9rem; color: var(--ink); }
@media (max-width: 760px) {
  .menu-toggle { display: inline-block; }
  .site-nav { display: none; width: 100%; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: .5rem 0 .5rem; }
  .site-nav a { display: block; padding: .6rem 0; border-bottom: 1px solid var(--line); }
}

/* Secties: veel lucht, dunne scheidingen */
.section { padding: 4.5rem 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-soft { background: var(--bg-2); border-top: 0 !important; }
@media (max-width: 760px) { .section { padding: 3rem 0; } }

/* Intro met portret */
.hero { padding: 5rem 0 4.5rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); gap: 4rem; align-items: center; }
@media (max-width: 760px) { .hero { padding: 2.5rem 0 2.5rem; } .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; } }
.hero h1 { margin-bottom: 1rem; }
.hero .when { font-family: var(--serif); font-size: 1.2rem; margin: 0 0 .4rem; }
.hero .lead { margin-bottom: 1.8rem; }
.portrait { width: 100%; max-width: 22rem; height: auto; align-self: start; aspect-ratio: 1; object-fit: cover; border-radius: 58% 42% 55% 45% / 47% 56% 44% 53%; display: block; filter: saturate(.85) contrast(.97); } /* organische vorm (keuze Thomas 05-11) */
@media (max-width: 760px) { .portrait { max-width: 16rem; } }

/* Knoppen: één rustige primaire knop, verder tekstlinks */
.btn { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; padding: .85rem 1.4rem; border-radius: 3px; font-size: .98rem; letter-spacing: .01em; }
.btn:hover { background: #46574f; color: #fff; }
.btn-row { display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; }
.arrow { text-decoration: none; }
.arrow::after { content: " →"; }

/* Rustige lijst van links (geen kaders) */
.links { list-style: none; padding: 0; margin: 0; max-width: var(--text); }
.links li { margin: 0; border-top: 1px solid var(--line); }
.links li:last-child { border-bottom: 1px solid var(--line); }
.links a { display: block; padding: 1.1rem 0; text-decoration: none; color: var(--ink); }
.links a:hover .links-title { color: var(--accent); }
.links-title { font-family: var(--serif); font-size: 1.15rem; display: block; }
.links-sub { color: var(--ink-2); font-size: .95rem; display: block; margin-top: .15rem; }

/* Blokken met kopje links en tekst rechts (desktop), gestapeld (mobiel) */
.row { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, var(--text)); gap: 2.5rem; padding: 2.2rem 0; border-top: 1px solid var(--line); }
.row:first-of-type { border-top: 0; padding-top: 0; }
.row h2 { font-size: 1.25rem; margin: 0; }
.row > div > :last-child { margin-bottom: 0; }
@media (max-width: 760px) { .row { grid-template-columns: minmax(0, 1fr); gap: .6rem; padding: 1.8rem 0; } }

.note { border-left: 2px solid var(--accent-2); padding: .3rem 1rem; color: var(--ink-2); margin: 1.4rem 0; }
.checklist { list-style: none; padding: 0; }
.checklist li { padding-left: 1.6em; position: relative; }
.checklist li::before { content: "–"; position: absolute; left: 0; color: var(--accent-2); }

/* Feitenlijst */
.facts { display: grid; grid-template-columns: minmax(0, 10rem) minmax(0, 1fr); gap: .5rem 1.5rem; margin: 0 0 1.2rem; }
.facts dt { color: var(--ink-2); }
.facts dd { margin: 0; }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; gap: 0; } .facts dt { margin-top: .6rem; font-size: .88rem; } }

/* Tabellen (tarieven) */
table { border-collapse: collapse; width: 100%; margin: 1.5rem 0; font-size: .98rem; }
th, td { text-align: left; padding: .8rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 500; color: var(--ink-2); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }
@media (max-width: 640px) {
  table.tarieven thead { display: none; }
  table.tarieven tr { display: block; border-bottom: 1px solid var(--line); padding: .8rem 0; }
  table.tarieven td { display: flex; justify-content: space-between; gap: 1rem; border: 0; padding: .1rem 0; }
  table.tarieven td:first-child { display: block; font-weight: 600; padding-bottom: .3rem; }
  table.tarieven td.num::before { content: attr(data-label); color: var(--ink-2); font-size: .85rem; white-space: normal; text-align: left; font-weight: 400; }
}

/* Uitklapbare onderwerpen */
details { border-top: 1px solid var(--line); padding: .5rem 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-family: var(--serif); font-size: 1.2rem; padding: .7rem 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent-2); font-size: 1.3rem; font-family: var(--sans); }
details[open] summary::after { content: "–"; }
details .prose { padding-bottom: .8rem; color: var(--ink); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 4rem; padding: 3rem 0 5.5rem; color: var(--ink-2); font-size: .93rem; line-height: 1.7; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr)); gap: 2rem; }
.footer-title { font-family: var(--serif); color: var(--ink); margin-bottom: .2em; }
.footer-legal { margin-top: 2.5rem; font-size: .82rem; }

/* Vaste belknop op kleine schermen */
.call-bar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: 3.6rem; }
  .call-bar { display: flex; justify-content: center; gap: .35em; position: fixed; left: 0; right: 0; bottom: 0; background: var(--accent); color: #fff; text-align: center; padding: .9rem 1rem; text-decoration: none; z-index: 30; }
  /* Altijd één regel: bij grote letters wordt het label ingekort, het nummer blijft volledig */
  .call-bar-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .call-bar-num { flex: none; white-space: nowrap; }
  /* bij zeer grote letters op een smal scherm blijft de belbalk leesbaar maar compact (max. 5% van de schermbreedte) */
  .call-bar { font-size: min(1rem, 5vw); }
}

@media print {
  .site-header, .site-footer, .call-bar, .btn, .menu-toggle { display: none !important; }
  body { background: #fff; color: #000; }
  .todo { border: 0; }
}

/* lange e-mailadressen en links mogen afbreken bij grote letters */
a { overflow-wrap: anywhere; }

/* smallere kolom (vervangt inline style, nodig voor de CSP) */
.narrow { max-width: 44rem; }

/* Tweede knop (omlijnd) */
.btn-secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn-secondary:hover { background: var(--bg-2); color: var(--ink); }
button.btn { font: inherit; border: 0; cursor: pointer; }

/* Afspraakformulier */
.form { max-width: 36rem; }
.form .field { margin: 0 0 1.1rem; }
.form label { display: block; font-size: .95rem; margin-bottom: .3rem; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form input[type="date"] {
  width: 100%; font: inherit; padding: .65rem .75rem; border: 1px solid #cfc9bf; border-radius: 3px; background: #fff; color: var(--ink); }
.form input:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 1px; }
.form fieldset { border: 0; padding: 0; margin: 0 0 1.1rem; }
.form legend { font-size: .95rem; margin-bottom: .4rem; padding: 0; }
.form .choice { display: flex; gap: .6rem; align-items: flex-start; margin: .35rem 0; }
.form .choice input { margin-top: .45rem; flex: none; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)); gap: 0 1.2rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hero-phone { margin-top: 1rem; }
.form input, .form button { max-width: 100%; min-width: 0; }
