body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #F8F8F2;
  color: #1B4332;
}

header {
  background-color: #f8f8f2;
  padding: 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
}

.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.logo {
  height: 60px;
}

nav.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
  margin: 0 auto;
  text-align: center;
}

nav.nav-links ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  list-style: none;
  gap: 16px;
}

nav.nav-links ul li a {
  text-decoration: none;
  color: #1B4332;
  font-weight: bold;
  padding: 8px 12px;
  white-space: nowrap;
}

nav.nav-links ul li .button-link {
  background-color: #1B4332;
  color: #fff;
  border-radius: 6px;
  transition: background-color 0.3s;
}

nav.nav-links ul li .button-link:hover {
  background-color: #14532d;
}

.hero {
  background-color: #e5f0e8;
  text-align: center;
  padding: 80px 20px;
}

.hero h2 {
  font-size: 48px;
  margin: 10px 0;
}

.hero p {
  font-size: 20px;
  margin-bottom: 30px;
}

.button-link {
  display: inline-block;
  padding: 12px 24px;
  background-color: #1B4332;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.3s;
  font-size: 16px;
}

.button-link:hover {
  background-color: #14532d;
}

.section {
  padding: 40px 20px;
  text-align: center;
}

.section h2, .section h3, .section h4 {
  margin-bottom: 16px;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

footer {
  background-color: #333;
  color: #fff;
  padding: 40px 20px;
  text-align: center;
}

.footer-content {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
}

footer .footer-logo {
  height: 60px !important;
  width: auto !important;
  margin-bottom: 10px;
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: #777;
}

#scrollTopBtn {
  position: fixed;
  bottom: 40px;
  right: 30px;
  z-index: 99;
  font-size: 18px;
  background-color: #1B4332;
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
}

#scrollTopBtn:hover {
  background-color: #14532d;
}

.language-selector {
  position: absolute;
  top: 20px;
  right: 40px;
  z-index: 99;
  display: flex;
  gap: 10px;
}

.language-selector img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.language-selector img:hover {
  transform: scale(1.1);
}

@media screen and (max-width: 768px) {
  nav.nav-links {
    padding: 10px;
    flex-direction: column;
  }

  nav.nav-links ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  nav.nav-links ul li a,
  nav.nav-links ul li .button-link {
    padding: 10px 14px;
    font-size: 14px;
  }

  .logo-container {
    align-items: center;
    text-align: center;
    margin-bottom: 10px;
  }

  .logo-container h1 {
    font-size: 24px;
  }

  .button-link {
    font-size: 14px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
}
.hero-with-image {
  background-image: url("../kuvatausta.jpg");
  background-size: cover;
  background-position: center;
  padding: 150px 20px;
  text-align: center;
  color: white;
  position: relative;
}

.hero-with-image::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}
.payment-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.payment-icons img {
  height: 36px;
  max-width: 100px;
  width: auto;
  object-fit: contain;
  filter: grayscale(0%);
  transition: filter 0.3s ease;
}

.payment-icons img:hover {
  filter: grayscale(0%);
}

.visma-logo {
  display: block;
  margin: 20px auto;
  height: 40px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

.hero-with-image {
  background-attachment: fixed;
}
@media screen and (max-width: 768px) {
  /* Vain varsinaisen sisältöalueen kappaleet */
  .section p {
    font-size: 17px;
    line-height: 1.75;
    margin-bottom: 20px;
    text-align: left;
  }

  /* Otsikoiden koon ja välistyksen säätö */
  .section h2,
  .section h3,
  .section h4 {
    font-size: 20px;
    line-height: 1.4;
    margin-top: 30px;
    margin-bottom: 16px;
  }

  /* Leveydet mobiiliystävällisiksi */
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  /* Korostusteksti mobiilissa hieman pehmeämmäksi */
  .section strong {
    font-weight: 600;
  }
}
