/* Verilak website. Colours from src/verilak/desktop/theme.py (Provincie Zuid-Holland). */
:root {
  --primary: #281f6b;
  --primary-hover: #3a2e8e;
  --ink: #1b1548;
  --accent: #efcc36;
  --danger: #d32939;
  --bg: #f5f4fa;
  --surface: #ffffff;
  --tint: #eceaf6;
  --border: #dad7ea;
  --text: #1f1b3a;
  --muted: #545072;
  --radius: 12px;
  --wrap: 72rem;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--primary); text-underline-offset: 0.18em; }
a:hover { color: var(--primary-hover); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { color: var(--primary); line-height: 1.2; margin: 0 0 0.6em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; }
p, ul, ol { margin: 0 0 1em; }
li { margin-bottom: 0.35em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 48rem) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: 0.6em 1em; z-index: 10; }
.skip:focus { left: 16px; top: 16px; }

/* Header */
.site-header { background: var(--primary); color: #fff; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem; padding-top: 0.8rem; padding-bottom: 0.8rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.3rem; margin-right: auto; }
.brand:hover { color: #fff; }
.brand svg { width: 40px; height: 40px; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; list-style: none; margin: 0; padding: 0; }
.site-nav li { margin: 0; }
.site-nav a { color: #fff; text-decoration: none; font-size: 0.98rem; padding: 0.3em 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--accent); color: #fff; }
.site-header :focus-visible { outline-color: #fff; }

/* Buttons */
.btn { display: inline-block; padding: 0.75em 1.35em; border-radius: 8px; font-weight: 600; text-decoration: none; border: 2px solid var(--primary); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }
.btn-secondary { background: transparent; color: var(--primary); }
.btn-secondary:hover { background: var(--tint); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn-accent:hover { background: #f5da62; border-color: #f5da62; color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }

/* Breadcrumbs */
.crumbs { font-size: 0.92rem; color: var(--muted); padding-top: 1.2rem; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "›"; margin-right: 0.4rem; }
.crumbs [aria-current] { color: var(--text); }

/* Sections */
.hero { padding: 3rem 0 3.5rem; }
.hero .wrap { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 56rem) { .hero .wrap { grid-template-columns: 1.25fr 1fr; } }
.hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 38rem; }
.hero-art { justify-self: center; width: min(100%, 22rem); }
.eyebrow { display: inline-block; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); background: var(--accent); padding: 0.25em 0.7em; border-radius: 999px; margin-bottom: 1rem; }
.page-intro { padding: 1.5rem 0 2rem; }
.page-intro .lead { font-size: 1.15rem; color: var(--muted); max-width: 46rem; }
section { padding: 2.5rem 0; }
.band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.dark { background: var(--primary); color: #fff; }
.dark h2, .dark h3 { color: #fff; }
.dark a { color: #fff; }
.prose { max-width: 46rem; }
.muted { color: var(--muted); }

.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.card h3 { margin-bottom: 0.4em; }
.card p:last-child { margin-bottom: 0; }
.card-top { border-top: 6px solid var(--accent); }
.card a.more { font-weight: 600; }

.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin: 0; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; margin-bottom: 0.8rem; }

.checks { list-style: none; padding: 0; }
.checks li { padding-left: 1.9rem; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0.2rem; top: 0.45em; width: 0.55rem; height: 1rem; border: solid var(--primary); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.dark .checks li::before { border-color: var(--accent); }

.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 0.98rem; }
caption { caption-side: bottom; padding: 0.75rem 1rem; text-align: left; color: var(--muted); font-size: 0.92rem; }
th, td { text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { background: var(--tint); color: var(--primary); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 600; white-space: nowrap; }

.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 0.75rem; }
.faq summary { cursor: pointer; padding: 1rem 1.25rem; font-weight: 600; color: var(--primary); list-style-position: outside; }
.faq details[open] summary { border-bottom: 1px solid var(--border); }
.faq .answer { padding: 1rem 1.25rem 0.25rem; }

.note { background: var(--tint); border-left: 5px solid var(--primary); padding: 1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0; }
.note p:last-child { margin-bottom: 0; }

.cta { text-align: center; }
.cta .actions { justify-content: center; }
.cta p { max-width: 40rem; margin-left: auto; margin-right: auto; }

/* Footer */
.site-footer { background: var(--ink); color: #d9d6ee; padding: 2.5rem 0 2rem; font-size: 0.95rem; }
.site-footer a { color: #fff; }
.site-footer .grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.site-footer h2 { color: #fff; font-size: 1rem; margin-bottom: 0.6rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer :focus-visible { outline-color: #fff; }
.site-footer .legal { border-top: 1px solid #3a3470; margin-top: 2rem; padding-top: 1.2rem; }
