/* Variáveis de cores */
:root {
  --cor-fundo: #f8f9fa;
  /* Fundo da página */
  --cor-principal: #4db6ac;
  /* Azul-esverdeado */
  --cor-secundaria: #00796b;
  /* Azul-esverdeado escuro (hover) */
  --cor-header-footer: #1e1e1e;
  /* Header e footer */
  --cor-texto: #333;
  /* Texto principal */
  --cor-texto-secundario: #555;
  /* Texto secundário */
  --cor-cartao: #ffffff;
  /* Fundo dos cards */
  --cor-sombra: rgba(0, 0, 0, 0.08);
  /* Sombra mais suave */
}

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

body {
  font-family: 'Poppins', sans-serif;
  background: var(--cor-fundo);
  color: var(--cor-texto);
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

.header {
  background: var(--cor-header-footer);
  color: #fff;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.header h1 {
  font-size: 1.6rem;
  font-weight: 700;
}

.header nav a {
  color: #fff;
  margin-left: 1rem;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.header nav a:hover {
  color: var(--cor-principal);
}

.sobre {
  padding: 5rem 0;
  text-align: center;
}

.sobre h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--cor-texto);
}

.sobre p {
  max-width: 700px;
  margin: auto;
  font-size: 1rem;
  color: var(--cor-texto-secundario);
}

.servicos {
  padding: 5rem 0;
}

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

.grid-servicos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.card {
  background: var(--cor-cartao);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px var(--cor-sombra);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px var(--cor-sombra);
}

.card i {
  font-size: 2rem;
  color: var(--cor-principal);
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--cor-texto);
}

.card ul {
  list-style: none;
  text-align: left;
}

.card ul li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: var(--cor-texto-secundario);
}

.contato {
  padding: 5rem 0;
  text-align: center;
}

.contato h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  background: var(--cor-principal);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
}

.links a:hover {
  background: var(--cor-secundaria);
  transform: translateY(-2px);
}

.links i {
  font-size: 1.2rem;
}

.intro-projetos {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--cor-texto-secundario);
  font-size: 1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.projetos {
  padding: 5rem 0;
}

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

.grid-projetos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.card-projeto {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--cor-cartao);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px var(--cor-sombra);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-projeto:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px var(--cor-sombra);
}

.card-projeto h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--cor-texto);
}

.card-projeto a {
  display: inline-block;
  margin-top: 0.8rem;
  padding: 0.6rem 1.2rem;
  background: var(--cor-principal);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  background: var(--cor-principal);
}

.card-projeto a:hover {
  background: var(--cor-secundaria);
  transform: translateY(-2px);
}

footer {
  background: var(--cor-header-footer);
  color: #fff;
  text-align: center;
  padding: 3rem 1rem;
  margin-top: 2rem;
  font-size: 0.9rem;
  box-shadow: 0 -2px 10px var(--cor-sombra);
}

footer a {
  color: var(--cor-principal);
  margin: 0 0.5rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--cor-secundaria);
}

footer p {
  margin: 0.3rem 0;
}

footer p a {
  display: inline-block;
  margin: 0 0.3rem;
}

@media (min-width: 768px) {

  footer p {
    font-size: 0.8rem;
  }

  footer p a {
    margin: 0 0.2rem;
  }

  .grid-projetos {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-servicos {
    grid-template-columns: repeat(3, 1fr);
  }

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