/* =========================================================
   Light Ideas Home 1.0.2
   Shared homepage design system + Site Stats card presentation
   ========================================================= */

:root {
	--li-home-width: 1300px;
	--li-home-gap: 24px;
	--li-home-radius: 22px;
	--li-home-radius-mobile: 18px;
	--li-home-border: #ECEEF2;
	--li-home-text: #111827;
	--li-home-muted: #6b7280;
	--li-home-bg: #fff;
	--li-home-soft: #f7f8fa;
	--li-home-shadow: 0 4px 14px rgba(15, 23, 42, .03);
}

.li-home,
.li-home * {
	box-sizing: border-box;
}

.li-home {
	width: 100%;
	max-width: var(--li-home-width);
	margin-inline: auto;
	color: var(--li-home-text);
}

.li-home-section {
	margin: 0 0 56px;
}

.li-home-section-head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 20px;
	margin: 0 0 18px;
}

.li-home-section-head h2,
.li-home-assistant h2,
.li-home-seller h2 {
	margin: 0;
	font-size: clamp(1.45rem, 2.3vw, 2rem);
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: -.025em;
	color: var(--li-home-text);
}

.li-home-section-head > a {
	color: var(--li-home-text);
	font-size: .95rem;
	text-decoration: none;
	white-space: nowrap;
}

.li-home-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 11px 17px;
	border: 1px solid rgba(17, 24, 39, .14);
	border-radius: 999px;
	background: rgba(255, 255, 255, .92);
	color: var(--li-home-text);
	font-size: .94rem;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.li-home-button:hover {
	transform: translateY(-1px);
	box-shadow: 0 7px 20px rgba(15, 23, 42, .08);
}

.li-home a.li-home-button--dark,
.li-home a.li-home-button--dark:link,
.li-home a.li-home-button--dark:visited,
.li-home a.li-home-button--dark:hover,
.li-home a.li-home-button--dark:focus,
.li-home a.li-home-button--dark:active {
	background: #111827 !important;
	border-color: #111827 !important;
	color: #fff !important;
	-webkit-text-fill-color: #fff;
}

.li-home a.li-home-button--dark *,
.li-home a.li-home-button--dark:hover *,
.li-home a.li-home-button--dark:focus *,
.li-home a.li-home-button--dark:active * {
	color: inherit !important;
	-webkit-text-fill-color: inherit;
}

/* Hero */
.li-home-hero {
	position: relative;
	display: grid;
	align-items: end;
	min-height: 500px;
	margin: 0 0 18px;
	padding: clamp(30px, 5vw, 64px);
	border-radius: 28px;
	overflow: hidden;
	background:
		linear-gradient(180deg, rgba(8, 12, 20, .02) 28%, rgba(8, 12, 20, .76) 100%),
		var(--li-home-hero-image, linear-gradient(135deg, #20242d, #626a78));
	background-size: cover;
	background-position: center;
	box-shadow: var(--li-home-shadow);
	color: #fff;
}

.li-home-hero::after {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

.li-home-hero__inner {
	position: relative;
	z-index: 1;
	max-width: 720px;
}

.li-home-eyebrow {
	margin-bottom: 12px;
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .13em;
	color: rgba(255,255,255,.9);
}

.li-home-hero h1 {
	max-width: 720px;
	margin: 0 0 14px;
	font-size: clamp(2.2rem, 4.7vw, 4.35rem);
	font-weight: 400;
	line-height: 1;
	letter-spacing: -.045em;
	color: #fff !important;
	-webkit-text-fill-color: #fff;
}

.li-home-hero p {
	max-width: 610px;
	margin: 0 0 22px;
	font-size: clamp(1rem, 1.5vw, 1.16rem);
	line-height: 1.5;
	color: rgba(255,255,255,.88) !important;
	-webkit-text-fill-color: rgba(255,255,255,.88);
}

.li-home a.li-home-hero__button,
.li-home a.li-home-hero__button:link,
.li-home a.li-home-hero__button:visited,
.li-home a.li-home-hero__button:hover,
.li-home a.li-home-hero__button:focus,
.li-home a.li-home-hero__button:active {
	background: rgba(255,255,255,.94) !important;
	border-color: rgba(255,255,255,.94) !important;
	color: #111827 !important;
	-webkit-text-fill-color: #111827;
}

/* =========================================================
   Site Stats cards — moved here from Site Stats 3.2.7.
   These selectors stay un-namespaced during the Elementor
   transition so the existing [stats_cards] shortcode is styled.
   ========================================================= */
.stats-row {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	max-width: 1300px;
	margin: 18px auto 32px;
}

.stats-card,
.stats-card * {
	box-sizing: border-box;
}

.stats-card {
	background: #fff;
	border: 1px solid #ECEEF2;
	border-radius: 22px;
	box-shadow: 0 4px 14px rgba(15, 23, 42, .03);
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 22px 24px;
	overflow: hidden;
}

.stats-card-header {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 0;
}

.stats-card-icon {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.stats-card-icon svg {
	width: 22px;
	height: 22px;
	display: block;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.stats-card-title {
	margin: 0;
	font-size: 1.1rem;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -.015em;
	color: #111827;
}

.stats-card-subtitle {
	margin-top: 3px;
	font-size: .88rem;
	font-weight: 400;
	line-height: 1.35;
	color: #6b7280;
}

.stats-card-body {
	padding-top: 28px;
	text-align: center;
	flex: 1;
}

.stats-card-value {
	font-size: clamp(2.6rem, 3.8vw, 3.4rem);
	font-weight: 300;
	line-height: .95;
	letter-spacing: -.04em;
	margin: 0;
	font-variant-numeric: tabular-nums;
}

.stats-card-description,
.stats-card-footer {
	display: none;
}

.stats-card-blue .stats-card-icon { background: #EAF0FB; color: #0454CC; }
.stats-card-blue .stats-card-value { color: #0454CC; }
.stats-card-green .stats-card-icon { background: #E9F4EA; color: #00873B; }
.stats-card-green .stats-card-value { color: #00873B; }
.stats-card-purple .stats-card-icon { background: #F0E8F8; color: #6D31C4; }
.stats-card-purple .stats-card-value { color: #6D31C4; }

/* Marketplace */
.li-home-marketplace {
	position: relative;
	min-height: 340px;
	display: flex;
	align-items: end;
	padding: clamp(26px, 5vw, 54px);
	border: 1px solid var(--li-home-border);
	border-radius: var(--li-home-radius);
	overflow: hidden;
	background:
		linear-gradient(90deg, rgba(17,24,39,.78), rgba(17,24,39,.08)),
		var(--li-marketplace-image, linear-gradient(135deg, #e8ebf0, #bfc5cf));
	background-size: cover;
	background-position: center;
	box-shadow: var(--li-home-shadow);
}

.li-home-feature-card__content {
	position: relative;
	z-index: 1;
	max-width: 540px;
}

.li-home-marketplace p {
	margin: 0 0 20px;
	font-size: clamp(1.3rem, 3vw, 2.4rem);
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: -.03em;
	color: #fff;
}

/* Assistant */
.li-home-assistant,
.li-home-seller {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 20px;
	padding: 26px 28px;
	border: 1px solid var(--li-home-border);
	border-radius: var(--li-home-radius);
	background: var(--li-home-bg);
	box-shadow: var(--li-home-shadow);
}

.li-home-assistant__icon {
	width: 54px;
	height: 54px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: #f1f3f6;
}

.li-home-assistant__icon svg {
	width: 25px;
	height: 25px;
	fill: none;
	stroke: #111827;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.li-home-assistant p,
.li-home-seller p {
	margin: 5px 0 0;
	color: var(--li-home-muted);
	font-size: .96rem;
}

/* Guide cards */
.li-home-card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--li-home-gap);
}

.li-home-content-card,
.li-home-product-card {
	min-width: 0;
	border: 1px solid var(--li-home-border);
	border-radius: var(--li-home-radius);
	overflow: hidden;
	background: #fff;
	box-shadow: var(--li-home-shadow);
}

.li-home-content-card__image,
.li-home-product-card__image {
	display: block;
	aspect-ratio: 4 / 3;
	background: var(--li-home-soft);
	overflow: hidden;
}

.li-home-content-card__image img,
.li-home-product-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .25s ease;
}

.li-home-content-card:hover img,
.li-home-product-card:hover img {
	transform: scale(1.02);
}

.li-home-image-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #f1f2f4, #e5e8ec);
}

.li-home-content-card__body,
.li-home-product-card__body {
	padding: 18px 19px 20px;
}

.li-home-content-card h3,
.li-home-product-card h3 {
	margin: 0;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.35;
}

.li-home-content-card h3 a,
.li-home-product-card h3 a {
	color: var(--li-home-text);
	text-decoration: none;
}

/* Spaces */
.li-home-spaces {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--li-home-gap);
}

.li-home-space-card {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	min-height: 168px;
	padding: 22px 24px;
	border: 1px solid var(--li-home-border);
	border-radius: var(--li-home-radius);
	overflow: hidden;
	background: #fff;
	box-shadow: var(--li-home-shadow);
	color: var(--li-home-text);
	font-size: 1.08rem;
	font-weight: 500;
	text-decoration: none;
}

.li-home-space-card--image {
	align-items: end;
	min-height: 210px;
	background:
		linear-gradient(180deg, rgba(8, 12, 20, .03) 25%, rgba(8, 12, 20, .78) 100%),
		var(--li-space-image);
	background-size: cover;
	background-position: center;
	color: #fff;
}

.li-home-space-card--image::after {
	content: '';
	position: absolute;
	inset: 0;
	box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
	pointer-events: none;
}

.li-home-space-card__title,
.li-home-space-card__arrow {
	position: relative;
	z-index: 1;
}

.li-home-space-card--image .li-home-space-card__title,
.li-home-space-card--image .li-home-space-card__arrow {
	color: #fff !important;
	-webkit-text-fill-color: #fff;
	text-shadow: 0 1px 8px rgba(0,0,0,.18);
}

.li-home-space-card__arrow {
	font-size: 1.2rem;
}

/* Products */
.li-home-products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--li-home-gap);
}

.li-home-product-card__price {
	margin-top: 8px;
	color: var(--li-home-muted);
	font-size: .95rem;
}

.li-home-product-card__price ins {
	text-decoration: none;
}

/* Seller */
.li-home-seller {
	grid-template-columns: 1fr auto;
	margin-top: 6px;
	background: #f7f8fa;
}

@media (max-width: 900px) {
	.li-home-card-grid,
	.li-home-spaces {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.li-home-products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.li-home {
		--li-home-gap: 14px;
	}

	.li-home-section {
		margin-bottom: 38px;
	}

	.li-home-section-head {
		margin-bottom: 14px;
	}

	.li-home-section-head h2,
	.li-home-assistant h2,
	.li-home-seller h2 {
		font-size: 1.35rem;
	}

	.li-home-hero {
		min-height: 430px;
		padding: 26px 22px;
		border-radius: 22px;
		background-position: center;
	}

	.li-home-hero h1 {
		font-size: clamp(2rem, 10vw, 2.85rem);
		margin-bottom: 10px;
	}

	.li-home-hero p {
		font-size: .98rem;
		line-height: 1.45;
		margin-bottom: 18px;
	}

	/* Existing stats mobile styling from Site Stats 3.2.7. */
	.stats-row {
		grid-template-columns: 1fr;
		gap: 14px;
		max-width: none;
		width: 100%;
		margin: 18px 0 28px;
		padding: 0;
	}

	.stats-card {
		display: grid;
		grid-template-columns: auto 1fr auto;
		align-items: center;
		gap: 14px;
		padding: 16px 18px;
		border-radius: 18px;
	}

	.stats-card-header { display: contents; }
	.stats-card-icon { width: 44px; height: 44px; }
	.stats-card-icon svg { width: 21px; height: 21px; }
	.stats-card-header > div:last-child { min-width: 0; }
	.stats-card-title { font-size: 1rem; font-weight: 500; letter-spacing: -.01em; }
	.stats-card-subtitle { margin-top: 2px; font-size: .82rem; line-height: 1.25; }
	.stats-card-body { padding: 0; text-align: right; flex: none; }
	.stats-card-value { font-size: 2rem; font-weight: 300; letter-spacing: -.035em; white-space: nowrap; }

	.li-home-marketplace {
		min-height: 290px;
		padding: 24px 20px;
		border-radius: var(--li-home-radius-mobile);
	}

	.li-home-assistant,
	.li-home-seller {
		grid-template-columns: auto 1fr;
		gap: 14px;
		padding: 18px;
		border-radius: var(--li-home-radius-mobile);
	}

	.li-home-assistant .li-home-button,
	.li-home-seller .li-home-button {
		grid-column: 1 / -1;
		width: 100%;
	}

	.li-home-card-grid,
	.li-home-spaces,
	.li-home-products {
		display: grid;
		grid-auto-flow: column;
		grid-auto-columns: minmax(78%, 1fr);
		grid-template-columns: none;
		overflow-x: auto;
		overscroll-behavior-inline: contain;
		scroll-snap-type: inline mandatory;
		scrollbar-width: none;
		padding-bottom: 4px;
	}

	.li-home-card-grid::-webkit-scrollbar,
	.li-home-spaces::-webkit-scrollbar,
	.li-home-products::-webkit-scrollbar {
		display: none;
	}

	.li-home-card-grid > *,
	.li-home-spaces > *,
	.li-home-products > * {
		scroll-snap-align: start;
	}

	.li-home-content-card,
	.li-home-product-card,
	.li-home-space-card {
		border-radius: var(--li-home-radius-mobile);
	}
}
