/* Kuolindoulat-sivuperhe (lohtu-dla-).
   Lähde: Kuolindoulat-Desktop.dc.html. Desktop-first; jaetut komponentit
   (lohtu-section, lohtu-inner, lohtu-h2, napit, GF-lomakkeet) tulevat main.css:stä. */

.lohtu-dla-tiimi,
.lohtu-dla-varaa,
.lohtu-dla-hinnasto {
	scroll-margin-top: 96px;
}

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

.lohtu-dla-hero {
	background: var(--leaf-50);
	padding: 32px var(--lohtu-gutter) var(--lohtu-section-pad);
}

.lohtu-dla-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
	gap: 72px;
	align-items: center;
}

.lohtu-dla-hero__content {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.lohtu-dla-hero h1 {
	margin: 0;
	padding-top: 24px;
	font-family: var(--wp--preset--font-family--dm-serif-display, "DM Serif Display", serif);
	font-weight: 400;
	font-size: clamp(42px, 5.3vw, 68px);
	line-height: 1.04;
	color: var(--leaf-800);
}

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

.lohtu-dla-hero .wp-block-buttons {
	padding-top: 4px;
}

.lohtu-dla-hero__media {
	height: 540px;
	border-radius: var(--radius-xl);
	overflow: hidden;
	background: var(--sage-100);
}

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

/* ---------- Tiimi ---------- */

.lohtu-dla-tiimi {
	background: #fff;
}

.lohtu-dla-tiimi__head {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: 72px;
	align-items: end;
	margin-bottom: 56px;
}

.lohtu-dla-tiimi__intro {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.lohtu-dla-tiimi__lead {
	margin: 0;
	font-size: 19px;
	line-height: 1.55;
}

.lohtu-dla-tiimi__note {
	margin: 0;
	font-size: 16px;
	line-height: 1.5;
	color: var(--text-muted);
}

.lohtu-dla-badge {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 10px 18px;
	border-radius: var(--radius-pill);
	background: var(--leaf-50);
	color: var(--leaf-800);
	font-weight: 600;
	font-size: 16px;
}

.lohtu-dla-badge::before {
	content: "";
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%2354872B" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>') no-repeat center / contain;
}

.lohtu-dla-grid-label {
	margin: 0 0 24px;
	font-family: inherit;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--leaf-800);
}

/* ---------- Doulakortit (lohtu/doula-directory) ---------- */

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

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

.lohtu-dla-card__photo {
	margin: 0;
	height: 240px;
	background: var(--sage-100);
}

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

.lohtu-dla-card__photo--initials,
.lohtu-dla-modal__media {
	display: flex;
	align-items: center;
	justify-content: center;
}

.lohtu-dla-card__photo--initials span,
.lohtu-dla-modal__initials {
	font-family: var(--wp--preset--font-family--dm-serif-display, "DM Serif Display", serif);
	font-weight: 400;
	font-size: 64px;
	line-height: 1;
	color: var(--leaf-500);
}

.lohtu-dla-card__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
	padding: 20px 20px 22px;
}

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

.lohtu-dla-card__city {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	font-size: 15px;
	font-weight: 600;
}

.lohtu-dla-card__city svg {
	flex-shrink: 0;
	color: var(--leaf-500);
}

.lohtu-dla-card__skills {
	margin: 0;
	font-size: 14px;
	line-height: 1.45;
	color: #3D3A36;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.lohtu-dla-card__areas {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-top: auto;
	padding-top: 6px;
	font-size: 13px;
	line-height: 1.4;
	color: var(--text-muted);
}

.lohtu-dla-card__actions {
	display: flex;
	gap: 8px;
	padding-top: 8px;
}

/* Kortin ja modaalin napit (eivät wp:button-lohkoja) */

.lohtu-dla-btn {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 1;
	min-height: 44px;
	padding: 8px 12px;
	border: 0;
	border-radius: var(--radius-pill);
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.lohtu-dla-btn--ghost {
	background: #fff;
	color: var(--leaf-800);
	box-shadow: inset 0 0 0 1px var(--leaf-500);
}

.lohtu-dla-btn--ghost:hover {
	background: var(--sage-100);
}

.lohtu-dla-btn--solid {
	background: var(--leaf-500);
	color: #fff;
}

.lohtu-dla-btn--solid:hover {
	background: var(--leaf-400);
	color: #fff;
}

.lohtu-dla-btn--lg {
	flex: 0 0 auto;
	align-self: flex-start;
	min-height: 56px;
	padding: 16px 28px;
	font-size: 18px;
}

/* ---------- Esittelymodaali ---------- */

.lohtu-dla-modal {
	width: 880px;
	max-width: calc(100vw - 40px);
	max-height: calc(100vh - 80px);
	margin: auto;
	padding: 0;
	border: 0;
	border-radius: var(--radius-xl);
	background: #fff;
	overflow: hidden;
}

.lohtu-dla-modal::backdrop {
	background: rgba(27, 29, 24, 0.6);
}

.lohtu-dla-modal__layout {
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr);
}

.lohtu-dla-modal__media {
	position: relative;
	background: var(--sage-100);
	min-height: 100%;
}

.lohtu-dla-modal__photo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.lohtu-dla-modal__content {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 36px 40px;
	overflow: auto;
	max-height: calc(100vh - 80px);
}

.lohtu-dla-modal__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
}

.lohtu-dla-modal__name {
	margin: 0;
	font-family: var(--wp--preset--font-family--dm-serif-display, "DM Serif Display", serif);
	font-weight: 400;
	font-size: clamp(30px, 3.2vw, 40px);
	line-height: 1.05;
	color: var(--leaf-800);
}

.lohtu-dla-modal__close {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border: 0;
	border-radius: var(--radius-pill);
	background: var(--leaf-50);
	color: var(--leaf-800);
	cursor: pointer;
}

.lohtu-dla-modal__close:hover {
	background: var(--sage-100);
}

.lohtu-dla-modal__meta {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 15px;
	line-height: 1.4;
	color: var(--text-muted);
}

.lohtu-dla-modal__meta strong {
	font-size: 16px;
	font-weight: 600;
	color: #1B1D18;
}

.lohtu-dla-modal__skills {
	margin: 0;
	padding: 14px 18px;
	border-radius: 14px;
	background: var(--leaf-50);
	font-size: 16px;
	line-height: 1.5;
}

.lohtu-dla-modal__bio {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.lohtu-dla-modal__bio p {
	margin: 0;
	font-size: 17px;
	line-height: 1.65;
}

.lohtu-dla-modal__book {
	margin-top: 8px;
}

/* ---------- Varaa aika ---------- */

.lohtu-dla-varaa {
	background: var(--leaf-50);
}

.lohtu-dla-varaa__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 72px;
	align-items: start;
}

.lohtu-dla-varaa__intro {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.lohtu-dla-varaa__lead {
	margin: 0;
	font-size: 19px;
	line-height: 1.55;
}

.lohtu-dla-varaa__link {
	margin: 0;
}

.lohtu-dla-down-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	font-size: 17px;
	color: var(--leaf-800);
	text-decoration: none;
}

.lohtu-dla-down-link:hover {
	color: var(--leaf-500);
}

.lohtu-dla-down-link::after {
	content: "";
	width: 18px;
	height: 18px;
	background: var(--icon-chevron) no-repeat center / contain;
}

.lohtu-dla-form-card {
	padding: 40px;
	border-radius: 24px;
	background: #fff;
}

/* ---------- Hinnasto ---------- */

.lohtu-dla-hinnasto {
	background: #fff;
}

.lohtu-dla-hinnasto__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 48px;
	flex-wrap: wrap;
	margin-bottom: 48px;
}

.lohtu-dla-hinnasto__note {
	margin: 0;
	font-size: 15px;
	color: var(--text-muted);
}

.lohtu-dla-price-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	align-items: start;
}

.lohtu-dla-price-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 32px;
	border-radius: 20px;
	background: var(--leaf-50);
}

.lohtu-dla-price-card h3 {
	margin: 0;
	font-family: var(--wp--preset--font-family--dm-serif-display, "DM Serif Display", serif);
	font-weight: 400;
	font-size: 30px;
	line-height: 1.1;
	color: var(--leaf-800);
}

.lohtu-dla-price-card__desc {
	margin: 0;
	font-size: 17px;
	color: #3D3A36;
}

.lohtu-dla-price-card__price {
	margin: 0;
	padding-top: 8px;
	font-family: var(--wp--preset--font-family--dm-serif-display, "DM Serif Display", serif);
	font-size: 56px;
	line-height: 1;
	color: var(--leaf-800);
}

.lohtu-dla-price-rows {
	display: flex;
	flex-direction: column;
	border-top: 1px solid var(--sage-200);
}

.lohtu-dla-prow {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	margin: 0;
	padding: 14px 0;
	border-bottom: 1px solid var(--sage-200);
	font-size: 17px;
	line-height: 1.4;
}

.lohtu-dla-prow > span {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.lohtu-dla-prow strong {
	font-weight: 600;
	white-space: nowrap;
}

.lohtu-dla-prow__note {
	font-size: 14px;
	color: var(--text-muted);
}

/* Pakettien "Miten tapaaminen toimii?" -haitari */

.lohtu-dla-info {
	margin: 0;
}

.lohtu-dla-info summary {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 52px;
	padding: 8px 0;
	list-style: none;
	cursor: pointer;
	font-size: 17px;
	font-weight: 600;
	color: var(--leaf-800);
}

.lohtu-dla-info summary::-webkit-details-marker {
	display: none;
}

.lohtu-dla-info summary::after {
	content: "";
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	background: var(--icon-chevron) no-repeat center / contain;
	transition: transform 0.2s ease;
}

.lohtu-dla-info[open] summary::after {
	transform: rotate(180deg);
}

.lohtu-dla-info > :not(summary) {
	margin: 0 0 10px;
	font-size: 16px;
	line-height: 1.55;
}

/* ---------- CTA-nauha ---------- */

.lohtu-dla-cta {
	background: var(--leaf-800);
	padding: clamp(56px, 7vw, 96px) var(--lohtu-gutter);
}

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

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

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

.lohtu-dla-cta p {
	margin: 0;
	font-size: 20px;
	line-height: 1.5;
	color: var(--sage-100);
}

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

@media (max-width: 1100px) {
	.lohtu-dla-hero__grid,
	.lohtu-dla-tiimi__head,
	.lohtu-dla-varaa__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
	}

	.lohtu-dla-hero__media {
		height: 360px;
	}

	.lohtu-dla-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

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

	.lohtu-dla-cta__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}
}

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

	.lohtu-dla-hero h1 {
		padding-top: 8px;
	}

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

	.lohtu-dla-form-card {
		padding: 28px 20px;
	}

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

	.lohtu-dla-modal__media {
		display: none;
	}

	.lohtu-dla-modal__content {
		padding: 24px 20px;
	}
}
