/* Services — follows the user's mobile mockup:
   a wooden sign hanging on ropes for the title, and the user's own engraved stone plaques
   (assets/plaques-v2, text carved in, cut out from the supplied sheet).
   Motion (once, when the soil band is in view): each plaque grows from ONE point at its base with
   cartoon squash-and-stretch while its colours go from pencil sketch to paint. Nothing slides in. */

/* ---- Hanging wooden sign ---- */
.svc-sign{position:relative;width:min(94%,600px);margin:0 auto clamp(18px,2.6vw,40px);padding-top:clamp(30px,4.4vw,60px);transform-origin:50% 0}
.svc-sign .rope{position:absolute;z-index:0;top:0;width:8%;height:auto;pointer-events:none}
.svc-sign .rope.l{left:17%}
.svc-sign .rope.r{right:17%}
.svc-sign-board{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;gap:clamp(6px,1.4vw,16px);margin:0;aspect-ratio:4.3/1;
  padding:0 7% 4%;background:url('assets/site/plank.webp') center/100% 100% no-repeat;filter:drop-shadow(0 10px 12px #0007);
  font-family:Heebo,sans-serif;font-weight:900;font-size:clamp(28px,4.6vw,56px);line-height:1;color:#3a2410;text-shadow:0 1px 0 #f6dcaa,0 -1px 0 #2a160880;white-space:nowrap}
.svc-sign-board .lf{width:clamp(30px,3.6vw,52px);height:auto;transform:rotate(-14deg)}
.svc-sign-board .lf.flip{transform:scaleX(-1) rotate(-14deg)}
.svc-sign-board .ul{position:absolute;left:24%;right:24%;bottom:12%;width:52%;height:auto}

/* ---- Plaques ---- */
.plaque.stone2{display:block;filter:drop-shadow(0 12px 10px #0007);transform-origin:50% 92%}
.plaque.stone2 img{display:block;width:100%;height:auto;filter:none;transition:none}
.plaque.stone2:hover img{transform:none}
@media(hover:hover){.plaque.stone2:hover{animation:stone-wiggle .6s cubic-bezier(.3,.7,.35,1)}}
.plaque.stone2:active{scale:.97}
.svc .plaques{align-items:end}

/* ---- Motion ---- */
.motion-enabled .svc:not(.in) .svc-sign{opacity:0;transform:rotate(-4deg) translateY(-14px)}
.motion-enabled .svc.in .svc-sign{animation:sign-swing 1.4s cubic-bezier(.3,.7,.35,1) both}
.motion-enabled .svc:not(.in) .plaque.stone2{opacity:0;transform:scale(.12)}
.motion-enabled .svc.in .plaque.stone2{--d:calc(var(--i,0) * 260ms + .35s);animation:stone-grow 1.25s var(--d) cubic-bezier(.3,.7,.35,1) both}
.motion-enabled .svc.in .plaque.stone2 img{animation:stone-paint 1.1s calc(var(--d) + .25s) ease both}

@keyframes sign-swing{0%{opacity:0;transform:rotate(-5deg) translateY(-14px)}25%{opacity:1}45%{transform:rotate(3deg)}65%{transform:rotate(-1.6deg)}82%{transform:rotate(.7deg)}100%{opacity:1;transform:none}}
@keyframes stone-grow{0%{transform:scale(.12);opacity:0}12%{opacity:1}48%{transform:scale(1.1,.9)}64%{transform:scale(.94,1.07)}80%{transform:scale(1.03,.98)}100%{transform:none;opacity:1}}
@keyframes stone-paint{from{filter:grayscale(1) sepia(.35) contrast(1.15) brightness(1.02)}to{filter:none}}
@keyframes stone-wiggle{30%{transform:rotate(-3deg) scale(1.04)}60%{transform:rotate(2deg) scale(1.02)}100%{transform:none}}

/* Phone: grow in visual order (תחזוקה, גיזום, עיצוב, השקיה, דשא) */
@media(max-width:600px){
  .svc .plaques li:nth-child(5) .plaque{--i:0!important}
  .svc .plaques li:nth-child(4) .plaque{--i:1!important}
  .svc .plaques li:nth-child(3) .plaque{--i:2!important}
  .svc .plaques li:nth-child(2) .plaque{--i:3!important}
  .svc .plaques li:nth-child(1) .plaque{--i:4!important}
  .svc .plaques{gap:2px 8px}
  .svc-sign-board{font-size:clamp(26px,8vw,34px)}
}

@media(prefers-reduced-motion:reduce){.motion-enabled .svc .svc-sign,.motion-enabled .svc .plaque.stone2,.motion-enabled .svc .plaque.stone2 img{animation:none!important;opacity:1!important;transform:none!important;filter:none}}
body.paused .svc .svc-sign,body.paused .svc .plaque.stone2,body.paused .svc .plaque.stone2 img{animation:none!important;opacity:1!important;transform:none!important}

/* ---- Layered plaques: stone, crown (leaves + tool) and corner tufts all start from ONE point ----
   The three layers are complementary cuts of the user's plaque, so at rest they rebuild it exactly. */
.plaque.layered{position:relative;width:100%}
.plaque.layered img{position:absolute;inset:0;width:100%;height:100%}
.plaque.layered .pl-base{z-index:1;transform-origin:50% 92%}
.plaque.layered .pl-crown{z-index:2;transform-origin:50% var(--top,55%)}
.plaque.layered .pl-tufts{z-index:3;transform-origin:50% 96%}

.motion-enabled .svc:not(.in) .plaque.layered{opacity:1;transform:none}
.motion-enabled .svc.in .plaque.layered{animation:none}
.motion-enabled .svc:not(.in) .plaque.layered img{opacity:0;transform:scale(.12)}
.motion-enabled .svc.in .plaque.layered{--d:calc(var(--i,0) * 260ms + .35s)}
.motion-enabled .svc.in .plaque.layered .pl-base{animation:stone-grow 1.15s var(--d) cubic-bezier(.3,.7,.35,1) both,stone-paint 1.1s calc(var(--d) + .2s) ease both}
.motion-enabled .svc.in .plaque.layered .pl-crown{animation:crown-pop .95s calc(var(--d) + .38s) cubic-bezier(.3,.7,.35,1) both,stone-paint 1.1s calc(var(--d) + .45s) ease both}
.motion-enabled .svc.in .plaque.layered .pl-tufts{animation:tuft-sprout .7s calc(var(--d) + .8s) cubic-bezier(.3,1.5,.5,1) both,stone-paint .9s calc(var(--d) + .8s) ease both}
@keyframes crown-pop{0%{opacity:0;transform:scale(0)}15%{opacity:1}52%{transform:scale(1.12,.88)}70%{transform:scale(.94,1.07)}86%{transform:scale(1.02,.99)}100%{opacity:1;transform:none}}
@keyframes tuft-sprout{0%{opacity:0;transform:scale(.4,0)}30%{opacity:1}100%{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.motion-enabled .svc .plaque.layered img{animation:none!important;opacity:1!important;transform:none!important;filter:none!important}}
body.paused .svc .plaque.layered img{animation:none!important;opacity:1!important;transform:none!important}

/* Title: plain wooden board like the other section titles (no ropes) */
.svc-sign{padding-top:0}
.svc-sign-board{background-image:url('assets/garden-transition-desktop/reviews-wood-sign.webp');aspect-ratio:1024/226;padding:0 8% 1%}
.motion-enabled .svc:not(.in) .svc-sign{opacity:0;transform:translateY(-14px)}
.motion-enabled .svc.in .svc-sign{animation:sign-settle .8s cubic-bezier(.22,1,.36,1) both}
@keyframes sign-settle{from{opacity:0;transform:translateY(-14px) scale(.96)}to{opacity:1;transform:none}}
