/* ==========================================================================
   Avoin hinnasto (lohtu/page-hinnasto) — AvoinHinnasto-Desktop artboard
   ========================================================================== */

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

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

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

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

p.lohtu-hin-eyebrow {
	font-size: 16px;
	font-weight: 600;
	color: var(--leaf-800);
	margin: 0;
}

.lohtu-hin-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;
}

p.lohtu-hin-lead {
	font-size: 22px;
	line-height: 1.5;
	max-width: 560px;
	margin: 0;
	text-wrap: pretty;
}

.lohtu-hin-hero__actions {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	padding-top: 4px;
}

.lohtu-hin-summary {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 36px;
	border-radius: 24px;
	background: #fff;
}

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

.lohtu-hin-summary p {
	font-size: 19px;
	line-height: 1.6;
	margin: 0;
}

/* ---------- Body: TOC + sections ---------- */

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

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

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

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

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

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

.lohtu-hin-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-hin-toc__list li a:hover {
	color: var(--leaf-500);
}

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

.lohtu-hin-sections {
	display: flex;
	flex-direction: column;
	gap: clamp(56px, 7vw, 80px);
}

.lohtu-hin-block {
	display: flex;
	flex-direction: column;
	gap: 20px;
	scroll-margin-top: 120px;
}

.lohtu-hin-block h2 {
	font-family: var(--wp--preset--font-family--dm-serif-display, "DM Serif Display", Georgia, serif);
	font-weight: 400;
	font-size: clamp(32px, 3.6vw, 44px);
	line-height: 1.05;
	color: var(--leaf-800);
	margin: 0;
}

.lohtu-hin-block > p {
	font-size: 19px;
	line-height: 1.6;
	margin: 0;
}

/* Big price row: serif price + muted note on one baseline */

p.lohtu-hin-price {
	display: flex;
	align-items: baseline;
	gap: 16px;
	margin: 0;
	font-size: 17px;
	color: var(--text-muted);
}

.lohtu-hin-price strong {
	font-family: var(--wp--preset--font-family--dm-serif-display, "DM Serif Display", Georgia, serif);
	font-weight: 400;
	font-size: clamp(44px, 5vw, 64px);
	line-height: 1;
	color: var(--leaf-800);
}

/* ---------- Package cards ---------- */

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

.lohtu-hin-pkg {
	display: flex;
	flex-direction: column;
	border-radius: var(--radius-card);
	overflow: hidden;
	background: var(--leaf-50);
}

.lohtu-hin-pkg__img {
	margin: 0;
	height: 140px;
	background: var(--green-header);
}

.lohtu-hin-pkg__img img {
	width: 100%;
	height: 140px;
	object-fit: cover;
	display: block;
}

.lohtu-hin-pkg__body {
	padding: 20px 24px 24px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

p.lohtu-hin-pkg__name {
	font-size: 16px;
	font-weight: 600;
	margin: 0;
}

p.lohtu-hin-pkg__price {
	font-family: var(--wp--preset--font-family--dm-serif-display, "DM Serif Display", Georgia, serif);
	font-size: 36px;
	line-height: 1.05;
	color: var(--leaf-800);
	margin: 0;
}

/* ---------- Price tables ---------- */

.lohtu-hin-tableblock {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

p.lohtu-hin-cap {
	font-size: 17px;
	font-weight: 600;
	margin: 0;
}

figure.lohtu-hin-table {
	margin: 0;
}

.lohtu-hin-table table {
	width: 100%;
	border-collapse: collapse;
	border: 0;
	border-top: 1px solid var(--sage-200);
	font-size: 17px;
}

.lohtu-hin-table td {
	border: 0;
	border-bottom: 1px solid #EDEBEB;
	padding: 16px 16px 16px 0;
	vertical-align: baseline;
	text-align: left;
}

.lohtu-hin-table td:last-child {
	padding-right: 0;
	text-align: right;
	font-weight: 600;
	white-space: nowrap;
	width: 1%;
}

.lohtu-hin-table--products table {
	font-size: 16px;
}

.lohtu-hin-table--products td {
	padding-top: 14px;
	padding-bottom: 14px;
}

.lohtu-hin-products {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 40px 48px;
}

p.lohtu-hin-note {
	font-size: 16px;
	line-height: 1.55;
	color: var(--text-muted);
	margin: 0;
}

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

.lohtu-hin-cta {
	background: var(--leaf-800);
	padding: 96px var(--lohtu-gutter);
}

.lohtu-hin-cta__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: clamp(32px, 5vw, 64px);
	align-items: center;
}

.lohtu-hin-cta__content {
	display: flex;
	flex-direction: column;
	gap: 16px;
	max-width: 680px;
}

.lohtu-hin-cta h2 {
	font-family: var(--wp--preset--font-family--dm-serif-display, "DM Serif Display", Georgia, serif);
	font-weight: 400;
	font-size: clamp(36px, 4vw, 52px);
	line-height: 1.05;
	color: #fff;
	margin: 0;
}

.lohtu-hin-cta__content p {
	font-size: 20px;
	line-height: 1.5;
	color: var(--sage-100);
	margin: 0;
	text-wrap: pretty;
}

.lohtu-hin-cta__actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.lohtu-hin-cta__actions .wp-block-button__link {
	width: 100%;
}

/* White button on the dark band: no hairline ring */
.lohtu-hin-cta .lohtu-btn--secondary > .wp-block-button__link {
	box-shadow: none;
}

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

/* Ghost button: transparent, white text, white hairline ring */
.lohtu-hin-btn--ghost > .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 56px;
	padding: 16px 28px;
	border-radius: var(--radius-pill);
	border: 0;
	font-family: inherit;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.15s ease;
	cursor: pointer;
	background: transparent;
	color: #fff;
	box-shadow: inset 0 0 0 1px #fff;
}

.lohtu-hin-btn--ghost > .wp-block-button__link:hover {
	background: var(--sage-700);
	color: #fff;
}

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

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

	.lohtu-hin-body {
		padding-top: 64px;
		padding-bottom: 72px;
	}

	.lohtu-hin-body__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 48px;
	}

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

	.lohtu-hin-cta__grid {
		grid-template-columns: minmax(0, 1fr);
		align-items: start;
	}

	.lohtu-hin-cta__actions {
		flex-direction: row;
		flex-wrap: wrap;
	}

	.lohtu-hin-cta__actions .wp-block-button__link {
		width: auto;
	}
}

@media (max-width: 700px) {
	.lohtu-hin-hero {
		padding-top: 18px;
		padding-bottom: 56px;
	}

	.lohtu-hin-summary {
		padding: 24px;
	}

	.lohtu-hin-pkgs {
		grid-template-columns: minmax(0, 1fr);
	}

	.lohtu-hin-products {
		grid-template-columns: minmax(0, 1fr);
	}

	.lohtu-hin-cta {
		padding-top: 64px;
		padding-bottom: 64px;
	}

	.lohtu-hin-cta__actions {
		flex-direction: column;
	}

	.lohtu-hin-cta__actions > .wp-block-button {
		width: 100%;
	}

	.lohtu-hin-cta__actions .wp-block-button__link {
		width: 100%;
	}
}
