/* =========================================================================
   GRANESPO – päätyylit
   Ilme: moderni pohjoismainen "insinöörimäinen luottamus".
   Värit: laivastonsininen + vesisininen (azure) + valkoinen + lämmin merkkiväri.
   Fontit: Archivo (otsikot/logo) + IBM Plex Sans (leipäteksti), itse-isännöity.
   ========================================================================= */

/* ----------------------------- Fontit ---------------------------------- */
@font-face {
	font-family: "Archivo";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/archivo-latin-600-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Archivo";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/archivo-latin-700-normal.woff2") format("woff2");
}
@font-face {
	font-family: "IBM Plex Sans";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
	font-family: "IBM Plex Sans";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2");
}
@font-face {
	font-family: "IBM Plex Sans";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
}

/* --------------------------- Design-tokenit ---------------------------- */
:root {
	--brand-900: #082a4a;
	--brand-800: #0c3c66;
	--brand-700: #134b7d;
	--brand-600: #155a93;
	--brand-500: #1e6fb0;
	--brand-400: #1b8fe3;
	--brand-300: #5fb4ee;
	--brand-100: #e8f1fa;
	--brand-50:  #f4f8fc;

	--accent:     #f2a03d;
	--accent-600: #e0881c;

	--ink:    #13212e;
	--ink-2:  #33485b;
	--muted:  #5e7184;
	--line:   #e3e9f0;
	--line-2: #d2dce6;
	--white:  #ffffff;
	--bg:     #ffffff;
	--bg-tint: #f4f8fc;

	--container: 1200px;
	--container-narrow: 760px;
	--gutter: clamp(16px, 4vw, 28px);

	--radius-sm: 10px;
	--radius: 16px;
	--radius-lg: 24px;
	--radius-pill: 999px;

	--shadow-sm: 0 1px 2px rgba(8, 42, 74, .06), 0 2px 6px rgba(8, 42, 74, .06);
	--shadow: 0 14px 34px -16px rgba(8, 42, 74, .22);
	--shadow-lg: 0 34px 64px -24px rgba(8, 42, 74, .32);

	--font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--font-display: "Archivo", var(--font-body);

	--ease: cubic-bezier(.2, .7, .2, 1);
	--t: .25s var(--ease);
}

/* ------------------------------- Reset --------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img, svg, video, picture { display: block; max-width: 100%; height: auto; }
a { color: var(--brand-500); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--brand-700); }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
input, select, textarea, button { font-family: inherit; }
:focus-visible { outline: 3px solid var(--brand-400); outline-offset: 2px; border-radius: 4px; }

/* --------------------------- Typografia -------------------------------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; color: var(--brand-800); letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 1.3rem + 3.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 1rem + .8vw, 1.5rem); }
p a { text-decoration: underline; text-underline-offset: 2px; }

/* ----------------------------- Layout ---------------------------------- */
.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }
.section { padding-block: clamp(48px, 6vw, 92px); }
.section--tint { background: var(--bg-tint); }
.section--dark { background: linear-gradient(160deg, var(--brand-800), var(--brand-900)); color: #cfe0ef; }
.section--dark h2, .section--dark h3 { color: #fff; }

.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: 8px; top: -60px; z-index: 1000;
	background: var(--brand-800); color: #fff; padding: 10px 16px; border-radius: 8px;
	transition: top var(--t);
}
.skip-link:focus { top: 8px; color: #fff; }

/* ----------------------------- Painikkeet ------------------------------ */
.btn {
	display: inline-flex; align-items: center; gap: .55em;
	font-family: var(--font-display); font-weight: 600; font-size: .98rem; line-height: 1;
	padding: .85em 1.4em; border-radius: var(--radius-pill); border: 2px solid transparent;
	cursor: pointer; white-space: nowrap; transition: all var(--t); text-decoration: none;
}
.btn .icon { transition: transform var(--t); }
.btn:hover .icon-arrow { transform: translateX(3px); }
.btn--lg { padding: 1.05em 1.7em; font-size: 1.05rem; }
.btn--block { display: flex; width: 100%; justify-content: center; }

.btn--primary { background: var(--brand-400); color: #fff; box-shadow: 0 8px 20px -8px rgba(27, 143, 227, .7); }
.btn--primary:hover { background: var(--brand-500); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px -8px rgba(27, 143, 227, .8); }
.btn--outline { background: transparent; color: var(--brand-700); border-color: var(--line-2); }
.btn--outline:hover { border-color: var(--brand-400); color: var(--brand-700); background: var(--brand-50); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--brand-800); border-color: var(--brand-800); }
.btn--ghost:hover { background: var(--brand-800); color: #fff; transform: translateY(-2px); }
.btn--white { background: #fff; color: var(--brand-800); }
.btn--white:hover { background: var(--brand-50); color: var(--brand-900); transform: translateY(-2px); }
.btn--ghost-light { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .4); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .16); color: #fff; transform: translateY(-2px); }

/* ------------------------------- Ikonit -------------------------------- */
.icon { flex: none; vertical-align: middle; }

/* ============================= YLÄPALKKI =============================== */
.topbar {
	background: var(--brand-900); color: #b9cde0; font-size: .85rem;
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 42px; flex-wrap: wrap; }
.topbar__contact { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.topbar__link { display: inline-flex; align-items: center; gap: .45rem; color: #cdddec; }
.topbar__link:hover { color: #fff; }
.topbar__link .icon { color: var(--brand-300); }
.topbar__emergency { color: #fff; font-weight: 500; }
.topbar__emergency .icon { color: var(--accent); }
.topbar__meta { display: flex; align-items: center; gap: 1.2rem; }
.topbar__area { display: inline-flex; align-items: center; gap: .45rem; color: #9fb6cc; }
.topbar__area .icon { color: var(--brand-300); }
.topbar__social { display: flex; gap: .4rem; }
.topbar__social a { color: #9fb6cc; display: inline-flex; padding: 4px; border-radius: 6px; }
.topbar__social a:hover { color: #fff; background: rgba(255, 255, 255, .08); }

/* ============================== HEADER ================================= */
.site-header {
	position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .92);
	backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line);
	transition: box-shadow var(--t), background var(--t);
}
.site-header.is-scrolled { box-shadow: var(--shadow); }
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }
.site-logo { display: inline-flex; align-items: center; }
.site-logo svg { height: 46px; width: auto; }
.site-header__brand { margin-right: auto; }

.primary-nav__list { display: flex; align-items: center; gap: .35rem; }
.primary-nav__list a {
	display: inline-block; padding: .6rem .85rem; border-radius: 10px;
	font-family: var(--font-display); font-weight: 600; font-size: .98rem; color: var(--ink-2);
}
.primary-nav__list a:hover, .primary-nav .current-menu-item > a, .primary-nav .current_page_item > a {
	color: var(--brand-700); background: var(--brand-50);
}
.primary-nav .menu-item-has-children { position: relative; }
.primary-nav .sub-menu {
	position: absolute; top: calc(100% + 6px); left: 0; min-width: 230px;
	background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
	padding: .5rem; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all var(--t);
}
.primary-nav .menu-item-has-children:hover .sub-menu,
.primary-nav .menu-item-has-children:focus-within .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.primary-nav .sub-menu a { display: block; width: 100%; }

.site-header__actions { display: flex; align-items: center; gap: .8rem; }
.header-cart { position: relative; color: var(--brand-800); display: inline-flex; padding: 8px; border-radius: 10px; }
.header-cart:hover { background: var(--brand-50); color: var(--brand-700); }
.header-cart__count {
	position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; padding: 0 4px;
	background: var(--muted); color: #fff; border-radius: 999px; font-size: .68rem; font-weight: 700;
	display: grid; place-items: center; line-height: 1;
}
.header-cart__count.is-filled { background: var(--accent); }

.nav-toggle { display: none; background: var(--brand-50); border: 1px solid var(--line); border-radius: 12px; padding: 8px; color: var(--brand-800); }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* --------------------------- Mobiilivalikko ---------------------------- */
.mobile-nav {
	position: fixed; inset: 0 0 0 auto; width: min(380px, 86vw); z-index: 200;
	background: #fff; box-shadow: var(--shadow-lg); padding: 1.5rem;
	display: flex; flex-direction: column; gap: 1rem; overflow-y: auto;
	transform: translateX(8px); animation: navIn .25s var(--ease);
}
/* Kunnioita hidden-attribuuttia (kumoaisi muuten .mobile-nav display:flex). */
.mobile-nav[hidden] { display: none; }
@keyframes navIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: translateX(0); } }
.mobile-nav__list { display: flex; flex-direction: column; gap: .2rem; margin-top: 2.5rem; }
.mobile-nav__list a { display: block; padding: .8rem .6rem; border-radius: 10px; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--ink); border-bottom: 1px solid var(--line); }
.mobile-nav__list a:hover { color: var(--brand-600); }
.mobile-nav__list .sub-menu { padding-left: 1rem; }
.mobile-nav__contact { margin-top: auto; display: flex; flex-direction: column; gap: .8rem; padding-top: 1rem; }
.mobile-nav__phone { display: inline-flex; align-items: center; gap: .5rem; justify-content: center; color: var(--brand-700); font-weight: 600; }
body.nav-open { overflow: hidden; }
.nav-scrim { position: fixed; inset: 0; z-index: 150; background: rgba(8, 42, 74, .45); backdrop-filter: blur(2px); }

/* =============================== HERO ================================= */
.hero { position: relative; background: linear-gradient(155deg, var(--brand-800) 0%, var(--brand-900) 70%); color: #d8e6f3; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__bg::before { content: ""; position: absolute; width: 60vw; height: 60vw; right: -15vw; top: -20vw; background: radial-gradient(circle, rgba(27, 143, 227, .35), transparent 60%); }
.hero__bg::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 46px 46px; mask-image: radial-gradient(circle at 70% 30%, #000, transparent 75%); }
.hero__flow { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero.hero--has-image::before { content: ""; position: absolute; inset: 0; background: var(--hero-image) center/cover; opacity: .22; mix-blend-mode: luminosity; }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; padding-block: clamp(54px, 8vw, 104px); }
.hero__content { max-width: 620px; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-display); font-weight: 600; font-size: .9rem; letter-spacing: .02em; color: var(--brand-300); background: rgba(27, 143, 227, .12); border: 1px solid rgba(95, 180, 238, .3); padding: .45rem .9rem; border-radius: var(--radius-pill); margin-bottom: 1.4rem; }
.hero__title { color: #fff; font-size: clamp(2.2rem, 1.3rem + 4vw, 3.7rem); }
.hero__text { font-size: clamp(1.05rem, 1rem + .4vw, 1.22rem); color: #c4d6e8; margin-top: 1.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 2.2rem; padding-top: 1.6rem; border-top: 1px solid rgba(255, 255, 255, .12); }
.hero__trust li { display: inline-flex; align-items: center; gap: .5rem; font-size: .95rem; color: #cfe0ef; }
.hero__trust .icon { color: #5fe0b0; }

/* animaatio: porrastettu paljastus */
.hero__eyebrow, .hero__title, .hero__text, .hero__actions, .hero__trust { animation: heroUp .7s var(--ease) both; }
.hero__title { animation-delay: .06s; }
.hero__text { animation-delay: .12s; }
.hero__actions { animation-delay: .18s; }
.hero__trust { animation-delay: .24s; }
@keyframes heroUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

.hero__visual { position: relative; min-height: 320px; display: grid; place-items: center; }
.hero__mark { width: min(72%, 300px); opacity: .14; filter: grayscale(1) brightness(3); animation: floatY 7s ease-in-out infinite; }
.hero__mark svg { width: 100%; height: auto; }
.hero__card { position: absolute; display: flex; align-items: center; gap: .8rem; background: rgba(255, 255, 255, .96); color: var(--ink); padding: .9rem 1.1rem; border-radius: 16px; box-shadow: var(--shadow-lg); animation: floatY 6s ease-in-out infinite; }
.hero__card strong { display: block; font-family: var(--font-display); color: var(--brand-800); font-size: 1.05rem; }
.hero__card span { font-size: .85rem; color: var(--muted); }
.hero__card-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-100); color: var(--brand-600); }
.hero__card { top: 12%; left: -4%; }
.hero__card--alt { top: auto; bottom: 10%; right: -2%; left: auto; animation-delay: 1.5s; }
.hero__card--alt .hero__card-icon { background: #fff3e0; color: var(--accent-600); }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ============================ LUOTTAMUSPALKKI ========================== */
.features { background: #fff; border-bottom: 1px solid var(--line); }
.features__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding-block: clamp(36px, 4vw, 56px); }
.feature { position: relative; padding-left: 0; }
.feature__icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--brand-100); color: var(--brand-600); margin-bottom: .9rem; }
.feature__title { font-size: 1.12rem; margin-bottom: .35rem; }
.feature__text { color: var(--muted); font-size: .96rem; }

/* ============================ OSION OTSIKKO ============================ */
.section-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; max-width: none; flex-wrap: wrap; }
.section-head__eyebrow { font-family: var(--font-display); font-weight: 600; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-400); margin-bottom: .7rem; }
.section-head--light .section-head__eyebrow { color: var(--brand-300); }
.section-head__title { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem); }
.section-head__lead { color: var(--muted); font-size: 1.1rem; margin-top: .9rem; }
.section--dark .section-head__lead { color: #b6c8db; }

/* ============================== RUUDUKOT =============================== */
.card-grid { display: grid; gap: 1.5rem; }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--posts { grid-template-columns: repeat(3, 1fr); }

/* Palvelukortti */
.service-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm); transition: transform var(--t), box-shadow var(--t), border-color var(--t); position: relative; overflow: hidden; }
.service-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--brand-400), var(--brand-600)); transform: scaleX(0); transform-origin: left; transition: transform var(--t); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--brand-300); color: var(--ink); }
.service-card:hover::before { transform: scaleX(1); }
.service-card__icon { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; background: var(--brand-100); color: var(--brand-600); margin-bottom: 1.1rem; }
.service-card__title { font-size: 1.3rem; color: var(--brand-800); margin-bottom: .6rem; }
.service-card__text { color: var(--muted); flex: 1; }
.service-card__more { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.1rem; font-family: var(--font-display); font-weight: 600; color: var(--brand-500); }
.service-card:hover .service-card__more .icon { transform: translateX(3px); }

/* ============================ MIKSI GRANESPO ========================== */
.why__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.why__media { position: relative; aspect-ratio: 4 / 3.4; border-radius: var(--radius-lg); background: linear-gradient(150deg, var(--brand-700), var(--brand-900)); overflow: hidden; display: grid; place-items: center; box-shadow: var(--shadow-lg); }
.why__media::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 30% 20%, rgba(27, 143, 227, .4), transparent 55%); }
.why__media::after { content: ""; position: absolute; width: 130%; height: 130%; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 40px 40px; opacity: .6; }
.why__badge { position: relative; text-align: center; color: #fff; }
.why__badge-num { font-family: var(--font-display); font-weight: 700; font-size: clamp(3.5rem, 8vw, 6rem); line-height: 1; display: block; }
.why__badge-num span { color: var(--brand-300); }
.why__badge-label { display: block; margin-top: .5rem; font-size: 1.05rem; color: #c4d6e8; max-width: 230px; margin-inline: auto; }
.why__content > p { color: var(--ink-2); margin-top: 1rem; font-size: 1.08rem; }
.checklist { display: grid; gap: .7rem; margin: 1.6rem 0; }
.checklist li { display: flex; align-items: center; gap: .7rem; font-weight: 500; color: var(--ink); }
.checklist .icon { flex: none; color: #fff; background: var(--brand-400); border-radius: 50%; padding: 4px; width: 26px; height: 26px; }

/* ============================ VERKKOKAUPPANOSTO ======================= */
.shop-feature__products { margin-top: 1rem; }

/* ============================== PROSESSI ============================== */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; }
.process__step { position: relative; padding: 1.6rem; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius); }
.process__num { font-family: var(--font-display); font-weight: 700; font-size: 2rem; color: var(--brand-300); display: block; margin-bottom: .6rem; }
.process__title { color: #fff; font-size: 1.18rem; margin-bottom: .4rem; }
.process__text { color: #aec3d8; font-size: .96rem; }

/* ============================ REFERENSSIT ============================= */
.testimonial { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 1rem; }
.testimonial__stars { display: flex; gap: 2px; color: var(--accent); }
.testimonial__quote { font-size: 1.08rem; color: var(--ink); line-height: 1.6; }
.testimonial__author { display: flex; flex-direction: column; }
.testimonial__author strong { font-family: var(--font-display); color: var(--brand-800); }
.testimonial__author span { color: var(--muted); font-size: .9rem; }

/* ============================== BLOGI ================================= */
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--t), box-shadow var(--t); }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post-card__media { display: block; aspect-ratio: 16 / 10; background: var(--brand-100); overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: var(--brand-300); }
.post-card__body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--muted); margin-bottom: .6rem; text-transform: uppercase; letter-spacing: .04em; }
.post-card__cat { color: var(--brand-500); font-weight: 600; }
.post-card__title { font-size: 1.22rem; margin-bottom: .5rem; }
.post-card__title a { color: var(--brand-800); }
.post-card__title a:hover { color: var(--brand-500); }
.post-card__excerpt { color: var(--muted); flex: 1; }
.post-card__more { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem; font-family: var(--font-display); font-weight: 600; color: var(--brand-500); }

/* ============================ CTA-BÄNDIT ============================== */
.cta-band { background: linear-gradient(120deg, var(--brand-700), var(--brand-900)); color: #fff; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: clamp(2.4rem, 4vw, 3.6rem); flex-wrap: wrap; }
.cta-band__eyebrow { color: var(--brand-300); font-weight: 600; margin-bottom: .4rem; }
.cta-band__title { color: #fff; font-size: clamp(1.4rem, 1rem + 1.8vw, 2.1rem); max-width: 18ch; }
.cta-band__actions { display: flex; gap: .9rem; flex-wrap: wrap; }

.final-cta { background: radial-gradient(circle at 20% 0%, var(--brand-600), var(--brand-900) 70%); color: #fff; }
.final-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: clamp(3rem, 6vw, 5rem); flex-wrap: wrap; }
.final-cta__text h2 { color: #fff; }
.final-cta__text p { color: #c4d6e8; margin-top: .7rem; max-width: 46ch; font-size: 1.1rem; }
.final-cta__actions { display: flex; gap: .9rem; flex-wrap: wrap; }

/* ============================== FOOTER ================================ */
.site-footer { background: var(--brand-900); color: #a7bdd2; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 2.5rem; padding-block: clamp(3rem, 5vw, 4.5rem); }
.site-footer__logo svg { height: 44px; width: auto; color: #fff; }
.site-footer__tagline { margin-top: 1rem; max-width: 34ch; color: #9db4ca; }
.site-footer__social { display: flex; gap: .5rem; margin-top: 1.2rem; }
.site-footer__social a { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .06); color: #cdddec; }
.site-footer__social a:hover { background: var(--brand-400); color: #fff; }
.site-footer__title { color: #fff; font-size: 1.05rem; margin-bottom: 1.1rem; }
.site-footer__menu { display: grid; gap: .6rem; }
.site-footer__menu a { color: #a7bdd2; }
.site-footer__menu a:hover { color: #fff; }
.site-footer__contact-list { display: grid; gap: .85rem; }
.site-footer__contact-list li { display: flex; align-items: flex-start; gap: .6rem; }
.site-footer__contact-list .icon { flex: none; color: var(--brand-300); margin-top: 3px; }
.site-footer__contact-list a { color: #cdddec; }
.site-footer__contact-list a:hover { color: #fff; }
.site-footer__business-id { margin-top: 1rem; font-size: .9rem; color: #7e96ad; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); }
.site-footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.3rem; flex-wrap: wrap; }
.site-footer__copy { font-size: .88rem; color: #8aa1b8; }
.site-footer__legal { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.site-footer__legal a { font-size: .88rem; color: #a7bdd2; }
.site-footer__legal a:hover { color: #fff; }

/* ============================ SIVUOTSIKKO ============================= */
.page-header { background: var(--bg-tint); border-bottom: 1px solid var(--line); padding-block: clamp(2.2rem, 4vw, 3.4rem); }
.page-header__title { font-size: clamp(1.8rem, 1.2rem + 2.5vw, 2.8rem); }
.page-header__lead { color: var(--muted); font-size: 1.15rem; margin-top: .8rem; max-width: 60ch; }
.breadcrumbs { margin-bottom: 1rem; font-size: .88rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: .4rem; color: var(--muted); }
.breadcrumbs li:not(:last-child)::after { content: "/"; color: var(--line-2); margin-left: .4rem; }
.breadcrumbs a { color: var(--brand-500); }
.breadcrumbs [aria-current="page"] { color: var(--ink-2); }
.page-banner { margin-top: clamp(1.5rem, 3vw, 2.5rem); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.page-banner img { width: 100%; max-height: 460px; object-fit: cover; }

/* ============================== PROSE ================================= */
.prose { max-width: 760px; }
.prose--centered { margin-inline: auto; text-align: center; }
.prose > * + * { margin-top: 1.15rem; }
.prose h2 { margin-top: 2.4rem; font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem); }
.prose h3 { margin-top: 1.8rem; }
.prose p, .prose li { color: var(--ink-2); font-size: 1.08rem; }
.prose ul { list-style: none; display: grid; gap: .6rem; }
.prose ul li { position: relative; padding-left: 1.7rem; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-400); }
.prose ol { list-style: decimal; padding-left: 1.3rem; display: grid; gap: .6rem; }
.prose blockquote { border-left: 4px solid var(--brand-400); padding: .4rem 0 .4rem 1.3rem; color: var(--ink-2); font-size: 1.15rem; }
.prose img { border-radius: var(--radius); margin-block: 1.5rem; }
.prose a { color: var(--brand-500); }
.entry-tags { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.entry-tags a { font-size: .85rem; background: var(--brand-50); color: var(--brand-700); padding: .35rem .8rem; border-radius: var(--radius-pill); }
.entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; color: var(--muted); font-size: .92rem; margin-top: .8rem; }
.entry-meta__sep { color: var(--line-2); }

.post-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; border-top: 1px solid var(--line); padding-top: 1.5rem; flex-wrap: wrap; }
.post-nav__link { display: flex; flex-direction: column; gap: .2rem; font-family: var(--font-display); font-weight: 600; color: var(--brand-800); max-width: 46%; }
.post-nav__link span { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 500; }
.post-nav__next { text-align: right; margin-left: auto; }

/* ============================ PAGINOINTI ============================== */
.pagination { margin-top: 3rem; }
.pagination .nav-links { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .6rem; border-radius: 12px; border: 1px solid var(--line); color: var(--brand-700); font-family: var(--font-display); font-weight: 600; }
.pagination .page-numbers:hover { background: var(--brand-50); }
.pagination .page-numbers.current { background: var(--brand-800); color: #fff; border-color: var(--brand-800); }

/* ============================== LOMAKKEET ============================= */
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="search"], input[type="number"], input[type="password"], textarea, select {
	width: 100%; padding: .8rem 1rem; border: 1.5px solid var(--line-2); border-radius: 12px; background: #fff; color: var(--ink); font-size: 1rem; transition: border-color var(--t), box-shadow var(--t);
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--brand-400); box-shadow: 0 0 0 4px rgba(27, 143, 227, .15); }
textarea { min-height: 150px; resize: vertical; }
label { font-weight: 500; display: block; margin-bottom: .4rem; }

.search-form { display: flex; gap: .5rem; max-width: 480px; }
.search-form__field { flex: 1; }
.search-form__submit { display: inline-grid; place-items: center; width: 52px; border: none; border-radius: 12px; background: var(--brand-400); color: #fff; }
.search-form__submit:hover { background: var(--brand-500); }

/* Contact Form 7 */
.wpcf7 { margin-top: .5rem; }
.wpcf7-form p { margin-bottom: 1rem; }
.wpcf7 .wpcf7-submit { display: inline-flex; align-items: center; gap: .5rem; background: var(--brand-400); color: #fff; border: none; border-radius: var(--radius-pill); padding: .9rem 1.8rem; font-family: var(--font-display); font-weight: 600; font-size: 1rem; cursor: pointer; transition: all var(--t); width: auto; }
.wpcf7 .wpcf7-submit:hover { background: var(--brand-500); transform: translateY(-2px); }
.wpcf7-response-output { border-radius: 12px !important; margin: 1rem 0 0 !important; padding: .9rem 1.1rem !important; }

/* ============================ YHTEYSTIEDOT =========================== */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.contact-info { background: var(--bg-tint); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.2rem); }
.contact-info__title { font-size: 1.5rem; margin-bottom: 1.3rem; }
.contact-info__list { display: grid; gap: 1.2rem; }
.contact-info__list li { display: flex; gap: .9rem; }
.contact-info__icon { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fff; color: var(--brand-600); box-shadow: var(--shadow-sm); }
.contact-info__list strong { display: block; font-family: var(--font-display); color: var(--brand-800); margin-bottom: .15rem; }
.contact-info__list a { color: var(--brand-600); }
.contact-info__business-id { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--muted); }
.contact-map { margin-top: 1.4rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.contact-form-wrap__title { font-size: 1.5rem; margin-bottom: 1.2rem; }
.contact-notice { display: flex; align-items: center; gap: .6rem; background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: 12px; padding: .9rem 1.1rem; margin-bottom: 1.3rem; color: var(--brand-800); }
.contact-notice .icon { color: var(--brand-400); flex: none; }

/* ============================== 404 ================================== */
.error-404 { text-align: center; }
.error-404__inner { max-width: 620px; margin-inline: auto; }
.error-404__code { font-family: var(--font-display); font-weight: 700; font-size: clamp(4rem, 12vw, 8rem); color: var(--brand-100); line-height: 1; }
.error-404__title { margin-top: -1rem; }
.error-404__text { color: var(--muted); margin: 1rem 0 1.6rem; font-size: 1.1rem; }
.error-404 .search-form { margin-inline: auto; }
.error-404__actions { display: flex; gap: .8rem; justify-content: center; margin-top: 1.6rem; flex-wrap: wrap; }

.no-results { max-width: 620px; margin-inline: auto; text-align: center; padding-block: 2rem; }
.no-results p { color: var(--muted); margin: 1rem 0 1.5rem; }
.no-results .search-form { margin-inline: auto; }

/* ====================================================================== */
/*  WOOCOMMERCE                                                           */
/* ====================================================================== */
.shop-topbar { background: var(--bg-tint); border-bottom: 1px solid var(--line); padding-block: clamp(1.6rem, 3vw, 2.6rem); }
.shop-topbar .breadcrumbs { margin-bottom: .8rem; }
.shop-topbar__desc { color: var(--muted); margin-top: .6rem; max-width: 65ch; }
.woocommerce .woocommerce-result-count { color: var(--muted); font-size: .9rem; }
.woocommerce .woocommerce-ordering select { width: auto; padding: .5rem 2rem .5rem .9rem; }
.woocommerce-notices-wrapper:empty { display: none; }

/* Tuoteruudukko */
.woocommerce ul.products, .woocommerce-page ul.products {
	display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 0; padding: 0;
}
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
	width: auto !important; margin: 0 !important; float: none !important; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--t), box-shadow var(--t); display: flex; flex-direction: column; padding: 0;
}
.woocommerce ul.products li.product:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.woocommerce ul.products li.product a img { margin: 0; border-radius: 0; aspect-ratio: 1 / 1; object-fit: cover; background: var(--brand-50); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { padding: 1rem 1.2rem .2rem; font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--brand-800); }
.woocommerce ul.products li.product .price { padding: 0 1.2rem; color: var(--ink); font-weight: 600; font-size: 1.1rem; }
.woocommerce ul.products li.product .price del { color: var(--muted); font-weight: 400; margin-right: .4rem; }
.woocommerce ul.products li.product .price ins { text-decoration: none; color: var(--brand-600); }
.price--quote { color: var(--brand-600); font-weight: 600; }
.woocommerce ul.products li.product .button { margin: auto 1.2rem 1.2rem; }
.woocommerce span.onsale, .woocommerce ul.products li.product .onsale {
	position: absolute; top: 12px; left: 12px; background: var(--accent); color: #fff; border-radius: var(--radius-pill); min-height: auto; min-width: auto; padding: .25rem .8rem; font-family: var(--font-display); font-weight: 600; font-size: .8rem; line-height: 1.4; margin: 0;
}
.woocommerce ul.products li.product { position: relative; }
.woocommerce ul.products li.product .star-rating { margin: .4rem 1.2rem; font-size: .9rem; }

/* WooCommerce-painikkeet → brändin painikkeet */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce .button,
.woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	background: var(--brand-400); color: #fff; border: 2px solid transparent; border-radius: var(--radius-pill);
	font-family: var(--font-display); font-weight: 600; font-size: .95rem; padding: .75em 1.4em; line-height: 1;
	transition: all var(--t); text-shadow: none; box-shadow: none;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce .button:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce #respond input#submit:hover {
	background: var(--brand-500); color: #fff; transform: translateY(-2px);
}
.woocommerce .button.btn--outline { background: transparent; color: var(--brand-700); border-color: var(--line-2); }
.woocommerce .button.btn--outline:hover { background: var(--brand-50); border-color: var(--brand-400); }
.woocommerce .added_to_cart { margin-left: .5rem; align-self: center; color: var(--brand-600); font-weight: 600; }

/* Yksittäinen tuote */
.woocommerce div.product { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); }
.woocommerce div.product .woocommerce-product-gallery { margin: 0; }
.woocommerce div.product .woocommerce-product-gallery img { border-radius: var(--radius); }
.woocommerce div.product .product_title { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.3rem); }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--brand-700); font-size: 1.6rem; font-weight: 700; font-family: var(--font-display); }
.woocommerce div.product .woocommerce-product-rating { margin-bottom: 1rem; }
.woocommerce div.product form.cart { margin-top: 1.5rem; display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; }
.woocommerce div.product form.cart .quantity input { width: 80px; text-align: center; }
.woocommerce .quantity input[type="number"] { padding: .7rem .5rem; }
.woocommerce div.product .woocommerce-tabs { grid-column: 1 / -1; margin-top: 2rem; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; border-bottom: 1px solid var(--line); }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: none; border: none; border-radius: 0; margin: 0 1.2rem 0 0; padding: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { border-bottom: 3px solid var(--brand-400); }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { color: var(--ink-2); font-family: var(--font-display); font-weight: 600; padding: .8rem 0; }
.woocommerce div.product .related.products { grid-column: 1 / -1; }
.woocommerce div.product .related.products > h2 { margin-bottom: 1.5rem; }

/* Korin yhteenveto, kassan ulkoasu */
.woocommerce table.shop_table { border-radius: var(--radius); border-color: var(--line); }
.woocommerce table.shop_table th { font-family: var(--font-display); color: var(--brand-800); }
.woocommerce .cart-collaterals .cart_totals, .woocommerce-checkout #order_review { background: var(--bg-tint); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.woocommerce-checkout #order_review_heading { margin-top: 0; }
.woocommerce #payment, .woocommerce-checkout #payment { background: transparent; border-radius: 12px; }
.woocommerce #payment ul.payment_methods { border-color: var(--line); }
.woocommerce form .form-row { padding: 0; margin-bottom: 1rem; }
.woocommerce-info, .woocommerce-message, .woocommerce-error {
	border-top: none; border-radius: 12px; padding: 1rem 1.2rem 1rem 3rem; background: var(--brand-50);
}
.woocommerce-info::before, .woocommerce-message::before { color: var(--brand-400); }
.woocommerce-message { background: #eafaf1; }
.woocommerce-message::before { color: #28a05f; }
.woocommerce-error { background: #fdecec; }

/* ============================= RESPONSIIVISUUS ======================== */
@media (max-width: 1080px) {
	.hero__inner { grid-template-columns: 1.2fr .8fr; gap: 2rem; }
	.hero__visual { min-height: 280px; }
}
@media (max-width: 980px) {
	.primary-nav, .site-header__cta { display: none; }
	.nav-toggle { display: inline-flex; }
	.hero__inner { grid-template-columns: 1fr; }
	.hero__visual { display: none; }
	.why__grid { grid-template-columns: 1fr; }
	.why__media { aspect-ratio: 16 / 9; max-height: 320px; }
	.process { grid-template-columns: repeat(2, 1fr); }
	.contact-grid { grid-template-columns: 1fr; }
	.woocommerce div.product { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
	.features__grid { grid-template-columns: repeat(2, 1fr); }
	.card-grid--3, .card-grid--posts { grid-template-columns: repeat(2, 1fr); }
	.woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: repeat(2, 1fr); }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.site-footer__brand { grid-column: 1 / -1; }
	.topbar__meta { display: none; }
}
@media (max-width: 720px) {
	.topbar__contact { gap: .9rem; font-size: .8rem; }
	.topbar__mail { display: none; }
	.cta-band__inner, .final-cta__inner { flex-direction: column; align-items: flex-start; }
	.section-head--row { align-items: flex-start; }
}
@media (max-width: 560px) {
	.features__grid, .card-grid--3, .card-grid--posts, .process { grid-template-columns: 1fr; }
	.woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: 1fr 1fr; gap: 1rem; }
	.site-footer__grid { grid-template-columns: 1fr; }
	.hero__actions .btn, .final-cta__actions .btn, .cta-band__actions .btn { flex: 1; justify-content: center; }
	.site-logo svg { height: 38px; }
	.post-nav__link { max-width: 100%; }
}

/* ----------------------- Kielivalitsin (Polylang) ----------------------- */
.lang-switcher { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.lang-switcher__item + .lang-switcher__item::before { content: "·"; opacity: .45; margin-right: .15rem; }
.lang-switcher a { display: inline-block; padding: .1rem .3rem; font-size: .78rem; font-weight: 600; letter-spacing: .04em; color: inherit; opacity: .7; text-decoration: none; border-radius: 4px; }
.lang-switcher a:hover, .lang-switcher a:focus-visible { opacity: 1; text-decoration: underline; }
.lang-switcher__item.is-current a { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.mobile-nav__lang { justify-content: center; margin-bottom: 1rem; }
.mobile-nav__lang a { font-size: .95rem; padding: .35rem .6rem; }

/* ----------------------- Liikkeen vähennys (a11y) ---------------------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
	.hero__mark, .hero__card { animation: none; }
}
