/* J&J Sprinkler Oy – child theme styles, ported from the approved design (design/assets/css).
   Tokens use Louhosteema names (--louhos-*) so they map 1:1 to the child theme's child.css. */

:root {
	/* Brand */
	--louhos-primary: #e90000;
	--louhos-primary-rgb: 233, 0, 0;
	/* Darker red: hovers, and small text on --jjs-surface-alt where #e90000 is only 4.2:1 (this is 6.2:1) */
	--louhos-primary-dark: #b80000;
	--louhos-accent: #e90000;
	--louhos-link-color: #e90000;
	/* Light tint of the primary for text/lines on dark backgrounds (6.8:1 on --louhos-dark-1) */
	--jjs-primary-light: #ff7466;

	/* Neutrals */
	--louhos-headings: #1a1d1b;
	--louhos-body-color: #353a36;
	--louhos-grey: #5f655f;
	--louhos-border: #dcdad3;
	--louhos-dark-1: #141715;
	--louhos-dark-1-rgb: 20, 23, 21;
	--louhos-dark-2: #232824;
	--louhos-dark-2-rgb: 35, 40, 36;

	/* Surfaces */
	--jjs-surface: #ffffff;
	--jjs-surface-alt: #f4f3ef;

	/* Type */
	--louhos-font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
	--jjs-font-heading: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
	--jjs-fs-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
	--jjs-fs-h1: clamp(2.5rem, 1.6rem + 4vw, 4.75rem);
	--jjs-fs-h2: clamp(1.875rem, 1.4rem + 2vw, 3rem);
	--jjs-fs-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);

	/* Layout */
	--louhos-header-height: 84px;
	--louhos-radius: 8px;
	--louhos-radius-lg: 14px;
	--jjs-container: 1240px;
	--jjs-gutter: clamp(1.25rem, 4vw, 3rem);
	--jjs-section: clamp(4.5rem, 3rem + 6vw, 8.5rem);

	/* Motion */
	--jjs-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
	--jjs-dur: 700ms;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	font-family: var(--louhos-font-family);
	font-size: var(--jjs-fs-body);
	line-height: 1.6;
	color: var(--louhos-body-color);
	background: var(--jjs-surface);
	text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
	font-family: var(--jjs-font-heading);
	color: var(--louhos-headings);
	line-height: 1.08;
	letter-spacing: -0.02em;
	margin: 0 0 0.6em;
	text-wrap: balance;
}
h1 { font-size: var(--jjs-fs-h1); font-weight: 800; }
h2 { font-size: var(--jjs-fs-h2); font-weight: 800; }
h3 { font-size: var(--jjs-fs-h3); font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1.1em; max-width: 68ch; }

a { color: var(--louhos-link-color); text-underline-offset: 0.18em; }
a:hover { color: var(--louhos-primary-dark); }

:focus-visible {
	outline: 3px solid var(--louhos-primary);
	outline-offset: 3px;
	border-radius: 2px;
}



.jjs-container {
	width: 100%;
	max-width: calc(var(--jjs-container) + 2 * var(--jjs-gutter));
	margin-inline: auto;
	padding-inline: var(--jjs-gutter);
}

/* Eyebrow above section headings */
.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	margin: 0 0 1rem;
	font-family: var(--jjs-font-heading);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--louhos-primary);
}
.eyebrow::before {
	content: "";
	width: 1.75rem;
	height: 2px;
	background: currentColor;
}
.on-dark .eyebrow { color: var(--jjs-primary-light); }

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	min-height: 48px;
	padding: 0.8rem 1.4rem;
	border: 2px solid transparent;
	border-radius: var(--louhos-radius);
	font-family: var(--jjs-font-heading);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 160ms var(--jjs-ease-out);
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 1.1em; height: 1.1em; transition: transform 200ms var(--jjs-ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--louhos-primary); color: #fff; }
.btn-primary:hover { background: var(--louhos-primary-dark); color: #fff; }
.btn-outline { border-color: currentColor; color: var(--louhos-headings); background: transparent; }
.btn-outline:hover { background: var(--louhos-headings); color: #fff; border-color: var(--louhos-headings); }
.on-dark .btn-outline { color: #fff; }
.on-dark .btn-outline:hover { background: #fff; color: var(--louhos-dark-1); border-color: #fff; }
.btn-light { background: #fff; color: var(--louhos-primary); }
.btn-light:hover { background: var(--louhos-dark-1); color: #fff; }

/* Header */
.jjs-header {
	position: relative;
	z-index: 20;
	background: #fff;
	border-bottom: 1px solid var(--louhos-border);
}
.jjs-header .jjs-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: var(--louhos-header-height);
}
.brand { display: inline-flex; align-items: center; }
.brand img { width: auto; height: 58px; }

.nav-toggle {
	display: none;
	align-items: center;
	gap: 0.5rem;
	min-height: 44px;
	padding: 0.5rem 0.9rem;
	border: 2px solid var(--louhos-headings);
	border-radius: var(--louhos-radius);
	background: #fff;
	color: var(--louhos-headings);
	font: 700 0.9375rem/1 var(--jjs-font-heading);
	cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

.main-nav ul {
	display: flex;
	gap: clamp(0.25rem, 1.5vw, 1.25rem);
	margin: 0;
	padding: 0;
	list-style: none;
}
.main-nav a {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0.5rem 0.6rem;
	font-family: var(--jjs-font-heading);
	font-size: 0.9875rem;
	font-weight: 700;
	color: var(--louhos-headings);
	text-decoration: none;
}
.main-nav a::after {
	content: "";
	position: absolute;
	left: 0.6rem;
	right: 0.6rem;
	bottom: 0.35rem;
	height: 2px;
	background: var(--louhos-primary);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 260ms var(--jjs-ease-out);
}
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--louhos-primary); }
.header-cta { display: inline-flex; }

@media (max-width: 960px) {
	.nav-toggle { display: inline-flex; }
	.header-cta { display: none; }
	.main-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #fff;
		border-bottom: 1px solid var(--louhos-border);
		box-shadow: 0 18px 30px -20px rgba(0, 0, 0, 0.25);
	}
	.main-nav[hidden] { display: none; }
	.main-nav ul { flex-direction: column; gap: 0; padding: 0.5rem var(--jjs-gutter) 1.25rem; }
	.main-nav a { width: 100%; font-size: 1.125rem; border-bottom: 1px solid var(--louhos-border); }
	.main-nav a::after { display: none; }
	.brand img { height: 48px; }
}
@media (min-width: 961px) {
	.main-nav[hidden] { display: block; }
}

/* Trust logos */
.trust-logos {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 2rem 3rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.trust-logos img { width: auto; }
.trust-logos .logo-platina { height: 120px; }
.trust-logos .logo-tilaajavastuu { height: 48px; }

/* Footer */
.jjs-footer {
	background: var(--louhos-dark-1);
	color: #d5d9d5;
	padding-block: clamp(3.5rem, 6vw, 5.5rem) 2rem;
	font-size: 1rem;
}
/* Footer links: no underline at rest; underline + light primary tint on hover/focus */
.jjs-footer a { color: #fff; text-decoration: none; }
.jjs-footer a:hover,
.jjs-footer a:focus-visible {
	color: var(--jjs-primary-light); /* 6.8:1 on the footer */
	text-decoration: underline;
	text-underline-offset: 0.2em;
}
.footer-grid {
	display: grid;
	grid-template-columns: 1.3fr 1fr 1fr 1fr;
	gap: 2.5rem;
}
.footer-grid h2 {
	font-size: 0.8125rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #fff;
	margin-bottom: 1rem;
}
.footer-grid ul { margin: 0; padding: 0; list-style: none; }
.footer-grid li { margin-bottom: 0.45rem; }
.footer-logo { height: 70px; width: auto; margin-bottom: 1.25rem; }
.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 3rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	font-size: 0.9375rem;
	color: #b4bab4;
}
@media (max-width: 860px) {
	.footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
	.footer-grid { grid-template-columns: 1fr; }
}

/* Scroll reveal (shared) – transform + opacity only */
.reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity var(--jjs-dur) var(--jjs-ease-out), transform var(--jjs-dur) var(--jjs-ease-out);
	transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.reveal { opacity: 1; transform: none; transition: none; }
}

/* QA screenshots (automated browser): skip motion, show end state */
.is-static *,
.is-static *::before,
.is-static *::after {
	animation: none !important;
	transition: none !important;
}

.nowrap { white-space: nowrap; }

/* Concept A – B1 "Kuva edellä": full-bleed photo hero, sprinkler system as the signature section. */

/* ---- Hero ---- */
.a-hero {
	position: relative;
	isolation: isolate;
	min-height: min(86vh, 820px);
	display: flex;
	align-items: flex-end;
	color: #fff;
	overflow: clip;
	background: var(--louhos-dark-1);
}
.a-hero__media,
.a-hero__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.a-hero__media { z-index: -2; }
.a-hero__media img {
	object-position: 50% 45%;
	animation: a-hero-settle 1600ms var(--jjs-ease-out) both;
}
.a-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(90deg, rgba(var(--louhos-dark-1-rgb), 0.92) 0%, rgba(var(--louhos-dark-1-rgb), 0.78) 38%, rgba(var(--louhos-dark-1-rgb), 0.18) 75%),
		linear-gradient(0deg, rgba(var(--louhos-dark-1-rgb), 0.7) 0%, rgba(var(--louhos-dark-1-rgb), 0) 45%);
}
.a-hero__inner { padding-block: clamp(6rem, 12vw, 9rem) clamp(7.5rem, 11vw, 9.5rem); }
.a-hero__content { max-width: 40rem; }
.a-hero h1 {
	font-size: clamp(2.375rem, 1.5rem + 3.6vw, 4.25rem);
	color: #fff;
	margin-bottom: 2rem;
	animation: a-rise 900ms var(--jjs-ease-out) 120ms both;
}
.a-hero .eyebrow { animation: a-rise 900ms var(--jjs-ease-out) both; }
.a-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
	animation: a-rise 900ms var(--jjs-ease-out) 240ms both;
}

@keyframes a-hero-settle {
	from { transform: scale(1.08); }
	to { transform: scale(1); }
}
@keyframes a-rise {
	from { opacity: 0; transform: translateY(18px); }
	to { opacity: 1; transform: none; }
}

/* ---- Stats strip (overlaps hero) ---- */
.a-stats { position: relative; z-index: 2; margin-top: -4.25rem; }
.a-stats__list {
	display: grid;
	/* Column widths follow the content: "Perustettu" 20 %, the two others 40 % each */
	grid-template-columns: 1fr 2fr 2fr;
	margin: 0;
	background: #fff;
	border-radius: var(--louhos-radius-lg);
	box-shadow: 0 24px 50px -28px rgba(var(--louhos-dark-1-rgb), 0.45);
	overflow: clip;
}
.a-stats__item {
	padding: 1.75rem clamp(1.25rem, 3vw, 2.5rem);
	border-left: 1px solid var(--louhos-border);
}
.a-stats__item:first-child { border-left: 0; }
.a-stats dt {
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--louhos-grey);
}
.a-stats dd {
	margin: 0.25rem 0 0;
	font-family: var(--jjs-font-heading);
	font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--louhos-headings);
}
@media (max-width: 700px) {
	.a-stats__list { grid-template-columns: 1fr; }
	.a-stats__item { border-left: 0; border-top: 1px solid var(--louhos-border); padding-block: 1.1rem; }
	.a-stats__item:first-child { border-top: 0; }
}

/* ---- Services ---- */
.a-services { padding-block: var(--jjs-section); }
.a-services__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(2.5rem, 6vw, 6rem);
	align-items: center;
}
.lead {
	font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
	line-height: 1.45;
	color: var(--louhos-headings);
}
.a-services__text .btn { margin-top: 0.75rem; }
.a-services__media { margin: 0; }
.a-services__media img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: var(--louhos-radius-lg);
}
@media (max-width: 960px) {
	.a-services__grid { grid-template-columns: 1fr; }
	.a-services__media img { aspect-ratio: 4 / 3; }
}

/* ---- Signature: sprinkler system ---- */
.a-system {
	padding-block: var(--jjs-section);
	background: var(--louhos-dark-1);
	color: #c9cec9;
}
.a-system h2,
.a-system h3 { color: #fff; }
.a-system__head {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem clamp(2rem, 6vw, 6rem);
	align-items: end;
}
.a-system__head .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.a-system__head h2 { margin: 0; }
.a-system__head p { margin: 0; }

/* Green "pipe" line and the three parts – static (no motion, per client feedback 4.11.2026) */
.a-system__line {
	height: 4px;
	margin-block: clamp(3rem, 6vw, 4.5rem) 2rem;
	background: var(--jjs-primary-light);
	border-radius: 2px;
}
.a-system__line span { display: none; }

.a-system__parts {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(1rem, 2.5vw, 2rem);
	margin: 0;
	padding: 0;
	list-style: none;
}
.a-part__media {
	overflow: clip;
	border-radius: var(--louhos-radius-lg);
	aspect-ratio: 3 / 4;
}
.a-part__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.a-part h3 { margin: 1.25rem 0 0; }

/* Linked parts (front page → Palvelut) */
.a-part__link {
	display: block;
	color: inherit;
	text-decoration: none;
	border-radius: var(--louhos-radius-lg);
}
.a-system .a-part__link:hover,
.a-system .a-part__link:focus-visible { color: inherit; }
.a-part__link h3 {
	text-decoration: underline;
	text-decoration-color: transparent;
	text-underline-offset: 0.2em;
	transition: text-decoration-color 200ms ease;
}
.a-part__link:hover h3,
.a-part__link:focus-visible h3 { text-decoration-color: currentColor; }
.a-part__link:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }

@media (max-width: 860px) {
	.a-system__head { grid-template-columns: 1fr; }
	.a-system__parts { grid-template-columns: 1fr; gap: 2.5rem; }
	/* Taller crop weighted to the top so faces in the portrait photos stay in frame */
	.a-part__media { aspect-ratio: 4 / 5; }
	.a-part__media img { object-position: 50% 20%; }
}

@media (prefers-reduced-motion: reduce) {
	.a-hero__media img,
	.a-hero h1,
	.a-hero .eyebrow,
	.a-hero__actions { animation: none; }
}

/* ---- Trust ---- */
.a-trust {
	padding-block: clamp(3rem, 2rem + 3vw, 5rem);
	background: var(--jjs-surface-alt);
}
.a-trust__grid {
	display: grid;
	/* Text 2/3, logos 1/3 on desktop */
	grid-template-columns: 2fr 1fr;
	gap: clamp(2rem, 6vw, 6rem);
	align-items: center;
}
.a-trust .trust-logos { justify-content: center; }
@media (max-width: 860px) {
	.a-trust__grid { grid-template-columns: 1fr; }
	.a-trust .trust-logos { justify-content: flex-start; }
}

/* ---- CTA ---- */
.a-cta {
	background: var(--louhos-primary);
	color: #fff;
	padding-block: clamp(3rem, 6vw, 4.5rem);
}
.a-cta__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem 3rem;
}
.a-cta h2 {
	color: #fff;
	font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.375rem);
	max-width: 24ch;
	margin: 0;
}

.a-services__grid > * { min-width: 0; }

/* Mobile: text spans the full photo width, so darken evenly for contrast */
@media (max-width: 700px) {
	.a-hero::before {
		background: linear-gradient(0deg, rgba(var(--louhos-dark-1-rgb), 0.9) 0%, rgba(var(--louhos-dark-1-rgb), 0.8) 55%, rgba(var(--louhos-dark-1-rgb), 0.45) 100%);
	}
}

/* =====================================================================
   Sub-pages
   ===================================================================== */

/* ---- Page hero (compact) ---- */
.a-page-hero {
	position: relative;
	isolation: isolate;
	overflow: clip;
	color: #fff;
	background: var(--louhos-dark-1);
}
.a-page-hero__media,
.a-page-hero__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.a-page-hero__media { z-index: -2; }
.a-page-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, rgba(var(--louhos-dark-1-rgb), 0.92) 0%, rgba(var(--louhos-dark-1-rgb), 0.8) 45%, rgba(var(--louhos-dark-1-rgb), 0.45) 100%);
}
.a-page-hero__inner { padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3rem, 6vw, 5rem); }
.a-page-hero h1 {
	color: #fff;
	font-size: clamp(2.25rem, 1.6rem + 2.8vw, 3.75rem);
	margin: 0;
	animation: a-rise 800ms var(--jjs-ease-out) both;
}
@media (max-width: 700px) {
	.a-page-hero::before { background: rgba(var(--louhos-dark-1-rgb), 0.86); }
}
@media (prefers-reduced-motion: reduce) {
	.a-page-hero h1 { animation: none; }
}

.jjs-breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
	font-size: 0.9375rem;
	color: #d5d9d5;
}
.jjs-breadcrumb li + li::before { content: "/"; margin-right: 0.4rem; opacity: 0.7; }
.jjs-breadcrumb a { color: #fff; }
.jjs-breadcrumb a:hover { color: var(--jjs-primary-light); }

/* Stats without the hero overlap */
.a-stats--flat { margin-top: 0; padding-bottom: var(--jjs-section); }
.a-stats--flat .a-stats__list { box-shadow: none; border: 1px solid var(--louhos-border); }

/* ---- References ---- */
.a-refs { padding-block: var(--jjs-section); }
.a-refs__intro { margin-bottom: 2rem; }
.a-refs__intro .lead { max-width: 40ch; }
.ref-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.ref-filter[hidden] { display: none; }
.ref-filter__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 44px;
	padding: 0.55rem 1rem;
	border: 2px solid var(--louhos-border);
	border-radius: 999px;
	background: #fff;
	color: var(--louhos-headings);
	font: 700 0.9375rem/1.2 var(--jjs-font-heading);
	cursor: pointer;
	transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease, transform 160ms var(--jjs-ease-out);
}
.ref-filter__btn:active { transform: scale(0.97); }
.ref-filter__btn:hover,
.ref-filter__btn[aria-pressed="true"] {
	background: var(--louhos-primary);
	border-color: var(--louhos-primary);
	color: #fff;
}
.ref-filter__btn[aria-pressed="true"]:hover {
	background: var(--louhos-primary-dark);
	border-color: var(--louhos-primary-dark);
}
.ref-filter__count {
	min-width: 1.75rem;
	padding: 0.1rem 0.45rem;
	border-radius: 999px;
	background: var(--jjs-surface-alt);
	color: var(--louhos-headings);
	font-size: 0.8125rem;
	text-align: center;
}
.ref-group + .ref-group { margin-top: clamp(3rem, 6vw, 4.5rem); }
.ref-group[hidden] { display: none; }
.ref-group__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 2px solid var(--louhos-headings);
}
.ref-group__head h2 { margin: 0; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); }
.ref-group__count {
	margin: 0;
	font-family: var(--jjs-font-heading);
	font-weight: 700;
	color: var(--louhos-primary);
}
.ref-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
	column-gap: clamp(1.5rem, 4vw, 3rem);
	margin: 0;
	padding: 0;
	list-style: none;
}
.ref-list li {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	padding: 0.9rem 0;
	border-bottom: 1px solid var(--louhos-border);
}
.ref-item__name {
	font-family: var(--jjs-font-heading);
	font-weight: 700;
	color: var(--louhos-headings);
	line-height: 1.3;
}
.ref-item__meta { font-size: 0.9375rem; color: var(--louhos-grey); }

/* ---- Contact ---- */
.a-contact { padding-block: var(--jjs-section) 0; }
.person-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.person-card {
	padding: 1.75rem;
	background: var(--jjs-surface-alt);
	border-radius: var(--louhos-radius-lg);
	border-top: 4px solid var(--louhos-primary);
}
.person-card h3 { margin-bottom: 0.2rem; }
.person-card__role { color: var(--louhos-grey); margin-bottom: 1rem; }
.person-card p:last-child { margin: 0; overflow-wrap: anywhere; }
.contact-facts {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
	padding-top: 2rem;
	border-top: 1px solid var(--louhos-border);
}
.contact-facts dt {
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--louhos-grey);
	margin-bottom: 0.3rem;
}
.contact-facts dd { margin: 0; color: var(--louhos-headings); }
@media (max-width: 860px) {
	.person-cards,
	.contact-facts { grid-template-columns: 1fr; }
}

/* ---- Form ---- */
.a-form { padding-block: var(--jjs-section); }
.a-form__grid {
	display: grid;
	grid-template-columns: 0.8fr 1.2fr;
	gap: clamp(2rem, 6vw, 6rem);
	align-items: start;
}
.a-form__grid > * { min-width: 0; }
.form-note { font-size: 0.9375rem; color: var(--louhos-grey); }
.contact-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.25rem;
	padding: clamp(1.5rem, 4vw, 2.5rem);
	background: var(--jjs-surface-alt);
	border-radius: var(--louhos-radius-lg);
}
.form-field { display: flex; flex-direction: column; gap: 0.35rem; }
.form-field:has(textarea),
.form-actions,
.form-status { grid-column: 1 / -1; }
.form-field label {
	font-family: var(--jjs-font-heading);
	font-weight: 700;
	font-size: 0.9375rem;
	color: var(--louhos-headings);
}
.form-field .req { color: #b42318; }
.form-field input,
.form-field textarea {
	width: 100%;
	min-height: 48px;
	padding: 0.7rem 0.9rem;
	border: 1.5px solid #8a8f8a;
	border-radius: var(--louhos-radius);
	background: #fff;
	font: inherit;
	color: var(--louhos-headings);
	transition: border-color 160ms ease, box-shadow 160ms ease;
}
.form-field input:focus,
.form-field textarea:focus {
	outline: none;
	border-color: var(--louhos-primary);
	box-shadow: 0 0 0 3px rgba(var(--louhos-primary-rgb), 0.25);
}
.form-field [aria-invalid="true"] { border-color: #b42318; }
.form-error { margin: 0; font-size: 0.9375rem; color: #b42318; }
.form-error:empty { display: none; }
.form-status { margin: 0; font-weight: 600; color: var(--louhos-primary-dark); }
.form-status:empty { display: none; }
@media (max-width: 860px) {
	.a-form__grid,
	.contact-form { grid-template-columns: 1fr; }
}

/* ---- Prose (privacy policy) ---- */
.a-prose { padding-block: var(--jjs-section); }
.prose { max-width: 46rem; }
.prose h2 { font-size: clamp(1.375rem, 1.15rem + 0.9vw, 1.875rem); margin-top: 2.5em; }
.prose h3 { margin-top: 1.75em; font-size: 1.1875rem; }
.prose ul { padding-left: 1.25rem; margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.3em; }

/* =====================================================================
   WordPress integration
   ===================================================================== */

/* Bootstrap's .lead is light (300); the design uses regular weight */
.lead { font-weight: 400; }

/* Blocks render straight into .entry-content; core blocks (privacy page) follow the design's prose column */
.entry-content > :where(:not(.alignfull):not(section)) {
	max-width: 46rem;
	margin-inline: max(var(--jjs-gutter), calc((100% - var(--jjs-container)) / 2)) auto;
}
.entry-content > section + :where(:not(section)) { margin-top: var(--jjs-section); }
.entry-content > :where(:not(section)):last-child { margin-bottom: var(--jjs-section); }
.entry-content > h2 { font-size: clamp(1.375rem, 1.15rem + 0.9vw, 1.875rem); margin-top: 2.5em; }
.entry-content > h3 { margin-top: 1.75em; font-size: 1.1875rem; }
.entry-content > ul { padding-left: 2.5rem; }

/* Editor preview: ACF block previews should not animate */
.editor-styles-wrapper .reveal,
.editor-styles-wrapper [data-reveal] { opacity: 1; transform: none; }

/* ---- Gravity Forms (GF CSS disabled; markup styled to match the design) ---- */
.a-form .gform_wrapper form {
	padding: clamp(1.5rem, 4vw, 2.5rem);
	background: var(--jjs-surface-alt);
	border-radius: var(--louhos-radius-lg);
}
.a-form .gform_fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.25rem;
	margin: 0;
	padding: 0;
	border: 0;
}
.a-form .gfield { display: flex; flex-direction: column; gap: 0.35rem; grid-column: 1 / -1; margin: 0; }
.a-form .gfield--width-half { grid-column: span 1; }
.a-form .gfield_label,
.a-form .gform-field-label {
	font-family: var(--jjs-font-heading);
	font-weight: 700;
	font-size: 0.9375rem;
	color: var(--louhos-headings);
}
.a-form .gfield_required { color: #b42318; margin-left: 0.15rem; }
/* "(Pakollinen)" stays for screen readers; sighted users get the asterisk the note refers to */
.a-form .gfield_required .gfield_required_text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
.a-form .gfield_label > .gfield_required:not(:has(.gfield_required_asterisk))::after { content: "*"; }
.a-form .gfield input:not([type="hidden"]),
.a-form .gfield textarea {
	width: 100%;
	min-height: 48px;
	padding: 0.7rem 0.9rem;
	border: 1.5px solid #8a8f8a;
	border-radius: var(--louhos-radius);
	background: #fff;
	font: inherit;
	color: var(--louhos-headings);
	transition: border-color 160ms ease, box-shadow 160ms ease;
}
.a-form .gfield textarea { min-height: 10rem; resize: vertical; }
.a-form .gfield input:focus,
.a-form .gfield textarea:focus {
	outline: none;
	border-color: var(--louhos-primary);
	box-shadow: 0 0 0 3px rgba(var(--louhos-primary-rgb), 0.25);
}
.a-form .gfield_error input,
.a-form .gfield_error textarea { border-color: #b42318; }
.a-form .validation_message,
.a-form .gform_validation_errors { margin: 0; font-size: 0.9375rem; color: #b42318; }
.a-form .gform_validation_errors { grid-column: 1 / -1; margin-bottom: 1rem; font-weight: 600; }
.a-form .gform_validation_errors h2 { font-size: 1rem; color: #b42318; margin: 0; }
.a-form .gform_footer { margin-top: 1.25rem; padding: 0; }
.a-form .gform_confirmation_message { font-weight: 600; color: var(--louhos-primary-dark); }
.a-form .gform_validation_container,
.a-form .gform_hidden,
.a-form .gfield--type-honeypot { display: none !important; }
.a-form .gform_ajax_spinner { margin-left: 0.75rem; width: 20px; height: 20px; }
@media (max-width: 860px) {
	.a-form .gform_fields { grid-template-columns: 1fr; }
}

/* ---- Block view helpers ---- */
.jjs-buttons { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.a-services__text .jjs-buttons { margin-top: 0.75rem; }
.a-services--alt { background: var(--jjs-surface-alt); }
@media (min-width: 961px) {
	.a-services__grid--image-left .a-services__media { order: -1; }
}
.a-services__media img { width: 100%; }
.trust-logos img { max-height: 240px; max-width: 290px; width: auto; height: auto; }
@media (max-width: 960px) {
	.trust-logos img { max-height: 190px; }
}
@media (min-width: 961px) {
	.a-trust .trust-logos { column-gap: 2rem; }
}
@media (max-width: 520px) {
	.trust-logos img { max-height: 150px; max-width: 100%; }
}
.a-hero__text { margin-bottom: 2rem; color: #e7ebe7; }
.a-hero__text p { max-width: 36rem; }
.form-note p { margin-bottom: 0; }
.a-cta .jjs-buttons { flex: 0 0 auto; }

/* #e90000 is 4.2:1 on --jjs-surface-alt: small primary-coloured text on that surface uses the darker red */
.a-trust .eyebrow,
.a-services--alt .eyebrow,
.person-card a { color: var(--louhos-primary-dark); }
.person-card a:hover { color: var(--louhos-headings); }
