/* De Zwarte Band, Schagen. Colours from their own style.css (see ../BRAND.md):
   #004481 header blue, #018eda main blue of buttons and links, #4fb0e6 light blue,
   #faf200 yellow of their arrow icon and hero quotes, #013571 darkest blue of main_bg.jpg.
   Font: Source Sans Pro, their own self-hosted webfont files from dezwarteband.eu/css/fonts/. */
@font-face { font-family: 'Source Sans Pro'; src: url('fonts/ssp-regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Source Sans Pro'; src: url('fonts/ssp-bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
:root {
  --blue: #004481;
  --blue-2: #018eda;
  --blue-3: #4fb0e6;
  --yellow: #faf200;
  --navy: #013571;
  --ink: #0f2238;
  --text: #2b3440;
  --muted: #56606c;
  --line: #d6dde5;
  --paper: #fff;
  --tint: #eef4f9;
  --wrap: 1160px;
  --r: 4px;
}
* { 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; font: 400 18px/1.6 'Source Sans Pro', system-ui, sans-serif; color: var(--text); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
h1, h2, h3 { font-weight: 700; color: var(--ink); line-height: 1.12; margin: 0 0 .5em; }
h1, h2 { text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 4.6vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--blue); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 2px; }
.on-dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--yellow); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 12px 22px; border-radius: var(--r); background: var(--blue); color: #fff; border: 1px solid var(--blue); font: 700 17px/1.2 'Source Sans Pro', sans-serif; text-decoration: none; cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--navy); border-color: var(--navy); }
.btn.ghost { background: transparent; color: var(--blue); border-color: #8fa6bf; }
.btn.ghost:hover { background: var(--tint); }
.on-dark .btn { background: #fff; color: var(--blue); border-color: #fff; }
.on-dark .btn:hover { background: #e3eef8; }
.on-dark .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.on-dark .btn.ghost:hover { background: rgba(255,255,255,.1); }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header: logo is white, made for their blue header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--blue); color: #fff; }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 78px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { width: 190px; height: auto; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav-link { color: #fff; text-decoration: none; font-size: 17px; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-link:hover { border-bottom-color: rgba(255,255,255,.5); }
.nav-link[aria-current="page"] { border-bottom-color: var(--yellow); }
.header-phone { background: #fff; color: var(--blue); border-color: #fff; }
.header-phone:hover { background: #e3eef8; border-color: #e3eef8; }
.menu-btn { display: none; }

/* Hero: blue band continues from the header, photo stays at its own size */
.hero { background: var(--blue); color: #fff; padding: 40px 0 72px; }
.hero-in { display: grid; grid-template-columns: 1fr minmax(0, 560px); gap: 56px; align-items: center; }
.hero h1 { color: #fff; }
.hero .lead { font-size: 1.25rem; color: #e2ecf6; max-width: 30em; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 28px; font-size: 16px; color: #cfe0f0; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 18px; height: 18px; color: var(--yellow); }
.hero-photo { margin: 0; }
.hero-photo img { width: 100%; aspect-ratio: 65 / 42; object-fit: cover; border-radius: var(--r); }
.slogan { margin: 0 0 18px; font-size: 17px; color: var(--yellow); font-weight: 700; }

/* Facts */
.facts { border-bottom: 1px solid var(--line); }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr) auto; align-items: center; }
.facts li { padding: 24px 24px 24px 0; display: flex; flex-direction: column; }
.facts li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.facts strong { font-size: 1.35rem; color: var(--ink); line-height: 1.2; }
.facts span { font-size: 16px; color: var(--muted); }
.facts .marks { flex-direction: row; align-items: center; gap: 18px; }
.facts .marks img { height: 44px; width: auto; }

/* Sections */
.section { padding: 88px 0; }
.section.alt { background: var(--tint); }
.section-head { max-width: 44em; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

/* Register list */
.register { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.register li { border-bottom: 1px solid var(--line); }
.register a, .register .row { display: grid; grid-template-columns: 1.1fr 1.3fr 28px; gap: 24px; align-items: center; min-height: 96px; padding: 18px 0; text-decoration: none; color: inherit; }
.register .desc { font-size: 16px; color: var(--muted); }
.register .name { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 700; color: var(--ink); line-height: 1.25; }
.register svg { width: 24px; height: 24px; color: var(--blue-2); }
.register a:hover .name { color: var(--blue); text-decoration: underline; text-decoration-thickness: 2px; }

/* Split: photo + text, photos stay near their real size */
.split { display: grid; grid-template-columns: minmax(0, 520px) 1fr; gap: 64px; align-items: start; }
.split.flip { grid-template-columns: 1fr minmax(0, 520px); }
.split.flip > figure { order: 2; }
.split.narrow { grid-template-columns: minmax(0, 332px) 1fr; }
.split.narrow.flip { grid-template-columns: 1fr minmax(0, 332px); }
.split figure { margin: 0; }
.split img { width: 100%; border-radius: var(--r); object-fit: cover; }
.split > div > p { max-width: 36em; }
.ticks { list-style: none; margin: 18px 0 26px; padding: 0; border-top: 1px solid var(--line); }
.ticks li { padding: 11px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: baseline; }
.ticks svg { width: 18px; height: 18px; color: var(--blue-2); flex: none; transform: translateY(3px); }

/* Dark band */
.band { background: var(--navy); color: #dce8f4; padding: 88px 0; }
.band h2 { color: #fff; }
.band p { font-size: 1.12rem; max-width: 36em; }
.band-in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.band .quote { font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--yellow); font-weight: 700; line-height: 1.25; margin: 0; }

/* Prices */
.prices { width: 100%; border-collapse: collapse; margin: 8px 0 14px; font-size: 18px; }
.prices caption { text-align: left; font-weight: 700; color: var(--ink); font-size: 1.2rem; padding-bottom: 10px; }
.prices th, .prices td { padding: 12px 0; border-bottom: 1px solid var(--line); text-align: left; }
.prices thead th { font-size: 15px; color: var(--muted); font-weight: 400; border-bottom-color: #aebccb; }
.prices td { text-align: right; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.prices thead th:last-child { text-align: right; }
.incl { font-size: 16px; color: var(--muted); max-width: 34em; }
.brands { margin-top: 12px; }
.brands img { width: 100%; max-width: 651px; }
.brand-list { font-size: 17px; color: var(--muted); }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }

/* Service blocks */
.blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; border-top: 1px solid var(--line); }
.blocks article { padding: 32px 0; border-bottom: 1px solid var(--line); }
.blocks h3 { margin-bottom: .4em; }
.blocks p { margin: 0 0 .6em; }

/* Certification marks */
.marks-row { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin: 24px 0; }
.marks-row img { height: 64px; width: auto; }

/* CTA */
.cta { text-align: center; }
.cta h2 { max-width: 20em; margin-inline: auto; }
.cta p { color: var(--muted); max-width: 36em; margin: 0 auto 24px; text-wrap: pretty; }
.cta .btn-row { justify-content: center; }

/* Page head */
.page-head { background: var(--blue); color: #e2ecf6; padding: 44px 0 64px; }
.page-head h1 { color: #fff; }
.page-head p { font-size: 1.22rem; max-width: 36em; }
.page-head .hero-in { align-items: end; }

/* Contact rows */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.kv { margin: 0; border-top: 1px solid var(--line); }
.kv > div { display: grid; grid-template-columns: 170px 1fr; gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.kv dt { font-weight: 700; color: var(--ink); font-size: 16px; }
.kv dd { margin: 0; }
.kv dd a { color: var(--ink); text-decoration-color: var(--blue-2); }
.kv .note { display: block; font-size: 16px; color: var(--muted); }

/* Form */
form { display: grid; gap: 16px; }
label { display: grid; gap: 6px; font-weight: 700; font-size: 16px; color: var(--ink); }
label .req { font-weight: 400; color: var(--muted); }
input, textarea { font: 400 17px/1.4 'Source Sans Pro', sans-serif; padding: 12px 14px; border: 1px solid #93a3b5; border-radius: var(--r); background: #fff; color: var(--text); width: 100%; }
textarea { min-height: 150px; resize: vertical; }
.form-note { font-size: 15px; color: var(--muted); }
.form-ok { display: none; padding: 14px 16px; border: 1px solid var(--blue-2); border-radius: var(--r); background: var(--tint); color: var(--ink); }
.form-ok.show { display: block; }

/* Footer */
.site-footer { background: var(--blue); color: #d4e3f1; padding: 64px 0 28px; font-size: 16px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; }
.foot-grid h2 { font-size: 14px; font-weight: 700; color: #a9c4de; margin: 0 0 12px; letter-spacing: .02em; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: #fff; }
.foot-logo img { width: 200px; margin-bottom: 16px; }
.vaco { display: inline-flex; background: #fff; padding: 8px 10px; border-radius: var(--r); margin-top: 10px; }
.vaco img { height: 30px; width: auto; }
.foot-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.18); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: #a9c4de; font-size: 15px; }

.callbar { display: none; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

@media (max-width: 1020px) {
  .hero-in, .split, .split.flip, .split.narrow, .split.narrow.flip, .band-in, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .split.flip > figure { order: 0; }
  .duo { grid-template-columns: 1fr; gap: 24px; }
  .split.flip.form-first > figure { order: 2; }
  .split figure, .hero-photo { max-width: 560px; }
  .facts ul { grid-template-columns: repeat(3, 1fr); }
  .facts .marks { grid-column: 1 / -1; padding: 0 0 22px; border-left: 0 !important; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.5); border-radius: var(--r); background: transparent; cursor: pointer; }
  .menu-btn span:first-child, .menu-btn span:first-child::before, .menu-btn span:first-child::after { display: block; width: 20px; height: 2px; background: #fff; position: relative; content: ''; }
  .menu-btn span:first-child::before { position: absolute; top: -6px; }
  .menu-btn span:first-child::after { position: absolute; top: 6px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--blue); border-top: 1px solid rgba(255,255,255,.2); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; }
  .nav.open { display: flex; }
  .nav-link { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.2); }
  .nav-link[aria-current="page"] { border-bottom-color: rgba(255,255,255,.2); color: var(--yellow); font-weight: 700; }
  .header-phone { margin-top: 14px; justify-content: center; }
  .brand img { width: 160px; }
  .callbar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding-bottom: env(safe-area-inset-bottom); background: var(--navy); }
  .callbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; background: var(--blue-2); color: #fff; font-weight: 700; font-size: 18px; text-decoration: none; }
  .callbar a + a { background: var(--navy); }
  .callbar svg { width: 19px; height: 19px; }
  body { padding-bottom: 56px; }
  .blocks { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .hero { padding: 28px 0 48px; }
  .page-head { padding: 28px 0 44px; }
  .section, .band { padding: 60px 0; }
  .facts ul { grid-template-columns: 1fr; }
  .facts li, .facts li + li { padding: 16px 0; border-left: 0; }
  .facts li + li { border-top: 1px solid var(--line); }
  .register a, .register .row { grid-template-columns: 1fr 24px; gap: 4px 16px; min-height: 0; }
  .register .desc { grid-column: 1; grid-row: 2; }
  .register .name { grid-column: 1; grid-row: 1; }
  .register svg { grid-column: 2; grid-row: 1 / 3; }
  .kv > div { grid-template-columns: 1fr; gap: 2px; }
  .foot-grid { grid-template-columns: 1fr; }
  .btn-row .btn { flex: 1 1 100%; justify-content: center; }
}

/* Fixes after first screenshot review */
a[href^="tel:"] { white-space: nowrap; }
form .btn { justify-self: start; }
@media (max-width: 640px) { form .btn { justify-self: stretch; justify-content: center; } }
