/* Yleiset Asetukset */
.visually-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Inter", "Nunito Sans", "Open Sans", system-ui, sans-serif;
  color: #333;
  background-color: #fff;
}


html {
  scroll-behavior: smooth;
}

.no-scroll {
  overflow: hidden;
  height: 100vh;
}

p {
  font-size: 18px;
  line-height: 1.7;
}
.lihashuolto h3 {
  margin-top: 0; 
}

h3 {
  color: #3fb59a;
  font-weight: bold;
  font-size: 22px;
  text-transform: uppercase;
}

.map-container {
  width: 100%;
  height: 400px;
  margin: 100px auto 0;
  box-shadow: 1px 2px 10px #717171;
  position: relative;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Header ja Navigointi */

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 40px;
  background-color: #fff;
  position: relative;
}

.logo img {
  width: 70%;
  max-width: 200px;
  height: auto;
}

/* Navigaatio */
nav ul {
  list-style: none;
  display: flex;
  gap: 40px;
  margin: 0;
  padding: 0;
}
nav ul li a {
  position: relative;
  text-decoration: none;
  color: #333;
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0.2px;
  font-family: 'Nunito', sans-serif;
  transition: color 0.3s ease;
  display: block;
  padding: 10px 0;
}
nav ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 6px;
  width: 0;
  height: 1px;
  background-color: #92929298;
  transition: width 0.3s ease-in-out;
}

nav ul li a:hover {
  color: #00000053;
}

nav ul li a:hover::after {
  width: 100%;
}



/* Hamburger-valikko */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  width: 25px;
  height: 25px;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 1001;
}
.bar {
  height: 3px;
  background-color: #3fb59a;
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
  width: 100%;
  margin: 0;
}
.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}
.hamburger.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
  transform-origin: center;
}
.hamburger.active .bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
  transform-origin: center;
}
/* Bannerit */

.banneri {
  position: relative;
  width: 100%;
}

.banneri img {
  width: 100%;
  display: block;
}

.banneri-teksti {
  position: absolute;
  top: 50%;
  left: 14%;
  transform: translateY(-50%);
  text-align: left;
  z-index: 2;
  opacity: 0;
  animation: fadeInBanner 1.5s ease forwards 0.3s;
}

.banneri-teksti h2 {
  font-size: clamp(14px, 3vw, 30px);
  margin-bottom: clamp(20px, 4vw, 40px);
  color: #333;
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  opacity: 0;
  animation: fadeInText 1.2s ease forwards 0.5s;
}

.lahjakortti-chip {
  font-size: 0.65em; 
  color: #b23a3a;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  letter-spacing: 1px;
  margin-top: 10px;

}




.osteopatia-banneri .banneri-teksti {
  top: 50%;
  right: 5%;
  left: auto;
  text-align: right;
}

.banneri-teksti h4 {
  font-size: clamp(22px, 3vw, 30px);
  color: #333;
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  margin: 0;
  padding: 20px;
  display: inline-block;
  opacity: 0;
  animation: fadeInText 1.2s ease forwards 0.5s;
}

@keyframes fadeInBanner {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInText {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Nappi (etusivu) */


.btn {
  background-color: #3fb59a;
  color: #fff;
  padding: 12px 40px;
  border-radius: 25px;
  font-family: 'Nunito', sans-serif;
  text-decoration: none;
  font-weight: bold;
  font-size: clamp(11px, 2vw, 16px);
  padding: clamp(6px, 1.5vw, 10px) clamp(20px, 3vw, 40px);
  z-index: 2;
  opacity: 0;
  animation: fadeInBtn 1s ease forwards 1s;
}

@keyframes fadeInBtn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.btn:hover {
  background-color: #379c86;
}

.fade-element {
  opacity: 0;
  transition: opacity 1s ease, transform 1s ease;
  transform: translateY(20px);
}

.fade-element.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Sisältöosiot */

.info {
  text-align: center;
  padding: 60px 20px;
  margin: 0 200px;
}

/* --- Hinta-alue perus (desktop) --- */
.hinta-alue {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-direction: row-reverse;
  gap: 50px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 40px;
  background-color: #fafafa;
  flex-wrap: wrap; 
}


.hinnat-kuva,
.hinnat-sisältö {
  flex: 1;
  min-width: 200px;
  max-width: 500px;
}

.hinnat-kuva img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hinnat-taulukko {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 17px;
}

.hinnat-rivi {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  border-bottom: 1px dashed #dcdcdc;
  padding: 0 0 16px 0; /* ⬅ vain alapuolelle tilaa */
  margin: 0;
}

.hinnat-rivi + .hinnat-rivi {
  margin-top: 0; /* ei väliä rivien välillä */
}

.hinnat-rivi > span:first-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.3;
  margin-top: 0;
}

.hinnat-rivi > span:last-child {
  text-align: right;
  color: #3fb59a;
  font-weight: bold;
  white-space: nowrap;
  margin-top: 0;
}

.hinta-info {
  flex-basis: 100%;       /* vie koko rivin leveyden */
  text-align: center;     /* tilaa hinnaston ja tekstin väliin */
  font-size: 16px;
  line-height: 1.6;
  color: #444;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hinta-info strong {
  color: #3fb59a;
}

.hinta-info .pieni {
  font-size: 15px;
  color: #666;
  margin-top: 10px;
  font-style: italic;
}

.pieniteksti {
  font-size: 0.85em;
  color: #777;
  margin-top: 2px;
  line-height: 1.3;
}


/* Tietoa minusta */
.tietoaminusta,
.urheilijan-lihashuolto {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 70px;
  gap: 40px;
  flex-wrap: wrap;
  flex-direction: row-reverse;
}

#HINNASTO {
  scroll-margin-top: 50px; /* säädä esim. 80–120px riippuen headerin korkeudesta */
}

/* ✅ Korjattu versio tästä alkaa */
.urheilijan-lihashuolto {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 70px;
  gap: 40px;
  flex-wrap: nowrap;
  flex-direction: row-reverse;
}
/* ✅ Korjaus loppuu */

.tietosisältö,
.lihashuolto {
  flex: 1.9;
  min-width: 300px;
  max-width: 550px;
  padding-right: 20px;
}

.lihashuolto {
  flex: 1.9;
  min-width: 300px;
  max-width: 550px;
  padding-right: 20px;
  align-items: flex-start;
}

.omakuva,
.lihashuolto-kuva {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  display: flex;
}

.kenelle-osteopatia-sopii {
  text-align: center;
  padding: 80px 20px;
}

.kenelle-osteopatia-sopii h3 {
  max-width: 700px;
  margin: 0 auto 30px;
  font-size: 21px;
  text-transform: uppercase;
}

.kenelle-osteopatia-sopii p {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.7;
  color: #333;
}


.omakuva img,
.lihashuolto-kuva img {
  width: 100%;
  max-width: 400px;
  height: auto;
}

/* Osteopatia */
.osteopatia-teksti {
  display: flex;
  justify-content: space-between;
  gap: 150px;
  flex-wrap: wrap;
  line-height: 30px;
  font-size: 16px;
  background-color: #fafafa !important;;
  padding: 80px;   
  margin: 0;      
  min-height: 100px; 
}



.osteopatia-teksti h3 {
  font-size: 21px;
}

.osteopatia-teksti ul {
  list-style: disc outside;
  padding-left: 20px;
}

.tekstilohko {
  flex: 1;
  min-width: 250px;
}

.urheilijan-lihashuolto {
    margin-top: 80px; /* lisää tilaa yläpuolelle */
}

/* Footer */
.footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 40px 20px;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.2;
  margin-top: 150px;
}

#ikoni { font-size: 18px; }
#puhelin-ikoni {
  font-size: 23px;
  position: relative;
  top: 2px;
}

.back-to-top {
  position: fixed;
  bottom: 35px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #3fb59a;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
  z-index: 1000;
}

.back-to-top:hover {
  background-color: #329f86;
}





/*
* ======================================
* Responsiivisuus (uudelleen kirjoitettu)
* ======================================
*
* Huom: navigaatioon liittyvät säännöt on jätetty muuttamattomiksi (kuten pyydettiin).
* Media queryt on järjestetty selkeisiin kattoihin ja ylimääräiset duplikaatit poistettu.
*/

/* ----- Suuret näytöt: Desktop XL ja leveämmät ----- */
@media (min-width: 1400px) {
  

 p  { font-size: 20px; }

  header { padding: 20px 80px; }
  nav ul { gap: 60px; }

  .banneri img { max-height: 800px; object-fit: cover; }
  .banneri-teksti { top: 45%; margin-left: 6%; }
  .banneri-teksti h2, .banneri-teksti h4 { font-size: 35px; line-height: 1.3; }

  .btn { font-size: 20px; padding: 12px 50px; }

  .info {
    max-width: 700px;
    margin: 0 auto;
    padding: 100px 80px;
  }

  .hinta-alue {
    max-width: 90%;
    gap: 80px;
    padding: 100px 80px;
    justify-content: space-between;
  }

  .hinnat-kuva,
  .hinnat-sisältö {
    flex: 1 1 45%;
    min-width: 300px;
    max-width: none;
  }

  .hinta-info { max-width: 900px; margin: 20px auto 0; }

  .tietoaminusta,
  .urheilijan-lihashuolto {
    max-width: 1300px;
    margin: 0 auto;
    padding: 100px 80px;
    gap: 100px;
  }

  .tietosisältö p { font-size: 19px; line-height: 1.8; }
  .omakuva img { max-width: 500px; }

  .osteopatia-teksti {
    max-width: 1300px;
    margin: 100px auto;
    gap: 150px;
    font-size: 18px;
    line-height: 1.9;
  }

  .map-container { max-width: 1400px; height: 500px; }

  .footer { font-size: 17px; }
}

/* ----- Ultra-leveät näytöt (4K yms.) ----- */
@media (min-width: 1920px) {
  body { font-size: 22px; }

  .banneri img { max-height: 900px; }
  .banneri-teksti h2 { font-size: 34px; }

   .hinta-alue, .tietoaminusta, .osteopatia-teksti {
    max-width: 1500px;
    margin: 0 auto;
  }

  .tietosisältö, .lihashuolto { max-width: 700px; }
  .hinnat-kuva img, .lihashuolto-kuva img { max-width: 650px; }
  .hinnat-sisältö { max-width: 700px; }

  .hinnat-rivi { font-size: 22px; }
  .pieniteksti, .hinta-info .pieni { font-size: 18px; }
  .hinta-info p { font-size: 20px; }

  .map-container { height: 600px; }
}

/* ----- Keskikokoiset näytöt ----- */
@media (max-width: 1200px) {
  .tietoaminusta,
  .urheilijan-lihashuolto {
    padding: 60px 50px;
    gap: 30px;
  }

  .osteopatia-teksti {
    margin: 50px;
    gap: 80px;
  }
}

/* ----- Tablet / Pienemmät kannettavat ----- */
@media (max-width: 1024px) {
  .info { margin: 0 40px; }

  .tietoaminusta,
  .urheilijan-lihashuolto {
    flex-direction: column;
    padding: 20px;
    text-align: center;
    align-items: center;
    justify-content: center;
  }

  .tietosisältö, .lihashuolto { padding: 0; }
  .omakuva, .lihashuolto-kuva { justify-content: center; }
}

/* ----- Pienemmät näytöt / mobiili ----- */
@media (max-width: 1000px) {
  .hinta-alue {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 100px;
    gap: 40px;
  }

  .hinnat-kuva,
  .hinnat-sisältö {
    min-width: 0;
    width: 100%;
    max-width: 400px;
  }

  .hinnat-sisältö { order: 1; }
  .hinta-info { order: 2; margin-top: 20px; }
  .hinnat-kuva { order: 3; margin-top: 20px; }

  .hinnat-taulukko {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 0 10px;
  }

  .hinnat-rivi {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
  }
}

/* ----- Pienin mobiili (perus mobiili-breikkaus) ----- */
@media (max-width: 768px) {
  p { font-size: 16px; line-height: 25px; }

  header { padding: 15px 20px; }
  .logo img { max-width: 140px; }

  /* Navigaatioon liittyvät näkyvyydet säilytetään ennallaan (ei muutoksia) */
  .hamburger {
    display: flex;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
  }


  

   .banneri-teksti {
    top: 50%;
    transform: translateY(-50%);
  }
  nav ul { display: none; }

  nav.nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 300px;
    height: 90vh;
    background-color: #fff;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
  }
  nav.nav.active {
    display: block;
    transform: translateX(0);
  }

  nav.nav ul {
    display: flex;
    flex-direction: column;
    padding: 80px 20px 20px;
  }
  nav.nav ul li {
    padding: 2px 0;
    border-bottom: 1px solid #eee;
  }
  nav ul li a::after { display: none; }


  .info { margin: 0 10px; padding: 10px; }

  .hinta-alue {
    width: 100%;
    margin: 30px auto;
    padding: 30px 0 40px;
    box-sizing: border-box;
  }

  .hinnat-sisältö {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0 auto;
    padding: 0 25px;
    width: 100%;
    max-width: 420px;
    box-sizing: border-box;
  }

  .hinnat-taulukko {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
  }

    .banneri-teksti h4 {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    white-space: nowrap;
  }

  .hinnat-taulukko table,
  .hinnat-taulukko tr,
  .hinnat-taulukko td {
    box-sizing: border-box;
    word-wrap: break-word;
  }

  .hinta-info {
    text-align: center;
    margin: 24px auto 0;
    width: 100%;
    max-width: 420px;
    padding: 0 16px;
    box-sizing: border-box;
  }

  .hinnat-kuva img {
    width: 100%;
    max-width: 420px;
    padding: 0 24px;
    box-sizing: border-box;
  }

  .hinnat-rivi {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: flex-start;
    text-align: left;
    border-bottom: 1px dashed #dcdcdc;
    padding-bottom: 14px;
  }

  .hinnat-rivi > span:first-child {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    line-height: 1.4;
    justify-content: flex-start;
  }

  .hinnat-rivi > span:last-child {
    text-align: right;
    color: #3fb59a;
    font-weight: bold;
    white-space: nowrap;
    align-self: start;
  }

  .pieniteksti {
    font-size: 0.85em;
    color: #777;
    margin-top: 3px;
    line-height: 1.3;
    text-align: left;
    width: 100%;
  }

  .kenelle-osteopatia-sopii { text-align: center; padding: 60px 10px; }

  .footer { font-size: 10px; padding: 20px 10px; }

  .urheilijan-lihashuolto { margin-top: 30px; }

  .osteopatia-teksti {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 20px;
    padding: 20px 15px;
    margin: 0;
    box-sizing: border-box;
    line-height: 1.9;
    font-size: 16px;
    background-color: #fafafa;
    overflow: hidden;
  }

  .osteopatia-teksti .tekstilohko {
    flex: 1 1 100%;
    min-width: 0;
    text-align: left;
  }

}
/* ----- Erittäin pieni näyttö (pienin murto) ----- */
@media (max-width: 480px) {
  header { padding: 10px 20px; }
  .logo img { max-width: 120px; }

  .tietosisältö, .lihashuolto, .info { text-align: left; }
  .lihashuolto h3 { text-align: left; }



  .hinnat-taulukko { font-size: 15px; }
  .hinnat-rivi { gap: 6px; }
  .hinnat-rivi > span:last-child { font-size: 15px; }
}

/* Pieni korjaus banneritekstille (perus) — ei muutoksia navigaatioon */
.banneri-teksti h4 {
  display: flex;
  flex-direction: column;
  align-items: right;
  text-align: right;
  padding: 10px;
}

.banneri-teksti {
  left: 12%;
  right: auto;
  text-align: left;
}
