@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 3.5rem;
  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;
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.5rem;
}
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;
  }

  section.meadow{
    width: 98%;              /* tekee kortista selvästi leveämmän */
    max-width: 750px;        /* iso mutta hallittu maksimileveys */
    margin: 0 auto;          /* keskittää */
    padding: 2.2rem 1.6rem;  /* hieman lisää tilaa sisälle */
  }



  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%;
  }
}

/* Hinnoitteluesimerkit */
#hinnoittelu .section-content {
  max-width: 1500px;  /* aiempi max-width oli pienempi – tämä tekee ruudukosta leveämmän */
}
.pricing-card h4 {
  text-align: center;
  width: 100%;
}

.pricing-intro {
  max-width: 800px;
  margin: 0 auto 2rem auto;
  font-family: 'Lato', sans-serif;
  font-size: 1.3rem;
  font-weight: 300;
  text-align: center;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(350px, 410px));  /* kaksi korttia vierekkäin */
  justify-content: center;    /* keskittää koko gridin */
  justify-items: center;      /* keskittää kortit ruuduissaan */
  gap: 2rem;
  margin: 0 auto;
}

.pricing-card {
  background-color: #f7f7f7;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.05);
  padding: 1.5rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

.pricing-image {
  width: 100%;
  height: 100px;          /* slotti on AINA tämän kokoinen (voit muuttaa esim. 180–250px) */
  background-color: #ffecc7;
  border-radius: 12px;
  overflow: hidden;        /* estää pursuamisen */
  position: relative;
}

.pricing-image img {
  position: absolute;
   background-color: #f7f7f7;
  top: 50%;
  left: 50%;
  width: 100%;            /* KUVA AINA SLOTIN LEVEYTEEN */
  height: 100%;           /* KUVA AINA SLOTIN KORKEUTEEN */
  object-fit: contain;    /* 🔥 skaalautuu sisään, ei leikkaa, ei veny */
  transform: translate(-50%, -50%);
}

*/

.pricing-card h4 {
  font-size: 1.2rem;
  font-weight: 400;
  margin: 0 0 0.3rem 0;
}

.pricing-subtitle {
  font-size: 0.95rem;
  font-weight: 300;
  margin: 0 0 0.8rem 0;
  color: #555;
  text-align:center;
}

.pricing-card ul {
  margin: 0 0 1rem 0;
  padding-left: 1.2rem;
  font-size: 0.95rem;
}

.pricing-price {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 400;
  margin: 0.5rem 0 0.2rem 0;
  color: #003366;
}

.pricing-extra {
  font-size: 0.9rem;
  font-weight: 300;
  margin: 0;
  color: #555;
  text-align:center;
}

/* Responsiivisuus: 3x2 → 2x3 → 1x6 */

@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .pricing-intro {

  font-size: 1rem;

}
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card {
    text-align: left;
      width: 90%;                       /* tekee kortista leveämmän */
    max-width: 520px;  
  }
  .pricing-extra {

  margin: 10px;

}
}

