:root {
  --ink: #2b2722;
  --ink-soft: #645c52;
  --line: #e6ddd0;
  --surface: #f7f3ec;           /* warm cream page: pure white read as clinical */
  --card: #fffdf9;
  --surface-alt: #efe8dc;
  --accent: #0030f0;          /* measured from the logo, 7.1:1 on the page, 6.4:1 on --surface-alt */
  --accent-ink: #ffffff;
  --header-bg: #000000;
  --header-ink: #ffffff;
  --radius: 10px;
  --gap: 1.25rem;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--surface);
  overflow-x: clip;  /* the full-bleed hero uses 100vw, which includes a desktop scrollbar */
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1rem; }

a { color: var(--accent); }

header.site {
  position: static;  /* not sticky on phones: the two-row band would eat ~18% of the screen */
  z-index: 10;
  background: var(--header-bg);
}
header.site .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem var(--gap); padding-block: 0.5rem; }
header.site nav { flex-basis: 100%; display: flex; gap: 0.25rem 1rem; flex-wrap: wrap; }
@media (min-width: 700px) {
  header.site { position: sticky; top: 0; }
  header.site .wrap { flex-wrap: nowrap; min-height: 64px; }
  header.site nav { flex-basis: auto; margin-left: auto; }
}
header.site nav a { color: var(--header-ink); text-decoration: none; }
header.site nav a[aria-current="page"] { text-decoration: underline; }
header.site img { display: block; height: 44px; width: auto; }

.cta {
  display: inline-block; padding: 0.7rem 1.1rem; border-radius: var(--radius);
  background: var(--accent); color: var(--accent-ink);
  text-decoration: none; font-weight: 600;
}
.cta.secondary { background: var(--surface-alt); color: var(--ink); }
.cta.licht { background: var(--header-ink); color: var(--ink); }

h1 { font-size: 1.9rem; line-height: 1.25; }
@media (min-width: 700px) { h1 { font-size: 2.5rem; } }

.cards { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); margin: 2rem 0; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); overflow: hidden;
  display: flex; flex-direction: column;
}
.card h3 { margin: 0 0 0.25rem; font-size: 1.1rem; }
.card .body { padding: 1rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
/* Push the button to the bottom of its card so buttons line up across a row,
   whatever the description length. Without this they sit right under the text. */
.card .body .cta { margin-top: auto; }
.card img { width: 100%; height: auto; display: block; aspect-ratio: 4 / 3; object-fit: cover; }

.meta { color: var(--ink-soft); font-size: 0.95rem; }
.prijs { font-weight: 700; font-size: 1.15rem; }

main { display: flow-root; }  /* guard: a float must never escape into the footer */
main img { max-width: 100%; height: auto; }
main pre, main table { display: block; overflow-x: auto; max-width: 100%; }

a.card { text-decoration: none; color: inherit; }

.verkocht {
  display: inline-block; padding: 0.15rem 0.5rem; border-radius: 4px;
  background: var(--ink); color: #fff; font-size: 0.8rem; letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tijden { border-collapse: collapse; }
.tijden td { padding: 0.25rem 1rem 0.25rem 0; vertical-align: top; }
.tijden td:first-child { color: var(--ink-soft); }

.galerij { display: grid; gap: 0.75rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .galerij { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.galerij img { width: 100%; height: auto; border-radius: var(--radius); }

footer.site {
  margin-top: 3rem; padding: 2rem 0; border-top: 1px solid var(--line);
  background: var(--surface-alt); color: var(--ink-soft);
}
footer.site .wrap { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { footer.site .wrap { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
footer.site a { color: var(--ink); }

/* Service pages (D21, D22). The owner writes them as markdown, so the page elements are styled by
   tag: a "> Let op" paragraph is the note band, a table is a price table, <details> hides part prices. */
.band {
  background: var(--surface-alt);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.9rem 1.1rem;
  margin: 1.5rem 0;
}
.band p { margin: 0.25rem 0; }
.card.actie { border-top: 4px solid var(--accent); }
.label {
  display: inline-block; padding: 0.15rem 0.5rem; border-radius: 4px;
  background: var(--accent); color: var(--accent-ink); font-size: 0.8rem; letter-spacing: 0.04em;
  text-transform: uppercase; align-self: flex-start;
}
.card .body .meer { margin-top: auto; color: var(--accent); font-weight: 600; }
a.card:hover { border-color: var(--accent); }

main blockquote {
  background: var(--surface-alt);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.9rem 1.1rem;
  margin: 1.5rem 0;
  max-width: 65ch;
}
main blockquote p { margin: 0; }
main table:not(.tijden) { border-collapse: collapse; font-variant-numeric: tabular-nums; }
main table:not(.tijden) th, main table:not(.tijden) td {
  text-align: left; padding: 0.35rem 1.25rem 0.35rem 0; border-bottom: 1px solid var(--line); vertical-align: top;
}
main table:not(.tijden) th { color: var(--ink-soft); font-weight: 600; font-size: 0.9rem; }
main table:not(.tijden) td:last-child, main table:not(.tijden) th:last-child { text-align: right; padding-right: 0; }
main details { margin: 0.5rem 0 1rem; }
main summary { cursor: pointer; color: var(--accent); font-weight: 600; }

.reviews { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); margin: 2rem 0; }
@media (min-width: 700px) { .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.review { margin: 0; padding: 1.1rem; background: var(--surface-alt); border-radius: var(--radius); }
.review blockquote { margin: 0 0 0.6rem; font-size: 1.05rem; }
.review figcaption { color: var(--ink-soft); font-size: 0.95rem; }

/* Site photos are shown at their own proportion, never cropped: the photographer's
   watermark sits in the bottom of every photo and must stay whole. The width/height
   attributes on the <img> reserve the space, so the page does not shift while loading. */
.foto { margin: 1.5rem 0; }
.foto img { display: block; width: 100%; height: auto; border-radius: var(--radius); }

/* Hero. Phones: full-bleed and dark, the first photo full width with the text over its top (the
   watermark is at the bottom, clear of it); the other photos of a strip are hidden there.
   Photos keep their own proportion everywhere, never cropped. */
.hero {
  display: grid; margin: 0 calc(50% - 50vw) 2rem;
  background: var(--header-bg); color: var(--header-ink);
}
.hero > * { grid-area: 1 / 1; }
.hero .foto { margin: 0; }
.hero .foto img { border-radius: 0; }
.hero .foto + .foto { display: none; }
.hero-tekst {
  align-self: start; position: relative; z-index: 1;
  padding: 1.25rem 1rem 4rem;
  background: linear-gradient(rgb(0 0 0 / 0.85) 65%, transparent);
}
.hero h1 { margin: 0 0 0.5rem; }
.hero-tekst p { margin: 0 0 1rem; font-size: 1.1rem; }
@media (min-width: 700px) {
  /* One photo (Over ons, Contact): text on the page itself beside the photo, inside .wrap.
     A dark panel there was mostly empty, since a portrait photo is narrow on a wide screen. */
  .hero:not(.strook) {
    grid-template-columns: minmax(0, 1fr) auto; gap: 2.5rem; align-items: center;
    margin: 2rem 0 2.5rem; background: none; color: inherit;
  }
  .hero:not(.strook) > * { grid-area: auto; }
  .hero:not(.strook) .hero-tekst { align-self: center; padding: 0; background: none; }
  .hero:not(.strook) .cta.licht { background: var(--surface-alt); }
  /* ponytail: sized for portrait photos (all hero photos are 2:3); a landscape one would take most of the width */
  .hero:not(.strook) .foto img { width: auto; height: min(65vh, 540px, 75vw); border-radius: var(--radius); }

  /* Strip (Home): portrait photos side by side across the full width, text over the first two.
     Capped at 1680px, so a big monitor gets black margins instead of an ever taller strip.
     ponytail: laid out for three photos; two would leave the third column black. */
  .hero.strook {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-inline: max(0px, calc(50vw - 840px));
  }
  .hero.strook .foto { grid-row: 1; }
  .hero.strook .foto + .foto { display: block; }
  .hero.strook .foto:nth-child(2) { grid-column: 1; }
  .hero.strook .foto:nth-child(3) { grid-column: 2; }
  .hero.strook .foto:nth-child(4) { grid-column: 3; }
  .hero.strook .foto img { width: 100%; height: auto; }
  .hero.strook .hero-tekst {
    grid-row: 1; grid-column: 1 / 3;
    /* left edge lines up with .wrap, net of the strip's own padding on wide screens */
    padding: 3rem 4rem 3rem calc(max(1rem, 50vw - 540px + 1rem) - max(0px, 50vw - 840px));
    background: linear-gradient(rgb(0 0 0 / 0.8) 50%, transparent);
  }
}
