@view-transition {
	navigation: auto;
}

/* palvelut → service page: palvelut stays still, service slides up */
.back-transition::view-transition-old(root) {
	animation: none;
}

.back-transition::view-transition-new(root) {
	animation-name: slide-from-down;
}

/* ============================================================
   Service page hero
   ============================================================ */

.palveluHeroSection {
	background-color: transparent;
	padding-bottom: 0;
	justify-content: center;
}

.palveluCardSection {
	background-image:
		linear-gradient(to top, transparent, rgb(255, 249, 240) 90%),
		url(/IMG/adara_meistatest_opacity50.png);
	background-size: cover;
	background-position: top;
	background-color: transparent;
	padding-bottom: 5%;
	padding-top: 5%;
	justify-content: center;
}

.palveluCardWrapper {
	position: relative;
	padding-top: 36px;
}

/* Back-peek tab (same pattern as profiili) */
.palveluBackPeek {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	background-color: linen;
	box-shadow: 0px 0px 2px rgb(100, 70, 40);
	border-radius: 5px 5px 0 0;
	padding-block: 8px;
	text-align: center;
	color: rgb(100, 70, 40);
	font-family: 'Alex Brush', cursive;
	font-size: clamp(1.25rem, 2vw, 1.6rem);
	font-weight: normal;
	text-decoration: none;
	opacity: 0.9;
	transition: opacity 0.2s, box-shadow 0.2s;
}

.palveluBackPeek:hover {
	opacity: 1;
	box-shadow: 0px 0px 4px rgb(100, 70, 40);
}

.palveluHeroCard {
	position: relative;
	z-index: 1;
	background-color: linen;
	border-radius: 0 0 5px 5px;
	box-shadow: 0px 0px 3px rgb(100, 70, 40);
	overflow: hidden;
}

.palveluHeroImage {
	width: 100%;
	height: 250px;
	object-fit: cover;
	display: block;
}

.palveluHeroText {
	padding: 1.5rem 2rem;
	text-align: center;
}

.palveluHeroText h1 {
	font-family: 'Alex Brush', cursive;
	text-shadow: 1px 1px 1px white;
	margin: 0 0 0.5rem 0;
}

.palveluHeroText p {
	margin: 0;
}

/* ============================================================
   Accordion (details/summary)
   ============================================================ */

.palveluAccordion {
	border-bottom: 1px solid rgba(100, 70, 40, 0.2);
	margin-bottom: 0;
}

.palveluAccordion:last-child {
	border-bottom: none;
}

.palveluAccordion summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
	padding: 0.5rem 0;
	list-style: none;
	user-select: none;
	transition: background-color 0.2s;
}

.palveluAccordion summary::-webkit-details-marker {
	display: none;
}

.palveluAccordion summary:hover {
	background-color: rgba(250, 240, 230, 0.5);
	border-radius: 5px;
}

.palveluAccordion summary h2 {
	margin: 0;
	font-family: 'Alex Brush', cursive;
	font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.accordionIcon {
	font-family: 'Alex Brush', cursive;
	font-size: 1.5rem;
	transition: transform 0.3s ease;
	flex-shrink: 0;
	margin-left: 1rem;
}

.palveluAccordion[open] .accordionIcon {
	transform: rotate(45deg);
}

.palveluAccordion summary h3 {
	margin: 0;
	font-family: 'Alex Brush', cursive;
	font-size: clamp(1.25rem, 2vw, 1.5rem);
}

.palveluAccordion .readMoreLabel {
	font-family: 'Alex Brush', cursive;
	font-size: clamp(1.1rem, 1.8vw, 1.3rem);
	color: rgb(100, 70, 40);
}

.palveluSection .palveluAccordion {
	border-bottom: none;
}

.palveluSection .palveluAccordion:last-child {
	border-bottom: none;
}

/* Smooth open/close animation using grid trick */
.palveluAccordionContent {
	display: grid;
	grid-template-rows: 1fr;
	padding-bottom: 1.5rem;
}

.palveluAccordion:not([open]) .palveluAccordionContent {
	grid-template-rows: 0fr;
	padding-bottom: 0;
}

/* ============================================================
   Pricing rows
   ============================================================ */

.pricingRow {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: 0.4rem 0;
	gap: 0.5rem;
}

.pricingName {
	font-weight: bold;
	flex-shrink: 0;
}

.pricingDots {
	flex-grow: 1;
	border-bottom: 1px dotted rgba(100, 70, 40, 0.3);
	margin-bottom: 0.3rem;
	min-width: 1rem;
}

.pricingPrice {
	font-weight: bold;
	flex-shrink: 0;
	white-space: nowrap;
}

.pricingDescription {
	font-size: clamp(0.8rem, 1.5vw, 0.95rem);
	color: rgb(130, 100, 70);
	margin-top: -0.2rem;
	margin-bottom: 0.5rem;
	text-align: start;
}

/* ============================================================
   Content text blocks (for treatment descriptions)
   ============================================================ */

.palveluTextBlock {
	margin-bottom: 1.5rem;
	line-height: 1.6;
}

.palveluTextBlock h3 {
	font-family: 'Alex Brush', cursive;
	font-size: clamp(1.25rem, 2vw, 1.5rem);
	margin: 1rem 0 0.5rem 0;
}

.palveluTextBlock ul {
	padding-left: 1.25rem;
	margin: 0.5rem 0;
}

.palveluTextBlock li {
	margin-bottom: 0.4rem;
}

/* ============================================================
   Content section background treatment
   ============================================================ */

.palveluContentSection {
	position: relative;
	background-color: rgb(255, 249, 240);
}

.introductionWrapper:has(+ .palveluContentSection) > .introductionContainer {
	padding-bottom: 0;
}

.palveluContentSection .palveluHeader {
	padding-top: 0;
}

.palveluContentSection::after {
	content: '';
	position: absolute;
	inset: 0;
	background-image: url(/IMG/kampaamopalvelut.jpg);
	opacity: 0.04;
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
	mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
	-webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
	pointer-events: none;
}

/* ============================================================
   Service sections (replacing accordions)
   ============================================================ */

.palveluSection {
	padding-bottom: 1.5rem;
	border-bottom: 1px solid rgba(100, 70, 40, 0.15);
}

.palveluSection:last-child {
	border-bottom: none;
}

.palveluSectionHeader {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 0 0.5rem 0;
}

.palveluSectionHeader h2 {
	margin: 0;
	font-family: 'Alex Brush', cursive;
	font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.palveluSection:nth-child(even) {
	background-color: rgba(250, 240, 230, 0.3);
	margin-inline: -1rem;
	padding-inline: 1rem;
	border-radius: 8px;
}

/* ============================================================
   Mini booking button
   ============================================================ */

.palveluMiniBookBtn {
	display: inline-flex;
	align-items: center;
	padding: 3px 12px;
	background-color: linen;
	box-shadow: 0px 0px 2px rgb(100, 70, 40);
	color: rgb(100, 70, 40);
	opacity: 0.8;
	border-radius: 8px;
	font-family: 'Alex Brush', cursive;
	font-size: clamp(0.95rem, 1.5vw, 1.15rem);
	text-decoration: none;
	white-space: nowrap;
	flex-shrink: 0;
	transition: opacity 0.2s, box-shadow 0.2s;
}

.palveluMiniBookBtn:hover {
	opacity: 1;
	box-shadow: 0px 0px 4px rgb(100, 70, 40);
	cursor: pointer;
}

/* ============================================================
   Booking CTA (legacy, kept for other service pages)
   ============================================================ */

.palveluCTA {
	display: flex;
	width: 100%;
	justify-content: center;
	padding-block: 5%;
	background-color: rgb(255, 249, 240);
}

.palveluCTAButton {
	display: flex;
	text-align: center;
	justify-content: center;
	padding-block: 5px;
	padding-inline: 1.5rem;
	background-color: linen;
	box-shadow: 0px 0px 2px rgb(100, 70, 40);
	color: rgb(100, 70, 40);
	opacity: 0.9;
	border-radius: 10px;
	font-family: 'Alex Brush', cursive;
	font-size: clamp(1.5rem, 2vw, 2rem);
	text-decoration: none;
	font-weight: normal;
	transition: opacity 0.2s, box-shadow 0.2s;
}

.palveluCTAButton:hover {
	opacity: 1;
	box-shadow: 0px 0px 4px rgb(100, 70, 40);
	cursor: pointer;
}

/* ============================================================
   View transition groups for header buttons (static between pages)
   ============================================================ */

/* ============================================================
   Responsive — mobile
   ============================================================ */

@media only screen and (max-width: 600px) {
	.palveluHeroImage {
		height: 180px;
	}

	.palveluHeroText {
		padding: 1rem 1.5rem;
	}

	.palveluBackPeek {
		inline-size: min(75vw, 90cqi);
	}

	.pricingRow {
		flex-wrap: wrap;
	}

	.pricingName {
		flex-shrink: 1;
	}

	.palveluSectionHeader {
		flex-wrap: wrap;
		gap: 0.5rem;
	}


	.palveluMiniBookBtn {
		font-size: 1.2rem;
	}
}
