/* Saumasaneeraus – pääasiallinen tyylitiedosto */
:root {
	--ss-dark: #12232e;
	--ss-button: #203647;
	--ss-grey: #444;
	--ss-heading: #222;
	--ss-text: #444;
	--ss-link: #4da8da;
	--ss-light: #f7f7f7;
	--ss-border: #ddd;
	--ss-radius: 10px;
	--ss-max: 1200px;
	--ss-font: "Montserrat", "Montserrat Fallback", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--ss-font);
	font-size: 18px;
	line-height: 1.22;
	color: var(--ss-text);
	background: #fff;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--ss-link); }
a:hover { text-decoration: none; }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--ss-font);
	color: var(--ss-heading);
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 .6em;
}
h1 { font-size: 48px; }
h2 { font-size: 36px; }
h3 { font-size: 30px; }
h4, h5 { font-size: 22px; }
p { margin: 0 0 1em; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: #fff;
	box-shadow: none;
}
.admin-bar .site-header { top: 32px; }
.site-header__inner {
	height: 99px; padding: 0 40px;
	display: flex; align-items: center; justify-content: space-between; gap: 30px;
}
.site-logo img { display: block; width: 426px; max-width: 100%; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 31px; }
.site-nav a {
	display: block; padding: 6px 0;
	color: #616161; font-size: 22px; font-weight: 700; letter-spacing: .03em; text-decoration: none;
	transition: color .2s;
}
.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a { color: var(--ss-link); }
.site-nav .sub-menu { display: none; }
.nav-toggle { display: none; }

/* ---------- Painikkeet ---------- */
.ss-button,
.wp-block-button__link,
.wp-element-button {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-width: 200px; min-height: 43px; padding: 8px 30px;
	background: var(--ss-button); color: #fff;
	font-family: var(--ss-font); font-size: 18px; font-weight: 700;
	border: 0; border-radius: 8px;
	text-decoration: none; cursor: pointer;
	transition: background .2s, color .2s;
}
.ss-button:hover,
.wp-block-button__link:hover { background: var(--ss-dark); color: #fff; }
.ss-button--phone { width: 250px; justify-content: flex-start; gap: 30px; padding: 0 20px; font-size: 20px; }

/* ---------- Banneri ---------- */
.banner {
	position: relative;
	background-color: #585858; background-size: cover; background-position: 50% 50%;
	padding: 200px 40px;
	text-align: center; color: #fff;
}
.banner::before { content: ""; position: absolute; inset: 0; background: #000; opacity: .2; }
.banner__inner { position: relative; max-width: 900px; margin: 0 auto; }
.banner__title { color: #fff; font-size: 60px; margin: 0 0 .3em; }
.banner__sub { margin: 0; font-size: 20px; color: #fff; }
.banner__kicker { color: #fff; font-size: 24px; font-weight: 700; margin: 1em 0 .8em; }
.banner--home { min-height: 718px; display: flex; align-items: center; justify-content: center; padding: 60px 40px; }
.banner--home .banner__inner { max-width: 1000px; }

/* ---------- Sisältö ---------- */
.entry-content > *:not(.alignfull):not(.section):not(.wp-block-group) {
	max-width: var(--ss-max); margin-left: auto; margin-right: auto; padding-left: 40px; padding-right: 40px;
}
.entry-content > :first-child { margin-top: 0; }
.section { padding: 80px 40px; }
.section > .wp-block-group__inner-container,
.section > .section__inner,
.section.is-layout-constrained > * { max-width: var(--ss-max); margin-left: auto; margin-right: auto; }
.section--narrow > * { max-width: 900px; margin-left: auto; margin-right: auto; }
.section--light { background: var(--ss-light); }
.section--dark {
	position: relative; color: #eefbfb;
	background-color: var(--ss-dark); background-size: cover; background-position: 50% 50%;
}
.section--dark::before { content: ""; position: absolute; inset: 0; background: var(--ss-grey); opacity: .92; }
.section--dark > * { position: relative; }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4,
.section--dark p, .section--dark li { color: #eefbfb; }
.section--dark a { color: #fff; }
.section--navy { background: var(--ss-dark); color: #eefbfb; }
.section--navy h2, .section--navy h3, .section--navy p, .section--navy li { color: #eefbfb; }

.intro__lead, .intro__lead strong { font-size: 26px; font-weight: 700; color: var(--ss-link); margin: -.3em 0 1em; }
.rounded-img img, img.rounded-img { border-radius: var(--ss-radius); }
.wp-block-columns { gap: 50px; }
.wp-block-column h3 { font-size: 26px; }

.check-list { list-style: none; padding: 0; margin: 0 0 1em; }
.check-list li { position: relative; padding-left: 34px; margin-bottom: .5em; }
.check-list li::before {
	content: ""; position: absolute; left: 0; top: .35em;
	width: 20px; height: 20px; border-radius: 50%; background: var(--ss-link);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10'/%3E%3C/svg%3E");
}
.check-list li::after {
	content: ""; position: absolute; left: 7px; top: calc(.35em + 4px);
	width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}

.image-card {
	border-radius: var(--ss-radius); background-size: cover; background-position: 50% 50%; min-height: 360px;
}

/* ---------- Logot ---------- */
.logos { background: #fff; box-shadow: 0 -6px 8px -6px rgba(0, 0, 0, .18); position: relative; z-index: 2; }
.logos__inner {
	max-width: 1220px; margin: 0 auto; padding: 100px 10px;
	display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; justify-items: center; gap: 20px;
}
.logos img { display: block; max-height: 95px; max-width: 220px; width: auto; }
.logos img[alt="Tilaajavastuu.fi"] { height: 82px; max-height: none; }
.logos img[alt="Luotettava Kumppani"] { height: 90px; max-height: none; }

/* ---------- Tarjouspyyntö ---------- */
.cta { background: #fff; padding: 0 40px 80px; }
.cta__inner {
	max-width: var(--ss-max); margin: 0 auto;
	display: grid; grid-template-columns: 5fr 7fr; gap: 70px; align-items: start;
	border-top: 1px solid var(--ss-border); padding-top: 80px;
}
.ss-form { padding: 20px 0 0; }
.ss-form h3 { font-size: 26px; }
.ss-form label { display: block; font-size: 18px; margin-bottom: 14px; }
.ss-form input, .ss-form textarea {
	display: block; width: 100%; height: 40px; margin-top: 5px; padding: 8px 10px;
	font: inherit; color: #333;
	background: #f9f9f9; border: 1px solid var(--ss-border); border-radius: 0;
}
.ss-form input:focus, .ss-form textarea:focus { outline: 2px solid var(--ss-link); border-color: transparent; }
.ss-form__hp { position: absolute; left: -9999px; }
.ss-form__notice { padding: 12px 15px; border-radius: 4px; font-size: 16px; }
.ss-form__notice--ok { background: #e3f4e8; color: #1c5c2e; }
.ss-form__notice--error { background: #fde5e5; color: #8a1f1f; }

/* ---------- Footer ---------- */
.site-footer { background: #000; color: #fff; font-size: 18px; }
.site-footer__inner {
	max-width: 1200px; margin: 0 auto; padding: 85px 0 60px;
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
}
.site-footer h4 { color: #fff; font-size: 22px; margin-bottom: .5em; }
.site-footer__col:first-child h4 { font-size: 26px; margin-top: 3px; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--ss-link); text-decoration: none; }
.site-footer__badge { display: block; width: 100px; }
.site-footer__bottom {
	max-width: var(--ss-max); margin: 0 auto; padding: 20px 40px 40px;
	text-align: center; font-size: 14px;
}

.call-fab {
	display: none; position: fixed; right: 18px; bottom: 18px; z-index: 60;
	width: 56px; height: 56px; border-radius: 50%;
	align-items: center; justify-content: center;
	background: var(--ss-dark); color: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
}

/* ---------- Responsiivisuus ---------- */
@media (max-width: 1024px) {
	.site-header__inner { height: auto; padding: 14px 20px; }
	.site-nav a { font-size: 18px; }
	.overlap__box { margin: -60px 20px 0 !important; }
	.overlap__img img { width: 100%; }
	.ss-form__row { grid-template-columns: 1fr; gap: 0; }
	.ss-button[type=submit] { margin-top: 20px; }
	.logos__inner { grid-template-columns: repeat(3, 1fr); padding: 50px 20px; }
	.banner--home { min-height: 480px; }
	h1, .banner__title { font-size: 38px; }
	h2 { font-size: 30px; }
	h3 { font-size: 24px; }
	.site-logo img { width: 280px; }
	.nav-toggle {
		display: block; position: relative; width: 44px; height: 44px;
		background: none; border: 0; cursor: pointer;
	}
	.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
		position: absolute; left: 10px; width: 24px; height: 3px; background: #333; content: "";
		transition: transform .2s;
	}
	.nav-toggle__bar { top: 20px; }
	.nav-toggle__bar::before { left: 0; top: -8px; }
	.nav-toggle__bar::after { left: 0; top: 8px; }
	.nav-open .nav-toggle__bar { background: transparent; }
	.nav-open .nav-toggle__bar::before { transform: translateY(8px) rotate(45deg); }
	.nav-open .nav-toggle__bar::after { transform: translateY(-8px) rotate(-45deg); }
	.site-nav {
		display: none; position: absolute; top: 100%; left: 0; right: 0;
		background: #fff; box-shadow: 0 8px 12px rgba(0, 0, 0, .1);
	}
	.site-nav.is-open { display: block; }
	.site-nav ul { flex-direction: column; padding: 10px 25px 20px; }
	.site-nav a { padding: 10px 0; border-bottom: 1px solid #eee; }
	.banner, .banner--home { padding: 120px 25px; }
	.cta__inner { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 782px) {
	.admin-bar .site-header { top: 0; }
	body { font-size: 16px; }
	h1, .banner__title { font-size: 30px; }
	h2 { font-size: 26px; }
	.section, .cta { padding: 50px 20px; }
	.entry-content > *:not(.alignfull):not(.section):not(.wp-block-group) { padding-left: 20px; padding-right: 20px; }
	.site-footer__inner { grid-template-columns: 1fr; gap: 20px; padding: 40px 20px 20px; }
	.banner__title { font-size: 34px; }
	.logos__inner { grid-template-columns: repeat(2, 1fr); }
	.site-footer__bottom { padding: 20px; }
	.logos__inner { padding: 25px 20px; gap: 20px; }
	.logos img { max-height: 60px; }
	.call-fab { display: inline-flex; }
}

/* ---------- Etusivun osiot ---------- */
.section--intro .wp-block-columns { gap: 50px; align-items: center; }
.section--intro .wp-block-column:first-child { flex-basis: 670px !important; }
.section--intro .wp-block-column:last-child { flex-basis: 480px !important; }
.section--intro h1 { margin-bottom: .1em; }
.section--dark.section--features { padding: 100px 60px 90px; }
.section--features > .wp-block-group__inner-container { max-width: none; }
.section--features .wp-block-columns { gap: 40px; }
.section--features .wp-block-column { text-align: center; }
.section--features h3 { font-size: 30px; margin-bottom: .4em; }
.section--features .wp-block-column p { font-size: 18px; }
.section--features a { color: var(--ss-link); text-decoration: none; }
.feature-icon { color: #eefbfb; margin-bottom: 26px; }
.feature-icon svg { width: 76px; height: 76px; display: inline-block; }

.section--overlap { padding: 80px 40px 80px; }
.section--overlap > .wp-block-group__inner-container,
.section--overlap.is-layout-constrained { position: relative; }
.overlap__img { max-width: 600px !important; margin: 0 !important; }
.overlap__img img { width: 600px; display: block; }
.overlap__box {
	position: relative; max-width: 600px !important;
	margin: -232px 0 0 520px !important;
	background: var(--ss-dark); border-radius: var(--ss-radius);
	padding: 45px 40px 50px;
}
.overlap__box h2 { color: #fff; font-size: 36px; margin-bottom: .5em; }
.dot-list { margin: 0; padding-left: 36px; color: #fff; }
.dot-list li { color: #fff; }

/* ---------- Tarjouspyyntö (alkuperäisen mukainen) ---------- */
.cta__text { text-align: center; padding-top: 40px; }
.cta__icon { width: 150px; height: 120px; color: var(--ss-link); display: block; margin: 0 auto 30px; }
.cta__text h2 { font-size: 36px; margin-bottom: .4em; }
.cta__text p { font-size: 18px; }
.ss-form__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.ss-button[type=submit] { width: 280px; text-transform: uppercase; margin-top: 90px; }
.ss-form textarea { height: 80px; resize: vertical; }

/* ---------- Alasivut ---------- */
.banner--image { height: 500px; padding: 0; }
.banner--image::before { display: none; }
.banner-map { height: 332px; background: #e4e4e7; }
.banner-map iframe { display: block; width: 100%; height: 100%; border: 0; }

.section--pageintro { padding: 78px 40px 80px; }
.section--pageintro h1 { font-size: 48px; margin-bottom: .05em; }
.section--pageintro .intro__lead { margin: 0 0 .5em; }
.section--pageintro .wp-block-columns { gap: 60px; align-items: flex-start; }
.section--pageintro .wp-block-column:first-child { flex-basis: 740px !important; }
.section--pageintro .wp-block-column:last-child { flex-basis: 400px !important; position: relative; }
.is-centered { text-align: center; }
.is-centered > .wp-block-group__inner-container > * { max-width: 1200px; margin-left: auto; margin-right: auto; }

.image-card--tall { width: 400px; height: 480px; min-height: 0; }
.floating-box {
	position: absolute; top: 40px; left: -40px; width: 400px;
	background: var(--ss-button); color: #fff; padding: 22px 20px 30px;
}
.floating-box h3 { color: #fff; font-size: 30px; margin-bottom: .4em; }
.floating-box .dot-list { padding-left: 42px; font-size: 16px; }

.section--cards { position: relative; padding: 0 25px 160px; background: #fff; }
/* Taustakuva alkaa 80 px korttien yläreunan alapuolelta, kuten alkuperäisessä */
.section--cards::before,
.section--cards::after { content: ""; position: absolute; left: 0; right: 0; top: 80px; bottom: 0; }
.section--cards::before {
	background: var(--ss-dark) url(../img/rakennus.jpg) no-repeat 50% 100px / cover fixed;
}
.section--cards::after { background: #444; opacity: .3; }
.section--cards > .wp-block-group__inner-container { max-width: none; position: relative; z-index: 1; }
.section--cards .wp-block-columns { gap: 30px; }
.section--cards .wp-block-column {
	background: var(--ss-dark); border-radius: var(--ss-radius);
	padding: 40px 20px; text-align: center;
}
.section--cards h3 { color: #fff; font-size: 30px; margin-bottom: .35em; }
.section--cards p { color: #fff; }
.section--cards .wp-block-column > :last-child { margin-bottom: 0; }

.section--cardband {
	position: relative; padding: 160px 0;
	background-color: var(--ss-dark); background-repeat: no-repeat;
	background-size: cover; background-position: 50% 100px; background-attachment: fixed;
}
/* Tummansininen kerros kuvan päällä (alkuperäisessä #12232e, 30 %) */
.section--cardband::before { content: ""; position: absolute; inset: 0; background: var(--ss-dark); opacity: .3; }
.section--cardband > .wp-block-group__inner-container { max-width: none; position: relative; z-index: 1; }
.white-card {
	width: 960px; max-width: 100%; background: #fff; border-radius: var(--ss-radius);
	padding: 48px 60px 50px;
}
.white-card h3 { font-size: 30px; margin: 0 0 .3em; }
.white-card h3 + p { margin-bottom: .6em; }
.white-card a, .section--pageintro a { text-decoration: none; }

.section--refs .ref-list { list-style: disc inside; padding: 0; margin: 1em 0 1.2em; font-size: 16px; font-weight: 700; line-height: 1.75; }
.section--refs p:not(.intro__lead) { font-size: 18px; }

.section--contact-head { padding-bottom: 20px; }
.section--contact { padding-top: 20px; }
.section--contact .wp-block-columns { gap: 60px; }
.section--contact h2 { font-size: 30px; margin-bottom: .3em; }
.section--contact p { margin-bottom: .6em; }
.see-also { padding-left: 18px; font-size: 16px; }
.see-also > li { margin-bottom: 1em; }
.see-also ul { list-style: circle; padding-left: 26px; }
.section--contact a { text-decoration: none; }

@media (max-width: 1024px) {
	.banner--image { height: 300px; }
	.floating-box { position: static; width: auto; margin-top: -60px; margin-left: 20px; margin-right: 20px; }
	.image-card--tall { width: 100%; height: 360px; }
	.section--cards { background: #212d35; padding: 40px 20px; }
	.white-card { padding: 30px 24px; }
	.section--cardband { padding: 160px 20px 40px; }
}

/* Mobiilikorjaukset työpöytäsääntöjen jälkeen */
@media (max-width: 1024px) {
	.section--overlap { padding: 50px 20px; }
	.overlap__img, .overlap__img img { width: 100%; max-width: 100% !important; }
	.overlap__box { margin: -40px 15px 0 !important; padding: 30px 24px; max-width: none !important; }
	.overlap__box h2 { font-size: 28px; }
	.logos img { max-width: 100%; }
	.section--intro .wp-block-column:first-child,
	.section--intro .wp-block-column:last-child,
	.section--pageintro .wp-block-column:first-child,
	.section--pageintro .wp-block-column:last-child { flex-basis: 100% !important; }
	.section--features { padding: 60px 20px; }
	.section--pageintro h1 { font-size: 34px; }
	.section--cardband { background-attachment: scroll; background-position: 50% 50%; }
	.ss-form__row { grid-template-columns: 1fr; gap: 0; }
	.ss-button[type=submit] { width: 100%; margin-top: 20px; }
	.cta__text { padding-top: 0; }
}

/* Header: logo 1/3, valikko 2/3 (max 956 px, alkaa palstan vasemmasta reunasta) kuten alkuperäisessä */
@media (min-width: 1025px) {
	.site-header__inner { height: auto; min-height: 99px; padding: 26px 25px; gap: 0; justify-content: flex-start; align-items: flex-start; }
	.site-logo { flex: 0 0 33.3333%; padding: 0 21px 0 15px; min-height: 47px; display: flex; align-items: center; }
	.site-logo img { width: 100%; max-width: 509px; }
	.site-nav { flex: 1 1 auto; padding-left: 1.47%; }
	.site-nav > ul { max-width: 956px; padding: 0 15px; justify-content: flex-end; flex-wrap: wrap; gap: 0; }
	.site-nav > ul > li > a { padding: 0 15px; line-height: 47px; }
}

/* Kiinteä taustakuva ei toimi mobiiliselaimissa luotettavasti */
@media (max-width: 1024px) {
	.section--cards { background: #fff; padding: 40px 20px; }
	.section--cards::before, .section--cards::after { top: 0; }
	.section--cards::before { background-attachment: scroll; background-position: 50% 50%; }
}
