/*
Theme Name: Infin-IT 2026
Theme URI: https://www.infin-it.fi/
Author: Infin-IT Oy
Author URI: https://www.infin-it.fi/
Description: Infin-IT Oy:n verkkosivuston ulkoasu-uudistus (suunta 1c). Typografinen, laatikoton ilme lämpimällä luonnonvalkoisella pohjalla. Kaikki tekstit, kuvat, logot, palvelut ja yhteystiedot ovat muokattavissa WordPressin hallinnasta.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: infin-it-2026
Tags: one-column, custom-logo, custom-menu, editor-style, translation-ready
*/

/* ==========================================================================
   1. Fontit (self-hostattu, GDPR)
   ========================================================================== */

@font-face {
	font-family: 'Source Serif 4';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('assets/fonts/source-serif-4-latin-ext.woff2') format('woff2');
	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: 'Source Serif 4';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('assets/fonts/source-serif-4-latin.woff2') format('woff2');
	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;
}

@font-face {
	font-family: 'Instrument Sans';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('assets/fonts/instrument-sans-latin-ext.woff2') format('woff2');
	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: 'Instrument Sans';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('assets/fonts/instrument-sans-latin.woff2') format('woff2');
	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;
}

/* ==========================================================================
   2. Design-tokenit
   ========================================================================== */

:root {
	--bg: #FAF7F2;
	--ink: #211E1A;
	--ink-muted: #57534B;
	--ink-faint: #9A907F;
	--rule: #E7E0D5;
	--accent: #2E7D74;
	--accent-tint: #F3EEE6;
	--dark-bg: #211E1A;
	--dark-text: #FAF7F2;
	--dark-muted: #B5AC9E;
	--dark-rule: #4A443C;
	--footer-bg: #181511;
	--footer-text: #8B8272;
	--error: #B3543F;

	--font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
	--font-sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--font-mono: ui-monospace, Menlo, Consolas, 'Courier New', monospace;

	--page-max: 1240px;
	--gutter: 64px;
	--radius-pill: 999px;
	--radius-img: 4px;
}

/* ==========================================================================
   3. Perusta
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--accent);
}

h1, h2, h3, h4 {
	font-family: var(--font-serif);
	font-weight: 600;
	text-wrap: pretty;
	margin: 0;
}

p {
	margin: 0 0 16px;
}

p:last-child {
	margin-bottom: 0;
}

button {
	font: inherit;
	color: inherit;
}

::selection {
	background: var(--accent);
	color: var(--dark-text);
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999;
	background: var(--ink);
	color: var(--dark-text);
	padding: 12px 22px;
	border-radius: 0 0 var(--radius-img) 0;
	font-size: 15px;
	text-decoration: none;
}

.skip-link:focus {
	left: 0;
}

/* ==========================================================================
   4. Layout
   ========================================================================== */

.site {
	max-width: var(--page-max);
	margin: 0 auto;
	background: var(--bg);
}

.wrap {
	padding-left: var(--gutter);
	padding-right: var(--gutter);
}

.eyebrow {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--accent);
	line-height: 1.4;
}

.lede {
	font-size: 18px;
	line-height: 1.75;
	color: var(--ink-muted);
	max-width: 58ch;
}

/* ==========================================================================
   5. Header ja navigaatio
   ========================================================================== */

.site-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 24px var(--gutter);
	border-bottom: 1px solid var(--rule);
}

.site-brand {
	display: inline-flex;
	align-items: center;
	line-height: 0;
	flex: none;
}

.site-brand img {
	height: 36px;
	width: auto;
}

.site-brand .site-title-text {
	font-family: var(--font-serif);
	font-size: 24px;
	font-weight: 600;
	color: var(--ink);
	text-decoration: none;
	line-height: 1.2;
}

.main-nav {
	display: flex;
	align-items: center;
	gap: 34px;
	font-size: 15px;
}

.main-nav ul {
	display: flex;
	align-items: center;
	gap: 34px;
	list-style: none;
	margin: 0;
	padding: 0;
}

/* :not(.nav-cta) — muuten nama saannot voittaisivat pilleripainikkeen
   reunan ja padding-arvot, ja pillerin alareuna jaisi auki. */
.main-nav a:not(.nav-cta) {
	color: var(--ink);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	padding-bottom: 2px;
	transition: color 150ms ease, border-color 150ms ease;
}

.main-nav a:not(.nav-cta):hover {
	color: var(--accent);
	border-bottom-color: var(--accent);
}

.main-nav .current-menu-item > a,
.main-nav .current_page_item > a,
.main-nav a[aria-current='page'] {
	color: var(--accent);
	font-weight: 600;
}

.nav-cta {
	border: 1px solid var(--ink);
	padding: 10px 22px;
	border-radius: var(--radius-pill);
	font-size: 14px;
	font-weight: 500;
	color: var(--ink);
	text-decoration: none;
	white-space: nowrap;
	transition: background 160ms ease, color 160ms ease;
}

.nav-cta:hover {
	background: var(--ink);
	color: var(--dark-text);
}

.nav-toggle {
	display: none;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	background: none;
	border: 0;
	padding: 10px;
	margin: -10px;
	cursor: pointer;
	min-width: 44px;
	min-height: 44px;
}

.nav-toggle span {
	display: block;
	height: 2px;
	background: var(--ink);
	margin: 4px 0;
	transition: transform 200ms ease, opacity 200ms ease, width 200ms ease;
}

.nav-toggle span:nth-child(1),
.nav-toggle span:nth-child(2) {
	width: 22px;
}

.nav-toggle span:nth-child(3) {
	width: 14px;
}

.nav-toggle[aria-expanded='true'] span:nth-child(1) {
	transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded='true'] span:nth-child(2) {
	opacity: 0;
}

.nav-toggle[aria-expanded='true'] span:nth-child(3) {
	width: 22px;
	transform: translateY(-6px) rotate(-45deg);
}

/* ==========================================================================
   6. Napit
   ========================================================================== */

.btn {
	display: inline-block;
	border: 0;
	border-radius: var(--radius-pill);
	font-family: var(--font-sans);
	font-weight: 500;
	font-size: 15px;
	line-height: 1.4;
	text-decoration: none;
	cursor: pointer;
	transition: background 160ms ease, color 160ms ease;
}

.btn--primary {
	background: var(--ink);
	color: var(--dark-text);
	padding: 15px 32px;
}

.btn--primary:hover {
	background: var(--accent);
	color: var(--dark-text);
}

.btn--light {
	background: var(--dark-text);
	color: var(--ink);
	padding: 14px 36px;
	justify-self: start;
}

.btn--light:hover {
	background: var(--dark-muted);
}

.btn--ghost {
	background: transparent;
	color: var(--dark-text);
	padding: 13px 30px;
	border: 1px solid var(--dark-rule);
}

.btn--ghost:hover {
	border-color: var(--dark-text);
	background: rgba(250, 250, 250, .08);
}

.btn--text {
	font-weight: 500;
	font-size: 15px;
	color: var(--ink);
	text-decoration: none;
	border-bottom: 1px solid var(--ink);
	padding-bottom: 2px;
	transition: color 150ms ease, border-color 150ms ease;
}

.btn--text:hover {
	color: var(--accent);
	border-bottom-color: var(--accent);
}

.link-arrow {
	display: inline-block;
	font-weight: 500;
	font-size: 15px;
	color: var(--accent);
	text-decoration: none;
	border-bottom: 1px solid var(--accent);
	padding-bottom: 2px;
}

.link-arrow:hover {
	opacity: .75;
}

/* ==========================================================================
   7. Hero
   ========================================================================== */

.hero {
	padding: 96px var(--gutter) 72px;
	max-width: 920px;
}

.hero__title {
	font-size: 58px;
	line-height: 1.1;
	letter-spacing: -.01em;
	margin: 0 0 28px;
}

.hero__lede {
	margin: 0 0 36px;
}

.hero__actions {
	display: flex;
	gap: 16px;
	align-items: center;
	flex-wrap: wrap;
}

/* Alasivun otsikko */
.page-head {
	padding: 88px var(--gutter) 56px;
	max-width: 920px;
}

.page-head .eyebrow {
	margin-bottom: 18px;
}

.page-head__title {
	font-size: 46px;
	line-height: 1.15;
	letter-spacing: -.01em;
	margin: 0;
}

.page-head__lede {
	margin: 28px 0 0;
	font-size: 17px;
	line-height: 1.8;
	color: var(--ink-muted);
	max-width: 64ch;
}

/* ==========================================================================
   8. Kuvakaista
   ========================================================================== */

.media-band {
	margin: 0 var(--gutter);
	aspect-ratio: 21 / 8;
	border-radius: var(--radius-img);
	overflow: hidden;
	background: repeating-linear-gradient(-45deg, #EFE9DF, #EFE9DF 12px, #E7DFD2 12px, #E7DFD2 24px);
	display: flex;
	align-items: center;
	justify-content: center;
}

.media-band img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.media-band__note {
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--ink-faint);
	background: var(--bg);
	padding: 6px 12px;
	border-radius: var(--radius-img);
}

/* ==========================================================================
   9. Kaksipalstainen osio (.8fr 1.2fr)
   ========================================================================== */

.split {
	display: grid;
	grid-template-columns: .8fr 1.2fr;
	gap: 72px;
}

.split__body h2 {
	font-size: 34px;
	line-height: 1.25;
	margin: 0 0 22px;
}

.split__body p {
	font-size: 16px;
	line-height: 1.75;
	color: var(--ink-muted);
}

.split__body p.is-lead {
	font-size: 16.5px;
	color: var(--ink);
	font-weight: 500;
}

.about-teaser {
	padding: 88px var(--gutter);
}

.about-teaser .link-arrow {
	margin-top: 8px;
}

/* Tietoa meistä -lohkot */
.about-blocks {
	padding: 72px var(--gutter) 24px;
}

.about-block {
	border-top: 1px solid var(--rule);
	padding: 44px 0;
}

.about-block:last-child {
	padding-bottom: 64px;
}

.about-block h2 {
	font-size: 30px;
	line-height: 1.25;
	margin: 0 0 18px;
}

.about-block p {
	font-size: 16px;
	line-height: 1.8;
	color: var(--ink-muted);
}

.about-block p.is-highlight {
	font-size: 16.5px;
	color: var(--ink);
	font-weight: 500;
}

/* ==========================================================================
   10. Palvelulista (etusivu)
   ========================================================================== */

.services-list {
	padding: 0 var(--gutter) 88px;
}

.services-list .eyebrow {
	margin-bottom: 36px;
}

.service-row {
	display: grid;
	grid-template-columns: 56px 1fr 1.2fr auto;
	gap: 24px;
	align-items: baseline;
	padding: 24px 0;
	border-top: 1px solid var(--rule);
	text-decoration: none;
	color: inherit;
	transition: background 150ms ease;
}

.service-row__num {
	font-family: var(--font-mono);
	font-size: 13px;
	color: var(--ink-faint);
}

.service-row__title {
	font-family: var(--font-serif);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.3;
	transition: color 150ms ease;
}

.service-row__tagline {
	font-size: 15px;
	line-height: 1.6;
	color: var(--ink-muted);
}

.service-row__arrow {
	color: var(--accent);
	font-size: 18px;
	transition: transform 150ms ease;
}

.service-row:hover {
	background: var(--accent-tint);
	box-shadow: -12px 0 0 var(--accent-tint), 12px 0 0 var(--accent-tint);
	border-radius: var(--radius-img);
}

.service-row:hover .service-row__title {
	color: var(--accent);
}

.service-row:hover .service-row__arrow {
	transform: translateX(4px);
}

/* ==========================================================================
   11. Palvelut-sivu
   ========================================================================== */

.services-full {
	padding: 0 var(--gutter) 80px;
}

.service {
	display: grid;
	grid-template-columns: 64px 340px 1fr;
	/* Rivi 1 = otsikon korkeus, rivi 2 vie loput, jotta otsikko ja iskulause
	   pysyvät ylhäällä vaikka leipäteksti olisi pitkä. */
	grid-template-rows: auto 1fr;
	grid-template-areas:
		'num title body'
		'num tagline body';
	gap: 0 36px;
	padding: 48px 0;
	border-top: 1px solid var(--rule);
	align-items: start;
}

.service__num {
	grid-area: num;
	font-family: var(--font-mono);
	font-size: 13px;
	color: var(--ink-faint);
	padding-top: 6px;
}

.service__toggle {
	grid-area: title;
	display: block;
	width: 100%;
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	text-align: left;
	cursor: default;
}

.service__title {
	font-size: 26px;
	font-weight: 600;
	line-height: 1.25;
	margin: 0 0 10px;
}

.service__icon {
	display: none;
}

.service__tagline {
	grid-area: tagline;
	font-size: 14.5px;
	color: var(--accent);
	font-weight: 500;
	line-height: 1.5;
}

.service__body {
	grid-area: body;
	font-size: 16px;
	line-height: 1.75;
	color: var(--ink-muted);
}

.service__body p {
	margin: 0 0 14px;
}

.service__body p:last-child {
	margin-bottom: 0;
}

/* ==========================================================================
   12. Yhteystietokortit
   ========================================================================== */

.contact-cards {
	padding: 0 var(--gutter) 24px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 72px;
}

.contact-card {
	padding: 32px 0;
	border-top: 1px solid var(--rule);
}

.contact-card__name {
	font-family: var(--font-serif);
	font-size: 24px;
	font-weight: 600;
	line-height: 1.3;
	margin: 0 0 6px;
}

.contact-card__role {
	font-size: 14px;
	color: var(--accent);
	font-weight: 500;
	margin-bottom: 14px;
}

.contact-card__role:empty {
	display: none;
}

.contact-card__details {
	font-size: 15.5px;
	line-height: 2;
	color: var(--ink-muted);
}

.contact-card__details a {
	color: inherit;
	text-decoration: none;
	transition: color 150ms ease;
}

.contact-card__details a:hover {
	color: var(--accent);
}

.map-band {
	margin: 24px var(--gutter) 72px;
	aspect-ratio: 21 / 7;
	border-radius: var(--radius-img);
	overflow: hidden;
	background: repeating-linear-gradient(-45deg, #EFE9DF, #EFE9DF 12px, #E7DFD2 12px, #E7DFD2 24px);
}

.map-band iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

/* ==========================================================================
   13. Yhteydenotto-osio
   ========================================================================== */

.contact-section {
	background: var(--dark-bg);
	color: var(--dark-text);
	padding: 84px var(--gutter);
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 72px;
}

.contact-section h2 {
	font-size: 36px;
	line-height: 1.2;
	margin: 0 0 18px;
}

.contact-section__intro {
	font-size: 16px;
	line-height: 1.75;
	color: var(--dark-muted);
	margin: 0;
}

.contact-section__details {
	margin-top: 30px;
	font-size: 15px;
	line-height: 2.1;
	color: var(--dark-muted);
}

.contact-section__details a {
	color: inherit;
	text-decoration: none;
	transition: color 150ms ease;
}

.contact-section__details a:hover {
	color: var(--dark-text);
}

.contact-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px;
	align-content: start;
}

.contact-form__field {
	display: flex;
	flex-direction: column;
}

.contact-form__field--full {
	grid-column: 1 / -1;
}

.contact-form label {
	font-size: 13px;
	color: var(--dark-muted);
	margin-bottom: 2px;
}

.contact-form input,
.contact-form textarea {
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--dark-rule);
	padding: 12px 2px;
	color: var(--dark-text);
	font-family: var(--font-sans);
	font-size: 15px;
	line-height: 1.6;
	border-radius: 0;
	transition: border-color 150ms ease;
}

.contact-form textarea {
	resize: vertical;
	min-height: 84px;
}

.contact-form input:focus,
.contact-form textarea:focus {
	outline: none;
	border-bottom-color: var(--dark-text);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
	color: var(--dark-muted);
	opacity: .8;
}

.contact-form .has-error input,
.contact-form .has-error textarea {
	border-bottom-color: var(--error);
}

.contact-form__error {
	font-size: 13px;
	color: var(--error);
	margin-top: 6px;
}

.contact-form__hp {
	position: absolute;
	left: -9999px;
}

.form-notice {
	grid-column: 1 / -1;
	font-size: 15px;
	line-height: 1.7;
	padding: 14px 18px;
	border-radius: var(--radius-img);
}

.form-notice--error {
	background: rgba(179, 84, 63, .16);
	color: #F0BCAF;
}

.form-thanks h3 {
	font-size: 24px;
	margin: 0 0 10px;
	color: var(--dark-text);
}

.form-thanks p {
	font-size: 15px;
	color: var(--dark-muted);
	margin: 0;
}

/* ==========================================================================
   14. Footer
   ========================================================================== */

.site-footer {
	background: var(--footer-bg);
	color: var(--footer-text);
	padding: 32px var(--gutter);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	font-size: 13.5px;
	flex-wrap: wrap;
}

.site-footer img {
	height: 34px;
	width: auto;
}

.site-footer a {
	color: inherit;
	text-decoration: none;
	transition: color 150ms ease;
}

.site-footer a:hover {
	color: var(--dark-text);
}

/* ==========================================================================
   15. Sisältösivu (page.php / 404)
   ========================================================================== */

.entry {
	padding: 0 var(--gutter) 88px;
	max-width: 70ch;
}

.entry h2 {
	font-size: 24px;
	line-height: 1.3;
	margin: 40px 0 14px;
}

.entry h3 {
	font-size: 20px;
	margin: 32px 0 12px;
}

.entry p,
.entry li {
	font-size: 16px;
	line-height: 1.8;
	color: var(--ink-muted);
}

.entry ul,
.entry ol {
	padding-left: 22px;
}

/* Napit säilyttävät omat värinsä myös sisältöalueella. */
.entry a:not(.btn):not(.link-arrow) {
	color: var(--accent);
}

/* ==========================================================================
   15b. Kiitos-sivu
   ========================================================================== */

.thanks__urgent {
	margin-top: 28px;
	font-size: 15.5px;
	line-height: 2;
	color: var(--ink-muted);
}

.thanks__urgent a {
	color: var(--ink);
	text-decoration: none;
	border-bottom: 1px solid var(--rule);
}

.thanks__urgent a:hover {
	color: var(--accent);
	border-bottom-color: var(--accent);
}

.thanks__actions {
	display: flex;
	align-items: center;
	gap: 24px;
	flex-wrap: wrap;
	margin-top: 36px;
}

/* ==========================================================================
   15c. Evastebanneri
   ========================================================================== */

.cookie-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 200;
	background: var(--dark-bg);
	color: var(--dark-text);
	border-top: 1px solid var(--dark-rule);
	animation: cookie-in 260ms ease both;
}

.cookie-banner[hidden] {
	display: none;
}

@keyframes cookie-in {
	from {
		transform: translateY(100%);
	}

	to {
		transform: translateY(0);
	}
}

.cookie-banner__inner {
	max-width: var(--page-max);
	margin: 0 auto;
	padding: 24px var(--gutter);
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 32px;
}

.cookie-banner__title {
	font-size: 19px;
	line-height: 1.3;
	margin: 0 0 6px;
}

.cookie-banner__text p {
	margin: 0;
	font-size: 14.5px;
	line-height: 1.7;
	color: var(--dark-muted);
	max-width: 70ch;
}

.cookie-banner__text a {
	color: var(--dark-text);
	text-decoration: none;
	border-bottom: 1px solid var(--dark-rule);
}

.cookie-banner__text a:hover {
	border-bottom-color: var(--dark-text);
}

.cookie-banner__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: none;
}

.cookie-banner__actions .btn {
	white-space: nowrap;
}

/* Alatunnisteen linkki, jolla valinnan voi avata uudelleen */
.cookie-reopen {
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	color: inherit;
	cursor: pointer;
	text-decoration: none;
	transition: color 150ms ease;
}

.cookie-reopen:hover {
	color: var(--dark-text);
}

/* ==========================================================================
   16. Responsiivisuus — tabletti 768–1023px
   ========================================================================== */

@media (max-width: 1023px) {
	:root {
		--gutter: 40px;
	}

	.hero {
		padding: 72px var(--gutter) 56px;
	}

	.hero__title {
		font-size: 46px;
	}

	.page-head__title {
		font-size: 38px;
	}

	.split,
	.contact-section {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.about-teaser,
	.about-blocks {
		padding-left: var(--gutter);
		padding-right: var(--gutter);
	}

	.service {
		grid-template-columns: 48px 1fr;
		grid-template-rows: auto;
		grid-template-areas:
			'num title'
			'.   tagline'
			'.   body';
		gap: 0 20px;
	}

	.service__tagline {
		margin-bottom: 16px;
	}

	.contact-cards {
		grid-template-columns: 1fr;
	}

	.service-row {
		grid-template-columns: 48px 1fr auto;
	}

	.service-row__tagline {
		grid-column: 2 / 3;
	}
}

/* ==========================================================================
   17. Responsiivisuus — mobiili <768px
   ========================================================================== */

@media (max-width: 767px) {
	:root {
		--gutter: 22px;
	}

	body {
		font-size: 15px;
		line-height: 1.7;
	}

	/* Navigaatio → hampurilainen */
	.nav-toggle {
		display: flex;
	}

	.main-nav {
		position: fixed;
		inset: 0;
		z-index: 90;
		flex-direction: column;
		align-items: flex-start;
		justify-content: flex-start;
		gap: 0;
		background: var(--bg);
		padding: 96px var(--gutter) 40px;
		transform: translateX(100%);
		transition: transform 220ms ease;
		overflow-y: auto;
	}

	.main-nav.is-open {
		transform: translateX(0);
	}

	.main-nav ul {
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
		width: 100%;
	}

	.main-nav li {
		width: 100%;
		border-bottom: 1px solid var(--rule);
	}

	.main-nav a {
		display: block;
		width: 100%;
		padding: 16px 0;
		font-size: 19px;
		min-height: 44px;
	}

	.nav-cta {
		margin-top: 28px;
		padding: 14px 28px;
		font-size: 15px;
	}

	.site-header {
		position: relative;
		z-index: 100;
		padding: 18px var(--gutter);
	}

	.site-brand img {
		height: 30px;
	}

	/* Typografia */
	.hero {
		padding: 48px var(--gutter) 40px;
	}

	.hero__title {
		font-size: 33px;
		line-height: 1.15;
		margin-bottom: 20px;
	}

	.lede,
	.hero__lede {
		font-size: 15.5px;
		line-height: 1.7;
		margin-bottom: 28px;
	}

	.hero__actions {
		gap: 20px;
	}

	.btn--primary {
		padding: 14px 26px;
	}

	.page-head {
		padding: 48px var(--gutter) 32px;
	}

	.page-head__title {
		font-size: 29px;
		line-height: 1.2;
	}

	.page-head__lede {
		font-size: 15px;
		margin-top: 20px;
	}

	.eyebrow {
		font-size: 12px;
	}

	/* Kuvakaistat 21:8 → 4:3 */
	.media-band {
		aspect-ratio: 4 / 3;
	}

	.map-band {
		aspect-ratio: 4 / 3;
		margin-bottom: 48px;
	}

	.about-teaser {
		padding: 48px var(--gutter);
	}

	.split__body h2 {
		font-size: 25px;
		margin-bottom: 16px;
	}

	.split__body p,
	.about-block p {
		font-size: 14.5px;
		line-height: 1.7;
	}

	.about-blocks {
		padding: 40px var(--gutter) 16px;
	}

	.about-block {
		padding: 32px 0;
	}

	.about-block h2 {
		font-size: 22px;
	}

	/* Etusivun palvelulista */
	.services-list {
		padding: 0 var(--gutter) 48px;
	}

	.services-list .eyebrow {
		margin-bottom: 22px;
	}

	.service-row {
		grid-template-columns: 40px 1fr auto;
		gap: 4px 12px;
		padding: 18px 0;
		align-items: start;
	}

	.service-row__num {
		font-size: 12px;
		padding-top: 4px;
	}

	.service-row__title {
		font-size: 18px;
	}

	.service-row__tagline {
		grid-column: 2 / 3;
		font-size: 13.5px;
		line-height: 1.55;
	}

	.service-row__arrow {
		grid-row: 1 / 2;
		grid-column: 3 / 4;
	}

	.service-row:hover {
		box-shadow: -10px 0 0 var(--accent-tint), 10px 0 0 var(--accent-tint);
	}

	/* Palvelut-sivu → haitari */
	.services-full {
		padding: 0 var(--gutter) 48px;
	}

	.service {
		grid-template-columns: 40px 1fr;
		grid-template-rows: auto;
		grid-template-areas:
			'num title'
			'.   tagline'
			'.   body';
		gap: 0;
		padding: 0;
		border-top: 1px solid var(--rule);
	}

	.service__num {
		font-size: 12px;
		padding-top: 22px;
	}

	.service__toggle {
		display: flex;
		align-items: baseline;
		justify-content: space-between;
		gap: 12px;
		padding: 18px 0;
		min-height: 44px;
		cursor: pointer;
	}

	.service__title {
		font-size: 19px;
		margin: 0;
	}

	.service__icon {
		display: block;
		font-family: var(--font-mono);
		font-size: 18px;
		color: var(--ink-faint);
		line-height: 1;
		flex: none;
	}

	.service[data-open='true'] .service__icon {
		color: var(--accent);
	}

	.service__tagline {
		font-size: 14px;
		padding: 16px 0 0 30px;
		margin: 0;
	}

	.service__body {
		font-size: 14.5px;
		line-height: 1.7;
		padding: 12px 0 22px 30px;
	}

	.service.is-collapsed .service__tagline,
	.service.is-collapsed .service__body {
		display: none;
	}

	/* Yhteystiedot */
	.contact-cards {
		padding: 0 var(--gutter) 8px;
	}

	.contact-card {
		padding: 24px 0;
	}

	.contact-card__name {
		font-size: 21px;
	}

	.contact-card__details {
		font-size: 15px;
		line-height: 1.9;
	}

	/* Yhteydenotto */
	.contact-section {
		padding: 48px var(--gutter);
		gap: 32px;
	}

	.contact-section h2 {
		font-size: 26px;
	}

	.contact-section__intro,
	.contact-section__details {
		font-size: 15px;
	}

	.contact-form {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.btn--light {
		padding: 14px 32px;
	}

	/* Footer */
	.site-footer {
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
		padding: 28px var(--gutter);
		font-size: 13px;
	}

	.entry {
		padding: 0 var(--gutter) 48px;
	}
}

@media (max-width: 767px) {
	.cookie-banner__inner {
		grid-template-columns: 1fr;
		gap: 18px;
		padding: 20px var(--gutter);
	}

	.cookie-banner__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.cookie-banner__actions .btn {
		text-align: center;
		width: 100%;
	}

	.cookie-banner__title {
		font-size: 17px;
	}

	.cookie-banner__text p {
		font-size: 14px;
	}

	.thanks__actions {
		gap: 18px;
	}
}

/* ==========================================================================
   18. Liikkeen vähentäminen
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		transition-duration: .01ms !important;
	}
}
