/*
Theme name: Nestori -theme
Theme URI: https://nestori.fi/
Author: Petri Alankoja / Codeart Oy
Author URI: http://www.codeart.fi
Description: Yksisivuinen teema Tilitoimisto Nestorille. SiteOrigin Page Builder -yhteensopiva.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: nestori
License: GPL-2.0-or-later
*/

/* -----------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------- */

:root {
	--nst-teal:        #114B4E;
	--nst-teal-deep:   #0B3336;
	--nst-teal-panel:  #082A2C;   /* lomakepaneeli, syvempi kuin osio */
	--nst-ink:         #1F1B16;
	--nst-brass:       #B4863C;
	--nst-brass-dark:  #8A6A38;
	--nst-brass-light: #E7C9A0;
	--nst-paper:       #FAF7F1;
	--nst-stone:       #E8E3D9;
	--nst-stone-deep:  #DAD3C5;
	--nst-slate:       #5A5248;
	--nst-line:        #CFC7B6;

	--nst-serif: 'Spectral', Georgia, 'Times New Roman', serif;
	--nst-sans:  'Archivo', 'Helvetica Neue', Arial, sans-serif;

	--nst-gutter: 24px;
	--nst-rail:   64px;
	--nst-wrap:   1280px;

	--nst-step:   clamp(18px, 1.15vw, 19px);
	--nst-h1:     clamp(38px, 5.6vw, 82px);
	--nst-h2:     clamp(30px, 3.4vw, 50px);
	--nst-h3:     clamp(22px, 1.9vw, 27px);

	--nst-ease:   cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* -----------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------- */

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
	margin: 0;
	background: var(--nst-paper);
	color: var(--nst-ink);
	font-family: var(--nst-sans);
	font-size: var(--nst-step);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

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

a { color: var(--nst-teal); text-decoration: underline; text-underline-offset: 3px; }
a:hover, a:focus { color: var(--nst-brass-dark); }

h1, h2, h3, h4 {
	font-family: var(--nst-serif);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -0.01em;
	margin: 0;
	text-wrap: pretty;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

:focus-visible {
	outline: 2px solid var(--nst-brass);
	outline-offset: 3px;
}

.nst-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--nst-paper);
	color: var(--nst-ink);
	padding: 12px 20px;
	z-index: 200;
}
.nst-skip:focus { left: 12px; top: 12px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* -----------------------------------------------------------------------
   3. Header / navigation
   -------------------------------------------------------------------- */

.nst-header {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 22px var(--nst-gutter) 22px calc(var(--nst-rail) + 40px);
	/* Tausta on aina sama kuin aiemmin vieritetyssä tilassa. */
	background: var(--nst-paper);
	box-shadow: 0 1px 0 var(--nst-line);
	transition: padding .3s var(--nst-ease);
}

/* .is-scrolled ohjaa enää korkeutta, ei värejä. */
.nst-header.is-scrolled {
	padding-top: 14px;
	padding-bottom: 14px;
}

.nst-brand { display: flex; align-items: baseline; gap: 12px; text-decoration: none; }

.nst-brand__name {
	font-family: var(--nst-serif);
	font-size: 23px;
	font-weight: 600;
	letter-spacing: 0.16em;
	color: var(--nst-ink);
	transition: color .3s var(--nst-ease);
}
.nst-brand__tag {
	font-family: var(--nst-serif);
	font-size: 23px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--nst-ink);
}

.nst-brand__logo img { max-height: 46px; width: auto; }

/* "Oy" pienempänä brändinimen perässä. Koko on em-yksikössä, joten se
   seuraa automaattisesti kapean näytön clamp()-pienennystä. Kirjainväli
   periytyy pikseleinä, jolloin pienempi teksti saa suhteessa väljemmän
   harvennuksen - juuri niin kuin lyhenteelle kuuluukin. */
.nst-brand__suffix { font-size: 0.62em; }
/* Alatunnisteessa .nst-footer__brand span ehtisi muuten ensin. */
.nst-footer__brand b .nst-footer__suffix { font-size: 0.62em; }


.nst-nav ul {
	list-style: none;
	margin: 0; padding: 0;
	display: flex;
	gap: 34px;
}
.nst-nav a {
	font-size: 14px;
	letter-spacing: 0.05em;
	text-decoration: none;
	color: var(--nst-slate);
	padding-bottom: 4px;
	border-bottom: 1px solid transparent;
	transition: color .25s var(--nst-ease), border-color .25s var(--nst-ease);
}
.nst-nav a:hover,
.nst-nav .current-menu-item > a,
.nst-nav a.is-active {
	color: var(--nst-teal);
	border-bottom-color: var(--nst-brass);
}

.nst-burger {
	display: none;
	width: 46px; height: 46px;
	align-items: center; justify-content: center;
	background: none;
	/* --nst-line jäisi paperitaustalla 1,57:1, joten sama pronssireunus
	   kuin osioiden siirtymälinkeissä. */
	border: 1px solid var(--nst-brass);
	cursor: pointer;
	padding: 0;
}
.nst-burger span {
	display: block;
	width: 20px; height: 1.6px;
	background: var(--nst-ink);
	position: relative;
	transition: background-color .3s var(--nst-ease);
}
.nst-burger span::before,
.nst-burger span::after {
	content: '';
	position: absolute;
	left: 0;
	width: 20px; height: 1.6px;
	background: inherit;
	transition: transform .3s var(--nst-ease);
}
.nst-burger span::before { top: -6px; }
.nst-burger span::after  { top: 6px; }

.nst-burger[aria-expanded="true"] span { background: transparent; }
.nst-burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); background: var(--nst-ink); }
.nst-burger[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); background: var(--nst-ink); }

/* Tilikirjaviivan edistymisosoitin.
   Kiinteä viiva samassa kohdassa kuin osioiden ::before-viiva; messinkinen
   täyttö kasvaa ylhäältä alas sivun vierityksen mukana. Piirtyy osioiden
   viivan päälle, mutta ylävalikon (z-index 100) alle. */
.nst-progress {
	position: fixed;
	/* 2px leveä täyttö keskitetään 1px:n viivan päälle, siksi -0.5px. */
	left: calc(var(--nst-rail) - 0.5px);
	top: 0;
	bottom: 0;
	width: 2px;
	z-index: 90;
	pointer-events: none;
}
.nst-progress span {
	display: block;
	width: 100%;
	height: 100%;
	background: var(--nst-brass);
	transform: scaleY(0);
	transform-origin: top center;
	will-change: transform;
	transition: background-color .3s var(--nst-ease);
}

/* Tummilla osioilla (hero, yhteystiedot) vaaleampi messinki erottuu
   selvästi paremmin: 6,3:1 turkoosia vasten, kun perusmessinki jää 3:1. */
.nst-progress.is-dark span { background: var(--nst-brass-light); }

/* -----------------------------------------------------------------------
   4. Layout scaffolding + the ledger rail
   -------------------------------------------------------------------- */

.content { width: 100%; }

.nst-section {
	position: relative;
	padding: clamp(64px, 7vw, 96px) var(--nst-gutter);
}

.nst-section::before {
	content: '';
	position: absolute;
	left: var(--nst-rail);
	top: 0; bottom: 0;
	width: 1px;
	background: rgba(180, 134, 60, 0.38);
}

.nst-section::after {
	content: '';
	position: absolute;
	left: calc(var(--nst-rail) - 8px);
	top: clamp(64px, 7vw, 96px);
	width: 17px; height: 1px;
	background: var(--nst-brass);
}

.nst-wrap {
	max-width: var(--nst-wrap);
	margin: 0 auto;
	padding-left: 40px;
}

.nst-eyebrow {
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: 12px;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--nst-brass-dark);
	margin-bottom: 20px;
}
.nst-eyebrow::before {
	content: '';
	width: 26px; height: 1px;
	background: var(--nst-brass);
	flex-shrink: 0;
}

.nst-lead {
	font-size: clamp(17px, 1.3vw, 19px);
	line-height: 1.62;
	color: var(--nst-slate);
	max-width: 62ch;
}

/* Buttons ------------------------------------------------------------- */

.nst-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 0 30px;
	font-family: var(--nst-sans);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-decoration: none;
	border: 1px solid transparent;
	cursor: pointer;
	transition: background-color .25s var(--nst-ease), color .25s var(--nst-ease), border-color .25s var(--nst-ease);
}
.nst-btn--solid { background: var(--nst-teal); color: var(--nst-paper); }
.nst-btn--solid:hover, .nst-btn--solid:focus { background: var(--nst-teal-deep); color: var(--nst-paper); }
.nst-btn--paper { background: var(--nst-paper); color: var(--nst-teal); }
.nst-btn--paper:hover, .nst-btn--paper:focus { background: var(--nst-brass-light); color: var(--nst-teal-deep); }
.nst-btn--ghost { border-color: rgba(250, 247, 241, 0.45); color: var(--nst-paper); }
.nst-btn--ghost:hover, .nst-btn--ghost:focus { border-color: var(--nst-paper); background: rgba(250, 247, 241, 0.1); color: var(--nst-paper); }

/* -----------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------- */

.nst-hero {
	position: relative;
	min-height: 100vh;
	min-height: 100svh;
	background-color: var(--nst-teal);
	background-image: url('img/hero.jpg');
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	color: var(--nst-paper);
	overflow: hidden;
	padding-top: 120px;
	padding-bottom: 120px;
}

/* SiteOrigin's front-flex.css sets display/justify-content on this same
   element, so match its specificity to centre the hero vertically. */
.panel-grid.panel-has-style > .panel-row-style.nst-hero,
.nst-hero {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.nst-hero::before { background: rgba(180, 134, 60, 0.42); }
.nst-hero::after  { top: 50%; background: var(--nst-brass); }

.nst-hero__rule,
.nst-hero__wash {
	position: absolute;
	inset: 0;
	pointer-events: none;
}
.nst-hero__rule {
	background: repeating-linear-gradient(
		to bottom,
		rgba(0, 0, 0, 0) 0 31px,
		rgba(250, 247, 241, 0.055) 31px 32px
	);
}
/* Taustakuvan päällä oleva verho. Vasemmalla, missä teksti on, peitto on
   0.88-0.94 — se pitää kontrastin yli 8:1 vaikka kuva vaihdettaisiin
   vaaleaan valokuvaan. Älä keven-nä tätä tarkistamatta kontrastia. */
.nst-hero__wash {
	background: linear-gradient(100deg,
		rgba(11, 51, 54, 0.94) 0%,
		rgba(11, 51, 54, 0.88) 44%,
		rgba(17, 75, 78, 0.68) 76%,
		rgba(17, 75, 78, 0.58) 100%);
}

.nst-hero .nst-wrap { position: relative; z-index: 2; }

.nst-hero .nst-eyebrow { color: var(--nst-brass-light); }

.nst-hero h1 {
	font-size: var(--nst-h1);
	line-height: 1.04;
	letter-spacing: -0.015em;
	margin-bottom: 28px;
}

/* Kaksi kappaletta: 18px niiden väliin, ja painikkeiden oma 16px pitää
   viimeisen kappaleen ja painikkeiden välin ennallaan 34px:ssä. */
.nst-hero__lead {
	font-size: clamp(17px, 1.35vw, 19px);
	line-height: 1.62;
	color: rgba(250, 247, 241, 0.82);
	max-width: 56ch;
	margin-bottom: 18px;
}

.nst-hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px; }

.nst-hero__foot {
	position: absolute;
	left: calc(var(--nst-rail) + 40px);
	right: var(--nst-gutter);
	bottom: 46px;
	z-index: 2;
	display: flex;
	justify-content: flex-start;
	align-items: flex-end;
	gap: 24px;
	border-top: 1px solid rgba(250, 247, 241, 0.16);
	padding-top: 20px;
	font-size: 14px;
	color: rgba(250, 247, 241, 0.7);
}
.nst-hero__meta { display: flex; flex-wrap: wrap; gap: 40px; }
.nst-hero__meta a { color: inherit; text-decoration: none; }
.nst-hero__meta a:hover { color: var(--nst-paper); }



/* -----------------------------------------------------------------------
   6. Services (ledger rows) + steps
   -------------------------------------------------------------------- */

.nst-services__head {
	display: flex;
	gap: 96px;
	align-items: flex-start;
	margin-bottom: 56px;
}
.nst-services__intro { flex: 1 1 auto; max-width: 640px; }
.nst-services__intro h2 { font-size: var(--nst-h2); margin-bottom: 22px; }

/* Otsikkorivi: pronssinen teksti ja paksu turkoosi alaviiva.
   Ensimmäisen solun leveys 374px = numero (26) + väli (48) + nimi (300),
   joten "Sisältää" osuu sarakkeen 48px:n välin jälkeen kohdalleen. */
.nst-ledger__head {
	display: flex;
	gap: 48px;
	padding: 0 0 12px;
	margin-bottom: 14px;
	border-bottom: 1px solid rgba(17, 75, 78, 0.45);
	color: var(--nst-brass-dark);
	font-size: 11px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}
.nst-ledger__head span:first-child {
	width: 374px;
	flex-shrink: 0;
}
.nst-ledger__row {
	display: flex;
	align-items: baseline;
	gap: 48px;
	padding: 26px 0;
	border-bottom: 1px solid var(--nst-stone);
	transition: background-color .25s var(--nst-ease);
}
.nst-ledger__row:hover { background: rgba(232, 227, 217, 0.4); }
.nst-ledger__no {
	width: 26px;
	flex-shrink: 0;
	font-family: var(--nst-serif);
	font-size: 15px;
	color: var(--nst-brass);
}
.nst-ledger__name {
	width: 300px;
	flex-shrink: 0;
	font-family: var(--nst-serif);
	font-size: clamp(20px, 1.7vw, 25px);
	font-weight: 600;
	line-height: 1.25;
}
.nst-ledger__desc { flex: 1 1 auto; font-size: 16px; line-height: 1.6; color: var(--nst-slate); }

/* Palveluluettelo. Merkki on jokaisen kohdan ::before, ei kohtien välinen
   erotin — näin myös ensimmäinen kohta saa merkin.
   line-height 0 pitää ison pisteen vaikuttamatta rivikorkeuteen,
   vertical-align keskittää sen tekstin x-korkeuteen. */
.nst-ledger__desc .nst-item {
	display: block;
}
.nst-ledger__desc .nst-item::before {
	content: '\00B7';
	display: inline-block;
	margin: 0 10px 0 0;
	font-size: 2.6em;
	line-height: 0;
	vertical-align: -9.6px;
	color: var(--nst-brass);
}

/* Asiakkaaksi-osion leipäteksti palvelulistan ja yhteydenoton välissä.
   Mitta rajattu ~68 merkkiin, koska suomen yhdyssanat pidentävät riviä. */
.nst-prose {
	max-width: 68ch;
	margin-top: clamp(40px, 4vw, 56px);
	font-size: 16px;
	line-height: 1.72;
	color: var(--nst-slate);
}
.nst-prose p:first-child {
	font-size: clamp(17px, 1.25vw, 18px);
	color: var(--nst-ink);
}
.nst-prose p { margin-bottom: 1.15em; }
.nst-prose p:last-child { margin-bottom: 0; }

.nst-steps {
	background: var(--nst-stone);
	padding: clamp(32px, 3.4vw, 46px) clamp(24px, 3.6vw, 52px);
	margin-top: 56px;
}
.nst-steps h3 { font-size: var(--nst-h3); margin-bottom: 26px; }
.nst-steps__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 44px;
	margin-bottom: 30px;
}
.nst-step { border-top: 1px solid var(--nst-brass); padding-top: 18px; }
.nst-step__no {
	display: block;
	font-family: var(--nst-serif);
	font-size: 15px;
	color: var(--nst-teal);
	margin-bottom: 12px;
}
.nst-step__title { display: block; font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.nst-step__body { font-size: 15px; line-height: 1.6; color: var(--nst-slate); }

.nst-steps__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; font-size: 15px; color: var(--nst-slate); }

/* Kuvakkeet CSS-maskeina.
   Syy: wp_kses_post poistaa inline-<svg>:n, jos tallentajalla ei ole
   unfiltered_html-oikeutta. <span> + mask säilyy kaikilla rooleilla, ja
   koska väri tulee currentColorista, myös hover-tilat toimivat yhä. */
.nst-icon {
	display: inline-block;
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	background-color: currentColor;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
}
.nst-icon--arrow-down     { -webkit-mask-image: url('img/icons/arrow-down.svg');     mask-image: url('img/icons/arrow-down.svg'); }
.nst-icon--arrow-up       { -webkit-mask-image: url('img/icons/arrow-up.svg');       mask-image: url('img/icons/arrow-up.svg'); }
.nst-icon--arrow-external { -webkit-mask-image: url('img/icons/arrow-external.svg'); mask-image: url('img/icons/arrow-external.svg'); width: 15px; height: 15px; }
.nst-icon--route-car      { -webkit-mask-image: url('img/icons/route-car.svg');      mask-image: url('img/icons/route-car.svg'); }
.nst-icon--route-pin      { -webkit-mask-image: url('img/icons/route-pin.svg');      mask-image: url('img/icons/route-pin.svg'); }
.nst-icon--route-clock    { -webkit-mask-image: url('img/icons/route-clock.svg');    mask-image: url('img/icons/route-clock.svg'); }

/* Ajo-ohjeiden kuvakkeet ovat isompia ja aina turkooseja. */
.nst-route .nst-icon { width: 22px; height: 22px; color: var(--nst-teal); margin-top: 2px; }


/* Osion lopun siirtymälinkki seuraavaan osioon. Ketju alkaa hero-osion
   selauskehotteesta ja päättyy yhteystietoihin, jolla ei ole seuraavaa. */
.nst-next {
	display: flex;
	width: fit-content;
	margin: clamp(44px, 4.5vw, 64px) auto 0;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 48px;
	padding: 13px 28px;
	border: 1px solid var(--nst-brass);
	border-radius: 4px;
	font-size: 12px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--nst-brass-dark);
	text-decoration: none;
	transition: color .25s var(--nst-ease), border-color .25s var(--nst-ease), background-color .25s var(--nst-ease);
}
.nst-next:hover,
.nst-next:focus {
	color: var(--nst-teal);
	border-color: var(--nst-teal);
	background: rgba(180, 134, 60, 0.09);
}
.nst-next .nst-icon { transition: transform .25s var(--nst-ease); }
.nst-next:hover .nst-icon,
.nst-next:focus .nst-icon { transform: translateY(3px); }

/* Tummalla yhteystiedot-taustalla käänteiset värit. */
/* Kivenharmaalla taustalla vaalea messinki jää alle 3:1 -rajan, joten
   siellä käytetään tummempaa sävyä. */
.nst-staff .nst-next { border-color: var(--nst-brass-dark); }

/* Tummalla pohjalla vaaleampi messinki, jotta reunus erottuu. */
.nst-contact-foot .nst-next {
	border-color: var(--nst-brass);
	color: var(--nst-brass-light);
}
.nst-contact-foot .nst-next:hover,
.nst-contact-foot .nst-next:focus {
	color: var(--nst-paper);
	border-color: var(--nst-brass-light);
	background: rgba(250, 247, 241, 0.08);
}
.nst-next--top:hover .nst-icon,
.nst-next--top:focus .nst-icon { transform: translateY(-3px); }

/* -----------------------------------------------------------------------
   7. Location
   -------------------------------------------------------------------- */

.nst-location { display: flex; gap: 72px; align-items: flex-start; }
.nst-location__text { width: 470px; flex-shrink: 0; }
.nst-location__text h2 { font-size: var(--nst-h2); margin-bottom: 20px; }
.nst-location__media { flex: 1 1 auto; min-width: 0; }

.nst-routes { margin: 34px 0; }
.nst-route {
	display: flex;
	gap: 22px;
	align-items: flex-start;
	padding: 22px 0;
	border-bottom: 1px solid var(--nst-stone);
}

.nst-route__title { display: block; font-size: 16px; font-weight: 600; margin-bottom: 5px; }
.nst-route__body { font-size: 15px; line-height: 1.6; color: var(--nst-slate); }

.nst-address {
	border-left: 2px solid var(--nst-teal);
	padding-left: 22px;
}
.nst-address strong {
	display: block;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--nst-brass-dark);
	margin-bottom: 6px;
}
.nst-address__street { font-family: var(--nst-serif); font-size: 22px; font-weight: 600; display: block; }
.nst-address__city { font-size: 16px; color: var(--nst-slate); }

.nst-map {
	position: relative;
	aspect-ratio: 700 / 560;
	background: var(--nst-stone);
	overflow: hidden;
}
.nst-map > img, .nst-map > svg, .nst-map > iframe,
.nst-map__linkwrap img { width: 100%; height: 100%; object-fit: cover; display: block; border: 0; }

/* Koko kartta on klikattava. Linkki on aria-hidden ja tabindex -1, koska
   sen alla oleva "Avaa reittiohje" -linkki vie samaan osoitteeseen —
   ruudunlukijalle ja näppäimistölle ei tarvita kahta samaa kohdetta. */
.nst-map__linkwrap {
	display: block;
	width: 100%;
	height: 100%;
	text-decoration: none;
}
.nst-map__linkwrap img { transition: transform .4s var(--nst-ease); }
.nst-map:hover .nst-map__linkwrap img { transform: scale(1.02); }


.nst-map__foot {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 20px;
	margin-top: 14px;
	font-size: 14px;
	color: var(--nst-slate);
}
.nst-map__link {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-weight: 600;
	color: var(--nst-teal);
	text-decoration: none;
	flex-shrink: 0;
}
.nst-map__link:hover { color: var(--nst-brass-dark); }

/* -----------------------------------------------------------------------
   8. Staff
   -------------------------------------------------------------------- */

.nst-staff { background: var(--nst-stone); }
.nst-staff::before { background: rgba(180, 134, 60, 0.5); }
.nst-staff::after  { background: var(--nst-teal); }

.nst-staff__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 80px;
	margin-bottom: 52px;
}
.nst-staff__intro { max-width: 640px; }
.nst-staff__intro h2 { font-size: var(--nst-h2); margin-bottom: 20px; }
.nst-staff__stat { text-align: right; flex-shrink: 0; }
.nst-staff__stat b {
	display: block;
	font-family: var(--nst-serif);
	font-size: clamp(38px, 3.9vw, 56px);
	font-weight: 600;
	color: var(--nst-teal);
	line-height: 1;
}
.nst-staff__stat span {
	display: block;
	font-size: 13px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--nst-slate);
	padding-top: 8px;
}

.nst-staff__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 34px 40px;
}
/* Henkilökuvat. Paikkamerkit img/henkilo/ — korvaa tiedosto samalla
   nimellä, niin oikea kuva tulee tilalle ilman merkkausmuutoksia. */
.nst-person img {
	aspect-ratio: 260 / 300;
	width: 100%;
	object-fit: cover;
	background: var(--nst-stone-deep);
	margin-bottom: 16px;
}
.nst-person {
	border-top: 1px solid var(--nst-teal);
	padding-top: 16px;
	display: flex;
	flex-direction: column;
}
.nst-person__name { font-family: var(--nst-serif); font-size: 21px; font-weight: 600; line-height: 1.25; }
.nst-person__role { font-size: 14px; font-weight: 500; color: var(--nst-teal); margin: 6px 0 12px; }
.nst-person__link {
	font-size: 15px;
	line-height: 1.5;
	color: var(--nst-slate);
	text-decoration: none;
	padding: 3px 0;
	overflow-wrap: anywhere;
	transition: color .2s var(--nst-ease);
}
.nst-person__link:hover, .nst-person__link:focus { color: var(--nst-teal); text-decoration: underline; }

.nst-note {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	border-top: 1px solid rgba(17, 75, 78, 0.25);
	padding-top: 22px;
	margin-top: 52px;
	font-size: 14px;
	color: var(--nst-slate);
}
.nst-note svg { flex-shrink: 0; margin-top: 3px; }

/* -----------------------------------------------------------------------
   9. Contact
   -------------------------------------------------------------------- */

.nst-contact {
	/* Päättyy tarkalleen alatunnisteen väriin (--nst-teal-deep), joten
	   yhteystiedot, sen alarivi ja alatunniste sulautuvat yhdeksi kentäksi.
	   Yläreuna on hitusen vaaleampi, jotta lomakepaneeli erottuu yhä. */
	background: var(--nst-teal-deep);
	background-image: linear-gradient(180deg, #124C50 0%, #0B3336 100%);
	color: var(--nst-paper);
	position: relative;
	overflow: hidden;
}
.nst-contact::before { background: rgba(180, 134, 60, 0.45); }
.nst-contact::after  { background: var(--nst-brass-light); }
.nst-contact .nst-wrap { position: relative; z-index: 2; }
.nst-contact .nst-eyebrow { color: var(--nst-brass-light); }
.nst-contact a { color: var(--nst-brass-light); }
.nst-contact a:hover { color: var(--nst-paper); }

.nst-contact {
	padding-left: max(calc(var(--nst-rail) + 40px), calc((100% - var(--nst-wrap)) / 2 + 40px));
	padding-right: max(var(--nst-gutter), calc((100% - var(--nst-wrap)) / 2));
	padding-bottom: 0;
}

/* Yhteystiedot-osion jatke: kantaa "Takaisin ylös" -linkin koko leveydeltä,
   jotta se keskittyy sivuun eikä vasempaan sarakkeeseen. */
.nst-contact-foot {
	position: relative;
	background: var(--nst-teal-deep);
	padding: clamp(40px, 4vw, 56px) var(--nst-gutter) clamp(56px, 6vw, 84px);
	overflow: hidden;
}
.nst-contact-foot::before {
	content: '';
	position: absolute;
	left: var(--nst-rail);
	top: 0; bottom: 0;
	width: 1px;
	background: rgba(180, 134, 60, 0.45);
}
.nst-contact-foot .nst-wrap { position: relative; z-index: 2; }
.nst-contact__side { width: auto; }
.nst-contact__side h2 { font-size: var(--nst-h2); margin-bottom: 20px; }
.nst-contact__lead {
	font-size: clamp(17px, 1.3vw, 19px);
	line-height: 1.65;
	color: rgba(250, 247, 241, 0.82);
	margin-bottom: 40px;
}

.nst-facts { margin-bottom: 40px; }
.nst-fact {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 24px;
	padding: 19px 0;
	border-bottom: 1px solid rgba(250, 247, 241, 0.18);
}
.nst-fact__label {
	font-size: 12px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--nst-brass-light);
	flex-shrink: 0;
}
.nst-fact__value { font-family: var(--nst-serif); font-size: 21px; text-align: right; }
.nst-fact__value a { text-decoration: none; }

/* Poikkeavat aukioloajat. 0.74 alpha pitää kontrastin yli 4.5:1 turkoosilla. */
.nst-fact__note {
	margin: 14px 0 0;
	font-size: 14px;
	line-height: 1.55;
	color: rgba(250, 247, 241, 0.74);
}

/* Logo yhteystietojen lopussa, heti Y-tunnusrivin yläpuolella.
   Valkoinen läpinäkyvä PNG, joten se istuu tummalle teal-taustalle. */
.nst-contact__logo {
	display: block;
	width: 100%;
	max-width: 380px;
	height: auto;
	margin-bottom: 28px;
}

.nst-contact__legal { display: flex; flex-wrap: wrap; gap: 40px; font-size: 13px; color: rgba(250, 247, 241, 0.6); }

.nst-contact__form {
	background: var(--nst-teal-panel);
	color: var(--nst-paper);
	padding: clamp(28px, 3vw, 44px) clamp(24px, 3.2vw, 46px);
}
.nst-contact__form h3 { font-size: var(--nst-h3); margin-bottom: 24px; }

/* SiteOrigin contact form.
   The widget ships a generated stylesheet that loads AFTER the theme, so
   these selectors carry one extra class to outrank it. Its highest
   selector is 4 classes deep (.sow-contact-form .sow-submit-styled
   .sow-submit); ours run five. */

.nst-contact .nst-contact__form .sow-form-field {
	margin-bottom: 20px;
}

.nst-contact .nst-contact__form .sow-form-field label {
	display: block;
	margin-bottom: 7px;
	font-family: var(--nst-sans);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--nst-brass);
}

.nst-contact .nst-contact__form .sow-form-field .sow-text-field,
.nst-contact .nst-contact__form .sow-form-field textarea {
	width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	font-family: var(--nst-sans);
	font-size: 16px;
	line-height: 1.5;
	color: var(--nst-ink);
	background: #FFFFFF;
	border: 1px solid transparent;
	border-radius: 0;
	transition: border-color .2s var(--nst-ease);
}

.nst-contact .nst-contact__form .sow-form-field textarea {
	min-height: 130px;
	resize: vertical;
}

.nst-contact .nst-contact__form .sow-form-field .sow-text-field::placeholder,
.nst-contact .nst-contact__form .sow-form-field textarea::placeholder {
	color: #9A9184;
}

.nst-contact .nst-contact__form .sow-form-field .sow-text-field:focus,
.nst-contact .nst-contact__form .sow-form-field textarea:focus {
	border-color: var(--nst-brass-light);
	outline: 2px solid var(--nst-brass-light);
	outline-offset: 1px;
}

.nst-contact .nst-contact__form .sow-form-field .sow-form-field-description {
	margin: 6px 0 0;
	font-size: 13px;
	font-style: normal;
	color: rgba(250, 247, 241, 0.72);
}

.nst-contact .nst-contact__form .sow-form-field .sow-form-field-required {
	color: var(--nst-brass);
}

/* Lomake-elementin (<form id="contact-form-XXXX">) oma tausta.
   HUOM: id on SiteOriginin generoima — tpl/default.php muodostaa sen
   vimpaimen asetusten tiivisteestä (substr($storage_hash, 0, 4)), joten se
   VAIHTUU aina kun lomaketta muokataan. Siksi kohdistus tehdään luokalla. */
.nst-contact .nst-contact__form .sow-contact-form {
	background: var(--nst-teal-panel);
	/* SiteOriginin generoima tyyli antaa lomakkeelle harmaan #c0c0c0-reunan
	   ja #f2f2f2-taustan; molemmat kumotaan tässä. */
	border: 0;
}

/* Submit */

.nst-contact .nst-contact__form .sow-contact-form .sow-submit-styled .sow-submit {
	min-height: 52px;
	padding: 0 34px;
	font-family: var(--nst-sans);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--nst-teal-panel);
	background: var(--nst-paper);
	border: 0;
	border-radius: 0;
	cursor: pointer;
	transition: background-color .25s var(--nst-ease);
}

.nst-contact .nst-contact__form .sow-contact-form .sow-submit-styled .sow-submit:hover,
.nst-contact .nst-contact__form .sow-contact-form .sow-submit-styled .sow-submit:focus {
	background: var(--nst-brass-light);
	color: var(--nst-teal-panel);
}

.nst-contact .nst-contact__form .sow-contact-form .sow-submit-styled .sow-submit:disabled {
	background: rgba(250, 247, 241, 0.28);
	color: rgba(250, 247, 241, 0.6);
	border: 0;
	cursor: not-allowed;
}

/* Messages — warm error tones rather than the widget's default pink */

.nst-contact .nst-contact__form .sow-contact-form .sow-error {
	background: #F6E7E4;
	border: 0;
	border-left: 3px solid #8C2F22;
	border-radius: 0;
	color: #6E2419;
	padding: 13px 16px;
	margin-bottom: 20px;
	font-size: 15px;
}

.nst-contact .nst-contact__form .sow-contact-form .sow-error a { color: #6E2419; }

.nst-contact .nst-contact__form .siteorigin-widget-form-sent,
.nst-contact .nst-contact__form .sow-success {
	background: var(--nst-stone);
	border: 0;
	border-left: 3px solid var(--nst-teal);
	border-radius: 0;
	color: var(--nst-ink);
	padding: 13px 16px;
	margin-bottom: 20px;
	font-size: 15px;
}

/* -----------------------------------------------------------------------
   10. Footer
   -------------------------------------------------------------------- */

.nst-footer {
	background: var(--nst-teal-deep);
	/* Sama vaimennettu messinki kuin osioiden tilikirjaviivassa. */
	border-top: 1px solid rgba(180, 134, 60, 0.35);
	color: rgba(250, 247, 241, 0.7);
	padding: 26px var(--nst-gutter) 26px calc(var(--nst-rail) + 40px);
	font-size: 13px;
}
.nst-footer__inner {
	max-width: var(--nst-wrap);
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
}
.nst-footer a { color: var(--nst-brass-light); text-decoration: none; }
.nst-footer a:hover { color: var(--nst-paper); }
/* Brändi vasemmalle, copyright ja tekijätieto oikealle pariksi. */
.nst-footer__brand { display: flex; align-items: baseline; gap: 12px; margin-right: auto; }
.nst-footer__legal::before,
.nst-footer__credit::before {
	content: '';
	display: inline-block;
	width: 1px;
	height: 11px;
	margin-right: 16px;
	background: rgba(250, 247, 241, 0.28);
	vertical-align: -1px;
}
.nst-footer__brand b {
	font-family: var(--nst-serif);
	font-size: 19px;
	font-weight: 600;
	letter-spacing: 0.16em;
	color: var(--nst-paper);
}
.nst-footer__brand span {
	font-family: var(--nst-serif);
	font-size: 19px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--nst-paper);
}

/* -----------------------------------------------------------------------
   11. Blog fallback (index / single / archive)
   -------------------------------------------------------------------- */

.nst-page { padding-top: 140px; }
/* Asiakirjasivut (tietosuojaseloste) käyttävät tätä palstaa. .nst-wrap on
   tehty osioille, joissa oikea reuna tulee osion omasta paddingista; yksin
   käytettynä teksti osuisi kapealla näytöllä suoraan ruudun reunaan. */
.nst-page .nst-wrap { padding-right: var(--nst-gutter); }
.nst-post { max-width: 72ch; margin: 0 auto 64px; }
.nst-post h1, .nst-post h2 { margin-bottom: 16px; }
.nst-post__meta { font-size: 14px; color: var(--nst-slate); margin-bottom: 20px; }
.nst-pagination { max-width: 72ch; margin: 0 auto; display: flex; gap: 16px; }

/* -----------------------------------------------------------------------
   12. Scroll reveal
   -------------------------------------------------------------------- */

.nst-reveal {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity .55s var(--nst-ease), transform .55s var(--nst-ease);
}
.nst-reveal.is-visible { opacity: 1; transform: none; }

/* -----------------------------------------------------------------------
   13. Responsive
   -------------------------------------------------------------------- */

@media (max-width: 1180px) {
	.nst-services__head { gap: 48px; }
	.nst-location { gap: 48px; }
	.nst-location__text { width: 400px; }
	.nst-contact__side { width: auto; }
	.nst-staff__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
}

@media (max-width: 900px) {
	:root { --nst-rail: 24px; }

	.nst-header { padding-left: calc(var(--nst-rail) + 20px); }
	.nst-wrap { padding-left: 20px; }
	.nst-footer { padding-left: calc(var(--nst-rail) + 20px); }
	.nst-hero__foot { left: calc(var(--nst-rail) + 20px); }

	.nst-burger { display: flex; }

	.nst-nav {
		position: fixed;
		top: 0; right: 0;
		width: min(320px, 86vw);
		height: 100dvh;
		background: var(--nst-paper);
		padding: 92px 28px 28px;
		transform: translateX(100%);
		transition: transform .32s var(--nst-ease);
		box-shadow: -12px 0 40px rgba(31, 27, 22, 0.14);
		overflow-y: auto;
	}
	.nst-nav.is-open { transform: none; }
	.nst-nav ul { flex-direction: column; gap: 4px; }
	.nst-nav a {
		display: block;
		padding: 14px 0;
		font-size: 17px;
		color: var(--nst-ink);
		border-bottom: 1px solid var(--nst-stone);
	}
	.nst-nav a.is-active { color: var(--nst-teal); border-bottom-color: var(--nst-brass); }

	.nst-services__head,
	.nst-location { flex-direction: column; }

	.nst-contact { padding-left: calc(var(--nst-rail) + 20px); padding-right: var(--nst-gutter); }
	.nst-services__intro,
	.nst-location__text,
	.nst-contact__side { width: 100%; max-width: none; }

	.nst-ledger__row { flex-wrap: wrap; gap: 8px 20px; }
	.nst-ledger__name { width: calc(100% - 46px); }
	.nst-ledger__desc { width: 100%; padding-left: 46px; }

	.nst-ledger__head span:last-child { display: none; }
	.nst-ledger__head span:first-child { width: auto; }

	.nst-steps__grid { grid-template-columns: 1fr; gap: 28px; }

	.nst-staff__head { flex-direction: column; align-items: flex-start; gap: 28px; }
	.nst-staff__stat { text-align: left; }
}

@media (max-width: 560px) {
	/* Brändi kapealla näytöllä: 22 harvennettua versaalia ei mahdu
	   hampurilaispainikkeen viereen, joten koko ja välistys pienenevät. */
	.nst-brand { gap: 8px; }
	.nst-brand__tag,
	.nst-brand__name {
		font-size: clamp(12px, 3.6vw, 19px);
		letter-spacing: 0.06em;
	}

	/* Sama kapean näytön kutistus alatunnisteen brändille. Siinä ei ole
	   hampurilaispainiketta vieressä, joten tilaa on hieman enemmän. */
	.nst-footer__brand { gap: 8px; }
	.nst-footer__brand span,
	.nst-footer__brand b {
		font-size: clamp(15px, 5.2vw, 19px);
		letter-spacing: 0.08em;
	}

	.nst-hero { padding-top: 108px; padding-bottom: 150px; }
	.nst-hero__actions { flex-direction: column; align-items: stretch; }
	.nst-hero__actions .nst-btn { width: 100%; }
	.nst-hero__foot { flex-direction: column; align-items: flex-start; gap: 12px; bottom: 30px; }
	.nst-hero__meta { gap: 6px 24px; }

	.nst-staff__grid { grid-template-columns: 1fr; }
	.nst-fact { flex-direction: column; gap: 4px; }
	.nst-fact__value { text-align: left; }
	.nst-map__foot { flex-direction: column; align-items: flex-start; gap: 10px; }
	.nst-steps__cta { flex-direction: column; align-items: stretch; }
}

/* -----------------------------------------------------------------------
   14. Motion / print preferences
   -------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
	}
	.nst-reveal { opacity: 1; transform: none; }
	.nst-progress span { transition: none !important; }

}

@media print {
	.nst-header, .nst-burger, .nst-progress { display: none; }
	body { background: #FFFFFF; color: #000000; }
	.nst-hero, .nst-contact { background: #FFFFFF; color: #000000; }
}
