/* Subtle polish: word-by-word headline, image fade-in, page transitions, nav underline, gentle idle motion */

/* ---------- Headline words rise into place (hero + page banners) ---------- */
.lw-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.lw-word > span { display: inline-block; }
html.lw-js .lw-split .lw-word > span { transform: translateY(112%); opacity: 0; animation: lwWord .85s var(--lw-ease) forwards; animation-delay: calc(var(--i, 0) * 55ms + 120ms); }
html.lw-loading .lw-split .lw-word > span { animation-play-state: paused; }
@keyframes lwWord { to { transform: none; opacity: 1; } }

/* ---------- Images fade in as they load (no pop-in) ---------- */
html.lw-js .lw-img:not(.is-loaded) { opacity: 0; }
html.lw-js .lw-img.is-loaded { animation: lwImgIn .7s ease both; }
@keyframes lwImgIn { from { opacity: 0; } to { opacity: 1; } }
/* gentle settle when a photo scrolls into view */
html.lw-js .lw-frow__img img, html.lw-js .lw-gal__item img, html.lw-js .lw-scard__img img { transform: scale(1.1); }
html.lw-js .lw-frow.is-in .lw-frow__img img, html.lw-js .lw-gal__item.is-in img, html.lw-js .lw-scard.is-in .lw-scard__img img { transform: scale(1); }
html.lw-js .lw-frow.is-in:hover .lw-frow__img img { transform: scale(1.04); }
html.lw-js .lw-gal__item.is-in:hover img { transform: scale(1.06); }
html.lw-js .lw-scard.is-in:hover .lw-scard__img img { transform: scale(1.07); }

/* ---------- Page transitions ---------- */
html.lw-js:not(.lw-loading) body { animation: lwPageIn .55s ease both; }
@keyframes lwPageIn { from { opacity: 0; } to { opacity: 1; } }
html.lw-leaving body { opacity: 0; transition: opacity .22s ease; }

/* ---------- Menu underline grows from the centre on hover ---------- */
.lw-nav__link::before { content: ""; position: absolute; left: 13px; right: 13px; top: auto; width: auto; bottom: 3px; height: 2px; border-radius: 2px; background: var(--lw-cyan); transform: scaleX(0); transition: transform .35s var(--lw-ease); pointer-events: none; }
.lw-nav__link:hover::before, .lw-nav__item.is-open > .lw-nav__link::before, .lw-nav__item.is-current > .lw-nav__link::before { transform: scaleX(1); }
@media (max-width: 1080px) {
  .lw-nav__link::before { left: 4px; right: auto; width: 28px; bottom: 10px; transform: scaleX(0); transform-origin: left; }
  .lw-nav__link:hover::before, .lw-nav__item.is-open > .lw-nav__link::before { transform: scaleX(0); }
  .lw-nav__item.is-current > .lw-nav__link::before { transform: scaleX(1); }
}

/* ---------- Footer + small interactions ---------- */
.lw-links .elementor-icon-list-text { display: inline-block; transition: transform .25s var(--lw-ease), color .2s; }
.lw-links .elementor-icon-list-item:hover .elementor-icon-list-text { transform: translateX(5px); }
.lw-btn .elementor-button:active { transform: scale(.97); }
.lw-fsocial .elementor-icon { transition: transform .3s var(--lw-ease); }
.lw-fsocial:hover .elementor-icon { transform: scale(1.12) rotate(-6deg); }
.lw-topbar__social .elementor-icon { transition: transform .3s var(--lw-ease), color .25s; }
.lw-topbar__social:hover .elementor-icon { transform: translateY(-2px); }
.lw-chip { transition: transform .25s var(--lw-ease); }
.lw-chip:hover { transform: translateY(-2px); }
.lw-contact__ic .elementor-icon, .lw-covered__ic .elementor-icon { transition: transform .35s var(--lw-ease), background-color .3s; }
.lw-contact__list > .e-con:hover .lw-contact__ic .elementor-icon { transform: translateY(-3px) rotate(-6deg); }

/* ---------- Gentle idle motion ---------- */
.lw-step__ic .elementor-icon { animation: lwBob 5s ease-in-out infinite; }
.lw-step:nth-child(2) .lw-step__ic .elementor-icon { animation-delay: .6s; }
.lw-step:nth-child(3) .lw-step__ic .elementor-icon { animation-delay: 1.2s; }
.lw-step:nth-child(4) .lw-step__ic .elementor-icon { animation-delay: 1.8s; }
@keyframes lwBob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
.lw-warranty__badge .elementor-icon { animation: lwBadge 4s ease-in-out infinite; }
@keyframes lwBadge { 0%, 100% { box-shadow: 0 0 0 0 rgba(31, 178, 230, .45); } 50% { box-shadow: 0 0 0 16px rgba(31, 178, 230, 0); } }
.lw-hotspot { animation: none; }
.lw-top.is-on { animation: lwPop .4s var(--lw-ease); }
@keyframes lwPop { from { transform: scale(.6); } to { transform: none; } }

/* Contact / MetForm fields lift slightly when focused */
.lw-mf .mf-input-wrapper .mf-input:not(.mf-input-select):not(.mf-checkbox-input) { transition: border-color .2s, box-shadow .2s, background-color .2s, transform .2s; }
.lw-mf .mf-input-wrapper .mf-input:not(.mf-input-select):not(.mf-checkbox-input):focus { transform: translateY(-1px); }

/* Warranty badge sits where the big number used to be */
.lw-warranty__badge { flex: none; }

@media (prefers-reduced-motion: reduce) {
  html.lw-js .lw-split .lw-word > span { transform: none; opacity: 1; animation: none; }
  html.lw-js .lw-img:not(.is-loaded) { opacity: 1; }
  html.lw-js .lw-frow__img img, html.lw-js .lw-gal__item img, html.lw-js .lw-scard__img img { transform: none; }
  html.lw-js:not(.lw-loading) body { animation: none; }
  .lw-step__ic .elementor-icon, .lw-warranty__badge .elementor-icon { animation: none; }
}
.lw-editor .lw-img { opacity: 1 !important; }
.lw-editor .lw-split .lw-word > span { transform: none !important; opacity: 1 !important; animation: none !important; }
.lw-editor .lw-frow__img img, .lw-editor .lw-gal__item img { transform: none !important; }

/* ---------- Typography refinements ---------- */
.lw-site .elementor-widget-heading .elementor-heading-title { text-wrap: balance; }
.lw-site .elementor-widget-text-editor p { text-wrap: pretty; }
.lw-anat__n .elementor-heading-title, .lw-avatar .elementor-heading-title { text-align: center; width: 100%; }
.lw-anat__n .elementor-widget, .lw-avatar .elementor-widget { width: 100%; }

/* Footer: contact column wide enough for the full email address on desktop */
@media (min-width: 1081px) {
  .lw-footer__grid { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, .9fr)) minmax(0, 1.75fr); }
  .lw-footer__contact .elementor-heading-title { white-space: nowrap; overflow-wrap: normal; }
}
