/*=== GERAL =======================*/

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

:root {
  --primary-color: hsl(233, 82%, 34%);
  --secondary-color: hsl(232, 64%, 15%);

  --blue-smoth-grey: hsl(225, 67%, 96%);
  /*--blue-smoth-grey: hsl(231, 20%, 82%);*/
  --backgroun-color: hsl(0, 0%, 100%);
  /*--backgroun-color: hsl(249, 21%, 83%);*/
  --blue-dark-gray: hsl(233, 10%, 49%);
  --white: hsl(180, 100%, 97%);

  font-size: 62.5%; /* 1rem = 10 pix */

  --nav-height: 7.2rem;
}

html {
  scroll-behavior: smooth;
}

/*Deixar a Largura do HTML em 100%*/
html,
body {
  width: 100%;
  height: 100%;
}

/*Define a fonte usada no index HTML inteiro*/
body {
  font-family: 'DM Sans';
  font-size: 1.6rem;

  text-align: center;

  overflow: overlay;
  background-color: var(--backgroun-color);
}

.wrapper {
  width: min(50rem, 100%);
  margin-inline: auto;
  padding-inline: 2.4rem;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
}

section {
  padding-block: 10rem;
}

section header h4 {
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 150%;
  letter-spacing: 0.08rem;
  color: var(--primary-color);

  text-transform: uppercase;

  margin-bottom: 1.6rem;
}

section header h2 {
  font-size: 3rem;
  line-height: 3.9rem;

  color: var(--secondary-color);
}

section header h1 {
  font-size: 5rem;
  color: var(--secondary-color);
  line-height: 130%;
  text-transform: uppercase;

  margin-bottom: 0;
}

section header h3 {
  font-size: -1rem;
  color: var(--secondary-color);
  line-height: 100%;
  text-transform: uppercase;

  margin-bottom: 3rem;
}

section .content p {
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 150%;

  color: var(--secondary-color);
}

.button {
  background: var(--primary-color);

  border: none;
  border-radius: 4rem;

  margin-bottom: 6rem;

  padding: 1.6rem 3.2rem;
  width: fit-content;

  color: var(--white);
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;

  text-decoration: none;

  transition: background 200ms;
}

.button:hover {
  background-color: var(--secondary-color);
}

.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3.2rem;
}

/* Custom colors */
#services .card circle {
  fill: var(--blue-smoth-grey);
}
#navegacao .logo path[fill*='#00856F'],
#backToTopButton circle {
  fill: var(--primary-color);
}

button.open-menu path[stroke*='#00856F'],
#contact li path {
  stroke: var(--primary-color);
}

body.menu-expanded #navegacao .logo path,
#navegacao.scroll .logo path {
  fill: white;
}

#navegacao.scroll button.open-menu path[stroke*='#00856F'] {
  stroke: white;
}

/*=== navegacao =========================*/

nav {
  display: flex;

  height: var(--nav-height);

  position: fixed;
  top: 0;
  width: 100vw;

  z-index: 100;
}

nav .wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav.scroll {
  background: var(--primary-color);
}

nav button {
  background: none;
  border: none;
  cursor: pointer;
}

nav .menu,
nav .close-menu {
  position: fixed;
}

nav .wrapper img {
  width: 12rem;
  display: block;
  margin-inline: auto;
}

/*=== MENU EXPENDED=========================*/
body.menu-expanded {
  overflow: hidden;
}

body.menu-expanded > :not(nav) {
  visibility: hidden;
}

.menu,
.close-menu,
body.menu-expanded .open-menu {
  opacity: 0;
  visibility: hidden;
}

body.menu-expanded .menu,
body.menu-expanded .close-menu {
  opacity: 1;
  visibility: visible;
}

.menu {
  transform: translateY(100%);
}

body.menu-expanded .menu {
  top: 0;
  left: 0;
  background: var(--primary-color);

  width: 100vw;
  height: 100vh;

  padding-top: var(--nav-height);

  transition: transform 300ms;
  transform: translateY(0);
}

.menu ul:nth-child(1) {
  display: flex;
  flex-direction: column;
  gap: 4.8rem;

  margin-top: 6rem;

  font-weight: 700;
  font-size: 2.4rem;
  line-height: 3.1rem;
}

.menu ul li a {
  color: white;
  text-decoration: none;
}

.menu .button {
  background: white;
  border-radius: 4rem;
  font-weight: 700;
  font-size: 1.8rem;
  line-height: 2.3rem;
  text-transform: uppercase;
  text-decoration: none;

  color: var(--primary-color);

  display: inline-block;
  padding: 16px 32px;

  margin-top: 4.8rem;
  margin-bottom: 8rem;
}

.menu .button:hover {
  background-color: var(--primary-color);
  color: white;

  filter: brightness(1.3);
}

body.menu-expanded .logo,
body.menu-expanded button {
  position: relative;
  z-index: 100;
}

body.menu-expanded .logo path {
  fill: white;
}

body.menu-expanded button path {
  stroke: white;
}

/*=== Home =========================*/

#home {
  padding-block: 0;
  padding-top: calc(4.1rem + var(--nav-height));
}

#home::before {
  content: '';
  width: 100%;
  height: calc(76% + var(--nav-height));
  background-color: var(--backgroun-color);
  display: block;

  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}

#home .button {
  margin-inline: auto;
}

#home p {
  font-size: 1.8rem;
  line-height: 150%;
  font-weight: 400;
  color: var(--secondary-color);

  margin-bottom: 3.2rem;
}

#home img {
  width: 20rem;
  display: block;
  margin-inline: auto;
  object-position: 0 2rem;
}

#home .stats {
  width: 100%;
  padding-block: 4rem;
  margin-inline: auto;

  background-color: var(--blue-smoth-grey);
  border: 1px solid var(--secondary-color);
  border-radius: 01.6rem;

  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6rem;
}

#home .stat h3 {
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--secondary-color);
  line-height: 130%;
  margin: 0 3rem;
}

/*#home .stat p {
margin: 0;
color: var(--primary-color);
font-size: 1.6rem;
line-height: 150%;
}*/

/*=== Services =========================*/
#services header h4 {
  margin-bottom: 7rem;
}

#services header h2 {
  margin-bottom: 6rem;
}

#services .cards {
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

#services .card {
  padding-top: 3rem;
  padding-bottom: 2rem;
  text-align: center;

  background: var(--blue-smoth-grey);

  border: 1px solid var(--secondary-color);
  border-radius: 0.6rem;
}

#services .card img {
  width: 5rem;
  position: absolute;
  top: 0%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#services .card h3 {
  margin-block: 1.6rem;
  text-align: center;
  color: var(--secondary-color);
}

/*=== About =========================*/
#about {
  text-align: left;
  background-color: var(--blue-smoth-grey);
}

#about header h2 {
  margin-bottom: 2.4rem;
}

#about .content p {
  margin-top: 2.4rem;
  margin-bottom: 6rem;
}

#about img {
  border-radius: 1.5rem;
  width: 40rem;
  display: block;
  margin: auto;
}



#about .content a {
  font-size: 1.5rem;
  text-decoration: none;
  color: var(--secondary-color);
}

#about .content a:hover {
  color: var(--primary-color);
}

/*=== Contact =========================*/
#contact {
  text-align: left;
}

#contact header {
  margin-bottom: 3.2rem;
}

#contact ul {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;

  margin-bottom: 3.2rem;
}

#contact ul li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

#contact .map{
  display: flex;
  }

/*=== Footer =========================*/

footer {
  background-color: var(--primary-color);
  padding-block: 6rem;

  text-align: left;

  color: white;
}

footer .logo {
  display: inline-block;
  margin-bottom: 2.4rem;
}

footer .logo svg {
  width: 23.6rem;
  height: 3.1rem;
}

footer .logo path {
  fill: white;
}

footer p {
  color: var(--blue-smoth-grey);
  line-height: 2;

  padding-bottom: 3.2rem;
}

footer .social-links {
  justify-content: flex-start;
}
footer h2 {
  color: black;
  text-decoration: none;
}


/* BACK TO TOP */
#backToTopButton {
  position: fixed;
  bottom: 1rem;
  right: 2.5rem;

  opacity: 0;
  visibility: hidden;

  transform: translateY(100%);
  transition: 200ms;
}

#backToTopButton svg {
  border: solid 0.1rem white;
  border-radius: 50% ;
  
}

#backToTopButton.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/*=== RESPONSIVO =========================*/
@media (min-width: 1024px) {
  /*=== GERAL =========================*/
  body {
    overflow: auto;
  }

  .wrapper {
    width: min(120rem, 100%);
    display: grid;
  }

  .col-a {
    grid-area: A;
  }

  .col-b {
    grid-area: B;
  }

  section {
    padding-block: 16rem;
  }

  section header h2 {
    font-size: 4rem;
    line-height: 5.2rem;
  }

  /*=== navegacao =========================*/
  /* reset */
  nav#navegacao .wrapper * {
    margin: 0;
    padding: 0;
    visibility: initial;
    display: initial;
    opacity: initial;
    flex-direction: initial;
    position: initial;
    font-size: initial;
    transform: initial;
    color: initial;
    background-color: initial;
    font-weight: initial;
    filter: initial;
  }

  nav#navegacao .close-menu,
  nav#navegacao .open-menu,
  nav#navegacao .social-links {
    display: none;
  }

  nav#navegacao .menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 60%;
  }

  nav#navegacao .menu ul:nth-child(1) {
    display: flex;
    gap: 3.2rem;
  }

  nav#navegacao .menu ul li a {
    color: var(--primary-color);
    opacity: 0.7;
  }

  nav#navegacao .menu a.button {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 2.4rem;

    border: 1px solid var(--primary-color);
    border-radius: 4rem;

    color: var(--primary-color);

    font-weight: 700;
    font-size: 1.4rem;
    line-height: 1.8rem;
    text-transform: uppercase;
  }

  nav#navegacao.scroll .menu ul li a {
    color: var(--white);
    opacity: 0.6;
  }

  nav#navegacao .menu a.button:hover {
    background-color: var(--primary-color);
    border: none;
    color: white;
  }

  nav#navegacao.scroll .menu a.button {
    border-color: white;
    color: white;
  }

  nav#navegacao .menu li a {
    transition: opacity 0.4s;
  }

  nav#navegacao .menu li a:hover {
    opacity: 1;
    font-weight: 700;
  }

  nav#navegacao .menu li a::after {
    content: '';
    width: 0%;
    height: 2px;
    background-color: var(--primary-color);

    position: relative;
    bottom: -1.9rem;
    left: -0.5rem;

    display: block;

    transition: width 0.2s;
  }

  nav#navegacao.scroll .menu li a::after {
    background-color: white;
  }

  nav#navegacao .menu li a.active::after,
  nav#navegacao .menu li a:hover::after {
    padding-inline: 0.8rem;
    width: 100%;
  }

  nav#navegacao.scroll .menu li a:active,
  nav#navegacao.scroll .menu li a:hover {
    opacity: 1;
  }

  nav#navegacao.scroll .menu a.button.active,
  nav#navegacao.scroll .menu a.button:hover {
    background-color: var(--primary-color);
    filter: brightness(1.3);
    border: none;
  }

  /*=== HOME =========================*/
  #home::before {
    height: calc(96% - var(--nav-height));
  }

  #home {
    padding-top: var(--nav-height);
  }

  #home .wrapper {
    grid-template-columns: 60.5rem 1fr;
    grid-template-areas:
      'A B'
      'C C';
  }

  #home .col-a {
    text-align: left;
    align-self: center;
  }

  #home h1 {
    font-size: 5.2rem;
  }

  #home .content p {
    font-size: 1.8rem;
  }

  #home .stats {
    grid-area: C;

    flex-direction: row;
    padding: 6rem 0.5rem;
    gap: 0;
  }

  #home .stats .stat + .stat {
    border-left: 1px solid var(--primary-color);
  }

  #home .stats .stat {
    flex: 1;
  }

  #home .button {
    margin: 0;
  }

  #home img {
    width: 25rem;
    margin-right: 5rem;
  }

  /*=== Services =========================*/
  #services h2 {
    width: 47rem;
    margin-inline: auto;
  }

  #services .cards {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4rem;
  }

  #services .card {
    width: 30%;
    flex-grow: 1;
  }

  /*=== ABOUT =========================*/
  #about .wrapper {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: 'B A';
    gap: 6.7rem;
  }

  #about .col-a {
    align-self: center;
  }

  #about .content p {
    margin-bottom: 0;
  }

  /*=== CONTACT =========================*/
  #contact .wrapper {
    grid-template-columns: 1fr 57.5rem;
    grid-template-areas: 'A B';
  }

  #contact h2 {
    width: 40.4rem;
  }

  /*=== FOOTER =========================*/
  footer {
    padding-block: 8rem;
  }

  footer .wrapper {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: 'A B';
  }

  footer .col-a {
    align-self: center;
  }

  footer .col-b {
    align-self: center;
    justify-self: flex-end;
  }

  footer p {
    margin-bottom: 0;
  }
  .sobrenos{
    margin-top: 50px;
  }
}

/* Formatação rodapé CodesDevs */
#cd_rodape {
  background-color: black;
  text-align: center;
  color: white;
  text-decoration: none;
}
#cd_rodape a {
  color: white;
  text-decoration: none;
}

#cd_rodape a:hover {
  color: blue;
}
