:root {
  --metsa: #0c2f1f;
  --metsa-2: #134032;
  --vihrea: #1a5c3a;
  --sammal: #6f9a78;
  --kulta: #e8a317;
  --kulta-tumma: #9a6508;
  --liekki: #ffb81c;
  --paperi: #eef2ef;
  --paperi-2: #e0e7e2;
  --muste: #121a15;
  --harmaa: #4a564f;
  --vaalea: #f5f7f5;
  --vaalea-2: #c5d1c7;
  --r: 12px;
  --otsikko: "Newsreader", Georgia, "Times New Roman", serif;
  --leipa: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 130px;
}

body {
  margin: 0;
  font-family: var(--leipa);
  font-size: 17px;
  line-height: 1.65;
  color: var(--muste);
  background: var(--paperi);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--otsikko);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
  overflow-wrap: break-word;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

.wrap {
  width: min(1180px, 100% - 64px);
  margin-inline: auto;
}

.esiotsikko {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--vihrea);
  margin-bottom: 18px;
}

.esiotsikko::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}

.tumma .esiotsikko {
  color: var(--kulta);
}

/* Painikkeet – ei pillimäisiä */
.nappi {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: var(--leipa);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.nappi svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}

.nappi:hover svg {
  transform: translateX(4px);
}

.nappi-paa {
  background: var(--kulta);
  color: #1a1204;
}

.nappi-paa:hover {
  background: var(--liekki);
  transform: translateY(-2px);
}

.nappi-haamu {
  border-color: rgba(245, 247, 245, 0.65);
  color: var(--vaalea);
  background: transparent;
}

.nappi-haamu:hover {
  background: var(--vaalea);
  color: var(--metsa);
}

.nappi-vihrea {
  background: var(--metsa);
  color: var(--vaalea);
}

.nappi-vihrea:hover {
  background: var(--vihrea);
  transform: translateY(-2px);
}

/* Kielipalkki */
.kieli-palkki {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  background: #081912;
  border-bottom: 1px solid rgba(232, 163, 23, 0.28);
}

.kieli-palkki .wrap {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: min(1180px, 100%);
  padding: 6px clamp(24px, 5vw, 48px);
  box-sizing: border-box;
}

.kieli {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: none;
}

.kieli-nappi {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--vaalea-2);
  font: 600 0.82rem/1.2 var(--leipa);
  letter-spacing: 0.01em;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.kieli-nappi:hover {
  color: var(--vaalea);
  background: rgba(255, 255, 255, 0.08);
}

.kieli-nappi.on {
  color: #1a1204;
  background: var(--kulta);
  border-color: var(--kulta);
}

.kieli-nappi.on:hover {
  color: #1a1204;
  background: var(--liekki);
  border-color: var(--liekki);
}

/* Header */
.yla {
  position: fixed;
  inset: 42px 0 auto 0;
  z-index: 50;
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease, top 0.35s ease;
  padding: 18px 0;
}

.yla.kiintea {
  background: var(--metsa);
  box-shadow: 0 10px 28px -20px rgba(0, 0, 0, 0.7);
  padding: 10px 0;
}

.yla .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, 100%);
  padding-inline: clamp(24px, 5vw, 48px);
  box-sizing: border-box;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--vaalea);
}

.logo-merkki {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  background: var(--metsa);
  box-shadow: inset 0 0 0 2px rgba(232, 163, 23, 0.55);
}

.logo-merkki img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-teksti {
  font-family: var(--otsikko);
  font-weight: 600;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  line-height: 1;
}

.logo-teksti small {
  display: block;
  font-family: var(--leipa);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--vaalea-2);
  margin-top: 5px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  color: var(--vaalea);
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

.nav a:not(.nappi)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--kulta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav a:not(.nappi):hover::after {
  transform: scaleX(1);
}

.nav .nappi {
  padding: 10px 18px;
}

.valikko-nappi {
  display: none;
  background: none;
  border: 0;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  cursor: pointer;
  color: var(--vaalea);
  position: relative;
}

.valikko-nappi span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.valikko-nappi span:nth-child(1) {
  top: 16px;
}

.valikko-nappi span:nth-child(2) {
  top: 22px;
}

.valikko-nappi span:nth-child(3) {
  top: 28px;
}

.valikko-auki .valikko-nappi span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.valikko-auki .valikko-nappi span:nth-child(2) {
  opacity: 0;
}

.valikko-auki .valikko-nappi span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--vaalea);
  overflow: hidden;
  background: #102218;
}

.hero-kuva {
  position: absolute;
  inset: 0;
}

.hero-kuva img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 92% 40%;
  transform: scale(1.08);
  animation: zoomaus 2.6s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

@keyframes zoomaus {
  to {
    transform: scale(1);
  }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(8, 22, 16, 0.92) 0%, rgba(8, 22, 16, 0.72) 38%, rgba(8, 22, 16, 0.2) 68%, rgba(8, 22, 16, 0.05) 100%),
    linear-gradient(0deg, rgba(8, 22, 16, 0.82) 0%, rgba(8, 22, 16, 0) 42%);
}

.hero-sisalto.wrap {
  position: relative;
  z-index: 2;
  width: min(1100px, 100%);
  max-width: none;
  margin-inline: auto;
  padding: 180px clamp(32px, 8vw, 96px) 72px;
  box-sizing: border-box;
}

.hero .esiotsikko {
  color: var(--kulta);
}

.hero h1 {
  font-size: clamp(2.7rem, 6.2vw, 5.1rem);
  max-width: 13ch;
  margin-bottom: 22px;
}

.hero h1 em {
  font-style: italic;
  color: var(--liekki);
  font-weight: 500;
}

.hero-ingressi {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  max-width: 42ch;
  color: #e8eee9;
  margin-bottom: 34px;
}

.hero-napit {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Osiot */
section {
  position: relative;
}

.osio {
  padding: clamp(72px, 10vw, 128px) 0;
}

.osio-otsikko {
  max-width: 760px;
  margin-bottom: 52px;
}

.osio-otsikko h2 {
  font-size: clamp(2.05rem, 4.4vw, 3.5rem);
  margin-bottom: 16px;
}

.osio-otsikko p {
  font-size: 1.1rem;
  color: var(--harmaa);
  max-width: 54ch;
}

.tumma {
  background: var(--metsa);
  color: var(--vaalea);
}

.tumma .osio-otsikko p {
  color: var(--vaalea-2);
}

/* Palvelut */
.kuvaus-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}

.kuvaus-kuva {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  margin: 0;
}

.kuvaus-kuva img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 1.1s ease;
}

.kuvaus-kuva:hover img {
  transform: scale(1.04);
}

.lista {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lista li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  padding: 26px 0;
  border-top: 1px solid #c9d2cb;
}

.lista li:last-child {
  border-bottom: 1px solid #c9d2cb;
}

.ikoni {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--paperi-2);
  color: var(--vihrea);
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.ikoni svg {
  width: 26px;
  height: 26px;
}

.lista li:hover .ikoni {
  background: var(--vihrea);
  color: var(--vaalea);
  transform: translateY(-3px);
}

.lista h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.lista p {
  margin: 0;
  color: var(--harmaa);
}

/* Miten toimii */
.askeleet {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.askel {
  padding: 28px 24px;
  border-top: 2px solid var(--kulta);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.3s ease, background 0.3s ease;
}

.askel:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.08);
}

.askel-nro {
  display: block;
  font-family: var(--otsikko);
  font-size: 2.2rem;
  color: var(--kulta);
  line-height: 1;
  margin-bottom: 18px;
}

.askel h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.askel p {
  margin: 0;
  color: var(--vaalea-2);
  font-size: 0.98rem;
}

/* Kenelle */
.kenelle-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.kenelle-kuva {
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 5 / 4;
}

.kenelle-kuva img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hyodyt {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.hyodyt li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--harmaa);
}

.hyodyt svg {
  width: 22px;
  height: 22px;
  color: var(--vihrea);
  margin-top: 2px;
}

/* Meistä */
.meista-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.muotokuva {
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  max-width: 480px;
}

.muotokuva img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}

.meista-teksti h2 {
  font-size: clamp(2.05rem, 4.4vw, 3.4rem);
  margin-bottom: 20px;
}

.meista-teksti p {
  font-size: 1.08rem;
  color: var(--harmaa);
}

.omistus {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #c9d2cb;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
}

.omistus img {
  height: 42px;
  width: auto;
}

.omistus span {
  font-size: 0.95rem;
  color: var(--harmaa);
  max-width: 34ch;
}

/* Miksi */
.miksi {
  background: var(--paperi-2);
}

.miksi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(22px, 4vw, 48px);
}

.syy {
  padding-top: 24px;
  border-top: 2px solid var(--metsa);
}

.syy svg {
  width: 36px;
  height: 36px;
  color: var(--vihrea);
  margin-bottom: 16px;
}

.syy h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.syy p {
  color: var(--harmaa);
  margin: 0;
}

/* UKK */
.ukk-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}

.ukk-grid .osio-otsikko {
  position: sticky;
  top: 150px;
  margin-bottom: 0;
}

details {
  border-top: 1px solid #c9d2cb;
}

details:last-child {
  border-bottom: 1px solid #c9d2cb;
}

summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 24px 0;
  font-family: var(--otsikko);
  font-weight: 600;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.25;
}

summary::-webkit-details-marker {
  display: none;
}

.plus {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 2px solid var(--vihrea);
  flex: none;
  position: relative;
  transition: background 0.3s ease, transform 0.3s ease;
}

.plus::before,
.plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2px;
  background: var(--vihrea);
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease, background 0.3s ease;
}

.plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

details[open] .plus {
  background: var(--vihrea);
  transform: rotate(180deg);
}

details[open] .plus::before,
details[open] .plus::after {
  background: var(--vaalea);
}

details[open] .plus::after {
  transform: translate(-50%, -50%) rotate(0);
}

summary:hover {
  color: var(--vihrea);
}

.vastaus {
  padding: 0 56px 24px 0;
  color: var(--harmaa);
}

.vastaus p {
  margin: 0;
}

/* Yhteys */
.yhteys-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.yhteys h2 {
  font-size: clamp(2.15rem, 4.8vw, 3.7rem);
  margin-bottom: 18px;
}

.yhteys-teksti > p {
  font-size: 1.1rem;
  color: var(--vaalea-2);
  max-width: 42ch;
  margin-bottom: 32px;
}

.henkilot {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.henkilo {
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  border-radius: var(--r);
  background: var(--metsa-2);
  border: 1px solid rgba(197, 209, 199, 0.14);
}

.henkilo strong {
  font-size: 1.05rem;
}

.henkilo span {
  color: var(--vaalea-2);
  font-size: 0.92rem;
}

.henkilo a {
  color: var(--kulta);
  text-decoration: none;
  font-weight: 500;
}

.henkilo a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.yhteystiedot {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.yhteystiedot a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: var(--r);
  background: var(--metsa-2);
  text-decoration: none;
  color: var(--vaalea);
  border: 1px solid rgba(197, 209, 199, 0.14);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.yhteystiedot a:hover {
  border-color: var(--kulta);
  transform: translateX(4px);
}

.yhteystiedot .ikoni {
  width: 44px;
  height: 44px;
  background: rgba(232, 163, 23, 0.14);
  color: var(--kulta);
}

.yhteystiedot .ikoni svg {
  width: 22px;
  height: 22px;
}

.yhteystiedot small {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--vaalea-2);
  font-weight: 500;
}

.yhteystiedot strong {
  font-weight: 500;
  font-size: 1.02rem;
  word-break: break-word;
}

.lomake {
  background: var(--paperi);
  color: var(--muste);
  border-radius: var(--r);
  padding: clamp(24px, 3vw, 36px);
}

.lomake h3 {
  font-size: 1.55rem;
  margin-bottom: 8px;
}

.lomake > p {
  color: var(--harmaa);
  margin-bottom: 22px;
}

.kentta {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.kentta label {
  font-size: 0.88rem;
  font-weight: 600;
}

.kentta input,
.kentta textarea,
.kentta select {
  width: 100%;
  border: 1px solid #b7c2ba;
  background: #fff;
  border-radius: 10px;
  padding: 13px 14px;
  font: inherit;
  color: var(--muste);
  transition: border-color 0.2s ease, outline 0.2s ease;
}

.kentta input:focus,
.kentta textarea:focus,
.kentta select:focus {
  outline: 2px solid rgba(26, 92, 58, 0.25);
  border-color: var(--vihrea);
}

.kentta textarea {
  min-height: 120px;
  resize: vertical;
}

.ilmoitus {
  min-height: 1.4em;
  margin: 12px 0 0;
  font-size: 0.95rem;
  color: var(--vihrea);
  font-weight: 500;
}

/* Footer */
.jala {
  background: #081912;
  color: var(--vaalea-2);
  padding: 36px 0 110px;
  font-size: 0.92rem;
}

.jala .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.jala strong {
  color: var(--vaalea);
  font-family: var(--otsikko);
  font-size: 1.2rem;
  font-weight: 600;
}

.jala a {
  color: var(--kulta);
  text-decoration: none;
}

.jala a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Myyntipalkki */
.myynti {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  background: rgba(12, 47, 31, 0.96);
  color: var(--vaalea);
  border-top: 1px solid rgba(232, 163, 23, 0.35);
  padding: 12px 0;
  transform: translateY(110%);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.myynti.nakyva {
  transform: translateY(0);
}

.myynti .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.myynti p {
  margin: 0;
  font-size: 0.95rem;
}

.myynti strong {
  color: var(--liekki);
}

.myynti-napit {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.myynti .nappi {
  padding: 10px 16px;
  font-size: 0.9rem;
}

/* Animaatiot */
.nayta {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.nayta.nakyissa {
  opacity: 1;
  transform: none;
}

.viive-1 {
  transition-delay: 0.12s;
}

.viive-2 {
  transition-delay: 0.24s;
}

.viive-3 {
  transition-delay: 0.36s;
}

/* Responsiivisuus */
@media (max-width: 980px) {
  .kuvaus-grid,
  .kenelle-grid,
  .meista-grid,
  .ukk-grid,
  .yhteys-grid {
    grid-template-columns: 1fr;
  }

  .askeleet,
  .miksi-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ukk-grid .osio-otsikko {
    position: static;
  }

  .kuvaus-kuva {
    aspect-ratio: 16 / 10;
  }

  .muotokuva {
    max-width: none;
  }
}

@media (max-width: 780px) {
  .valikko-nappi {
    display: block;
  }

  .kieli-palkki .wrap {
    justify-content: center;
    padding-inline: 16px;
  }

  .kieli-nappi {
    font-size: 0.78rem;
    padding: 7px 10px;
  }

  .yla {
    inset-block-start: 44px;
  }

  .nav {
    position: fixed;
    inset: 0 0 auto 0;
    top: 0;
    margin: 0;
    padding: 96px 24px 28px;
    background: var(--metsa);
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.35s ease;
  }

  .valikko-auki .nav {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .hero-sisalto.wrap {
    padding: 160px 24px 56px;
  }

  .yla .wrap {
    padding-inline: 20px;
  }

  .askeleet,
  .miksi-grid {
    grid-template-columns: 1fr;
  }

  .myynti .wrap {
    flex-direction: column;
    align-items: stretch;
  }

  .myynti-napit {
    width: 100%;
  }

  .myynti-napit .nappi {
    flex: 1;
    justify-content: center;
  }

  .jala {
    padding-bottom: 140px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-kuva img,
  .nayta,
  .nappi,
  .askel,
  .lista li .ikoni {
    animation: none !important;
    transition: none !important;
  }

  .nayta {
    opacity: 1;
    transform: none;
  }
}
