@import "./animation.css";
/* --- CONFIGURAÇÕES GERAIS E PALETA DE CORES --- */
:root {
  --verde-escuro: #2e7d32;
  --bege-fundo: #faf3e0;
  --marrom-terra: #8b4513;
  --texto-escuro: #333333;
  --texto-claro: #ffffff;
  --navbar-height: 80px;
}

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

html {
  scroll-behavior: smooth; /* A mágica do scroll suave! */
  scroll-padding-top: var(
    --navbar-height
  ); /* Evita que o título da seção fique atrás do menu */
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bege-fundo);
  color: var(--texto-escuro);
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

h1,
h2,
h3 {
  color: var(--verde-escuro);
  margin-bottom: 1rem;
}

h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

section {
  padding: 60px 0;
}

/* --- BARRA DE NAVEGAÇÃO --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #b0c7b5;
  backdrop-filter: blur(5px);
  z-index: 1000;
  height: var(--navbar-height);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--texto-claro);
  text-decoration: none;
}

.logo_menu {
  padding-top: 5%;
  max-height: 80px;
  height: 95%;
  width: auto;
}

.nav-links {
  list-style: none;
  display: flex;
}

.nav-links li {
  margin-left: 25px;
}

.nav-links a {
  color: var(--texto-escuro);
  text-decoration: none;
  font-size: 1rem;
  padding: 5px 0;
  position: relative;
  transition: color 0.3s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--marrom-terra);
  transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.login-btn {
  background-color: var(--verde-escuro);
  padding: 8px 20px;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.login-btn:hover {
  background-color: #42c442; /* Marrom um pouco mais claro */
}

.login-btn::after {
  display: none; /* Remove o sublinhado do botão de login */
}

/* --- SEÇÃO HOME (HERO) --- */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)),
    url("./img/761.jpg") no-repeat center center/cover;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--texto-claro);
}

.hero-content {
  max-width: 800px;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: var(--texto-claro);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.cta-button {
  background-color: var(--marrom-terra);
  color: var(--texto-claro);
  padding: 15px 30px;
  text-decoration: none;
  font-size: 1.1rem;
  border-radius: 5px;
  transition: background-color 0.3s, transform 0.3s;
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  background-color: #a0522d;
  transform: translateY(-3px);
}

/* --- SEÇÃO SOBRE NÓS --- */
#sobre .sobre-content {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: justify;
}
#sobre img {
  padding: 20px;
  max-width: 40%;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* --- SEÇÃO SERVIÇOS --- */
#servicos {
  background-color: #fff;
}

.servicos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.servico-card a {
  text-decoration: none;
  display: block;
  padding: 25px;
  color: (var(--texto-escuro));
}

.servico-card {
  background-color: var(--bege-fundo);
  border-radius: 10px;
  border-left: 5px solid var(--verde-escuro);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.servico-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

/* --- SEÇÃO CONTATO --- */
.contato-wrapper {
  display: flex;
  gap: 40px;
  margin-top: 2rem;
}
.contato-info,
.contato-form {
  flex: 1;
}
.contato-form input,
.contato-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #ccc;
  background-color: #fff;
  font-family: inherit;
}

.adress-map {
  align-items: center;
}

.adress-map iframe {
  width: 100vw;
  height: 450px;
}

/* --- FOOTER --- */
footer {
  background-color: var(--verde-escuro);
  color: var(--texto-claro);
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
}

/* --- ESTILOS PÁGINA DE LOGIN --- */
.login-page-body {
  background-color: (var(--verde-escuro));
  background-image: url(./img/134.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}
.login-container {
  background-color: rgba(255, 255, 255, 0.7);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.logo-login {
  font-size: 2.2rem;
  font-weight: bold;
  color: var(--verde-escuro);
  text-decoration: none;
  display: block;
  margin-bottom: 1rem;
}

.logo-login img {
  max-width: 90%;
}

.login-form .form-group {
  text-align: left;
  margin-bottom: 20px;
}
.login-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}
.login-form input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}
.login-container .cta-button {
  width: 100%;
  margin-top: 10px;
}
.back-link {
  display: block;
  margin-top: 20px;
  color: var(--marrom-terra);
  text-decoration: none;
}

.btn-whatsapp {
  position: fixed;
  right: 10px;
  bottom: 10px;
  background-color: transparent;
  border: transparent;
  animation: pulo 0.5s ease-in-out infinite;
}

.btn-whatsapp:hover {
  animation: vibrar 0.2s ease-in-out infinite;
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 2rem;
  }

  .nav-links {
    /* Em um projeto real, aqui entraria um menu hambúrguer. 
           Para simplificar, vamos apenas ajustar o espaçamento. */
    display: none; /* Esconde para uma implementação futura de menu mobile */
  }

  #sobre .sobre-content {
    flex-direction: column;
  }
  #sobre img {
    max-width: 80%;
  }

  .contato-wrapper {
    flex-direction: column;
  }
}

#hamburger-btn {
  display: none; /* Escondido em telas grandes */
  cursor: pointer;
}

#hamburger-btn .bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--texto-claro);
  transition: all 0.3s ease-in-out;
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 768px) {
  /* --- AJUSTES GERAIS PARA MOBILE --- */
  h1 {
    font-size: 2.2rem;
  }

  .hero-content h1 {
    padding: 5px;
  }

  h2 {
    font-size: 2rem;
  }
  section {
    padding: 40px 0;
  }

  .container {
    padding: 0 15px;
  }

  /* --- NAVEGAÇÃO MOBILE --- */
  #hamburger-btn {
    display: block; /* Mostra o botão hambúrguer */
  }

  .nav-links {
    display: none; /* Esconde a lista de links por padrão */
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: var(--navbar-height);
    left: 0;
    background-color: #b0c7b5; /* Fundo sólido para o menu aberto */
  }

  /* ESTILO DO MENU QUANDO ATIVO (ABERTO) */
  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    text-align: center;
    margin: 0;
  }

  .nav-links li a {
    padding: 1rem;
    display: block; /* Faz o link ocupar a linha inteira */
    width: 100%;
  }

  .nav-links li a.login-btn {
    margin: 1rem;
    width: auto;
  }

  .nav-links a:hover::after,
  .nav-links a.active::after {
    width: 50%;
    left: 25%;
  }

  /* --- AJUSTE DAS SEÇÕES --- */
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  #sobre .sobre-content {
    flex-direction: column;
    text-align: center;
  }

  #sobre img {
    max-width: 80%;
    margin-bottom: 20px;
  }

  .adress-map {
    padding: 10px;
  }

  .adress-map iframe {
    width: 90vw;
    height: 450px;
    border-radius: 20px;
    margin: 5px;
    border-left: 5px solid var(--verde-escuro);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
  }

  .contato-wrapper {
    flex-direction: column;
    gap: 20px;
  }

  .contato-form .cta-button {
    width: 100%;
  }

  /* --- AJUSTE PÁGINA DE LOGIN --- */
  .login-container {
    padding: 30px;
    width: 90%;
  }
}
