@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700;800&display=swap');

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

a{
  text-decoration: none;
}

ul{
  list-style: none; 
}

/*=============BASE===========*/

body, textarea, input, button{
  font: 400 1rem var(--title-font);
}

html{
  scroll-behavior: smooth;
}

/*==============VARIÁVEIS=============*/
:root{
  --header-height: 4.5rem;

  /* colors */
  --base-color: #FFB004;
  --black-color: #09090B;
  --whith-color: #FFFFFF;
  --bg-color: #FAFAFA;
  --title-color: #18181B;

  /*FONTS*/
  --size-title: 1.87rem;
  --size-subtitle:1rem;

  --title-font:'Poppins', sans-serif;
}

/*==============LAYOUT========*/

.grid{
  display: grid;
  gap: 2rem;
}

.container{
  margin-left: 1.25rem;
  margin-right: 1.25rem;
}

.section{
  padding: 5rem 0;
}


.divider-title{
  background: var(--base-color);
  margin-bottom: 2.5rem;
  width: 100px;
  height: 10px;
}

.title{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}

.links-nav:hover{
 color: var(--base-color);
 transition: color .2s;
}

header{
  width: 100%;
  background: var(--black-color);
}

/*======NAVEGTION=========*/

.header{
  top: 0;
  left: 0;
  position: fixed;
  z-index: 1;
  width: 100%;

  background: var(--black-color);
}

nav{
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav ul li{
  text-align: center;
}

nav .menu{
  opacity: 0;
  visibility: hidden;
  top: -20rem;
  z-index: 1;
}

nav .menu ul {
  display: none;
}

nav ul li a{
  color: var(--black-color);
  font-size: 1.125rem;
}

nav ul li a:hover,
nav ul li a.active{
  color: var(--base-color);
}

/*=======MOSTRAR MENU=========*/

nav.show .menu{
  opacity: 1;
  visibility: visible;
  background: var(--whith-color);

  height: 100vh;
  width: 100vw;
  position: fixed;
  top: 0;
  left: 0;

  transition: .6s;

  display: grid;
  place-content: center;
}

nav.show .menu ul{
  display: grid;
}

nav ul.grid{
  gap: 3rem;
}

/*=============TOGGLE MENU=============*/

.toggle{
  color: var(--base-color);
  cursor: pointer;
}

nav .x{
  color: var(--black-color);
  visibility: hidden;
  opacity: 0;

  position: fixed;
  top: -1.5rem;
  right: 1.5rem;

  transition: 0.2s;
}

nav.show img.x{
  visibility: visible;
  opacity: 1;
  top: 1.5rem;
}

/*=============HERO=============*/

.hero{
  margin-top: 5rem;
  height: 100vh;
  background: 
  linear-gradient(0deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.65) 100%), 
  url(assets/hero.webp), lightgray 50% / cover no-repeat;
  background-size: cover;
}

.butto-arrow{
  animation: float 4s ease-out 0s infinite;
  transform: translateY(0px);
}

.content-hero img{
  color: var(--whith-color);
}

.content-hero{
  display: flex;
  gap: 2.5rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.content-hero h1{
  color: var(--whith-color);
  font-size: 2rem;
  font-weight: 500;
  text-align: center;
  max-width: 21rem;
}

/*=============SERVICES=============*/

.cards{
  padding-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.card-area{
  border: 1px solid #D4D4D8;
}

.card-area img{
  object-fit: cover;
}

.card-content{
  background: var(--bg-color);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.card-content h3{
  font-size: 1.25rem;
  font-weight: 500;
}

.card-content p{
  text-align: justify;
}

/*=============ABOUT=============*/

#about{
  padding-bottom: 2rem;
  background: var(--bg-color);
}

#about img{
  object-fit: cover;
  height: 300px;
}

.content-about > .title-about{
  align-items: baseline;
}

.content-about h2{
  padding-top: 1rem;
  color: var(--title-color);
  font-size: var(--size-title);
}

.content-about p{
  margin-bottom: 1rem;
  line-height: 1.6;
  text-align: justify;
}

/*=============SUCCESS=============*/

.success{
  background: var(--base-color);
}

.content-success{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  padding: 2rem 0 2rem 0;
}

.content-success div{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}

.content-success div h3{
  text-align: center;
  font-size: 2rem;
}

.content-success div span{
  max-width: 100px;
  font-size: 1.125rem;
  text-align: center;
  color: var(--black-color);
  font-weight: 500;
}

/*=============PROJECTS=============*/

.projects{
  padding-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.projects h3{
 padding-top: .5rem;
}

.project-1, .project-2, .project-3{
  background-size: cover;
  background-position: center;
  height: 250px;

  display: flex;
  justify-content: center;
  align-items: center;

  font-size: 1.5rem;
  font-weight: 600;
  color: var(--black-color);
}

.project-1:hover, .project-2:hover, .project-3:hover{
  transition: .2s;
  opacity: .6;
}

.project-1{
  background-image: url(assets/services/building.webp);
}

.project-2{
  background-image: url(assets/services/infrastructure.webp);
}

.project-3{
  background-image: url(assets/services/plumbing.webp);
}

.project-1:hover::after{
  content: 'Projeto 1';
}

.project-2:hover::after{
  content: 'Projeto 2';
}

.project-3:hover::after{
  content: 'Projeto 2';
}



/*=============CLIENTS=============*/

#clients{
  background: var(--bg-color);

}

#clients .title h2{
 color: var(--black-color);
}

.clients{
  padding-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  place-items: center;
  gap: 2rem;
}

.clients div img{
  width: 100px;
}

.imagem-container {
  position: relative;
  overflow: hidden;
}

.imagem-container img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(100%);
  opacity: .4;
  transition: all .5s ease-in-out;
}

.imagem-container:hover img {
  filter: saturate(100%);
  opacity: 1;
}


/*=============CONTACT=============*/

#map-canvas{
  height: 100%;
  width: 100%;
}

.map{
  padding-top: 2.5rem;
}

.map iframe{
  width: 100%;
  height: 300px;
}

.info h3{
  font-size: 1.5rem;
  padding-bottom: 1rem;
}

.contact-content{
  padding-top: 2.5rem;
  gap: 2rem;
  display: flex;
  flex-direction: column;
}

.content-input{
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.content-input button{
  border: 0;
  border-radius: 4px;
  padding: .5rem 2rem;
  cursor: pointer;
  background: var(--base-color);
  max-width: min-content;
  transition: .2s;
}

.content-input button:hover{
  background: #ffb004e1;
}

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

.input input, textarea{
  border-radius: 4px;
  font-size: 1rem;
  padding: .5rem;
  color: var(--black-color);
  border: 1px solid var(--black-color);

  outline: none;
}

input::placeholder, textarea::placeholder{
  font-size: 0.875rem;
}

.input input:focus, textarea:focus{
  border: 1px solid var(--base-color);
}

.location{
  z-index: 3;
  left: 0px;
  top: 0px;
  height: 100%;
  width: 100%;
  padding: 0px;
  border-width: 0px;
  margin: 0px;
}

.budget span{
  font-weight: bold;
  font-size: 1.5rem;
}

.budget .divider-title{
  margin-bottom: 1rem;
}

.matrix div{
  display: flex;
  flex-direction: column;
}


.more-information{
  display: flex; 
  flex-direction: column;
  gap: 2rem;
}

.more-information h3{
  padding-bottom: 1rem;
  font-size: 1.5rem;
}

.more-information span{
  color: #09090B;
}

.more-information a{
  color: #09090B;
}

/*=======FOOTER=========*/

footer{
  background: var(--black-color);
}

.content{
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding-bottom: 2.5rem;
}

.contacts, 
.address, 
.links{
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact .address div, span, a {
  font-size: 0.875rem;
  color: var(--whith-color);
}

.contact{
  display: flex;
  align-items: center;
  gap: .5rem;
}


.links h2{
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--whith-color);
}

.address h2{
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--whith-color);
}

.links > .grid{
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.address > .grid{
  gap: 1rem;
} 

.copyright{
  border-top: 1px solid #18181B;
  display: flex;
  justify-content: space-between;
  padding-top: 2.5rem;
}

.copyright div img {
  padding-left: .5rem;
  cursor: pointer;
}


/*==========BACK-TO-TOP===========*/

.back-to-top{
  background:var(--base-color);
  color: var(--black-color);

  position: fixed;
  right: 1rem;
  bottom: 1rem;

  padding: 0.5rem;
  clip-path: circle();

  font-size: 1.2rem;
  line-height: 0;

  visibility: hidden;
  opacity: 0;

  transition: 0.3s;
  transform: translateY(100%);
}

.back-to-top.show{
  visibility: visible;
  opacity: 1;

  transform: translateY(0);
}

/*=======ANIMAÇÕES=========*/

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }

  100%{
    transform: translateY(0px);
  }
}

/*=======RESPONSIVIDADE=========*/

@media (min-width: 768px) { 

  /*Layuout*/
  .container{
    max-width: 700px;
    margin: 0 auto;
  }

  .section{
    padding: 5rem 0 8.75rem 0;
  }

  .title h2{
    font-size: 3rem;
  }

  /*Hero*/
  .hero{
    display: flex;
    align-items: center;
    background: 
    linear-gradient(0deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.65) 100%), 
    url(assets/hero.webp), 
    lightgray 50% / cover no-repeat;
    background-position: center;
    background-size: cover;
  }

  .content-hero h1{
    font-size: 3rem;
    font-weight: 500;
    text-align: center;
    max-width: 40rem;
  }

  /*Services*/
  .cards{
    padding-top: 2.5rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .content-success{
    display: flex;
    justify-content: space-around;
    padding: 2rem 0 2rem 0;
  }

  .content-success div h3{
    font-size: 2.5rem;
  }

  .projects{
    padding-top: 2.5rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  } 

  /*Clients*/
  .clients{
    padding-top: 2.5rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
  }

  .clients div img{
    width: auto;
  }

  /*Footer*/
  .map{
    max-width: 700px;
    margin: 0 auto;
  }

  .map iframe{
    height: 400px;
  }

  .contact-content{
    padding-top: 3rem;
    justify-content: space-between;
  }

  /*Footer*/
  .content{
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    gap: 3rem;
    padding-bottom: 2.5rem;
  }
  
}

@media (min-width: 1000px) { 

  /*Layuout*/
  .container{
    max-width: 1024px;
    margin: 0 auto;
  }

  .title h2{
    font-size: 3.75rem;
  }

  /*Navegation*/
  nav .menu{
    opacity: 1;
    visibility: visible;
    z-index: 1;
  }

  nav .menu ul{
    display: flex;
    gap: 2rem;
  }

  nav .menu ul li a.links-nav{
    color: var(--bg-color);
    font-size: 1rem;
    transition: 0.2s;
  }

  nav .menu ul li a.links-nav:hover{ 
    color: var(--base-color);
  }

  nav .list{
    display: none;
  }

  /*Hero*/
  .hero{
    height: 100vh;
  }

  .content-hero h1{
    font-size: 3.75rem;
  }

  /*About*/
  #about img{
    object-fit: cover;
    height: auto;
    width: 50%;
  }

  #about{
    padding-bottom: 0;
  }

  .title-about h2{
    font-size: 3.625rem;
  }

  .content-about p{
    max-width: 27rem;
  }

  #about .container{
    margin-left: auto;
  }

  .desktop{
    display: flex;
    gap: 2rem;
    flex-direction: row-reverse;
  }

  .content-success div h3{
    font-size: 3.75rem;
  }

  .clients div img{
    width: auto;
  }

   /*Clients*/
   .clients{
    padding-top: 2.5rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4rem;
  }

  .clients div img{
    width: auto;
  }

  /*Projects*/
  .projects{
    padding-top: 2.5rem;
    display: flex;
    justify-content: center;
    flex-direction: row;
    gap: 1.5rem;
  } 

  .project-1, .project-2, .project-3{
    width: 350px;
    height: 350px;

    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 1.5rem;
    font-weight: 600;
    color: var(--black-color);
  } 

  /*Contact*/
  .map{
    max-width: 1024px;
  }

  .contact-content{
    flex-direction: row;
  }

  /*Footer*/
  .links .grid{
    display: flex;
    flex-direction: column;
  }
}