@import url("https://fonts.googleapis.com/css2?family=Raleway&display=swap");

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html,
body {
  background-color: white;
  font-family: "Raleway", Arial, Helvetica, sans-serif;
  color: #bbb;
  /* background: rgb(45, 66, 99); */
  background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 1) 20%,
      rgba(0, 0, 0, 0.7) 70%,
      rgba(0, 0, 0, 1) 100%
    ),
    url("/images/taustakuva1.jpeg");
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  scroll-behavior: smooth;
  height: 100%;
  margin: 0;
  padding: 0;
}

p {
  line-height: 1.5;
  letter-spacing: 1.5px;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 100, "opsz" 4;
}

.call {
  position: relative;
  top: 8px;
  left: 5px;
  color: #b33951;
}

.phone-contact {
  position: relative;
  bottom: 5px;
  right: 15px;
}

.navbar {
  display: flex;
  justify-content: space-between;
  height: 70px;
  background-color: rgb(0, 0, 0);
  color: white;
  max-width: 1366px;
  margin: 5px auto 0;
  align-items: center;
}

.navbar img {
  margin-left: 50px;
  width: 120px;
  opacity: 0.9;
  height: auto;
}

.navbar nav ul {
  display: flex;
  flex-direction: row;
  margin-right: 50px;
}

nav ul li a {
  text-decoration: none;
  color: white;
  font-size: 16px;
  font-weight: 300;
  list-style-type: none;
  letter-spacing: 1.5px;
  margin-left: 20px;
  opacity: 0.9;
}

nav ul li {
  list-style-type: none;
}

nav ul li a:hover {
  opacity: 1;
  cursor: pointer;
  transition: 1s;
  color: lightblue;
}

li {
  list-style-type: none;
  line-height: 1.8;
  font-size: 15px;
}

/*Yläosan kuva-asettelu*/
.upper-section {
  margin-top: 10px;
}

.main-image img {
  max-width: 500px;
  border-radius: 3px;
  width: 95%;
  max-width: 1700px;
  height: 100%;
  margin: auto;
  display: block;
}
h1 {
  font-weight: 900;
  color: white;
  text-align: center;
}

.middle-section {
  max-width: 800px;
  margin: 50px auto;
  padding: 30px 0 50px;
  letter-spacing: 2px;
  background-color: rgba(0, 0, 0, 0.9);
}

.middle-section h1 {
  color: white;
  text-align: center;
  font-size: 40px;
  font-weight: 300;
  line-height: 40px;
  opacity: 0.9;
}

.middle-section p {
  max-width: 700px;
  margin: auto;
  text-align: center;
  color: white;
  padding: 30px;
  font-size: 16px;
  opacity: 0.9;
}

.center-btn {
  display: flex;
  justify-content: center;
}

.contact-btn {
  color: white;
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 1.5px;
  padding: 20px 30px;
  cursor: pointer;
  border: none;
  border-radius: 5px;
  width: max-content;
  background: #b33951;
  opacity: 0.5;
  transition-property: transform, opacity;
  transition-duration: 1s;
  transition-timing-function: ease-out;
}

.contact-btn:hover {
  opacity: 1;
  cursor: pointer;
  transform: scale(1.1);
  transition: transform 1s ease;
  opacity: 1;
}

.contact-btn:not(:hover) {
  opacity: 1;
  transform: scale(1);
}

.box-row {
  background: rgb(0, 0, 0, 0.8);
}

#tietoa-meista {
  scroll-margin-top: 100px;
}

#lvi-palvelut {
  scroll-margin-top: 100px;
}

#arvot {
  scroll-margin-top: 100px;
}

.boxText {
  color: white;
  padding: 50px;
  align-items: center;
}

.boxText h1 {
  text-align: start;
  padding: 20px;
  font-size: 20px;
  color: white;
  opacity: 0.9;
}

.boxText p {
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 1.2px;
  color: white;
  opacity: 1;
  opacity: 0.9;
}

/*lomake*/
.form-section {
  padding-bottom: 50px;
}

.form-header {
  font-size: 20px;
  text-align: center;
  font-weight: 300;
  padding-top: 30px;
}

.form {
  padding: 15px;
  border-radius: 5px;
  width: 90%;
  margin: auto;
}
label {
  color: white;
  font-size: 13px;
  opacity: 0.9;
}
input {
  width: 100%;
  border-radius: 3px;
  border: none;
  margin: 5px 0 0;
  height: 30px;
  opacity: 0.8;
  padding: 10px;
}
textarea {
  width: 100%;
  border-radius: 3px;
  border: none;
  margin: 5px 0;
  height: 75px;
  opacity: 0.8;
  padding: 10px;
}

.contact-btn-form {
  padding: 9px 40px;
  color: white;
  background-color: #b33951;
  border-radius: 5px;
  border: none;
  font-size: 17px;
  font-weight: 300;
  letter-spacing: 1.5px;
  text-transform: capitalize;
  width: 100%;
  margin-top: 10px;
}

/*Footer alkaa*/
footer {
  left: 0;
  bottom: 0;
  width: 100%;
  height: 250px;
}
footer li {
  color: white;
  padding-bottom: 10px;
}

.footerimgs {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.laskutustiedot a {
  color: white;
}

.wrapper-footer {
  display: flex;
  flex-direction: column;
  width: 300px;
  margin: auto;
  margin: 75px auto 100px;
  text-align: center;
}
.footer {
  background-color: black;
  border-top: solid 1px darkgray;
  padding: 1px;
}
.contact-header {
  color: white;
  text-align: start;
  text-transform: uppercase;
  padding-bottom: 30px;
  text-align: center;
  font-size: 20px;
}

.luotettavaLogo {
  margin-top: 10px;
  height: 75px;
  border-radius: 10px;
}

@media (min-width: 576px) {
  .middle-section h1 {
    font-size: 5vw;
  }

  .middle-section p {
    font-size: 1.7vw;
  }

  .boxText {
    padding: 25px;
  }

  .boxText h1 {
    font-size: 4vw;
  }
  .boxText p {
    font-size: 1.3vw;
  }

  .boxText li {
    font-size: 1.3vw;
  }

  .wrapper {
    row-gap: 25px;
    column-gap: 25px;
    margin: 25px;
  }

  nav ul li a {
    font-size: 1.4vw;
    margin-left: 15px;
  }
}

@media (min-width: 651px) {
  .hamburger-icon {
    display: none;
  }

  .tips_and_updates {
    display: none;
  }

  .plumbing {
    display: none;
  }

  .account_balance {
    display: none;
  }

  .intro {
    display: none;
  }

  .middle-section h1 {
    font-size: 24px;
    padding: 0 50px;
  }

  .middle-section p {
    font-size: 12px;
    padding: 50px;
    line-height: 2;
  }

  .wrapper {
    display: flex;
    flex-direction: column;
  }

  .box-row {
    max-width: 600px;
    border-radius: 10px;
    margin: 0 auto 25px;
    padding: 50px;
  }

  .box img {
    display: flex;
    height: 100%;
    width: 90%;
    margin: auto;
  }

  .boxText {
    margin: auto;
  }

  .boxText h1 {
    text-align: center;
    font-size: 20px;
  }

  .boxText p {
    line-height: 2;
    font-size: 13px;
  }
  .form-section {
    width: 300px;
    margin: 50px auto 100px;
    background: rgba(1, 1, 1, 0.5);
    height: 500px;
    border-radius: 10px;
  }
}

@media (min-width: 992px) {
  .middle-section h1 {
    font-size: 4vw;
  }

  .middle-section p {
    font-size: 1.3vw;
  }

  .boxText {
    flex: 1;
  }

  .boxImage {
    flex: 1;
  }

  .column-reverse {
    flex-direction: column;
  }

  .box img {
    width: 500px;
    height: 400px;
    object-fit: cover;
    border-radius: 5px;
  }

  .boxText h1 {
    font-size: 30px;
    padding-left: 0;
    text-align: start;
  }
  .boxText p {
    font-size: 14px;
  }

  .boxImage img {
    width: 100%;
    height: 300px;
  }

  .wrapper {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    width: 90%;
  }

  .box-row {
    width: 33%;
    min-width: 500px;
    display: block;
  }

  nav ul li a {
    font-size: 15px;
    margin-left: 20px;
  }
}

@media (min-width: 1200px) {
  .middle-section h1 {
    margin-top: 25px;
    font-size: 35px;
    padding-top: 5px;
  }

  .middle-section p {
    font-size: 14px;
    padding: 50px 0 75px;
    line-height: 2;
  }

  .wrapper {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    flex-wrap: nowrap;
    max-width: fit-content;
    margin: auto;
  }

  .box-row {
    min-width: 350px;
    padding: 25px 35px;
  }

  .boxText h1 {
    font-size: 30px;
  }
  .boxText p {
    font-size: 13px;
    line-height: 2;
  }

  .contact-btn {
    margin-bottom: 100px;
  }
}

@media (max-width: 650px) {
  .hamburger-icon {
    display: inline-block;
    width: 25px;
    height: 15px;
    position: relative;
    cursor: pointer;
    margin-right: 30px;
    z-index: 3;
  }

  .hamburger-icon span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background-color: #fff;
    transition: transform 0.3s ease;
  }

  @keyframes fade-in {
    0% {
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
  }

  .hamburger-icon span:nth-child(1) {
    top: 0;
  }

  .hamburger-icon span:nth-child(2) {
    top: 8px;
  }

  .hamburger-icon span:nth-child(3) {
    top: 16px;
  }

  .hamburger-icon.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger-icon.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger-icon.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .navbar img {
    z-index: 0;
  }

  .nav-menu {
    position: absolute;
    top: 70px;
    left: 0;
    display: flex;
    flex-direction: column;
    background-color: black;
    width: 100vw;
    height: 100vh;
    text-align: center;
    transition: 0.5s ease;
    transform: translateY(-120%);
    z-index: 0;
    padding-top: 50px;
  }

  .nav-link {
    margin: 10px 0;
  }

  .nav-menu.active {
    transform: translateY(0%);
    display: flex;
    flex-direction: column;
    padding-top: 100px;
    z-index: 2;
  }

  .nav-menu.active a {
    opacity: 0;
    animation-name: fadeIn;
    animation-duration: 0.5s;
    animation-delay: 0.4s;
    animation-fill-mode: forwards;
    font-size: 14px;
    font-weight: 300;
    z-index: 3;
  }
  .nav-menu:not(.active) a {
    opacity: 0;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 0.9;
    }
  }

  .intro {
    position: fixed;
    z-index: 4;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    background-color: black;
    transition: 1s;
  }

  .logo-header {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .intro-logo {
    width: 150px;
    position: relative;
    display: inline-block;
    bottom: -20px;
    opacity: 0;
  }

  .intro-logo.active {
    bottom: 0;
    opacity: 1;
    transition: ease-in-out 0.6s;
  }

  .intro-logo.fade {
    bottom: 150px;
    opacity: 0;
    transition: ease-in-out 1s;
  }

  .material-symbols-outlined.tips_and_updates {
    color: white;
    display: block;
    text-align: center;
    width: 100px;
    margin: auto;
    font-size: 50px;
    opacity: 1;
    color: rgb(200, 75, 49);
    position: relative;
    top: 30px;
    border-radius: 33px !important;
  }

  .material-symbols-outlined.plumbing {
    color: white;
    display: block;
    text-align: center;
    width: 100px;
    margin: auto;
    font-size: 50px;
    opacity: 1;
    color: rgb(200, 75, 49);
    position: relative;
    top: 30px;
    border-radius: 33px !important;
  }

  .account_balance {
    color: white;
    display: block;
    text-align: center;
    width: 100px;
    margin: auto;
    font-size: 50px;
    opacity: 1;
    color: rgb(200, 75, 49);
    position: relative;
    top: 30px;
    border-radius: 33px !important;
  }

  .box {
    padding: 25px;
  }

  .boxImage {
    display: none;
  }

  .main-image img {
    width: 100%;
    border-radius: 0;
    height: 110px;
    object-fit: fill;
  }

  .navbar img {
    width: 100px;
    margin-left: 20px;
    z-index: 3;
  }
  v .middle-section h1 {
    font-size: 21px;
    font-weight: 300;
    padding: 10px 40px;
    z-index: 1;
  }

  .middle-section p {
    font-size: 14px;
    font-weight: 300;
    line-height: 2;
    padding: 50px;
    z-index: 1;
  }

  .boxText {
    width: 90%;
    margin: 0 auto 35px;
    border-radius: 10px;
  }

  .boxText h1 {
    padding-left: 50px;
    font-size: 24px;
    font-weight: 300;
    padding-left: 4px;
  }
  .boxText p {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.7;
    text-align: start;
  }

  .contact-btn {
    font-size: 16px;
    font-weight: 500;
    padding: 15px 30px;
    margin-top: 20px;
  }

  .wrapper {
    display: flex;
    flex-direction: column;
    row-gap: 1px;
    margin-top: 0;
    padding-top: 0;
  }

  .box-row {
    border-radius: 10px;
    margin: 0 10px 25px;
  }

  .form-section {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    padding-top: 10px;
    margin: 25px auto;
    max-width: 300px;
  }

  .form-header {
    font-size: 20px;
    padding: 50px 25px 20px;
    font-weight: 300;
  }

  .form label {
    font-size: 14px;
    font-weight: 300;
  }
}

@media (max-width: 500px) {
  .middle-section h1 {
    font-size: 20px;
    padding: 15px 22px 0;
    line-height: 1.3;
  }

  .middle-section p {
    line-height: 1.6;
    font-size: 13px;
  }

  .boxText {
    padding: 40px 35px;
  }

  .boxText p {
    line-height: 1.8;
    font-size: 13px;
    font-weight: 300;
  }

  .wrapper {
    margin-left: 5px;
  }
}
