/* template1-zaanse, leg 1 (2026-10-26) — the services and the projects line, from De Zaanse Schilder st45
   (../template1-zaanse-kit/1-diensten.md): tekst-groot.css (st26/st27), dienst-blad.css (st25), hoofdfoto.css (st45).
   The mechanics are Zaanse's; the look is this page's: his navy #0D1C27 and blue, the reading text (Hanken Tekst at
   500, which is why the first sentence goes to 600 here where Zaanse's goes to 500 over a 400 body), the eight text
   roles, the door photos' place-and-date (sal-1.css PLEK) rather than Zaanse's serif. Literal colours on purpose, as
   in sal-1.css: the page's variables flip per section (the doors swap --room and --nacht). */

/* ============ TEXT DENSITY (tekst-groot.css, st26 "wie u krijgt" + st27 "zwaarder") — the one sentence each service
   had stays first and becomes the heavier one: a step larger (intro), half bold, the page's darkest text (every card
   here is light). After it the rest (.dienst-meer) in the running text, as Zaanse's p:not(.lead). ============ */
:root .dienst-zin { font-weight: 600; font-size: var(--t-intro); line-height: 1.42; color: #0D1C27; }
:root .dienst-meer { font-size: var(--t-tekst); line-height: 1.55; color: #0D1C27; margin: 1rem 0 0; }

/* the kunststof card (his l=3 grid): the sentence moves up into the empty row 2 (the customer question that stood there
   is gone since 10-14), the rest takes row 3 where the sentence was; row 4 keeps the buttons */
:root[data-l="3"] .lead-card__copy > p.dienst-zin:not(.prijs) { margin-bottom: 0; }
@media (min-width: 1061px) {
  :root[data-l="3"] .lead-card__copy > p.dienst-zin:not(.prijs) { grid-row: 2; }
  :root[data-l="3"] .lead-card__copy > p.dienst-meer:not(.prijs) { grid-row: 3; }
}
/* one column below 1061px: everything in the page's order (his rule pinned every paragraph to row 3, which held
   while there was one) */
@media (max-width: 1060px) {
  :root[data-l="3"] .lead-card__copy > p:is(.dienst-zin, .dienst-meer):not(.prijs) { grid-row: auto; }
}
/* the line that opens the series on a line of its own under the text (dienst-blad.css) */
:root :is(.lead-card__copy, #schuifpuien) p.dienst-meer > .echt-regel { display: flex; width: fit-content; margin-top: 1.25rem; }
:root :is(.lead-card__copy, #schuifpuien) p.dienst-meer > .echt-regel .ico { margin-right: 0; }   /* the flex gap spaces it */

/* the doors (his d=3 grid): the rest takes row 5, where the price line stood until 10-14; the room the sentence had
   under it (1em of intro) goes under the rest */
:root[data-d="3"] .door > p.dienst-zin:not(.prijs) { margin-bottom: 0; }
:root[data-d="3"] .door > p.dienst-meer:not(.prijs) { grid-row: 5; margin-bottom: var(--t-intro); max-width: 30em; }
@media (max-width: 960px) {
  :root[data-d="3"] .doors .door > p:is(.dienst-zin, .dienst-meer):not(.prijs) { grid-row: auto; }   /* stacked: the page's order */
}

/* the schuifpuien block (pui.css, his pick 2): from 961px the right column holds the sentence, the rest, then the
   buttons; the heading and the ticks on the left span all three rows; the slider closes the block a row lower */
:root #schuifpuien .dienst-zin { margin-bottom: 0; }
:root #schuifpuien .dienst-meer { margin-bottom: var(--t-intro); }
@media (min-width: 961px) {
  :root #schuifpuien .svc-h, :root #schuifpuien .scope--two { grid-row: 1 / 4; }
  :root #schuifpuien .dienst-meer { grid-area: 2 / 2 / 3 / 3; }
  :root #schuifpuien .svc-bath__acts { grid-area: 3 / 2 / 4 / 3; }
  :root #schuifpuien .svc-bath__grid .ba { grid-area: 4 / 1 / 5 / 3; }
}

/* on a phone the rest stays out for now, so this leg leaves the phone as it was: the doors showed no description
   there, the kunststof card and the schuifpuien block only their sentence. The phone pass is leg 3's
   (Zaanse's telefoon.css hides the rest and the photo-count line there too). */
@media (max-width: 560px) {
  .dienst-meer { display: none; }
}

/* ============ THE LIST ON A LIGHT SHEET (dienst-blad.css, st25 "licht blad") — "Wat er ook bij hoort" and its list
   together on a sheet inside the card, dark letters, Zaanse's padding and shadow. Zaanse's card is dark and the sheet
   light; his card is white, so the sheet is his light ground (#F3F6F9, the section around the card) and the shadow
   is his navy at a lower strength. From 561px; on a phone the list stays hidden (sal-4.css). ============ */
@media (min-width: 561px) {
  :root[data-l="3"] .lead-card__side {
    display: block; align-self: start; background: #F3F6F9; color: #0D1C27;
    padding: clamp(1.35rem, 2.6vw, 2rem) clamp(1.4rem, 2.8vw, 2.25rem);
    box-shadow: 0 22px 44px -26px rgba(13, 28, 39, .55);
  }
  :root[data-l="3"] .lead-card__side > :is(.caps, .scope) {
    grid-column: auto; grid-row: auto; order: 0; margin: 0; padding-left: 0; padding-right: 0; border-left: 0;
  }
  :root[data-l="3"] .lead-card__side > .caps { display: block; padding-top: 0; padding-bottom: 0; border-top: 0; margin-bottom: 1rem; color: #44505B; }
  :root[data-l="3"] .lead-card__side > .scope { padding-bottom: 0; }
  :root[data-l="3"] .lead-card__side .scope li { padding-top: .9rem; padding-bottom: .9rem; border-bottom-color: rgba(13, 28, 39, .14); color: #0D1C27; }
  :root[data-l="3"] .lead-card__side .scope li::before { --mt: .9rem; }
  :root[data-l="3"] .lead-card__side .scope li:first-child { padding-top: 0; }
  :root[data-l="3"] .lead-card__side .scope li:first-child::before { --mt: 0px; }
  :root[data-l="3"] .lead-card__side .scope li:last-child { padding-bottom: 0; }
}
/* from 1061px beside the text, where the list's column was: from the heading's top down */
@media (min-width: 1061px) {
  :root[data-l="3"] .lead-card__side { grid-column: 2; grid-row: 1 / 6; margin: var(--pt) var(--px) var(--pb) 0; }
}
/* below it, under the buttons, as the list stood there */
@media (min-width: 561px) and (max-width: 1060px) {
  :root[data-l="3"] .lead-card__side { grid-column: 1; grid-row: auto; order: 1; margin: 0 var(--px) var(--pb); }
}

/* ============ THE MAIN SERVICE'S PHOTO (hoofdfoto.css, st45) — SAL's band on top goes; "Bekijk onze projecten" becomes
   the pill top left (.bekijk-foto, sal-1.css), place and date go large to the foot with the pin, in the shade from
   below, the stamp to the top right: what the doors already have (sal-1.css PLEK). The markup keeps the band
   (.label__wie is hidden, as at Zaanse). The white body of the card lies over the photo's last 132px (56px on a phone),
   so the place and date stand that much higher, at the visible foot (--onder). ============ */
:root .lead-card__photo { --onder: 132px; }
:root .lead-card__photo .label__wie, :root .area__photo .label__wie { display: none; }
:root[data-v] :is(.lead-card__photo, .area__photo) .label:not(.label--plain) {
  top: auto; bottom: 0; flex-direction: column; align-items: flex-start; justify-content: flex-end;
  padding: 80px 20px calc(var(--onder, 0px) + 18px); border: 0;
  background: linear-gradient(to top, rgba(13, 28, 39, .86) 0, rgba(13, 28, 39, .86) var(--onder, 0px),
              rgba(13, 28, 39, .55) calc(var(--onder, 0px) + 60px), rgba(13, 28, 39, 0) 100%);
}
:root :is(.lead-card__photo, .area__photo) .label__waar {
  display: flex; align-items: center; gap: 8px; color: #FFFFFF; font: 700 var(--t-intro)/1.15 var(--f-sans);
  letter-spacing: .02em; text-shadow: 0 1px 10px rgba(0, 0, 0, .3);
}
:root :is(.lead-card__photo, .area__photo) .label__waar::before {
  content: ''; flex: none; width: 19px; height: 19px; background: #68B8EC;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 00-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 00-7-7zm0 9.6a2.6 2.6 0 110-5.2 2.6 2.6 0 010 5.2z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 00-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 00-7-7zm0 9.6a2.6 2.6 0 110-5.2 2.6 2.6 0 010 5.2z'/%3E%3C/svg%3E") center / contain no-repeat;
}
:root .lead-card__photo .zegel { left: auto; right: 12px; top: 12px; width: 76px; height: 76px; }
/* from 561 to 1060px the row of thumbnails stands 36px over the seam (sal-1.css): the place and date go above it, as
   hoofdfoto.css does from 721 to 960px ("36px + 18px") */
@media (min-width: 561px) and (max-width: 1060px) {
  :root .lead-card__photo { --onder: calc(132px + 36px); }
}

/* ============ THE WERKGEBIED PHOTO — the same look, and it opens the viewer on the projects series: its link carries
   data-lb="werk" and data-kopie, so the viewer (sal-1.js) opens the projects row at this same photo and steps through
   the whole row from there. ============ */
:root .area__photo { overflow: hidden; }   /* the photo grows 2% under the pointer (sal-1.css), inside its frame */
:root .area__photo .foto-open { position: absolute; inset: 0; }
/* in his narrow side column (961 to about 1180px the photo is 335–420px wide) the pill ran into the stamp: there the
   pill and the stamp take the sizes they have on a phone (maten.css, sal-1.css), measured on the photo itself */
:root .area__photo { container-type: inline-size; }
@container (max-width: 420px) {
  :root .area__photo .bekijk-foto { left: 10px; top: 10px; padding: 8px 10px 7px; font-size: var(--t-kap); letter-spacing: .05em; gap: 6px; }
  :root .area__photo .bekijk-foto .ico { width: 14px; height: 14px; }
  :root .area__photo .zegel { width: 64px; height: 64px; }
}

@media (max-width: 560px) {
  /* on a phone the body lies 56px over the photo and the thumbnails stand 32px over that seam, at the right:
     the place and date go above them */
  :root .lead-card__photo { --onder: calc(56px + 32px); }
  :root .lead-card__photo .zegel { top: 12px; width: 64px; height: 64px; }
  :root[data-v] :is(.lead-card__photo, .area__photo) .label:not(.label--plain) { padding: 64px 16px calc(var(--onder, 0px) + 15px); }
  :root :is(.lead-card__photo, .area__photo) .label__waar::before { width: 17px; height: 17px; }
}
