:root {
  --ink: #14211f;
  --muted: #53605d;
  --paper: #fbfaf6;
  --paper-strong: #f1eee5;
  --forest: #17332f;
  --moss: #5d7d68;
  --clay: #b8663b;
  --sky: #d7e8ed;
  --line: rgba(20, 33, 31, 0.14);
  --shadow: 0 22px 70px rgba(20, 33, 31, 0.14);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#palvelut,
#alue,
#artikkelit,
#ukk,
#yhteys {
  scroll-margin-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-180%);
  background: var(--forest);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  padding: 0.85rem clamp(1rem, 4vw, 3.5rem);
  background: rgba(251, 250, 246, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand img {
  width: 9.5rem;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(0.75rem, 2vw, 2rem);
  font-size: 0.96rem;
}

.main-nav a,
.site-footer a {
  text-decoration: none;
}

.main-nav a:hover,
.site-footer a:hover {
  color: var(--clay);
}

.nav-cta,
.button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  padding: 0.75rem 1.05rem;
  font-weight: 760;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.nav-cta {
  background: var(--forest);
  color: white;
}

.button:hover,
.nav-cta:hover {
  transform: translateY(-1px);
}

.primary {
  background: var(--clay);
  color: white;
}

.secondary {
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: white;
}

.secondary.light {
  border-color: rgba(255, 255, 255, 0.45);
}

.hero {
  position: relative;
  min-height: min(680px, calc(100svh - 4rem));
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  background: var(--forest);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(15, 28, 26, 0.92), rgba(15, 28, 26, 0.64) 48%, rgba(15, 28, 26, 0.28)),
    linear-gradient(0deg, rgba(15, 28, 26, 0.76), rgba(15, 28, 26, 0.08) 44%);
}

.hero-content {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(4rem, 11vw, 8rem) 0 clamp(1.25rem, 4vw, 2.5rem);
  color: white;
}

.eyebrow,
.section-kicker,
.card-label {
  margin: 0 0 0.9rem;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.85rem, 5.8vw, 5.55rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.lead {
  max-width: 690px;
  margin: 1.5rem 0 0;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: rgba(255, 255, 255, 0.86);
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 940px;
  margin: clamp(2.5rem, 7vw, 5rem) 0 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.trust-strip div {
  padding: 1.1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.trust-strip div:last-child {
  border-right: 0;
}

.trust-strip dt {
  font-weight: 850;
}

.trust-strip dd {
  margin: 0.2rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

.section {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.intro-grid,
.section-heading,
.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.03;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.2;
}

p {
  margin: 0;
}

p + p {
  margin-top: 1rem;
}

.section-heading {
  align-items: end;
  margin-bottom: 2rem;
}

.section-heading > p,
.intro-grid > div {
  color: var(--muted);
  font-size: 1.06rem;
}

.services {
  width: 100%;
  max-width: none;
  background: var(--paper-strong);
  padding-inline: max(1rem, calc((100% - 1180px) / 2));
}

.service-grid,
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.service-card,
.article-grid article {
  min-height: 23rem;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
}

.service-card {
  display: flex;
  flex-direction: column;
}

.service-card.featured {
  background: var(--forest);
  color: white;
  box-shadow: var(--shadow);
}

.service-card.contact-card {
  background: var(--sky);
}

.service-index {
  display: block;
  margin-bottom: 1.8rem;
  color: var(--clay);
  font-weight: 900;
}

.service-card p {
  margin-top: 1rem;
  color: var(--muted);
}

.featured p,
.featured li {
  color: rgba(255, 255, 255, 0.76);
}

.service-card ul {
  margin: auto 0 0;
  padding: 1.25rem 0 0 1.2rem;
  color: var(--muted);
}

.inline-link {
  margin-top: auto;
  color: var(--forest);
  font-weight: 850;
}

.proof-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.proof-band figure {
  margin: 0;
  padding: clamp(2rem, 5vw, 4rem);
  background: var(--forest);
}

.proof-band blockquote {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.25;
}

.proof-band figcaption {
  margin-top: 1.25rem;
  color: rgba(255, 255, 255, 0.7);
}

.about {
  align-items: center;
}

.about-copy p:not(.section-kicker) {
  color: var(--muted);
  font-size: 1.06rem;
}

.area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.6rem;
}

.area-tags span {
  border: 1px solid var(--line);
  background: white;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  font-weight: 760;
}

.person-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: white;
  box-shadow: var(--shadow);
}

.person-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 20%;
}

.person-card div {
  padding: 1.5rem;
}

.person-card a {
  display: block;
  margin-top: 0.35rem;
  color: var(--forest);
  font-weight: 850;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  border-top: 3px solid var(--moss);
  padding-top: 1.1rem;
}

.steps span {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--forest);
  color: white;
  font-weight: 850;
}

.steps p,
.article-grid p,
.faq p {
  color: var(--muted);
}

.articles {
  width: 100%;
  max-width: none;
  background: #ffffff;
  padding-inline: max(1rem, calc((100% - 1180px) / 2));
}

.article-grid article {
  min-height: 16rem;
  background: var(--paper);
}

.article-grid h3 {
  margin-bottom: 1rem;
}

.faq h2 {
  max-width: 760px;
}

.faq-list {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}

details {
  border-bottom: 1px solid var(--line);
  padding: 1.15rem 0;
}

summary {
  cursor: pointer;
  font-weight: 850;
  font-size: 1.08rem;
}

details p {
  max-width: 760px;
  margin-top: 0.8rem;
}

.cta-section {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: clamp(3rem, 7vw, 5rem) max(1rem, calc((100% - 1180px) / 2));
  background: var(--forest);
  color: white;
}

.cta-section h2 {
  max-width: 800px;
}

.cta-section p:not(.section-kicker) {
  max-width: 640px;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.76);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 2rem;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 3.5rem);
  background: #0f1917;
  color: rgba(255, 255, 255, 0.76);
}

.site-footer img {
  width: 8.75rem;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.site-footer address {
  font-style: normal;
}

.site-footer nav {
  display: grid;
  align-content: start;
  gap: 0.35rem;
}

@media (max-width: 900px) {
  #palvelut,
  #alue,
  #artikkelit,
  #ukk,
  #yhteys {
    scroll-margin-top: 8.75rem;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .nav-cta {
    grid-column: 2;
    grid-row: 1;
  }

  .intro-grid,
  .section-heading,
  .about,
  .cta-section,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .article-grid,
  .proof-band,
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .cta-actions {
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 0.75rem;
  }

  .brand img {
    width: 7.4rem;
  }

  .nav-cta {
    min-height: 2.5rem;
    padding-inline: 0.85rem;
  }

  .hero {
    min-height: auto;
  }

  .hero::after {
    background: linear-gradient(0deg, rgba(15, 28, 26, 0.92), rgba(15, 28, 26, 0.58));
  }

  .hero-content {
    padding-top: 5rem;
  }

  .hero h1 {
    font-size: 2.28rem;
    line-height: 1.02;
  }

  .hero-actions .button,
  .cta-actions .button {
    width: 100%;
  }

  .trust-strip,
  .service-grid,
  .article-grid,
  .proof-band,
  .steps {
    grid-template-columns: 1fr;
  }

  .trust-strip div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .trust-strip div:last-child {
    border-bottom: 0;
  }

  .service-card,
  .article-grid article {
    min-height: auto;
  }

  .site-footer {
    gap: 1.25rem;
  }
}
