
/* Tru-Solutions — GSAP motion layer styles. Loaded after style.css.
 * html.gsap-active is set only while GSAP owns the motion; everything here is inert otherwise,
 * so the original CSS animations / IntersectionObserver reveals remain the fallback. */

/* 1. Hand the hero entrance and scroll reveals over to GSAP (no double animation). */
html.gsap-active .hero-copy > *,
html.gsap-active .hero-visual { animation-name: none; }
html.gsap-active .hero-window,
html.gsap-active .hero-float-label,
html.gsap-active .hero-partner-card { animation-delay: 0s; } /* keep the idle float loops, just start them at once */
html.gsap-active .motion-ready .reveal,
html.gsap-active .motion-ready .reveal.visible { opacity: 1; transform: none; transition: box-shadow .4s, border-color .35s, background .25s; }
html.gsap-active .gallery-card.reveal { transition: box-shadow .3s, transform .3s var(--ease); }

/* Pre-hide intro pieces until the timeline starts, so nothing flashes before GSAP runs.
   The intro timeline removes this by adding html.gsap-intro-done. A no-GSAP fallback in the
   page also removes .gsap-active if the library never arrives. */
html.gsap-active:not(.gsap-intro-done) .hero-copy > *,
html.gsap-active:not(.gsap-intro-done) .hero-visual,
html.gsap-active:not(.gsap-intro-done) .global-header .brand,
html.gsap-active:not(.gsap-intro-done) .global-header .main-nav > a,
html.gsap-active:not(.gsap-intro-done) .global-header .header-actions > *,
html.gsap-active:not(.gsap-intro-done) .product-nav,
html.gsap-active:not(.gsap-intro-done) .numbers-grid > div,
html.gsap-active:not(.gsap-intro-done) .phrase-pill { opacity: 0; }

/* SplitText line wrappers need overflow hidden for the "rise from the baseline" effect. */
.gsap-line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }

/* 2. Navigation hover polish */
.main-nav > a { position: relative; }
.main-nav > a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px;
  background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.main-nav > a:hover::after, .main-nav > a.active::after { transform: scaleX(1); }
.brand { transition: transform .3s var(--ease); }
.brand:hover { transform: translateY(-1px); }
.global-header { transition: box-shadow .35s, background .35s; }
.global-header.is-scrolled { box-shadow: 0 6px 24px #1a2a5a10; }

/* 3. Product / solution cards */
.product-tab, .specialty-tabs > button, .filter-pills > button, .fit-options > button {
  transition: transform .3s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .3s; }
.product-tab:hover, .specialty-tabs > button:hover, .filter-pills > button:hover, .fit-options > button:hover { transform: translateY(-2px); }
.product-stage, .stage-window { transition: transform .5s var(--ease), box-shadow .5s; }
.product-stage:hover { transform: translateY(-4px); box-shadow: 0 24px 50px #2339651a; }
.check-grid > li { transition: transform .3s var(--ease); }
.check-grid > li:hover { transform: translateX(4px); }

/* 4. eLab / MediScope */
.feature-image-wrap, .scope-visual img { overflow: hidden; }
.feature-image-wrap img, #specialty-image { transition: transform .8s var(--ease); }
.feature-screen:hover .feature-image-wrap img, .scope-visual:hover #specialty-image { transform: scale(1.025); }
.feature-item { transition: transform .3s var(--ease), background .25s, border-color .25s; }
.feature-item:not(.active):hover { transform: translateX(4px); }

/* 5. Gallery hover zoom */
.gallery-card-image { overflow: hidden; display: block; }
.gallery-card-image img { transition: transform .9s var(--ease), filter .5s; }
.gallery-card:hover .gallery-card-image img { transform: scale(1.07); }
.gallery-card-zoom { transition: transform .4s var(--ease), opacity .3s; }
.gallery-card:hover .gallery-card-zoom { transform: scale(1.1); }

/* 6. Remaining sections */
.steps-grid article { transition: transform .4s var(--ease); }
.steps-grid article:hover { transform: translateY(-4px); }
.steps-grid article:hover .step-icon { background: var(--blue); color: #fff; }
.step-icon { transition: background .3s, color .3s, transform .3s var(--ease); }
.topic-chip span { will-change: transform; }
.comparison-table tbody tr { transition: background .25s; }
.comparison-table tbody tr:hover { background: var(--pale, #fffaf4); }
.contact-method-icon { will-change: transform; }
.enquiry-card .field input, .enquiry-card .field select, .enquiry-card .field textarea { transition: border-color .25s, box-shadow .25s, transform .25s; }
.enquiry-card .field input:focus, .enquiry-card .field select:focus, .enquiry-card .field textarea:focus { box-shadow: 0 0 0 4px #f5822014; }
.back-to-top, .floating-whatsapp { transition: transform .3s var(--ease), opacity .3s, box-shadow .3s; }
.back-to-top:hover, .floating-whatsapp:hover { transform: translateY(-3px) scale(1.04); }

/* Respect the pause control and reduced-motion preference for everything above. */
html.motion-paused .main-nav > a::after { transition: none; }
html.motion-paused .gallery-card:hover .gallery-card-image img,
html.motion-paused .product-stage:hover,
html.motion-paused .steps-grid article:hover { transform: none; }

