:root {
  --black: #10120F;
  --green-deep: #0F3D2E;
  --green-bright: #3FA66A;
  --white: #FFFFFF;
  --off-white: #F6F8F5;
  --gray: #5C6660;
  --line: #E1E6DF;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand {
  font-family: 'Archivo', sans-serif;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- HEADER ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--black);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: 1140px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 34px;
  width: auto;
  display: block;
}

nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
}

nav a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

nav a:hover { color: var(--green-bright); }

.nav-cta {
  display: none;
}

@media (min-width: 760px) {
  .nav-cta {
    display: inline-block;
    background: var(--green-bright);
    color: var(--black);
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.92rem;
  }
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 759px) {
  nav { display: none; }
  .menu-toggle { display: block; }
  nav.open {
    display: block;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--black);
    padding: 12px 24px 24px;
  }
  nav.open ul { flex-direction: column; gap: 18px; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
  padding: 90px 0 110px;
}

.hero-pipes {
  position: absolute;
  top: 0; right: -60px;
  width: 600px;
  height: 100%;
  opacity: 0.5;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green-bright);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green-bright);
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 22px;
}

.hero h1 span { color: var(--green-bright); }

.hero p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
  max-width: 480px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 46px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.97rem;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--green-bright);
  color: var(--black);
}
.btn-primary:hover { background: #52bd7c; transform: translateY(-1px); }

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
}
.btn-ghost:hover { border-color: var(--green-bright); color: var(--green-bright); }

.hero-stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 28px;
}

.hero-stats div strong {
  display: block;
  font-family: 'Archivo', sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--white);
}

.hero-stats div span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

/* ---------- SECTION GENERIC ---------- */
section { padding: 88px 0; }

.section-head {
  max-width: 620px;
  margin-bottom: 56px;
}

.section-head .eyebrow { color: var(--green-deep); }
.section-head .eyebrow::before { background: var(--green-deep); }

.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  font-weight: 800;
  margin-bottom: 14px;
}

.section-head p { color: var(--gray); font-size: 1.04rem; }

.bg-off { background: var(--off-white); }

/* ---------- SERVICES GRID ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 32px 28px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.service-card:hover {
  border-color: var(--green-bright);
  transform: translateY(-3px);
}

.service-card .icon {
  width: 48px; height: 48px;
  border-radius: 8px;
  background: var(--green-deep);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}

.service-card .icon svg { width: 24px; height: 24px; stroke: var(--green-bright); }

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--gray);
  font-size: 0.95rem;
}

/* ---------- ALTERNATING FEATURE ROWS ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 46px;
  align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}

.feature-row:last-child { border-bottom: none; }

@media (min-width: 860px) {
  .feature-row { grid-template-columns: 1fr 1fr; }
  .feature-row.reverse > .feature-media { order: 2; }
  .feature-row.reverse > .feature-text { order: 1; }
}

.feature-text .eyebrow { color: var(--green-deep); }
.feature-text .eyebrow::before { background: var(--green-deep); }

.feature-text h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.feature-text p {
  color: var(--gray);
  margin-bottom: 18px;
}

.feature-text ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-text li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.96rem;
  color: var(--black);
}

.feature-text li svg {
  flex-shrink: 0;
  margin-top: 3px;
  width: 18px; height: 18px;
  stroke: var(--green-bright);
}

.feature-media {
  background: var(--green-deep);
  border-radius: 12px;
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-media svg { width: 70%; height: 70%; }

/* ---------- PROCESS ---------- */
.process-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  counter-reset: step;
}

.process-step {
  padding: 0 24px 0 0;
  border-right: 1px solid var(--line);
}

.process-step:last-child { border-right: none; }

.process-step .num {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  color: var(--green-bright);
  margin-bottom: 14px;
}

.process-step h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.process-step p {
  color: var(--gray);
  font-size: 0.92rem;
}

@media (max-width: 759px) {
  .process-list { grid-template-columns: 1fr; gap: 32px; }
  .process-step { border-right: none; border-left: 2px solid var(--green-bright); padding: 0 0 0 20px; }
}

/* ---------- KOKEMUS ---------- */
.story-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 900px) {
  .story-wrap { grid-template-columns: 1.3fr 1fr; }
}

.story-text p {
  color: var(--gray);
  font-size: 1.02rem;
  margin-bottom: 18px;
}

.story-highlight {
  background: var(--green-deep);
  color: var(--white);
  border-radius: 10px;
  padding: 22px 26px;
  font-size: 0.98rem;
  font-weight: 600;
  margin-top: 8px;
}

.story-timeline {
  background: var(--off-white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 30px 28px;
}

.story-timeline h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-deep);
  margin-bottom: 20px;
}

.timeline-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.timeline-list li {
  position: relative;
  padding: 0 0 22px 26px;
  border-left: 2px solid var(--line);
  margin-left: 5px;
}

.timeline-list li:last-child {
  border-left: 2px solid transparent;
  padding-bottom: 0;
}

.timeline-list li::before {
  content: "";
  position: absolute;
  left: -6px; top: 2px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--green-bright);
  border: 2px solid var(--off-white);
}

.timeline-list .t-period {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--black);
}

.timeline-list .t-desc {
  display: block;
  font-size: 0.86rem;
  color: var(--gray);
  margin-top: 2px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.skill-tags span {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-deep);
}

/* ---------- YHTEISTYÖKUMPPANIT ---------- */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.partner-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 20px;
}

.partner-card .icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--off-white);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.partner-card .icon svg { width: 20px; height: 20px; stroke: var(--green-deep); }

.partner-card span {
  font-size: 0.94rem;
  font-weight: 600;
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 0;
}

.partner-note {
  color: var(--gray);
  font-size: 0.95rem;
  margin-top: 28px;
  max-width: 680px;
}

/* ---------- CTA BAND ---------- */
.cta-band {
  background: var(--green-deep);
  color: var(--white);
  border-radius: 16px;
  padding: 54px 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-band h3 {
  font-size: 1.5rem;
  font-weight: 800;
  max-width: 420px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.78);
  margin-top: 8px;
}

/* ---------- CONTACT ---------- */
.contact-single {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}

@media (min-width: 860px) {
  .contact-single { grid-template-columns: 1.1fr 1fr; }
}

.contact-info h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.contact-info p { color: var(--gray); margin-bottom: 30px; }

.contact-detail {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.contact-detail .icon {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: var(--off-white);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.contact-detail .icon svg { width: 18px; height: 18px; stroke: var(--green-deep); }

.contact-detail strong { display: block; font-size: 0.95rem; }
.contact-detail span,
.contact-detail a { color: var(--gray); font-size: 0.92rem; }

.call-card {
  background: var(--green-deep);
  color: var(--white);
  border-radius: 14px;
  padding: 44px 36px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.call-card .icon-circle {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}

.call-card .icon-circle svg { width: 26px; height: 26px; stroke: var(--green-bright); }

.call-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.call-card p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  margin-bottom: 26px;
  max-width: 280px;
}

.btn-call {
  font-size: 1.15rem;
  padding: 16px 32px;
}

/* ---------- LASKUTYÖ-OSIO ---------- */
.laskutyo-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 860px) {
  .laskutyo-wrap { grid-template-columns: 1fr 1fr; }
}

.laskutyo-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px 30px;
}

.laskutyo-box.highlight {
  background: var(--green-deep);
  border-color: var(--green-deep);
  color: var(--white);
}

.laskutyo-box h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.laskutyo-box.highlight h3 { color: var(--white); }

.laskutyo-box p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.7;
}

.laskutyo-box.highlight p { color: rgba(255, 255, 255, 0.82); }

.laskutyo-box ul {
  list-style: none;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.laskutyo-box li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.94rem;
}

.laskutyo-box li svg {
  flex-shrink: 0;
  margin-top: 3px;
  width: 16px; height: 16px;
  stroke: var(--green-bright);
}

.laskutyo-box.highlight li { color: rgba(255, 255, 255, 0.9); }

.referenssi {
  margin-top: 48px;
  background: var(--off-white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green-bright);
  border-radius: 0 12px 12px 0;
  padding: 32px 30px;
}

.referenssi h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-deep);
  margin-bottom: 20px;
}

.referenssi ol {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  counter-reset: ref;
}

@media (min-width: 640px) {
  .referenssi ol { grid-template-columns: 1fr 1fr; }
}

.referenssi li {
  counter-increment: ref;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--gray);
}

.referenssi li::before {
  content: counter(ref);
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--green-bright);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ---------- FOOTER ---------- */
footer {
  background: var(--black);
  color: rgba(255, 255, 255, 0.7);
  padding: 50px 0 28px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 24px;
}

.footer-brand .brand-logo { height: 30px; }
.footer-brand p {
  max-width: 300px;
  font-size: 0.9rem;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.55);
}

.footer-links h5 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.92rem; color: rgba(255, 255, 255, 0.65); }
.footer-links a:hover { color: var(--green-bright); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
