/* ==========================================================
   Jobit Group Oy – sivuston tyylit
   ========================================================== */
/* Fontti omalta palvelimelta (Plus Jakarta Sans, SIL Open Font License) – ei yhteyttä Googleen */
@font-face {
  font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #0e1621;
  --ink-2: #2b3644;
  --muted: #5d6b7c;
  --line: #e3e9f0;
  --bg: #ffffff;
  --bg-soft: #f4f8fc;
  --bg-blue: #eaf3fb;
  --brand: #76afd9;        /* logon sininen */
  --brand-strong: #1f6fb2; /* painikkeet, linkit */
  --brand-deep: #0f3e66;
  --navy: #0b1724;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px -24px rgba(14, 40, 70, .35);
  --shadow-sm: 0 6px 20px -10px rgba(14, 40, 70, .25);
  --container: 1200px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-2);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: clamp(2.2rem, 5vw, 3.9rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.3rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--soft { background: var(--bg-soft); }
.section--blue { background: var(--bg-blue); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-strong); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--brand); border-radius: 2px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ""; width: 26px; height: 2px; background: var(--brand); border-radius: 2px; }
.section-head.center .lead { margin: 0 auto; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* ---------- Painikkeet ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer; transition: .2s ease; text-decoration: none !important;
  font-family: inherit; line-height: 1.2; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--brand-strong); color: #fff; box-shadow: 0 10px 24px -12px rgba(31,111,178,.8); }
.btn--primary:hover { background: var(--brand-deep); }
.btn--ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.5); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: #fff; color: var(--ink); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: var(--bg-blue); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  /* Läpikuultava yläpalkki: tausta näkyy läpi, sumennus + vaalennus pitää tekstin luettavana kaikilla taustoilla */
  background: rgba(255,255,255,.5);
  -webkit-backdrop-filter: blur(16px) saturate(170%) brightness(1.2);
  backdrop-filter: blur(16px) saturate(170%) brightness(1.2);
  border-bottom: 1px solid rgba(255,255,255,.35); transition: border-color .2s, box-shadow .2s;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: rgba(255,255,255,.9); }
}
.site-header.is-scrolled { border-color: rgba(14,22,33,.08); box-shadow: 0 8px 30px -20px rgba(0,0,0,.25); }
.main-nav a, .brand { text-shadow: 0 0 10px rgba(255,255,255,.7); }
/* Sivun yläkuva jatkuu yläpalkin alle */
:root { --header-h: 84px; }
#main { margin-top: calc(-1 * var(--header-h)); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 84px; }
.brand img { height: 56px; width: auto; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: 10px 14px; border-radius: 999px; color: var(--ink); font-weight: 600; font-size: .95rem;
  text-decoration: none; transition: background .15s; white-space: nowrap;
}
.main-nav li.nav-cta { display: none; }
.main-nav a:hover { background: var(--bg-soft); }
.main-nav a[aria-current="page"] { background: var(--bg-blue); color: var(--brand-deep); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions .btn { padding: 12px 20px; font-size: .95rem; }

.lang-toggle {
  display: inline-flex; padding: 4px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line);
}
.lang-toggle button {
  border: 0; background: transparent; font: inherit; font-size: .8rem; font-weight: 800; letter-spacing: .06em;
  padding: 7px 11px; border-radius: 999px; cursor: pointer; color: var(--muted);
}
.lang-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }

.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: .25s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Kuvat (taustakuva + varaväri jos kuvaa ei ole) ---------- */
.media {
  background-color: #cfdcea;
  background-size: cover; background-position: center;
}
.img-home      { --img: url("../img/etusivu.jpg"); }
.img-regular   { --img: url("../img/yllapitosiivous.jpg"); }
.img-final     { --img: url("../img/loppusiivous.jpg"); }
.img-furnished { --img: url("../img/kalustetut-asunnot.jpg"); }
.img-team      { --img: url("../img/tiimi.jpg"); background-position: center 30%; }
.media {
  background-image: var(--img, none),
    radial-gradient(120% 90% at 85% 10%, #9cc6e6 0%, transparent 55%),
    linear-gradient(135deg, #dbe7f2 0%, #b7cde2 55%, #8fb0cf 100%);
}

/* ---------- Hero ---------- */
/* Etusivun yläkuva: korkeus seuraa kuvan mittasuhteita, jotta koko kuva näkyy (sisältö voi venyttää korkeutta) */
.hero { display: flex; align-items: center; }
.hero::before { content: ""; flex: none; width: 0; padding-top: calc(100% / (2000 / 1354)); }
/* Häivytys: kuva tummuu alaspäin mentäessä, vasen reuna hieman tummempi tekstin luettavuuden vuoksi */
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8,20,34,.12) 0%, rgba(8,20,34,.32) 45%, rgba(8,20,34,.68) 80%, rgba(8,20,34,.9) 100%),
    linear-gradient(90deg, rgba(8,20,34,.5) 0%, rgba(8,20,34,.18) 55%, rgba(8,20,34,0) 100%);
}

.hero { position: relative; color: #fff; overflow: hidden; }
.hero .media { position: absolute; inset: 0; }
.hero-inner { position: relative; z-index: 1; padding: calc(var(--header-h) + clamp(90px, 14vw, 170px)) 0 clamp(110px, 14vw, 180px); max-width: 860px; }
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p { font-size: 1.15rem; color: rgba(255,255,255,.86); max-width: 620px; margin-bottom: 34px; }
.hero .eyebrow { color: #bfe0f8; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 40px; font-size: .93rem; color: rgba(255,255,255,.85); }
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges svg { width: 18px; height: 18px; color: var(--brand); }

.page-hero { position: relative; color: #fff; overflow: hidden; }
.page-hero .media { position: absolute; inset: 0; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(8,20,34,.86) 0%, rgba(8,20,34,.55) 60%, rgba(8,20,34,.25) 100%); }
.page-hero .container { position: relative; z-index: 1; padding-top: calc(var(--header-h) + clamp(70px, 10vw, 120px)); padding-bottom: clamp(70px, 10vw, 120px); }
.page-hero h1 { color: #fff; max-width: 760px; }
.page-hero p { color: rgba(255,255,255,.85); font-size: 1.12rem; max-width: 640px; margin: 0; }
.page-hero .eyebrow { color: #bfe0f8; }
.breadcrumb { font-size: .88rem; color: rgba(255,255,255,.7); margin-bottom: 18px; }
.breadcrumb a { color: rgba(255,255,255,.85); }

/* ---------- Luottamuspalkki ---------- */
.trust { position: relative; z-index: 2; margin-top: -64px; }
.trust-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.trust-item { padding: 28px 26px; display: flex; gap: 16px; align-items: flex-start; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-item h3 { font-size: 1rem; margin-bottom: 4px; }
.trust-item p { font-size: .9rem; color: var(--muted); margin: 0; line-height: 1.5; }
.icon-badge {
  flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--bg-blue); color: var(--brand-strong);
  display: grid; place-items: center;
}
.icon-badge svg { width: 22px; height: 22px; }

/* ---------- Palvelukortit ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card {
  display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); transition: transform .25s ease, box-shadow .25s ease; color: inherit; text-decoration: none !important;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-card .media { aspect-ratio: 4 / 3; transition: transform .6s ease; }
.service-card .media-wrap { overflow: hidden; position: relative; }
.service-card:hover .media { transform: scale(1.05); }
.service-card .num { position: absolute; top: 16px; left: 16px; background: rgba(255,255,255,.92); color: var(--ink); font-weight: 800; font-size: .8rem; padding: 6px 12px; border-radius: 999px; }
.service-card-body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.service-card-body p { color: var(--muted); font-size: .98rem; }
.service-card .more { margin-top: auto; font-weight: 700; color: var(--brand-strong); display: inline-flex; align-items: center; gap: 8px; }
.service-card .more svg { width: 18px; height: 18px; transition: transform .2s; }
.service-card:hover .more svg { transform: translateX(4px); }

/* ---------- Kaksipalstainen ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.split--reverse > :first-child { order: 2; }
.split-media { position: relative; }
.split-media .media { aspect-ratio: 5 / 4; border-radius: var(--radius); box-shadow: var(--shadow); }
.split-media .media.img-team { aspect-ratio: 4 / 5; max-height: 640px; width: 100%; }
.split-media .float-card {
  position: absolute; right: -18px; bottom: -26px; background: #fff; border-radius: var(--radius-sm);
  padding: 18px 22px; box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center; max-width: 290px;
}
.float-card strong { display: block; color: var(--ink); font-size: 1rem; line-height: 1.3; }
.float-card span { font-size: .85rem; color: var(--muted); }

/* ---------- Tarkistuslista ---------- */
.checklist { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; font-weight: 600; color: var(--ink); }
.checklist li::before {
  content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%; margin-top: 1px;
  background: var(--bg-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f6fb2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.checklist--cards { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.checklist--cards li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 18px; align-items: center; }

/* ---------- Prosessi ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
.step { position: relative; background: #fff; border-radius: var(--radius); padding: 34px 30px; border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-size: 2.6rem; font-weight: 800; line-height: 1; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step p { color: var(--muted); margin: 0; font-size: .98rem; }

/* ---------- Hinnasto ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.price-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 32px;
  display: flex; flex-direction: column; position: relative; transition: box-shadow .25s, transform .25s;
}
.price-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.price-card.is-featured { background: var(--navy); color: rgba(255,255,255,.8); border-color: var(--navy); }
.price-card.is-featured h3, .price-card.is-featured .price { color: #fff; }
.price-card .tag { position: absolute; top: 22px; right: 22px; background: var(--brand); color: var(--navy); font-size: .72rem; font-weight: 800; padding: 5px 10px; border-radius: 999px; letter-spacing: .06em; text-transform: uppercase; }
.price-card .from { font-size: .9rem; font-weight: 600; opacity: .75; }
.price { font-size: 3rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; line-height: 1; margin: 6px 0 4px; }
.price small { font-size: 1.1rem; font-weight: 700; letter-spacing: 0; }
.price-card .vat { font-size: .82rem; opacity: .7; margin-bottom: 20px; }
.price-card .desc { font-size: .97rem; flex: 1; }
.price-card .btn { margin-top: 18px; align-self: flex-start; }
.price-card.is-featured .muted-link { color: var(--brand); }
.price-quote { font-size: 2.1rem; }
.note-box { margin-top: 34px; background: var(--bg-blue); border-radius: var(--radius-sm); padding: 22px 26px; display: flex; gap: 16px; align-items: flex-start; font-size: .95rem; color: var(--ink-2); }
.note-box svg { flex: none; width: 22px; height: 22px; color: var(--brand-strong); margin-top: 2px; }
.note-box p { margin: 0; }

/* ---------- Palvelusivun asettelu ---------- */
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(36px, 5vw, 70px); align-items: start; }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose p { color: var(--ink-2); }
.prose .lead { color: var(--ink-2); font-size: 1.2rem; }
.aside-card { position: sticky; top: 108px; background: var(--navy); color: rgba(255,255,255,.8); border-radius: var(--radius); padding: 32px; }
.aside-card h3 { color: #fff; }
.aside-card .price { color: #fff; font-size: 2.6rem; }
.aside-card .btn { width: 100%; margin-top: 10px; }
.aside-card hr { border: 0; border-top: 1px solid rgba(255,255,255,.12); margin: 22px 0; }
.aside-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .95rem; }
.aside-card li { display: flex; gap: 10px; align-items: center; }
.aside-card li svg { width: 18px; height: 18px; color: var(--brand); flex: none; }
.aside-card a:not(.btn) { color: #fff; }

.highlight-box { background: var(--bg-soft); border-left: 4px solid var(--brand); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 22px 26px; margin: 28px 0; }
.highlight-box p:last-child { margin: 0; }

/* ---------- Muut palvelut ---------- */
.mini-services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.mini-service { display: flex; align-items: center; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; color: var(--ink); text-decoration: none !important; transition: .2s; }
.mini-service:hover { box-shadow: var(--shadow-sm); border-color: var(--brand); }
.mini-service .media { width: 110px; height: 86px; border-radius: 12px; flex: none; }
.mini-service strong { display: block; font-size: 1.08rem; }
.mini-service span { font-size: .9rem; color: var(--muted); }

/* ---------- Meistä ---------- */
.founders { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 30px; }
.founder { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; gap: 16px; align-items: center; }
.avatar { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; color: #fff; background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%); flex: none; }
.avatar--photo { width: 76px; height: 76px; object-fit: cover; background: #cfdcea; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--bg-blue); }
.founder strong { display: block; color: var(--ink); font-size: 1.08rem; }
.founder span { font-size: .9rem; color: var(--muted); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.values--two { grid-template-columns: repeat(2, 1fr); max-width: 880px; margin: 0 auto; }
.value { padding: 32px 28px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.value .icon-badge { margin-bottom: 20px; }
.value p { color: var(--muted); margin: 0; font-size: .98rem; }
.quote-block { font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 700; color: var(--ink); line-height: 1.4; letter-spacing: -.01em; position: relative; padding-left: 28px; border-left: 4px solid var(--brand); margin: 0; }

/* ---------- CTA-palkki ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--navy); color: #fff; border-radius: 28px; padding: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: 1.4fr auto; gap: 30px; align-items: center; }
.cta-band::before {
  content: ""; position: absolute; width: 620px; height: 300px; right: -160px; top: -120px; border-radius: 50%;
  border: 3px solid rgba(118,175,217,.35); transform: rotate(-12deg);
}
.cta-band::after {
  content: ""; position: absolute; width: 520px; height: 240px; right: -60px; bottom: -150px; border-radius: 50%;
  border: 2px solid rgba(118,175,217,.25); transform: rotate(-12deg);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,.78); margin: 0; font-size: 1.08rem; }

/* ---------- Lomake ---------- */
.quote-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(30px, 5vw, 64px); align-items: start; }
.form-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(26px, 4vw, 44px); border: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 700; font-size: .92rem; color: var(--ink); }
.field .req { color: var(--brand-strong); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg-soft); border: 1.5px solid var(--line);
  border-radius: 12px; padding: 13px 15px; transition: border-color .15s, background .15s, box-shadow .15s; width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-strong); background: #fff; box-shadow: 0 0 0 4px rgba(31,111,178,.12); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #c0392b; }
.field .error { color: #c0392b; font-size: .82rem; display: none; }
.field.has-error .error { display: block; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.chip-group { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--bg-soft); font-weight: 600; font-size: .93rem; cursor: pointer; transition: .15s; color: var(--ink-2);
}
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { box-shadow: 0 0 0 4px rgba(31,111,178,.25); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand-strong); flex: none; }
.form-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.form-actions small { color: var(--muted); }
.form-success { display: none; text-align: center; padding: 40px 10px; }
.form-success .icon-badge { width: 70px; height: 70px; border-radius: 50%; margin: 0 auto 20px; }
.form-success .icon-badge svg { width: 32px; height: 32px; }
.form-card.is-sent form { display: none; }
.form-card.is-sent .form-success { display: block; }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 16px; align-items: center; }
.contact-list small { display: block; color: var(--muted); font-size: .82rem; }
.contact-list a, .contact-list strong { color: var(--ink); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.7); padding: 80px 0 30px; margin-top: 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; }
.footer-logo img { height: 74px; width: auto; margin-bottom: 18px; }
.site-footer h4 { color: #fff; font-size: .95rem; letter-spacing: .02em; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer a:hover { color: #fff; }
.footer-links { display: inline-flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; }

/* ---------- Animaatiot ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Responsiivisuus ---------- */
@media (max-width: 1240px) {
  .main-nav a { padding: 10px 10px; font-size: .9rem; }
}
@media (max-width: 1120px) {
  .header-actions .btn { display: none; }
  .main-nav li.nav-cta { display: block; }
}
@media (max-width: 980px) {
  .main-nav li.nav-cta { display: block; }
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: 84px 0 auto 0; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 40px -30px rgba(0,0,0,.3); padding: 12px 24px 28px; display: none; max-height: calc(100vh - 84px); overflow: auto;
  }
  .nav-open .main-nav { display: block; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { padding: 14px 16px; font-size: 1.05rem; border-radius: 12px; }
  .header-actions { margin-left: auto; }
  .services-grid, .price-grid, .steps, .values { grid-template-columns: 1fr 1fr; }
  .split, .content-grid, .quote-layout { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
  .aside-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  :root { --header-h: 72px; }
  .header-inner { height: 72px; gap: 12px; }
  .main-nav { inset: 72px 0 auto 0; }
  .brand img { height: 46px; }
  .trust { margin-top: -40px; }
  .trust-grid, .services-grid, .price-grid, .steps, .values, .mini-services, .founders, .form-grid { grid-template-columns: 1fr; }
  .trust-item { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .trust-item:last-child { border-bottom: 0; }
  .split-media .float-card { right: 12px; bottom: -22px; left: 12px; max-width: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn-row .btn { width: 100%; }
  .price { font-size: 2.6rem; }
}

/* ---------- Tietosuojaseloste ---------- */
.policy { max-width: 780px; }
.policy h2 { font-size: clamp(1.3rem, 2vw, 1.6rem); margin-top: 2em; }
.policy ul { padding-left: 1.2em; margin: 0 0 1.2em; display: grid; gap: 6px; }
.policy .policy-facts { list-style: none; padding: 22px 26px; background: var(--bg-soft); border-radius: var(--radius-sm); }
.policy a { color: var(--brand-strong); }
.policy-updated { margin-top: 2.4em; font-size: .9rem; color: var(--muted) !important; }

/* ---------- 404 ---------- */
.page-hero--404 { min-height: 78vh; display: flex; align-items: center; }
.page-hero--404 .container { width: 100%; }

/* ---------- Roskapostisuoja: piilokenttä, jonka vain botit täyttävät ---------- */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Puuttuva tieto (näkyy keltaisena, kunnes korvattu oikealla) ---------- */
