/* Muut palvelut -sivuperhe (lohtu-pal-): 11 /tuotteet/-alasivua.
   Lähde: Palvelu*-Desktop.dc.html (mobiili: Palvelu*.dc.html). Desktop-first;
   jaetut komponentit (lohtu-section, lohtu-inner, lohtu-h2, napit, murupolku,
   lohtu-checklist) tulevat main.css:stä. */

/* WP:n flow-layout lisää margin-block-startin lohkojen väliin — nollaa omissa
   flex/grid-kontainereissa (välit gapeilla). */
.lohtu-pal-hero__grid > *,
.lohtu-pal-hero__body > *,
.lohtu-pal-narrow > * {
	margin-block-start: 0;
}

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

.lohtu-pal-hero {
	background: var(--green-header);
	padding: 40px var(--lohtu-gutter) var(--lohtu-section-pad);
}

.lohtu-inner.lohtu-pal-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
	gap: clamp(40px, 5.5vw, 72px);
	align-items: center;
}

/* Vaalea murupolku tummalla herolla (spännää gridin main.css:n kautta) */
.lohtu-pal-hero .lohtu-breadcrumbs {
	color: var(--sage-200);
	margin-bottom: 6px;
}

.lohtu-pal-hero .lohtu-breadcrumbs a {
	color: #fff;
}

.lohtu-pal-hero .lohtu-breadcrumbs a:hover {
	color: var(--sage-100);
}

.lohtu-pal-hero .lohtu-breadcrumbs .sep {
	color: var(--sage-500);
}

.lohtu-pal-hero__body {
	display: flex;
	flex-direction: column;
	gap: 24px;
	align-items: flex-start;
}

.lohtu-pal-kicker {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	color: #C6E0A9;
}

.lohtu-pal-hero h1 {
	margin: 0;
	font-family: var(--wp--preset--font-family--dm-serif-display, "DM Serif Display", serif);
	font-weight: 400;
	font-size: clamp(36px, 4.7vw, 60px);
	line-height: 1.06;
	color: #fff;
	text-wrap: balance;
}

.lohtu-pal-hero__lead {
	margin: 0;
	font-size: clamp(18px, 1.8vw, 21px);
	line-height: 1.5;
	color: var(--sage-100);
	max-width: 560px;
	text-wrap: pretty;
}

.lohtu-pal-hero .wp-block-buttons {
	margin-top: 8px;
}

figure.lohtu-pal-hero__media {
	margin: 0;
	height: 520px;
	border-radius: var(--radius-xl);
	overflow: hidden;
}

.lohtu-pal-hero__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Kuvapaikka ilman mediakirjaston kuvaa (sage-placeholder) */
div.lohtu-pal-hero__media--ph {
	height: 520px;
	border-radius: var(--radius-xl);
	background: var(--sage-200);
}

/* ---------- Sisältöosiot (kapea 860px palsta, vuorottelevat taustat) ---------- */

.lohtu-pal-body {
	background: #fff;
}

.lohtu-pal-body--tint {
	background: var(--leaf-50);
}

.lohtu-inner.lohtu-pal-narrow {
	max-width: 860px;
	display: flex;
	flex-direction: column;
	gap: 20px;
	align-items: flex-start;
}

.lohtu-h2.lohtu-pal-h2 {
	max-width: none;
	font-size: clamp(30px, 3.4vw, 44px);
	line-height: 1.08;
	text-wrap: balance;
}

.lohtu-pal-narrow > p {
	margin: 0;
	font-size: 19px;
	line-height: 1.6;
	text-wrap: pretty;
}

p.lohtu-pal-note {
	font-size: 16px;
	line-height: 1.5;
	color: var(--text-muted);
}

.lohtu-pal-checks {
	gap: 12px;
	padding: 0;
}

/* ---------- Hintataulukko (pyöristetty kortti, rivi per palvelu) ---------- */

figure.lohtu-pal-price {
	margin: 0;
	width: 100%;
	padding: 8px 28px;
	border-radius: 20px;
	background: var(--leaf-50);
}

.lohtu-pal-body--tint .lohtu-pal-price {
	background: #fff;
}

.lohtu-pal-price table {
	width: 100%;
	border-collapse: collapse;
	border: 0;
	font-size: 18px;
}

.lohtu-pal-price td {
	border: 0;
	padding: 18px 0;
	vertical-align: baseline;
	text-align: left;
}

.lohtu-pal-price tr + tr td {
	border-top: 1px solid var(--sage-200);
}

.lohtu-pal-price td:last-child {
	padding-left: 24px;
	text-align: right;
	font-weight: 600;
}

/* ---------- Tuotteet ja palvelut -koontisivun korttikuvat ----------
   (lohtu-tuo-other__media on tuotteet.css:ssä; kuvan täyttösäännöt tässä,
   koska kuvat lisättiin kortteihin tämän perheen yhteydessä.) */

.lohtu-tuo-other__media .wp-block-image {
	margin: 0;
	height: 100%;
}

.lohtu-tuo-other__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 14px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
	.lohtu-inner.lohtu-pal-hero__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	/* Mobiiliartboard: murupolku, kuva, kicker + otsikko + nappi */
	.lohtu-pal-hero .lohtu-breadcrumbs {
		order: -2;
	}

	.lohtu-pal-hero__media {
		order: -1;
	}

	figure.lohtu-pal-hero__media,
	div.lohtu-pal-hero__media--ph {
		height: 340px;
	}
}

@media (max-width: 700px) {
	.lohtu-pal-hero {
		padding-top: 20px;
	}

	figure.lohtu-pal-hero__media,
	div.lohtu-pal-hero__media--ph {
		height: 220px;
		border-radius: var(--radius-card);
	}

	figure.lohtu-pal-price {
		padding: 6px 20px;
	}

	.lohtu-pal-price table {
		font-size: 16px;
	}

	.lohtu-pal-price td {
		padding: 14px 0;
	}
}
