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

html {
  scroll-behavior: smooth;
}

/*body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fffaf5;
} */

body {
  font-family: 'Rubik', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fffaf5;
}

/* CONTAINER PADRÃO */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 1rem;
}

/* HEADER */
header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 120px;
  background-color: rgba(228, 201, 175, 0.9); /* bege com transparência */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px); /* suporte para Safari */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 999;
  /*box-shadow: 0 2px 6px rgba(0,0,0,0.05);*/
}

.logo-link {
  display: inline-block;
}

header .logo {
  height: 60px;
  width: auto;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* NAVEGAÇÃO */
nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

nav a {
  font-family: 'Rubik', sans-serif;
  color: #5e3c1e;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  white-space: nowrap;
}

nav a:hover {
  background-color: #5e3c1e;
  color: #e4c9af;
}

/* MENU HAMBÚRGUER */
#menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 22px;
  position: relative;
  z-index: 1000;
}

.menu-icon span {
  display: block;
  height: 2px;
  background-color: #5e3c1e;
  margin: 8px 0;
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
}

#menu-toggle:checked + .menu-icon span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

#menu-toggle:checked + .menu-icon span:nth-child(2) {
  opacity: 0;
}

#menu-toggle:checked + .menu-icon span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

/* HERO */
.hero {
  display: flex;
  align-items: flex-start; /* Agora alinha no topo */
  justify-content: center;
  min-height: 600px;
  position: relative;
  background-position: center center;
  padding-top: 260px; /* Adiciona espaçamento entre topo e conteúdo */
}

.hero.hero-img {
  background-image: url("../images/hero.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  color: white;
  opacity: 0;
  animation: fadeIn 1.5s ease forwards;
}

.hero.hero-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-text {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem 2rem;
  text-align: center;
}
.hero-text h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-text p {
  margin: 0;
  padding: 0 1rem;
  color: #eaeaea;
}

.hero .btn {
  display: inline-block;
  margin-top: 1rem;
  background-color: #8b5e3c;
  color: white;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.hero .btn:hover {
  background-color: #a06b42;
  transform: scale(1.05);
}

.contato-toggle {
  text-align: center;
  margin-top: 1.5rem;
  position: relative;
}

/* Esconde o checkbox */
#toggle-contato {
  display: none;
}

/* Links inicialmente ocultos */
.contato-links {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  display: flex;
  flex-direction: row; /* <-- muda de column para row */
  justify-content: center;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;  /* permite quebrar linha no mobile */
  transition: all 0.5s ease;
}

/* Quando o checkbox é marcado, revela os links */
#toggle-contato:checked ~ .contato-links {
  max-height: 200px;
  opacity: 1;
}

/* Botões */
.btn {
  background-color: #8b5e3c;
  color: white;
  padding: 0.75rem 1.2rem;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
  background-color: #a06b42;
  transform: scale(1.03);
}

/* SEÇÕES */
section {
  scroll-margin-top: 120px;
}

/* ÁREAS DE ATUAÇÃO */
.areas {
  background: #fff;
  padding: 2rem 1rem;
  border-top: 2px solid #e4c9af;
}

.areas h2 {
  font-family: 'Poppins', sans-serif;
  color: #5e3c1e;
  margin-bottom: 1rem;
}

.area-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.area-card {
  flex: 1 1 280px;
  background-color: #fffefc;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease;
}

.area-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.area-card img {
  width: 100%;
  border-radius: 5px;
  margin-bottom: 1rem;
}

.area-card h3 {
  font-family: 'Poppins', sans-serif;
  color: #8b5e3c;
  margin-bottom: 0.5rem;
}

.area-card ul {
  list-style: none;
}

.area-card li {
  margin: 0.5rem 0;
}

.area-card li i {
  color: #5e3c1e;
  margin-right: 0.5rem;
}

/* CONTATO */
.contato {
  background-color: #f1ede7;
  padding: 2rem 1rem;
  border-top: 2px solid #e4c9af;
}

.contato h2 {
  font-family: 'Poppins', sans-serif;
  color: #4d3223;
  margin-bottom: 1rem;
}

.contato-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contato-grid a {
  font-family: 'Rubik', sans-serif;
  text-decoration: none;
  color: #333;
  font-size: 1rem;
}

.contato-grid a i {
  color: #8b5e3c;
  margin-right: 0.5rem;
}


/* RODAPÉ */
footer {
  background-color: #8b5e3c;
  color: white;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  margin-top: 2rem;
}

/* FLOAT WHATSAPP */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  z-index: 999;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #1ebe5d;
}

/* ANIMAÇÕES */
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* RESPONSIVO */
@media (max-width: 768px) {
  .menu-icon {
    display: block;
    transform: translateY(-12px);
    margin-right: 0;
    width: 30px;
    height: 22px;
    cursor: pointer;
    position: relative;
    z-index: 1001; /* apenas o necessário para ficar acima do header */
  }
  
.nav-links {
  max-height: 0;
  pointer-events: none;
  overflow: hidden;
  flex-direction: column;
  background-color: rgba(228, 201, 175, 0.9); /* um pouco mais transparente */
  backdrop-filter: blur(6px); 
  -webkit-backdrop-filter: blur(6px);
  padding: 0 1rem;
  position: absolute;
  top: 120px;
  right: 0;
  width: 100%;
  text-align: right;
  z-index: 999;
  opacity: 0;
  transition:
    max-height 0.4s ease,
    padding 0.3s ease,
    opacity 0.4s ease,
    background-color 0.4s ease;
}

#menu-toggle:checked + .menu-icon + .nav-links {
  max-height: 300px;
  padding: 1rem;
  opacity: 1;
  pointer-events: auto;
  background-color: rgba(228, 201, 175, 0.9); /* mesmo valor */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

  
  header .logo {
    height: 50px;
    padding-right: 10px
  }

  .container {
    padding: 0.5rem;
  }

  .hero-text h1 {
    font-size: 1.5rem;
  }

  .area-card {
    padding: 0.5rem;
  }
}
