* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  color: #2f2f2f;
  background-color: ghostwhite;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  font-size: 1.2rem;;
margin: 40px;
}

nav ul {
  list-style: none;
  text-align: center;
}

li {
  padding-bottom: 10px;
}

li a {
  font-size: 1.3rem;
}

a {
  text-decoration: none;
  color: OrangeRed;
  font-weight: bold;
  font-size: 1rem;
}

h1 {
  font-size: 2.5rem;
  margin: 20px 0 50px 0;
  font-family: "Oswald", sans-serif;
}

h2{
  font-size: 2rem;
  margin: 15px 0;
  font-family: "Oswald", sans-serif;
}

h2 span.title-decoration {
  color: orangered;
  font-weight: bold;
}

h2 span.title-decoration2 {
  color: yellow;
  font-weight: bold;
}

h3 {
  font-size: 1.5rem;
  margin: 10px 0;
  font-family: "Oswald", sans-serif;
}

p {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

header {
  max-width:1200px;
  margin:auto;
  position: relative;
  background-color: transparent;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header2 {
  width:100%;
  height:20svh;
  background-image: url(images/banner_contatos.jpg);
  background-size: cover;
  background-position: center;
}

.header2 div {
  max-width: 1200px;
  margin: auto;
}

.header2 h2 {
  color: white;
  padding:  20px;
}

.header3 {
  width:100%;
  height:20svh;
  background-image: url(images/banner_quem_somos.jpg);
  background-size: cover;
  background-position: right;
}

.header3 div {
  max-width: 1200px;
  margin: auto;
}

.header3 h2 {
  color: white;
  padding:  20px;
}

.header4 {
  width:100%;
  height:20svh;
  background-image: url(images/banner_servicos.jpg);
  background-size: cover;
  background-position: center;
}

.header4 div {
  max-width: 1200px;
  margin: auto;
}

.header4 h2 {
  color: white;
  padding:  20px;
}

.icon {
  width: 50px;
  padding: 10px;
  background-color: GhostWhite;
  font-size: 1rem;
}

.button {
  margin:40px 0 40px 0;
  padding: 10px 50px 10px 50px;
  border: 2px solid orangered;
  border-radius: 10px;
  color: orangered;
  font-weight: bold;
  cursor: pointer;
}

#burger {
  display: inline-block;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  border: none;
  background: none;
}

#menu {
  display: none;
  position: absolute;
  z-index: 2;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: GhostWhite;
  max-height: 0;
  overflow: hidden;
  transition: max-height 1s ease; 
}

#menu.open {
  max-height: 200px;
  display: block;
}

section {
  padding:50px 30px 50px 30px;
}

.destaque {
  color: OrangeRed;
}

#hero {
  background-color: white;
  position:relative;
  z-index: 1;
  border-bottom: 4px solid orangered;
}

#hero-container {
  max-width: 1200px;
  margin:auto;
  display: flex;
  flex-wrap: wrap;
  justify-content:center;
}

.hero-content {
  flex: 0 0 calc(50% - 16px);
  min-width: 330px;
}

.hero-content {
  flex: 0 0 calc(50% - 16px);
  min-width: 330px;
}

main {
  position: relative;
}

#orcamento {
  width: 100%;
  max-width: 1200px;
  position: absolute;
  top: -90px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
}

#orcamento-form {
  background-color: OrangeRed;
  color: white;
  border: 2px solid black;
  text-align: center;
  min-width: 300px;
  margin: auto;
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
  flex: 0 0 calc(50% - 16px);
}

.services {
  width: 100%;
  max-width: 1200px;
  margin:auto;
  background-color: white;
  position:relative;
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.service-item {
  flex: 0 0 calc(33.33% - 16px);
  padding:16px;
  text-align: center;
  border: 2px solid orangered;
  border-radius: 16px;
}

.service-item i {
  font-size: 2.5rem;
  color: orangered;
}

.service-item button {
  margin-top: 10px;
  padding: 10px 20px;
  border: none;
  background-color: transparent;
  color: orangered;
  border-radius: 5px;
  cursor: pointer;
}

.contrate_facil {
  background-color: orangered;
  color: white;
  width: 100%;
}

.contrate_facil_div {
  max-width: 1200px;
  margin:auto;
  display: flex;
  flex-wrap: wrap;
}

.contrate_img  img{
  border-radius: 16px;
}

.professionals {
  width: 100%;
  background-image: url(images/profissionais.jpg);
  min-height: 50svh;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;

}

.testemunhos-container {
  max-width: 1200px;
  margin: auto;
}

.testemunho-item {
  background-color: white;
  border: 2px solid orangered;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}

.footer-container {
  background-color: dimgray;
  color: white;
  padding: 20px;
  text-align: center;
}

#missao-section, .servicos-section {
  background-color: white;
}

#missao-container {
  max-width: 1200px;
  display: grid;
  grid-template-columns: 1fr;
}

#contact-section {
  padding: 50px 30px;
  background-color: white;
}

#contact-section input,
#contact-section textarea {
  width: 100%;
  max-width: 100%;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1rem;              /* evita colar às bordas no mobile */
}

input[type="text"], input[type="email"], textarea {
  font-size: 16px;          /* evita zoom no iOS */
  line-height: 1.2;         /* altura da linha */
  padding: 10px 12px;       /* ↑ controla a altura visual */
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;   /* altura inclui padding/borda */
}

.obrigado {
  text-align: center;
  background-color: black;
  color:white
}

@media (max-width: 768px) {
  .service-item {
    flex: 0 0 calc(100% - 16px);
    margin: 8px;
  }
}

@media (min-width: 768px) {
  #burger { display: none; }
  #menu {
    display: block;
    position: static;   /* reset do absolute */
    top: auto;          /* limpa o top */
    left: auto;         /* limpa o left */
    width: auto;        /* deixa o menu encaixar no fluxo */
    max-height: none;   /* remove a limitação de altura */
    overflow: visible;  /* deixa o conteúdo visível */
    background: transparent; /* opcional */
  }
  #menu ul { display: flex; gap: 2rem; }

  .contact-container, #missao-container, .servicos-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr; /* duas colunas */
     grid-auto-flow: dense;
  }

  .servicos-container div {
    padding: 20px 40px;
  }

  /* Inverter 2ª linha */
.servicos-container > div:nth-child(3) { grid-column: 2; }
.servicos-container > div:nth-child(4) { grid-column: 1; }

/* Inverter 4ª linha */
.servicos-container > div:nth-child(7) { grid-column: 2; }
.servicos-container > div:nth-child(8) { grid-column: 1; }

/* Inverter 6ª linha */
.servicos-container > div:nth-child(11) { grid-column: 2; }
.servicos-container > div:nth-child(12) { grid-column: 1; }

  .contrate_facil_div {
    flex-wrap: nowrap;
  }

  .contrate_text, .contrate_img, .testemunhos-container, #missao-container > div {
    padding: 40px;
  }

  .fotos img {
    width: 33%;
    height: auto;
    display: inline-block;
  }
}