/* Egelinck BV: single stylesheet, no build step. */

:root {
  --blue: #14365c;
  --blue-2: #1f4d80;
  --blue-soft: #e7eef6;
  --brick: #b5522b;
  --brick-dark: #8f3d1d;
  --green: #2f6b45;
  --green-soft: #e5f1e8;
  --paper: #faf8f4;
  --surface: #fff;
  --ink: #1d2733;
  --muted: #5a6573;
  --line: #e4e0d8;
  --radius: 12px;
  --shadow: 0 1px 2px rgb(20 54 92 / .06), 0 4px 16px rgb(20 54 92 / .06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
@media (min-width: 56rem) { html:has(.ko-tools) { scroll-padding-top: 15rem; } }
body {
  margin: 0;
  font: 1.0625rem/1.6 var(--font);
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img, svg { max-width: 100%; }

a { color: var(--blue-2); text-underline-offset: .15em; }
a:hover { color: var(--brick); }
:focus-visible { outline: 3px solid var(--brick); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.2; color: var(--blue); text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 2.8rem); margin: 0 0 .5rem; letter-spacing: -.01em; }
h2 { font-size: 1.45rem; margin: 2rem 0 .75rem; }
h3 { font-size: 1.1rem; margin: 0 0 .4rem; }
p { margin: 0 0 1rem; }
address { font-style: normal; }

.wrap { width: 100%; max-width: 68rem; margin-inline: auto; padding-inline: 1.25rem; }
.section { padding-block: 2rem; }
.section + .section { padding-top: 0; }
.prose > * { max-width: 46rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40rem; }
.big { font-size: 1.5rem; font-weight: 700; margin: .25rem 0 .5rem; }
.big a { text-decoration: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip { position: absolute; left: 1rem; top: -4rem; background: var(--surface); padding: .5rem 1rem; z-index: 100; }
.skip:focus { top: 1rem; }

/* Header and navigation */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--blue); color: #fff;
  box-shadow: 0 1px 0 rgb(255 255 255 / .06), 0 2px 12px rgb(0 0 0 / .12);
}
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 4.25rem; }
.brand { display: flex; align-items: center; gap: .75rem; color: #fff; text-decoration: none; margin-right: auto; }
.brand:hover { color: #fff; }
.logo { flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.2rem; letter-spacing: .02em; }
.brand-text small { font-size: .8rem; opacity: .8; }

.menu-toggle {
  display: inline-flex; align-items: center; gap: .4rem;
  font: inherit; font-size: .95rem; color: #fff; background: transparent;
  border: 1px solid rgb(255 255 255 / .35); border-radius: 8px; padding: .4rem .7rem; cursor: pointer;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; text-decoration: none; }

/* Mobile: the menu is a popover panel */
.site-nav[popover] {
  margin: 0; inset: 4.25rem 0 auto auto; width: min(20rem, 100vw);
  max-height: calc(100vh - 4.25rem); overflow: auto;
  border: 0; padding: .75rem; background: var(--surface);
  box-shadow: -8px 12px 32px rgb(0 0 0 / .18); border-radius: 0 0 0 var(--radius);
}
.site-nav[popover]::backdrop { background: rgb(10 25 45 / .35); }
.site-nav a { padding: .65rem .75rem; border-radius: 8px; color: var(--blue); font-weight: 600; }
.site-nav a:hover { background: var(--blue-soft); color: var(--blue); }
.site-nav a[aria-current="page"] { background: var(--blue-soft); }
.site-nav .sub a { font-weight: 400; padding-left: 1.75rem; }

@media (min-width: 56rem) {
  .menu-toggle { display: none; }
  .site-nav[popover] {
    display: block; position: static; inset: auto; width: auto; max-height: none; overflow: visible;
    padding: 0; background: none; box-shadow: none; border-radius: 0;
  }
  .site-nav > ul { display: flex; gap: .25rem; }
  .site-nav > ul > li { position: relative; }
  .site-nav > ul > li > a { color: #fff; font-weight: 500; padding: .5rem .8rem; }
  .site-nav > ul > li > a:hover,
  .site-nav > ul > li:focus-within > a { background: rgb(255 255 255 / .12); color: #fff; }
  .site-nav > ul > li > a.active { background: rgb(255 255 255 / .16); box-shadow: inset 0 -2px 0 var(--brick); }
  .site-nav > ul > li > a[aria-current="page"] { background: rgb(255 255 255 / .16); }
  .has-sub > a::after { content: ""; display: inline-block; margin-left: .4rem; border: 4px solid transparent; border-top-color: currentColor; vertical-align: 1px; }
  .site-nav .sub {
    position: absolute; top: 100%; left: 0; min-width: 15rem; padding: .4rem;
    background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow), 0 12px 32px rgb(0 0 0 / .12);
    opacity: 0; visibility: hidden; transform: translateY(4px); transition: .15s ease;
  }
  .has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
  .site-nav .sub a { padding: .5rem .75rem; font-weight: 500; }
}

/* Page heads and hero */
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); padding-block: 2.25rem 1.75rem; }
.page-head .lead { margin: 0; }
.crumb { margin: 0 0 .5rem; font-size: .9rem; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a::before { content: "\2190\00a0"; }

.hero { position: relative; background: linear-gradient(180deg, var(--surface), var(--blue-soft)); color: var(--blue); overflow: hidden; }
.hero-inner { padding-block: 3.5rem 9rem; position: relative; z-index: 1; }
.hero h1 { max-width: 18ch; }
/* Canal-house row: a fixed-size pattern tiled horizontally, so gables are never cropped. */
.skyline { position: absolute; left: 0; right: 0; bottom: 0; display: block; width: 100%; height: 120px; color: var(--blue); opacity: .9; }

/* Tiles and cards */
.tiles { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.tiles-small { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.tile {
  display: flex; flex-direction: column; gap: .3rem;
  padding: 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); text-decoration: none; box-shadow: var(--shadow);
  transition: transform .15s ease, border-color .15s ease;
}
.tile:hover { transform: translateY(-2px); border-color: var(--blue-2); color: var(--ink); }
.tile strong { font-size: 1.15rem; color: var(--blue); }
.tile strong::after { content: " \2192"; color: var(--brick); }
.tile span { color: var(--muted); }
.tile .tile-kicker { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: var(--brick); }
.tile-accent { border-top: 4px solid var(--brick); }

.contact-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); margin-bottom: 1rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.card h2 { font-size: 1.1rem; margin: 0 0 .5rem; }
.card p:last-child { margin-bottom: 0; }
.card-urgent { border-left: 5px solid var(--brick); }
.card-urgent .big a { color: var(--brick-dark); }

.notice, .callout { border-radius: var(--radius); padding: 1.1rem 1.3rem; margin: 1.5rem 0; }
.notice { background: var(--blue-soft); }
.callout { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--brick); box-shadow: var(--shadow); }
.notice p:last-child, .callout p:last-child { margin-bottom: 0; }

.button {
  display: inline-block; background: var(--brick); color: #fff; text-decoration: none; font-weight: 600;
  padding: .6rem 1.1rem; border-radius: 8px;
}
.button:hover { background: var(--brick-dark); color: #fff; }

/* Numbered steps and checklist */
.steps, .checklist { list-style: none; padding: 0; margin: 1.25rem 0; counter-reset: step; }
.steps > li, .checklist > li {
  counter-increment: step; position: relative; padding-left: 3rem; margin-bottom: 1.25rem;
}
.steps > li::before, .checklist > li::before {
  content: counter(step); position: absolute; left: 0; top: -.1rem;
  width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--blue); color: #fff; font-weight: 700; font-size: .95rem;
}
.steps ul { padding-left: 1.1rem; margin: .25rem 0 0; }
.checklist > li::before { content: "\2713"; background: var(--green-soft); color: var(--green); }

/* Documents */
.doc-link { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; }
.doc-link small { font-weight: 400; color: var(--muted); }
.doc-ext {
  flex: none; font-size: .7rem; font-weight: 700; letter-spacing: .04em; color: #fff;
  background: var(--brick); border-radius: 4px; padding: .15rem .35rem; line-height: 1.3;
}
.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.doc-list a {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink); box-shadow: var(--shadow);
}
.doc-list a:hover { border-color: var(--blue-2); color: var(--ink); }
.doc-list .doc-ext { font-size: .75rem; padding: .35rem .5rem; }
.doc-body { flex: 1; display: flex; flex-direction: column; }
.doc-body strong { color: var(--blue); }
.doc-body span, .doc-size { color: var(--muted); font-size: .95rem; }
.doc-size { white-space: nowrap; }

/* Klein onderhoud */
.ko-tools { background: var(--paper); padding-block: .75rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
@media (min-width: 56rem) { .ko-tools { position: sticky; top: 4.25rem; z-index: 10; } }
.az { display: flex; flex-wrap: wrap; gap: .25rem; margin-bottom: .5rem; }
.az a {
  min-width: 2rem; text-align: center; padding: .2rem .3rem; border-radius: 6px;
  background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: .9rem;
}
.az a:hover { background: var(--blue); color: #fff; }
.ko-filter { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-bottom: .5rem; }
.ko-filter > label { font-weight: 600; color: var(--blue); }
.ko-filter input[type="search"] {
  flex: 1 1 14rem; font: inherit; padding: .5rem .8rem; border: 1px solid #c9c3b8; border-radius: 8px; background: var(--surface);
}
.seg { display: inline-flex; border: 1px solid #c9c3b8; border-radius: 8px; overflow: hidden; padding: 0; margin: 0; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: .45rem .8rem; font-size: .9rem; background: var(--surface); }
.seg input:checked + span { background: var(--blue); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--brick); outline-offset: -3px; }
.ko-count { margin: 0; font-size: .9rem; color: var(--muted); }
.legend { margin: 0; font-size: .9rem; color: var(--muted); }

.letter { font-size: 1rem; color: var(--brick); border-bottom: 2px solid var(--line); padding-bottom: .25rem; margin: 1.75rem 0 1rem; }
.ko-letter { display: grid; gap: 1rem; }
.ko-letter > .letter { margin-bottom: 0; }
.ko-cat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; box-shadow: var(--shadow); }
.ko-cat:target { border-color: var(--brick); box-shadow: 0 0 0 3px rgb(181 82 43 / .2); }
.ko-items { list-style: none; padding: 0; margin: 0; }
.ko-items li {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem;
  padding: .55rem 0; border-top: 1px solid var(--line);
}
.ko-items li:first-child { border-top: 0; }
.ko-task small { display: block; color: var(--muted); font-size: .88rem; margin-top: .2rem; }
.ko-note, .ko-see { font-size: .92rem; color: var(--muted); margin: .6rem 0 0; }
.ko-note::before { content: "Let op: "; font-weight: 600; color: var(--ink); }
.ko-alias { margin: 0; color: var(--muted); padding-left: 1.25rem; }
.badge {
  flex: none; font-size: .78rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; white-space: nowrap;
}
.badge.huurder { background: var(--blue-soft); color: var(--blue); }
.badge.verhuurder { background: var(--green-soft); color: var(--green); }
.to-top { margin-top: 2rem; }

/* Footer */
.site-footer { background: var(--blue); color: rgb(255 255 255 / .85); margin-top: 3rem; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #ffd9c9; }
.footer-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); padding-block: 2.5rem 1.5rem; }
.footer-grid p { margin: 0; }
.footer-name { font-weight: 700; color: #fff; font-size: 1.1rem; }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / .15); padding-block: 1rem; font-size: .85rem; color: rgb(255 255 255 / .6); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media print {
  .site-header, .site-footer, .ko-tools, .skyline { display: none; }
  body { background: #fff; }
}
