.nlh-home {
	--home-card: #fffaf0;
	--home-ink: #17201d;
	--home-muted: #6e6a5f;
	--home-line: #ded5c3;
	--home-gold: #d2a84b;
	--home-deep: #082626;
	background:
		radial-gradient(circle at 8% 12%, rgba(210, 168, 75, .18), transparent 28rem),
		linear-gradient(180deg, #f8f2e6 0%, #f2eddf 52%, #eee6d7 100%);
	min-height: 100vh;
	direction: rtl;
}

/* DESKTOP-WIDTH FIX: the block theme wraps singular page content in
   `.wp-block-post-content.is-layout-constrained`, which caps every direct
   child at the theme content-size (~760px). That squeezed the whole homepage
   into a narrow centered column on desktop (huge empty side margins). Break
   the homepage out of that cap so it can use its own intended width, which
   `.nlh-home-main` manages (centered, up to 1280px). Homepage-scoped only. */
.wp-block-post-content > .nle-page.nlh-home,
.entry-content > .nle-page.nlh-home,
.nle-page.nlh-home {
	max-width: none !important;
	width: 100%;
	margin-inline: 0;
}

.nlh-home-main {
	width: min(1280px, calc(100vw - 32px));
	margin: 0 auto;
	padding-block: 16px 0;
}

.nle-page.nlh-home .nlh-home-hero {
	display: block;
	margin: 4px 0 12px;
}

.nlh-home-panel,
.nlh-home-languages,
.nlh-home-trust,
.nlh-home-paths,
.nlh-home-international {
	border: 1px solid var(--home-line);
	border-radius: 22px;
	background: rgba(255, 250, 240, .92);
	box-shadow: 0 18px 46px rgba(47, 38, 20, .08);
}

.nle-page.nlh-home .nlh-home-panel {
	padding: clamp(20px, 3.2vw, 34px);
	min-height: 0;
}

.nlh-home-eyebrow {
	display: inline-flex;
	color: #9b7628;
	font-weight: 900;
	letter-spacing: .12em;
	font-size: 13px;
	text-transform: uppercase;
	margin-bottom: 12px;
}

.nle-page.nlh-home .nlh-home h1 {
	margin: 0 0 14px;
	font-family: "Frank Ruhl Libre", serif;
	font-size: clamp(40px, 5vw, 66px);
	line-height: .98;
	letter-spacing: 0;
	color: var(--home-ink);
}

.nle-page.nlh-home .nlh-home-lead {
	margin: 0;
	color: var(--home-muted);
	font-size: clamp(17px, 1.7vw, 20px);
	line-height: 1.62;
	max-width: 760px;
}

.nlh-home-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 16px;
}

.nlh-home-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	border: 1px solid var(--home-line);
	border-radius: 999px;
	padding: 0 18px;
	background: #fff;
	color: var(--home-deep);
	text-decoration: none;
	font-weight: 900;
}

.nlh-home-button.is-primary {
	background: var(--home-deep);
	border-color: var(--home-deep);
	color: #f6df9a;
}

.nlh-search-row {
	display: grid;
	grid-template-columns: 1.2fr .8fr auto;
	gap: 10px;
	align-items: end;
}

.nlh-home-inline-search {
	margin-top: 18px;
	padding: 14px;
	border: 1px solid rgba(8, 38, 38, .14);
	border-radius: 18px;
	background: rgba(255, 255, 255, .66);
}

.nlh-search-field {
	display: grid;
	gap: 5px;
}

.nlh-home-inline-search .nlh-search-field label {
	color: #9b7628;
	font-size: 12px;
	font-weight: 900;
}

.nlh-home-inline-search .nlh-search-field input,
.nlh-home-inline-search .nlh-search-field select {
	min-height: 45px;
	border: 1px solid rgba(8, 38, 38, .16);
	border-radius: 13px;
	background: #fff;
	color: #17201d;
	font: inherit;
	padding: 0 13px;
}

.nlh-home-inline-search button {
	min-height: 45px;
	border: 0;
	border-radius: 13px;
	background: linear-gradient(180deg, #f2d98d, #d2a84b);
	color: #17201d;
	font: inherit;
	font-weight: 900;
	padding: 0 17px;
	cursor: pointer;
}

.nle-page.nlh-home .nlh-home-languages {
	display: grid;
	grid-template-columns: 1.1fr repeat(5, auto);
	gap: 8px;
	align-items: center;
	padding: 12px 16px;
	margin: 0 0 12px;
}

.nlh-home-languages strong {
	color: var(--home-ink);
	font-size: 15px;
}

.nlh-home-languages a,
.nlh-home-languages span,
.nlh-home-languages button {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	min-height: 34px;
	border: 1px solid var(--home-line);
	border-radius: 999px;
	padding: 0 12px;
	background: #fff;
	color: var(--home-muted);
	text-decoration: none;
	font-weight: 900;
	font-size: 13px;
	font-family: inherit;
	cursor: pointer;
}

.nlh-home-languages .is-active {
	background: var(--home-deep);
	color: #f6df9a;
	border-color: var(--home-deep);
}

.nle-page.nlh-home .nle-catalog {
	margin-top: 0;
	margin-bottom: 12px;
	padding: 14px;
}

.nle-page.nlh-home .nlh-home-project-engine .nlh-home-languages {
	margin: 0 0 14px;
	box-shadow: none;
	background: rgba(255, 255, 255, .72);
	border-radius: 16px;
}

.nle-page.nlh-home .nle-catalog-head {
	align-items: end;
}

.nlh-home-section-kicker {
	display: inline-flex;
	color: #9b7628;
	font-size: 12px;
	font-weight: 900;
	margin-bottom: 7px;
}

.nlh-home .nle-catalog-head p {
	margin: 6px 0 0;
	color: var(--home-muted);
	line-height: 1.55;
	max-width: 720px;
}

.nlh-project-tools {
	display: grid;
	gap: 10px;
	justify-items: end;
	min-width: min(430px, 100%);
}

.nlh-project-search {
	display: grid;
	gap: 6px;
	width: min(380px, 100%);
	color: #9b7628;
	font-size: 12px;
	font-weight: 900;
}

.nlh-project-search .nle-search {
	width: 100%;
}

.nlh-project-language-rail {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	justify-content: flex-end;
}

.nlh-project-language-rail a,
.nlh-project-language-rail span,
.nlh-project-language-rail button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	border: 1px solid var(--home-line);
	border-radius: 999px;
	padding: 0 12px;
	background: #fff;
	color: var(--home-muted);
	text-decoration: none;
	font-size: 13px;
	font-weight: 900;
	font-family: inherit;
	cursor: pointer;
}

.nlh-project-language-rail .is-active {
	background: var(--home-deep);
	border-color: var(--home-deep);
	color: #f6df9a;
}

.nlh-catalog-note {
	margin: 12px 2px 0;
	color: var(--home-muted);
	font-size: 14px;
	line-height: 1.55;
}

.nle-page.nlh-home .nle-project-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nle-page.nlh-home .nle-project-card img {
	aspect-ratio: 21 / 9;
	max-height: 148px;
}

.nle-page.nlh-home .nle-project-card div {
	padding: 11px 13px 12px;
}

.nle-page.nlh-home .nle-project-card strong {
	font-size: 18px;
}

.nle-page.nlh-home .nle-project-card span {
	font-size: 13px;
	line-height: 1.38;
}

.nle-page.nlh-home .nle-showroom {
	margin-top: 12px;
}

.nlh-home-trust {
	margin: 20px 0 36px;
	padding: 18px;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}

.nlh-home-trust article {
	border: 1px solid var(--home-line);
	border-radius: 18px;
	background: #fffef8;
	padding: 18px;
}

.nlh-home-trust span {
	display: block;
	color: #9b7628;
	font-size: 12px;
	font-weight: 900;
	margin-bottom: 8px;
}

.nlh-home-trust strong {
	display: block;
	font-family: "Frank Ruhl Libre", serif;
	font-size: 24px;
	line-height: 1.15;
	color: var(--home-ink);
}

.nlh-home-trust p {
	margin: 8px 0 0;
	color: var(--home-muted);
	line-height: 1.55;
	font-size: 14px;
}

.nlh-home-paths,
.nlh-home-international {
	margin: 20px 0;
	padding: clamp(18px, 3vw, 28px);
}

.nlh-section-head {
	max-width: 780px;
	margin-bottom: 18px;
}

.nlh-section-head > span {
	display: inline-flex;
	color: #9b7628;
	font-size: 12px;
	font-weight: 900;
	margin-bottom: 8px;
}

.nlh-section-head h2 {
	margin: 0;
	font-family: "Frank Ruhl Libre", serif;
	font-size: clamp(31px, 4vw, 48px);
	line-height: 1.08;
	color: var(--home-ink);
}

.nlh-section-head p {
	margin: 10px 0 0;
	color: var(--home-muted);
	font-size: 16px;
	line-height: 1.65;
}

.nlh-path-grid,
.nlh-language-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}

.nlh-path-grid article,
.nlh-language-card {
	border: 1px solid var(--home-line);
	border-radius: 18px;
	background: #fffef8;
	padding: 18px;
	min-height: 184px;
}

.nlh-path-grid article span,
.nlh-language-card span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 30px;
	border-radius: 999px;
	padding: 0 10px;
	background: rgba(210, 168, 75, .16);
	color: #8f6b22;
	font-size: 12px;
	font-weight: 900;
	margin-bottom: 12px;
}

.nlh-path-grid article strong,
.nlh-language-card strong {
	display: block;
	font-family: "Frank Ruhl Libre", serif;
	font-size: 24px;
	line-height: 1.15;
	color: var(--home-ink);
}

.nlh-path-grid article p,
.nlh-language-card p {
	margin: 10px 0 0;
	color: var(--home-muted);
	line-height: 1.58;
	font-size: 14px;
}

.nlh-language-card:target {
	border-color: var(--home-gold);
	box-shadow: 0 0 0 4px rgba(210, 168, 75, .18);
}

@media (max-width: 900px) {
	.nle-page.nlh-home .nlh-home-main {
		display: flex;
		flex-direction: column;
	}

	.nle-page.nlh-home .nlh-home-hero {
		order: 1;
	}

	.nle-page.nlh-home .nlh-home-languages {
		order: 2;
	}

	.nle-page.nlh-home .nle-catalog {
		order: 3;
		margin-top: 12px;
	}

	.nle-page.nlh-home .nle-showroom {
		order: 4;
	}

	.nle-page.nlh-home .nlh-home-trust {
		order: 5;
	}

	.nle-page.nlh-home .nlh-home-paths {
		order: 6;
	}

	.nle-page.nlh-home .nlh-home-international {
		order: 7;
	}

	.nlh-home-languages {
		grid-template-columns: 1fr repeat(3, auto);
	}

	.nle-page.nlh-home .nle-project-grid {
		grid-template-columns: repeat(3, minmax(190px, 1fr));
		overflow-x: auto;
		scroll-snap-type: inline mandatory;
		padding-bottom: 3px;
		scrollbar-width: none;
	}

	.nle-page.nlh-home .nle-project-grid::-webkit-scrollbar {
		display: none;
	}

	.nle-page.nlh-home .nle-project-card {
		scroll-snap-align: start;
	}

	.nlh-project-tools {
		justify-items: stretch;
		width: 100%;
	}

	.nlh-project-language-rail {
		justify-content: flex-start;
	}

	.nlh-search-row {
		grid-template-columns: 1fr;
	}

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

	.nlh-path-grid,
	.nlh-language-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.nlh-home-main {
		width: min(100% - 20px, 1280px);
		padding-block-start: 8px;
	}

	.nlh-home-hero {
		margin-bottom: 10px;
	}

	.nle-page.nlh-home .nlh-home-panel {
		min-height: auto;
		padding: 14px;
		border-radius: 16px;
	}

	.nlh-home-eyebrow {
		margin-bottom: 8px;
		font-size: 11px;
	}

	.nle-page.nlh-home .nlh-home h1 {
		margin-bottom: 8px;
		font-size: clamp(27px, 8.2vw, 34px);
		line-height: 1.02;
	}

	.nle-page.nlh-home .nlh-home-lead {
		font-size: 14px;
		line-height: 1.42;
	}

	.nlh-home-inline-search {
		margin-top: 10px;
		padding: 8px;
	}

	.nlh-search-field input,
	.nlh-search-field select,
	.nlh-home-inline-search button {
		min-height: 38px;
	}

	.nlh-home-actions {
		margin-top: 8px;
		gap: 8px;
	}

	.nlh-home-button {
		min-height: 38px;
		padding: 0 14px;
	}

	.nle-page.nlh-home .nlh-home-languages {
		display: flex;
		align-items: center;
		overflow-x: auto;
		gap: 7px;
		margin-bottom: 10px;
		padding: 9px 10px;
		scrollbar-width: none;
	}

	.nle-page.nlh-home .nlh-home-languages::-webkit-scrollbar {
		display: none;
	}

	.nlh-home-languages strong {
		flex: 0 0 auto;
		font-size: 12px;
		white-space: nowrap;
	}

	.nlh-home-languages button {
		flex: 0 0 auto;
		min-height: 34px;
		padding: 0 10px;
	}

	.nle-page.nlh-home .nle-catalog {
		padding: 12px;
		margin-bottom: 10px;
	}

	.nle-page.nlh-home .nle-catalog-head {
		gap: 10px;
		margin-bottom: 10px;
	}

	.nle-page.nlh-home .nle-catalog h2 {
		font-size: 25px;
		line-height: 1.08;
	}

	.nle-page.nlh-home .nle-catalog-head p {
		font-size: 14px;
		line-height: 1.45;
	}

	.nle-page.nlh-home .nle-project-grid {
		grid-template-columns: repeat(3, minmax(260px, 78vw));
		gap: 10px;
	}

	.nle-page.nlh-home .nle-project-card img {
		max-height: 118px;
	}

	.nle-page.nlh-home .nle-showroom {
		margin-top: 10px;
	}

	.nlh-project-language-rail {
		flex-wrap: nowrap;
		overflow-x: auto;
		justify-content: flex-start;
		padding-bottom: 2px;
		scrollbar-width: none;
	}

	.nlh-project-language-rail::-webkit-scrollbar {
		display: none;
	}

	.nlh-project-language-rail a,
	.nlh-project-language-rail span,
	.nlh-project-language-rail button {
		flex: 0 0 auto;
		min-height: 38px;
	}

	.nlh-home-trust {
		grid-template-columns: 1fr;
	}

	.nlh-path-grid,
	.nlh-language-grid {
		grid-template-columns: 1fr;
	}

	.nlh-path-grid article,
	.nlh-language-card {
		min-height: auto;
	}
}
