/* Reset e padrão */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #3a3a3a;
  color: #fff;
  line-height: 1.6;
}

/* Cabeçalho */
header {
  position: sticky;
  top: 0;
  background: #303030;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 30px;
  border-bottom: 2px solid red;
  z-index: 1000;
}

header img {
  height: 60px;
}

#link {
  font-size: 130%;
  color: rgb(255,0,0);
  align-self: center;
  margin: 40%;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

nav a {
  color: rgb(255, 0, 0);
  font-weight: bold;
  text-decoration: none;
  font-size: 120%;
}

nav a:hover {
  text-decoration: underline;
}

/* Seção "Sobre Nós" com fundo */
#sobrenos {
  background: url("imgs_2/bg1.png") no-repeat center center;
  background-size: cover;
  background-attachment: fixed; /* efeito parallax */
  color: #fff;
  padding: 60px 20px;
}

/* Seções gerais */
.section {
  padding: 60px 20px;
  max-width: 1000px;
  margin: auto;
}

.section h2,
form h3 {
  color: rgb(255, 0, 0);
  margin-bottom: 20px;
}

/* Serviços */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

#intro {
  padding-left: 20%;
  padding-right: 20%;
  font-size: 120%;
}

/* Cards e formulários */
.card,
form {
  background: #111;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #333;
}

.card img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 10px;
}

/* Formulário */
form {
  max-width: 600px;
  margin: auto;
}

form input,
form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: none;
  border-radius: 4px;
  background: #222;
  color: #fff;
}

form input[type="submit"] {
  background: red;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
}

form input[type="submit"]:hover {
  background: #a00000;
}

/* Rodapé */
footer {
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  border-top: 2px solid red;
}

/* ========================= */
/* Responsividade (Mobile)   */
/* ========================= */

@media (max-width: 768px) {
  header {
    flex-direction: column;
    padding: 15px;
    text-align: center;
  }

  header img {
    height: 50px;
    margin-bottom: 10px;
  }

  nav ul {
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
  }

  #intro {
    padding: 0 10px;
    font-size: 100%;
  }

  .section {
    padding: 40px 15px;
  }

  .services {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  nav a {
    font-size: 100%;
  }

  #intro {
    font-size: 95%;
  }

  form {
    padding: 15px;
  }
}
