/* 1. Reset básico + box-sizing */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 2. Tipografia base */
html {
  font-size: 100%; /* 16px base */
}
body {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #333;
  background-color: #fff;
}

/* 3. Layout flex e centralização */
.interface {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* 4. Header */
header {
  background-color: #f8f8f8;
  padding: 1rem 0;
}
header .logo img {
  display: block;
}
.menu-desktop ul,
.menu-mobile nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
}
.menu-desktop a,
.menu-mobile a {
  text-decoration: none;
  color: inherit;
  font-weight: 500;
}
.btn-contato button {
  padding: 0.5rem 1rem;
  background-color: #007bff;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 4px;
}
.btn-contato button:hover {
  background-color: #0056b3;
}

/* 5. Seção topo do site */
.topo-do-site .flex {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem 0;
}
.topo-do-site h1 {
  font-size: 2rem;
}
.topo-do-site p {
  margin: 1rem 0;
}
.img-topo-site img {
  max-width: 100%;
  height: auto;
}

/* 6. Especialidades */
.especialidades {
  padding: 2rem 0;
}
.especialidades-box {
  text-align: center;
  padding: 1rem;
  flex: 1;
}
.especialidades-box i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.flex {
  display: flex;
}

/* 7. Sobre */
.sobre {
  padding: 2rem 0;
}
.sobre .flex {
  gap: 2rem;
}
.img-sobre img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* 8. Portfólio */
.portfolio {
  padding: 2rem 0;
}
.img-port {
  position: relative;
  flex: 1;
  height: 200px;
  background-size: cover;
  background-position: center;
}
.img-port .overlay {
  position: absolute;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  color: white;
  width: 100%;
  text-align: center;
  padding: 0.5rem 0;
}

/* 9. Formulário */
.formulario {
  padding: 2rem 0;
}
.formulario input,
.formulario textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 1rem;
  font-family: inherit;
}
.btn-enviar input {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
}
.btn-enviar input:hover {
  background-color: #218838;
}

/* 10. Footer */
footer {
  background-color: #f8f8f8;
  padding: 1.5rem 0;
}
footer .line-footer {
  padding: 0.5rem 0;
}
.logo-footer img {
  display: block;
}
footer .btn-social button {
  background: none;
  border: none;
  font-size: 1.5rem;
  margin-right: 0.5rem;
  cursor: pointer;
}
footer .line-footer.borda {
  border-top: 1px solid #ddd;
  margin-top: 1rem;
  padding-top: 1rem;
}
footer .line-footer.borda p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
footer .line-footer.borda a {
  color: inherit;
  text-decoration: none;
}

/* 11. Responsividade (mobile-first) */
@media (max-width: 768px) {
  .topo-do-site .flex,
  .sobre .flex,
  .especialidades .flex,
  .portfolio .flex {
    flex-direction: column;
  }
  .especialidades-box,
  .img-port {
    width: 100%;
  }
}
