/**
 * Home page.
 */

.home-page .wp-block-post-content {
	padding: 0;
}

.home-page .wp-block-post-content > * {
	margin-block: 0;
}

.home-hero,
.home-budget,
.home-media,
.home-product-card__media {
	background:
		linear-gradient(90deg, rgba(8, 8, 8, 0.98), rgba(8, 8, 8, 0.55) 60%, rgba(8, 8, 8, 0.18)),
		linear-gradient(135deg, #171717, #3b2419 65%, #121212);
}

.home-hero {
	background:
		linear-gradient(90deg, rgba(8, 8, 8, 0.98), rgba(8, 8, 8, 0.55) 56%, rgba(8, 8, 8, 0.12)),
		var(--duplatech-page-hero-home, var(--duplatech-hero-home, url(../images/figma/dt-30a.png))) center / cover no-repeat;
	min-height: clamp(34rem, 72vw, 49rem);
	padding: clamp(5rem, 12vw, 10rem) clamp(1rem, 4vw, 2rem);
	position: relative;
}

.home-hero::after {
	background: linear-gradient(90deg, rgba(8, 8, 8, 0.92), rgba(8, 8, 8, 0.52) 56%, rgba(8, 8, 8, 0.16));
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
}

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

.home-hero__content {
	margin-inline: auto;
	max-width: var(--wp--style--global--wide-size);
	position: relative;
	z-index: 1;
}

.home-hero__content > :where(.home-eyebrow, .home-hero__title, .home-hero__copy, .wp-block-buttons) {
	margin-left: 0;
	max-width: 34rem;
}

.home-eyebrow {
	color: var(--wp--preset--color--brand-primary);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.home-eyebrow--pill {
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--brand-primary) 48%, transparent);
	border-radius: 999px;
	display: inline-block;
	padding: 0.45rem 0.8rem;
}

.home-hero__title {
	font-size: clamp(3.6rem, 10vw, 6.5rem);
	letter-spacing: -0.06em;
	line-height: 0.78;
	margin-block: 1.5rem;
	text-transform: uppercase;
}

.home-hero__title span,
.home-section__title span {
	color: var(--wp--preset--color--brand-primary);
}

.home-hero__copy {
	color: var(--wp--preset--color--text-secondary);
	font-size: 1rem;
	line-height: 1.65;
	max-width: 34rem !important;
}

.home-hero__content .wp-block-buttons {
	display: flex;
	flex-flow: row wrap;
	gap: 0.75rem;
}

.home-hero__content .wp-block-button__link {
	min-width: 10rem;
	text-align: center;
}


/* The generated global preset must not recolor the secondary CTA. */
/* stylelint-disable no-descending-specificity */
.home-page .home-hero__content
.wp-block-button.is-style-outline .wp-block-button__link {
	background: rgba(8, 8, 8, 0.38) !important;
	border: 1px solid rgba(255, 255, 255, 0.45) !important;
	box-shadow: none;
	color: var(--wp--preset--color--text-primary) !important;
	transition:
		background-color 180ms ease,
		border-color 180ms ease,
		color 180ms ease;
}

.home-page .home-hero__content
.wp-block-button.is-style-outline .wp-block-button__link:is(:hover, :focus-visible) {
	background: color-mix(in srgb, var(--wp--preset--color--brand-primary) 14%, #080808) !important;
	border-color: var(--wp--preset--color--brand-primary) !important;
	color: var(--wp--preset--color--brand-primary) !important;
}
/* stylelint-enable no-descending-specificity */

.home-page .home-hero__content .wp-block-button.is-style-outline .wp-block-button__link::before {
	border-bottom: 0.25rem solid transparent;
	border-left: 0.4rem solid currentcolor;
	border-top: 0.25rem solid transparent;
	content: "";
	display: inline-block;
	margin-right: 0.6rem;
}

.home-metrics {
	background: var(--wp--preset--color--brand-primary);
	color: var(--wp--preset--color--brand-on-primary);
	padding: 2rem clamp(1rem, 4vw, 2rem);
}

.home-metrics__grid {
	gap: 0;
	text-align: center;
}

.home-metrics h3 {
	color: var(--wp--preset--color--brand-on-primary);
	font-size: clamp(2rem, 6vw, 3rem);
	margin: 0;
}

.home-metrics p {
	color: var(--wp--preset--color--brand-on-primary);
	font-size: 0.75rem;
	margin: 0;
}

.home-section {
	padding: clamp(5rem, 10vw, 9rem) clamp(1rem, 4vw, 2rem);
}

.home-quality {
	background: var(--wp--preset--color--surface-page);
}

.home-quality__grid {
	gap: clamp(2rem, 6vw, 6rem);
}

.home-product-grid {
	gap: 1.5rem;
}

.home-media {
	aspect-ratio: 4 / 3;
	border-radius: 0.9rem;
	min-height: 19rem;
}

.home-quality__media {
	background: url(../images/figma/home-quality.png) center / cover no-repeat;
	overflow: visible;
	position: relative;
}

.home-quality__media::after {
	background: url(../images/figma/quality-seal.png) center / contain no-repeat;
	content: "";
	height: clamp(5rem, 12vw, 9rem);
	position: absolute;
	right: clamp(-2rem, -3vw, -1rem);
	top: clamp(-2.5rem, -4vw, -1.5rem);
	width: clamp(5rem, 12vw, 9rem);
}

.home-section__title {
	font-size: clamp(2.25rem, 5vw, 3.8rem);
	line-height: 1.05;
	margin-block: 0.55rem 1.25rem;
}

.home-feature-list {
	color: var(--wp--preset--color--text-secondary);
	list-style: none;
	padding: 0;
}

.home-feature-list li {
	margin-block: 1.15rem;
	padding-left: 1.75rem;
	position: relative;
}

.home-feature-list li::before {
	background: url(../images/icons/check-circle.svg) center / contain no-repeat;
	content: "";
	height: 1.25rem;
	left: 0;
	position: absolute;
	top: 0.15em;
	width: 1.25rem;
}

.home-feature-list strong {
	color: var(--wp--preset--color--text-primary);
}

.home-text-link a {
	color: var(--wp--preset--color--brand-primary);
	font-weight: 750;
	text-decoration: none;
}

.home-products {
	background: var(--wp--preset--color--surface-raised);
	padding-block: clamp(4.5rem, 7vw, 6rem);
}

.home-section__header {
	margin-bottom: 2.5rem;
}

.home-products .home-section__title {
	font-size: clamp(2.25rem, 4vw, 3rem);
}

.home-section__header .home-text-link a {
	color: var(--wp--preset--color--text-secondary);
	font-weight: 400;
}

.home-product-card {
	background: var(--wp--preset--color--surface-soft);
	border-bottom: 2px solid var(--wp--preset--color--brand-primary);
	border-radius: 0.8rem;
	overflow: hidden;
	padding: 0 1.25rem 1rem;
}

.home-product-card__media {
	aspect-ratio: 1.85 / 1;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	margin: 0 -1.25rem 1rem;
	padding: 1rem;
}

.home-product-card:nth-child(1) .home-product-card__media {
	background-image: url(../images/figma/dt-30a.png);
}

.home-product-card:nth-child(2) .home-product-card__media {
	background-image: url(../images/figma/dt-36c.png);
}

.home-product-card:nth-child(3) .home-product-card__media {
	background-image: url(../images/figma/dt-36a.png);
}

.home-product-card__media span {
	background: var(--wp--preset--color--brand-primary);
	border-radius: 999px;
	color: var(--wp--preset--color--brand-on-primary);
	display: inline-block;
	font-size: 0.65rem;
	font-weight: 800;
	padding: 0.35rem 0.65rem;
	text-transform: uppercase;
}

.home-product-card__type {
	color: var(--wp--preset--color--text-secondary);
	font-size: 0.7rem;
	letter-spacing: 0.1em;
	margin-block: 0 0.25rem;
	text-transform: uppercase;
}

.home-product-card h3 {
	margin-block: 0 0.65rem;
}

.home-product-card > p:not(.home-product-card__type, .home-text-link) {
	margin-block: 0;
}

.home-product-card small,
.home-product-card strong {
	display: inline-block;
	margin-bottom: 0.55rem;
	padding-bottom: 0.55rem;
	width: 49%;
}

.home-product-card small {
	color: var(--wp--preset--color--text-secondary);
}

.home-product-card strong {
	font-size: 0.8rem;
	font-weight: 400;
	text-align: right;
}

.home-product-card small:first-of-type,
.home-product-card strong:first-of-type {
	border-bottom: 1px solid var(--wp--preset--color--border-subtle);
}

.home-product-card > .home-text-link {
	margin-block: 0.25rem 0;
}

.home-budget {
	background:
		linear-gradient(90deg, rgba(8, 8, 8, 0.78), rgba(8, 8, 8, 0.38)),
		url(../images/figma/home-budget.png) center / cover no-repeat;
	min-height: clamp(11rem, 17vw, 13rem);
	padding: clamp(2.75rem, 5vw, 4rem) clamp(1rem, 4vw, 2rem);
}

.home-budget__inner {
	gap: 2rem;
}

.home-budget__inner > div {
	max-width: 35rem;
}

/* stylelint-disable-next-line no-descending-specificity */
.home-budget .wp-block-button__link {
	font-size: 0.8rem;
	padding: 0.7rem 1rem;
}

.home-services {
	background: var(--wp--preset--color--surface-page);
	padding-block: clamp(4rem, 6vw, 5.5rem);
}

.home-services .wp-block-columns {
	gap: 1.5rem;
}

.home-service-card {
	background: var(--wp--preset--color--surface-raised);
	border: 1px solid var(--wp--preset--color--border-subtle);
	border-radius: 1rem;
	min-height: 17.75rem;
	overflow: hidden;
	padding: 2.25rem;
	position: relative;
}

.home-service-card::after {
	background: color-mix(in srgb, var(--wp--preset--color--brand-primary) 4%, transparent);
	border-radius: 50%;
	content: "";
	height: 10rem;
	position: absolute;
	right: -4rem;
	top: -5rem;
	width: 10rem;
}

.home-service-card h3 {
	margin-top: 0;
	position: relative;
	z-index: 1;
}

.home-service-card h3::before {
	background-color: color-mix(in srgb, var(--wp--preset--color--brand-primary) 10%, transparent);
	background-image: url(../images/icons/wrench.svg);
	background-position: center;
	background-repeat: no-repeat;
	background-size: 1.5rem;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--brand-primary) 35%, transparent);
	border-radius: 0.75rem;
	content: "";
	display: block;
	height: 2.75rem;
	margin-bottom: 1.5rem;
	width: 2.75rem;
}

.home-service-card--accent {
	background: var(--wp--preset--color--brand-primary);
	color: var(--wp--preset--color--brand-on-primary);
}

.home-service-card--accent::after {
	background: color-mix(in srgb, var(--wp--preset--color--text-primary) 13%, transparent);
}

.home-service-card--accent h3 {
	color: var(--wp--preset--color--brand-on-primary);
}

.home-service-card--accent h3::before {
	background-color: color-mix(in srgb, var(--wp--preset--color--brand-on-primary) 7%, transparent);
	background-image: url(../images/icons/delivery-truck.svg);
	border-color: transparent;
}

.home-service-card--accent .home-text-link a {
	color: inherit;
}

.home-service-card--accent .home-text-link a:is(:hover, :focus-visible) {
	color: var(--wp--preset--color--brand-on-primary);
}

@media (max-width: 47.99rem) {

	.home-hero,
	.home-metrics,
	.home-section,
	.home-budget {
		padding-inline: 0;
	}

	.home-hero__content,
	.home-metrics__grid,
	.home-quality__grid,
	.home-section__header,
	.home-product-grid,
	.home-budget__inner,
	.home-services > .wp-block-columns {
		padding-inline: var(--wp--preset--spacing--60);
		width: 100%;
	}

	.home-metrics .home-metrics__grid {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 2rem;
	}

	.home-quality__media {
		width: 100%;
	}

	.home-quality__media::after {
		right: 0;
	}
}

@media (min-width: 48rem) {

	.home-metrics__grid > .wp-block-column + .wp-block-column {
		border-left: 1px solid color-mix(in srgb, var(--wp--preset--color--brand-on-primary) 45%, transparent);
	}

}

@media (min-width: 64rem) {

	.home-quality__grid {
		padding-inline: 3rem;
	}

	.home-product-card {
		min-width: 0;
	}
}
