/* =====================================================================
   4S MedTech — V125 effects layer
   Motion and interaction only. The V124 design is unchanged.
   Delete this file and js/effects.js to remove every effect.
   ===================================================================== */

html{scroll-behavior:smooth}
:root{--fx-ease:cubic-bezier(.22,.7,.2,1);--fx-cyan:#79d8f2;--fx-red:#d6182e}

/* ---------- Scroll progress hairline ---------- */
.fx-progress{position:fixed;top:0;left:0;right:0;height:2px;z-index:1000;pointer-events:none;
  transform-origin:0 50%;transform:scaleX(var(--fx-progress,0));
  background:linear-gradient(90deg,var(--fx-cyan),#4cb8e6 60%,var(--fx-red))}

/* ---------- Sticky header with soft shadow once scrolled ---------- */
body.v6-home .v6-header{position:sticky;top:0;z-index:60;transition:box-shadow .35s var(--fx-ease)}
body.v6-home .v6-header.fx-scrolled{box-shadow:0 10px 28px -10px rgba(2,14,34,.55)}

/* ---------- Nav: underline that grows from the centre ---------- */
body.v6-home .v6-nav a:not(.v6-nav-contact){
  background-image:linear-gradient(var(--fx-cyan),var(--fx-cyan));
  background-repeat:no-repeat;background-position:50% calc(100% - 2px);background-size:0 1.5px;
  transition:background-size .35s var(--fx-ease),color .2s}
body.v6-home .v6-nav a:not(.v6-nav-contact):hover{background-size:calc(100% - 20px) 1.5px}

/* ---------- Hero: slow settle-in zoom (ends exactly on the original framing) ---------- */
body.v6-home .v6-hero{isolation:isolate;overflow-x:clip}
body.v6-home .v6-hero::before{
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:inherit;transform-origin:65% 50%}

/* ---------- Buttons: lift + light sweep ---------- */
body.v6-home :is(.v6-button,.btn,.v6-nav-contact){position:relative;overflow:hidden;isolation:isolate;
  transition:transform .3s var(--fx-ease),box-shadow .3s var(--fx-ease),background-color .3s,color .3s,border-color .3s}
body.v6-home :is(.v6-button,.btn):hover{transform:translateY(-2px);box-shadow:0 12px 26px -12px rgba(3,22,46,.55)}
body.v6-home :is(.v6-button,.btn):active{transform:translateY(0)}
.fx-sheen{position:absolute;inset:0;z-index:2;pointer-events:none;overflow:hidden;border-radius:inherit}
.fx-sheen::after{content:"";position:absolute;top:-20%;bottom:-20%;left:-60%;width:45%;
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.38),transparent);
  transform:skewX(-18deg) translateX(0);opacity:0}
:is(.v6-button,.btn,.v6-nav-contact):hover .fx-sheen::after{animation:fx-sweep .85s var(--fx-ease)}
@keyframes fx-sweep{0%{opacity:1;transform:skewX(-18deg) translateX(0)}100%{opacity:1;transform:skewX(-18deg) translateX(420%)}}

/* ---------- Cards: cursor-following glow + image zoom ---------- */
.fx-glow{position:absolute;inset:0;z-index:3;pointer-events:none;border-radius:inherit;opacity:0;
  background:radial-gradient(260px circle at var(--fx-x,50%) var(--fx-y,50%),rgba(121,216,242,.22),rgba(121,216,242,0) 65%);
  transition:opacity .35s var(--fx-ease)}
.fx-card:hover > .fx-glow{opacity:1}
.fx-card.fx-dark > .fx-glow{background:radial-gradient(240px circle at var(--fx-x,50%) var(--fx-y,50%),rgba(121,216,242,.16),rgba(121,216,242,0) 65%)}
body.v6-home .fx-card{position:relative}
body.v6-home :is(.v6-speciality,.v6-product,.v95-image,.a124-photo){overflow:hidden}
body.v6-home :is(.v6-speciality,.v6-product) img,
body.v6-home .v95-image img{transition:transform .9s var(--fx-ease)}
body.v6-home :is(.v6-speciality,.v6-product):hover img,
body.v6-home .v95-card:hover .v95-image img{transform:scale(1.06)}
body.v6-home :is(.v6-speciality,.v6-product,.v57-card,.v95-card,.v93-card,.card,.product-item,.a124-tile,.a124-value,.a124-foundation-pill){
  transition:transform .4s var(--fx-ease),box-shadow .4s var(--fx-ease),border-color .4s}
body.v6-home :is(.card,.a124-tile,.a124-value,.a124-foundation-pill):hover{transform:translateY(-4px);box-shadow:0 16px 32px -14px rgba(5,43,86,.22)}
body.v6-home .product-item:hover{transform:translateY(-2px);box-shadow:0 10px 22px -12px rgba(5,43,86,.25)}
body.v6-home .v93-card:hover{transform:translateY(-3px)}

/* Icons get a small lift on hover */
body.v6-home :is(.v6-feature,.v57-card,.v93-card,.a124-tile,.a124-value) svg{transition:transform .45s var(--fx-ease)}
body.v6-home :is(.v6-feature,.v57-card,.v93-card,.a124-tile,.a124-value):hover svg{transform:translateY(-2px) scale(1.08)}
body.v6-home .v6-feature{transition:background-color .3s}
body.v6-home .v6-feature:hover{background-color:rgba(255,255,255,.035)}

/* Footer links and socials */
body.v6-home .f101-footer a{transition:color .2s,transform .25s var(--fx-ease)}
body.v6-home .f101-footer ul a:hover{transform:translateX(3px)}
body.v6-home .f101-socials a:hover{transform:translateY(-3px)}

/* ---------- Back to top ---------- */
.fx-top{position:fixed;right:22px;bottom:22px;z-index:70;width:46px;height:46px;border-radius:50%;
  display:grid;place-items:center;cursor:pointer;color:#fff;border:1px solid rgba(121,216,242,.45);
  background:linear-gradient(140deg,#0a2d5c,#03152f);box-shadow:0 12px 26px -10px rgba(3,22,46,.6);
  opacity:0;transform:translateY(14px) scale(.9);pointer-events:none;
  transition:opacity .35s var(--fx-ease),transform .35s var(--fx-ease),border-color .2s}
.fx-top.fx-show{opacity:1;transform:none;pointer-events:auto}
.fx-top:hover{border-color:var(--fx-cyan);transform:translateY(-3px)}
.fx-top svg{width:18px;height:18px}

/* ---------- Images fade in once loaded ---------- */
img.fx-img{opacity:0;transition:opacity .7s var(--fx-ease)}
img.fx-img.fx-loaded{opacity:1}

/* ---------- Reveal on scroll (inner pages; homepage uses V104) ---------- */
.fx-reveal{opacity:0;transform:translateY(22px);
  transition:opacity .85s var(--fx-ease),transform .85s var(--fx-ease);transition-delay:var(--fx-delay,0ms)}
.fx-reveal.fx-in{opacity:1;transform:none}

/* ---------- Motion on load ---------- */
@media (prefers-reduced-motion:no-preference){
  body.v6-home .v6-hero-content > *{animation:fx-rise .9s var(--fx-ease) both}
  body.v6-home .v6-hero-content > *:nth-child(2){animation-delay:.1s}
  body.v6-home .v6-hero-content > *:nth-child(3){animation-delay:.2s}
  body.v6-home .v6-hero-content > *:nth-child(4){animation-delay:.3s}
  body.v6-home .v6-feature-strip .v6-feature{animation:fx-rise .9s var(--fx-ease) both}
  body.v6-home .v6-feature-strip .v6-feature:nth-child(1){animation-delay:.35s}
  body.v6-home .v6-feature-strip .v6-feature:nth-child(2){animation-delay:.43s}
  body.v6-home .v6-feature-strip .v6-feature:nth-child(3){animation-delay:.51s}
  body.v6-home .v6-feature-strip .v6-feature:nth-child(4){animation-delay:.59s}
  body.v6-home .v6-overline i{animation:fx-pulse 2.6s ease-in-out 1.2s infinite}
}
@keyframes fx-settle{from{transform:scale(1.07)}to{transform:none}}
@keyframes fx-rise{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
@keyframes fx-pulse{0%,100%{opacity:1}50%{opacity:.45}}

/* ---------- Respect reduced motion ---------- */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .fx-reveal,img.fx-img{opacity:1!important;transform:none!important;transition:none!important}
  .fx-sheen,.fx-glow{display:none}
  body.v6-home *{transition-duration:.01ms!important;animation-duration:.01ms!important}
}
@media (hover:none){.fx-glow,.fx-sheen{display:none}}

/* V142: no cursor-following light anywhere — the pointer stays normal */
.fx-glow,.hm-spot,.gx-footspot,.ab-glare,.ab-halo{display:none!important}
.cat-media::after{background:none!important}

/* V153: deeper footer + homepage About / Strategic Partnerships backgrounds */
footer.f101-footer{box-shadow:inset 0 0 0 100vmax rgba(0,4,20,.06)}
/* (V155: homepage About / Strategic Partnerships darkening removed — back to V152) */
