/* Water elements (Jéan, 26 Oct 2026): Top Trimmers' grass section and shapes, done as a pool. Loaded last on every
   page, after calvin.css. The shapes are drawn inline by _site.py (water_edge, water_pool, coping, ripples); this file
   only places and colours them, from the :root tokens. Where they are:
   1 Home "How it works" and the service page's install steps: a navy water band whose top edge is layered water, the
     logo's sun rising behind it; the step cards stand in the water (Top Trimmers' grass band)
   2 Home "Who we work for": the water rises behind the lower part of the three cards, so they stand in it
   3 Every page: the pool's edge (coping stones, then the line of square waterline tiles) on top of the footer
   4 Service page questions and the contact page's map band: a light wave edge as the divider into them
   5 Contact: calm ripples spreading from under the quote form */

/* ---------- The water edge ---------- */
.w-edge{position:absolute;left:0;right:0;bottom:calc(100% - 1px);height:72px;pointer-events:none;z-index:1}
.w-waves{position:absolute;inset:0;width:100%;height:100%;display:block}
.w-deep .w1{fill:var(--acc-soft);opacity:.5}
.w-deep .w2{fill:var(--acc)}
.w-deep .w3{fill:var(--deep)}
.w-tint .w1{fill:var(--acc-soft);opacity:.3}
.w-tint .w2{fill:var(--acc-soft);opacity:.65}
.w-tint .w3{fill:var(--w-bg,var(--tint))}
/* the logo's sun, rising behind the water on the container's right edge */
.w-sun{position:absolute;right:max(var(--gut),calc((100% - var(--wrap)) / 2 + var(--gut)));bottom:30px;width:128px;height:64px;fill:var(--cta)}

/* 1 Navy water bands */
.w-water{position:relative;z-index:2;color:#fff;background:linear-gradient(180deg,var(--deep) 0,var(--deep-ink) 100%)}
@media (min-width:901px){
  .v-shapes #how.w-water,.pg .band.w-water{margin-top:56px;clip-path:none;padding-top:var(--sec);background:linear-gradient(180deg,var(--deep) 0,var(--deep-ink) 100%)}
}
/* a phone gets the same water band (it was a light tinted block): the laptop's dark-band card colours, repeated */
@media (max-width:900px){
  .w-edge{height:40px}
  .w-sun{right:var(--gut);bottom:16px;width:76px;height:38px}
  #how.w-water,.pg .band.w-water{margin-top:36px;clip-path:none;padding-top:var(--sec)}
  .w-water h2{color:#fff}
  .w-water .eyebrow{color:var(--on-deep)}
  .w-water .eyebrow.dot::before{background:var(--on-deep)}
  #how.w-water .pz-s1,#how.w-water .pz-s2,#how.w-water .pz-s3,#how.w-water .pz-b,.pg .band.w-water .step{background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.16);color:#fff}
  .w-water .pz>span:not(.n){color:rgba(255,255,255,.8)}
  .w-water .pz .n{-webkit-text-stroke-color:var(--on-dark)}
  #how.w-water .pz-s2 b,#how.w-water .pz-b b,.pg .band.w-water .st-time{color:var(--on-dark)}
  .pg .band.w-water .lede,.pg .band.w-water .prose{color:rgba(255,255,255,.85)}
  .pg .band.w-water .prose strong{color:#fff}
  .pg .band.w-water .pq strong{color:var(--ink)}
}

/* 2 Cards standing in the water */
.w-stand{overflow:clip}
.w-stand .who{position:relative;z-index:0}
.w-pool{position:absolute;z-index:-1;left:calc(50% - 50vw);width:100vw;top:calc(100% - 132px);bottom:-1600px;background:linear-gradient(180deg,var(--deep) 0,var(--deep-ink) 560px)}
.w-stand .cta-row{position:relative;z-index:1}
.w-stand .btn-main{background:var(--cta);color:var(--on-cta)}
.w-stand .btn-ghost{border-color:transparent}
.w-stand .wt{box-shadow:0 0 0 1px rgba(255,255,255,.14),0 26px 44px -26px rgba(var(--dark-rgb),.7)}
@media (min-width:901px){.w-stand .wt .cap>span{display:block;min-height:calc(2 * 1.6em)}}
@media (max-width:900px){
  .w-pool{top:calc(100% - 84px)}
  .w-stand{padding-bottom:calc(var(--sec) + 16px)}
}

/* 3 The pool's edge on top of the footer: coping stones, a shadow line, the waterline tiles, then the water */
.w-foot{position:relative;padding-top:128px}
.w-coping{position:absolute;top:0;left:0;right:0;height:50px;line-height:0}
.w-coping svg{display:block;width:100%;height:50px}
.w-coping .cg{fill:var(--tint-2)}
.w-coping .cs{fill:#fff}
.w-coping .csl{fill:rgba(var(--deep-ink-rgb),.06)}
.w-coping .csh{fill:rgba(var(--deep-ink-rgb),.14)}
.w-coping .t1{fill:var(--acc)}
.w-coping .t2{fill:color-mix(in srgb,var(--acc) 82%,var(--deep))}
.w-coping .t3{fill:color-mix(in srgb,var(--acc) 88%,#fff)}
/* where the page ends on the photo band, its bottom runs straight into the coping (no angle above the pool's edge) */
main>.cta:last-child{clip-path:polygon(0 4vw,100% 0,100% 100%,0 100%);padding-bottom:120px}
@media (max-width:900px){main>.cta:last-child{clip-path:polygon(0 var(--cut),100% 0,100% 100%,0 100%);padding-bottom:64px}}
@media (max-width:900px){.w-foot{padding-top:104px}}

/* 4 Light water edge as the divider into a section (hidden where the photo band sits above it) */
.w-tintsec{position:relative;--w-bg:var(--tint)}
.w-tintsec>.w-edge{height:56px}
.cta+.w-tintsec>.w-edge{display:none}
.pg .qa.w-tintsec{background:var(--tint);margin-top:56px;overflow-x:clip;overflow-y:visible}
@media (max-width:900px){
  .w-tintsec>.w-edge{height:34px}
  .pg .qa.w-tintsec{clip-path:none;margin-top:34px;padding-top:var(--sec)}
  .sec+.mapsec.w-tintsec{margin-top:34px}
}
@media (min-width:901px){
  .sec+.mapsec.no-map.w-tintsec{margin-top:56px}
  /* a laptop shows the map to the band's top: the water runs down onto it instead, in the colour of the page above */
  .mapsec.w-tintsec:not(.no-map)>.w-edge{bottom:auto;top:-1px;transform:scaleY(-1);z-index:2;--w-bg:var(--ground)}
}

/* 5 Ripples spreading from under the quote form */
.w-ripwrap{position:relative;z-index:0}
.w-ripples{position:absolute;z-index:-1;pointer-events:none;fill:none;stroke:var(--acc);stroke-width:1.5}
.w-rip-form{left:50%;bottom:-150px;width:600px;height:300px;transform:translateX(-50%)}
.pg .sec:has(.w-ripwrap){overflow-x:clip}
@media (max-width:900px){.w-ripwrap{margin-bottom:64px}.w-rip-form{bottom:-90px;width:360px;height:180px}}
