:root {
  --page-bg: #f6f7f9;
  --surface: #f1f4f7;
  --ink: #171a1e;
  --muted: #56616b;
  --blue: #10658a;
  --blue-hi: #3e7999;
  --green: #197a20;
  --green-hi: #4b963c;
  --navy: #08026d;
  --link: #006fc8;
  --line: #dde3e8;
  --shadow: 0 5px 7px rgba(0, 0, 0, .32);
}

* { box-sizing: border-box; }

html { background: var(--page-bg); }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--page-bg);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
}

a { color: var(--link); }

.site-shell {
  width: min(100%, 1040px);
  margin: 0 auto;
  background: var(--surface);
  min-height: 100vh;
}

.home-shell {
  overflow: hidden;
}

.hero {
  min-height: 650px;
  padding: clamp(28px, 5vw, 50px) clamp(22px, 6vw, 82px) 28px;
  text-align: center;
  background: linear-gradient(180deg, #f4f6f8 0%, #f2f4f6 100%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: clamp(9px, 1.4vw, 16px);
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: clamp(76px, 11vw, 114px);
  aspect-ratio: 1;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
  background: var(--navy);
  border: 2px solid #05004d;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
  font-size: clamp(40px, 6.4vw, 68px);
  font-weight: 700;
  letter-spacing: -0.05em;
}

.brand-name {
  color: #009b1a;
  font-size: clamp(42px, 7.4vw, 78px);
  line-height: .96;
  font-weight: 700;
  letter-spacing: -0.042em;
  white-space: nowrap;
}

.tagline {
  margin: clamp(18px, 3.4vw, 34px) 0 clamp(33px, 5vw, 52px);
  font-size: clamp(20px, 2.8vw, 31px);
  font-weight: 400;
}

.primary-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 7vw, 78px);
  max-width: 760px;
  margin: 0 auto;
}

.action-card,
.offer-card,
.button {
  appearance: none;
  border: 0;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.action-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(104px, 15vw, 142px);
  padding: 18px 20px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(180deg, var(--blue-hi), var(--blue));
  box-shadow: var(--shadow);
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 700;
}

.action-card:disabled {
  opacity: 1;
  cursor: default;
}

.offer-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(100%, 360px);
  min-height: clamp(92px, 13vw, 120px);
  margin: clamp(30px, 5vw, 48px) auto clamp(34px, 6vw, 54px);
  padding: 17px 28px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(180deg, var(--green-hi), #0e6d16);
  box-shadow: var(--shadow);
  font-size: clamp(22px, 3.2vw, 30px);
  font-weight: 700;
  line-height: 1.25;
}

.offer-card:hover,
.offer-card:focus-visible,
.button:hover,
.button:focus-visible {
  filter: brightness(1.05);
}

.offer-card:focus-visible,
.button:focus-visible,
.back-link:focus-visible,
.about-link:focus-visible {
  outline: 3px solid #073b5a;
  outline-offset: 4px;
}

.services {
  margin: 0;
  font-size: clamp(16px, 2.2vw, 24px);
  line-height: 1.6;
}

.services span { color: #3d505f; padding: 0 .15em; }

.about-link {
  display: inline-block;
  margin-top: 4px;
  font-size: clamp(14px, 1.7vw, 18px);
}

.city-banner {
  height: clamp(140px, 19vw, 260px);
  background-image: url('espoo-keskus-illustration.png');
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
}

/* Sisäsivut */
.page-shell { padding: 0 clamp(16px, 4vw, 44px) clamp(28px, 5vw, 56px); }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(18px, 3vw, 30px) 0;
}

.brand--small { gap: 9px; }
.brand--small .brand-mark { width: clamp(46px, 7vw, 68px); font-size: clamp(24px, 3.7vw, 38px); }
.brand--small .brand-name { font-size: clamp(28px, 4.5vw, 45px); }

.back-link {
  font-size: clamp(15px, 1.9vw, 18px);
  white-space: nowrap;
}

.content-card {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 58px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(17, 31, 44, .10);
}

.eyebrow {
  margin: 0 0 6px;
  color: #176c2a;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(31px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: -.03em;
}

.lead { max-width: 590px; margin: 0 0 28px; font-size: clamp(18px, 2.4vw, 22px); color: #34414a; }

.contact-form { display: grid; gap: 10px; }

.contact-form label { font-size: 16px; font-weight: 700; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #a8b5bf;
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus { outline: 3px solid rgba(0, 111, 200, .2); border-color: #0071c8; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid > div { display: grid; gap: 10px; }

.form-note { margin: 4px 0 8px; font-size: 14px; color: var(--muted); }
.form-alert { margin: 0 0 18px; padding: 12px 14px; border-radius: 9px; color: #67210d; background: #ffebdf; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-height: 50px;
  padding: 12px 20px;
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
}
.button--green { background: #197a20; }

.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.placeholder-copy { min-height: 280px; padding-top: 5px; color: var(--muted); }
.legal-page p { max-width: 680px; }
.small-note { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

@media (max-width: 640px) {
  .hero { min-height: 0; padding-top: 28px; }
  .brand { gap: 8px; }
  .brand-name { white-space: normal; text-align: left; }
  .primary-actions { grid-template-columns: 1fr; gap: 20px; max-width: 400px; }
  .offer-card { margin-top: 28px; margin-bottom: 30px; }
  .services { max-width: 430px; margin-left: auto; margin-right: auto; }
  .city-banner { height: 145px; }
  .topbar { align-items: flex-start; }
  .topbar .brand-name { max-width: 220px; }
  .form-grid { grid-template-columns: 1fr; gap: 10px; }
}

/* Yrityssivu */
.company-page h2 {
  margin: 34px 0 10px;
  color: #176c2a;
  font-size: clamp(22px, 3.4vw, 29px);
  line-height: 1.2;
}
.company-page h2:first-child { margin-top: 26px; }
.company-page p { max-width: 680px; margin: 0 0 17px; font-size: clamp(16px, 2vw, 18px); }
.company-section + .company-section { padding-top: 4px; }
