/* Tuotekategoriat — page family (Tuote/Uurnat/Arkkulaitteet/Arkkuvaatteet-Desktop artboards).
   lohtu-prod-* = shared layout for the four product category pages:
   hero (eyebrow pill, h1, updated-meta line), body grid (sticky numbered TOC + article
   column), Lyhyesti brief box, anchored content sections, planner CTA band, in-article
   FAQ and Katso myös related strip. Product cards themselves are rendered by the
   lohtu/product-grid dynamic block and styled in main.css. */

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

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

.lohtu-prod-hero > .lohtu-inner {
	display: flex;
	flex-direction: column;
	gap: 24px;
	align-items: flex-start;
}

p.lohtu-prod-eyebrow {
	margin: 24px 0 0;
	padding: 6px 14px;
	border-radius: var(--radius-pill);
	background: #fff;
	color: var(--leaf-800);
	font-weight: 600;
	font-size: 14px;
}

.lohtu-prod-hero h1 {
	font-family: var(--wp--preset--font-family--dm-serif-display, "DM Serif Display", Georgia, serif);
	font-weight: 400;
	font-size: clamp(40px, 5vw, 64px);
	line-height: 1.04;
	color: var(--leaf-800);
	max-width: 920px;
	margin: 0;
	text-wrap: balance;
}

p.lohtu-prod-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 0;
	font-size: 15px;
	color: var(--text-muted);
}

p.lohtu-prod-meta::before {
	content: "";
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%234A4A4A" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="9"/><path d="M12 7v5l3 3"/></svg>') no-repeat center / contain;
}

/* ---------- Body: sticky TOC + article ---------- */

.lohtu-prod-body {
	background: #fff;
	padding: 72px var(--lohtu-gutter) 112px;
}

.lohtu-prod-body__grid {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: clamp(40px, 6vw, 80px);
	align-items: start;
}

.lohtu-prod-toc {
	position: sticky;
	top: 120px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

p.lohtu-prod-toc__label {
	font-size: 15px;
	font-weight: 600;
	color: var(--text-muted);
	margin: 0;
	padding: 0 0 12px;
}

ol.lohtu-prod-toc__list {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: prod-toc;
}

.lohtu-prod-toc__list li {
	counter-increment: prod-toc;
	margin: 0;
	border-top: 1px solid #EDEBEB;
}

.lohtu-prod-toc__list li a {
	display: flex;
	gap: 14px;
	align-items: baseline;
	padding: 10px 0;
	color: var(--leaf-800);
	text-decoration: none;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;
}

.lohtu-prod-toc__list li a:hover {
	color: var(--leaf-500);
}

.lohtu-prod-toc__list li a::before {
	content: "0" counter(prod-toc);
	font-size: 13px;
	font-weight: 600;
	color: var(--text-muted);
}

.lohtu-prod-article {
	display: flex;
	flex-direction: column;
	gap: 40px;
	max-width: 780px;
}

/* ---------- Lyhyesti brief box ---------- */

.lohtu-prod-brief {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 32px 36px;
	border-radius: 20px;
	background: var(--leaf-50);
}

p.lohtu-prod-brief__label {
	font-size: 15px;
	font-weight: 600;
	color: var(--leaf-800);
	margin: 0;
}

.lohtu-prod-brief p:not(.lohtu-prod-brief__label) {
	font-size: 19px;
	line-height: 1.65;
	margin: 0;
}

/* ---------- Content sections (01–03) ---------- */

.lohtu-prod-section {
	display: flex;
	flex-direction: column;
	gap: 18px;
	scroll-margin-top: 120px;
}

.lohtu-prod-section h2,
.lohtu-prod-faq h2,
.lohtu-prod-related h2 {
	font-family: var(--wp--preset--font-family--dm-serif-display, "DM Serif Display", Georgia, serif);
	font-weight: 400;
	font-size: clamp(30px, 3.2vw, 40px);
	line-height: 1.08;
	color: var(--leaf-800);
	margin: 8px 0 0;
}

.lohtu-prod-section > p {
	font-size: 19px;
	line-height: 1.65;
	margin: 0;
}

/* ALV note under the "Valikoima ja hinnat" heading */
.lohtu-prod-section > p.lohtu-prod-alv {
	font-size: 15px;
	line-height: 1.5;
	color: var(--text-muted);
	margin: -8px 0 0;
}

/* ---------- Planner CTA band ---------- */

.lohtu-prod-cta {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 40px;
	border-radius: 24px;
	background: var(--leaf-800);
	margin: 16px 0;
}

.lohtu-prod-cta h3 {
	font-family: var(--wp--preset--font-family--dm-serif-display, "DM Serif Display", Georgia, serif);
	font-weight: 400;
	font-size: clamp(26px, 2.8vw, 34px);
	line-height: 1.1;
	color: #fff;
	margin: 0;
}

.lohtu-prod-cta p {
	font-size: 18px;
	line-height: 1.55;
	color: var(--sage-100);
	margin: 0;
	max-width: 620px;
}

.lohtu-prod-cta .wp-block-buttons {
	margin-top: 6px;
}

.lohtu-prod-cta .lohtu-btn--secondary > .wp-block-button__link {
	background: #fff;
	color: var(--leaf-800);
	box-shadow: none;
	min-height: 56px;
	padding: 16px 28px;
	font-size: 18px;
}

.lohtu-prod-cta .lohtu-btn--secondary > .wp-block-button__link:hover {
	background: var(--sage-100);
	color: var(--leaf-800);
}

/* ---------- FAQ (in-article) ---------- */

.lohtu-prod-faq {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 24px;
}

/* ---------- Katso myös related strip ---------- */

.lohtu-prod-related {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-top: 24px;
}

.lohtu-prod-related__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.lohtu-prod-related__card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 24px;
	border-radius: 18px;
	background: var(--leaf-50);
}

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

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

.lohtu-prod-related__card > p:last-child {
	margin: auto 0 0;
	padding-top: 14px;
}

.lohtu-prod-related__card .lohtu-arrow-link {
	font-size: 15px;
}

.lohtu-prod-related__card .lohtu-arrow-link::after {
	width: 16px;
	height: 16px;
}

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

@media (max-width: 1100px) {
	.lohtu-prod-body {
		padding: 56px var(--lohtu-gutter) 88px;
	}

	.lohtu-prod-body__grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.lohtu-prod-toc {
		position: static;
		padding: 16px 18px;
		border-radius: 14px;
		box-shadow: inset 0 0 0 1px var(--stone-300);
	}

	.lohtu-prod-article {
		max-width: none;
	}
}

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

	.lohtu-prod-body {
		padding: 48px var(--lohtu-gutter) 72px;
	}

	/* Mobile artboard drops the table of contents entirely. */
	.lohtu-prod-toc {
		display: none;
	}

	.lohtu-prod-article {
		gap: 32px;
	}

	.lohtu-prod-brief {
		padding: 24px;
	}

	.lohtu-prod-cta {
		padding: 28px 24px;
	}

	.lohtu-prod-related__grid {
		grid-template-columns: 1fr;
	}
}
