/* =============================================================================
   HOME HERO
   ============================================================================= */

.home-hero {
	padding-top: 100px;
	padding-bottom: 100px;
}

.home-hero__inner {
	display: flex;
	align-items: stretch;
	gap: 25px;
}

.home-hero__content {
	display: flex;
	flex-direction: column;
	flex: 0 0 60%;
	min-width: 0;
	padding: 75px 50px;
	border: solid 1px var(--color-border-subtle);
	border-radius: 10px;
	text-align: left;
	align-items: flex-start;
}

.home-hero__media {
	flex: 1;
	min-width: 0;
	position: relative;
	border: solid 1px var(--color-border-subtle);
	border-radius: 10px;
	overflow: hidden;
}

/* -- Trust ------------------------------------------------------------------ */

.home-hero__trust {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	margin-bottom: 15px;
	font-style: italic;
	font-weight: var(--weight-bold);
	color: var(--color-text-secondary);
}

.home-hero__trust::before {
	content: '';
	width: 50px;
	flex-shrink: 0;
	height: 1px;
	background-color: var(--color-text-secondary);
}

/* -- Headline --------------------------------------------------------------- */

.home-hero__headline {
	margin-bottom: 5px;
	color: var(--color-accent);
}

.home-hero__headline-tagline {
	display: block;
	font-size: var(--text-h3);
	margin-top: 4px;
	margin-bottom: 20px;
	max-width: 500px;
	color: var(--color-text-primary);
}

/* -- Subheadline ------------------------------------------------------------ */

.home-hero__subheadline {
	max-width: 560px;
	margin: 0 0 25px 0;
}

/* -- CTAs ------------------------------------------------------------------- */

.home-hero__ctas {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
}

/* -- Image ------------------------------------------------------------------ */

.home-hero__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* =============================================================================
   HOME INDUSTRIES
   ============================================================================= */

.home-industries {
	padding-bottom: 100px;
}

.home-industries__header {
	margin-bottom: 40px;
}

.home-industries__heading {
	max-width: 600px;
}

.home-industries__subline {
	max-width: 600px;
	color: var(--color-text-secondary);
	margin-top: 12px;
}

/* -- Grid ------------------------------------------------------------------- */

.home-industries__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 25px;
}

/* -- Tile ------------------------------------------------------------------- */

.home-industries__tile {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	border-radius: 10px;
	overflow: hidden;
	text-decoration: none;
	border: solid 1px var(--color-border-subtle);
}

.home-industries__tile:hover {
	text-decoration: none;
}

.home-industries__tile:focus-visible {
	outline: 3px solid var(--color-accent);
	outline-offset: 3px;
}

.home-industries__tile-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 200ms ease;
}

.home-industries__tile:hover .home-industries__tile-img {
	transform: scale(1.03);
}

.home-industries__tile-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.8) 100%);
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 10px;
	padding: 24px;
}

.home-industries__tile-name {
	color: #ffffff;
	font-size: var(--text-h4);
	font-weight: var(--weight-bold);
	line-height: var(--leading-tight);
}

.home-industries__tile-arrow {
	color: #ffffff;
	flex-shrink: 0;
	align-self: flex-end;
}

/* =============================================================================
   HOME TESTIMONIALS
   ============================================================================= */

.home-testimonials {
	position: relative;
	padding-top: 100px;
	padding-bottom: 100px;
	background-image: url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=1600');
	background-size: cover;
	background-position: center;
}

.home-testimonials::before {
	content: '';
	position: absolute;
	inset: 0;
	background-color: rgba(150, 0, 27, 0.93); /* --color-accent at 93% opacity */
}

.home-testimonials__inner {
	position: relative;
}

/* -- Header ----------------------------------------------------------------- */

.home-testimonials__header {
	margin-bottom: 48px;
}

.home-testimonials__eyebrow {
	color: rgba(255, 255, 255, 0.8);
}

.home-testimonials__heading {
	color: #ffffff;
}

/* -- Grid ------------------------------------------------------------------- */

.home-testimonials__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 25px;
}

/* -- Card ------------------------------------------------------------------- */

.home-testimonials__card {
	background-color: var(--color-bg-primary);
	border-radius: 10px;
	padding: 40px;
	display: flex;
	flex-direction: column;
}

.home-testimonials__quote-mark {
	display: block;
	font-size: 72px;
	line-height: 0.5;
	color: var(--color-accent);
	margin-top: 12px;
	font-family: Georgia, 'Times New Roman', serif;
}

.home-testimonials__quote {
	flex: 1;
	line-height: var(--leading-relaxed);
}

.home-testimonials__divider {
	border: none;
	border-top: 1px solid var(--color-border-subtle);
	margin: 20px 0;
}

.home-testimonials__name {
	font-size: 15px;
	font-weight: var(--weight-bold);
}

.home-testimonials__role {
	font-size: var(--text-body-small);
	color: var(--color-text-secondary);
	margin-top: 4px; /* override global p + p */
}

/* =============================================================================
   HOME PRODUCTS
   ============================================================================= */

.home-products {
	padding-top: 100px;
	padding-bottom: 100px;
}

/* -- Header ----------------------------------------------------------------- */

.home-products__header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	margin-bottom: 32px;
}

.home-products__view-all {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 15px;
	font-weight: var(--weight-bold);
	white-space: nowrap;
}

.home-products__view-all-arrow {
	display: inline-block;
	transition: transform 150ms ease;
}

.home-products__view-all:hover {
	text-decoration: none;
}

.home-products__view-all:hover .home-products__view-all-arrow {
	transform: translateX(4px);
}

/* -- Card ------------------------------------------------------------------- */

.home-products__card {
	border: solid 1px var(--color-border-subtle);
	border-radius: 10px;
	padding: 40px;
}

/* -- Grid ------------------------------------------------------------------- */

.home-products__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 32px;
}

/* -- Column ----------------------------------------------------------------- */

.home-products__column-heading {
	font-size: 18px;
}

.home-products__column-divider {
	border: none;
	border-top: 1px solid var(--color-border-subtle);
	margin: 16px 0;
}

.home-products__list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.home-products__link {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 15px;
	color: var(--color-text-primary);
	text-decoration: none;
}

.home-products__link-chevron {
	flex-shrink: 0;
	color: var(--color-accent);
	transition: transform 150ms ease;
}

.home-products__link:hover {
	color: var(--color-accent);
	text-decoration: none;
}

.home-products__link:hover .home-products__link-chevron {
	transform: translateX(3px);
}

/* =============================================================================
   HOME SERVICES
   ============================================================================= */

.home-services {
	padding-top: 100px;
	padding-bottom: 100px;
	background-color: var(--color-bg-subtle);
	border-top: solid 1px var(--color-border-subtle);
}

.home-services__header {
	margin-bottom: 40px;
}

.home-services__subline {
	max-width: 600px;
	color: var(--color-text-secondary);
	margin-top: 12px;
}

/* -- Grid ------------------------------------------------------------------- */

.home-services__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 25px;
}

/* -- Tile ------------------------------------------------------------------- */

.home-services__tile {
	background-color: var(--color-bg-primary);
	border: solid 1px var(--color-border-subtle);
	border-radius: 10px;
	padding: 40px;
	display: flex;
	flex-direction: column;
}

.home-services__tile-icon {
	color: var(--color-accent);
	margin-bottom: 24px;
}

.home-services__tile-name {
	font-size: 20px;
	margin-bottom: 5px;
}

.home-services__tile-desc {
	font-size: 15px;
	color: var(--color-text-secondary);
	flex: 1;
	margin-bottom: 20px;
}

.home-services__tile-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: var(--weight-bold);
}

/* =============================================================================
   HOME CLEANROOM
   ============================================================================= */

.home-cleanroom {
	background-image: url('https://spectral.blue/cdn/shop/articles/Spectral-Blue-cleanroom.jpg?v=1675857112');
	background-size: cover;
	background-position: center;
	padding-top: 140px;
	padding-bottom: 140px;
	min-height: 600px;
}

.home-cleanroom__panel {
	width: 50%;
	background-color: rgba(255, 255, 255, 0.96);
	border-radius: 10px;
	padding: 50px;
}

@supports (backdrop-filter: blur(6px)) {
	.home-cleanroom__panel {
		backdrop-filter: blur(6px);
	}
}

.home-cleanroom__copy {
	color: var(--color-text-secondary);
	margin-top: 10px;
	margin-bottom: 25px;
}

/* =============================================================================
   RESPONSIVE — 900px
   ============================================================================= */

@media (max-width: 900px) {

	/* Home Hero */
	.home-hero__inner {
		flex-direction: column;
		gap: 0;
	}

	.home-hero__content {
		flex: 0 0 auto;
		width: 100%;
		padding-top: 60px;
		padding-bottom: 40px;
	}

	.home-hero__media {
		width: 100%;
		position: static;
	}

	.home-hero__image {
		position: static;
		height: auto;
		aspect-ratio: 1 / 1;
	}

	/* Home Industries */
	.home-industries__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	/* Home Testimonials */
	.home-testimonials__grid {
		grid-template-columns: 1fr;
	}

	/* Home Products */
	.home-products__header {
		align-items: flex-start;
		flex-direction: column;
		gap: 16px;
	}

	.home-products__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 24px;
	}

	/* Home Services */
	.home-services__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	/* Home Cleanroom */
	.home-cleanroom {
		padding-top: 280px;
		padding-bottom: 40px;
		min-height: unset;
	}

	.home-cleanroom__panel {
		width: 100%;
	}

}

/* =============================================================================
   RESPONSIVE — 600px
   ============================================================================= */

@media (max-width: 600px) {

	/* Home Hero */
	.home-hero__content {
		padding-left: 25px;
		padding-right: 25px;
	}

	.home-hero__headline {
		font-size: 34px;
	}

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

	.home-hero__ctas .button--solid,
	.home-hero__ctas .button--outline {
		width: 100%;
	}

	/* Home Products */
	.home-products__grid {
		grid-template-columns: 1fr;
	}

	.home-products__card {
		padding: 32px 24px;
	}

	/* Home Services */
	.home-services__grid {
		grid-template-columns: 1fr;
	}

}
