/* ===== Hover, card & image light effects (site-wide, front-end only) ===== */
:root{--fx-glow:rgba(75,98,168,.28);--fx-glow-g:rgba(53,179,74,.22);--fx-ease:cubic-bezier(.22,.8,.3,1)}

/* ---------- Cards / boxes: lift + glow + moving light ---------- */
.ts-card,.ts-who li,.ts-choose>div,.ts-m,.ts-steps li,.ts-checks li,.ts-note,
.tile,.sol-card,.sol-mini,.loc-card,.hm-tile,.hm-card,.ex-card,.cw-card,.hs-card,.card,.post-card{
  transition:transform .35s var(--fx-ease),box-shadow .35s var(--fx-ease),border-color .3s,background-color .3s;
  will-change:transform}
.ts-card:hover,.ts-who li:hover,.ts-choose>div:hover,.ts-m:hover,.ts-steps li:hover,.ts-checks li:hover,
.tile:hover,.sol-card:hover,.sol-mini:hover,.loc-card:hover,.hm-tile:hover,.hm-card:hover,.ex-card:hover,.cw-card:hover,.hs-card:hover,.post-card:hover{
  transform:translateY(-6px);
  border-color:rgba(75,98,168,.55);
  box-shadow:0 18px 40px rgba(22,31,74,.14),0 0 0 1px rgba(75,98,168,.18),0 10px 34px var(--fx-glow)}
.ts-who li:nth-child(even):hover,.ts-steps li:nth-child(even):hover{box-shadow:0 18px 40px rgba(22,31,74,.14),0 10px 34px var(--fx-glow-g)}
/* light that follows the cursor (position set by effects.js; falls back to top centre) */
.ts-card:hover,.ts-who li:hover,.ts-choose>div:hover,.ts-m:hover,.ts-steps li:hover,.ts-checks li:hover,
.tile:hover,.sol-card:hover,.sol-mini:hover,.hm-tile:hover,.hs-card:hover,.cw-card:hover,.post-card:hover{
  background-image:radial-gradient(380px circle at var(--mx,50%) var(--my,0%),rgba(75,98,168,.11),rgba(53,179,74,.05) 45%,transparent 70%)}
.ts-card:hover .em,.ts-m:hover b{transform:scale(1.08) rotate(-4deg)}
.ts-card .em,.ts-m b{transition:transform .35s var(--fx-ease)}
.ts-card:hover .no{color:rgba(75,98,168,.28)}
.ts-card .no{transition:color .3s}
.ts-apps li{transition:background .25s,color .25s,transform .25s}
.ts-apps li:hover{background:var(--brand);color:#fff;transform:translateY(-2px)}

/* ---------- Images: zoom + brighter look + light sweep ---------- */
.ts-img,.hs-pic,.cw-img,.post-card .thumb{position:relative;overflow:hidden}
.ts-img img,.hs-pic img,.cw-img img,.post-card .thumb img,.hm-card-pic img,.ex-pic img,.loc-card-pic img{
  transition:transform .7s var(--fx-ease),filter .5s}
.ts-img:hover img,.hs-card:hover .hs-pic img,.cw-card:hover .cw-img img,.post-card:hover .thumb img,
.hm-card:hover .hm-card-pic img,.ex-card:hover .ex-pic img,.loc-card:hover .loc-card-pic img{
  transform:scale(1.07);filter:saturate(1.15) contrast(1.04) brightness(1.05)}
.loc-card:hover .loc-card-pic img{transform:scale(1.06) translateY(-3px);filter:drop-shadow(0 12px 18px rgba(22,31,74,.22)) saturate(1.1)}
.ts-img{transition:box-shadow .4s,border-color .3s,transform .4s var(--fx-ease)}
.ts-img:hover{box-shadow:0 22px 56px rgba(22,31,74,.22),0 0 40px var(--fx-glow);border-color:rgba(75,98,168,.45)}
/* diagonal light sweep across the picture */
.ts-img::after,.hs-pic::after,.cw-img::after,.post-card .thumb::after{
  content:"";position:absolute;inset:0;pointer-events:none;z-index:2;
  background:linear-gradient(115deg,transparent 35%,rgba(255,255,255,.55) 50%,transparent 65%);
  transform:translateX(-120%);transition:transform 0s}
.ts-img:hover::after,.hs-card:hover .hs-pic::after,.cw-card:hover .cw-img::after,.post-card:hover .thumb::after{
  transform:translateX(120%);transition:transform .9s ease}

/* ---------- Buttons, links, menu ---------- */
.btn{transition:transform .25s var(--fx-ease),box-shadow .25s,background .25s,color .25s}
.btn:hover{transform:translateY(-3px);box-shadow:0 12px 26px rgba(22,31,74,.22)}
.btn-green:hover{box-shadow:0 12px 28px rgba(53,179,74,.38)}
.btn:active{transform:translateY(-1px)}
.ts-table tbody tr{transition:background .2s,transform .2s}
.ts-table tbody tr:hover{background:#e8eefc!important}
.faq-item,.faq details{transition:box-shadow .3s,border-color .3s}
.faq-item:hover,.faq details:hover{box-shadow:0 10px 26px rgba(22,31,74,.10);border-color:rgba(75,98,168,.4)}

/* ---------- Touch / reduced-motion safety ---------- */
@media (hover:none){
  .ts-card:hover,.ts-who li:hover,.ts-choose>div:hover,.ts-m:hover,.ts-steps li:hover,.ts-checks li:hover,.tile:hover,.sol-card:hover,.loc-card:hover,.hm-card:hover,.ex-card:hover,.cw-card:hover,.hs-card:hover,.post-card:hover{transform:none}
}
@media (prefers-reduced-motion:reduce){
  .ts-card,.ts-who li,.ts-choose>div,.ts-m,.ts-steps li,.tile,.sol-card,.loc-card,.hm-card,.ex-card,.cw-card,.hs-card,.post-card,.ts-img img,.btn{transition:none!important}
  .ts-img::after,.hs-pic::after,.cw-img::after,.post-card .thumb::after{display:none}
}
