@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap");

/* GLOBAL COMPONENTS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Open Sans", Roboto, "Helvetica Neue", sans-serif;
}

html,
body {
  font-size: 1rem;
  font-weight: 400;
  scroll-behavior: smooth;
}

/* BOTAO */
.button {
  background-color: #2a6a67;
  color: white;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  transition-duration: 300ms;
  text-align: center;
  max-width: 350px;
}

.button:hover {
  background-color: #ab9765;
}

.hidden {
  display: none !important;
}

/* BARRA DE ROLAGEM */
::-webkit-scrollbar {
  width: 10px; /* Largura da barra de rolagem */
}

/* Track (fundo da barra) */
::-webkit-scrollbar-track {
  background: #f1f1f1; /* Cor do fundo da barra */
}

/* Handle (a parte que se move) */
::-webkit-scrollbar-thumb {
  background: #2a6a67; /* Cor da parte móvel */
}

/* Handle ao passar o mouse por cima */
::-webkit-scrollbar-thumb:hover {
  background: #ab9765; /* Cor da parte móvel ao passar o mouse */
}

/* CABECALHO */
.cabecalho {
  display: block;
  text-align: center;
  margin: 1rem auto;
}
.cabecalho h1 {
  font-size: 1.5rem;
  color: #2a6a67;
}
.cabecalho p {
  font-style: italic;
}

/* HEADER */

nav {
  padding: 10px 10rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8f9fa;
  position: relative;
  height: 80px;
  border-bottom: 1px solid #dfdfdf;
}

.logo {
  color: #000;
}

nav ul {
  display: flex;
  gap: 35px;
  align-items: center;
}

nav ul li {
  list-style-type: none;
}

nav ul li a {
  text-decoration: none;
  color: #1e2a27;
  font-size: 14px;
}

nav ul li a:hover {
  text-decoration: underline;
  color: #ab9765;
}

/*dropdown menu*/
.dropdown-menu {
  display: none;
  position: absolute;
  background-color: #2a6a67;
  box-shadow: 0 0 2px black;
  border-radius: 0 0 5px 5px;
}

.dropdown-menu a {
  font-size: 14px;
  padding: 15px;
  text-align: center;
  display: block;
  color: #fff;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.linha-pequena {
  width: 80px; /* Largura da linha */
  height: 1px; /* Espessura da linha */
  background-color: #ab9765; /* Cor da linha */
  margin: 0 auto; /* Centraliza a linha e adiciona margem */
}
/*fim dropdown menu*/

.menu-icon {
  display: none;
  cursor: pointer;
}

.menu-icon i {
  color: #ab9765;
  font-size: 30px;
}

@media (max-width: 1000px) {
  nav ul {
    position: absolute;
    top: 100px;
    left: 0;
    right: 0;
    flex-direction: column;
    text-align: center;
    background: #fff;
    gap: 0;
    overflow: hidden;
  }
  nav ul li {
    width: 100%;
  }

  nav ul li a {
    display: block; /* Faz o link ocupar toda a área da li */
    padding: 10px 20px; /* Ajusta o tamanho do link */
    text-decoration: none; /* Remove o sublinhado */
    background-color: #f0f0f0; /* Cor de fundo da li */
    color: #333; /* Cor do texto */
  }

  nav ul li a:hover {
    background-color: #ab9765;
    color: #fff;
    text-decoration: none;
  }

  .menu-icon {
    display: block;
  }
  #menuList {
    transition: all 0.5s;
  }
}

/* BODY SECTION */
.hero-section {
  display: flex;
  background-image: url("../images/fundo.png"); /* Caminho da imagem de fundo */
  background-size: cover;
  height: calc(100vh - 120px); /* 100% da altura da tela menos o header */
  align-items: center;
  color: #fff;
}

.content {
  display: flex;
  flex-direction: column;
  margin: 120px;
  width: 400px;
}

.content h1 {
  font-size: 2rem;
}

.body-logo-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.body-logo-text h1 {
  color: #2a6a67;
  font-size: 24px;
}

.body-logo-text h4 {
  font-style: italic;
  font-size: 16px;
  color: #1e2a27;
  font-weight: 400;
}

#cards-services {
  margin: 0 8rem 0 8rem;
}

.cards-group {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  text-align: center;
}

.card-info {
  color: #1e2a27;
  border: 1px solid #ab9765;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 1rem 0.5rem;
  padding: 1.5rem;
  min-width: 150px;
  gap: 10px;
  font-size: 1rem;
  font-weight: 600;
}

.card-info i {
  color: #ab9765;
  font-size: 50px;
}

#cards-button {
  text-align: center;
}

#cards-button a {
  padding: 0.8rem 1rem;
  background-color: #ab9765;
  border-radius: 5px;
}

#cards-button a:hover {
  background-color: #2a6a67;
}

#second-hero-section {
  display: flex;
  height: 400px;
  margin: 2rem 0;
  background-image: url("../images/farmer.png"); /* Caminho da imagem de fundo */
  background-size: cover;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  font-size: 30px;
  text-align: center;
  color: #fff;
}

#second-hero-section a {
  padding: 0.8rem 5rem;
  background-color: #ab9765;
  border-radius: 5px;
}

#second-hero-section a:hover {
  background-color: #2a6a67;
  padding: 0.8rem 7rem;
}

/* CELULARES */
@media (max-width: 500px) {
  nav {
    padding: 20px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fafafa;
    position: relative;
    height: 120px;
  }
  nav ul li {
    width: 100%;
  }

  nav ul li a {
    display: block; /* Faz o link ocupar toda a área da li */
    padding: 10px 20px; /* Ajusta o tamanho do link */
    text-decoration: none; /* Remove o sublinhado */
    background-color: #f0f0f0; /* Cor de fundo da li */
    color: #333; /* Cor do texto */
  }

  nav ul li a:hover {
    background-color: #ab9765;
    color: #fff;
    text-decoration: none;
  }

  .menu-icon {
    display: block;
  }
  #menuList {
    transition: all 0.5s;
  }
  /*dropdown menu*/
  .dropdown:hover .dropdown-menu {
    display: none;
  }

  .hero-section {
    background-image: url("../images/back-mobile.png");
    background-size: cover; /* Cobre toda a área */
    height: 500px; /* Ajuste conforme necessário */
    display: flex;
    align-items: center;
    color: #fff;
    padding: 0.3rem;
    background-color: #000;
  }
  .hero-section {
    text-align: center;
  }
  .hero-section h1 {
    font-size: 1.8rem;
    margin-top: 100px;
    text-shadow: 0px 0px 20px rgba(0, 0, 0, 0.919); /* Sombra suave */
  }

  .content {
    margin: 1rem;
  }

  /* SERVICES */
  #cards-services {
    margin: 0 1rem 0 1rem;
  }
  .cards-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
    text-align: center;
  }
  .hidden {
    display: flex !important;
  }

  #second-hero-section {
    background-size: cover;
    background-position: 1600px !important;
    height: 500px;
  }
}

.container-politica {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 2.7rem;
}

.container-politica h1 {
  text-align: center;
}

.container-politica h3 {
  margin-top: 1rem;
}

.container-politica p {
  text-align: justify;
}

@media (max-width: 500px) {
  .popup-rodape {
    display: block !important;
    padding: .7rem;
    text-align: center;
    justify-items: center;
  }

  .popup-botoes {
    margin-top: 1rem;
    display: block;
  }
}