/* ==========================================================================
   Uusi ulkoasu 2026 – header + etusivu (front-page.php)
   Heading font Oswald is self-hosted (fonts/), SIL Open Font License.
   ========================================================================== */

@font-face {
	font-family: "Oswald";
	font-style: normal;
	font-weight: 200 700;
	font-display: swap;
	src: url(../fonts/oswald-latin-ext-wght-normal.woff2) format("woff2-variations");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Oswald";
	font-style: normal;
	font-weight: 200 700;
	font-display: swap;
	src: url(../fonts/oswald-latin-wght-normal.woff2) format("woff2-variations");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

html {
	--heading: "Oswald", "Arial Narrow", sans-serif;
	--ink: #25282a;
	--pink-light: #f2dfe8;
	--plum: #4a1230;
	--grey-bg: #f4f4f4;
	--radius-l: 2rem;
	--radius-m: 1.75rem;
}

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

.header .inner {
	gap: 2.5rem;
	padding-top: 1.25rem;
	padding-bottom: 1.25rem;
}

.header .logo {
	flex: 0 0 auto;
	width: 15rem;
	max-width: 15rem;
}

.header .logo img {
	width: 100%;
	height: auto;
}

.header .nav {
	gap: 2.5rem;
}

.header .nav li > a {
	font-family: var(--heading);
	font-size: clamp(1.125rem, 1.4vw, 1.375rem);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.01em;
	color: var(--ink);
}

.header .nav li ul li a {
	font-family: "montserrat", -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 0.9375rem;
	text-transform: none;
	letter-spacing: 0;
}

.header .nav li.selected > a {
	font-weight: 600;
}

.header .nav li.children > a:after {
	vertical-align: middle;
}

.header-some {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	margin: 0;
	padding: 0;
}

.header-some a {
	display: block;
	width: 1.75rem;
	height: 1.75rem;
	color: var(--dark);
	transition: color 0.2s linear;
}

.header-some a:hover,
.header-some a:focus-visible {
	color: var(--pink);
}

.header-some svg {
	display: block;
	width: 100%;
	height: 100%;
	fill: currentColor;
}

@media screen and (max-width: 73.75rem) {
	.header .logo {
		width: 11rem;
		max-width: 11rem;
	}

	.header .nav li > a {
		font-size: 1.25rem;
	}

	.header-some {
		order: 2;
		gap: 1rem;
	}

	.header .menu {
		order: 3;
	}

	.header-some a {
		width: 1.5rem;
		height: 1.5rem;
	}
}

@media screen and (max-width: 30rem) {
	.header-some {
		display: none;
	}

	/* Overrides the old theme's .header a.logo { max-width: 80px } on small screens. */
	.header a.logo {
		width: 10rem;
		max-width: 10rem;
	}
}

/* Shared front page pieces
   ========================================================================== */

.fp {
	color: var(--ink);
}

.fp-inner {
	max-width: 76.5rem;
	margin: 0 auto;
	padding: 0 1rem;
}

.fp-title {
	font-family: var(--heading);
	font-weight: 700;
	font-size: clamp(2.5rem, 5vw, 4rem);
	line-height: 0.95;
	text-transform: uppercase;
	color: var(--pink);
	hyphens: manual;
	margin: 0 0 1.25rem;
}

.fp-title--center {
	text-align: center;
}

.fp p {
	font-size: 1.125rem;
	line-height: 1.4;
}

.fp-btn {
	display: inline-block;
	font-family: var(--heading);
	font-weight: 500;
	font-size: 1.25rem;
	line-height: 1;
	text-transform: uppercase;
	color: var(--light);
	background: var(--pink);
	padding: 0.75rem 3rem;
	border: 2px solid var(--pink);
	border-radius: 2px;
	transition: background-color 0.2s linear, color 0.2s linear;
}

.fp-btn:hover,
.fp-btn:focus-visible {
	background: var(--light);
	color: var(--pink);
}

.fp-btn--white {
	background: var(--light);
	color: var(--pink);
	border-color: var(--light);
	font-size: clamp(1.5rem, 2.6vw, 2.25rem);
	padding: 0.75rem 1.5rem;
	min-width: min(100%, 23.5rem);
	text-align: center;
}

.fp-btn--white:hover,
.fp-btn--white:focus-visible {
	background: var(--pink);
	color: var(--light);
	border-color: var(--light);
}

.fp a:focus-visible {
	outline: 3px solid var(--lime);
	outline-offset: 3px;
}

/* Cards
   ========================================================================== */

.fp-cards {
	padding: 2rem 0 3rem;
}

.fp-cards__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	max-width: 79rem;
}

.fp-card {
	position: relative;
	display: flex;
	min-height: 26rem;
	border-radius: var(--radius-l);
	overflow: hidden;
	isolation: isolate;
	color: var(--light);
	background: var(--plum);
}

.fp-card__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: -2;
}

.fp-card:after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
}

/* Pink card as in the mockup: grayscale photo + "color" blend in brand pink (no blue/purple showing through),
   with a darker wash at the top so the white text stays readable. */
.fp-card--pink .fp-card__bg {
	filter: grayscale(1) brightness(1.05);
}

.fp-card--pink:before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(150, 10, 70, 0.6) 0%, rgba(150, 10, 70, 0.15) 55%, rgba(60, 0, 30, 0.35) 100%);
}

.fp-card--pink:after {
	background: var(--pink);
	mix-blend-mode: color;
}

.fp-card--plum:after {
	background: linear-gradient(180deg, rgba(74, 18, 48, 0.95) 0%, rgba(74, 18, 48, 0.8) 50%, rgba(74, 18, 48, 0.6) 100%);
}

.fp-card__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: 100%;
	padding: 2rem 1.5rem;
}

.fp-card__title {
	font-family: var(--heading);
	font-weight: 600;
	font-size: clamp(2rem, 3.6vw, 3.5rem);
	line-height: 1;
	text-transform: uppercase;
	margin: 0 0 0.75rem;
	hyphens: auto;
}

.fp-card__text p {
	max-width: 28rem;
	font-size: 1.125rem;
	line-height: 1.35;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.fp-card .fp-btn--white {
	margin-top: auto;
	align-self: center;
}

.fp-card__text {
	margin-bottom: 2rem;
}

@media screen and (min-width: 48rem) {
	.fp-cards {
		padding: 4rem 0 5rem;
	}

	.fp-cards__grid {
		grid-template-columns: 1fr 1fr;
		gap: 2.5rem;
	}

	.fp-card {
		min-height: 30rem;
	}

	.fp-card__body {
		padding: 2.25rem 2.5rem 3rem;
	}
}

/* Image + text
   ========================================================================== */

.fp-split {
	padding: 3rem 0;
}

.fp-split__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	max-width: 62rem;
}

.fp-split__img {
	margin: 0;
}

.fp-split__img img {
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
}

.fp-split__text p {
	margin: 0 0 1rem;
}

.fp-split__text .fp-btn {
	margin-top: 1rem;
}

@media screen and (min-width: 48rem) {
	.fp-split {
		padding: 6rem 0;
	}

	.fp-split__grid {
		grid-template-columns: minmax(0, 30rem) minmax(0, 27rem);
		align-items: start;
		gap: 2.25rem;
	}
}

/* Ideas grid
   ========================================================================== */

.fp-ideas {
	background: var(--grey-bg);
	padding: 4rem 0;
}

.fp-ideas__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem 1rem;
	max-width: 50rem;
	margin: 2rem auto 0;
	padding: 0;
	list-style: none;
}

.fp-idea {
	display: block;
	text-align: center;
	color: var(--ink);
}

.fp-idea img {
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: var(--radius-m);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.fp-idea__name {
	display: block;
	margin-top: 0.5rem;
	font-family: var(--heading);
	font-weight: 500;
	font-size: clamp(1.125rem, 2.4vw, 2.125rem);
	line-height: 1.15;
}

@media screen and (pointer: fine) {
	.fp-idea:hover img {
		transform: translateY(-4px);
		box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
	}
}

@media screen and (min-width: 48rem) {
	.fp-ideas {
		padding: 9rem 0;
	}

	.fp-ideas__grid {
		gap: 2.5rem 1.75rem;
		margin-top: 3rem;
	}
}

/* Why Rajupaja
   ========================================================================== */

.fp-why {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: #0a0715;
	color: var(--light);
	padding: 4rem 0;
}

.fp-why__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: blur(5px) brightness(0.45);
	transform: scale(1.05);
	z-index: -1;
}

.fp-why__inner {
	max-width: 62rem;
}

.fp-why__logos {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 1.5rem 2rem;
	margin: 0 0 3rem;
	padding: 0;
	list-style: none;
}

.fp-why__logo img {
	width: 5.25rem;
	height: auto;
}

.fp-why__logo--main {
	display: flex;
	flex-direction: column;
	align-items: center;
	flex-basis: 100%;
}

.fp-why__logo--main img {
	width: 14rem;
}

.fp-why__tagline {
	margin-top: 0.375rem;
	font-family: var(--heading);
	font-weight: 600;
	font-size: 1.25rem;
	text-transform: uppercase;
	color: var(--lime);
}

.fp-why__kicker {
	font-family: var(--heading);
	font-weight: 500;
	font-size: clamp(1.5rem, 3vw, 2.5rem) !important;
	line-height: 1.15 !important;
	margin: 0 0 0.75rem;
}

.fp-why__title {
	font-family: var(--heading);
	font-weight: 700;
	font-size: clamp(2.5rem, 5.4vw, 4.75rem);
	line-height: 0.95;
	text-transform: uppercase;
	color: var(--lime);
	margin: 0 0 2.5rem;
}

.fp-why__list {
	display: grid;
	gap: 2rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.fp-why__list li {
	position: relative;
	padding-left: 2.75rem;
}

.fp-why__list li:before {
	content: "";
	position: absolute;
	left: 0.25rem;
	top: 0.75rem;
	width: 1.5rem;
	height: 0.875rem;
	border-left: 4px solid var(--lime);
	border-bottom: 4px solid var(--lime);
	transform: rotate(-45deg);
}

.fp-why__list h3 {
	font-family: var(--heading);
	font-weight: 500;
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	line-height: 1.1;
	margin: 0 0 0.25rem;
}

.fp-why__list p {
	font-size: clamp(1.0625rem, 1.6vw, 1.375rem);
	line-height: 1.35;
	max-width: 50rem;
}

@media screen and (min-width: 48rem) {
	.fp-why {
		padding: 9rem 0;
	}

	.fp-why__logos {
		flex-wrap: nowrap;
		justify-content: space-between;
		margin-bottom: 5rem;
	}

	.fp-why__logo--main {
		flex-basis: auto;
	}

	.fp-why__logo img {
		width: 10.5rem;
	}

	.fp-why__logo--main img {
		width: 18rem;
	}

	.fp-why__list {
		gap: 3rem;
		padding-left: 1.5rem;
	}

	.fp-why__list li {
		padding-left: 3.5rem;
	}
}

/* Quote form (layouts/lomake.php, tyyppi "tarjous")
   Structure follows the rajupaja.fi form; colours from the Vuokrakaluste mockup.
   ========================================================================== */

.fp-quote {
	background: var(--grey-bg);
	padding: 4rem 0;
	color: var(--ink);
}

.form.fp-form {
	display: block;
	gap: 0;
	padding: 0;
	max-width: 76rem;
}

.fp-form__header {
	margin-bottom: 2.5rem;
}

.form.fp-form .fp-form__header .fp-title {
	font-size: clamp(2.75rem, 6vw, 5rem);
	margin-bottom: 0.25rem;
}

.fp-form__lead {
	font-family: var(--heading);
	font-weight: 500;
	font-size: clamp(1.5rem, 3.4vw, 2.75rem) !important;
	line-height: 1.1 !important;
	margin: 0;
}

.form.fp-form form {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

.form.fp-form .span {
	grid-column: 1 / -1;
}

.form.fp-form .fp-form__h {
	font-family: var(--heading);
	font-weight: 500;
	font-size: clamp(1.625rem, 2.6vw, 2.5rem);
	line-height: 1.1;
	text-transform: uppercase;
	color: var(--ink);
	margin: 1.5rem 0 0;
	padding: 0;
}

.form.fp-form .fp-form__h:first-of-type {
	margin-top: 0;
}

.form.fp-form .fp-form__h span {
	font-family: "montserrat", -apple-system, BlinkMacSystemFont, sans-serif;
	font-weight: 400;
	font-size: 1.125rem;
	text-transform: none;
	margin-left: 0.5rem;
}

.form.fp-form input[type="text"],
.form.fp-form input[type="tel"],
.form.fp-form input[type="email"],
.form.fp-form select,
.form.fp-form textarea {
	appearance: none;
	-webkit-appearance: none;
	display: block;
	width: 100%;
	font-family: inherit;
	font-size: 1.125rem;
	line-height: 1.3;
	color: var(--ink);
	background: var(--pink-light);
	border: 2px solid transparent;
	border-radius: 4px;
	box-shadow: none;
	padding: 0.875rem 1rem;
	margin: 0;
	transition: border-color 0.2s linear, background-color 0.2s linear;
}

.form.fp-form ::placeholder {
	color: #4d4246;
	opacity: 1;
}

.form.fp-form input:focus,
.form.fp-form select:focus,
.form.fp-form textarea:focus {
	outline: none;
	border-color: var(--pink);
	background: #fff;
	box-shadow: none;
}

.form.fp-form textarea {
	min-height: 9rem;
	resize: vertical;
}

.fp-field--select {
	position: relative;
}

.form.fp-form select {
	padding-left: 2.75rem;
	cursor: pointer;
}

.fp-field--select:before {
	content: "";
	position: absolute;
	left: 1.125rem;
	top: 50%;
	width: 0.6rem;
	height: 0.6rem;
	border-right: 3px solid var(--ink);
	border-bottom: 3px solid var(--ink);
	transform: translateY(-70%) rotate(45deg);
	pointer-events: none;
}

.fp-pills {
	border: 0;
	margin: 1.5rem 0 0;
	padding: 0;
	min-width: 0;
}

.fp-pills legend {
	margin: 0 0 1rem;
}

.fp-pills__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
}

.fp-pill {
	position: relative;
}

.fp-pill input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
}

.fp-pill label {
	display: inline-block;
	font-size: 1.0625rem;
	line-height: 1.2;
	padding: 0.75rem 1.5rem;
	border-radius: 999px;
	background: var(--pink-light);
	color: var(--ink);
	border: 2px solid transparent;
	cursor: pointer;
	transition: background-color 0.2s linear, color 0.2s linear;
}

.fp-pill input:checked + label {
	background: var(--pink);
	color: var(--light);
	font-weight: 700;
}

.fp-pill input:focus-visible + label {
	outline: 3px solid var(--ink);
	outline-offset: 2px;
}

@media screen and (pointer: fine) {
	.fp-pill label:hover {
		border-color: var(--pink);
	}
}

.fp-form__note {
	font-size: 0.9375rem !important;
	margin: 0.5rem 0 0;
}

.fp-form__submit {
	display: flex;
	justify-content: flex-end;
}

.fp-form__submit .fp-btn {
	font-size: 1.375rem;
	padding: 0.875rem 3.5rem;
	cursor: pointer;
}

.form.fp-form .thanks {
	background: var(--grey-bg);
	width: 100%;
	margin: 0;
	text-align: center;
	gap: 1rem;
}

.form.fp-form .thanks h2 {
	font-family: var(--heading);
	font-size: clamp(2rem, 4vw, 3rem);
	text-transform: uppercase;
	color: var(--pink);
}

.form.fp-form.wait form * {
	opacity: 0.6;
}

@media screen and (min-width: 40rem) {
	.form.fp-form form {
		grid-template-columns: 1fr 1fr;
		gap: 1.25rem 1rem;
	}
}

@media screen and (min-width: 48rem) {
	.fp-quote {
		padding: 7rem 0;
	}
}

/* Footer (footer.php)
   ========================================================================== */

.footer.fp-footer {
	position: relative;
	background: var(--ink);
	color: var(--light);
	text-align: center;
	padding: 0 0 2.5rem;
	margin: 7rem 0 0; /* room for the badge above the footer */
}

/* Front page: the badge overlaps the grey quote section, as in the mockup. */
main.fp + .footer.fp-footer {
	margin-top: 0;
}

.footer.fp-footer a,
.footer.fp-footer em {
	font-style: normal;
}

.fp-footer .fp-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.fp-footer__badge {
	display: block;
	width: 9rem;
	margin: -4.5rem auto 1.5rem;
	border-radius: 50%;
}

.fp-footer__badge img {
	width: 100%;
	height: auto;
}

.fp-footer:not(:has(.fp-footer__badge)) {
	padding-top: 4rem;
}

.fp-footer__title {
	font-family: var(--heading);
	font-weight: 700;
	font-size: clamp(2rem, 4.5vw, 3.75rem);
	line-height: 1;
	text-transform: uppercase;
	color: #e8418d; /* lighter pink: 3:1 contrast on the dark footer */
	margin: 0 0 1.75rem;
}

.fp-footer__text p {
	font-size: 1.125rem;
	line-height: 1.45;
	margin: 0 0 1.5rem;
}

.fp-footer__text a {
	color: #f06ba9;
	text-decoration: none;
}

.fp-footer__text a:hover,
.fp-footer__text a:focus-visible {
	text-decoration: underline;
}

.fp-footer__logos {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 2rem 3rem;
	margin: 2.5rem 0 3rem;
	padding: 0;
	list-style: none;
}

.fp-footer__logos img {
	width: auto;
	height: auto;
	max-height: 4.5rem;
	max-width: 11rem;
}

.fp-footer__copy {
	font-size: 1rem !important;
	color: #b9b4b6;
	margin: 0;
}

.fp-footer__copy a {
	color: inherit;
	text-decoration: none;
}

.fp-footer__copy a:hover,
.fp-footer__copy a:focus-visible {
	color: var(--light);
	text-decoration: underline;
}

.fp-footer a:focus-visible {
	outline: 3px solid var(--lime);
	outline-offset: 3px;
}

@media screen and (min-width: 48rem) {
	.fp-footer__badge {
		width: 12.5rem;
		margin-top: -6.25rem;
	}

	.fp-footer__logos {
		justify-content: space-between;
		width: 100%;
		max-width: 63rem;
		margin: 4rem 0 5rem;
	}

	.fp-footer__logos img {
		max-height: 6rem;
		max-width: 17rem;
	}
}

/* Contact page (page-ota-yhteytta.php)
   ========================================================================== */

.fp-contact {
	padding: 2.5rem 0 3rem;
}

.fp-contact__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
}

.fp-contact__lead {
	font-size: 1.25rem !important;
	margin: 0 0 2rem;
}

.fp-contact__company {
	font-family: var(--heading);
	font-weight: 500;
	font-size: clamp(1.625rem, 2.6vw, 2.25rem);
	line-height: 1.1;
	text-transform: uppercase;
	margin: 0 0 1rem;
}

.fp-contact__info p {
	margin: 0 0 1rem;
}

.fp-contact__info a,
.fp-contact__billing a {
	color: var(--pink);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.fp-contact__main .fp-btn {
	margin-top: 1rem;
}

.fp-contact__billing {
	background: var(--grey-bg);
	border-radius: var(--radius-m);
	padding: 1.75rem 1.5rem;
	align-self: start;
}

.fp-contact__billing h2 {
	font-family: var(--heading);
	font-weight: 500;
	font-size: clamp(1.625rem, 2.6vw, 2.25rem);
	text-transform: uppercase;
	margin: 0 0 1rem;
}

.fp-contact__billing p,
.fp-contact__billing li {
	font-size: 1rem !important;
	line-height: 1.5;
}

.fp-contact__billing p {
	margin: 0 0 0.875rem;
}

.fp-contact__billing ul {
	margin: 0 0 0.875rem;
	padding-left: 1.25rem;
	list-style: disc;
}

.fp-people {
	padding: 1rem 0 4rem;
}

.fp-people__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
}

.fp-people__title {
	font-family: var(--heading);
	font-weight: 500;
	font-size: clamp(1.5rem, 2.2vw, 2rem);
	text-transform: uppercase;
	margin: 0 0 1.25rem;
}

.fp-person {
	display: flex;
	align-items: center;
	gap: 1.25rem;
}

.fp-person__img {
	flex: 0 0 auto;
	width: 8rem;
	margin: 0;
	border-radius: 50%;
	overflow: hidden;
	background: var(--pink);
}

.fp-person__img img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
}

.fp-person__text h3 {
	font-size: 1.125rem;
	margin: 0 0 0.375rem;
}

.fp-person__text a {
	display: block;
	line-height: 1.6;
	color: var(--ink);
	overflow-wrap: anywhere;
}

.fp-person__text a:hover,
.fp-person__text a:focus-visible {
	color: var(--pink);
	text-decoration: underline;
}

@media screen and (min-width: 48rem) {
	.fp-contact {
		padding: 4rem 0 4rem;
	}

	.fp-contact__grid {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
		gap: 4rem;
	}

	.fp-contact__billing {
		padding: 2.25rem 2.5rem;
	}

	.fp-people__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 2rem;
	}

	.fp-person {
		flex-direction: column;
		align-items: flex-start;
	}

	.fp-person__img {
		width: 11rem;
	}
}

/* Existing page heads + FAQ accordion in the new style
   ========================================================================== */

.landing h1 {
	font-family: var(--heading);
	font-weight: 700;
	font-size: clamp(2.5rem, 5vw, 4rem);
	line-height: 0.95;
	text-transform: uppercase;
	color: var(--pink);
}

.landing h1 span {
	color: inherit;
}

.accordion li .wrap h3 {
	font-family: var(--heading);
	font-weight: 500;
	font-size: clamp(1.25rem, 1.8vw, 1.5rem);
	line-height: 1.2;
}

/* Quote form on the brand pink (2026-10-16): white text, dark selected pills, white submit.
   ========================================================================== */

.fp-quote {
	background: var(--pink);
	color: var(--light);
}

.form.fp-form .fp-form__header .fp-title,
.form.fp-form .fp-form__lead,
.form.fp-form .fp-form__h,
.form.fp-form .fp-form__note {
	color: var(--light);
}

.form.fp-form input:focus,
.form.fp-form select:focus,
.form.fp-form textarea:focus {
	border-color: var(--ink);
}

.fp-pill input:checked + label {
	background: var(--ink);
	color: var(--light);
	border-color: var(--light);
}

.fp-pill input:focus-visible + label {
	outline-color: var(--light);
}

@media screen and (pointer: fine) {
	.fp-pill label:hover {
		border-color: var(--light);
	}
}

.fp-form__submit .fp-btn {
	background: var(--light);
	color: var(--pink);
	border-color: var(--light);
}

.fp-form__submit .fp-btn:hover,
.fp-form__submit .fp-btn:focus-visible {
	background: var(--ink);
	color: var(--light);
	border-color: var(--light);
}

.form.fp-form .thanks {
	background: var(--pink);
	color: var(--light);
}

.form.fp-form .thanks h2 {
	color: var(--light);
}

.form.fp-form .thanks .fp-btn {
	background: var(--light);
	color: var(--pink);
	border-color: var(--light);
}

.fp-quote a:focus-visible,
.fp-quote button:focus-visible {
	outline: 3px solid var(--light);
	outline-offset: 3px;
}

/* Footer as in the mockup (2026-10-16): badge inside the dark footer, larger type, even logo row.
   ========================================================================== */

.footer.fp-footer {
	margin-top: 3rem;
	padding: 3.5rem 0 2.5rem;
}

main.fp + .footer.fp-footer,
.fp-quote + .footer.fp-footer {
	margin-top: 0;
}

.fp-footer__badge {
	width: 9rem;
	margin: 0 auto 1.25rem;
}

.footer .fp-footer__title {
	font-size: clamp(2.25rem, 4.2vw, 3.75rem);
	color: #da2a7c; /* mockup pink, nudged to 3:1 on the dark footer */
	margin-bottom: 1.5rem;
}

.fp-footer__text p {
	font-size: clamp(1.0625rem, 1.4vw, 1.3125rem);
	line-height: 1.3;
	margin-bottom: 1.6rem;
}

.fp-footer__copy {
	font-size: clamp(1rem, 1.3vw, 1.25rem) !important;
}

.fp-footer__logos img {
	max-height: 4rem;
	max-width: 10rem;
}

@media screen and (min-width: 48rem) {
	.footer.fp-footer {
		padding: 4.5rem 0 3rem;
	}

	.fp-footer__badge {
		width: 12.5rem;
		margin: 0 auto 1.5rem;
	}

	.fp-footer__logos {
		max-width: 64rem;
		margin: 4.5rem 0 6rem;
		padding: 0 3rem;
	}

	.fp-footer__logos img {
		max-height: 6rem;
		max-width: 17.5rem;
	}

	/* Rajupaja wordmark has no built-in padding: match the mockup proportions. */
	.fp-footer__logos li:first-child img {
		max-height: 4.75rem;
	}
}

/* Consumer prices (incl. VAT) with the VAT-free price as extra info (2026-10-23)
   ========================================================================== */

.price .woocommerce-price-suffix {
	display: block;
	margin-top: 0.25rem;
	font-size: 0.9375rem;
	font-weight: 400;
	line-height: 1.4;
}

.lift h3 small {
	display: block;
	font-size: 0.75em;
	font-weight: 400;
}

/* Old theme makes every span in the tile a block: keep the amount and € on one line. */
.lift h3 .woocommerce-Price-amount,
.lift h3 .woocommerce-Price-amount span {
	display: inline;
}

/* Webshop fee notice (inc/verkkokauppa-maksut.php)
   ========================================================================== */

.vk-fee-notice {
	max-width: 76rem;
	margin: 1rem auto 2rem;
	padding: 0 1rem;
	font-size: 0.9375rem !important;
	line-height: 1.5;
	color: var(--ink);
}

/* Front page: one content width for all sections (2026-10-16)
   ========================================================================== */

html {
	--fp-content: 76rem;
}

.fp-inner,
.fp-cards__grid,
.fp-split__grid,
.fp-why__inner,
.form.fp-form {
	max-width: var(--fp-content);
}

.fp-cards__grid {
	padding: 0 1rem;
}

.fp-ideas__grid {
	max-width: none;
}

.fp-split__text {
	max-width: 36rem;
}

@media screen and (min-width: 48rem) {
	.fp-cards {
		padding: 3.5rem 0 4rem;
	}

	.fp-split {
		padding: 4.5rem 0;
	}

	.fp-split__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 3.5rem;
		align-items: center;
	}

	.fp-split__img img {
		aspect-ratio: 5 / 4;
	}

	.fp-ideas {
		padding: 5.5rem 0 6rem;
	}

	.fp-why {
		padding: 7rem 0;
	}

	.fp-why__kicker,
	.fp-why__title,
	.fp-why__list {
		max-width: 62rem;
	}
}

/* Ideas: 2×2 as in the mockup, full content width; 3:2 images keep the section from growing too tall. */
@media screen and (min-width: 48rem) {
	.fp-ideas__grid {
		gap: 2rem 1.75rem;
		margin-top: 2.5rem;
	}

	.fp-idea img {
		aspect-ratio: 3 / 2;
	}
}

/* Reveal on scroll (js/uusi-ulkoasu.js), modelled on the rajupaja.fi "fadeInLeft" entrance.
   Hidden state only when JS has enabled it (.fp-reveal-on) and motion is allowed.
   ========================================================================== */

.fp-reveal-on [data-reveal] > * {
	opacity: 0;
	transform: translate3d(-5rem, 0, 0);
}

/* Transition only on reveal, so hiding on page load is instant. */
.fp-reveal-on [data-reveal].is-visible > * {
	opacity: 1;
	transform: none;
	transition: opacity 0.8s ease, transform 1s cubic-bezier(0.2, 0.7, 0.2, 1);
	transition-delay: calc(var(--fp-i, 0) * 120ms);
}

/* The list animates its own items, so it is not moved as one block. */
.fp-reveal-on .fp-why__inner[data-reveal] > .fp-why__list {
	opacity: 1;
	transform: none;
}

.fp-why__inner > :nth-child(2) { --fp-i: 1; }
.fp-why__inner > :nth-child(3) { --fp-i: 2; }
.fp-why__list > :nth-child(1) { --fp-i: 1; }
.fp-why__list > :nth-child(2) { --fp-i: 2; }
.fp-why__list > :nth-child(3) { --fp-i: 3; }
.fp-why__list > :nth-child(4) { --fp-i: 4; }
.fp-why__list > :nth-child(5) { --fp-i: 5; }
.fp-why__list > :nth-child(n+6) { --fp-i: 6; }

@media (prefers-reduced-motion: reduce) {
	.fp-idea img,
	.fp-btn,
	.fp-pill label,
	.header-some a {
		transition: none;
	}
}

/* Rentman: quantity on the product page, rental period in the cart (2026-11-02)
   ========================================================================== */

.vk-osta {
	margin-top: 1.5rem;
	max-width: 32rem;
}

.vk-vuokra-info {
	margin-bottom: 1.25rem;
	padding: 1rem 1.25rem;
	border-left: 4px solid var(--pink);
	background: var(--pink-light);
	border-radius: 0 0.5rem 0.5rem 0;
}

.vk-vuokra-info p {
	margin: 0;
}

.vk-vuokra-info p + p,
.vk-vuokra-info .availability {
	margin-top: 0.5rem;
}

.vk-vuokra-info .availability {
	font-weight: 700;
}

.vk-vuokra-info a {
	font-weight: 700;
	text-decoration: underline;
}

.vk-osta form.cart {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
}

.vk-osta .quantity input,
.vk-vuokra-aika input {
	padding: 0.625rem 0.75rem;
	border: 2px solid #ddd;
	border-radius: 0.5rem;
	background: var(--light);
	font: inherit;
	font-weight: 700;
}

.vk-osta .quantity input {
	width: 5.5rem;
	text-align: center;
}

.vk-osta .quantity input:focus,
.vk-vuokra-aika input:focus {
	outline: none;
	border-color: var(--pink);
}

/* WooCommerce prints the quantity label for screen readers only. */
.vk-osta .quantity .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.vk-osta .stock {
	margin: 0 0 0.75rem;
	font-weight: 700;
}

/* Cart: rental period above the product table */
.vk-vuokra-aika {
	margin: 0 0 2rem;
	padding: 1.5rem;
	background: var(--pink-light);
	border-radius: 1rem;
}

.vk-vuokra-aika h2 {
	margin: 0 0 0.5rem;
	line-height: 1.2;
	font-family: var(--heading);
	font-size: 1.5rem;
	font-weight: 500;
	text-transform: uppercase;
}

.vk-vuokra-aika p.vk-vuokra-aika__ohje {
	margin: 0 0 1rem;
}

.vk-vuokra-aika__kentat {
	display: grid;
	grid-template-columns: auto minmax(0, 16rem) auto minmax(0, 16rem);
	justify-content: start;
	gap: 0.5rem 1rem;
	align-items: center;
}

.vk-vuokra-aika label {
	font-weight: 700;
}

.vk-vuokra-aika input {
	width: 100%;
	min-width: 0;
}

#rental-period-status:not(:empty) {
	display: block;
	margin-top: 0.75rem;
	font-weight: 700;
}

@media (max-width: 767px) {
	.vk-vuokra-aika__kentat {
		grid-template-columns: auto minmax(0, 1fr);
	}
}

@media (max-width: 479px) {
	.vk-vuokra-aika {
		padding: 1.25rem 1rem;
	}

	.vk-vuokra-aika__kentat {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Pages without ACF content: Complianz privacy statement / cookie policy (2026-11-09)
   ========================================================================== */

.vk-page-content .inner {
	max-width: 56rem;
}

.vk-page-content ul,
.vk-page-content ol {
	margin: 0 0 1rem;
	padding-left: 1.5rem;
	list-style: disc;
}

.vk-page-content ol {
	list-style: decimal;
}

.vk-page-content li {
	margin-bottom: 0.375rem;
}

.vk-page-content h2 {
	margin-top: 2rem;
}

.vk-page-content details {
	margin: 0.75rem 0;
	padding: 0.75rem 1rem;
	background: var(--grey-bg);
	border-radius: 0.5rem;
}

/* Arrow on the same line as the heading (Complianz: summary > div > h3). */
.vk-page-content summary {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	cursor: pointer;
	list-style: none;
}

.vk-page-content summary::-webkit-details-marker {
	display: none;
}

.vk-page-content summary::before {
	content: "";
	flex: none;
	border-style: solid;
	border-width: 0.375rem 0 0.375rem 0.6rem;
	border-color: transparent transparent transparent var(--pink);
	transition: transform 0.2s ease;
}

.vk-page-content details[open] > summary::before {
	transform: rotate(90deg);
}

.vk-page-content summary div,
.vk-page-content summary h3 {
	margin: 0;
}

@media (prefers-reduced-motion: reduce) {
	.vk-page-content summary::before {
		transition: none;
	}
}

.vk-page-content details[open] summary {
	margin-bottom: 0.75rem;
}

/* Price view switch: consumers (incl. VAT) / businesses (VAT 0 %) – inc/hintanakyma.php (2026-11-09)
   ========================================================================== */

.vk-hinnat {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
	width: min(30rem, 100%); /* fixed width: the switch does not move when the info text changes */
}

.vk-hinnat__otsikko {
	font-weight: 700;
	font-size: 0.9375rem;
}

.vk-hinnat__valinnat {
	display: inline-flex;
	margin: 0;
	padding: 0.25rem;
	list-style: none;
	background: var(--pink-light);
	border-radius: 2rem;
}

.vk-hinnat__valinta {
	display: block;
	padding: 0.5rem 1rem;
	border-radius: 2rem;
	color: var(--ink);
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.2s linear, color 0.2s linear;
}

.content a.vk-hinnat__valinta:not(.button),
.vk-hinnat__valinta {
	color: var(--ink);
}

.vk-hinnat__valinta:hover {
	background: rgba(255, 255, 255, 0.7);
}

.content a.vk-hinnat__valinta[aria-current="true"],
.vk-hinnat__valinta[aria-current="true"] {
	background: var(--pink);
	color: var(--light);
}

.vk-hinnat__valinta:focus-visible {
	outline: 3px solid var(--ink);
	outline-offset: 2px;
}

.vk-hinnat p.vk-hinnat__info {
	flex-basis: 100%;
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.4;
	min-height: 2.8em; /* room for two lines in both views → the switch does not move */
}


/* Cart and checkout: the switch above the content. */
.woocommerce-cart .vk-hinnat,
.woocommerce-checkout .vk-hinnat {
	margin: 0 0 1.5rem;
}

@media (max-width: 479px) {
	.vk-hinnat__valinnat {
		display: flex;
		width: 100%;
	}

	.vk-hinnat__valinnat li {
		flex: 1;
	}

	.vk-hinnat__valinta {
		padding: 0.5rem 0.5rem;
		text-align: center;
		white-space: normal;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vk-hinnat__valinta {
		transition: none;
	}
}

/* Price view switch, compact (category heading) and the product page price switch (2026-11-11)
   ========================================================================== */

.vk-hinnat--pieni {
	width: min(26rem, 100%);
	margin-top: 1.5rem;
	gap: 0.375rem 0.5rem;
}

.vk-hinnat--pieni .vk-hinnat__otsikko {
	font-size: 0.8125rem;
}

.vk-hinnat--pieni .vk-hinnat__valinnat {
	padding: 0.1875rem;
}

.vk-hinnat--pieni .vk-hinnat__valinta {
	padding: 0.375rem 0.75rem;
	font-size: 0.8125rem;
}

.vk-hinnat--pieni p.vk-hinnat__info {
	font-size: 0.8125rem;
}

.vk-tuotehinta__rivi {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1rem;
}

.vk-tuotehinta .price {
	margin: 0;
}

/* Both prices / texts share one grid cell: the cell is as big as the larger one, so nothing moves on switching. */
.vk-tuotehinta .price,
.vk-tuotehinta__lisa {
	display: grid;
}

.vk-tuotehinta__arvo {
	grid-area: 1 / 1;
}

.vk-tuotehinta[data-nakyma="sis"] .vk-tuotehinta__arvo--alv0,
.vk-tuotehinta[data-nakyma="alv0"] .vk-tuotehinta__arvo--sis {
	visibility: hidden;
}

.vk-tuotehinta p.vk-tuotehinta__lisa {
	margin: 0.25rem 0 0;
	color: var(--pink);
	font-size: 0.9375rem;
	line-height: 1.4;
}

.vk-tuotehinta__kytkin {
	display: inline-flex;
	margin: 0;
	padding: 0.1875rem;
	list-style: none;
	background: var(--pink-light);
	border-radius: 2rem;
}

.content .vk-tuotehinta__kytkin a,
.vk-tuotehinta__kytkin a {
	display: block;
	padding: 0.3125rem 0.75rem;
	border-radius: 2rem;
	color: var(--ink);
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.15s linear, color 0.15s linear;
}

.content .vk-tuotehinta__kytkin a[aria-current="true"],
.vk-tuotehinta__kytkin a[aria-current="true"] {
	background: var(--pink);
	color: var(--light);
}

.vk-tuotehinta__kytkin a:focus-visible {
	outline: 3px solid var(--ink);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.vk-tuotehinta__kytkin a {
		transition: none;
	}
}

/* Cart totals and checkout order review: label | amount in two aligned columns on all screen sizes (2026-11-11)
   ========================================================================== */

.woocommerce .cart_totals table.shop_table,
.woocommerce .cart_totals table.shop_table tbody,
.woocommerce table.shop_table.woocommerce-checkout-review-order-table,
.woocommerce table.shop_table.woocommerce-checkout-review-order-table thead,
.woocommerce table.shop_table.woocommerce-checkout-review-order-table tbody,
.woocommerce table.shop_table.woocommerce-checkout-review-order-table tfoot {
	display: block;
	width: 100%;
}

.woocommerce .cart_totals table.shop_table tr,
.woocommerce .cart_totals table.shop_table tbody tr,
.woocommerce table.shop_table.woocommerce-checkout-review-order-table tr,
.woocommerce table.shop_table.woocommerce-checkout-review-order-table tbody tr,
.woocommerce table.shop_table.woocommerce-checkout-review-order-table tfoot tr {
	display: grid;
	grid-template-columns: minmax(7rem, 10rem) minmax(0, 1fr);
	column-gap: 1.25rem;
	align-items: start;
	margin: 0;
	padding: 0.875rem 0;
	background: none;
	border: none;
	border-bottom: 1px solid #ddd;
	border-radius: 0;
}

.woocommerce .cart_totals table.shop_table th,
.woocommerce .cart_totals table.shop_table td,
.woocommerce table.shop_table.woocommerce-checkout-review-order-table th,
.woocommerce table.shop_table.woocommerce-checkout-review-order-table td,
.woocommerce table.shop_table.woocommerce-checkout-review-order-table tbody td,
.woocommerce table.shop_table.woocommerce-checkout-review-order-table tfoot th,
.woocommerce table.shop_table.woocommerce-checkout-review-order-table tfoot td {
	display: block;
	padding: 0;
	border: none;
	text-align: left;
	line-height: 1.4;
}

/* The label is already in the left column: no repeated "Name:" / ": " before the amounts. */
.woocommerce .cart_totals table.shop_table tbody td::before,
.woocommerce .cart_totals table.shop_table td::before,
.woocommerce table.shop_table.woocommerce-checkout-review-order-table td::before,
.woocommerce table.shop_table.woocommerce-checkout-review-order-table tbody td::before,
.woocommerce table.shop_table.woocommerce-checkout-review-order-table tfoot th::before {
	content: none;
}

.woocommerce .cart_totals table.shop_table tr.order-total,
.woocommerce table.shop_table.woocommerce-checkout-review-order-table tr.order-total {
	border-bottom: none;
	padding-top: 1.25rem;
}

.woocommerce table.shop_table.woocommerce-checkout-review-order-table thead tr {
	border-bottom: 2px solid var(--pink);
}

/* Checkout: product names need more room – all rows use the same wider first column, so the amounts line up. */
.woocommerce table.shop_table.woocommerce-checkout-review-order-table tr,
.woocommerce table.shop_table.woocommerce-checkout-review-order-table thead tr,
.woocommerce table.shop_table.woocommerce-checkout-review-order-table tbody tr,
.woocommerce table.shop_table.woocommerce-checkout-review-order-table tfoot tr {
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
}

/* Pickup points: one option per row, the radio button next to the text. */
.woocommerce ul#shipping_method {
	margin: 0;
	padding: 0;
	list-style: none;
}

.woocommerce ul#shipping_method li {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	margin: 0 0 0.5rem;
	padding: 0;
	text-indent: 0;
}

.woocommerce ul#shipping_method li:last-child {
	margin-bottom: 0;
}

.woocommerce ul#shipping_method li input {
	flex: none;
	margin: 0.25rem 0 0;
}

.woocommerce ul#shipping_method li label {
	display: block;
	margin: 0;
	line-height: 1.4;
}

.woocommerce .cart_totals p.woocommerce-shipping-destination {
	margin: 0.5rem 0 0;
}

/* Narrow screens: the pickup options get the full width under the "Toimitus" label. */
@media (max-width: 479px) {
	.woocommerce .cart_totals table.shop_table tr.shipping,
	.woocommerce .cart_totals table.shop_table tr.woocommerce-shipping-totals,
	.woocommerce table.shop_table.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 0.5rem;
	}

	.woocommerce .cart_totals table.shop_table tr {
		grid-template-columns: minmax(6.5rem, 8.5rem) minmax(0, 1fr);
		column-gap: 1rem;
	}
}

/* Checkout: terms and privacy links in the site pink (2026-11-11) */
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper a,
.woocommerce-checkout a.woocommerce-terms-and-conditions-link,
.woocommerce-checkout a.woocommerce-privacy-policy-link {
	color: var(--pink);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper a:hover,
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper a:focus-visible {
	text-decoration-thickness: 2px;
}
