/* =========================================================================
 * Module: Animated Banner Section (Home hero)
 *
 * Loaded only on the front page (conditional module loader). Reproduces the
 * approved prototype: a fixed 1920×1080 "stage" scaled to the viewport width
 * with fading screens, Ken Burns backgrounds, a particle canvas and a bottom
 * pill-nav. Below 992px the stage is hidden and a responsive stack is shown.
 *
 * Colour tokens come from style.css :root (--fuchs-*).
 * ====================================================================== */

/* -------------------------------------------------------------------------
 * Home-only header: transparent + overlaid on the hero.
 * (Overrides the solid sticky header from style.css, home page only.)
 * ---------------------------------------------------------------------- */
body.home #page {
	position: relative;
}
body.home .site-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1030;
	background: linear-gradient(to bottom, rgba(15, 31, 65, 0.55), rgba(15, 31, 65, 0));
	box-shadow: none;
}
body.home #content.site-content {
	padding: 0 !important; /* beat Bootstrap .py-4 utility (uses !important) */
}
body.home #content > .container {
	max-width: none;
	width: 100%;
	padding: 0;
	margin: 0;
}
/* Keep the collapsed mobile menu legible over the hero. */
@media (max-width: 991.98px) {
	body.home .site-header .navbar-collapse.show,
	body.home .site-header .navbar-collapse.collapsing {
		background: var(--fuchs-dark-blue);
		border-radius: 0 0 10px 10px;
		padding: 0.75rem 1rem 1rem;
		margin-top: 0.5rem;
	}
}

/* -------------------------------------------------------------------------
 * Hero shell (full width, 16:9 — ≈100vh on 16:9 displays).
 * ---------------------------------------------------------------------- */
.fuchs-hero {
	position: relative;
	width: 100%;
	aspect-ratio: 1920 / 1080;
	overflow: hidden;
	background: #0a1220;
	font-family: var(--fuchs-font, 'Montserrat', sans-serif);
	color: #fff;
}

/* ===== DESKTOP STAGE ================================================== */
.fuchs-hero__stage {
	position: absolute;
	top: 0;
	left: 0;
	width: 1920px;
	height: 1080px;
	transform-origin: top left;
	will-change: transform;
}

.fuchs-hero__screen {
	position: absolute;
	inset: 0;
	width: 1920px;
	height: 1080px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.5s ease;
}
.fuchs-hero__screen.is-active {
	opacity: 1;
	pointer-events: auto;
}

.fuchs-hero__bg {
	position: absolute;
	inset: 0;
	width: 1920px;
	height: 1080px;
	object-fit: cover;
	display: block;
	z-index: 0;
	will-change: transform;
	transform-origin: center center;
}
.fuchs-hero__bg-tint {
	position: absolute;
	inset: 0;
	background: rgba(15, 31, 65, 0.18);
	z-index: 0;
	pointer-events: none;
}
.fuchs-hero__panel {
	position: absolute;
	top: 0;
	left: 212px;
	width: 888px;
	height: 1080px;
	background: var(--fuchs-dark-blue, #0f1f41);
	opacity: 0.70;
	z-index: 1;
}

/* ----- Left copy column (shared) ----- */
.fuchs-hero__content {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 312px;
	width: 688px;
	z-index: 5;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 26px;
	padding: 130px 0 150px;
}
.fuchs-hero__content--about {
	gap: 40px;
}
.fuchs-hero__content--products {
	width: 520px;
	gap: 40px;
}
.fuchs-hero__text {
	display: flex;
	flex-direction: column;
	gap: 22px;
}
.fuchs-hero__title {
	font-size: 60px;
	font-weight: 400;
	line-height: 1.14;
	color: #fff;
	margin: 0;
}
.fuchs-hero__subtitle {
	font-size: 20px;
	font-weight: 400;
	line-height: 1.5;
	color: #fff;
	margin: 0;
}
.fuchs-hero__desc,
.fuchs-hero__desc p {
	font-size: 16px;
	font-weight: 300;
	line-height: 1.75;
	color: rgba(255, 255, 255, 0.68);
	margin: 0 0 12px;
}
.fuchs-hero__desc p:last-child {
	margin-bottom: 0;
}

/* ----- Buttons ----- */
.fuchs-hero__btn {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	height: 45px;
	padding: 0 22px;
	border-radius: 10px;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 1px;
	text-decoration: none;
	transition: opacity 0.2s ease, background 0.2s ease;
}
.fuchs-hero__btn--light {
	background: #fff;
	color: #231f20;
}
.fuchs-hero__btn--light:hover {
	opacity: 0.87;
	color: #231f20;
}

/* ----- Stats (About) ----- */
.fuchs-hero__stats {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: rgba(7, 14, 31, 0.42);
	border: 2px solid var(--fuchs-dark-blue-400, #3f4c67);
	border-radius: 10px;
	padding: 30px 40px;
}
.fuchs-hero__stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	text-align: center;
}
.fuchs-hero__stat-num {
	font-size: 42px;
	font-weight: 600;
	letter-spacing: 1px;
	line-height: 1;
	color: #fff;
}
.fuchs-hero__stat-label {
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.82);
}
.fuchs-hero__stat-divider {
	width: 1px;
	height: 48px;
	background: rgba(255, 255, 255, 0.14);
	flex-shrink: 0;
}

/* ----- Product cards grid (Products) ----- */
.fuchs-hero__grid {
	position: absolute;
	left: 967px;
	top: 200px;
	width: 641px;
	height: 639px;
	z-index: 5;
}
.fuchs-hero__card {
	position: absolute;
	width: 200px;
	height: 200px;
	background: rgba(255, 255, 255, 0.82);
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 20px;
	overflow: hidden;
	cursor: pointer;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.fuchs-hero__card:hover,
.fuchs-hero__card.is-hovered {
	transform: translateY(-4px);
	background: rgba(255, 255, 255, 0.96);
	border-color: rgba(255, 255, 255, 0.7);
	box-shadow: 0 8px 24px rgba(15, 31, 65, 0.25);
}
.fuchs-hero__card-inner {
	position: absolute;
	left: 18px;
	top: 22px;
	right: 18px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}
.fuchs-hero__card-inner img,
.fuchs-hero__card-ph {
	width: 159px;
	height: 120px;
	object-fit: cover;
	display: block;
	border-radius: 6px;
	background: #e8eef8;
}
.fuchs-hero__card-name {
	font-size: 18px;
	font-weight: 500;
	color: var(--fuchs-dark-blue, #0f1f41);
	line-height: 1.2;
	text-align: center;
}

/* ----- Product hover detail panel ----- */
.fuchs-hero__detail {
	position: absolute;
	left: 1097px;
	top: 50%;
	transform: translateY(-50%) scale(0.92);
	width: 380px;
	background: #fff;
	border: 2px solid rgba(255, 255, 255, 0.9);
	border-radius: 20px;
	overflow: hidden;
	z-index: 15;
	box-shadow:
		0 0 15px rgba(15, 31, 65, 0.4),
		0 20px 12.5px rgba(15, 31, 65, 0.2),
		0 10px 5px rgba(15, 31, 65, 0.3);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.22s ease, transform 0.22s ease;
}
.fuchs-hero__detail.is-visible {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(-50%) scale(1);
}
.fuchs-hero__detail-img {
	width: 380px;
	height: 200px;
	background: #e8eef8;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.fuchs-hero__detail-img img {
	max-width: 240px;
	max-height: 174px;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}
.fuchs-hero__detail-body {
	padding: 20px 24px 24px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.fuchs-hero__detail-title {
	font-size: 18px;
	font-weight: 500;
	color: var(--fuchs-dark-blue, #0f1f41);
	line-height: 1.2;
	margin: 0;
}
.fuchs-hero__detail-features {
	font-size: 14px;
	font-weight: 400;
	color: var(--fuchs-dark-blue, #0f1f41);
	line-height: 1.4;
}
.fuchs-hero__detail-features ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.fuchs-hero__detail-features li {
	padding-left: 14px;
	position: relative;
}
.fuchs-hero__detail-features li::before {
	content: '\2013';
	position: absolute;
	left: 0;
}
.fuchs-hero__detail-features p {
	margin: 0 0 8px;
}
.fuchs-hero__detail-btn {
	width: 100%;
	height: 45px;
	background: var(--fuchs-dark-blue, #0f1f41);
	color: #fff;
	border: none;
	border-radius: 10px;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 1px;
	text-decoration: none;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.2s ease;
}
.fuchs-hero__detail-btn:hover {
	opacity: 0.85;
	color: #fff;
}

/* ----- Particle canvas ----- */
.fuchs-hero__canvas {
	position: absolute;
	inset: 0;
	width: 1920px;
	height: 1080px;
	display: block;
	z-index: 20;
	pointer-events: none;
}

/* ----- Bottom pill-nav ----- */
.fuchs-hero__pills {
	position: absolute;
	left: 50%;
	bottom: 55px;
	transform: translateX(-50%);
	width: 900px;
	max-width: calc(100% - 240px);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	background: rgba(63, 76, 103, 0.5);
	border-radius: 10px;
	padding: 26px 36px;
	z-index: 25;
	backdrop-filter: blur(2px);
}
.fuchs-hero__pill {
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 1px;
	color: #fff;
	background: transparent;
	height: 45px;
	padding: 0 22px;
	border-radius: 10px;
	border: 2px solid #fff;
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
	cursor: pointer;
	transition: all 0.2s ease;
}
.fuchs-hero__pill:hover:not(.is-active) {
	background: rgba(255, 255, 255, 0.1);
}
.fuchs-hero__pill.is-active {
	background: var(--fuchs-dark-blue, #0f1f41);
	border-color: var(--fuchs-dark-blue, #0f1f41);
}

/* -------------------------------------------------------------------------
 * Ken Burns backgrounds (ported from prototype motion.css).
 * ---------------------------------------------------------------------- */
.fuchs-hero__bg.kb-home        { animation: fuchs-kb-home 22s ease-in-out infinite alternate; }
.fuchs-hero__bg.kb-about       { animation: fuchs-kb-about 24s ease-in-out infinite alternate; }
.fuchs-hero__bg.kb-products    { animation: fuchs-kb-products 26s ease-in-out infinite alternate; }
.fuchs-hero__bg.kb-communities { animation: fuchs-kb-communities 28s ease-in-out infinite alternate; }
.fuchs-hero__bg.kb-news        { animation: fuchs-kb-news 24s ease-in-out infinite alternate; }

@keyframes fuchs-kb-home {
	0%   { transform: scale(1.12) translate( 2.0%, -1.0%); }
	50%  { transform: scale(1.07) translate( 0.0%,  0.0%); }
	100% { transform: scale(1.04) translate(-1.5%,  0.8%); }
}
@keyframes fuchs-kb-about {
	0%   { transform: scale(1.12) translate( 2.0%,  0.5%); }
	50%  { transform: scale(1.06) translate(-0.5%, -0.5%); }
	100% { transform: scale(1.04) translate(-1.5%,  0.8%); }
}
@keyframes fuchs-kb-products {
	0%   { transform: scale(1.12) translate(-2.0%,  1.0%); }
	50%  { transform: scale(1.07) translate( 0.0%, -0.3%); }
	100% { transform: scale(1.04) translate( 1.5%, -1.0%); }
}
@keyframes fuchs-kb-communities {
	0%   { transform: scale(1.12) translate(-1.5%, -1.0%); }
	50%  { transform: scale(1.07) translate( 0.5%,  0.3%); }
	100% { transform: scale(1.04) translate( 1.5%,  0.8%); }
}
@keyframes fuchs-kb-news {
	0%   { transform: scale(1.12) translate( 1.5%,  1.0%); }
	50%  { transform: scale(1.07) translate(-0.3%, -0.3%); }
	100% { transform: scale(1.04) translate(-1.5%, -1.0%); }
}

/* =========================================================================
 * MOBILE STACK (<992px)
 * ====================================================================== */
.fuchs-hero__mobile {
	display: none;
}

@media (max-width: 991.98px) {
	.fuchs-hero {
		aspect-ratio: auto;
		overflow: visible;
	}
	.fuchs-hero__stage {
		display: none;
	}
	.fuchs-hero__mobile {
		display: block;
		position: relative;
	}

	.fuchs-hero__mscreen {
		display: none;
		min-height: 100vh;
		background-size: cover;
		background-position: center;
		align-items: center;
	}
	.fuchs-hero__mscreen.is-active {
		display: flex;
	}
	.fuchs-hero__mbody {
		width: 100%;
		max-width: 640px;
		margin: 0 auto;
		padding: 120px 24px 130px;
		display: flex;
		flex-direction: column;
		gap: 20px;
	}
	.fuchs-hero__mtitle {
		font-size: 34px;
		font-weight: 400;
		line-height: 1.15;
		margin: 0;
	}
	.fuchs-hero__msubtitle {
		font-size: 18px;
		font-weight: 400;
		line-height: 1.5;
		margin: 0;
	}
	.fuchs-hero__mdesc,
	.fuchs-hero__mdesc p {
		font-size: 15px;
		font-weight: 300;
		line-height: 1.7;
		color: rgba(255, 255, 255, 0.78);
		margin: 0 0 10px;
	}

	.fuchs-hero__mstats {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 16px;
		background: rgba(7, 14, 31, 0.42);
		border: 2px solid var(--fuchs-dark-blue-400, #3f4c67);
		border-radius: 10px;
		padding: 22px;
	}
	.fuchs-hero__mstat {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 6px;
		text-align: center;
	}

	.fuchs-hero__mcards {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 14px;
	}
	.fuchs-hero__mcard {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 10px;
		background: rgba(255, 255, 255, 0.92);
		border-radius: 14px;
		padding: 16px 12px;
		text-decoration: none;
		text-align: center;
	}
	.fuchs-hero__mcard img {
		width: 100%;
		height: 96px;
		object-fit: cover;
		border-radius: 6px;
	}
	.fuchs-hero__mcard-name {
		font-size: 15px;
		font-weight: 500;
		color: var(--fuchs-dark-blue, #0f1f41);
		line-height: 1.2;
	}

	.fuchs-hero__mpills {
		position: sticky;
		bottom: 0;
		z-index: 30;
		display: flex;
		gap: 10px;
		overflow-x: auto;
		padding: 14px 16px;
		background: rgba(15, 31, 65, 0.92);
		-webkit-overflow-scrolling: touch;
	}
	.fuchs-hero__mpills .fuchs-hero__pill {
		height: 40px;
		padding: 0 16px;
		font-size: 14px;
		flex: 0 0 auto;
	}
}

/* Small phones: single-column stats/cards. */
@media (max-width: 479.98px) {
	.fuchs-hero__mstats {
		grid-template-columns: 1fr;
	}
	.fuchs-hero__mtitle {
		font-size: 28px;
	}
}

/* -------------------------------------------------------------------------
 * Reduced motion: freeze Ken Burns (canvas is disabled in JS).
 * ---------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.fuchs-hero__bg {
		animation: none !important;
	}
	.fuchs-hero__screen,
	.fuchs-hero__detail {
		transition: none;
	}
}
