/* ==========================================================================
   LXS Motion — Sport skin (.lxs-*), loaded only on the "Home Sport" page,
   after lxc-motion.css (which keeps Lenis, the split helpers and the intro).
   Same rules as Light: hidden states only under html.lxc-js; nothing is
   hidden with reduced motion (html.lxc-rm).
   ========================================================================== */

/* ---------- Intro: Sport colours ---------- */
html.lxc-intro-pending body::after,
.lxc-intro__panel { background-color: var(--lxs-bg, #0a0a0b); }
.lxc-intro,
.lxc-intro__mark { color: var(--lxs-white, #fff); }
.lxc-intro__line { background-color: var(--lxs-accent, #ff5b1f); width: 2px; margin-left: -1px; }

/* ---------- Start states (JS running) ---------- */
html.lxc-js .lxs-h2:not(.lxs-about__title),
html.lxc-js .lxs-hero__slide--active .lxs-hero__title,
html.lxc-js .lxs-destinations__banner-title { visibility: hidden; }

html.lxc-js .lxs-hero__slide--active .lxs-hero__eyebrow,
html.lxc-js .lxs-hero__slide--active .lxs-hero__lead,
html.lxc-js .lxs-hero__slide--active .lxs-hero__actions,
html.lxc-js .lxs-section-head > .lxs-text,
html.lxc-js .lxs-section__head-action,
html.lxc-js .lxs-about__text,
html.lxc-js .lxs-about__metric,
html.lxc-js .lxs-about__brand-logo,
html.lxc-js .lxs-steps__card,
html.lxc-js .lxs-contact__card,
html.lxc-js .lxs-destinations__banner-text,
html.lxc-js .lxs-destinations__banner-btn,
html.lxc-js .lxs-destinations__link,
html.lxc-js .lxs-cta__actions,
html.lxc-js .lxs-footer__brand,
html.lxc-js .lxs-footer__col,
html.lxc-js .lxs-footer__bottom > * {
	opacity: 0;
	transform: translateY(16px);
}

html.lxc-js .lxs-section-head > .lxs-eyebrow,
html.lxc-js .lxs-about__brands-label,
html.lxc-js .lxs-destinations__banner-eyebrow,
html.lxc-js .lxs-hero__controls-wrap,
html.lxc-js .lxs-header__logo,
html.lxc-js .lxs-nav__item { opacity: 0; }

html.lxc-js .lxs-models__card[data-page="1"] .lxs-models__media,
html.lxc-js .lxs-fleet__media,
html.lxc-js .lxs-steps__number { clip-path: inset(100% 0 0 0); }

/* Hairlines drawn from the left (same technique as Light) */
html.lxc-js .lxs-about__metrics,
html.lxc-js .lxs-footer__bottom { position: relative; border-top-color: transparent; --lxc-line: 0; }
html.lxc-js .lxs-about__metrics::before,
html.lxc-js .lxs-footer__bottom::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -1px;
	height: 1px;
	background-color: var(--lxs-line);
	transform: scaleX(var(--lxc-line));
	transform-origin: 0 50%;
	pointer-events: none;
}

/* ---------- Hero helpers ---------- */
.lxs-hero__zoom { position: absolute; inset: 0; will-change: transform; }
.lxs-hero__dot { transition: width 0.9s var(--lxc-ease-move), background-color 0.9s var(--lxc-ease-move); }

/* ---------- Navigation states ----------
   No-JS: the static gradient on .lxs-header. With JS the gradient moves to
   ::before and ::after becomes the solid band of the section underneath. */
html.lxc-js .lxs-header { background-image: none; }
html.lxc-js .lxs-header::before,
html.lxc-js .lxs-header::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	z-index: -1;
	pointer-events: none;
	transition: opacity 0.7s var(--lxc-ease-move), background-color 0.7s var(--lxc-ease-move);
}
html.lxc-js .lxs-header::before {
	bottom: 0;
	background-image: linear-gradient(to bottom, rgba(10,10,11,1) 0%, rgba(10,10,11,0) 100%);
}
html.lxc-js .lxs-header::after {
	height: 88px;
	background-color: var(--lxc-band, transparent);
	border-bottom: 1px solid var(--lxs-line);
	opacity: 0;
}
html.lxc-js .lxs-header--band::before { opacity: 0; }
html.lxc-js .lxs-header--band::after { opacity: 1; }

.lxs-header__logo,
.lxs-nav__link {
	transition: color 0.6s var(--lxc-ease-move), background-color 0.5s var(--lxc-ease-move);
	transition-delay: var(--lxc-nav-delay, 0s);
}

/* ---------- Keyboard focus ---------- */
.lxs-header a:focus-visible,
.lxs-hero a:focus-visible,
.lxs-hero button:focus-visible,
.lxs-section a:focus-visible,
.lxs-section button:focus-visible,
.lxs-footer a:focus-visible {
	outline: 2px solid var(--lxs-accent);
	outline-offset: 3px;
}

/* ---------- Hover — only real pointers ---------- */
@media (hover: hover) and (pointer: fine) {
	/* Cards: lift + slow image zoom; the card edge picks up the accent */
	.lxs-fleet__card,
	.lxs-models__card,
	.lxs-destinations__card,
	.lxs-experiences__card {
		translate: 0 0;
		transition: translate 0.9s var(--lxc-ease-arrive), border-color 0.6s var(--lxc-ease-move);
	}
	.lxs-fleet__card .lxs-media__img,
	.lxs-models__card .lxs-media__img,
	.lxs-destinations__card .lxs-media__img,
	.lxs-experiences__card .lxs-media__img {
		scale: 1;
		transition: scale 1.2s var(--lxc-ease-arrive);
	}
	.lxs-fleet__card:hover,
	.lxs-models__card:hover,
	.lxs-destinations__card:hover,
	.lxs-experiences__card:hover { translate: 0 -12px; border-color: var(--lxs-line-strong); }
	.lxs-fleet__card:hover .lxs-media__img,
	.lxs-models__card:hover .lxs-media__img,
	.lxs-destinations__card:hover .lxs-media__img,
	.lxs-experiences__card:hover .lxs-media__img { scale: 1.04; }

	/* Underlines drawn from the left, 1px */
	.lxs-link,
	.lxs-request { text-decoration: none; }
	.lxs-link__label,
	.lxs-request__label,
	.lxs-nav__link:not(.lxs-nav__link--cta),
	.lxs-footer__link:not(.lxs-footer__link--static) {
		background-image: linear-gradient(currentColor, currentColor);
		background-repeat: no-repeat;
		background-position: 0 100%;
		background-size: 0% 1px;
		transition: background-size 0.7s var(--lxc-ease-move), color 0.6s var(--lxc-ease-move);
		padding-bottom: 2px;
		margin-bottom: -2px;
	}
	.lxs-nav__link:not(.lxs-nav__link--cta) { background-position: 100% 100%; }
	.lxs-nav__link:not(.lxs-nav__link--cta):hover { background-position: 0 100%; background-size: 100% 1px; }
	.lxs-footer__link:not(.lxs-footer__link--static):hover { background-size: 100% 1px; color: var(--lxs-text); }
	.lxs-link:hover .lxs-link__label,
	.lxs-request:hover .lxs-request__label { background-size: 100% 1px; }

	/* Arrows slide forward and turn accent */
	.lxs-arrow { transition: translate 0.6s var(--lxc-ease-arrive), color 0.5s var(--lxc-ease-move); }
	.lxs-link:hover .lxs-arrow,
	.lxs-request:hover .lxs-arrow { translate: 4px 0; color: var(--lxs-accent); }

	/* "Richiedi" bar: the accent top line fills to full strength */
	.lxs-request { transition: border-color 0.6s var(--lxc-ease-move); }

	/* Buttons: accent → white; outline → accent fill */
	.lxs-btn,
	.lxs-hero__arrow,
	.lxs-icon-btn {
		transition: color 0.5s var(--lxc-ease-move), background-color 0.5s var(--lxc-ease-move), border-color 0.5s var(--lxc-ease-move);
	}
	html .lxs-btn--primary:hover {
		background-color: var(--lxs-white);
		border-color: var(--lxs-white);
		color: var(--lxs-accent-on);
		transition-delay: 0s;
	}
	.lxs-btn--secondary:hover,
	.lxs-hero__arrow:hover,
	.lxs-icon-btn:hover {
		background-color: var(--lxs-accent);
		border-color: var(--lxs-accent);
		color: var(--lxs-accent-on);
	}

	/* Hero dots: inactive ones brighten toward the accent */
	.lxs-hero__dot:not(.lxs-hero__dot--active):hover { background-color: var(--lxs-accent); }

	html.lxc-rm .lxs-card:hover { translate: 0 0; }
	html.lxc-rm .lxs-card:hover .lxs-media__img { scale: 1; }
}

/* ---------- Small screens ---------- */
@media (max-width: 767px) {
	html.lxc-js .lxs-header::after { height: 64px; }
}
