:root {
  --navy: #1c244b;
  --navy-2: #324a6d;
  --sky: #c8d5dc;
  --accent: #467ff7;
  --bg: #ffffff;
  --bg-soft: #f4f7f9;
  --text: #2a3047;
  --muted: #5d6680;
  --line: #dde3ea;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(28, 36, 75, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
h1, h2, h3, h4 { font-family: "Raleway", sans-serif; font-variant-numeric: lining-nums; color: var(--navy); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--navy-2); margin-bottom: .8em; display: block; }

/* Top bar + header */
.topbar { background: var(--navy); color: #fff; font-size: .9rem; }
.topbar .wrap { display: flex; gap: 24px; justify-content: flex-end; padding: 8px 0; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }

.header { position: relative; z-index: 50;background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; }
.logo img { width: 200px; height: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--navy); text-decoration: none; font-weight: 600; }
.nav a.active, .nav a:hover { color: var(--accent); }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font: inherit; color: var(--navy); cursor: pointer; }

.btn {
  display: inline-block; background: var(--navy); color: #fff !important; text-decoration: none;
  padding: 14px 28px; border-radius: 999px; font-weight: 700; border: 0; cursor: pointer; font: inherit; font-weight: 700;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--accent); transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--navy) !important; }
.btn-light:hover { background: var(--sky); }

/* Hero */
.hero {
  position: relative; color: #fff;
  background: linear-gradient(100deg, rgba(28,36,75,.92) 0%, rgba(28,36,75,.75) 45%, rgba(28,36,75,.35) 100%), url("kuvat/hero-olohuone.jpg") center/cover;
  padding: 80px 0;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.hero h1 { color: #fff; }
.hero .lead { font-size: 1.2rem; opacity: .95; }
.hero .tag { display: inline-block; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); padding: 6px 14px; border-radius: 999px; font-size: .9rem; margin-bottom: 18px; }
.hero ul.checks { list-style: none; padding: 0; margin: 24px 0 32px; }
.hero ul.checks li { padding-left: 28px; position: relative; margin-bottom: 8px; }
.hero ul.checks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px; border-left: 3px solid var(--sky); border-bottom: 3px solid var(--sky); transform: rotate(-45deg); }

/* Offer form */
.form-card { background: #fff; color: var(--text); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.form-card h3 { margin-bottom: .3em; }
.form-card .sub { color: var(--muted); margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: .92rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 1.5px solid #cfd7e1; border-radius: 10px; font: inherit; font-size: 1rem; color: var(--text); background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder, .field textarea::placeholder { color: #9aa3b5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(70, 127, 247, .15); }
.radio-row { display: flex; gap: 18px; padding-top: 4px; }
.radio-row label { font-weight: 400; display: flex; gap: 6px; align-items: center; color: var(--text); }
.form-card .btn { width: 100%; margin-top: 16px; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 10px; }
.form-done { display: none; background: #e9f7ee; color: #1d6b3a; padding: 14px; border-radius: 8px; margin-top: 12px; }

/* Sections */
section { padding: 88px 0; }
.soft { background: var(--bg-soft); }
.center { text-align: center; }
.center p.intro { max-width: 640px; margin: 0 auto 40px; color: var(--muted); }

.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.feature .num { width: 44px; height: 44px; border-radius: 12px; background: var(--sky); color: var(--navy); display: grid; place-items: center; font-weight: 800; margin-bottom: 14px; font-family: "Raleway", sans-serif; font-variant-numeric: lining-nums; }
.feature p { color: var(--muted); margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.split ul { padding-left: 0; list-style: none; }
.split li { margin-bottom: 14px; padding-left: 20px; border-left: 3px solid var(--sky); }
.split li strong { color: var(--navy); }

.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why .feature { box-shadow: none; border: 1px solid var(--line); }

/* Testimonials */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.review blockquote { margin: 0 0 20px; color: var(--text); flex: 1; }
.review blockquote::before { content: "\201C"; display: block; font-family: Georgia, serif; font-size: 3rem; line-height: .8; color: var(--sky); }
.review .who { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--navy); }
.review .who img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }

/* FAQ */
.faq { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; align-items: start; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 700; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--navy-2); }
.faq details[open] summary::after { content: "\2013"; }
.faq .body { padding: 0 22px 20px; color: var(--text); }
.faq .body h4 { margin: 1.2em 0 .5em; font-size: 1.05rem; }
.faq .body ul { padding-left: 20px; }
.faq .src { color: var(--muted); font-size: .85rem; }
.table-wrap { overflow-x: auto; margin: 0 0 1em; }
.faq table { border-collapse: collapse; width: 100%; font-size: .92rem; min-width: 520px; }
.faq th, .faq td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.faq th { background: var(--bg-soft); color: var(--navy); }
.areas { columns: 3 200px; column-gap: 24px; }
.areas div { break-inside: avoid; margin-bottom: 14px; }
.areas strong { color: var(--navy); display: block; }
.areas span { color: var(--muted); font-size: .92rem; }

/* CTA band */
.cta {
  color: #fff; text-align: center;
  background: linear-gradient(rgba(28,36,75,.85), rgba(28,36,75,.85)), url("kuvat/cta-olohuone.jpg") center/cover;
}
.cta h2 { color: #fff; }
.cta p { opacity: .92; margin-bottom: 28px; }

/* Contact page */
.page-head { background: var(--navy); color: #fff; padding: 64px 0; }
.page-head h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); margin: 0; }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: start; }
.contact-cards { display: grid; gap: 16px; }
.contact-cards .feature a { color: var(--navy); font-weight: 700; text-decoration: none; font-size: 1.1rem; }
.contact-cards .feature h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .4em; }
.contact-page .form-card { box-shadow: var(--shadow); border: 1px solid var(--line); }

/* Footer */
.footer { background: #141a38; color: #c9d0e4; padding: 64px 0 24px; font-size: .95rem; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }
.footer a { color: #c9d0e4; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer .logo img { width: 210px; background: #fff; border-radius: 8px; padding: 6px; margin-bottom: 14px; }
.footer .bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

@media (max-width: 900px) {
  .hero .wrap, .split, .contact-grid { grid-template-columns: 1fr; }
  .three, .why, .reviews, .faq { grid-template-columns: 1fr; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  section { padding: 64px 0; }
  .hero { padding: 56px 0; }
  .split .img-first { order: -1; }
}
@media (max-width: 720px) {
  .logo img { width: 160px; }
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 16px; gap: 12px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav .btn { text-align: center; }
  .header .wrap { position: relative; }
  .form-grid { grid-template-columns: 1fr; }
  .footer .cols { grid-template-columns: 1fr; }
  .topbar .wrap { justify-content: center; }
}

/* Prevent grid children (inputs, tables) from forcing horizontal overflow */
.hero .wrap > *, .split > *, .contact-grid > *, .form-grid > * { min-width: 0; }
body { overflow-x: hidden; }

/* Multi-step offer form */
.steps-bar { list-style: none; padding: 0; margin: 4px 0 10px; display: flex; counter-reset: step; }
.steps-bar li { flex: 1; position: relative; text-align: center; font-size: .8rem; font-weight: 600; color: var(--muted); counter-increment: step; }
/* Numbered circle with a connecting line to the previous step */
.steps-bar li::before { content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; margin: 0 auto 6px; border-radius: 50%; border: 2px solid var(--line); background: #fff; color: var(--muted); font-weight: 700; position: relative; z-index: 1; }
.steps-bar li + li::after { content: ""; position: absolute; top: 16px; right: calc(50% + 18px); width: calc(100% - 36px); height: 2px; background: var(--line); }
.steps-bar li.active { color: var(--navy); }
.steps-bar li.active::before { background: var(--navy); border-color: var(--navy); color: #fff; }
.steps-bar li.done { color: var(--navy); }
.steps-bar li.done::before { content: "\2713"; background: var(--sky); border-color: var(--sky); color: var(--navy); }
.steps-bar li.done + li::after, .steps-bar li.done + li.done::after { background: var(--navy); }
.offer-form .form-grid { grid-template-columns: 1fr 1fr; gap: 14px 12px; }
@media (max-width: 720px) { .offer-form .form-grid { grid-template-columns: 1fr; } }
.step { display: none; }
.step.active { display: block; }
.step-nav { display: flex; gap: 10px; margin-top: 16px; }
.step-nav .btn { flex: 1; margin-top: 0; width: auto; }
.btn-ghost { background: transparent; color: var(--navy) !important; border: 1px solid var(--line); flex: 0 0 auto !important; }
.btn-ghost:hover { background: var(--bg-soft); }
.field input.invalid { border-color: #d64545; background: #fff5f5; }
.form-card h1.h3 { font-size: 1.2rem; margin-bottom: .3em; }

/* Quick-offer chat section */
.cf-section { background: linear-gradient(180deg, #f4f7f9 0%, #eef3f7 100%); }
.cf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.cf-eyebrow { color: var(--accent); display: flex; align-items: center; gap: 10px; }
.cf-eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.cf-section h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.cf-lead { color: var(--muted); font-size: 1.08rem; }
.cf-lead strong { color: var(--navy); }
.cf-usps { list-style: none; padding: 0; margin: 24px 0 28px; }
.cf-usps li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; color: var(--muted); }
.cf-usps svg { width: 20px; height: 20px; flex: none; margin-top: 2px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cf-usps b { color: var(--navy); }
.btn-outline { background: #fff; color: var(--navy) !important; border: 2px solid var(--line); }
.btn-outline:hover { background: var(--bg-soft); }

.cf { position: relative; background: #fff; border-radius: 22px; padding: 26px; box-shadow: 0 24px 60px rgba(28, 36, 75, .14); }
.cf-log { height: 340px; overflow-y: auto; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.cf-line { display: flex; gap: 10px; align-items: flex-end; }
.cf-line[hidden] { display: none; }
.cf-face { width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--sky); display: grid; place-items: center; overflow: hidden; }
.cf-face svg { width: 26px; height: 26px; fill: var(--navy-2); margin-top: 6px; }
.cf-face img { width: 100%; height: 100%; object-fit: cover; }
.cf-msg { margin: 0; padding: 10px 14px; border-radius: 14px; max-width: 82%; line-height: 1.45; font-size: .95rem; }
.cf-them { background: #fff; border: 1px solid var(--line); color: var(--text); border-bottom-left-radius: 4px; }
.cf-me { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 4px; }
.cf-err { border-color: #f1c4c4; background: #fff5f5; color: #a12d2d; }
.cf-load { display: inline-flex; gap: 4px; align-items: center; min-height: 1.45em; }
.cf-load i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: cf-dot 1s infinite ease-in-out; }
.cf-load i:nth-child(2) { animation-delay: .15s; }
.cf-load i:nth-child(3) { animation-delay: .3s; }
@keyframes cf-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.cf-ask { margin-top: 14px; }
.cf-row { display: flex; gap: 10px; }
.cf-row input, .cf-field { flex: 1; min-width: 0; }
.cf-row input { padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; font: inherit; background: var(--bg-soft); width: 100%; }
.cf-row input:focus { outline: 2px solid var(--accent); outline-offset: 1px; background: #fff; }
.cf-unit { position: relative; display: flex; }
.cf-unit input { padding-right: 44px; }
.cf-unit em { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); pointer-events: none; }
.cf-send { width: 50px; flex: none; border: 0; border-radius: 12px; background: var(--navy); cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.cf-send:hover { background: var(--accent); }
.cf-send svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 900px) {
  .cf-grid { grid-template-columns: 1fr; gap: 32px; }
  .cf { padding: 16px; }
  .cf-log { height: 300px; }
}

/* Area pages */
.crumbs { font-size: .88rem; margin-bottom: 16px; opacity: .85; }
.crumbs a { color: inherit; }
.crumbs-dark { color: var(--muted); }
h2.h3 { font-size: 1.2rem; }
.intro-left { color: var(--muted); max-width: 720px; font-size: 1.08rem; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.area-group .chips { justify-content: flex-start; }
.chip { display: inline-block; padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--navy); text-decoration: none; font-weight: 600; font-size: .95rem; transition: border-color .2s, color .2s; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip-all { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip-all:hover { background: var(--accent); color: #fff; }
.area-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 32px; margin-top: 40px; }
.area-group h2 { margin-bottom: .7em; }

/* Compact offer form */
.form-card { padding: 22px 24px; }
.form-card h3 { margin-bottom: .5em; }
.steps-bar { margin: 0 0 14px; }
.steps-bar li { font-size: .74rem; }
.steps-bar li::before { width: 26px; height: 26px; margin-bottom: 4px; font-size: .8rem; }
.steps-bar li + li::after { top: 13px; right: calc(50% + 15px); width: calc(100% - 30px); }
.offer-form .form-grid { gap: 10px 10px; }
.offer-form .field label { font-size: .85rem; margin-bottom: 4px; }
.offer-form .field input, .offer-form .field select, .offer-form .field textarea { padding: 10px 12px; font-size: .95rem; }
.offer-form textarea { height: 64px; min-height: 64px; }
.offer-form .step-nav { margin-top: 12px; }
.offer-form .step-nav .btn { padding: 12px 20px; }
.offer-form .form-note { margin: 8px 0 0; }

/* Phone fixes: 16px inputs stop iOS from zooming in on focus, larger menu tap targets, one-line step buttons */
@media (max-width: 720px) {
  .field input, .field select, .field textarea,
  .offer-form .field input, .offer-form .field select, .offer-form .field textarea { font-size: 16px; }
  .nav a:not(.btn) { padding: 10px 4px; }
  .offer-form .step-nav .btn { padding: 12px 14px; font-size: .92rem; white-space: nowrap; }
}
