@view-transition {
	navigation: auto;
}

/* ============================================================
   Header
   ============================================================ */

.headerButtonsContainer {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	flex-grow: 1;
	min-width: 100%;
}

.headerButton {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 30%;
	padding-block: 5px;
	padding-inline: 5px;
	margin: 10px 5px;
	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;
	text-wrap: nowrap;
	font-weight: normal;
	transition: opacity 0.2s, box-shadow 0.2s;
}

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

.rotated {
	float: left;
	-webkit-transform: rotate(-100deg);
}

.introductionContainer {
	padding-bottom: 5%;
	text-align: center;
}

/* Only the page introduction joins directly to the service grid. */
.servicesIntroduction > .introductionContainer {
	padding-bottom: 0;
}

/* ============================================================
   Version A — Grid tiles (reuses projectTileContainer)
   ============================================================ */

.layoutVersionA {
	display: flex;
	position: relative;
	width: 100%;
	color: rgb(100, 70, 40);
	align-items: center;
	background-color: rgb(255, 249, 240);

	--bg-image2: url(/IMG/adarafront.jpg);
	--bg-opacity2: .08;
}

.layoutVersionA::after {
	content: '';
	position: absolute;
	inset: 0;
	background-image: var(--bg-image2);
	opacity: var(--bg-opacity2);
	background-size: cover;
	background-position: top;
	-webkit-mask-image: linear-gradient(to bottom, transparent 5%, black 30%);
	mask-image: linear-gradient(to bottom, transparent 5%, black 30%);
	pointer-events: none;
}

.palvelutGridContainer {
	position: relative;
	z-index: 1;
	text-align: left;
	width: clamp(60%, 90%, 54rem);
	padding-top: 0;
	padding-bottom: 7.5%;
	margin: 0 auto;
}

.palvelutGridContainer>h1 {
	text-align: center;
}

