/* Sicc UI Tweaks: compact homepage service tiles. Icon and name only;
   hover lights the tile and slides in the one-liner and the arrow. */
@media (min-width:721px){
  #svcgrid:not(.open){grid-template-columns:repeat(auto-fill,minmax(210px,1fr))}
  #svcgrid:not(.open) .svc{min-height:0;height:152px;padding:16px 20px;display:grid;
    grid-template-columns:26px minmax(0,1fr);column-gap:12px;align-content:center;row-gap:0}
  #svcgrid:not(.open) .svc .svc-n,#svcgrid:not(.open) .svc > p:empty{display:none}
  #svcgrid:not(.open) .svc .svc-i{grid-column:1;grid-row:1;width:24px;height:24px;margin:0;align-self:center}
  #svcgrid:not(.open) .svc h3{grid-column:2;grid-row:1;margin:0;font-size:clamp(16px,1.3vw,19px);line-height:1.15;align-self:center}
  #svcgrid:not(.open) .svc .svc-d,#svcgrid:not(.open) .svc > p:has(.svc-go){grid-column:1/-1;max-height:0;opacity:0;overflow:hidden;margin:0;
    transform:translateY(6px);transition:max-height .4s cubic-bezier(.2,.7,.2,1),opacity .3s,transform .4s cubic-bezier(.2,.7,.2,1),margin .4s}
  #svcgrid:not(.open) .svc .svc-d{font-size:13px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
  #svcgrid:not(.open) .svc:hover .svc-d,#svcgrid:not(.open) .svc:focus-visible .svc-d{max-height:44px;opacity:1;transform:none;margin-top:8px}
  #svcgrid:not(.open) .svc:hover > p:has(.svc-go),#svcgrid:not(.open) .svc:focus-visible > p:has(.svc-go){max-height:24px;opacity:1;transform:none;margin-top:6px}
  #svcgrid:not(.open) .svc:hover,#svcgrid:not(.open) .svc:focus-visible{box-shadow:inset 0 0 0 1px var(--c,#BCFF00),0 0 34px -6px var(--c,#BCFF00);z-index:2}
}
@media (max-width:720px){
  #svcgrid:not(.open) .svc .svc-n,#svcgrid:not(.open) .svc > p:empty{display:none}
  #svcgrid:not(.open) .svc{padding:14px 18px;min-height:0}
  #svcgrid:not(.open) .svc .svc-i{width:22px;height:22px;margin:0 0 4px}
}

/* the stray empty paragraphs WordPress drops into the grid made the band at the bottom */
#svcgrid > p{display:none!important}

/* One Stop Shop heading */
#services .sh{display:block}
.sxo{display:grid;margin:0}
.sxo-set,.sxo-final{grid-area:1/1}
.sxo-set{display:flex;flex-direction:column;align-items:flex-start}
.sxo-l{position:relative;display:inline-block;transition:opacity .6s ease,filter .6s ease,transform .6s ease,color .4s ease}
.sxo-l::after{content:"";position:absolute;left:-.04em;right:-.04em;top:52%;height:.09em;min-height:4px;background:#FF2ECC;border-radius:3px;
  transform:scaleX(0) rotate(-2deg);transform-origin:left center;transition:transform .45s cubic-bezier(.6,.1,.3,1);box-shadow:0 0 14px rgba(255,46,204,.6)}
.sxo-s1 .sxo-l:nth-child(1)::after,.sxo-s2 .sxo-l:nth-child(2)::after,.sxo-s3 .sxo-l:nth-child(3)::after{transform:scaleX(1) rotate(-2deg)}
.sxo-s1 .sxo-l:nth-child(1),.sxo-s2 .sxo-l:nth-child(2),.sxo-s3 .sxo-l:nth-child(3){color:#8F8F8F}
.sxo-s4 .sxo-l{opacity:0;filter:blur(10px);transform:translateY(-12px) scale(.98)}
.sxo-s4 .sxo-l:nth-child(2){transition-delay:.08s}.sxo-s4 .sxo-l:nth-child(3){transition-delay:.16s}
.sxo-final{align-self:center;opacity:0;transform:translateY(18px);filter:blur(6px);transition:opacity .7s ease,transform .7s cubic-bezier(.2,.8,.2,1),filter .7s ease;pointer-events:none}
.sxo-final em{font-style:normal;color:#BCFF00;text-shadow:0 0 18px rgba(188,255,0,.55)}
.sxo-s5 .sxo-final{opacity:1;transform:none;filter:none}
@media(prefers-reduced-motion:reduce){.sxo-l,.sxo-l::after,.sxo-final{transition:none}}

/* phones: two tiles side by side */
@media (max-width:720px){
  #svcgrid:not(.open){grid-template-columns:1fr 1fr!important;gap:10px!important}
  #svcgrid:not(.open) .svc{width:100%!important;margin:0!important;text-align:left!important;display:flex;flex-direction:column;
    align-items:flex-start;justify-content:center;gap:8px;min-height:96px;padding:14px!important}
  #svcgrid:not(.open) .svc .svc-i{width:22px;height:22px;margin:0}
  #svcgrid:not(.open) .svc h3{font-size:15px!important;line-height:1.15;margin:0!important}
  #svcgrid:not(.open) .svc .svc-d,#svcgrid:not(.open) .svc > p:has(.svc-go){display:none}
}
