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

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  width: 100%;
  height: auto;
}

/*====  VARIABLES ============================ */
:root {
  --header-height: 4.5rem;

  --primaria: #059669;
  --secundaria: #10b981;
  --terciaria: #a7f3d0;
  --detalhes: #064e3b;
  --fundo-1: #f9f9f9;
  --fundo-2: #ffffff;

  --tamanho-fonte-titulo: 3rem;
  --tamanho-fonte-subtitulo: 1rem;

  --fonte: "Nunito", sans-serif;
}

/*===  BASE ============================ */
html {
  scroll-behavior: smooth;
}

body {
  font: 400 1rem var(--fonte);
  background: var(--fundo-1);
  -webkit-font-smoothing: antialiased;
}

.title {
  font: 700 var(--tamanho-fonte-titulo) var(--fonte);
  -webkit-font-smoothing: auto;
}

.button {
  background-color: var(--primaria);
  color: #ffffff;
  height: 3.5rem;
  align-items: center;
  padding: 0 2rem;
  border-radius: 8px;
  font: 500 1rem var(--fonte);
  transition: background 0.3s;

  display: none;
  visibility: hidden;
}

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

/*====  LAYOUT ============================ */
.container {
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}

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

.section {
  padding: calc(5rem + var(--header-height)) 0;
}

.section .title {
  margin-bottom: 1rem;
}

.section .subtitle {
  font-size: var(--tamanho-fonte-subtitulo);
}

#header {
  border-bottom: 1px solid #e4e4e4;
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  background-color: var(--fundo-2);
  width: 100%;
}

#header.scroll {
  box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.15);
}

/*====  LOGO ============================ */
.logo {
  display: flex;
  align-items: center;
  font: 700 1.31rem var(--fonte);
  color: var(--primaria);
}

.logo span {
  color: var(--terciaria);
}

.logo img {
  max-width: 32px;
  margin: 0.5rem;
}

/*====  NAVIGATION ============================ */
nav {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

nav ul li {
  text-align: center;
}

.title-menu {
  font: 700 1.2rem var(--fonte);
  color: var(--detalhes);
  transition: color 0.2s;
  position: relative;
}

.title-menu:hover,
.title-menu.active {
  color: var(--secundaria);
}

nav ul li a::after {
  content: "";
  width: 0%;
  height: 2px;
  background: var(--secundaria);
  position: absolute;
  left: 0;
  bottom: -1rem;
  transition: width 0.2s;
}

nav ul li a:hover::after,
nav ul li a.active::after {
  width: 100%;
}

nav .menu {
  opacity: 0;
  visibility: hidden;
  top: -20rem;
  transition: 0.2s;
}

nav .menu ul {
  display: none;
}

/* Mostrar menu mobile */
nav.show .menu {
  opacity: 1;
  visibility: visible;
  background: var(--fundo-1);
  color: var(--primaria);
  height: 100vh;
  width: 100vw;
  position: fixed;
  top: 0;
  left: 0;
  display: grid;
  place-content: center;
}

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

nav.show ul.grid {
  gap: 4rem;
}

/* toggle menu */
.toggle {
  color: var(--primaria);
  font-size: 1.5rem;
  cursor: pointer;
}

nav .icon-close {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: -1.5rem;
  right: 1.5rem;
  transition: 0.2s;
  color: var(--primaria);
  font-size: 1.5rem;
  cursor: pointer;
}

nav.show div.icon-close {
  visibility: visible;
  opacity: 1;
  top: 1.5rem;
}

/*====  SECTION INÍCIO ============================ */
#inicio {
  color: var(--primaria);
  padding: calc(var(--header-height) + 1.5rem) 0 2rem 0;
  background: var(--fundo-2);
  position: relative;
  overflow: hidden;
  min-height: 700px;
}

#inicio .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  position: relative;
}

#inicio .title {
  font-size: var(--tamanho-fonte-titulo);
  line-height: 1.15;
  max-width: 290px;
  margin-bottom: 0;
  position: relative;
  z-index: 3;
}

/* Container das imagens */
#inicio .icone {
  position: absolute;
  width: 485px;
  height: 488px;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 230px;
  right: -4.8rem;
  z-index: 1;
}

/* Splash de tinta */
#inicio .icone img:nth-child(1) {
  width: 100%;
  height: auto;
  z-index: 1;
}

/* Símbolo de Reciclagem */
#inicio .icone img:nth-child(2) {
  position: absolute;
  width: 45%;
  height: auto;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/*====  SECTION QUEM SOMOS ============================ */
#sobre {
  background: white;
}

#sobre .title {
  color: var(--primaria);
}

#sobre .container {
  margin: 0;
}

#sobre .image {
  position: relative;
}

#sobre .image::before {
  content: "";
  height: 100%;
  width: 100%;
  background: var(--primaria);
  position: absolute;
  top: -8.3%;
  left: -33%;
  z-index: 0;
}

#sobre .image img {
  position: relative;
}

#sobre .image img,
#sobre .image::before {
  border-radius: 0.25rem;
}

#sobre .text {
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}

/*====  SECTION SOBRE O PROJETO ============================ */
#projeto {
  color: var(--primaria);
  background-color: var(--fundo-1);
}

#projeto header {
  text-align: center;
  margin-bottom: 2rem;
}

#projeto header .title {
  font-size: 2.25rem;
  white-space: nowrap;
}

#projeto header .subtitle {
  margin-top: 1rem;
  color: var(--detalhes);
  line-height: 1.5;
  text-align: left;
}

.card {
  background: var(--fundo-2);
  padding: 3.625rem 2rem;
  box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.08);
  border-bottom: 0.25rem solid var(--terciaria);
  border-radius: 0.25rem 0.25rem 0 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card img {
  width: 5rem;
  height: 5rem;
  object-fit: contain;
  margin-bottom: 1.5rem;
}

.card .title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--primaria);
}

.card p {
  color: #555555;
  line-height: 1.4;
}

.cards.grid {
  gap: 1.5rem;
}

/*====  SECTION CONHECER O PROJETO ============================ */
#conhecerprojeto {
  background-color: var(--fundo-2);
  text-align: center;
}

#conhecerprojeto .title {
  color: var(--primaria);
  font-size: 1.5rem;
  white-space: nowrap;
  margin-bottom: 1.5rem;
}

#conhecerprojeto img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

#conhecerprojeto .button {
  display: inline-flex;
  visibility: visible;
  opacity: 1;
  margin: 0 auto;
  justify-content: center;
}

/*====  RODAPÉ ============================ */
footer {
  background-color: var(--secundaria);
  min-height: 294px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 1.5rem;
}

footer .logo {
  display: flex;
  align-items: center;
  color: var(--fundo-2);
}

footer .logo img {
  max-width: 32px;
  margin: 0.5rem;
}

footer .logo span {
  color: var(--detalhes);
}

footer .copyright {
  font-size: 0.875rem;
  color: var(--detalhes);
  font-weight: 500;
  text-align: center;
}

/* Voltar ao topo */
.voltar-ao-topo {
  background: var(--detalhes);
  color: #ffffff;
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  padding: 0.5rem;
  clip-path: circle();
  font-size: 1.5rem;
  line-height: 0;
  visibility: hidden;
  opacity: 0;
  transition: 0.3s;
  transform: translateY(100%);
}

.voltar-ao-topo.show {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

/*============== MEDIA QUERIES =============================*/

@media (min-width: 992px) {
  :root {
    --tamanho-fonte-titulo: 3.75rem;
    --tamanho-fonte-subtitulo: 1.125rem;
  }
}

@media (min-width: 700px) {
  .container {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
  }

  .section {
    padding: 10rem 0;
  }

  #header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  #header .button {
    display: inline-flex;
    visibility: visible;
    height: 3.125rem;
    align-items: center;
  }

  nav .menu {
    opacity: 1;
    visibility: visible;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: auto;
  }

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

  nav .menu ul li a.title-menu {
    font: 400 1rem var(--fonte);
    -webkit-font-smoothing: antialiased;
  }

  nav .menu ul li a.title-menu.active {
    font-weight: 700;
    color: var(--secundaria);
    -webkit-font-smoothing: auto;
  }

  nav .icon-menu,
  nav .icon-close {
    display: none !important;
  }

  main {
    margin-top: var(--header-height);
  }

  #inicio .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    min-height: 500px;
  }

  #inicio .title {
    max-width: 100%;
  }

  #inicio .icone {
    position: relative;
    top: auto;
    right: auto;
    margin-left: auto;
  }

  /* Sobre */
  #sobre .container {
    margin: 0 auto;
    grid-auto-flow: column;
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  #sobre p {
    text-align: left;
  }

  #projeto header {
    max-width: 46rem;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  #projeto header .subtitle {
    text-align: center;
  }

  .cards {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .card {
    padding-left: 3rem;
    padding-right: 3rem;
  }
  
 #quiz h3 {
    margin-bottom: 2.7rem;
  }

  #conhecerprojeto .title {
    font-size: 3rem;
  }

  #conhecerprojeto img {
    margin-bottom: 1rem;
  }
}
