/* Homepage factory video and manufacturing quality section.
 *
 */
.home-factory {
	--factory-yellow: #ffc400;
	--factory-text: #111214;
	--factory-muted: #536078;
	box-sizing: border-box;
	padding: clamp(64px, 6vw, 96px) 0 clamp(72px, 7vw, 112px);
	background: linear-gradient(125deg, #fffdf5 0%, #fff 45%, #f7f8fa 100%);
}

.home-factory *,
.home-factory *::before,
.home-factory *::after {
	box-sizing: border-box;
}

.home-factory__container {
	width: min(calc(100% - 48px), 1440px);
	max-width: 1440px;
	margin-inline: auto;
}

.home-factory__header {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	align-items: end;
	column-gap: clamp(24px, 2vw, 32px);
	row-gap: 24px;
	width: 100%;
	margin-bottom: clamp(32px, 3vw, 42px);
}

.home-factory__heading-wrap {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-width: 0;
}

.home-factory__eyebrow {
	margin: 0 0 14px;
	color: #64748b;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.4;
	letter-spacing: .15em;
	text-transform: uppercase;
}

.home-factory__title {
	max-width: 860px;
	margin: 0;
	color: var(--factory-text);
	font-size: clamp(36px, 3vw, 46px);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -.035em;
}

.home-factory__underline {
	width: 46px;
	height: 3px;
	min-height: 3px;
	margin-top: 20px;
	background: var(--factory-yellow);
}

.home-factory__intro {
	max-width: 660px;
	margin: 0 0 3px;
	color: var(--factory-muted);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.7;
}

.home-factory__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
	align-items: stretch;
	gap: 22px;
	width: 100%;
}

/* Match the 1993 × 789 poster at every breakpoint. */
.home-factory__video.brxe-video {
	width: 100%;
	min-width: 0;
	height: auto;
	min-height: 0;
	aspect-ratio: 1993 / 789;
	align-self: start;
	background: linear-gradient(140deg, #34383b, #101214);
	border: 0;
}

.home-factory__video video {
	object-fit: cover;
	object-position: center;
}

.home-factory__video .bricks-video-preview-image {
	background-color: #17191b;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.home-factory__video .bricks-video-overlay-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 84px !important;
	height: 84px !important;
	padding: 0;
	border-radius: 50%;
	background: var(--factory-yellow);
	color: #111;
	font-size: 30px;
	line-height: 1;
	transition: background-color .2s ease, scale .2s ease;
}

.home-factory__video .bricks-video-overlay-icon svg,
.home-factory__video .bricks-video-overlay-icon img {
	width: 100% !important;
	height: 100% !important;
}

.home-factory__video .bricks-video-overlay:hover .bricks-video-overlay-icon {
	background: #ffda36;
	scale: 1.06;
}

/* Bricks' custom player may use this button instead of its overlay icon. */
.home-factory__video .plyr .plyr__control--overlaid {
	width: 84px;
	height: 84px;
	border-radius: 50%;
	background: var(--factory-yellow);
	color: #111;
}

.home-factory__video .plyr .plyr__control--overlaid:hover {
	background: #ffda36;
}

.home-factory__sidebar {
	display: grid;
	grid-template-rows: repeat(4, minmax(0, 1fr)) 48px;
	gap: 12px;
	width: 100%;
	min-width: 0;
}

.home-factory__item {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	width: 100%;
	min-width: 0;
	min-height: 0;
	padding: 12px 17px;
	border-left: 5px solid var(--factory-yellow);
	background: #f7f8f9;
	transition: transform .2s ease, box-shadow .2s ease;
}

@media (hover: hover) {
	.home-factory__item:hover {
		z-index: 1;
		transform: scale(1.035);
		box-shadow: 0 8px 20px rgba(21, 30, 40, .1);
	}
}

.home-factory__item > .brxe-heading {
	margin: 0 0 4px;
	color: #0e1116;
	font-size: 15px;
	font-weight: 750;
	line-height: 1.3;
}

.home-factory__item > .brxe-text-basic {
	margin: 0;
	color: var(--factory-muted);
	font-size: 13px;
	line-height: 1.4;
}

.home-factory__button.brxe-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	padding: 10px 16px;
	border: 0;
	border-radius: 0;
	background: var(--factory-yellow);
	color: #111;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: .055em;
	text-align: center;
	text-decoration: none;
	transition: background-color .2s ease;
}

.home-factory__button.brxe-button:hover,
.home-factory__button.brxe-button:focus-visible {
	background: #ffda36;
	color: #111;
}

@media (max-width: 1199px) {
	.home-factory__body {
		grid-template-columns: minmax(0, 1fr);
	}

	.home-factory__sidebar {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-rows: auto;
	}

	.home-factory__item {
		min-height: 88px;
	}

	.home-factory__button.brxe-button {
		grid-column: 1 / -1;
	}
}

@media (max-width: 991px) {
	.home-factory__header {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}

	.home-factory__intro {
		max-width: 800px;
	}
}

@media (max-width: 767px) {
	.home-factory {
		padding: 64px 0 80px;
	}

	.home-factory__container {
		width: min(calc(100% - 36px), 680px);
	}

	.home-factory__title {
		font-size: clamp(32px, 6vw, 42px);
	}

	.home-factory__intro {
		font-size: 15px;
	}
}

@media (max-width: 600px) {
	.home-factory {
		padding: 52px 0 68px;
	}

	.home-factory__container {
		width: calc(100% - 32px);
	}

	.home-factory__eyebrow {
		font-size: 11px;
		letter-spacing: .12em;
	}

	.home-factory__title {
		font-size: clamp(30px, 8.5vw, 38px);
		line-height: 1.12;
	}

	.home-factory__body {
		gap: 16px;
	}

	.home-factory__sidebar {
		grid-template-columns: minmax(0, 1fr);
		gap: 10px;
	}

	.home-factory__item {
		min-height: 78px;
		padding: 12px 14px;
	}

	.home-factory__button.brxe-button {
		grid-column: auto;
	}

	.home-factory__video .bricks-video-overlay-icon,
	.home-factory__video .plyr .plyr__control--overlaid {
		width: 64px !important;
		height: 64px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.home-factory__video .bricks-video-overlay-icon,
	.home-factory__button.brxe-button,
	.home-factory__item {
		transition: none;
	}
	.home-factory__item:hover { transform: none; }
}
