/*
Theme Name: Hierontapisara
Description: Hierontapisaran muistosivuston teema (Twenty Twenty-Five -lapsiteema).
Author: Hierontapisara
Template: twentytwentyfive
Version: 1.0.1
Requires at least: 6.7
Requires PHP: 8.1
Text Domain: hierontapisara
*/

:root {
	--hp-radius: 22px;
	--hp-section: clamp(64px, 9vw, 112px);
	--hp-shadow: 0 18px 40px rgba(61, 58, 53, 0.08);
}

.wp-site-blocks > * + * { margin-block-start: 0; }
.wp-block-post-content > .alignfull { margin-block-start: 0; margin-block-end: 0; }

/* ---------- Header ---------- */
.site-header { padding-top: 18px !important; padding-bottom: 18px !important; border-bottom: 1px solid var(--wp--preset--color--border); }
.site-header__inner { gap: 16px 28px; }
.site-header .wp-block-site-logo img { width: auto; height: 42px; }
@media (max-width: 600px) { .site-header .wp-block-site-logo img { height: 34px; } }

/* ---------- Common ---------- */
.section { padding-top: var(--hp-section) !important; padding-bottom: var(--hp-section) !important; }
.section--tight { padding-top: calc(var(--hp-section) * .6) !important; }
.eyebrow {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--sage);
	margin-bottom: .25rem;
}
.lead { font-size: 1.2rem; color: var(--wp--preset--color--muted); max-width: 560px; }
.script {
	font-family: var(--wp--preset--font-family--heading);
	font-style: italic;
	color: var(--wp--preset--color--rose);
}
.text-muted { color: var(--wp--preset--color--muted); }
.center { text-align: center; margin-left: auto !important; margin-right: auto !important; }

/* Pieni lehtikoriste otsikoiden yläpuolella */
.leaf::before {
	content: "";
	display: block;
	width: 38px; height: 22px;
	margin: 0 auto 14px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 76 44' fill='none' stroke='%235A6E4F' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M38 40C38 24 30 10 14 4c0 16 8 30 24 36zM38 40c0-16 8-30 24-36 0 16-8 30-24 36z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Hero ---------- */
.hero__columns { gap: clamp(32px, 6vw, 72px) !important; align-items: center !important; }
.hero__image { margin: 0 !important; }
.hero__image img {
	width: 100%;
	height: clamp(300px, 40vw, 520px);
	object-fit: cover;
	border-radius: 240px 240px var(--hp-radius) var(--hp-radius);
	box-shadow: var(--hp-shadow);
}
.hero h1 { margin-top: 0; }

/* ---------- Hoitokortit ---------- */
.treatments { display: flex !important; flex-wrap: wrap; justify-content: center; gap: 28px; }
.treatments > .treatment { flex: 0 1 330px; }
.treatment {
	background: var(--wp--preset--color--base);
	border-radius: var(--hp-radius);
	overflow: hidden;
	box-shadow: var(--hp-shadow);
	display: flex;
	flex-direction: column;
	transition: transform .2s ease, box-shadow .2s ease;
}
.treatment:hover { transform: translateY(-3px); box-shadow: 0 24px 48px rgba(61, 58, 53, 0.12); }
.treatment .wp-block-image { margin: 0 !important; }
.treatment .wp-block-image img { width: 100%; height: 190px; object-fit: cover; display: block; }
.treatment__body { padding: 22px 24px 26px !important; flex-grow: 1; }
.treatment h3 { margin: 0 0 .4rem; font-size: 1.65rem; }
.treatment h3 a { color: var(--wp--preset--color--contrast); text-decoration: none; }
.treatment h3 a::after { content: ""; position: absolute; inset: 0; }
.treatment { position: relative; }
.treatment p { margin: 0; color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); }

/* ---------- Lainaus ---------- */
.quote-band blockquote, .quote-band p.quote {
	font-family: var(--wp--preset--font-family--heading);
	font-style: italic;
	font-size: clamp(1.8rem, 3.6vw, 2.6rem);
	line-height: 1.3;
	color: var(--wp--preset--color--contrast);
	max-width: 760px;
	margin: 0 auto;
	text-align: center;
}

/* ---------- Hoitosivu ---------- */
.treatment-page__image img {
	width: 100%;
	border-radius: var(--hp-radius);
	box-shadow: var(--hp-shadow);
	aspect-ratio: 4 / 3;
	object-fit: cover;
}
.treatment-page__image { margin: 0 !important; }
.memory-box {
	background: var(--wp--preset--color--cream);
	border-radius: var(--hp-radius);
	padding: 26px 28px !important;
	border-left: 4px solid var(--wp--preset--color--sage-light);
}
.memory-box h3 { margin-top: 0; font-size: 1.5rem; }
.memory-box p { margin-bottom: 0; color: var(--wp--preset--color--muted); }
.other-treatments { gap: 10px 22px !important; }
.other-treatments a { font-weight: 600; text-decoration: none; }
.other-treatments a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { text-align: center; }
.site-footer .wp-block-image img { height: 46px; width: auto; }
.site-footer .wp-block-image { margin-left: auto; margin-right: auto; }
.site-footer p { color: var(--wp--preset--color--muted); margin: .25rem 0; }

.treatment-page__text h2 { font-size: var(--wp--preset--font-size--x-large); margin-top: 1.6rem; }
.treatment-page__text h2:first-child { margin-top: 0; }
.others { border-top: 1px solid var(--wp--preset--color--border); }
.other-treatments { line-height: 2.1; }
