:root {
  --main-bg-color: rgb(40, 40, 40);
  --secondary-bg-color: rgb(223, 223, 223);
  --contrast-bg-color: white;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body { 
  font-family: 'Roboto', sans-serif;
}

main {
  background: var(--secondary-bg-color);
}

/* Menu */

.header {
  height: 12vh;
  position: fixed;
  z-index: 1;
  background: var(--main-bg-color);
  width: 100%;
  box-shadow: 0 0 4px grey;
}

.header-container {
  width: 90%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-logo {
  height: 12vh;
}
.menu-logo img {
  height: 100%;
}

.menu ul {
  display: flex;
  list-style: none;
}

.menu a {
  text-decoration: none;
  margin: 0 15px;
  opacity: .85;
  color: var(--contrast-bg-color);
}

.menu a:hover {
  opacity: 1;
}

/* Home */
.home {
  width: 80%;
  margin: 0 auto;
  padding: 16vh 0 0;
}
.home-image-container {
  display: flex;
  position: relative;
}
.home-image {
  position: relative;
  width: 60%;
  height: 450px;
  background-image: url(images/background-image2.jpeg);
  background-size: cover;
}

.home-sm-description {
  width: 40%;
  background-color: black;
}

.home-sm-description p {
  color: white;
  font-size: 30px;
  text-align: center;
  width: 70%;
  margin: 0 auto;
  padding-top: 150px;
}


.info-business {
  margin: 50px auto 0;
  width: 50%;
  text-align: center;
}

.info-business h3{
  margin-bottom: 15px;
}

/* Products */
.products-section {
  width: 90%; 
  margin: 0 auto;
  padding: 15vh 0 0;
}

.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 15px 20px;
}

.product {
  overflow: hidden;
  background-color: #F5F1ED;
}

.product-title {
  text-align: center;
  margin: 8px;
}

/* About */
.about-section {
  width: 80%;
  margin: 0 auto ;
  padding: 15vh 0 0;
  text-align: center;
}

.about-info {
  width: 50%;
  margin: 0 auto 30px;
}

.about-m-v {
  display: flex;
  justify-content: space-between;
}

.about-mision {
  width: 45%;
}

.about-vision {
  width: 45%;
}

/* Galery */
.galery-section {
  padding: 15vh 0 0;
}

.galery {
  box-sizing: border-box;
  width: 90%;
  margin: 0 auto;
}

.mobile-galery {
  display: none;
}

.galery-section img {
  width: 100%;
}

.galery-section img:hover {

}

.row {
  display: flex;
  padding: 6px;
}

.column {
  flex: 25%;
  padding: 3px;
}


/* Contact */
.contact-section {
  padding: 15vh 0 10vh;
  width: 50%;
  margin: 0 auto;
}

.contact-section h3{
  text-align: center;
}

.contact-tel {
  text-align: center;
  margin: 20px auto 10px;
}

.contact-section .form {
  display: flex;
  flex-direction: column;
} 

.contact-section label{
  margin: 10px 0 3px 3px;
}

.contact-section input, .contact-section textarea{
  padding: 7px 5px;
  border: 1px solid grey;
  border-radius: 4px;
}

.contact-section button {
  font-size: 14px;
  margin-top: 10px;
  padding: 6px 3px;
  cursor: pointer;
  border: 1px solid grey;
  border-radius: 7px;
}

/* footer */

footer {
  height: 10vh;
  box-shadow: 4px 0 4px grey;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  text-transform: uppercase;
  background: var(--main-bg-color);
  color: var(--contrast-bg-color);
}

/* Media queries */

@media screen and (max-width: 768px) {
  /* header */
  .header {
    height: 10vh;
  }
  .menu-logo {
    height: 10vh;
    margin: 0 auto;
  }
  .menu-desktop {
    display: none;
  }

  /* home */
  .home {
    width: 95%;
    padding: 13vh 0 0;
  }
  .home-image {
    height: 400px;
    background-image: url(images/background-image1.jpeg);
  }
  .home-sm-description {
    width: 50%;
  }
  .home-sm-description p {
    font-size: 24px;
    width: 70%;
    padding-top: 130px;
  }
  .info-business {
    margin: 40px auto 0;
    width: 60%;
  }

  /* Products */
  .products-section {
    width: 98%; 
    padding: 12vh 0 0;
  }
  .products {
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 10px;
  }

  /* About */
  .about-section {
    width: 90%;
    padding: 12vh 0 0;
  }
  .about-info {
    width: 60%;
  }

  /* Galery */
  .galery-section {
    padding: 12vh 0 0;
  }
  .galery {
    width: 98%;
  }
  .desktop-galery {
    display: none;
  }
  .mobile-galery {
    display: block;
  }
  .row {
    padding: 0 6px;
  }

  /* Contact */
  .contact-section {
    padding: 12vh 0 10vh;
    width: 70%;
  }

}

@media screen and (max-width: 425px) {
  /* home */
  .home {
    width: 100%;
  }
  .home-image {
    height: 350px;
    width: 100%;
  }
  .home-sm-description {
    position: absolute;
    right: 0;
    height: 100%;
    opacity: .7;
  }
  .home-sm-description p {
    font-size: 22px;
    width: 80%;
    padding-top: 100px;
  }
  .info-business {
    width: 80%;
  }

  /* Products */
  .products-section {
    width: 95%; 
  }
  .products {
    grid-template-columns: repeat(1, 1fr);
  }
  .product-image img{
    width: 100%;
  }

  /* About */
  .about-section {
    width: 98%;
  }
  .about-info {
    width: 80%;
  }

  /* Galery */
  .galery {
    width: 100%;
  }
  .row {
    padding: 0;
  }

  /* Contact */
  .contact-section {
    width: 80%;
  }

}

@media screen and (max-width: 375px) {
  .home-sm-description p {
    font-size: 20px;
  }
  .contact-section {
    width: 85%;
  }
}