/*
Theme Name: Nordic Ikkunat & Ovet
Theme URI: https://ikkunakauppias.fi
Author: Nordic Ikkunat & Ovet Oy
Description: Räätälöity WordPress-teema Nordic Ikkunat & Ovet -sivustolle. Versio 2: moderni design-järjestelmä, animaatiot, tarjouslomake-modaali, parannettu tekninen SEO (JSON-LD @graph, Open Graph, kuvaoptimointi) sekä AI-haun tuki (llms.txt).
Version: 2.1.0
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: nordic
*/

/* =========================================================================
   1. FONTIT (itse isännöidyt, variable)
   ========================================================================= */
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/inter.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('assets/fonts/space-grotesk.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* =========================================================================
   2. DESIGN-TOKENIT
   Vanhat muuttujanimet (--amber, --mist, --pine-dim ...) säilytetään, koska
   sivujen sisällön inline-tyylit viittaavat niihin.
   ========================================================================= */
:root {
  /* Brändivärit */
  --night: #102530;
  --spruce: #16303B;
  --spruce-2: #1B4252;
  --pine: #1D5E79;
  --pine-dim: #164B61;
  --pine-soft: #E3EEF2;
  --gold: #FFD866;
  --gold-dim: #F4C64A;
  --gold-soft: #FFF4CF;

  /* Pinnat */
  --paper: #F6F8F9;
  --birch: #F6F8F9;
  --mist: #EBF1F3;
  --surface: #FFFFFF;
  --ink: #16303B;
  --ink-2: #3D5561;
  --ink-3: #647A84;
  --line: rgba(22, 48, 59, 0.10);
  --line-strong: rgba(22, 48, 59, 0.18);
  --line-on-dark: rgba(255, 255, 255, 0.14);

  /* Yhteensopivuus vanhan sisällön kanssa */
  --amber: var(--pine);
  --amber-dim: var(--pine-dim);
  --cream: var(--paper);
  --line-dark: var(--line);
  --night-2: var(--spruce-2);
  --frost: var(--pine);
  --success: #2F7D5B;

  /* Typografia */
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;

  /* Mitat */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(56px, 8vw, 104px);
  --header-h: 72px;

  /* Varjot */
  --shadow-xs: 0 1px 2px rgba(16, 37, 48, 0.06);
  --shadow-sm: 0 1px 2px rgba(16, 37, 48, 0.05), 0 4px 12px rgba(16, 37, 48, 0.05);
  --shadow-md: 0 2px 4px rgba(16, 37, 48, 0.04), 0 12px 32px rgba(16, 37, 48, 0.09);
  --shadow-lg: 0 4px 8px rgba(16, 37, 48, 0.05), 0 28px 64px rgba(16, 37, 48, 0.16);
  --shadow-gold: 0 8px 24px rgba(244, 198, 74, 0.35);

  /* Liike */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 0.35s;
}

/* =========================================================================
   3. PERUSTYYLIT
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.nav-open, body.modal-open { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.5em;
  letter-spacing: -0.025em;
  line-height: 1.12;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4rem); letter-spacing: -0.035em; line-height: 1.04; }
h2 { font-size: clamp(1.75rem, 1.25rem + 2vw, 2.75rem); }
h3 { font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3rem); letter-spacing: -0.015em; line-height: 1.25; }
h4 { font-size: 1.0625rem; letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0 0 1em; max-width: 68ch; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
strong, b { color: var(--ink); font-weight: 600; }
::selection { background: var(--gold); color: var(--spruce); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.page-content > section,
.page-content > .wrap + section,
.fallback { padding: var(--section-y) 0; position: relative; }
main, .page-content { overflow-x: clip; }
.page-content section { scroll-margin-top: calc(var(--header-h) + 16px); }

.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: 16px; top: -60px; z-index: 1000;
  background: var(--spruce); color: #fff; padding: 10px 16px; border-radius: var(--radius-xs);
  font-weight: 600; text-decoration: none; transition: top 0.2s;
}
.skip-link:focus { top: 12px; }
main:focus { outline: none; }

/* Sisällön linkit (inline-tyylit "color:var(--amber)") */
.article-body a:not(.btn), .intro a:not(.btn), .value-prop a:not(.btn), .prose a:not(.btn), .faq-item a:not(.btn), .callout a:not(.btn) {
  color: var(--pine) !important;
  text-decoration: underline;
  text-decoration-color: rgba(29, 94, 121, 0.35);
  transition: text-decoration-color 0.2s, color 0.2s;
}
.article-body a:not(.btn):hover, .intro a:not(.btn):hover, .value-prop a:not(.btn):hover, .prose a:not(.btn):hover, .faq-item a:not(.btn):hover {
  color: var(--pine-dim) !important;
  text-decoration-color: currentColor;
}

/* =========================================================================
   4. PAINIKKEET
   ========================================================================= */
.btn {
  --btn-bg: var(--pine);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  font-family: var(--font-sans); font-weight: 600; font-size: 16px; line-height: 1.2;
  color: var(--btn-fg) !important;
  background: var(--btn-bg) !important;
  border: 1px solid transparent; border-radius: 999px;
  text-decoration: none !important;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  white-space: nowrap;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn .i { width: 18px; height: 18px; flex: none; transition: transform var(--dur) var(--ease-out); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .i { transform: translateX(3px); }
.btn:active { transform: translateY(0); }
/* Valoliuku painikkeen yli */
.btn::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.8s var(--ease-out);
}
.btn:hover::after { transform: translateX(120%); }

/* Ensisijainen = kulta (konvertoiva CTA kaikkialla) */
.btn-primary {
  --btn-bg: var(--gold);
  --btn-fg: var(--spruce);
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover { --btn-bg: var(--gold-dim); box-shadow: 0 12px 32px rgba(244, 198, 74, 0.45); }

/* Toissijainen täyteväri (pine) */
.btn-pine { --btn-bg: var(--pine); --btn-fg: #fff; box-shadow: 0 8px 20px rgba(29, 94, 121, 0.22); }
.btn-pine:hover { --btn-bg: var(--pine-dim); }

/* Ääriviiva */
.btn-outline-pine, .btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--pine);
  border-color: rgba(29, 94, 121, 0.35);
}
.btn-outline-pine:hover, .btn-ghost:hover { --btn-bg: var(--pine-soft); border-color: var(--pine); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; align-items: center; }

/* Tummilla pinnoilla kaikki ensisijaiset ovat kultaisia */
.panel-dark .btn-pine, .final-cta .btn-pine, .contact .btn-pine, .contact-dark .btn-pine,
.calc-banner .btn-pine, .hero-photo .btn-pine {
  --btn-bg: var(--gold); --btn-fg: var(--spruce); box-shadow: var(--shadow-gold);
}
.panel-dark .btn-pine:hover, .final-cta .btn-pine:hover, .contact .btn-pine:hover, .contact-dark .btn-pine:hover,
.calc-banner .btn-pine:hover, .hero-photo .btn-pine:hover { --btn-bg: var(--gold-dim); }

/* =========================================================================
   5. OTSIKKOPALKKI JA NAVIGAATIO
   ========================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246, 248, 249, 0.78);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.86);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(16, 37, 48, 0.06);
}
.site-header-inner {
  max-width: calc(var(--wrap) + 80px); margin: 0 auto;
  padding: 0 var(--gutter);
  height: var(--header-h);
  display: flex; align-items: center; gap: 24px;
  transition: height 0.3s var(--ease-out);
}
.site-header.is-scrolled .site-header-inner { height: 64px; }

.site-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--spruce); flex: none; }
.site-logo-mark { width: 30px; height: 30px; color: var(--spruce); transition: transform 0.6s var(--ease-out); }
.site-logo:hover .site-logo-mark { transform: rotate(90deg); }
.site-logo-text { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; color: var(--spruce); }
.site-logo-text b { color: var(--pine); font-weight: 700; }
.site-logo--light .site-logo-mark, .site-logo--light .site-logo-text { color: #fff; }
.site-logo--light .site-logo-text b { color: var(--gold); }

.site-nav { margin-left: auto; display: flex; align-items: center; }
.site-nav ul { display: flex; align-items: center; gap: 2px; }
.site-nav li { position: relative; }
.site-nav a:not(.btn) {
  position: relative;
  display: block; padding: 10px 12px;
  font-size: 15px; font-weight: 500; color: var(--ink-2); text-decoration: none;
  border-radius: 999px;
  transition: color 0.2s, background-color 0.2s;
}
.site-nav a:not(.btn):hover { color: var(--spruce); background: rgba(22, 48, 59, 0.05); }
.site-nav .current-menu-item > a, .site-nav a[aria-current="page"] { color: var(--spruce); font-weight: 600; }
.site-nav .current-menu-item > a::after, .site-nav a[aria-current="page"]::after {
  content: ''; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; margin-left: -2.5px;
  border-radius: 50%; background: var(--gold-dim);
}
/* Alavalikot (jos valikossa on alasivuja) */
.site-nav .sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 240px;
  display: block; padding: 8px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.2s, transform 0.25s var(--ease-out), visibility 0.2s;
}
.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.site-nav .sub-menu a { border-radius: var(--radius-xs); }

.header-cta { min-height: 44px; padding: 10px 20px; font-size: 15px; flex: none; }
.nav-cta-mobile { display: none; }

.nav-toggle {
  display: none; margin-left: auto;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: #fff; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle-bars { position: relative; width: 18px; height: 12px; display: block; }
.nav-toggle-bars span {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: var(--spruce);
  transition: transform 0.35s var(--ease-out), opacity 0.2s, top 0.35s var(--ease-out);
}
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 5px; }
.nav-toggle-bars span:nth-child(3) { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; overflow: hidden; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--pine), var(--gold)); transform-origin: 0 50%; transform: scaleX(0); }
body:not(.page-type-article) .scroll-progress { display: none; }

@media (max-width: 1080px) {
  .site-nav a:not(.btn) { padding: 10px 9px; font-size: 14.5px; }
}
@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: inline-flex; order: 3; margin-left: 0; }
  .header-cta { margin-left: auto; order: 2; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
    display: flex; flex-direction: column; align-items: stretch; gap: 24px;
    padding: 24px var(--gutter) calc(32px + env(safe-area-inset-bottom));
    background: var(--paper);
    overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.3s var(--ease-out), transform 0.4s var(--ease-out), visibility 0.3s;
  }
  /* backdrop-filter tekisi otsikkopalkista fixed-elementin rajauslaatikon → pois, kun valikko on auki */
  body.nav-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--paper); }
  body.nav-open .site-header.is-scrolled .site-nav { top: 64px; }
  body.nav-open .site-nav { opacity: 1; visibility: visible; transform: none; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav a:not(.btn) { padding: 16px 4px; font-size: 20px; font-family: var(--font-display); font-weight: 600; color: var(--spruce); border-radius: 0; }
  .site-nav a:not(.btn):hover { background: none; color: var(--pine); }
  .site-nav .current-menu-item > a::after, .site-nav a[aria-current="page"]::after { left: auto; right: 6px; top: 50%; bottom: auto; margin: -2.5px 0 0; }
  .site-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 8px 12px; background: none; }
  .site-nav .sub-menu a { font-size: 16px !important; padding: 8px 4px !important; }
  .site-nav .sub-menu li { border: 0; }
  .nav-cta-mobile { display: inline-flex; width: 100%; }
  body.nav-open .site-nav li { animation: navItemIn 0.45s var(--ease-out) both; }
  body.nav-open .site-nav li:nth-child(2) { animation-delay: 0.03s; }
  body.nav-open .site-nav li:nth-child(3) { animation-delay: 0.06s; }
  body.nav-open .site-nav li:nth-child(4) { animation-delay: 0.09s; }
  body.nav-open .site-nav li:nth-child(5) { animation-delay: 0.12s; }
  body.nav-open .site-nav li:nth-child(6) { animation-delay: 0.15s; }
  body.nav-open .site-nav li:nth-child(7) { animation-delay: 0.18s; }
  body.nav-open .site-nav li:nth-child(8) { animation-delay: 0.21s; }
}
@media (max-width: 560px) {
  .header-cta { padding: 10px 14px; min-height: 42px; font-size: 14px; }
  .header-cta .i { display: none; }
  .site-logo-text { font-size: 17px; }
  .site-logo-mark { width: 26px; height: 26px; }
}
@media (max-width: 400px) {
  .header-cta span { font-size: 0; }
  .header-cta span::before { content: 'Tarjous'; font-size: 14px; }
}
@keyframes navItemIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Murupolku */
.breadcrumbs { padding: 18px 0 0; font-size: 14px; color: var(--ink-3); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: ''; width: 5px; height: 5px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); opacity: 0.5; margin-right: 4px; }
.breadcrumbs a { color: var(--ink-3); text-decoration: none; transition: color 0.2s; }
.breadcrumbs a:hover { color: var(--pine); }
.breadcrumbs [aria-current] { color: var(--ink-2); font-weight: 500; }

/* =========================================================================
   6. HEROT
   ========================================================================= */

/* 6a. Sisäsivujen hero (v4hero): teksti + kuva */
.v4hero { padding: clamp(28px, 4vw, 56px) 0 clamp(56px, 7vw, 96px); position: relative; }
.v4hero::before {
  content: ''; position: absolute; z-index: -1;
  width: 900px; height: 900px; right: -300px; top: -420px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(29, 94, 121, 0.12), transparent 70%);
  pointer-events: none;
}
.v4hero::after {
  content: ''; position: absolute; z-index: -1;
  width: 600px; height: 600px; left: -280px; bottom: -380px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 216, 102, 0.22), transparent 70%);
  pointer-events: none;
}
.v4hero-wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.v4hero-text h1 { margin-bottom: 20px; }
.v4hero-text > p { font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); color: var(--ink-2); max-width: 54ch; }
.v4hero-text .cta-row { margin-top: 32px; }
.v4hero-media { position: relative; }
.v4hero-media img {
  width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
/* Koristekehys kuvan takana: viittaus logon ikkunaruutuun */
.v4hero-media::before {
  content: ''; position: absolute; z-index: -1;
  width: 38%; aspect-ratio: 1; right: -18px; top: -18px;
  background: var(--gold); border-radius: var(--radius);
}
.v4hero-media::after {
  content: ''; position: absolute; inset: 14px -14px -14px 14px; z-index: -2;
  border: 1.5px solid rgba(29, 94, 121, 0.25); border-radius: var(--radius-lg);
}
.v4hero-media.portrait { display: flex; justify-content: center; }
.v4hero-media.portrait img {
  width: auto; max-height: 460px; aspect-ratio: auto; object-fit: contain;
  box-shadow: none; border-radius: 0; filter: drop-shadow(0 30px 40px rgba(16, 37, 48, 0.25));
}
.v4hero-media.portrait::before { right: 18%; top: 4%; width: 46%; }
.v4hero-media.portrait::after { inset: 8% 6% 0 6%; background: linear-gradient(180deg, var(--mist), #fff); border: 0; }

@media (max-width: 860px) {
  .v4hero-wrap { grid-template-columns: 1fr; }
  .v4hero-media { order: -1; margin-right: 14px; }
  .v4hero-media img { aspect-ratio: 16 / 10; }
  .v4hero-media.portrait img { max-height: 320px; }
}

/* Heron sisääntuloanimaatio */
@media (prefers-reduced-motion: no-preference) {
  .v4hero-text > *, .hero-photo .hero-text > *, .hero:not(.hero-photo) .hero-inner > *, .hero:not(.hero-photo) .wrap > * {
    animation: heroUp 0.9s var(--ease-out) both;
  }
  .v4hero-text > :nth-child(2), .hero-photo .hero-text > :nth-child(2), .hero .hero-inner > :nth-child(2), .hero .wrap > :nth-child(2) { animation-delay: 0.08s; }
  .v4hero-text > :nth-child(3), .hero-photo .hero-text > :nth-child(3) { animation-delay: 0.16s; }
  .v4hero-text > :nth-child(4), .hero-photo .hero-text > :nth-child(4) { animation-delay: 0.24s; }
  .hero-photo .hero-text > :nth-child(5) { animation-delay: 0.32s; }
  .hero-photo .hero-text > :nth-child(6) { animation-delay: 0.4s; }
  .v4hero-media { animation: heroMedia 1.2s var(--ease-out) 0.1s both; }
  .v4hero-media img { animation: heroZoom 1.8s var(--ease-out) both; }
  .v4hero-media::before { animation: heroPop 1s var(--ease-out) 0.5s both; }
  .trust-strip li { animation: heroUp 0.8s var(--ease-out) both; }
  .trust-strip li:nth-child(1) { animation-delay: 0.45s; }
  .trust-strip li:nth-child(2) { animation-delay: 0.53s; }
  .trust-strip li:nth-child(3) { animation-delay: 0.61s; }
  .trust-strip li:nth-child(4) { animation-delay: 0.69s; }

  /* Kevyt parallax heron kuvaan selaimissa, jotka tukevat scroll-driven-animaatioita */
  @supports (animation-timeline: view()) {
    .v4hero-media img {
      animation: heroZoom 1.8s var(--ease-out) both, heroParallax linear both;
      animation-timeline: auto, view();
      animation-range: normal, exit 0% exit 100%;
    }
  }
}
@keyframes heroUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes heroMedia { from { opacity: 0; clip-path: inset(8% 8% 8% 8% round 28px); } to { opacity: 1; clip-path: inset(0 0 0 0 round 0); } }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes heroPop { from { opacity: 0; transform: scale(0.6) rotate(-8deg); } to { opacity: 1; transform: none; } }
@keyframes heroParallax { to { transform: translateY(40px) scale(1.04); } }

/* Luottamuspalkki heron alla */
.trust-strip { position: relative; margin-top: calc(clamp(56px, 7vw, 96px) * -0.55); padding-bottom: 8px; }
.trust-strip ul {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); overflow: hidden;
}
.trust-strip li {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 22px; font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.3;
}
.trust-strip li + li { border-left: 1px solid var(--line); }
.trust-strip .i {
  width: 38px; height: 38px; flex: none; padding: 8px;
  color: var(--pine); background: var(--pine-soft); border-radius: 12px;
}
@media (max-width: 960px) {
  .trust-strip ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-strip li:nth-child(3) { border-left: 0; }
  .trust-strip li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .trust-strip li { padding: 14px; font-size: 13px; gap: 10px; }
  .trust-strip .i { width: 32px; height: 32px; padding: 7px; }
}

/* 6b. Etusivun valokuvahero */
.hero.hero-photo {
  position: relative; isolation: isolate;
  min-height: min(88vh, 780px);
  display: flex; align-items: center;
  padding: clamp(96px, 12vw, 150px) 0 clamp(72px, 9vw, 110px);
  margin-top: calc(var(--header-h) * -1);
  background-color: var(--spruce);
  background-image: url('assets/img/hero.webp');
  background-size: cover; background-position: 70% center;
  color: #fff; overflow: hidden;
}
.hero.hero-photo::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(16, 37, 48, 0.94) 0%, rgba(16, 37, 48, 0.82) 38%, rgba(16, 37, 48, 0.35) 70%, rgba(16, 37, 48, 0.15) 100%),
    radial-gradient(60% 80% at 10% 100%, rgba(29, 94, 121, 0.55), transparent 70%);
}
.hero.hero-photo::after {
  /* Hidas "valon liike" ikkunan läpi */
  content: ''; position: absolute; inset: -20%; z-index: -1;
  background: radial-gradient(40% 50% at 70% 30%, rgba(255, 216, 102, 0.16), transparent 60%);
  animation: lightDrift 14s var(--ease-in-out) infinite alternate;
  pointer-events: none;
}
@keyframes lightDrift { from { transform: translate(0, 0); } to { transform: translate(-12%, 10%); } }
@media (max-width: 1024px) { .hero.hero-photo { background-image: url('assets/img/hero-1024.webp'); } }

body:has(.hero-photo) .site-header:not(.is-scrolled) {
  background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none;
}
body:has(.hero-photo) .site-header:not(.is-scrolled) .site-logo-mark,
body:has(.hero-photo) .site-header:not(.is-scrolled) .site-logo-text { color: #fff; }
body:has(.hero-photo) .site-header:not(.is-scrolled) .site-logo-text b { color: var(--gold); }
@media (min-width: 961px) {
  body:has(.hero-photo) .site-header:not(.is-scrolled) .site-nav a:not(.btn) { color: rgba(255, 255, 255, 0.82); }
  body:has(.hero-photo) .site-header:not(.is-scrolled) .site-nav a:not(.btn):hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
  body:has(.hero-photo) .site-header:not(.is-scrolled) .site-nav .current-menu-item > a,
  body:has(.hero-photo) .site-header:not(.is-scrolled) .site-nav a[aria-current="page"] { color: #fff; }
}
body:has(.hero-photo) .site-header:not(.is-scrolled) .nav-toggle { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.3); }
body:has(.hero-photo) .site-header:not(.is-scrolled) .nav-toggle-bars span { background: #fff; }
body:has(.hero-photo).nav-open .site-header { background: var(--paper); }
body:has(.hero-photo).nav-open .site-header .site-logo-mark, body:has(.hero-photo).nav-open .site-header .site-logo-text { color: var(--spruce); }
body:has(.hero-photo).nav-open .site-header .site-logo-text b { color: var(--pine); }
body:has(.hero-photo).nav-open .site-header .nav-toggle-bars span { background: var(--spruce); }
body:has(.hero-photo).nav-open .site-header .nav-toggle { background: #fff; border-color: var(--line-strong); }

.hero.hero-photo > .wrap { width: 100%; }
.hero-text { max-width: 660px; }
.hero-logo-mark { display: none !important; } /* logo on jo otsikkopalkissa */
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 12px; margin-bottom: 24px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: #fff; background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(255, 216, 102, 0.7); animation: pulseDot 2.4s infinite; }
@keyframes pulseDot { 0% { box-shadow: 0 0 0 0 rgba(255, 216, 102, 0.6); } 70% { box-shadow: 0 0 0 10px rgba(255, 216, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 216, 102, 0); } }
.hero-photo h1 { color: #fff; max-width: 15ch; margin-bottom: 22px; }
.hero-text > p { color: rgba(255, 255, 255, 0.82); font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem); max-width: 50ch; }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-photo .btn-pine { --btn-bg: var(--gold); --btn-fg: var(--spruce); }
.hero-photo .btn-outline-pine {
  --btn-bg: rgba(255, 255, 255, 0.06); --btn-fg: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hero-photo .btn-outline-pine:hover { --btn-bg: rgba(255, 255, 255, 0.14); border-color: #fff; }
.hero-trust {
  display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 12px 40px;
  margin-top: 48px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.hero-trust-item { color: rgba(255, 255, 255, 0.7); font-size: 14px; line-height: 1.35; }
.hero-trust-item b { display: block; color: #fff; font-family: var(--font-display); font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); letter-spacing: -0.02em; margin-bottom: 2px; font-variant-numeric: tabular-nums; }
@media (max-width: 720px) {
  .hero.hero-photo { min-height: auto; background-position: 62% center; }
  .hero.hero-photo::before { background: linear-gradient(180deg, rgba(16, 37, 48, 0.86), rgba(16, 37, 48, 0.94)); }
  .hero-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .hero-cta-row .btn { flex: 1 1 100%; }
}

/* 6c. Yksinkertainen hero (laskuri, sivukartta) */
.hero:not(.hero-photo) { padding: clamp(40px, 6vw, 80px) 0 clamp(32px, 4vw, 48px); text-align: center; position: relative; }
.hero:not(.hero-photo) h1 { max-width: 20ch; margin-left: auto; margin-right: auto; }
.hero:not(.hero-photo) p { margin-left: auto; margin-right: auto; font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); max-width: 60ch; }
.hero-inner { max-width: 860px; margin: 0 auto; }

/* =========================================================================
   7. OSIOT, OTSIKOT JA TAUSTAT
   ========================================================================= */
.section-head, .sec-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head p, .sec-head p { font-size: 1.075rem; color: var(--ink-3); margin-top: 8px; }
.section-head h2, .sec-head h2 { margin-bottom: 0; }
.section-head:last-child, .sec-head:last-child { margin-bottom: 0; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.center p { margin-left: auto; margin-right: auto; }

/* Korostusviiva otsikon yllä — piirtyy esiin */
.eyebrow-line {
  width: 56px; height: 4px; border-radius: 4px; margin-bottom: 20px;
  background: linear-gradient(90deg, var(--pine) 0 60%, var(--gold) 60% 100%);
  transform-origin: left center;
}
.reveal .eyebrow-line { transform: scaleX(0); transition: transform 0.9s var(--ease-out) 0.15s; }
.reveal.is-visible .eyebrow-line { transform: scaleX(1); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--pine); margin-bottom: 16px;
}
.eyebrow::before { content: ''; width: 18px; height: 2px; background: var(--gold-dim); border-radius: 2px; }
.sec-head.center .eyebrow::after { content: ''; width: 18px; height: 2px; background: var(--gold-dim); border-radius: 2px; }

.panel-alt, .page-content > section[style*="--mist"] { background: var(--mist); }
.page-content > section[style*="--mist"] { background: var(--mist) !important; }

/* Tumma paneeli: syvä gradientti + hehku */
.panel-dark, .final-cta, .contact, .contact-dark {
  background: var(--spruce);
  color: rgba(255, 255, 255, 0.78);
  isolation: isolate; overflow: hidden;
}
.panel-dark::before, .final-cta::before, .contact::before, .contact-dark::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(50% 70% at 100% 0%, rgba(29, 94, 121, 0.75), transparent 70%),
    radial-gradient(40% 60% at 0% 100%, rgba(255, 216, 102, 0.10), transparent 70%);
}
.panel-dark::after, .final-cta::after, .contact::after, .contact-dark::after {
  /* hienovarainen ruudukko — ikkunanpuitteet */
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(80% 80% at 70% 30%, #000, transparent 80%);
  mask-image: radial-gradient(80% 80% at 70% 30%, #000, transparent 80%);
}
.panel-dark h2, .panel-dark h3, .panel-dark h4, .final-cta h2, .contact h2, .contact-dark h2, .contact h3 { color: #fff; }
.panel-dark p, .panel-dark .section-head p { color: rgba(255, 255, 255, 0.72); }
.panel-dark .eyebrow-line, .final-cta .eyebrow-line, .contact-dark .eyebrow-line { background: linear-gradient(90deg, var(--gold) 0 60%, rgba(255, 255, 255, 0.4) 60% 100%); }
.panel-dark .eyebrow, .contact .eyebrow { color: var(--gold); }

/* Johdanto */
.intro { padding: clamp(48px, 6vw, 80px) 0 !important; }
.intro .wrap > p { font-size: clamp(1.1rem, 1rem + 0.45vw, 1.3rem); line-height: 1.6; color: var(--ink); max-width: 70ch; }
.intro .wrap > p + p { font-size: 1.05rem; color: var(--ink-2); }
.trust-strip + .intro { padding-top: clamp(40px, 5vw, 64px) !important; }

/* Arvolupaus (huolto) */
.value-prop .wrap > p { font-size: 1.1rem; max-width: 72ch; }

/* =========================================================================
   8. ARTIKKELISISÄLTÖ
   ========================================================================= */
.article-body { padding: clamp(40px, 5vw, 64px) 0 !important; }
.article-body + .article-body { padding-top: 0 !important; }
.article-body .wrap > * { max-width: 800px; }
.article-body h2 { margin-bottom: 18px; }
.article-body h3 { margin: 28px 0 10px; }
.article-body p { font-size: 1.0625rem; }
.article-body p, .article-body ul, .article-body table, .article-body .callout { max-width: 100%; }

ul.bullet { display: grid; gap: 12px; margin: 8px 0 24px; }
ul.bullet li { position: relative; padding-left: 34px; line-height: 1.6; }
ul.bullet li::before {
  content: ''; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--pine-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D5E79' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.callout {
  position: relative; margin: 28px 0; padding: 24px 28px 24px 30px;
  background: linear-gradient(180deg, var(--gold-soft), #FFF9E6);
  border: 1px solid rgba(244, 198, 74, 0.45); border-radius: var(--radius);
}
.callout::before { content: ''; position: absolute; left: 0; top: 20px; bottom: 20px; width: 4px; border-radius: 0 4px 4px 0; background: var(--gold-dim); }
.callout p { margin-bottom: 6px; color: var(--ink); }
.callout p:first-child { font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: #8A6A14; }
.callout p:last-child { margin-bottom: 0; }

table.price-table, .article-body table {
  width: 100%; margin: 24px 0 8px; border-collapse: separate; border-spacing: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  font-size: 15.5px; box-shadow: var(--shadow-sm);
}
.price-table th, .price-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table thead th { background: var(--spruce); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: 0.02em; }
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table tbody tr { transition: background-color 0.2s; }
.price-table tbody tr:hover { background: var(--pine-soft); }
.price-table td:last-child { font-weight: 600; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) {
  .price-table th, .price-table td { padding: 12px 14px; font-size: 14px; }
  .price-table td:last-child { white-space: normal; }
}

/* =========================================================================
   9. KORTIT JA RUUDUKOT
   ========================================================================= */
.types-grid, .audience-grid, .benefit-grid, .benefits-grid, .why-grid, .signs-grid, .remontti-grid, .services-grid, .feature-grid {
  display: grid; gap: clamp(16px, 2vw, 24px);
}
.types-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.audience-grid, .benefit-grid, .benefits-grid, .why-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }

.type-card, .audience-card, .benefit-card, .signs-card, .remontti-card, .service-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: clamp(24px, 2.5vw, 32px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out), border-color 0.3s;
}
.type-card h3, .audience-card h3, .benefit-card h3 { margin-bottom: 10px; }
.type-card p, .audience-card p, .benefit-card p, .signs-card p, .remontti-card p, .service-card p { font-size: 15.5px; color: var(--ink-2); }
.type-card p:last-child, .audience-card p:last-child, .benefit-card p:last-child { margin-bottom: 0; }

/* Kortit, joissa on linkki: koko kortti klikattava + nosto */
.type-card:has(.card-link):hover, .remontti-card:hover, .service-card:has(.card-link):hover, .related-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(29, 94, 121, 0.25);
}
.audience-card:hover, .benefit-card:hover, .signs-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.type-card::before {
  /* värikäs yläreuna joka "täyttyy" hoverissa */
  content: ''; position: absolute; left: 24px; right: 24px; top: -1px; height: 3px; border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--pine), var(--gold));
  transform: scaleX(0.18); transform-origin: left; transition: transform 0.6s var(--ease-out);
}
.type-card:hover::before { transform: scaleX(1); }

.card-link {
  margin-top: auto; padding-top: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 15px; color: var(--pine) !important; text-decoration: none !important;
}
.card-link::after { content: ''; position: absolute; inset: 0; border-radius: inherit; } /* venytetty linkki */
.type-card:hover .card-link, .remontti-card:hover .card-link, .service-card:hover .card-link { color: var(--pine-dim) !important; }

/* Kohderyhmäkortit: pieni ikonimerkki */
.audience-card { padding-top: clamp(64px, 6vw, 76px); }
.audience-card::before {
  content: ''; position: absolute; top: clamp(24px, 2.5vw, 32px); left: clamp(24px, 2.5vw, 32px);
  width: 28px; height: 28px; border-radius: 8px;
  background:
    linear-gradient(var(--gold), var(--gold)) right top / 50% 50% no-repeat,
    var(--pine-soft);
  box-shadow: inset 0 0 0 2px var(--pine);
}
.panel-dark .audience-card, .panel-dark .type-card, .panel-dark .benefit-card {
  background: rgba(255, 255, 255, 0.05); border-color: var(--line-on-dark); box-shadow: none;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.panel-dark .audience-card p, .panel-dark .type-card p, .panel-dark .benefit-card p { color: rgba(255, 255, 255, 0.72); }

/* Hyötykortit: numeroitu vasen merkki */
.benefit-grid, .benefits-grid { counter-reset: benefit; }
.benefit-card { counter-increment: benefit; }
.benefit-card::before {
  content: counter(benefit, decimal-leading-zero);
  font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--pine);
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin-bottom: 18px; border-radius: 12px; background: var(--pine-soft);
}

/* Merkit (etusivu): isot numerot */
.signs-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.signs-card .num {
  font-family: var(--font-display); font-weight: 700; font-size: 44px; line-height: 1; letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1.5px var(--pine); margin-bottom: 18px; transition: color 0.4s;
}
.signs-card:hover .num { color: var(--pine); }
.signs-card p { margin: 0; font-size: 16px; color: var(--ink); font-weight: 500; }
@media (max-width: 960px) { .signs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .signs-grid { grid-template-columns: 1fr; } }

/* Remonttikortit (etusivu) */
.remontti-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.remontti-card { padding: 0; overflow: hidden; }
.remontti-card > :not(.remontti-card-img) { margin-left: clamp(24px, 3vw, 36px); margin-right: clamp(24px, 3vw, 36px); }
.remontti-card > :last-child { margin-bottom: clamp(24px, 3vw, 36px); }
.remontti-card-img { height: clamp(200px, 22vw, 280px); overflow: hidden; margin-bottom: 28px; }
.remontti-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.remontti-card:hover .remontti-card-img img { transform: scale(1.06); }
.remontti-card h3 { font-size: clamp(1.4rem, 1.2rem + 0.6vw, 1.75rem); }
.remontti-card .eyebrow { margin-bottom: 10px; }
@media (max-width: 760px) { .remontti-grid { grid-template-columns: 1fr; } }

/* Palvelukortit */
.services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.service-card:has(.service-photo) { padding: 0; overflow: hidden; }
.service-photo { aspect-ratio: 16 / 9; overflow: hidden; background: var(--mist); }
.service-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.service-card:hover .service-photo img { transform: scale(1.06); }
.service-body { padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; flex: 1; }
.service-body h3 { font-size: clamp(1.4rem, 1.2rem + 0.6vw, 1.75rem); }
.service-card h4 { margin: 18px 0 6px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); font-family: var(--font-sans); font-weight: 700; }
.service-body h4 + p { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 17px; }
.service-card > ul, .service-body > ul { display: grid; gap: 8px; margin-top: 6px; }
.service-card > ul li, .service-body > ul li { position: relative; padding-left: 26px; font-size: 15px; }
.service-card > ul li::before, .service-body > ul li::before {
  content: ''; position: absolute; left: 0; top: 7px; width: 14px; height: 8px;
  border-left: 2px solid var(--pine); border-bottom: 2px solid var(--pine); transform: rotate(-45deg);
}
@media (max-width: 760px) { .services-grid { grid-template-columns: 1fr; } }

/* Ominaisuudet (etusivu): ikoni + teksti */
.feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.feature-grid .feature-item {
  padding: clamp(24px, 2.5vw, 32px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.feature-grid .feature-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-grid .feature-item .icon {
  width: 52px; height: 52px; margin-bottom: 20px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  color: var(--pine); background: var(--pine-soft);
  transition: background-color 0.3s, color 0.3s, transform 0.5s var(--ease-out);
}
.feature-grid .feature-item:hover .icon { background: var(--spruce); color: var(--gold); transform: rotate(-6deg) scale(1.05); }
.feature-grid .feature-item .icon svg { width: 24px; height: 24px; }
.feature-grid .feature-item h3 { margin-bottom: 8px; }
.feature-grid .feature-item p { font-size: 15.5px; margin: 0; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

/* Ominaisuuslista (tuotesivut): piste + otsikko + teksti */
.feature-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; margin-top: 28px; }
.feature-list .feature-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 22px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color 0.3s, box-shadow 0.4s var(--ease-out);
}
.feature-list .feature-item:hover { border-color: rgba(29, 94, 121, 0.3); box-shadow: var(--shadow-sm); }
.feature-list .dot {
  flex: none; width: 28px; height: 28px; margin-top: 1px; border-radius: 50%;
  background: var(--pine) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFD866' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.feature-list h4 { margin-bottom: 4px; }
.panel-dark .feature-list .feature-item { background: rgba(255, 255, 255, 0.05); border-color: var(--line-on-dark); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.panel-dark .feature-list .feature-item:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.25); box-shadow: none; }
.panel-dark .feature-list .dot { background-color: var(--gold); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316303B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E"); }
.feature-list p { margin: 0; font-size: 15px; }

/* Miksi me (huolto) */
.why-item {
  padding: clamp(24px, 2.5vw, 32px); border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-on-dark);
}
.why-mark { width: 44px; height: 44px; padding: 10px; margin-bottom: 18px; border-radius: 14px; background: var(--gold); }
.why-mark path { stroke: var(--spruce); }
.why-item p { margin: 0; }

/* =========================================================================
   10. PROSESSI (automaattinen numerointi)
   ========================================================================= */
.process-list {
  counter-reset: step;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: clamp(16px, 2vw, 24px);
  position: relative;
}
.process-item {
  counter-increment: step;
  position: relative; display: flex; flex-direction: column;
  padding: clamp(24px, 2.5vw, 30px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out), background-color 0.3s;
}
.process-item::before {
  content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-bottom: 20px; border-radius: 50%;
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  color: #fff; background: var(--pine);
  transition: transform 0.5s var(--ease-out);
}
.process-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.process-item:hover::before { transform: scale(1.1); }
.process-item h3 { margin-bottom: 8px; }
.process-item p { margin: 0; font-size: 15.5px; }
.process-num { display: none; }

.panel-dark .process-item { background: rgba(255, 255, 255, 0.05); border-color: var(--line-on-dark); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.panel-dark .process-item:hover { background: rgba(255, 255, 255, 0.09); box-shadow: none; }
.panel-dark .process-item::before { background: var(--gold); color: var(--spruce); }
/* Yhdysviiva korttien välillä leveillä näytöillä */
@media (min-width: 1000px) {
  .process-list::before {
    content: ''; position: absolute; left: 40px; right: 40px; top: calc(clamp(24px, 2.5vw, 30px) + 22px); height: 2px; z-index: 0;
    background: repeating-linear-gradient(90deg, currentColor 0 6px, transparent 6px 14px); opacity: 0.18;
  }
  .panel-dark .process-list::before { color: #fff; opacity: 0.25; }
  .process-item { z-index: 1; }
}

/* Etusivun prosessi (5 askelta) */
.process-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; position: relative; }
.process-step {
  position: relative; padding: 28px 24px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.process-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.process-step .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-bottom: 18px; border-radius: 50%;
  font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--spruce); background: var(--gold);
}
.process-step h3 { margin-bottom: 6px; }
.process-step p { margin: 0; font-size: 15px; }
@media (max-width: 1000px) { .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .process-grid { grid-template-columns: 1fr; } }

/* =========================================================================
   11. VERTAILUTAULUKKO
   ========================================================================= */
.compare { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.compare-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; border-bottom: 1px solid var(--line); transition: background-color 0.2s; }
.compare-row:last-child { border-bottom: 0; }
.compare-row:not(.head):hover { background: var(--paper); }
.compare-row.head { background: var(--spruce); }
.compare-row.head .compare-cell { color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.compare-row.head .compare-cell:nth-child(2) { background: var(--pine); position: relative; }
.compare-cell { padding: 18px 22px; font-size: 15.5px; display: flex; align-items: center; gap: 10px; }
.compare-cell.label { color: var(--ink); font-weight: 600; }
.compare-row:not(.head) .compare-cell:nth-child(2) { background: rgba(29, 94, 121, 0.04); }
.compare-cell.check-yes::before, .compare-cell.check-no::before {
  content: ''; flex: none; width: 24px; height: 24px; border-radius: 50%;
  background-position: center; background-repeat: no-repeat; background-size: 13px;
}
.compare-cell.check-yes { color: var(--ink); font-weight: 500; }
.compare-cell.check-yes::before {
  background-color: rgba(47, 125, 91, 0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F7D5B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E");
}
.compare-cell.check-no { color: var(--ink-3); }
.compare-cell.check-no::before {
  background-color: rgba(22, 48, 59, 0.07);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23647A84' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 12h10'/%3E%3C/svg%3E");
}
@media (max-width: 640px) {
  .compare-row { grid-template-columns: 1.15fr 1fr 1fr; }
  .compare-cell { padding: 12px 10px; font-size: 13.5px; gap: 6px; }
  .compare-cell.check-yes::before, .compare-cell.check-no::before { width: 18px; height: 18px; background-size: 10px; }
}

/* =========================================================================
   12. UKK / FAQ
   ========================================================================= */
.faq-list { max-width: 880px; display: grid; gap: 12px; border: 0; }
.sec-head.center + .faq-list, #faqList { margin-left: auto !important; margin-right: auto !important; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0; overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.4s var(--ease-out);
}
.faq-item:hover { border-color: var(--line-strong); }
.faq-item.is-open, .faq-item[data-open="true"] { border-color: rgba(29, 94, 121, 0.3); box-shadow: var(--shadow-md); }
.panel-alt .faq-item { border-color: transparent; }

/* Ennen JS:ää (tai ilman JS:ää) staattinen h3 + p */
.faq-item:not(.faq-ready) > h3 { padding: 22px 24px 0; margin: 0 0 8px; font-size: 1.1rem; }
.faq-item:not(.faq-ready) > p { padding: 0 24px; }
.faq-item:not(.faq-ready) > p:last-child { padding-bottom: 22px; margin-bottom: 0; }

/* Haitari (JS) */
.faq-item.faq-ready > h3 { margin: 0; font-size: 1.1rem; }
.faq-toggle, .faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 24px; margin: 0;
  background: none; border: 0; cursor: pointer; text-align: left;
  font: inherit; color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; letter-spacing: -0.01em; line-height: 1.35;
}
.faq-q h3 { margin: 0; font-size: 1.1rem; font-weight: 600; }
.faq-toggle:hover, .faq-q:hover { color: var(--pine); }
.faq-icon, .faq-q .icon {
  position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: var(--pine-soft); color: var(--pine);
  transition: background-color 0.3s, transform 0.45s var(--ease-out);
}
.faq-q .icon { font-size: 0; }
.faq-icon::before, .faq-icon::after, .faq-q .icon::before, .faq-q .icon::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px;
  background: currentColor; border-radius: 2px; transition: transform 0.45s var(--ease-out);
}
.faq-icon::after, .faq-q .icon::after { transform: rotate(90deg); }
.faq-item.is-open .faq-icon, .faq-item[data-open="true"] .faq-q .icon { background: var(--pine); color: #fff; transform: rotate(180deg); }
.faq-item.is-open .faq-icon::after, .faq-item[data-open="true"] .faq-q .icon::after { transform: rotate(0deg); }

.faq-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease-out); }
.faq-item.is-open .faq-panel { grid-template-rows: 1fr; }
.faq-panel-inner { overflow: hidden; padding: 0 24px; }
.faq-panel-inner > :first-child { margin-top: 0; }
.faq-panel-inner > :last-child { padding-bottom: 22px; margin-bottom: 0; }
.faq-panel-inner p { color: var(--ink-2); }

.faq-a { display: grid; grid-template-rows: 0fr; max-height: none !important; padding: 0 24px; transition: grid-template-rows 0.45s var(--ease-out); }
.faq-a > p { overflow: hidden; margin: 0; }
.faq-item[data-open="true"] .faq-a { grid-template-rows: 1fr; margin-top: 0; padding-bottom: 22px; }

/* =========================================================================
   13. ALUEET, SIVUKARTTA
   ========================================================================= */
.area-list { display: flex; flex-wrap: wrap; gap: 10px; }
.area-list li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px 10px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 500; font-size: 15px;
  transition: transform 0.3s var(--ease-out), border-color 0.3s, background-color 0.3s;
}
.area-list li::before {
  content: ''; width: 16px; height: 16px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D5E79' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11a7 7 0 0114 0c0 4.8-7 11-7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.area-list li:hover { transform: translateY(-2px); border-color: rgba(29, 94, 121, 0.35); background: var(--pine-soft); }
.area-inline { padding: 18px 22px; border-radius: var(--radius-sm); background: var(--pine-soft); color: var(--ink); font-weight: 500; }

.sitemap-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 10px; }
.sitemap-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line);
  text-decoration: none; color: var(--ink); font-weight: 500; font-size: 15.5px;
  transition: border-color 0.3s, transform 0.3s var(--ease-out), color 0.2s;
}
.sitemap-list a::after { content: '→'; color: var(--pine); transition: transform 0.3s var(--ease-out); }
.sitemap-list a:hover { border-color: rgba(29, 94, 121, 0.35); color: var(--pine); transform: translateY(-2px); }
.sitemap-list a:hover::after { transform: translateX(4px); }
.page-slug-sivukartta .page-content > section { padding: clamp(32px, 4vw, 48px) 0; }
.page-slug-sivukartta .page-content > section:last-child { padding-bottom: var(--section-y); }
.city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.city-row { display: flex; flex-direction: column; gap: 6px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.city-row h3 { margin-bottom: 6px; }
.city-row a { color: var(--pine); font-size: 15px; text-decoration: none; }
.city-row a:hover { text-decoration: underline; }

/* =========================================================================
   14. SEO-YHTEENVETO, "LUE MYÖS"
   ========================================================================= */
.seo-summary .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.seo-summary.seo-summary-textonly .wrap { grid-template-columns: minmax(0, 1fr); max-width: calc(860px + var(--gutter) * 2); }
.seo-summary-text h4 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); letter-spacing: -0.025em; line-height: 1.15; margin-bottom: 20px; }
.seo-summary-text p { color: var(--ink-2); }
.seo-summary-media { position: relative; }
.seo-summary-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.seo-summary-media::before {
  content: ''; position: absolute; z-index: -1; left: -18px; bottom: -18px; width: 40%; aspect-ratio: 1;
  border-radius: var(--radius); background: var(--pine-soft);
}
.seo-summary-media.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.seo-summary-media.two-up img { aspect-ratio: 3 / 4; }
.seo-summary-media.two-up img:nth-child(2) { margin-top: 40px; }
@media (max-width: 860px) {
  .seo-summary .wrap { grid-template-columns: 1fr; }
}

.related-guides { background: var(--mist); }
.related-card .related-kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pine); margin-bottom: 10px; }
.related-card h3 a { text-decoration: none; color: inherit; }
.related-card h3 a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.related-card .card-link::after { display: none; }

/* =========================================================================
   15. CTA-OSIOT: final-cta, calc-banner, prose-cta
   ========================================================================= */
.final-cta { text-align: center; padding: clamp(80px, 10vw, 140px) 0 !important; }
.final-cta .wrap { max-width: 820px; }
.final-cta h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); letter-spacing: -0.035em; margin-bottom: 18px; }
.final-cta p { margin-left: auto; margin-right: auto; color: rgba(255, 255, 255, 0.75); font-size: 1.125rem; }
.final-cta .cta-row { justify-content: center; margin-top: 36px; }
.final-cta .btn { min-height: 60px; padding: 18px 34px; font-size: 17px; }
.final-cta .btn-primary { animation: ctaGlow 3.2s ease-in-out infinite; }
@keyframes ctaGlow { 0%, 100% { box-shadow: 0 8px 24px rgba(244, 198, 74, 0.3); } 50% { box-shadow: 0 8px 44px rgba(244, 198, 74, 0.6); } }

.calc-banner {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--spruce); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.calc-banner.alt { background: var(--pine); }
.calc-banner::before {
  content: ''; position: absolute; z-index: -1; right: -80px; top: -120px; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 216, 102, 0.35), transparent 70%);
  animation: floatBlob 9s var(--ease-in-out) infinite alternate;
}
.calc-banner::after {
  /* ikkunaruudun ääriviivat koristeena */
  content: ''; position: absolute; z-index: -1; left: -40px; bottom: -70px; width: 180px; height: 180px;
  border: 2px solid rgba(255, 255, 255, 0.12); border-radius: 12px;
  background: linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12)) center / 2px 100% no-repeat,
              linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12)) center / 100% 2px no-repeat;
}
@keyframes floatBlob { from { transform: translate(0, 0); } to { transform: translate(-60px, 40px); } }
.calc-banner-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 28px; padding: clamp(32px, 4vw, 56px); }
.calc-banner-inner > div { max-width: 640px; }
.calc-banner-inner h2, .calc-banner-inner h3 { color: #fff; font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.25rem); margin-bottom: 10px; }
.calc-banner-inner p { color: rgba(255, 255, 255, 0.78); margin: 0; font-size: 1.05rem; }
.calc-banner .btn[style] { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); }
.calc-banner .btn[style] { background: #fff !important; color: var(--pine-dim) !important; }

.prose { max-width: 820px; }
.prose .lead { font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem); color: var(--ink); font-weight: 500; line-height: 1.5; }
.prose h3 { margin-top: 36px; }
.prose h4 { margin-top: 24px; margin-bottom: 12px; }
.service-bullets { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 10px; margin: 8px 0 8px; }
.service-bullets li {
  position: relative; padding: 14px 16px 14px 48px; border-radius: var(--radius-sm);
  background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 500; font-size: 15.5px;
}
.service-bullets li::before {
  content: ''; position: absolute; left: 14px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%;
  background: var(--pine-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D5E79' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.prose-cta {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px;
  margin-top: 40px; padding: 24px 28px; border-radius: var(--radius);
  background: var(--spruce); color: #fff;
}
.prose-cta .tagline { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: #fff; max-width: 40ch; }
.prose-cta .btn-pine { --btn-bg: var(--gold); --btn-fg: var(--spruce); box-shadow: var(--shadow-gold); }
.prose-cta .btn-pine:hover { --btn-bg: var(--gold-dim); }

/* =========================================================================
   16. YHTEYDENOTTO JA LOMAKKEET
   ========================================================================= */
.contact .sec-head p, .contact-dark .section-head p { color: rgba(255, 255, 255, 0.75) !important; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-info p { color: rgba(255, 255, 255, 0.78); font-size: 1.05rem; }
.contact-info ul, .contact-dark-info ul { display: grid; gap: 10px; margin: 20px 0 0; }
.contact-info li, .contact-dark-info li {
  display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 500;
}
.contact-info li::before, .contact-dark-info li::before {
  content: ''; width: 10px; height: 10px; border-radius: 3px; background: var(--gold); flex: none;
}
.contact-info .btn, .contact-dark-info .btn { margin-top: 28px !important; }
.contact-dark-info { max-width: 640px; }
.contact-dark-info p { color: rgba(255, 255, 255, 0.78); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-form-col {
  background: #fff; color: var(--ink);
  border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 40px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}

.info-box { background: #fff !important; border: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: clamp(24px, 3vw, 36px) !important; }
.info-box ul { display: grid; gap: 10px; }
.info-box li { display: flex; gap: 10px; align-items: baseline; }
.info-box li::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--gold-dim); flex: none; transform: translateY(-2px); }
.info-box p[style] { color: var(--ink-3) !important; }
#tarjous-lomake {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 40px); box-shadow: var(--shadow-md); max-width: 820px;
}

/* Fluent Forms – yhtenäinen ilme */
.fluentform .ff-el-group { margin-bottom: 18px; }
.fluentform .ff-el-input--label label, .fluentform label {
  color: var(--ink) !important; font-weight: 600 !important; font-size: 14.5px !important; opacity: 1 !important;
}
.fluentform .ff-el-form-control,
.fluentform input[type="text"], .fluentform input[type="email"], .fluentform input[type="tel"], .fluentform input[type="number"],
.fluentform select, .fluentform textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px !important;
  font: inherit !important; font-size: 16px !important;
  color: var(--ink) !important; background: var(--paper) !important;
  border: 1.5px solid transparent !important; border-radius: var(--radius-sm) !important;
  box-shadow: inset 0 0 0 1px var(--line) !important;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s !important;
}
.fluentform textarea { min-height: 120px; }
.fluentform .ff-el-form-control:hover { box-shadow: inset 0 0 0 1px var(--line-strong) !important; }
.fluentform .ff-el-form-control:focus,
.fluentform input:focus, .fluentform select:focus, .fluentform textarea:focus {
  outline: none !important; background: #fff !important; border-color: var(--pine) !important;
  box-shadow: 0 0 0 4px rgba(29, 94, 121, 0.15) !important;
}
.fluentform .ff-btn-submit, .fluentform button[type="submit"] {
  display: inline-flex !important; align-items: center; justify-content: center;
  width: 100%; min-height: 56px; padding: 16px 28px !important;
  font: inherit !important; font-weight: 700 !important; font-size: 17px !important;
  color: var(--spruce) !important; background: var(--gold) !important;
  border: 0 !important; border-radius: 999px !important; cursor: pointer;
  box-shadow: var(--shadow-gold) !important;
  transition: transform 0.3s var(--ease-out), background-color 0.2s !important;
}
.fluentform .ff-btn-submit:hover, .fluentform button[type="submit"]:hover { background: var(--gold-dim) !important; transform: translateY(-2px); }
.fluentform .ff-el-is-error .ff-el-form-control { box-shadow: inset 0 0 0 1.5px #C2412D !important; }
.fluentform .error, .fluentform .text-danger { color: #B3361F !important; font-size: 13.5px; }
.ff-message-success {
  border: 0 !important; border-radius: var(--radius) !important; padding: 24px !important;
  background: rgba(47, 125, 91, 0.1) !important; color: var(--ink) !important; box-shadow: none !important;
}

/* =========================================================================
   17. ENERGIANSÄÄSTÖLASKURI
   ========================================================================= */
.page-slug-energiansaastolaskuri .page-content > .wrap { padding-bottom: var(--section-y); }
.calc { position: relative; }
.calc-grid {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden;
}
.inputs-panel { padding: clamp(24px, 4vw, 48px); display: grid; gap: 32px; }
.field-label { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--ink); margin-bottom: 14px; }
.field-hint { font-size: 14px; color: var(--ink-3); margin: 14px 0 0; }
.slider-row { display: flex; align-items: center; gap: 20px; }
.slider-row input[type="range"] {
  -webkit-appearance: none; appearance: none; flex: 1; height: 8px; border-radius: 8px; cursor: pointer;
  background: linear-gradient(90deg, var(--pine), var(--pine-soft));
}
.slider-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--gold); border: 4px solid #fff; box-shadow: 0 2px 10px rgba(16, 37, 48, 0.3);
  transition: transform 0.2s var(--ease-out);
}
.slider-row input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
.slider-row input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--gold); border: 4px solid #fff; box-shadow: 0 2px 10px rgba(16, 37, 48, 0.3); }
.slider-value {
  min-width: 64px; text-align: center; padding: 8px 12px; border-radius: var(--radius-sm);
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--spruce); background: var(--pine-soft);
  font-variant-numeric: tabular-nums;
}
.segmented { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px; background: var(--paper); border-radius: 16px; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label {
  flex: 1 1 auto; text-align: center; cursor: pointer;
  padding: 12px 16px; border-radius: 12px; font-weight: 600; font-size: 15px; color: var(--ink-2);
  transition: background-color 0.25s, color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease-out);
}
.segmented label:hover { color: var(--spruce); background: rgba(255, 255, 255, 0.7); }
.segmented input:checked + label { background: #fff; color: var(--spruce); box-shadow: var(--shadow-sm), inset 0 0 0 1.5px var(--pine); }
.segmented input:focus-visible + label { outline: 3px solid var(--gold); outline-offset: 2px; }

.result-panel {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(24px, 4vw, 48px); background: var(--spruce); color: rgba(255, 255, 255, 0.78);
  display: flex; flex-direction: column;
}
.result-panel::before {
  content: ''; position: absolute; z-index: -1; right: -100px; top: -100px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 216, 102, 0.28), transparent 70%);
}
.result-label { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.num-display {
  margin: 10px 0 14px; color: #fff; font-family: var(--font-display); font-weight: 700; line-height: 1;
  font-size: clamp(3rem, 2rem + 4vw, 4.75rem); letter-spacing: -0.04em; font-variant-numeric: tabular-nums;
}
.num-display span:last-child { font-size: 0.36em; letter-spacing: -0.01em; color: rgba(255, 255, 255, 0.7); margin-left: 6px; }
.num-display.bump { animation: bump 0.45s var(--ease-out); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.06); color: var(--gold); } 100% { transform: scale(1); } }
.result-sub { color: rgba(255, 255, 255, 0.8); }
.grade-block { margin: 24px 0; }
.grade-caption { font-size: 13.5px; font-weight: 600; color: rgba(255, 255, 255, 0.85); margin-bottom: 10px; }
.grade-bar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; height: 12px; }
.grade-bar span { border-radius: 4px; }
.grade-markers { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 8px; text-align: center; }
.grade-markers span { font-weight: 700; font-size: 13px; color: rgba(255, 255, 255, 0.45); padding: 4px 0; border-radius: 6px; transition: all 0.35s var(--ease-out); }
.grade-markers span.is-current { color: var(--spruce); background: #fff; transform: translateY(-2px); }
.grade-markers span.is-target { color: var(--spruce); background: var(--gold); transform: translateY(-2px); }
.disclaimer { font-size: 12.5px; color: rgba(255, 255, 255, 0.55); margin: auto 0 0; }
.cta-band {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px;
  margin-top: 24px; padding: 24px 32px; border-radius: var(--radius);
  background: var(--gold-soft); border: 1px solid rgba(244, 198, 74, 0.5);
}
.cta-band p { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--ink); }
.cta-band .primary {
  display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 14px 28px; border-radius: 999px;
  background: var(--spruce); color: #fff; font-weight: 600; text-decoration: none;
  transition: transform 0.3s var(--ease-out), background-color 0.2s;
}
.cta-band .primary::after { content: '→'; transition: transform 0.3s var(--ease-out); }
.cta-band .primary:hover { transform: translateY(-2px); background: var(--pine-dim); }
.cta-band .primary:hover::after { transform: translateX(3px); }
.benefits-section { background: var(--mist); }
.benefits-section > .wrap > h2 { margin-bottom: 12px; }
.benefits-intro { font-size: 1.1rem; margin-bottom: 40px; }
@media (max-width: 860px) { .calc-grid { grid-template-columns: 1fr; } }

/* =========================================================================
   18. ALATUNNISTE
   ========================================================================= */
.site-footer { background: var(--night); color: rgba(255, 255, 255, 0.68); font-size: 15px; position: relative; overflow: hidden; }
.site-footer::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 60% at 90% 0%, rgba(29, 94, 121, 0.4), transparent 70%);
}
.footer-grid {
  position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px;
  padding-top: clamp(56px, 7vw, 88px); padding-bottom: 48px;
}
.footer-brand p { margin-top: 18px; max-width: 34ch; }
.footer-title { font-family: var(--font-sans); font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: rgba(255, 255, 255, 0.78); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-contact li { display: flex; align-items: center; gap: 10px; }
.footer-contact .i { width: 18px; height: 18px; color: var(--gold); flex: none; }
.footer-link-strong { color: #fff !important; font-weight: 600; }
.footer-bottom { position: relative; border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 20px 0 calc(20px + env(safe-area-inset-bottom)); font-size: 13.5px; }
.footer-bottom .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom a { color: rgba(255, 255, 255, 0.68); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } .site-footer { padding-bottom: 72px; } }

/* =========================================================================
   19. KIINTEÄ MOBIILI-CTA JA TARJOUSMODAALI
   ========================================================================= */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(16, 37, 48, 0.08);
  transform: translateY(110%); transition: transform 0.45s var(--ease-out);
}
.sticky-cta .btn { width: 100%; }
.sticky-cta.is-visible { transform: none; }
@media (min-width: 761px) { .sticky-cta { display: none; } }

.quote-modal {
  width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
  padding: 0; border: 0; border-radius: var(--radius-lg);
  background: #fff; color: var(--ink-2); box-shadow: var(--shadow-lg);
  overflow: auto; overscroll-behavior: contain;
}
.quote-modal::backdrop { background: rgba(16, 37, 48, 0.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.quote-modal[open] { animation: modalIn 0.5s var(--ease-out); }
.quote-modal[open]::backdrop { animation: fadeIn 0.4s ease; }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.quote-modal-inner { position: relative; }
.quote-modal-head {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 36px clamp(24px, 4vw, 40px) 28px; background: var(--spruce); color: rgba(255, 255, 255, 0.78);
}
.quote-modal-head::before { content: ''; position: absolute; z-index: -1; right: -60px; top: -80px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 216, 102, 0.3), transparent 70%); }
.quote-modal-head h2 { color: #fff; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); margin-bottom: 8px; }
.quote-modal-head p { margin: 0; }
.quote-modal-kicker { font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold) !important; margin-bottom: 10px !important; }
.quote-modal-form { box-shadow: none; border-radius: 0; }
.quote-modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.12); color: #fff; transition: background-color 0.2s, transform 0.3s var(--ease-out);
}
.quote-modal-close:hover { background: rgba(255, 255, 255, 0.22); transform: rotate(90deg); }
.quote-modal-close .i { width: 20px; height: 20px; }

/* 404 */
.fallback-404 { text-align: center; max-width: 640px; margin: 0 auto; }
.fallback-404 p { margin-left: auto; margin-right: auto; }
.fallback-404 .cta-row { justify-content: center; }

/* =========================================================================
   20. ILMESTYMISANIMAATIOT (JS lisää .reveal-luokan vain näkymän ulkopuolisille)
   ========================================================================= */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal.seo-summary-media, .js .reveal.remontti-card, .js .reveal.service-card { transform: translateY(36px) scale(0.98); }
.js .reveal.seo-summary-media.is-visible, .js .reveal.remontti-card.is-visible, .js .reveal.service-card.is-visible { transform: none; }
.js .reveal.area-list li, .js .area-list li.reveal { transform: translateY(12px) scale(0.95); }
.js .area-list li.reveal.is-visible { transform: none; }
/* Kun kortti on ilmestynyt, palautetaan nopea hover-siirtymä */
.js .reveal.is-visible.type-card, .js .reveal.is-visible.audience-card, .js .reveal.is-visible.process-item,
.js .reveal.is-visible.benefit-card, .js .reveal.is-visible.signs-card, .js .reveal.is-visible.feature-item,
.js .reveal.is-visible.process-step, .js .reveal.is-visible.remontti-card, .js .reveal.is-visible.service-card {
  transition: opacity 0.8s var(--ease-out), transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out), border-color 0.3s;
  transition-delay: 0ms;
}

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

/* =========================================================================
   21. TULOSTUS
   ========================================================================= */
@media print {
  .site-header, .sticky-cta, .quote-modal, .site-footer, .trust-strip, .breadcrumbs { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .panel-dark, .final-cta, .contact, .contact-dark { background: #fff !important; color: #000 !important; }
  .panel-dark *, .final-cta * { color: #000 !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* =========================================================================
   22. NORDIC CRM -LOMAKKEET (esite, laskurin tulos)
   ========================================================================= */
.esite-cta { padding: clamp(40px, 5vw, 64px) 0 0 !important; }
.esite-cta .nordic-crm-form { max-width: 820px; margin: 0; }
.page-slug-energiansaastolaskuri .nordic-crm-form { margin-top: 16px; }
.nordic-crm-form .ncf-submit { box-shadow: var(--shadow-gold); transition: transform 0.3s var(--ease-out), background-color 0.2s; }
.nordic-crm-form .ncf-submit:hover { background: var(--gold-dim); transform: translateY(-2px); }

/* Artikkelin sisällysluettelo */
.toc { padding: 24px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm, 0 2px 10px rgba(22, 48, 59, .06)); }
.toc-title { margin: 0 0 10px; font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.toc ol { margin: 0; padding-left: 22px; columns: 2 260px; column-gap: 32px; }
.toc li { margin: 0 0 8px; break-inside: avoid; }
.toc a { color: var(--pine); font-weight: 600; text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.article-body[id], section[id] { scroll-margin-top: 96px; }
.intro .toc { margin-top: 32px; max-width: 800px; }

/* Aluesivustot: 9 välilehteä → kaksirivinen ylätunniste työpöydällä */
@media (min-width: 961px) {
  :root:has(body.nordic-regional) { --header-h: 112px; }
  body.nordic-regional .site-header-inner,
  body.nordic-regional .site-header.is-scrolled .site-header-inner { height: auto; flex-wrap: wrap; row-gap: 0; padding-top: 12px; padding-bottom: 6px; }
  body.nordic-regional .site-logo { order: 1; }
  body.nordic-regional .header-cta { order: 2; margin-left: auto; }
  body.nordic-regional .site-nav { order: 3; flex: 1 0 100%; margin-left: -12px; }
  body.nordic-regional .site-nav ul { flex-wrap: nowrap; gap: 0; }
  body.nordic-regional .site-nav a:not(.btn) { white-space: nowrap; }
}
@media (min-width: 961px) and (max-width: 1080px) {
  body.nordic-regional .site-nav { margin-left: -7px; }
  body.nordic-regional .site-nav a:not(.btn) { padding: 10px 7px; font-size: 14px; }
}
/* Pitkät yhdyssanat eivät saa työntyä otsikon ulkopuolelle */
h1, h2 { overflow-wrap: break-word; hyphens: auto; }
