/* elementin koon laskutapa */
* {
  box-sizing: border-box;
}

/* yleiset tyylit */
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #fff;
  background: #000;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1 {
  font-size: 36px;
  color: #ffffff;
}

h2 {
  font-size: 28px;
}

h3 {
  font-size: 24px;
}

p {
  font-size: 18px;
  line-height: 1.6;
  color: #68a4c2;
}

/* HERO taustakuva + tummennus */
.hero {
  flex: 1;
  min-height: 100vh;
  position: relative;
  /* hero-/taustakuva */
  background:
    linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)),
    url("images/hero.jpg");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* Header päälle */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 60px;
  z-index: 10;
}

/* Logo */
.logo img {
  height: 250px; /* säädä pienemmäksi/isommaksi */
  width: auto;
  display: block;
}

/* Valikko oikealle */
.main-nav {
  display: flex;
  gap: 26px;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 18px;
}

.main-nav a:hover {
  color: #68a4c2;
}

.main-nav a.active {
  color: #68a4c2; /* aktiivinen linkki (Etusivu) */
  font-weight: 600;
}

/* Hero sisällön sijoittelu vasemmalle */
.hero-inner {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 60px;
}

.hero-text {
  max-width: 620px;
}

.hero-text h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 300;
  line-height: 1.08;
  color: #ffffff;
}

.hero-text p {
  margin: 0;
  max-width: 520px;
  color: #68a4c2;
  font-size: 18px;
}

/* Nappi/CTA */
.btn {
  display: inline-block;
  margin-top: 18px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #7cc6dd;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.25s ease;
}

/* Palveluni-sisältö */
.hero-palveluni {
  position: relative;
  min-height: 100vh;
  background:
    linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)),
    url("images/hero2.jpg");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-palveluni .palveluni-vasen {
  position: absolute;
  left: 60px;
  top: 52%;
  transform: translateY(-50%);
  width: 280px;
}

.hero-palveluni .palveluni-oikea {
  position: absolute;
  right: 60px;
  top: 52%;
  transform: translateY(-50%);
  width: 280px;
}

.hero-palveluni .palveluni-oikea h2 {
  margin: 0 0 12px;
}

.hero-palveluni .palveluni-oikea p {
  margin: 0 0 28px;
}

.hero-palveluni .palveluni-vasen h1 {
  margin-bottom: 18px;
}

.palveluni-btn {
  position: absolute;
  top: 120px;
  left: 400px;
  z-index: 20;
}

.btn:hover {
  background: #ffffff;
  color: #68a4c2;
}

.referenssit-otsikko {
  font-size: 36px;
  margin-bottom: 18px;
}

.hero-yhteytta {
  position: relative;
  min-height: 100vh;
  background:
    linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
    url("images/hero3.jpg");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.yhteytta-sisalto {
  position: absolute;
  left: 60px;
  top: 36%;
  transform: translateY(-50%);
  max-width: 420px;
}

.yhteytta-sisalto h1 {
  margin: 0 0 20px;
}

.yhteytta-sisalto p {
  margin: 0 0 24px;
}

.yhteytta-sisalto a {
  display: block;
  width: fit-content;
  margin-bottom: 14px;
  color: #d4af37;
  text-decoration: none;
  font-size: 18px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.5);
  padding-bottom: 4px;
  transition: color 0.2s ease;
}

.yhteytta-sisalto a:hover {
  color: #ffffff;
}

/* Läppärit */
@media (min-width: 1201px) and (max-width: 1600px) {

  .hero-palveluni {
    min-height: 1350px;
    background-size: cover;
    background-position: center;
  }

  .hero-palveluni .logo {
    margin-left: -24px;
  }

  .hero-palveluni .palveluni-vasen {
    left: 60px;
    top: 200px;
    transform: none;
    width: 300px;
  }

  .hero-palveluni .palveluni-oikea {
    right: 60px;
    top: 200px;
    transform: none;
    width: 320px;
    text-align: left;
  }

  .hero-palveluni .palveluni-btn {
    left: 260px;
    top: 90px;
    transform: none;
  }

  .hero-yhteytta .yhteytta-sisalto {
    top: 46%;
  }

  .hero-yhteytta .yhteytta-sisalto h1 {
    margin-bottom: 24px;
  }

  .hero-yhteytta .yhteytta-sisalto p {
    margin-bottom: 28px;
  }

  .hero-yhteytta .yhteytta-sisalto a {
    margin-bottom: 16px;
  }

}

/* tabletit pystyssä esim ipad pro */
@media (min-width: 701px) and (max-width: 1024px) {
  
  .hero-palveluni .palveluni-vasen,
  .hero-palveluni .palveluni-oikea {
    background: rgba(0, 0, 0, 0.45);
    padding: 20px;
    border-radius: 10px;
  }

}

/* tabletit vaakasuorassa */
@media (min-width: 1025px) and (max-width: 1200px) {
  
  .hero-palveluni {
    min-height: 1350px;
  }
  
  .hero-palveluni .palveluni-vasen,
  .hero-palveluni .palveluni-oikea {
    top: 60%;
  }
  
  .hero-palveluni .palveluni-btn {
    top: 150px;
  }
  
  .hero-palveluni p {
    text-shadow:
      0 2px 6px rgba(0, 0, 0, 1),
      0 8px 22px rgba(0, 0, 0, 0.9),
      0 0 4px rgba(0, 0, 0, 0.8);
  }
  
  .hero-yhteytta .yhteytta-sisalto {
    top: 44%;
  }

}

/* puhelin jne alle 700px levyiset näytöt pystyssä */
@media (max-width: 700px) {
  
  .site-header {
    padding: 18px 18px;
    align-items: flex-start;
  }
  
  .logo img {
    height: 90px;
  }
  
  .main-nav {
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  
  .main-nav a {
    font-size: 13px;
  }
  
  .hero-inner {
    padding: 0 18px;
    align-items: flex-start;
    padding-top: 55vh;
  }
  
  .hero-palveluni {
    min-height: auto;
    padding-top: 180px;
    padding-bottom: 40px;
    background-size: 100% auto;
    background-position: top center;
  }
  
  .hero-palveluni .palveluni-vasen,
  .hero-palveluni .palveluni-oikea {
    position: static;
    transform: none;
    width: auto;
    max-width: none;
    padding: 0 18px;
  }
  
  .hero-palveluni .palveluni-vasen {
    margin-bottom: 30px;
  }
  
  .hero-palveluni .palveluni-vasen h1,
  .hero-palveluni .palveluni-oikea h2 {
    line-height: 1.2;
    margin-bottom: 12px;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.8);
  }
  
  .hero-palveluni p {
    font-size: 16px;
    line-height: 1.5;
    color: #9fd8f0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  }
  
  .hero-palveluni .palveluni-oikea p {
    margin-bottom: 24px;
  }
  
  .hero .btn {
    position: absolute;
    top: 48vh;
    left: 18px;
    margin-top: 0;
    z-index: 5;
  }
  
  .hero-palveluni .palveluni-btn {
    top: 120px;
    left: 18px;
    right: auto;
  }
  
  .hero-yhteytta .yhteytta-sisalto {
    position: static;
    transform: none;
    padding: 0 18px;
    margin-top: 55vh;
    display: flex;
    flex-direction: column;
  }
  
  /* otsikko ja teksti linkkien alle */
  .hero-yhteytta h1 {
    order: 2;
    margin-bottom: 12px;
  }
  
  .hero-yhteytta p {
    order: 3;
  }

}

/* PHONE LANDSCAPE Eli puhelin vaakatasossa */
@media (max-height: 500px) and (orientation: landscape) {
  
  .site-header {
    padding: 10px 14px;
    align-items: center;
  }
  
  .logo img {
    height: 56px;
  }
  
  .main-nav {
    gap: 10px;
    flex-wrap: nowrap;
  }
  
  .main-nav a {
    font-size: 16px;
    font-weight: 500;
  }
  
  .hero-inner {
    padding-top: 120px;
  }
  
  .hero .btn {
    position: fixed;
    right: 20px;
    top: 20px;
    left: auto;
    padding: 12px 22px;
    font-size: 14px;
  }
  
  .hero .site-header .logo {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 30;
  }
  
  .hero .site-header .logo img {
    height: 126px;
  }

}

/* PALVELUNI vain puhelin vaakatasossa */
@media (max-height: 500px) and (orientation: landscape) {
  
  .hero-palveluni {
    min-height: auto;
    padding-top: 60px;
    padding-bottom: 40px;
    overflow: visible;
  }
  
  .hero-palveluni .palveluni-vasen,
  .hero-palveluni .palveluni-oikea {
    position: static;
    transform: none;
    width: 280px;
  }
  
  .hero-palveluni .palveluni-vasen {
    margin-left: 60px;
    margin-bottom: 30px;
  }
  
  .hero-palveluni .palveluni-oikea {
    margin-left: auto;
    margin-right: 60px;
  }

}

/* OTA YHTEYTTÄ vain puhelin vaakatasossa */
@media (max-height: 500px) and (orientation: landscape) {
  
  .hero-yhteytta .yhteytta-sisalto {
    position: static;
    transform: none;
    max-width: 320px;
    padding: 90px 18px 30px 18px;
    margin: 0;
    display: flex;
    flex-direction: column;
  }
  
  .hero-yhteytta h1 {
    order: 2;
    margin: 0 0 12px;
    font-size: 30px;
    line-height: 1.05;
  }
  
  .hero-yhteytta p {
    order: 3;
    margin: 0 0 18px;
    font-size: 16px;
    line-height: 1.35;
  }
  
  .hero-yhteytta a {
    margin-bottom: 10px;
    font-size: 16px;
  }

}

/* Footer/alatunniste tyylit */
.site-footer {
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 40px 20px;
  text-align: center;
}

.footer-sisalto {
  max-width: 900px;
  margin: 0 auto;
}

.footer-nimi {
  font-size: 20px;
  color: #ffffff;
  margin-bottom: 16px;
}

.footer-nav {
  margin-bottom: 16px;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  margin: 0 10px;
  font-size: 16px;
}

.footer-nav a:hover {
  color: #68a4c2;
}

.footer-copy {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}
