/* =========================================================
   UHCCY Homepage
   ========================================================= */

/* ---------------------------------------------------------
   Full-bleed Hero
   --------------------------------------------------------- */
.home-hero {
	position: relative;
	display: grid;
	align-items: center;
	min-height: clamp(640px, calc(100svh - var(--site-header-height)), 860px);
	overflow: hidden;
	background: var(--color-surface-deep);
	border-bottom: 1px solid rgba(255,255,255,.12);
	isolation: isolate;
}

.home-hero__background,
.home-hero__overlay {
	position: absolute;
	inset: 0;
}

.home-hero__background {
	z-index: -2;
	background: var(--color-surface-deep);
}

.home-hero__background-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	border-radius: 0;
}

.home-hero__overlay {
	z-index: -1;
	background:
		linear-gradient(90deg, rgba(4, 26, 53, .92) 0%, rgba(4, 26, 53, .82) 34%, rgba(4, 26, 53, .56) 58%, rgba(4, 26, 53, .22) 82%, rgba(4, 26, 53, .16) 100%),
		linear-gradient(0deg, rgba(4, 26, 53, .22), rgba(4, 26, 53, .06));
}

.home-hero--without-image .home-hero__overlay {
	background: linear-gradient(120deg, var(--color-surface-deep), var(--color-primary));
}

.home-hero__inner {
	display: flex;
	align-items: center;
	padding-block: 88px 96px;
}

.home-hero__content {
	width: min(100%, 790px);
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
}

.home-hero__eyebrow {
	color: #C9DDEE;
}

.home-hero__content h1 {
	max-width: 760px;
	margin-bottom: 24px;
	color: #FFFFFF;
	text-shadow: 0 2px 18px rgba(0,0,0,.18);
}

.home-hero__lead {
	max-width: 700px;
	margin-bottom: 22px;
	color: rgba(255,255,255,.84);
	font-size: 19px;
	line-height: 32px;
}

.home-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.home-hero .home-hero__primary {
	background: #FFFFFF;
	color: var(--color-primary);
	border-color: #FFFFFF;
}

.home-hero .home-hero__primary:hover,
.home-hero .home-hero__primary:focus-visible {
	background: #EDF4FA;
	color: var(--color-primary-hover);
	border-color: #EDF4FA;
}

.home-button--outline {
	background: rgba(4, 26, 53, .26);
	color: #FFFFFF;
	border-color: rgba(255,255,255,.72);
}

.home-button--outline:hover,
.home-button--outline:focus-visible {
	background: rgba(255,255,255,.12);
	color: #FFFFFF;
	border-color: #FFFFFF;
}

/* ---------------------------------------------------------
   Shared homepage section rhythm / heading layout
   --------------------------------------------------------- */
.home-section {
	padding-block: 88px;
}

.home-section-heading h2,
.home-why__heading h2,
.home-oem__content h2,
.home-quality__heading h2 {
	max-width: 760px;
	margin-bottom: 0;
}

.home-section-heading__intro,
.home-why__intro {
	margin: 0;
	color: var(--color-copy);
}

.home-introduction {
	padding-block: 68px;
}

.home-introduction__content {
	width: 100%;
	max-width: none;
	margin-inline: 0;
	font-size: 18px;
	line-height: 31px;
}

/* ---------------------------------------------------------
   Product Categories / interactive explorer
   --------------------------------------------------------- */
.home-categories {
	background: var(--color-background-light);
}

.home-category-explorer {
	display: grid;
	grid-template-columns: minmax(210px, 22%) minmax(0, 78%);
	gap: clamp(22px, 2.4vw, 40px);
	align-items: stretch;
}

.home-category-explorer__tabs {
	display: flex;
	flex-direction: column;
	align-self: stretch;
	border-top: 1px solid var(--color-border);
}

.home-category-explorer__tab {
	position: relative;
	display: grid;
	grid-template-columns: 38px minmax(0, 1fr) 24px;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-height: 66px;
	flex: 1 1 66px;
	padding: 14px 14px 14px 18px;
	background: transparent;
	color: var(--color-text);
	border: 0;
	border-bottom: 1px solid var(--color-border);
	border-radius: 0;
	text-align: left;
	transition: background-color var(--transition-fast), color var(--transition-fast), padding-left var(--transition-fast);
}

.home-category-explorer__tab::before {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 3px;
	background: var(--color-primary);
	content: '';
	transform: scaleY(0);
	transform-origin: center;
	transition: transform var(--transition-fast);
}

.home-category-explorer__tab:hover,
.home-category-explorer__tab:focus-visible,
.home-category-explorer__tab.is-active {
	padding-left: 22px;
	background: var(--color-background-primary-light);
	color: var(--color-primary);
}

.home-category-explorer__tab.is-active::before {
	transform: scaleY(1);
}

.home-category-explorer__index {
	color: var(--color-text-secondary);
	font-size: 12px;
	font-weight: var(--font-weight-bold);
	letter-spacing: .08em;
}

.home-category-explorer__tab-name {
	font-size: 17px;
	font-weight: var(--font-weight-semibold);
	line-height: 24px;
}

.home-category-explorer__tab-arrow {
	color: var(--color-primary);
	font-size: 18px;
	line-height: 1;
	opacity: 0;
	transform: translateX(-5px);
	transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.home-category-explorer__tab.is-active .home-category-explorer__tab-arrow,
.home-category-explorer__tab:hover .home-category-explorer__tab-arrow,
.home-category-explorer__tab:focus-visible .home-category-explorer__tab-arrow {
	opacity: 1;
	transform: translateX(0);
}

.home-category-explorer__panels {
	display: grid;
	min-width: 0;
}

.home-category-explorer__panel {
	grid-area: 1 / 1;
	display: none;
	grid-template-columns: minmax(0, 58%) minmax(320px, 42%);
	min-width: 0;
	min-height: 560px;
	overflow: hidden;
	background: #FFFFFF;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-card);
}

.home-category-explorer__panel.is-active {
	display: grid;
}

.home-category-explorer__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-width: 0;
	padding: clamp(28px, 2.6vw, 42px);
}

.home-category-explorer__content h3 {
	margin-bottom: 18px;
	font-size: clamp(30px, 2.3vw, 42px);
	line-height: 1.15;
}

.home-category-explorer__description {
	max-width: 520px;
	margin-bottom: 20px;
	color: var(--color-copy);
	font-size: 16px;
	line-height: 27px;
}

.home-category-explorer__children {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
	column-gap: clamp(16px, 1.5vw, 26px);
	row-gap: 0;
	width: 100%;
	margin-bottom: 22px;
}

.home-category-explorer__children a {
	position: relative;
	display: flex;
	align-items: center;
	min-width: 0;
	min-height: 46px;
	padding: 9px 26px 9px 0;
	background: transparent;
	color: var(--color-text);
	border: 0;
	border-bottom: 1px solid var(--color-border);
	border-radius: 0;
	font-size: 14px;
	font-weight: var(--font-weight-semibold);
	line-height: 20px;
	transition: color var(--transition-fast), border-color var(--transition-fast);
}

.home-category-explorer__children a::after {
	position: absolute;
	right: 2px;
	content: '→';
	color: var(--color-primary);
	font-size: 15px;
	line-height: 1;
	transition: transform var(--transition-fast);
}

.home-category-explorer__children a:hover,
.home-category-explorer__children a:focus-visible {
	color: var(--color-primary-hover);
	border-color: var(--color-border-strong);
}

.home-category-explorer__children a:hover::after,
.home-category-explorer__children a:focus-visible::after {
	transform: translateX(3px);
}

.home-category-explorer__cta {
	margin-top: auto;
}

.home-category-explorer__media {
	position: relative;
	display: block;
	min-width: 0;
	overflow: hidden;
	background: #FFFFFF;
	border-left: 1px solid var(--color-border);
}

.home-category-explorer__image,
.home-category-explorer__media-fallback {
	width: 100%;
	height: 100%;
	min-height: 560px;
}

.home-category-explorer__image {
	object-fit: contain;
	padding: clamp(16px, 1.8vw, 28px);
	border-radius: 0;
}

.home-category-explorer__media-fallback {
	display: grid;
	place-items: center;
	padding: 36px;
	background:
		linear-gradient(135deg, rgba(0,32,80,.07), rgba(0,58,120,.13)),
		var(--color-background-primary-light);
	color: var(--color-primary);
	font-size: clamp(24px, 2vw, 36px);
	font-weight: var(--font-weight-bold);
	text-align: center;
}

/* ---------------------------------------------------------
   Featured Products / conditional carousel
   --------------------------------------------------------- */
.home-products__header {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 28px;
	margin-bottom: 38px;
}

.home-products__header h2 {
	margin-bottom: 0;
}

.home-products__header .related-content-controls {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
}

.home-products__header .related-content-control {
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	background: #fff;
	color: var(--color-primary);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-button);
	cursor: pointer;
	transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), opacity var(--transition-fast);
}

.home-products__header .related-content-control:hover:not(:disabled),
.home-products__header .related-content-control:focus-visible:not(:disabled) {
	background: var(--color-background-primary-light);
	border-color: var(--color-primary);
}

.home-products__header .related-content-control:disabled {
	opacity: .35;
	cursor: default;
}

.home-products__header .related-content-control svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.home-products__heading-copy {
	max-width: 820px;
}

.home-products__intro {
	margin: 14px 0 0;
	color: var(--color-text-muted);
	line-height: 1.75;
}

.home-products__viewport {
	min-width: 0;
}

.home-products__track {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
}

.home-products__viewport.is-slider {
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: none;
	scroll-snap-type: x mandatory;
	overscroll-behavior-inline: contain;
}

.home-products__viewport.is-slider::-webkit-scrollbar {
	display: none;
}

.home-products__viewport.is-slider .home-products__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 72px) / 4);
	grid-template-columns: none;
}

.home-products__viewport.is-slider .home-product-card {
	scroll-snap-align: start;
	scroll-snap-stop: always;
}

.home-products .product-card__image {
	background: #fff;
}

.home-products .product-card__description {
	display: -webkit-box;
	overflow: hidden;
	min-height: 84px;
	max-height: 84px;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
}

/* ---------------------------------------------------------
   Why UHCCY
   --------------------------------------------------------- */
.home-why {
	background: var(--color-surface-deep);
	color: #fff;
}

.home-why .eyebrow {
	color: #AFC6DC;
}

.home-why__heading {
	align-items: end;
	margin-bottom: 42px;
}

.home-why__heading h2 {
	color: #fff;
}

.home-why__intro {
	color: rgba(255,255,255,.72);
}

.home-why__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.home-value-card {
	padding: 26px;
	background: rgba(255,255,255,.04);
	border: 1px solid rgba(255,255,255,.16);
	border-radius: var(--radius-card);
}

.home-value-card__number {
	display: block;
	margin-bottom: 24px;
	color: #AFC6DC;
	font-size: 13px;
	font-weight: var(--font-weight-bold);
	letter-spacing: .08em;
}

.home-value-card h3 {
	color: #fff;
	font-size: 21px;
	line-height: 29px;
}

.home-value-card p {
	margin-bottom: 0;
	color: rgba(255,255,255,.7);
}

/* ---------------------------------------------------------
   Applications
   --------------------------------------------------------- */
.home-applications {
	background: var(--color-surface-cool);
}

.home-applications__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.home-application-card {
	position: relative;
	overflow: hidden;
	min-width: 0;
	background: rgba(255,255,255,.78);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-card);
}

.home-application-card__media {
	background: #fff;
	border-bottom: 1px solid var(--color-border);
}

.home-application-card__media img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: 0;
}

.home-application-card__body {
	position: relative;
	min-height: 154px;
	padding: 24px 24px 24px 30px;
}

.home-application-card__mark {
	position: absolute;
	top: 26px;
	left: 0;
	width: 4px;
	height: 30px;
	background: var(--color-primary);
}

.home-application-card h3 {
	font-size: 20px;
	line-height: 28px;
}

.home-application-card p {
	margin-bottom: 0;
	color: var(--color-copy);
}

/* ---------------------------------------------------------
   OEM / ODM
   --------------------------------------------------------- */
.home-oem {
	background: #fff;
}

.home-oem__grid {
	display: grid;
	grid-template-columns: minmax(420px, .95fr) minmax(0, 1.05fr);
	align-items: center;
	gap: clamp(48px, 6vw, 104px);
}

.home-oem__grid--text-only {
	grid-template-columns: minmax(0, 920px);
}

.home-oem__media {
	overflow: hidden;
	background: var(--color-background-light);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-card);
}

.home-oem__media img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 0;
}

.home-oem__content h2 {
	margin-bottom: 22px;
}

.home-oem__copy {
	max-width: 720px;
	margin-bottom: 30px;
	color: var(--color-copy);
}

/* ---------------------------------------------------------
   Quality / technical support
   --------------------------------------------------------- */
.home-quality {
	background: var(--color-background-light);
}

.home-quality__layout {
	display: grid;
	grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr);
	gap: 64px;
	align-items: start;
}

.home-quality__heading {
	position: sticky;
	top: calc(var(--site-header-visible-height, var(--site-header-height)) + var(--admin-bar-offset, 0px) + 32px);
}

.home-quality__heading h2 {
	margin-bottom: 20px;
}

.home-quality__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.home-quality-card {
	padding: 24px;
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-card);
}

.home-quality-card h3 {
	font-size: 20px;
	line-height: 28px;
}

.home-quality-card p {
	margin-bottom: 0;
	color: var(--color-copy);
}

/* ---------------------------------------------------------
   Article cards / shared homepage inline links
   --------------------------------------------------------- */
.home-article-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	background: #FFFFFF;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-card);
	transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.home-article-card:hover {
	border-color: var(--color-border-strong);
}

.home-article-card__media {
	display: block;
	background: #FFFFFF;
	border-bottom: 1px solid var(--color-border);
}

.home-article-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 20px 22px 22px;
}

.home-article-card h3 {
	font-size: 22px;
	line-height: 30px;
}

.home-article-card h3 a {
	color: var(--color-text);
}


/* ---------------------------------------------------------
   Articles
   --------------------------------------------------------- */
.home-articles__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.home-article-card__media img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 0;
}

.home-article-card time {
	margin-bottom: 12px;
	color: var(--color-text-secondary);
	font-size: 13px;
	font-weight: var(--font-weight-semibold);
}

.home-article-card h3 {
	margin-bottom: 16px;
}

.home-inline-link {
	margin-top: auto;
	color: var(--color-primary);
	font-weight: var(--font-weight-semibold);
}

.home-inline-link:hover,
.home-inline-link:focus-visible {
	color: var(--color-primary-hover);
}

.home-cta-section {
	padding-block: 72px;
	background: var(--color-surface-deep);
}

.home-cta-section .cta {
	padding: 0;
	background: transparent;
	border-radius: 0;
}

@media (max-width: 1279px) {
	.home-products__track {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.home-products__viewport.is-slider .home-products__track {
		grid-auto-columns: calc((100% - 24px) / 2);
	}
}

@media (max-width: 1023px) {
	.home-hero {
		min-height: 680px;
	}

	.home-hero__inner {
		padding-block: 72px;
	}

	.home-hero__content {
		width: min(100%, 720px);
	}

	.home-section,
	.home-cta-section {
		padding-block: 64px;
	}

	.home-oem__grid,
	.home-quality__layout {
		grid-template-columns: 1fr;
	}

	.home-category-explorer {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.home-category-explorer__tabs {
		flex-direction: row;
		overflow-x: auto;
		overflow-y: hidden;
		border-top: 0;
		border-bottom: 1px solid var(--color-border);
		scrollbar-width: none;
	}

	.home-category-explorer__tabs::-webkit-scrollbar {
		display: none;
	}

	.home-category-explorer__tab {
		grid-template-columns: auto auto;
		flex: 0 0 auto;
		min-height: 52px;
		padding: 11px 16px;
		border-bottom: 0;
		white-space: nowrap;
	}

	.home-category-explorer__tab::before {
		top: auto;
		right: 0;
		bottom: 0;
		width: auto;
		height: 3px;
		transform: scaleX(0);
	}

	.home-category-explorer__tab.is-active::before {
		transform: scaleX(1);
	}

	.home-category-explorer__tab:hover,
	.home-category-explorer__tab:focus-visible,
	.home-category-explorer__tab.is-active {
		padding-left: 16px;
	}

	.home-category-explorer__tab-arrow {
		display: none;
	}

	.home-category-explorer__panel {
		grid-template-columns: minmax(0, 58%) minmax(280px, 42%);
		min-height: 480px;
	}

	.home-category-explorer__image,
	.home-category-explorer__media-fallback {
		min-height: 480px;
	}


	.home-applications__grid,
	.home-articles__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

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

	.home-quality__heading {
		position: static;
	}
}

@media (max-width: 767px) {
	.home-hero {
		min-height: 600px;
	}

	.home-hero__overlay {
		background: linear-gradient(90deg, rgba(4, 26, 53, .90), rgba(4, 26, 53, .66));
	}

	.home-hero__inner {
		padding-block: 52px 58px;
	}

	.home-hero__content {
		padding: 0;
		backdrop-filter: none;
	}

	.home-hero__lead {
		font-size: 17px;
		line-height: 28px;
	}

	.home-hero__actions {
		align-items: stretch;
		flex-direction: column;
	}

	.home-hero__actions .button {
		width: 100%;
	}

	.home-category-explorer__panel {
		grid-template-columns: 1fr;
		min-height: 0;
	}

	.home-category-explorer__content {
		padding: 28px 24px 30px;
	}

	.home-category-explorer__content h3 {
		font-size: 30px;
	}

	.home-category-explorer__children {
		grid-template-columns: 1fr;
	}

	.home-category-explorer__media {
		order: -1;
		border-left: 0;
		border-bottom: 1px solid var(--color-border);
	}

	.home-category-explorer__image,
	.home-category-explorer__media-fallback {
		min-height: 260px;
		aspect-ratio: 16 / 10;
	}

	.home-products__track,
	.home-applications__grid,
	.home-why__grid,
	.home-quality__grid,
	.home-articles__grid {
		grid-template-columns: 1fr;
	}

	.home-products__viewport.is-slider .home-products__track {
		grid-auto-columns: 88%;
	}

	.home-products__header {
		align-items: flex-end;
		gap: 16px;
		margin-bottom: 28px;
	}

	.home-products__header .related-content-controls {
		flex: 0 0 auto;
	}

	.home-section-heading {
		margin-bottom: 28px;
	}

	.home-section {
		padding-block: 52px;
	}

	.home-products .product-card__description {
		min-height: auto;
	}
}
