/* ==========================================================================
   Tuotteet ja palvelut (lohtu/page-tuotteet) — Tuotteet-Desktop artboard
   ========================================================================== */

/* ---------- Hero ---------- */

.lohtu-tuo-hero {
	background: var(--leaf-50);
	padding: 32px var(--lohtu-gutter) 96px;
}

.lohtu-tuo-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
	gap: clamp(40px, 5vw, 72px);
	align-items: end;
	padding-top: 24px;
}

.lohtu-tuo-hero h1 {
	font-family: var(--wp--preset--font-family--dm-serif-display, "DM Serif Display", Georgia, serif);
	font-weight: 400;
	font-size: clamp(44px, 6vw, 76px);
	line-height: 1;
	color: var(--leaf-800);
	margin: 0;
}

.lohtu-tuo-hero__aside {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

p.lohtu-tuo-hero__lead {
	font-size: 21px;
	line-height: 1.5;
	margin: 0;
	text-wrap: pretty;
}

p.lohtu-tuo-hero__note {
	font-size: 15px;
	color: var(--text-muted);
	margin: 0;
}

/* ---------- Shared section scaffolding ---------- */

.lohtu-tuo-services > .lohtu-inner,
.lohtu-tuo-cats > .lohtu-inner,
.lohtu-tuo-others > .lohtu-inner,
.lohtu-tuo-support > .lohtu-inner {
	display: flex;
	flex-direction: column;
	gap: 48px;
}

.lohtu-tuo-cats,
.lohtu-tuo-support {
	background: var(--leaf-50);
}

/* ---------- Palvelumme ---------- */

.lohtu-tuo-svc-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
}

.lohtu-tuo-svc {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.lohtu-tuo-svc figure.lohtu-tuo-svc__img {
	margin: 0 0 12px;
	height: 260px;
	border-radius: var(--radius-card);
	overflow: hidden;
	background: var(--green-header);
}

.lohtu-tuo-svc figure.lohtu-tuo-svc__img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.lohtu-tuo-svc h3 {
	font-family: var(--wp--preset--font-family--dm-serif-display, "DM Serif Display", Georgia, serif);
	font-weight: 400;
	font-size: 34px;
	line-height: 1.05;
	color: var(--leaf-800);
	margin: 0;
}

.lohtu-tuo-svc p {
	font-size: 18px;
	line-height: 1.5;
	margin: 0;
}

.lohtu-tuo-svc p:last-child {
	padding-top: 4px;
}

/* Stretch the arrow link over the whole card. */
.lohtu-tuo-svc .lohtu-arrow-link::before {
	content: "";
	position: absolute;
	inset: 0;
}

/* ---------- Tuotteet (category cards) ---------- */

.lohtu-tuo-cat-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

.lohtu-tuo-cat {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 12px 12px 24px;
	border-radius: 20px;
	background: #fff;
}

.lohtu-tuo-cat:hover {
	box-shadow: inset 0 0 0 2px var(--leaf-500);
}

.lohtu-tuo-cat figure.lohtu-tuo-cat__img {
	margin: 0 0 10px;
	height: 220px;
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
}

.lohtu-tuo-cat figure.lohtu-tuo-cat__img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.lohtu-tuo-cat h3 {
	font-family: var(--wp--preset--font-family--dm-serif-display, "DM Serif Display", Georgia, serif);
	font-weight: 400;
	font-size: 30px;
	line-height: 1.05;
	margin: 0;
	padding: 0 10px;
}

.lohtu-tuo-cat h3 a {
	color: var(--leaf-800);
	text-decoration: none;
}

/* Stretch the heading link over the whole card. */
.lohtu-tuo-cat h3 a::before {
	content: "";
	position: absolute;
	inset: 0;
}

.lohtu-tuo-cat p {
	font-size: 16px;
	line-height: 1.5;
	color: #3D3A36;
	margin: 0;
	padding: 0 10px;
}

/* ---------- Muut palvelut ---------- */

.lohtu-tuo-other-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.lohtu-tuo-other {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 12px 12px 24px;
	border-radius: 20px;
	background: var(--leaf-50);
}

.lohtu-tuo-other:hover {
	box-shadow: inset 0 0 0 2px var(--leaf-500);
}

.lohtu-tuo-other__media {
	height: 220px;
	border-radius: 14px;
	background: var(--sage-100);
	margin: 0 0 10px;
}

.lohtu-tuo-other h3 {
	font-family: var(--wp--preset--font-family--dm-serif-display, "DM Serif Display", Georgia, serif);
	font-weight: 400;
	font-size: 28px;
	line-height: 1.1;
	color: var(--leaf-800);
	margin: 0;
	padding: 0 10px;
}

.lohtu-tuo-other p {
	font-size: 16px;
	line-height: 1.5;
	color: #3D3A36;
	margin: 0;
	padding: 0 10px;
}

.lohtu-tuo-other p:last-child {
	padding-top: 6px;
}

.lohtu-tuo-other .lohtu-arrow-link {
	font-size: 16px;
}

.lohtu-tuo-other .lohtu-arrow-link::after {
	width: 16px;
	height: 16px;
}

/* Stretch the arrow link over the whole card. */
.lohtu-tuo-other .lohtu-arrow-link::before {
	content: "";
	position: absolute;
	inset: 0;
}

/* ---------- Tukea suruun ---------- */

.lohtu-tuo-sup-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

.lohtu-tuo-sup {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 32px;
	border-radius: 20px;
	background: #fff;
}

.lohtu-tuo-sup:hover {
	box-shadow: inset 0 0 0 2px var(--leaf-500);
}

.lohtu-tuo-sup h3 {
	font-family: var(--wp--preset--font-family--dm-serif-display, "DM Serif Display", Georgia, serif);
	font-weight: 400;
	font-size: 26px;
	line-height: 1.15;
	color: var(--leaf-800);
	margin: 0;
}

.lohtu-tuo-sup p {
	font-size: 16px;
	line-height: 1.5;
	color: #3D3A36;
	margin: 0;
}

.lohtu-tuo-sup p:nth-of-type(1) {
	flex: 1;
}

.lohtu-tuo-sup p:last-child {
	padding-top: 8px;
}

.lohtu-tuo-sup .lohtu-arrow-link {
	font-size: 16px;
}

/* Stretch the arrow link over the whole card. */
.lohtu-tuo-sup .lohtu-arrow-link::before {
	content: "";
	position: absolute;
	inset: 0;
}

/* ---------- Breakpoints ---------- */

@media (max-width: 1100px) {
	.lohtu-tuo-hero__grid {
		grid-template-columns: minmax(0, 1fr);
		align-items: start;
	}

	.lohtu-tuo-svc-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
	}

	.lohtu-tuo-cat-grid,
	.lohtu-tuo-other-grid,
	.lohtu-tuo-sup-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 700px) {
	.lohtu-tuo-hero {
		padding: 24px var(--lohtu-gutter) 64px;
	}

	.lohtu-tuo-cat-grid,
	.lohtu-tuo-other-grid,
	.lohtu-tuo-sup-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.lohtu-tuo-svc figure.lohtu-tuo-svc__img,
	.lohtu-tuo-cat figure.lohtu-tuo-cat__img,
	.lohtu-tuo-other__media {
		height: 200px;
	}
}
