@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap');

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Lato', sans-serif;
  font-size: 1.3rem;
  scroll-behavior: smooth;
  height: 100%;
  font-weight: 300;
  line-height: 1.6;
}

main {
  min-height: 100vh;
  overflow-y: auto;
  margin-top: 15vh; /* Headerin alkuperäinen korkeus */
}


section {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 2rem;
  text-align: center;
  box-sizing: border-box;
  width: 100%;
}

/* Keskitys myös mobiilissa */
.section-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 800px;
  width: 100%;
  height: 100%;
}

/* Valkotaustaiset osiot */
section.white {
  background-color: #ffffff;
  color: #333;
}

/* Yhteystieto-osio harmaalla */
section.white#yhteystiedot {
  background-color: #f2f2f2;
}

/* Niittytaustainen osio */
section.meadow {
  background: url('punka-bg.jpg') no-repeat center center fixed;
  background-size: cover;
  color: #fff;
  position: relative;
  width: 100%;
  min-height: 100vh;
  z-index: 0;
  overflow: hidden;
}

.meadow .content {
  background-color: rgba(255, 255, 255, 0.9);
  color: #333;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  max-width: 900px;
  width: 100%;
}

/* Otsikot ja teksti */
h1 {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 1rem;
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 1rem;
}
h3 {
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 1rem;
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

ul {
  text-align: left;
  padding-left: 1.5rem;
  font-weight: 300;
  margin: 0 0 1.5rem 0; /* Lisää selkeä margin bottom */
  max-width: 100%;
  box-sizing: border-box;
  list-style-position: inside;
  list-style-type: circle;
}
strong {
  font-weight: 300; 
  color: #333; 
  letter-spacing: 0.02em;
}

/* Lomake */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin-top: 1rem;
  width: 100%;
}

input, textarea {
  padding: 0.75rem;
  font-size: 1rem;
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  border: 1px solid #ccc;
  border-radius: 5px;
}

button {
  padding: 0.75rem;
  background-color: #003366;
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  font-family: 'Lato', sans-serif;
}


  .footer {
    text-align: center;
    padding: 2em 1em;
    background-color: #f4f4f4;   /* kevyt taustaväri, voit vaihtaa */
    color: #333;
    font-size: 0.95rem;
    margin-top: 3em;
  }

  .footer a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
  }

  .footer a:hover {
    text-decoration: underline;
  }

  @media (max-width: 600px) {
    .footer {
      font-size: 0.9rem;
      padding: 1.5em 0.5em;
    }
  }



/* HEADER */
header {
  height: 23vh;
  background: #e4efff;
  z-index: 9999;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  transition: all 0.3s ease;
}

.section-content h3, .section-content ul {
  list-style-position: inside;
  margin-left: 0;
  padding-left: 0;
  width: 100%;
}

.logo img {
  height: 200px;
  transition: height 0.3s ease;
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  position: absolute;
  right: 1rem;
  top: 1.5rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0; /* ← tämä korjaa ylävälin */
  height: 100%;
}


.nav-menu li a {
  text-decoration: none;
  color: #003366;
  font-weight: 300;
  letter-spacing: 0.03em;
}

/* KUTISTUVA HEADER */
header.header-small {
  height: 60px;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
}

header.header-small .logo img {
  height: 70px;
}

header.header-large .logo img {
  height: 170px;
}
header.header-small .nav-menu {
  align-items: center;       /* keskitys pystysuunnassa */
  display: flex;
  height: 100%;              /* varmistaa että käyttää headerin korkeuden */
}
header.header-small .nav-menu li {
  display: flex;
  align-items: center;
}

/* MOBIILI */
@media (max-width: 768px) {
  html, body {
    font-size: 1rem;
    padding: 0;
    margin: 0;
  }
  main {
    margin-top: 8vh;
  }

  h1 {
    font-size: 1.8rem;
    font-weight: 400;
    text-align: center;
    line-height: 1.3;
    margin-bottom: 1rem;
    max-width: 90%;
  }

  .section-content {
    padding: 1rem;
    text-align: center;
  }

  header {
    align-items: center;
    padding: 1rem;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: auto;
    z-index: 1000;
  }
  header.header-large {
    height: 23vh;
  }

  header.header-small {
    height: 60px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .logo {
    width: 100%;
    text-align: center;
  }

  .logo img {
    height: 90px;
    transition: height 0.3s ease;
  }

  header.header-small .logo img {
    height: 40px;
  }

  
  .nav-toggle,
  .nav-toggle-label {
    display: none !important;
  }
  .nav-menu {
    display: none !important;
  }


  .meadow {
    background-size: cover;
    background-position: center;
    max-width: 100%;
  }
}
