/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.navbar .logo {
  font-size: 1.3rem;
  font-weight: bold;
  color: #6c5ce7;
}

.navbar nav a {
  color: #333;
  margin-left: 1rem;
  text-decoration: none;
  transition: color 0.3s;
  font-weight: 500;
}

.navbar nav a:hover { color: #6c5ce7; }

/* Hero */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0)),
              url("imagens/background.jpg") no-repeat center center/cover;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #333;
  padding: 2rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem; /* espaçamento entre h1, p e botão */
}

.hero h1 {
  font-size: 3rem;
  color: #2d3436;
  line-height: 1.2;
  /* evita "pular" quando o texto muda de tamanho */
  min-height: 3.6rem;
  font-weight: normal;
  background: rgba(255, 255, 255, 0.719); /* 🔹 fundo translúcido */
  padding: 0.2em 0.5em;
  border-radius: 6px;
  display: inline-block; /* para o fundo se ajustar ao tamanho do texto */
}

.hero p {
  font-size: 1.2rem;
  background: rgb(255, 255, 255); /* fundo amarelo translúcido */
  display: inline-block;
  padding: 0.1em 0.6em;
  border-radius: 6px;
 }

/* Botão */
.btn {
  background: #6c5ce7;
  color: #fff;
  padding: 0.7rem 5.5rem;
  border-radius: 25px;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
}

.btn:hover {
  background: #5a4bd1;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(108, 92, 231, 0.4);
}

/* Seções */
section { padding: 5rem 10%; background: #fff; }
.sobre, .servicos, .contato { text-align: center; }
.sobre p { max-width: 1000px; margin: auto; }

/* Cards */
.cards {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.card {
  background: #fff;
  padding: 1rem;
  border-radius: 16px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
  flex: 1 1 25%;
  transition: all 0.3s ease;
  border: 1px solid #eee;
  text-align: center;
}

.card img {
  width: 100%;
  max-width: 350px;
  height: auto;
  margin-bottom: 1rem;
  border-radius: 12px;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

/* Formulário */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: auto;
}

form input, form textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

form button { border: none; cursor: pointer; }

#form-status {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #6c5ce7;
}

/* Rodapé */
.footer {
  background: #f1f1f1;
  color: #555;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}

/* Responsivo */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; min-height: 2.6rem; }
  .cards { flex-direction: column; }
}

/* Cursor piscando no Hero */
.cursor {
  display: inline-block;
  margin-left: 2px;
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 1; }
}

/* Botão sanduíche */
.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  user-select: none;
}

/* Responsivo: Mobile */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    color: #333;
  }

  nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px; /* logo abaixo da navbar */
    right: 0;
    width: 200px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 1rem;
    border-radius: 0 0 10px 10px;
  }

  nav a {
    margin: 0.5rem 0;
    display: block;
  }

  nav.active {
    display: flex;
  }
}
