/* v2 home-story.css (C2) - home sections 2-5: stats, Ueber uns, gallery + testimonial, Reichweite.
   Scoped under .page-home, classes prefixed st-. One wall laid course by course: stretcher-bond bricks, 3px mortar.
   Hidden start states are set by GSAP in js/pages/home-story.js only, so this file is the finished static design. */

/* shared: a label under a number (stats, 95 %) */
.page-home .st-l{font-size:var(--fs-h4);font-weight:500;line-height:1.3;color:var(--fg-2)}

/* ================================================================== 1 stats */
/* padding in whole courses so the brick tops sit on the texture lines (56px rows) */
.page-home .st-stats{padding-block:calc(var(--course) * 2)}
.page-home .st-wall{display:grid;gap:3px;grid-template-columns:minmax(0,1fr);list-style:none}
.page-home .st-brick{display:flex;align-items:flex-end;justify-content:space-between;gap:var(--s-4);min-height:calc(var(--course) * 2);padding:var(--s-4) var(--s-5);
  background:var(--white);color:var(--ink);border:1px solid var(--line-2);border-radius:var(--r-sm)}
.page-home .st-brick .num{flex:none;color:var(--ink)}
.page-home .st-brick .st-l{max-width:16ch;text-align:right;font-size:var(--fs-small);font-weight:600}
.page-home .st-fill{display:none}
/* phones: one column, every second course set back (stretcher bond) */
.page-home .st-b2,.page-home .st-b4{margin-left:28px}
@media (min-width:760px){
  .page-home .st-wall{grid-template-columns:repeat(12,minmax(0,1fr))}
  .page-home .st-brick{flex-direction:column;align-items:flex-start;justify-content:space-between;gap:var(--s-5);
    min-height:calc(var(--course) * 4 - 3px);padding:var(--s-5)}
  .page-home .st-brick .st-l{max-width:none;text-align:left;font-size:var(--fs-h4)}
  .page-home .st-b2,.page-home .st-b4{margin-left:0}
  .page-home .st-b1{grid-area:1 / 1 / 2 / 6}
  .page-home .st-b2{grid-area:1 / 6 / 2 / 11}
  .page-home .st-b3{grid-area:2 / 3 / 3 / 8}
  .page-home .st-b4{grid-area:2 / 8 / 3 / 13}
  /* the two closing blocks of the bond: plain tint, no content */
  .page-home .st-fill{display:block;background:var(--tint);border:1px solid var(--line);border-radius:var(--r-sm)}
  .page-home .st-f1{grid-area:1 / 11 / 2 / 13}
  .page-home .st-f2{grid-area:2 / 1 / 3 / 3}
}
@media (min-width:1024px){.page-home .st-stats{padding-block:calc(var(--course) * 3)}}

/* ================================================================ 2 about */
.page-home .st-about .grid{row-gap:var(--s-7)}
.page-home .st-about-text{align-self:start}
.page-home .st-about-media{max-width:520px}
@media (min-width:1024px){.page-home .st-about-media{max-width:none}}
.page-home .st-about-photo{aspect-ratio:4 / 5;border-radius:0;background:var(--tint)}
.page-home .st-about-photo img{height:100%}
.page-home .st-about-text .divider{background:var(--line-2)}
.page-home .st-quote{position:relative}
.page-home .st-quote blockquote p{font-family:var(--display);font-weight:700;font-size:clamp(30px,3.1vw,46px);line-height:1.03;letter-spacing:0;color:var(--ink);text-wrap:balance;max-width:26ch}

/* ============================================================ 3 gallery */
.page-home .st-gal .st-bond{gap:3px}
.page-home .st-tile{min-width:0;margin:0}
/* the two half bricks that close the bond (desktop only): plain paper, no content */
.page-home .st-gal .st-fill{display:none}
@media (min-width:1024px){
  .page-home .st-gal .st-fill{display:block;background:var(--paper);border:1px solid var(--line);border-radius:var(--r-sm)}
  .page-home .st-gal .st-gf1{grid-column:7;grid-row:1}
  .page-home .st-gal .st-gf2{grid-column:1;grid-row:2}
}
.page-home .st-photo{aspect-ratio:4 / 5;align-self:stretch;border-radius:var(--r-sm);background:var(--paper)}
.page-home .st-photo img{height:100%;object-position:50% 25%}
.page-home .st-photo-wide img{object-position:50% 50%}
/* phones: photos two by two, the stat sits beside the first photo, the testimonial and the wide photo take the full width */
@media (max-width:759px){
  .page-home .st-gal .st-bond{grid-template-columns:repeat(2,minmax(0,1fr))}
  .page-home .st-review,.page-home .st-photo-wide{grid-column:1 / -1}
  .page-home .st-photo-wide{aspect-ratio:5 / 4}
}
.page-home .st-gal .card{border-radius:var(--r-sm);border-color:var(--line-2);padding:var(--s-5)}
.page-home .st-stat{justify-content:space-between;gap:var(--s-5)}
.page-home .st-stat>*+*{margin-top:0}
.page-home .st-stat .st-l{font-size:var(--fs-lead);font-weight:600;color:var(--ink)}
.page-home .st-review{justify-content:space-between;gap:var(--s-5)}
.page-home .st-review>*+*{margin-top:0}
.page-home .st-stars{display:flex;gap:4px;color:var(--ink)}
.page-home .st-stars svg{width:22px;height:22px}
.page-home .st-review blockquote p{font-size:var(--fs-small);line-height:1.5;color:var(--ink)}
@media (min-width:760px) and (max-width:1023px){.page-home .st-review blockquote p{font-size:var(--fs-body)}}
@media (min-width:1024px){.page-home .st-gal .card{padding:var(--s-5)}}
@media (min-width:1280px){
  .page-home .st-gal .card{padding:var(--s-6)}
  .page-home .st-review blockquote p{font-size:17px;line-height:1.55}
}

/* ============================================================ 4 reichweite */
.page-home .st-reach .grid{align-items:center}
.page-home .st-reach-h{font-size:var(--fs-h2);hyphens:manual}
/* "Besuchen Sie unsere Website: kraftbouw.be": the link is a 44px tap target */
.page-home .st-site{display:flex;flex-wrap:wrap;align-items:center;column-gap:.25em}
.page-home .st-site a{display:inline-flex;align-items:center;min-height:44px}
.page-home .st-rl{display:block}
.page-home .st-rl-in{display:block}
/* the kraftbouw.be link inside the headline: quiet underline, like text links */
.page-home .st-reach-h a{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.15em;text-decoration-skip-ink:auto;text-decoration-color:var(--line-2);transition:text-decoration-color var(--t) var(--ease)}
.page-home .st-reach-h a:hover{text-decoration-color:currentColor}
.page-home .st-reach-map{max-width:560px}
@media (min-width:1024px){.page-home .st-reach-map{max-width:none}}
.page-home .st-plate{position:relative;aspect-ratio:1;background:var(--white);border:1px solid var(--line-2);border-radius:var(--r);overflow:hidden}
.page-home .st-svg{position:absolute;inset:0;width:100%;height:100%;color:var(--ink)}
.page-home .st-ctx{fill:none;stroke:var(--steel);stroke-width:1;stroke-linejoin:round;stroke-linecap:round}
.page-home .st-fill-map{fill:url(#st-bond);stroke:none}
.page-home .st-in{fill:none;stroke:var(--ink);stroke-width:1.2;stroke-linejoin:round}
.page-home .st-out{fill:none;stroke:var(--ink);stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
/* country names + pin labels: HTML, so they stay readable at any plate width */
.page-home .st-cl{position:absolute;margin:0;transform:translate(-50%,-50%);padding:1px 6px;background:var(--white);border-radius:var(--r-sm);
  font-size:14px;font-weight:500;line-height:1.35;color:var(--fg-2);white-space:nowrap;pointer-events:none}
.page-home .st-pin{position:absolute;width:20px;height:27px;margin:-27px 0 0 -10px;color:var(--red);pointer-events:none}
.page-home .st-pl{position:absolute;margin:0;padding:3px 9px;background:var(--white);border:1px solid var(--line-2);border-radius:var(--r-sm);
  font-size:14px;font-weight:600;line-height:1.3;color:var(--ink);white-space:nowrap;pointer-events:none}
.page-home .st-pl-r{margin:-26px 0 0 16px}
.page-home .st-pl-l{margin:-26px 0 0 -16px;transform:translateX(-100%)}
@media (min-width:760px){
  .page-home .st-pin{width:26px;height:34px;margin:-34px 0 0 -13px}
  .page-home .st-cl{font-size:15px}
  .page-home .st-pl{font-size:15px}
  .page-home .st-pl-r{margin:-31px 0 0 22px}
  .page-home .st-pl-l{margin:-31px 0 0 -22px}
}
