/*
 * Front page — production homepage structure (led-* BEM).
 * Reference: Divi homepage code module styles.
 */

html body.led-page .led-page__main--front {
	padding-block: var(--layout-content-top, 2rem) var(--space-10, 2.5rem);
}

@media (max-width: 1023px) {
	html body.led-page .led-page__main--front {
		padding-top: var(--layout-content-top-tablet, 1.5rem);
	}
}

@media (max-width: 767px) {
	html body.led-page .led-page__main--front {
		padding-top: var(--layout-content-top-mobile, 1rem);
	}
}

.led-home {
	width: 100%;
}

.led-home__inner {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: var(--space-8, 2rem);
	width: 100%;
	margin-inline: auto;
}

@media (max-width: 767px) {
	.led-home__inner {
		gap: var(--space-6, 1.5rem);
	}
}

.led-home__inner > * {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

/* Placeholder + section title: assets/css/components/shared.css */

/* --- Hero (.header-banner) --- */

.led-home__banner {
	position: relative;
	overflow: hidden;
	min-height: 465px;
	padding: 42px 0 0 42px;
	border-radius: 22px;
	background-color: var(--color-neutral-500, #808080);
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
	color: var(--color-neutral-0, #fff);
	box-sizing: border-box;
}

.led-home__banner-stamp {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 152px;
	height: 152px;
	z-index: 10;
	object-fit: contain;
}

.led-home__banner-body {
	position: relative;
	z-index: 2;
	flex: 1 1 49%;
	max-width: 800px;
	color: var(--color-neutral-0, #fff);
}

.led-home__banner-title {
	margin: 0;
	max-width: 800px;
	color: var(--color-neutral-0, #fff);
	text-align: left;
}

.led-home__banner-content {
	margin-bottom: 11px;
}

.led-home__banner-lead {
	max-width: 703px;
	margin: 20px 0;
	font-weight: var(--font-weight-bold, 700);
	color: inherit;
}

.led-home__banner-list {
	max-width: 703px;
	margin: 0 0 var(--space-4, 1rem);
	padding-left: 1.25em;
	list-style: disc;
	list-style-type: disc;
	color: inherit;
}

.led-home__banner-list li {
	display: list-item;
	list-style-type: disc;
	margin-bottom: 6px;
	line-height: 1.5;
}

.led-home__banner-list li:last-child {
	margin-bottom: 0;
}

.led-home__banner-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	position: relative;
	z-index: 100;
	margin-bottom: 42px;
}

.led-home__banner-certs {
	position: absolute;
	right: 45px;
	bottom: 20px;
	height: 71px;
	width: auto;
	max-width: calc(100% - 90px);
	object-fit: contain;
	z-index: 5;
}

@media (max-width: 1200px) {
	.led-home__banner-certs {
		height: 64px;
		bottom: 32px;
	}
}

@media (max-width: 979px) {
	.led-home__banner {
		padding: 0;
	}

	.led-home__banner-body {
		padding: 24px;
		padding-bottom: 96px;
	}

	.led-home__banner-title,
	.led-home__banner-lead,
	.led-home__banner-list {
		max-width: 70%;
	}

	.led-home__banner-title-wrap,
	.led-home__banner-content {
		margin: 0;
	}

	.led-home__banner-actions {
		margin-bottom: 0;
	}

	.led-home__banner-actions .led-btn {
		width: 100%;
		text-align: center;
		justify-content: center;
	}

	.led-home__banner-certs {
		left: 0;
		right: 0;
		width: 100%;
		max-width: none;
		height: 49px;
		padding-inline: 24px;
		box-sizing: border-box;
	}
}

@media (max-width: 767px) {
	.led-home__banner-list {
		max-width: 100%;
	}

	.led-home__banner-title {
		letter-spacing: -0.02em;
	}

	.led-home__banner-stamp {
		top: 12px;
		right: 12px;
		width: 100px;
		height: 100px;
	}

	.led-home__banner-actions {
		flex-direction: column;
	}
}

@media (max-width: 576px) {
	.led-home__banner-lead,
	.led-home__banner-list {
		max-width: 100%;
	}
}

/* --- SPO cards (.spo-block-wrapper / .block-banner) --- */

.led-home__spo {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
}

a.led-home__spo-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-4, 1rem);
	width: 100%;
	padding: 16px;
	border: 1px solid var(--color-border, #e2e2e2);
	border-radius: 16px;
	background: var(--color-bg, #fff);
	box-shadow: 0 2px 4px rgb(0 0 0 / 0.05);
	text-decoration: none;
	color: inherit;
	box-sizing: border-box;
	overflow: hidden;
	transition:
		transform 0.2s ease-in-out,
		border-color 0.2s ease-in-out,
		box-shadow 0.2s ease-in-out;
}

a.led-home__spo-card:hover {
	transform: translateY(-1px);
	border-color: var(--color-primary-700, #078a3e);
	box-shadow: 0 8px 16px rgb(7 138 62 / 0.1);
}

.led-home__spo-copy {
	display: flex;
	flex-direction: column;
	gap: var(--space-2, 0.5rem);
	flex: 1 1 auto;
	min-width: 0;
	padding-right: 16px;
}

.led-home__spo-title {
	margin: 0;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	color: var(--color-text, #000);
}

.led-home__spo-text {
	margin: 0;
	color: var(--color-text, #000);
}

.led-home__spo-media {
	flex: 0 0 auto;
	max-width: 140px;
	min-height: 130px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.led-home__spo-media img,
.led-home__spo-img {
	display: block;
	max-width: 100%;
	max-height: 160px;
	height: auto;
	object-fit: contain;
}

@media (min-width: 1024px) {
	.led-home__spo {
		flex-direction: row;
		gap: 24px;
	}

	a.led-home__spo-card {
		flex: 1 1 50%;
		padding: 32px;
		min-width: 0;
	}

	.led-home__spo-copy {
		padding-right: 24px;
	}

	.led-home__spo-media {
		max-width: 220px;
	}
}

/* --- Brand promise --- */

.led-home__promise {
	position: relative;
	z-index: 0;
	margin-top: var(--space-12, 3rem);
	clear: both;
}

.led-home__promise-header {
	margin: var(--space-8, 2rem) auto var(--space-6, 1.5rem);
	text-align: center;
}

.led-home__promise-eyebrow {
	margin: 0;
}

.led-home__promise-title {
	margin: var(--space-2, 0.5rem) 0 0;
	color: var(--color-primary-400, #45b449);
}

.led-home__promise-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-3, 0.75rem);
	width: 100%;
}

.led-home__promise-card {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: var(--space-6, 1.5rem);
	width: 100%;
	padding: var(--space-5, 1.25rem);
	border: 1px solid var(--color-border, #e2e2e2);
	border-radius: 10px;
	background: var(--color-bg, #fff);
	box-shadow: 0 8px 16px rgb(0 0 0 / 0.1);
	box-sizing: border-box;
	transition: border-color var(--transition-slow, 0.3s ease), box-shadow var(--transition-slow, 0.3s ease);
}

/* Production .compare-us-banner-card:nth-child(even) — icon on right (mobile/tablet) */
.led-home__promise-card:nth-child(even) {
	flex-direction: row-reverse;
	justify-content: flex-end;
}

.led-home__promise-card:hover {
	border-color: var(--color-primary-700, #078a3e);
	box-shadow: 0 8px 16px color-mix(in srgb, var(--color-primary-700, #078a3e) 20%, transparent);
}

.led-home__promise-icon {
	flex: 0 0 60px;
	width: 60px;
	height: 60px;
	object-fit: contain;
}

.led-home__promise-body {
	min-width: 0;
}

.led-home__promise-card-title {
	margin: 0 0 var(--space-2, 0.5rem);
	margin-top: 0 !important;
}

.led-home__promise-card-text {
	margin: 0;
	color: var(--color-text-muted, #565656);
}

/* Tablet: 2 per row, larger icons */
@media (min-width: 768px) {
	.led-home__promise-grid {
		grid-template-columns: 1fr 1fr;
	}

	.led-home__promise-icon {
		flex: 0 0 72px;
		width: 72px;
		height: 72px;
	}
}

/* Desktop: 4 per row, icon above text */
@media (min-width: 1024px) {
	.led-home__promise-grid {
		grid-template-columns: repeat(4, 1fr);
	}

	.led-home__promise-card,
	.led-home__promise-card:nth-child(even) {
		flex-direction: column;
		align-items: flex-start;
		justify-content: flex-start;
	}

	.led-home__promise-icon {
		flex: 0 0 60px;
		width: 60px;
		height: 60px;
	}
}

/* --- Categories (production .categories-homepage) --- */

.led-home__categories {
	display: flex;
	flex-direction: column;
	gap: 96px;
	/* Center 1024px shell inside .led-wrap (flex stretch otherwise fills full wrap) */
	align-self: center;
	width: min(100%, 1024px);
	max-width: 1024px;
	margin: 64px auto;
}

.led-home__cat {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 48px;
	width: 100%;
}

.led-home__cat-title {
	margin: 0;
	text-align: center;
	color: var(--color-text, #000);
}

/* Desktop: 2×2 grid stretches to featured image height; cards stay 184px (prod). */
.led-home__cat-row {
	display: flex;
	justify-content: center;
	gap: 32px;
	align-items: stretch;
	width: 100%;
}

.led-home__cat-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: 32px;
	flex: 0 0 auto;
	align-self: stretch;
}

a.led-home__cat-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	overflow: hidden;
	max-width: 184px;
	width: 100%;
	height: 100%;
	min-height: 0;
	border: 1px solid #ededed;
	border-radius: 16px;
	box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.1);
	text-decoration: none;
	color: inherit;
	background: #fff;
	box-sizing: border-box;
}

a.led-home__cat-item img {
	display: block;
	width: 100%;
	flex: 1 1 0;
	min-height: 0;
	max-height: 118px;
	object-fit: contain;
	object-position: center;
	background: var(--color-bg, #fff);
}

.led-home__cat-label {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 100%;
	padding: 8px 0;
	box-sizing: border-box;
	font-weight: var(--font-weight-bold, 700);
	text-align: center;
	color: var(--color-text, #000);
}

.led-home__cat-large {
	position: relative;
	overflow: hidden;
	/* Stretch with grid; shrink if row is tight */
	flex: 0 1 auto;
	align-self: stretch;
	max-width: 522px;
	width: min(100%, 522px);
	min-height: 355px;
	border-radius: 16px;
}

.led-home__cat-large a.led-home__cat-item--featured {
	position: relative;
	display: block;
	overflow: hidden;
	max-width: 522px;
	width: 100%;
	height: 100%;
	min-height: 355px;
	border: 1px solid #ededed;
	border-radius: 16px;
	box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.1);
	text-decoration: none;
	color: inherit;
	background: #fff;
	box-sizing: border-box;
}

.led-home__cat-large a.led-home__cat-item--featured img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 355px;
	max-height: none;
	object-fit: cover;
	object-position: center;
}

/* Position only — look comes from .led-btn.blue-btn */
.led-home__cat-shop {
	position: absolute;
	right: 20px;
	bottom: 20px;
	z-index: 10;
}

/*
 * Production only stacked at ≤600px.
 * We also stack tablet (≤1023) so featured stays full-width + on top.
 */
@media only screen and (max-width: 1023px) {
	.led-home__categories {
		max-width: none;
	}

	.led-home__cat-row,
	.led-home__cat-row--right {
		flex-direction: column;
		gap: 16px;
	}

	/* Same idea as .category-items.right { flex-direction: column-reverse } */
	.led-home__cat-large {
		order: -1;
		max-width: none;
		width: 100%;
	}

	.led-home__cat-grid {
		order: 1;
		gap: 16px;
		width: 100%;
	}

	a.led-home__cat-item {
		max-width: 100%;
		height: auto;
	}

	a.led-home__cat-item img {
		flex: none;
		width: 100%;
		height: 118px;
		max-height: 118px;
		object-fit: contain;
		object-position: center;
	}

	.led-home__cat-large {
		min-height: 220px;
		border-radius: 16px;
	}

	.led-home__cat-large a.led-home__cat-item--featured {
		max-width: 100%;
		min-height: 220px;
	}

	.led-home__cat-large a.led-home__cat-item--featured img {
		min-height: 220px;
	}
}
