/*
Theme Name: Eccanen
Theme URI: https://eccanen.fi/
Author: Ompelija Eccanen
Description: Kevyt, mobiilille optimoitu ja hakukoneystävällinen teema Ompelija Eccanen -ompelimolle (Espoo, Olari). Piparireunainen yläpalkki, yritystiedot Googlelle (LocalBusiness), sivukohtaiset hakukonekentät, mobiilin pikapalkki, lomailmoitus ja käyttöönottoapuri, joka luo sivut, hinnastot ja valikot.
Version: 1.0.2
Requires at least: 6.4
Tested up to: 7.2
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: eccanen
*/

/* ==========================================================================
   1. Fontit ja värit
   ========================================================================== */
@font-face {
	font-family: "Fraunces";
	src: url("assets/fonts/fraunces-600-700.woff") format("woff");
	font-weight: 600 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Courier Prime";
	src: url("assets/fonts/courier-prime-italic.woff") format("woff");
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}

:root {
	--cream: #fffaf0;
	--pink: #e4b4bc;
	--pink-pale: #f8e9ec;
	--linen: #f6eee4;
	--green: #26352f;
	--green-deep: #20342d;
	--ink: #302d2d;
	--muted: #625959;
	--line: #e8dccd;
	--line-dash: #e0cfbc;
	--on-dark: #f8f7ec;
	--on-dark-muted: #d9cfc2;
	--nav-color: var(--green);

	--f-display: "Fraunces", Georgia, "Times New Roman", serif;
	--f-tag: "Courier Prime", "Courier New", monospace;
	--f-body: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;

	--gutter: 20px;
	--content: 760px;
	--wide: 1160px;
	--radius: 18px;
	--kehys-bg: var(--cream);
	--bar-h: 0px;
}
@media (min-width: 768px) { :root { --gutter: 40px; } }

/* ==========================================================================
   2. Perusta
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
	margin: 0;
	background: var(--cream);
	color: var(--ink);
	font-family: var(--f-body);
	font-size: 1.0625rem;
	line-height: 1.7;
	overflow-x: clip;
	overflow-wrap: break-word;
	padding-bottom: var(--bar-h);
}
@media (max-width: 767px) { p, li { hyphens: auto; -webkit-hyphens: auto; } }
@media (min-width: 1024px) { body { font-size: 1.125rem; } }
img, svg, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--green); text-decoration-color: var(--pink); text-decoration-thickness: 2px; text-underline-offset: .2em; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--f-display);
	font-weight: 700;
	line-height: 1.12;
	color: var(--green);
	margin: 1.4em 0 .5em;
	letter-spacing: -.01em;
	text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 1.6rem + 3vw, 3.75rem); line-height: 1.05; }
h2 { font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.75rem); }
h3 { font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem); }
h4, h5, h6 { font-size: 1.2rem; }
p, ul, ol, figure, table, blockquote { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: .35em; }
strong { font-weight: 700; color: var(--green); }
hr { border: 0; border-top: 2px dashed var(--line); margin: 3rem auto; }
blockquote { margin-inline: 0; padding: 1.2em 1.4em; background: var(--pink-pale); border-radius: var(--radius); }

.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.skip-link:focus { clip: auto; clip-path: none; height: auto; width: auto; z-index: 1000; top: 8px; left: 8px; padding: .8em 1.2em; background: var(--cream); color: var(--green); font-weight: 700; }

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

/* Pieni kursivoitu tunniste otsikon yllä ("Ajanvaraus //") */
.tunniste, .is-style-tunniste {
	font-family: var(--f-tag);
	font-style: italic;
	font-size: 1rem;
	color: var(--green);
	margin: 0 0 .35rem;
}
.tunniste + h1, .tunniste + h2, .is-style-tunniste + h1, .is-style-tunniste + h2, .is-style-tunniste + .wp-block-heading { margin-top: 0; }

/* ==========================================================================
   3. Painikkeet
   ========================================================================== */
.btn,
.wp-block-button__link,
.wp-element-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .55em;
	min-height: 52px;
	padding: .75em 1.6em;
	border: 2px solid var(--pink);
	border-radius: 999px;
	background: var(--pink);
	color: var(--green-deep);
	font: 700 1rem/1.2 var(--f-body);
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s, border-color .15s, transform .15s;
}
.btn:hover,
.wp-block-button__link:hover,
.wp-element-button:hover { background: #dba3ad; border-color: #dba3ad; color: var(--green-deep); transform: translateY(-1px); }
.btn--outline,
.is-style-outline > .wp-block-button__link { background: transparent; color: var(--green); border-color: var(--pink); }
.btn--outline:hover,
.is-style-outline > .wp-block-button__link:hover { background: var(--pink); color: var(--green-deep); }
.btn--cream { background: var(--cream); border-color: var(--cream); }
.btn--cream:hover { background: #fff; border-color: #fff; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.wp-block-buttons { margin-bottom: 1.2em; gap: .75rem; }

/* ==========================================================================
   4. Tiedote ja yläpalkki (piparireuna)
   ========================================================================== */
.notice-bar { background: var(--green-deep); color: var(--on-dark); text-align: center; font-size: .95rem; padding: .6em var(--gutter); position: relative; z-index: 60; }
.notice-bar a { color: var(--on-dark); }

.site-header {
	position: relative;
	z-index: 50;
	filter: drop-shadow(0 10px 10px rgba(38, 53, 47, .22));
}
/* Piparireuna: yksi yhtenäinen vektorikuvio (ei toistuvia palasia → ei saumoja eikä raitoja) */
.scallops {
	position: relative;
	height: 41px;
	margin-top: -1px;
	margin-bottom: -40px;
	overflow: hidden;
	pointer-events: none;
}
.scallops svg { display: block; width: 4000px; max-width: none; height: 41px; fill: var(--pink); }
.site-header__bar {
	position: relative;
	background: var(--pink);
	min-height: 112px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 10px var(--gutter);
}
@media (min-width: 1024px) { .site-header__bar { padding-inline: 64px; } }

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img, .brand .custom-logo { max-height: 92px; width: auto; }
.brand__circle {
	width: 90px; height: 90px; border-radius: 50%;
	background: var(--cream);
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	font: 700 1.1rem/1.05 "Trebuchet MS", var(--f-body);
	color: #d898a4;
}

.nav-toggle {
	width: 48px; height: 48px;
	display: inline-flex; align-items: center; justify-content: center;
	border: 2px solid var(--nav-color);
	border-radius: 50%;
	background: transparent;
	color: var(--nav-color);
	cursor: pointer;
	padding: 0;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.primary-nav { display: none; }
.primary-nav.is-open {
	display: block;
	position: absolute;
	left: 0; right: 0; top: 100%;
	background: var(--cream);
	padding: 52px var(--gutter) 26px;
	max-height: calc(100vh - 112px);
	overflow-y: auto;
}
.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav li { margin: 0; }
.primary-nav a {
	display: block;
	padding: .7em 0;
	border-bottom: 1px dashed var(--line);
	font: 600 1.35rem/1.25 var(--f-display);
	color: var(--green);
	text-decoration: none;
}
.primary-nav .sub-menu { padding: .2rem 0 .6rem 1rem; border-bottom: 1px dashed var(--line); }
.primary-nav .sub-menu a { border: 0; padding: .45em 0; font: 500 1.02rem/1.3 var(--f-body); }
.primary-nav .menu-item-has-children > a { border-bottom: 0; }
.primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a { text-decoration: underline; text-decoration-color: var(--green); text-underline-offset: .25em; }
.primary-nav__cta { margin-top: 1.25rem; }
.header-cta { display: none; }

@media (min-width: 1024px) {
	.nav-toggle { display: none; }
	.primary-nav, .primary-nav.is-open {
		display: flex; align-items: center; gap: .25rem;
		position: static; background: none; padding: 0; max-height: none; overflow: visible;
	}
	.primary-nav > ul { display: flex; gap: .1rem; }
	.primary-nav > ul > li { position: relative; }
	.primary-nav > ul > li > a {
		border: 0;
		padding: .6em .9em;
		border-radius: 999px;
		font: 600 1.05rem/1.2 "Trebuchet MS", var(--f-body);
		color: var(--nav-color);
	}
	.primary-nav > ul > li > a:hover,
	.primary-nav > ul > li.current-menu-item > a,
	.primary-nav > ul > li.current-menu-ancestor > a,
	.primary-nav > ul > li.current_page_parent > a { background: rgba(255, 250, 240, .5); text-decoration: none; }
	.primary-nav .menu-item-has-children > a::after { content: " ▾"; font-size: .8em; }
	.primary-nav .sub-menu {
		display: none;
		position: absolute; top: 100%; left: 0; z-index: 10;
		min-width: 250px;
		padding: .5rem;
		background: var(--cream);
		border: 1px solid var(--line);
		border-radius: 16px;
		box-shadow: 0 14px 30px rgba(38, 53, 47, .15);
	}
	.primary-nav li:hover > .sub-menu,
	.primary-nav li:focus-within > .sub-menu { display: block; }
	.primary-nav .sub-menu a { padding: .55em .8em; border-radius: 10px; }
	.primary-nav .sub-menu a:hover { background: var(--pink-pale); }
	.primary-nav .primary-nav__ig { display: inline-flex; padding: .55em; color: var(--nav-color); border: 0; }
	.primary-nav__ig svg { width: 22px; height: 22px; }
	.primary-nav__cta { display: none; }
	.header-cta { display: inline-flex; margin-left: .6rem; min-height: 46px; padding-inline: 1.3em; }
}
@media (max-width: 1023px) { .primary-nav .primary-nav__ig { display: none; } }

/* ==========================================================================
   5. Etusivu
   ========================================================================== */
.hero {
	position: relative;
	min-height: 600px;
	display: flex;
	align-items: flex-end;
	color: var(--cream);
	isolation: isolate;
}
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(0deg, rgba(32, 52, 45, .78) 0%, rgba(32, 52, 45, .4) 55%, rgba(32, 52, 45, .05) 100%);
}
.hero__content { position: relative; width: 100%; padding: 120px var(--gutter) 44px; }
.hero h1 { color: var(--cream); margin: 0 0 .4em; max-width: 13em; }
.hero__services { font-family: var(--f-tag); font-style: italic; color: var(--on-dark); margin: 0 0 1.6rem; max-width: 34em; }
.hero .tunniste { color: var(--on-dark); }
@media (min-width: 768px) {
	.hero { min-height: 700px; align-items: center; }
	.hero::before { background: linear-gradient(90deg, rgba(32, 52, 45, .8) 0%, rgba(32, 52, 45, .5) 40%, rgba(32, 52, 45, 0) 68%); }
	.hero__content { padding: 120px var(--gutter) 60px; }
}
@media (min-width: 1024px) {
	.hero__content { padding-left: 96px; max-width: 760px; }
	.hero h1 { font-size: 3.75rem; }
}

.ticker {
	background: var(--green-deep);
	color: var(--on-dark);
	overflow: hidden;
	white-space: nowrap;
	font: 600 1.05rem/1 var(--f-display);
	padding: 1rem 0;
}
.ticker__track { display: inline-flex; gap: 1.2rem; padding-left: 1.2rem; animation: ticker 40s linear infinite; }
.ticker__track span[aria-hidden] { color: var(--pink); }
@keyframes ticker { to { transform: translateX(-50%); } }

.section { padding: 64px 0; }
.section--center { text-align: center; }
.section__head { max-width: 640px; margin: 0 auto 2rem; }
.section__head h2 { margin-top: 0; }
.section__head p { color: var(--muted); }
.section--center .section__head { text-align: center; }
@media (min-width: 1024px) { .section { padding: 96px 0; } }

/* Vaaleanpunainen osio aaltoreunalla */
.section--pale, .is-style-vaalea-osio {
	--kehys-bg: var(--pink-pale);
	position: relative;
	background: var(--pink-pale);
	margin-top: 30px;
}
.section--pale::before, .is-style-vaalea-osio::before {
	content: "";
	position: absolute; left: 0; right: 0; top: -24px; height: 24px;
	background: radial-gradient(circle at 24px 24px, var(--pink-pale) 24px, transparent 24.6px) 0 0 / 48px 24px repeat-x;
}
@media (min-width: 1024px) {
	.section--pale::before, .is-style-vaalea-osio::before {
		top: -30px; height: 30px;
		background: radial-gradient(circle at 30px 30px, var(--pink-pale) 30px, transparent 30.6px) 0 0 / 60px 30px repeat-x;
	}
}

/* Kolmen kuvan limittäinen asetelma */
.trio { position: relative; width: 100%; max-width: 1000px; margin: 1rem auto 0; aspect-ratio: 100 / 74; }
.trio__img { position: absolute; margin: 0; }
.trio__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; box-shadow: 12px 12px 0 -1.5px var(--kehys-bg), 12px 12px 0 0 var(--pink); }
.trio__img--1 { left: 3%; top: 0; width: 45%; }
.trio__img--2 { left: 31%; top: 25%; width: 38%; z-index: 2; }
.trio__img--2 img { border-radius: 50% 50% 16px 16px / 40% 40% 16px 16px; box-shadow: 12px 12px 0 -1.5px var(--kehys-bg), 12px 12px 0 0 var(--pink), 0 16px 30px rgba(38, 53, 47, .16); }
.trio__img--3 { right: 4%; top: 5%; width: 41%; }
.trio__star { position: absolute; left: 0; bottom: 4%; width: 52px; color: var(--pink); }
@media (min-width: 768px) {
	.trio { aspect-ratio: 100 / 46; }
	.trio__img--1 { left: 5%; width: 30%; }
	.trio__img--2 { left: 35%; top: 12%; width: 27%; }
	.trio__img--3 { right: 6%; top: 2%; width: 28%; }
}

/* Palvelukortit */
.service-cards { display: grid; gap: 18px 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1024px) { .service-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; } }
.service-card { position: relative; display: flex; flex-direction: column; gap: .6rem; color: var(--green); text-decoration: none; text-align: left; }
.service-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 16px; transition: transform .2s; }
@media (min-width: 1024px) { .service-card img { aspect-ratio: 4 / 5; } }
.service-card:hover img { transform: translateY(-3px); }
.service-card__title { font: 700 1.1rem/1.2 var(--f-display); }
@media (min-width: 1024px) { .service-card__title { font-size: 1.4rem; } }
.service-card__text { display: none; color: var(--muted); font-size: 1rem; line-height: 1.5; }
@media (min-width: 1024px) { .service-card__text { display: block; } }

/* Esittelynosto */
.split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 80px; } }
.split h2 { margin-top: 0; }

/* Instagram */
.insta-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 1.6rem; }
.insta-grid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; }
@media (min-width: 1024px) { .insta-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; } }
#sb_instagram { padding-bottom: 0 !important; margin-bottom: 1.6rem; }
#sb_instagram .sbi_photo { border-radius: 8px; }
#sb_instagram .sbi_header_text, #sb_instagram #sbi_load .sbi_load_btn { display: none !important; }
#sb_instagram .sbi_follow_btn a { background: var(--pink) !important; color: var(--green-deep) !important; border-radius: 999px !important; font-weight: 700; }

/* ==========================================================================
   6. Kuvat: kaari ja kehys
   ========================================================================== */
.kaari img, .is-style-kaari img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: 50% 50% 18px 18px / 40% 40% 18px 18px !important;
}
.kehys img, .is-style-kehys img, .is-style-kaari img {
	box-shadow: 14px 14px 0 -1.5px var(--kehys-bg), 14px 14px 0 0 var(--pink);
}
.kehys, .is-style-kehys, .is-style-kaari { margin-right: 14px; margin-bottom: 30px; }
.kehys img, .is-style-kehys img { border-radius: var(--radius); }
.portrait-placeholder {
	aspect-ratio: 4 / 5; border-radius: 50% 50% 18px 18px / 40% 40% 18px 18px;
	background: var(--linen);
	box-shadow: 14px 14px 0 -1.5px var(--kehys-bg), 14px 14px 0 0 var(--pink);
	display: flex; align-items: center; justify-content: center; padding: 2rem; text-align: center;
	font: 700 1.6rem/1.2 var(--f-display); color: var(--green);
}
.split__media { max-width: 440px; margin-inline: auto; width: 100%; }

/* ==========================================================================
   7. Sisältösivut
   ========================================================================== */
.page-hero { padding: 84px 0 32px; }
@media (min-width: 1024px) { .page-hero { padding: 112px 0 48px; } }
.page-hero h1 { margin: 0 0 .4em; }
.page-hero__lead { font-size: 1.15rem; color: var(--muted); max-width: 40em; margin-bottom: 1.4rem; }
@media (min-width: 1024px) { .page-hero__lead { font-size: 1.3rem; } }
.page-hero--center { text-align: center; }
.page-hero--center .page-hero__lead { margin-inline: auto; }
.page-hero--split .container { display: grid; gap: 2.5rem; align-items: center; }
.page-hero--split .page-hero__media { max-width: 420px; width: 100%; margin: 0 auto; }
@media (min-width: 900px) {
	.page-hero--split .container { grid-template-columns: 1.1fr .9fr; gap: 80px; }
	.page-hero--split .page-hero__media { margin-right: 0; }
}

.breadcrumbs { font-size: .92rem; color: var(--muted); margin-bottom: 1.2rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; margin: 0; padding: 0; }
.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: .3rem; color: var(--line-dash); }
.breadcrumbs a { color: var(--muted); }

.entry-content { padding-bottom: 40px; }
.entry-content > * { max-width: var(--content); margin-left: auto; margin-right: auto; }
.entry-content > .alignwide, .entry-content > .wp-block-columns { max-width: var(--wide); }
.entry-content > .alignfull {
	max-width: none;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}
.entry-content > .is-style-vaalea-osio,
.entry-content > .alignfull.has-background { padding: 56px var(--gutter); margin-top: 70px; margin-bottom: 64px; }
@media (min-width: 1024px) { .entry-content > .is-style-vaalea-osio { padding: 88px var(--gutter); margin-top: 96px; margin-bottom: 88px; } }
.is-style-vaalea-osio > * { max-width: var(--content); margin-left: auto; margin-right: auto; }
.is-style-vaalea-osio > .wp-block-columns, .is-style-vaalea-osio > .alignwide { max-width: var(--wide); }
.is-style-vaalea-osio > :first-child { margin-top: 0; }
.is-style-vaalea-osio > :last-child { margin-bottom: 0; }
.entry-content h2 { margin-top: 2em; }
.entry-content .wp-block-columns { gap: 2rem 4rem; align-items: center; margin-top: 2.5rem; margin-bottom: 2.5rem; }
.entry-content .wp-block-column > :first-child { margin-top: 0; }
.entry-content .wp-block-image img { border-radius: var(--radius); }
.entry-content figcaption, .wp-element-caption { font-size: .92rem; color: var(--muted); text-align: center; margin-top: .6rem; }
.entry-content .wp-block-image.is-style-kehys figcaption { margin-top: 1.4rem; }

/* Listatyylit */
ul.is-style-tahdet, ul.is-style-tarkistus { list-style: none; padding-left: 0; }
.is-style-tahdet li, .is-style-tarkistus li { position: relative; padding-left: 1.9rem; margin-bottom: .6em; }
.is-style-tahdet li::before { content: "✶"; position: absolute; left: .1rem; top: 0; color: var(--green); }
.is-style-tarkistus li::before {
	content: ""; position: absolute; left: 0; top: .32em;
	width: 1.2rem; height: 1.2rem; border-radius: 50%;
	background: var(--pink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2320342d' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 68% no-repeat;
}
.is-style-kortit {
	list-style: none; padding: 0; counter-reset: kortti;
	display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 768px) { .is-style-kortit { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; } }
.is-style-kortit li {
	counter-increment: kortti;
	position: relative;
	margin: 0;
	padding: 16px 18px 16px 66px;
	background: var(--linen);
	border: 1px solid var(--line);
	border-radius: 16px;
	line-height: 1.5;
	min-height: 68px;
	min-width: 0;
}
.is-style-vaalea-osio .is-style-kortit li { background: var(--cream); border-color: transparent; }
.is-style-kortit li::before {
	content: counter(kortti);
	position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
	width: 36px; height: 36px; border-radius: 50%;
	background: var(--pink); color: var(--green-deep);
	display: flex; align-items: center; justify-content: center;
	font: 700 1rem/1 var(--f-display);
}

/* Korostuslaatikko */
.is-style-korostus {
	border: 2px dashed var(--pink);
	border-radius: var(--radius);
	background: var(--cream);
	padding: 20px 24px !important;
}
.is-style-korostus > :last-child { margin-bottom: 0; }
.is-style-korostus > :first-child { margin-top: 0; }

/* Hinnastotaulukko */
.wp-block-table.is-style-hinnasto, .hinnasto {
	background: var(--linen);
	border: 1px solid var(--line);
	border-radius: 22px;
	padding: 10px 22px 16px;
	overflow-x: auto;
}
@media (min-width: 768px) { .wp-block-table.is-style-hinnasto { padding: 14px 34px 20px; } }
.is-style-hinnasto table { width: 100%; table-layout: auto; border-collapse: collapse; margin: 0; font-size: 1rem; }
.is-style-hinnasto th, .is-style-hinnasto td { border: 0; border-bottom: 1px dashed var(--line-dash); padding: .75em 0; text-align: left; vertical-align: top; }
.is-style-hinnasto tr > :last-child { text-align: right; width: 34%; font-weight: 700; color: var(--green); padding-left: 1rem; }
.is-style-hinnasto thead th { font: 700 1.1rem/1.2 var(--f-display); color: var(--green); border-bottom: 2px solid var(--pink); }
.is-style-hinnasto tbody tr:last-child td { border-bottom: 0; }
.is-style-hinnasto figcaption { text-align: left; margin-top: .8rem; }
.hinta-huom { font-size: .95rem; color: var(--muted); }

/* Hinnaston pikalinkit */
.pikalinkit { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.pikalinkit li { margin: 0; }
.pikalinkit a { display: inline-flex; align-items: center; min-height: 44px; padding: .4em 1.1em; border: 2px solid var(--pink); border-radius: 999px; text-decoration: none; font-weight: 600; }
.pikalinkit a:hover { background: var(--pink); }

/* Kukkapainikkeet (palvelualasivut) */
.flowers { overflow: clip; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 1040px; margin: 0 auto; }
@media (min-width: 900px) { .flowers { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; } }
.flowers--small { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 720px; gap: 8px; }
@media (min-width: 900px) { .flowers--small { grid-template-columns: repeat(3, minmax(0, 220px)); justify-content: center; gap: 36px; } }
.flower {
	position: relative;
	display: flex; align-items: center; justify-content: center;
	aspect-ratio: 1 / 1;
	text-decoration: none;
	color: var(--green-deep);
	transition: transform .2s;
}
.flower:hover { transform: scale(1.04) rotate(-3deg); }
.flower svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--pink); }
.flower--dark { color: var(--cream); }
.flower--dark svg { fill: var(--green); }
.flower:nth-child(2) svg { transform: rotate(22deg); }
.flower:nth-child(3) svg { transform: rotate(11deg); }
.flower:nth-child(4) svg { transform: rotate(30deg); }
.flower__label { position: relative; max-width: 72%; text-align: center; font: 700 1.05rem/1.15 var(--f-display); hyphens: manual; overflow-wrap: normal; }
@media (min-width: 900px) { .flower__label { font-size: 1.45rem; } }
.flowers--small .flower__label { font-size: .85rem; }
@media (min-width: 900px) { .flowers--small .flower__label { font-size: 1.02rem; max-width: 80%; } }
.muut-palvelut { padding: 24px 0 72px; text-align: center; }
.muut-palvelut h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 2rem); margin: 0 0 1.4rem; }

/* CTA-nauha */
.cta-band {
	background: var(--green-deep);
	color: var(--on-dark);
	border-radius: 24px;
	padding: 32px 24px;
	display: grid; gap: 1.2rem;
	margin: 32px 0 88px;
	text-align: center;
}
.cta-band h2 { color: var(--cream); margin: 0 0 .3rem; font-size: clamp(1.5rem, 1.3rem + 1vw, 2.1rem); }
.cta-band p { margin: 0; color: var(--on-dark-muted); }
.cta-band .btn-row { justify-content: center; }
.cta-band .btn--outline { color: var(--cream); }
@media (min-width: 900px) {
	.cta-band { grid-template-columns: 1fr auto; align-items: center; text-align: left; padding: 44px 56px; border-radius: 28px; }
	.cta-band .btn-row { justify-content: flex-end; }
}

/* Yhteystiedot */
.contact-grid { display: grid; gap: 16px; margin-bottom: 40px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }
.contact-card { background: var(--linen); border: 1px solid var(--line); border-radius: 20px; padding: 24px 22px; scroll-margin-top: 24px; }
.contact-card h2 { font-size: 1.5rem; margin: 0 0 .7rem; }
.contact-card p:last-child, .contact-card ul:last-child { margin-bottom: 0; }
.contact-card .big-link { display: block; font: 700 1.25rem/1.3 var(--f-display); color: var(--green); text-decoration: none; margin-bottom: .3rem; overflow-wrap: anywhere; }
.contact-card .big-link:hover { text-decoration: underline; }
.contact-card .btn-row { margin-top: 1rem; }
.map-embed {
	position: relative; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden;
	background: var(--pink-pale); border: 1px solid var(--line); margin-bottom: 56px;
}
@media (min-width: 900px) { .map-embed { aspect-ratio: 21 / 8; } }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-embed__placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem; padding: 1.5rem; text-align: center; }
.map-embed__placeholder p { margin: 0; color: var(--muted); font-size: .92rem; max-width: 36ch; }

/* Artikkelit ja haku */
.post-list { display: grid; gap: 18px; padding-bottom: 56px; }
@media (min-width: 768px) { .post-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.post-card { position: relative; background: var(--linen); border-radius: 20px; overflow: hidden; }
.post-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.post-card__body { padding: 18px 22px 22px; }
.post-card h2 { font-size: 1.35rem; margin: .2rem 0 .5rem; }
.post-card h2 a { color: inherit; text-decoration: none; }
.post-card h2 a::after { content: ""; position: absolute; inset: 0; }
.post-meta { font-size: .9rem; color: var(--muted); }
.pagination { display: flex; justify-content: center; gap: .5rem; padding-bottom: 56px; }
.pagination .page-numbers { min-width: 46px; min-height: 46px; display: grid; place-items: center; border-radius: 999px; border: 2px solid var(--pink); text-decoration: none; padding: 0 .8em; }
.pagination .current { background: var(--pink); }

/* ==========================================================================
   8. Alatunniste
   ========================================================================== */
.site-footer {
	position: relative;
	margin-top: 30px;
	background: var(--green-deep);
	color: var(--on-dark);
	padding: 48px 0 28px;
	font-size: 1rem;
}
.site-footer::before {
	content: ""; position: absolute; left: 0; right: 0; top: -24px; height: 24px;
	background: radial-gradient(circle at 24px 24px, var(--green-deep) 24px, transparent 24.6px) 0 0 / 48px 24px repeat-x;
}
@media (min-width: 1024px) {
	.site-footer { padding: 64px 0 34px; }
	.site-footer::before { top: -30px; height: 30px; background: radial-gradient(circle at 30px 30px, var(--green-deep) 30px, transparent 30.6px) 0 0 / 60px 30px repeat-x; }
}
.site-footer a { color: var(--on-dark); text-decoration-color: rgba(248, 247, 236, .4); }
.site-footer a:hover { text-decoration-color: var(--on-dark); }
.footer-grid { display: grid; gap: 2rem; margin-bottom: 2.2rem; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 64px; } }
.footer-brand { font: 700 1.75rem/1.1 var(--f-display); margin: 0 0 .8rem; color: var(--cream); }
.footer-title { font: 700 1.15rem/1.2 var(--f-display); margin: 0 0 .7rem; color: var(--cream); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.footer-tag { font-family: var(--f-tag); font-style: italic; color: var(--on-dark-muted); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; padding-top: 1.2rem; border-top: 1px dashed rgba(248, 247, 236, .3); font-size: .88rem; color: var(--on-dark-muted); }
.footer-bottom a { color: var(--on-dark-muted); }

/* ==========================================================================
   9. Mobiilin pikapalkki
   ========================================================================== */
.action-bar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
	display: grid; grid-template-columns: repeat(3, 1fr);
	background: var(--cream);
	border-top: 1px solid var(--line);
	box-shadow: 0 -6px 20px rgba(38, 53, 47, .08);
	padding-bottom: env(safe-area-inset-bottom);
}
.action-bar a {
	min-height: 62px;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
	font-size: .8rem; font-weight: 700; color: var(--green); text-decoration: none;
}
.action-bar svg { width: 22px; height: 22px; }
.action-bar .is-primary { background: var(--pink); color: var(--green-deep); }
body.has-action-bar { --bar-h: calc(62px + env(safe-area-inset-bottom)); }
@media (min-width: 1024px) { .action-bar { display: none; } body.has-action-bar { --bar-h: 0px; } }

/* ==========================================================================
   10. WordPress-luokat
   ========================================================================== */
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.has-text-align-center { text-align: center; }
.wp-block-separator { border: 0; border-top: 2px dashed var(--line); }
.sticky, .bypostauthor, .gallery-caption, .wp-caption-text { font-size: inherit; }

@media print {
	.site-header, .action-bar, .notice-bar, .site-footer, .cta-band, .ticker { display: none !important; }
	body { background: #fff; padding: 0; }
}

.split--text { grid-template-columns: 1fr !important; max-width: calc(var(--content) + 2 * var(--gutter)); text-align: center; }
@media (min-width: 600px) { .is-style-hinnasto tr > :last-child { white-space: nowrap; width: auto; } }
.primary-nav a.btn { display: inline-flex; border: 2px solid var(--pink); padding: .75em 1.6em; font: 700 1rem/1.2 var(--f-body); color: var(--green-deep); }
.primary-nav a.btn--cream { border-color: var(--cream); }
@media (min-width: 1024px) { .primary-nav a.header-cta { display: inline-flex; padding: .6em 1.3em; } }
