/* template1-sal, round 3 — the top of the page and the small fixes (2026-10-14). SAL's mechanics verbatim
   (template2-minder: home.css 412–461 KENNIS and ACHTER, 481–493 MINDER; style.css 333–341, 583–585 the offerte
   band's grid, 1214–1268 HERBOUW and AVG) and Zaanse's phone badge (st44, eigenaar-telefoon.css, st39). Colour and
   letter of this page: SAL's lood → his navy (--room, in the form --nacht), dakpan → his blue (--koper), dakpan-licht →
   his light blue #68B8EC, kalk → his lifted ground (--room-2), kalk-rand / kalk-diep → his rule colour (--room-3),
   kalk-wit on the band → white (--nacht), the technical letter → Montserrat (--f-sans), SAL's rounded corners → his
   square ones (--r). Every deviation is in WIJZIGINGEN.md. */

/* ==================================================== KENNIS (SAL home.css 412–441) — "Maak kennis met de eigenaar"
   beside the logo, his face cut from the portrait, one link to Van de eigenaar. From 561px up. */
.kennis { display: none; }

@media (min-width: 561px) {
  .fold__firm { display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: center; }
  .fold__firm > * { grid-column: 1 / -1; }
  .fold__firm > .lockup { grid-column: 1; grid-row: 1; }
  .kennis {
    grid-column: 2; grid-row: 1; justify-self: start; display: flex; align-items: center; gap: 14px;
    margin: 0 0 clamp(26px, 3vw, 40px) clamp(14px, 1.8vw, 32px); padding-left: clamp(14px, 1.8vw, 32px);   /* the logo's margin: on its middle */
    border-left: 1px solid var(--room-3); color: var(--room); text-decoration: none;
  }
  .kennis__duim {
    width: clamp(52px, 4.6vw, 64px); height: clamp(52px, 4.6vw, 64px); border-radius: 50%; object-fit: cover; flex: none;
    box-shadow: 0 1px 3px rgba(13, 28, 39, .22); transition: transform .2s;
  }
  .kennis__tekst { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
  .kennis__naam { font-family: 'Caveat', 'Segoe Print', cursive; font-weight: 600; font-size: clamp(28px, 2.4vw, 34px); line-height: .9; color: var(--koper); }
  .kennis__zin { font-weight: 700; font-size: 14.5px; line-height: 1.3; transition: color .15s; }
  .kennis__zin, .kennis__heel { display: block; white-space: nowrap; }   /* two lines at every width, the arrow on the second */
  .kennis__pijl {
    display: inline-block; width: 13px; height: 13px; margin-left: 6px; vertical-align: -2px; color: var(--koper);
    transition: transform .15s;
  }
  .kennis:hover .kennis__zin { color: var(--koper); }
  .kennis:hover .kennis__duim { transform: scale(1.05); }
  .kennis:hover .kennis__pijl { transform: translateX(3px); }
}

/* Deviation (not SAL): from 961px up his logo (the H-window with its words, 274–394px wide) leaves 110–215px beside it in
   the fold's left column, and the badge needs 220–270px. There it stands under the logo, on the column's left edge,
   with the logo's own margin below it; no hairline. Beside the logo from 561 to 960px, where the fold is stacked. */
@media (min-width: 961px) {
  .kennis { grid-column: 1 / -1; grid-row: auto; margin-left: 0; padding-left: 0; border-left: 0; }
}

/* ---- Zaanse st39: the badge on a phone, under the brand. The idea and the sizes; the colours of this page ---- */
@media (max-width: 560px) {
  .kennis--1 {
    display: flex; align-items: center; gap: 12px; text-align: left;
    color: var(--room); text-decoration: none;
  }
  .kennis__duim { border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 1px var(--lijn); }
  .kennis__tekst { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
  .kennis__naam {
    font-family: 'Caveat', 'Segoe Print', cursive; font-weight: 600; line-height: .9;
    letter-spacing: 0; text-transform: none; color: var(--koper);
  }
  .kennis__zin {
    font-weight: 500; font-size: 14px; line-height: 1.3;
    letter-spacing: 0; text-transform: none; white-space: nowrap;
  }
  .kennis__pijl { display: inline-block; width: 13px; height: 13px; margin-left: 6px; vertical-align: -2px; color: var(--koper); }

  /* under the brand, between the brand and the heading; the same space above and below it as the brand keeps */
  .kennis--1 { width: max-content; max-width: 100%; margin: 0 auto clamp(14px, 2.4svh, 20px); }
  .kennis__duim { width: 42px; height: 42px; }
  .kennis__naam { font-size: 25px; }
}

/* ==================================================== ACHTER (SAL home.css 442–461) — the shape behind the chat: his
   H-window mark itself, large and faint, instead of the blue panel. From 561px up; the phone has no chat in the fold. */
@media (min-width: 561px) {
  /* where the chat is, for the mark to sit on it: its width, its middle, how far right of it the mark leans */
  .fold__house { --cw: min(100%, 420px); --mx: calc(var(--cw) / 2); --dx: 40px; }
  .fold__house::before {
    --d: calc(var(--cw) + 150px);
    top: 0; right: auto; bottom: auto; left: calc(var(--mx) + var(--dx) - var(--d) / 2);
    /* SAL's emblem is round, d by d. His mark stands upright (387 × 571): it keeps SAL's width d, its height follows */
    width: var(--d); height: calc(var(--d) * 571 / 387); clip-path: none;
    background: url(merk.png) center / contain no-repeat; opacity: .14;
  }
}
@media (min-width: 561px) and (max-width: 1060px) {
  .fold__house { --cw: min(100%, 380px); }   /* as the chat */
}
@media (min-width: 561px) and (max-width: 960px) {
  .fold__house { --mx: 50%; --dx: 0px; }   /* the house stacks: the chat in its middle, the mark on it */
}

/* ==================================================== THE OFFERTE BAND (SAL style.css 333–341, 583–585, 945–962; MINDER
   home.css 481–493) — the heading beside the buttons on their middle, above them below 1061px, stacked below 561px;
   WhatsApp beside "Maak een afspraak" at every width, the appointment outlined. */
.breath__row { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "big wa afspraak"; gap: 12px; align-items: center; }
.breath__big { grid-area: big; align-self: center; }
.breath--offerte .btn--tel { display: inline-flex; grid-area: wa; margin-left: clamp(24px, 3.4vw, 48px); }
.breath--offerte .btn--light { grid-area: afspraak; background: transparent; color: var(--nacht); box-shadow: inset 0 0 0 1px var(--nacht); }
.breath--offerte .btn--light:hover { background: rgba(255, 255, 255, .1); }
@media (max-width: 1060px) {
  .breath__row { grid-template-columns: auto auto minmax(0, 1fr); grid-template-areas: "big big big" "wa afspraak ."; justify-items: start; }
}
@media (min-width: 561px) and (max-width: 1060px) {
  .breath--offerte .btn--tel { margin-left: 0; }
  .breath--offerte .btn { margin-top: 10px; }
}
@media (max-width: 560px) {
  .breath__row { grid-template-columns: minmax(0, 1fr); grid-template-areas: "big" "wa" "afspraak"; gap: 16px; }
  .breath--offerte .btn--tel { margin-left: 0; }
}

/* ==================================================== AVG (SAL style.css 1226–1268) — the privacy line in the contact
   form: one line above the send button; "Meer over je privacy" unfolds the full text right there (a <details>, so it
   works without script), between the line and the button. What was typed stays. */
.avg1 { margin: 2px 0 18px; interpolate-size: allow-keywords; }
.avg-regel { margin: 0; font-size: var(--t-klein); line-height: 1.55; color: var(--inkt-75); }
.avg-knop {
  display: inline-flex; align-items: center; gap: 4px; padding: 1px 0; margin: -1px 0;
  font-weight: 600; color: var(--nacht); white-space: nowrap;
  text-decoration: underline; text-decoration-color: #68B8EC; text-decoration-thickness: 1.5px; text-underline-offset: 3px;
  transition: color .15s, text-decoration-color .15s;
}
summary:hover .avg-knop { color: var(--koper); text-decoration-color: var(--koper); }
.avg-knop .ico { width: 13px; height: 13px; color: var(--koper); transition: transform .2s; }
.avg1 > summary { display: block; list-style: none; cursor: pointer; border-radius: var(--r); }
.avg1 > summary::-webkit-details-marker { display: none; }
.avg1[open] > summary .avg-knop .ico { transform: rotate(180deg); }
.avg1__tekst { margin-top: 12px; padding: 16px 18px 6px; background: var(--room-2); border-radius: var(--r); }
.avg-tekst { margin: 0; container-type: inline-size; }
.avg-tekst > div { padding: 9px 0 10px; border-top: 1px solid var(--room-3); }
.avg-tekst > div:first-child { border-top: 0; padding-top: 0; }
.avg-tekst dt {
  font-family: var(--f-sans); font-weight: 600; font-size: var(--t-kap); letter-spacing: .14em; text-transform: uppercase;
  line-height: 1.3; color: var(--koper); margin-bottom: 3px;
}
.avg-tekst dd { margin: 0; font-size: var(--t-klein); line-height: 1.5; color: var(--nacht); }
.avg-nw { white-space: nowrap; }
.avg-tekst a { color: inherit; white-space: nowrap; text-decoration-color: #68B8EC; text-underline-offset: 3px; }
.avg-tekst a:hover { color: var(--koper); text-decoration-color: var(--koper); }
@container (min-width: 480px) {
  .avg-tekst > div { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 18px; }
  .avg-tekst dt { margin: 0; padding-top: 3px; }
}
.avg1__dicht {
  display: flex; align-items: center; gap: 5px; margin: 2px 0 0 auto; min-height: 40px; padding: 0 2px;
  border: 0; background: none; font: inherit; font-size: var(--t-klein); font-weight: 600; color: var(--inkt-75); cursor: pointer;
}
.avg1__dicht:hover { color: var(--koper); }
.avg1__dicht .ico { width: 13px; height: 13px; transform: rotate(180deg); color: var(--koper); }
html:not(.js) .avg1__dicht { display: none; }
.avg1::details-content { block-size: 0; overflow: clip; transition: block-size .34s cubic-bezier(.2, .7, .2, 1), content-visibility .34s allow-discrete; }
.avg1[open]::details-content { block-size: auto; }
@media (prefers-reduced-motion: reduce) { .avg1::details-content { transition: none; } }

/* ==================================================== HERBOUW (SAL style.css 1214–1225) — the logo is a link home, in the
   fold, the header (already) and the footer; the footer's call/WhatsApp pair keeps its "of" on the seam. */
a.lockup { width: fit-content; color: inherit; text-decoration: none; }
a.lockup:focus-visible { outline: 3px solid var(--koper); outline-offset: 4px; border-radius: var(--r); }

/* the "of" rides the seam at 50%, so the two halves must stay equal. In the narrow footer column "WhatsApp" would not
   shrink to half and pushed the seam left */
.pair .btn { min-width: 0; }
.foot .pair .btn { gap: 7px; }
.foot .pair .btn--call { padding-left: 10px; padding-right: 27px; }
.foot .pair .btn--wa { padding-left: 27px; padding-right: 10px; }
@media (min-width: 1101px) { .foot__grid { grid-template-columns: 1.1fr 1fr 1fr minmax(310px, 1.2fr); } }   /* the pair needs 310px */
