/*==== GERAL ==============================*/
* {
  margin: 0%;
  padding: 0%;
  box-sizing: border-box;
}

:root {
  --hue: 30;
  --nav-color: hsl(43, 99%, 58%);
  --primary-color: hsl(var(--hue), 100%, 26%);
  --headline: hsl(210, 11%, 15%);
  --paragraph: hsl(210, 9%, 31%);

  --brand-beige: hsl(39, 100%, 97%);
  --brand-light: hsl(var(--hue), 23%, 89%);
  --brand-light-2: hsl(calc(var(--hue) + 10), 14%, 97%);
  --brand-dark: hsl(var(--hue), 100%, 14%);

  --nav-heigth: 7.2rem;

  font-size: 62.5%; /* 1rem = 10px */

  --bg-ligth: hsl(180, 14%, 97%);
}

html {
  /* chrome://flags/#smooth-scrolling */
  scroll-behavior: smooth;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  font-family: 'DM Sans';
  font-size: 1.6rem; /* 1rem = 10px */

  text-align: center;

  overflow: overlay;

  background-color: var(--bg-ligth);
}

.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.4rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 150%;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
}

section header h2 {
  font-size: 3rem;
  line-height: 3.9rem;
  color: var(--headline);
}

section header h1 {
  font-size: 3.4rem;
  color: var(--headline);
  line-height: 130%;
  margin-bottom: 2.4rem;
}

section .content p {
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  color: var(--paragraph);
}

.button {
  background: var(--primary-color);

  border: none;
  border-radius: 4rem;

  margin-bottom: 6rem;

  padding: 1.6rem 3.2rem;
  width: fit-content;

  color: white;
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;

  display: flex;
  align-items: center; /*alinha os itens*/
  justify-content: center; /*centraliza os itens*/
  gap: 1.6rem; /*espaço entre itens*/

  text-decoration: none;
  transition: background 200ms;
}

.button:hover {
  background-color: var(--brand-dark);
}

.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3.2rem;
}

/*==== CUSTOM COLORS  ================================*/

#benefits .card circle {
  fill: var(--brand-light);
}

#backToTopButton circle {
  fill: var(--primary-color);
}

button.open-menu path[stroke*='#00856F'],
#contact li path {
  stroke: var(--primary-color);
}

/*==== NAVIGATION ================================*/
nav img {
  width: 30rem;
  display: block;
  margin-inline: auto;
  object-position:-1.3rem ;
}

nav {
  display: flex;

  height: var(--nav-heigth);

  position: fixed;
  top: 0;
  width: 100vw;

  z-index: 100;
}

nav .wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav.scroll {
  background: var(--nav-color);
}

nav button {
  background: none;
  border: none;
  cursor: pointer;
}

/*==== MENU-EXPANDED ================================*/

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-heigth);

  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: 1.6rem 3.2rem;

  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 button path {
  stroke: white;
}

nav .menu,
nav .close-menu {
  position: fixed;
}


/*==== HOME ================================*/

#home .button {
  margin-inline: auto;
  margin-bottom: 0;
}

#home {
  padding-block: 0;
  padding-top: calc(4.1rem + var(--nav-heigth));
}

#home:before {
  content: '';
  width: 100%;
  height: calc(77% + var(--nav-heigth));
  background-color: var(--brand-light);
  display: block;

  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}

#home p {
  font-size: 1.8rem;
  line-height: 150%;
  font-weight: 400;
  color: var(--paragraph);

  margin-bottom: 3.2rem;
}

#home img {
  width: 50rem;
  display: block;
  margin-inline: auto;
  margin-top: 0;
  padding-top: 0;
  object-position: 0 6.5rem;
}

#home .stats {
  width: 85%;
  padding-block: 4rem;
  margin-inline: auto;

  background-color: var(--brand-beige);
  border: 0.1rem solid var(--brand-light);
  border-radius: 0.6rem;

  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6rem;
}

#home .stat h3 {
  font-size: 4.8rem;
  color: var(--headline);
  line-height: 130%;

  margin-bottom: 0.4rem;
}

#home .stat p {
  margin: 0;
  color: var(--primary-color);
  font-size: 1.6rem;
  line-height: 150%;
}

/*==== PRODUCTS ================================*/

#products {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

#products header h2 {
  margin-bottom: 6;
}

#products .cards {
  display: flex;
  flex-direction: column;
  gap: 3.2rem;
}

.card {
  padding: 2.4rem;
  text-align: left;

  background: white;

  border: 1px solid var(--brand-light);

  border-radius: 0.6rem;
}

#products .card h3 {
  margin-block: 1.6rem;
}

/*==== BENEFITS ================================*/

#benefits {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

#benefits header h2 {
  margin-bottom: 6;
}

#benefits .cards {
  display: flex;
  flex-direction: column;
  gap: 3.2rem;
}

.card {
  padding: 2.4rem;
  text-align: left;

  background: white;

  border: 1px solid var(--brand-light);

  border-radius: 0.6rem;
}

#benefits .card h3 {
  margin-block: 1.6rem;
}

/*==== ABOUT ================================*/

#about {
  text-align: left;
}

#about header h2 {
  margin-bottom: 2.4rem;
}

#about p {
  margin-block: 2.4rem 6rem;
}

#about .wrapper {
  padding-block: 3rem;
  background-color: var(--brand-beige);
}

#about .wrapper h2:nth-child(1){
  padding-top: 3rem;
}

/*==== CONTACT ================================*/

#contact {
  padding-top: var(--nav-heigth);
  text-align: left;
}

#contact h2 {
  margin-bottom: 3.2rem;
}

#contact ul {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  margin-bottom: 3.2rem;
}

#contact ul:nth-child(2) {
  display: flex;
  flex-direction: row;
  gap: 3rem;
  margin-bottom: 3.2rem;
  justify-content: left;
}

#contact ul li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

/*==== FOOTER================================*/

footer {
  background-color: var(--primary-color);

  padding:1rem;
}

footer .wrapper {
  text-align: left;
}


footer img {
  display: block;
  object-position: -2.8rem;
  
  margin-bottom: 0;
}

footer p {
  color: var(--brand-beige);
  line-height: 2;
  margin-bottom: 1rem;
}

footer .social-links {
  margin-top: 3.2rem;
  justify-content: flex-start;
}

/*==== BACK TO HOME ================================*/

#backToTopButton {
  position: fixed;
  bottom: 1rem;
  right: 2.5rem;

  opacity: 0;
  visibility: hidden;

  transform: translateY(100%);
  transition: 200ms;
}

#backToTopButton.show {
  opacity: 1;
  visibility: visible;

  transform: translateY(0);
}

/*==== RESPONSIVE ================================*/
@media (min-width: 1024px){
  

/*==== GERAL ================================*/
  body {
    overflow: auto;
  }

  .wrapper {
    width: min(104.4rem, 100%);
    display: grid;
  }

  section {
    padding-block: 16rem;
  }

  section h2 {
    font-size: 4rem;
    line-height: 5.2rem;
  }
  

/*==== RESET================================*/
  nav#navigation .wrapper * {
    margin: 0;
    padding: 0;
    visibility: initial;
    display: initial;
    opacity: initial;
    flex-direction: initial;
    position: initial;
    font-size: initial;
    font-weight: initial;
    transform: initial;
    color: initial;
    background-color: initial;
    filter: initial;
 }

 /*==== NAVIGATION ================================*/

 nav#navigation img {
   width: 35rem;
   object-position: -3.5rem;
 }

 nav#navigation .close-menu,
 nav#navigation .open-menu,
 nav#navigation .social-links {
   display: none;
 }

 nav#navigation .menu {
   display: flex;
   align-items: center;
   justify-content: space-between;
   width: 60%;
 }

 nav#navigation .menu ul:nth-child(1) {
   display: flex;
   gap: 3.2rem;
 }

 nav#navigation .menu ul li a {
   color: var(--primary-color);
   opacity: 0.7;
 }

 nav#navigation .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#navigation.scroll .menu ul li a {
   color: var(--primary-color);
   
 }

 nav#navigation.scroll .menu a.button {
   color: white;
   border-color: white;
 }

 nav#navigation .menu ul li a {
   transition: opacity 0.4s;
 }

 nav#navigation .menu ul li a:hover {
   opacity: 1;
   font-weight: 700;
 }

 nav#navigation .menu ul li a::after {
   content: '';
   width: 0;
   height: 2px;
   background-color: var(--primary-color);
   
   position: relative;
   bottom: -2rem;
   left: -1rem;
   

   display: block;

   transition:  0.2s;
 }



 nav#navigation .menu ul li a:hover::after {
   padding-inline: 1rem; 
   width: 100%;
 }

 nav#navigation .menu li a:hover {
   opacity: 1;
 }

 nav#navigation.scroll .menu a.button:hover {
   background-color: var(--primary-color);
   filter: brightness(1.3);
   border: none;
  }

  nav#navigation .menu a.button:hover {
    background-color: var(--primary-color);
    color: var(--brand-light-2);
  }

   /*==== NAVIGATION ================================*/
  #home::before {
    height: calc(96% - var(--nav-heigth));
  }

   #home {
     padding-top: var(--nav-heigth);
   }

   #home .wrapper {
     grid-template-columns: 60.5rem 1fr;
     grid-template-areas:
     'A B'
     'C C';
   }

   #home .col-a {
     grid-area: A ;
     text-align: left;
     align-self: center;
   }

   #home .col-b {
    grid-area: B ;
   }

   #home h1 {
     font-size: 5.2rem;
   }

   #home .content p {
     font-size: 1.8rem;
   }

   #home .stats {
     grid-area: C ;

     flex-direction: row;
     padding: 6rem;

     gap: 0;
   }

   #home .stats .stat + .stat {
     padding-inline: 2rem;
     border-left: 1px solid var(--primary-color);
   }

   #home .stats .stat {
     flex: 1;
   }

   #home .button {
     margin: 0;
   }

   #home img {
     width: 42rem;
   }

   /*==== PRODUCTS ================================*/

   #products h2 {
    width: 47rem;
    margin-inline: auto;
    margin-bottom: 2rem;
  }

  #products .cards {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4rem;
  }

  #products .card {
    width: 30%;
    flex-grow: 1;
  }

   /*==== BENEFITS ================================*/

   #benefits h2 {
     width: 47rem;
     margin-inline: auto;
     margin-bottom: 2rem;
   }

   #benefits .cards {
     flex-direction: row;
     flex-wrap: wrap;
     gap: 4rem;
   }

   #benefits .card {
     width: 30%;
     flex-grow: 1;
   }

   /*==== ABOUT ================================*/

   #about {
      padding-bottom: 7rem;
   }

  #about .wrapper {
    padding-block: 2rem;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: 
    'A B'
    'C D';
  }
  #about p{
    margin-block: 2.4rem 6rem;
    font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  color: var(--paragraph);
  }
  #about .col-a {
    grid-area: A;
    align-self: center;
  }

  #about .col-b {
    grid-area: B;
    padding: 2rem 2rem;
    width: 100%;
  }

  #about .col-c {
    grid-area: D;
    align-self: center;
  }

  #about .col-d {
    grid-area: C;
    width: 100%;
    padding: 2rem;
    
  }

  /*==== CONTACT================================*/
  #contact {
    padding-top: calc(var(--nav-heigth) + 2rem);
  }

  #contact .wrapper {
    text-align: center;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: 'A B';
  }

  #contact .col-a {
    grid-area: A;
    align-self: center;
    padding-left: 2rem;
    text-align: left;
  }

  #contact .col-b {
    grid-area: B;
    align-self: top;
    padding-left: 2rem;
    text-align: left;
  }

  #contact .col-b ul {
    display: flex;
  flex-direction: row;
  gap: 5rem;
  margin-bottom: 3.2rem;
  justify-content: left;
  }

    /*==== FOOTER================================*/

  footer {
    padding-bottom: 0;
    justify-content: space-between;
  }

  footer .wrapper {
    text-align: right;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: 'A B';
  }

  footer .col-a {
    grid-area: A;
    align-self: center;
  }

  footer .col-b {
    grid-area: B;
  }
} 
