:root {
  --blue: #07124a;
  --faded: #e1e1e1;
}

html,
body,
* {
  padding: 0;
  margin: 0;
}
body {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

body.nomain {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 100vh;
}

img {
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: auto;
  box-sizing: border-box;
}

.hero {
  width: 100%;
  max-width: 1100px;
  background-color: #fff;
  min-height: 50vh;
  margin: auto;
  background-image: url('../img/hero-small.jpg');
  background-size: 300px;
  background-repeat: no-repeat;
  background-position: right -110px bottom 0;
  position: relative;
}

.hero .container {
  position: absolute;
  top: 50px;
  left: 4%;
  width: 80%;
  height: 65%;
}

.hero h1 {
  color: var(--blue);
}

.hero a {
  background-color: var(--blue);
  color: #fff;
  text-decoration: none;
  padding: 10px 15px;
  font-size: 18px;
  font-weight: 500;
  border-radius: 8px;
  position: absolute;
  bottom: 0;
  display: inline-block;
  transition: background-color 0.5s ease, color 0.5s ease;
  border: 1px solid var(--blue);
}

.hero a:hover {
  color: var(--blue);
  background-color: #fff;
}

.services {
  width: 100%;
  background-color: var(--faded);
  padding: 30px 0 50px;
  box-sizing: border-box;
}

.services h2 {
  color: var(--blue);
  width: 90%;
  margin: auto;
}

.services-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 35px 0;
  margin-top: 50px;
}
.service {
  background-color: #fff;
  box-shadow: 1px 2px 3px rgba(0, 0, 0, 0.3);
  width: 300px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding-bottom: 30px;
}

.service h3 {
  color: var(--blue);
  font-size: 22px;
  margin-top: 10px;
}
.service p {
  text-align: left;
  white-space: nowrap;
  margin: 5px auto 10px;
}

.service a {
  position: absolute;
  bottom: 10px;
  right: 15px;
  text-decoration: none;
  color: var(--blue);
  font-size: 12px;
  font-weight: bold;
  border-bottom: 1px solid var(--blue);
}

/* Footer */
footer {
  background-color: var(--blue);
  width: 100%;
  overflow-x: hidden;
  color: #fff;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 0;
}
footer .container div {
  width: 90%;
  margin: auto;
}
footer .container div:last-child {
  margin: 0;
}

footer .col-1 h2 {
  padding: 20px 0;
  margin: 0;
}

footer .col-1 img {
  width: 330px;
}

footer .col-2 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 20px 15px;
}

footer .col-2 p {
  display: flex;
  align-items: center;
  font-size: 12px;
}

footer .icon {
  width: 30px;
  margin-right: 10px;
}
footer .col-3 {
  display: flex;
  align-items: center;
  justify-content: center;
}

.quem-somos .container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.quem-somos .container img {
  width: 100%;
}

.quem-somos .container p {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90%;
  max-width: 380px;
  transform: translate(-50%, -50%);
  color: #fff;
  font-weight: bold;
  font-size: 1.3rem;
  line-height: 2.5rem;
}

.contato .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.contato .contact-box {
  width: 95%;
}
.contato h1 {
  font-size: 1.6rem;
  color: var(--blue);
  max-width: 95%;
  margin: 1rem 0;
}
.contato h2 {
  font-size: 1.1rem;
  width: 95%;
  color: #444;
  margin: 20px 0;
}

.contato .contact-option {
  margin: 5px 0;
  width: 95%;
  font-size: 0.9rem;
}

.contato .contact-option,
.contato .contact-option a {
  display: flex;
  align-items: center;
  color: var(--blue);
  font-weight: 500;
}

.contato .contact-option.nolink p {
  color: #111;
  font-weight: bold;
}

.contato .contact-option img {
  width: 30px;
  margin-right: 10px;
}

.servicos {
  margin: 40px 0;
}

.servicos .servico {
  border-bottom: 1px solid var(--blue);
  padding: 15px 0;
  margin: auto;
  text-align: center;
}

.servicos .servico:nth-child(even) {
  background-color: var(--faded);
}
.servicos .servico h3 {
  color: var(--blue);
  margin: 10px 0;
  font-size: 1.6rem;
}
.servicos .servico p {
  padding: 0 10px;
  text-align: left;
  max-width: 600px;
}
.servicos .servico ul {
  text-align: left;
  padding: 0 10px;
  list-style: none;
}
.servicos .servico ul li {
  margin-left: 15px;
  line-height: 22px;
}

.servicos .servico ul li a {
  color: var(--blue);
}

/* Media query */
@media only screen and (min-width: 655px) {
  .hero {
    background-image: url('../img/hero.jpg');
    background-position: right bottom;
    background-size: 400px;
    min-height: 520px;
  }

  .hero .container {
    top: 120px;
    width: 64%;
  }

  .hero h1 {
    font-size: 42px;
  }
  .hero a {
    font-size: 26px;
    padding: 12px 25px;
    margin-top: 40px;
    position: initial;
  }

  footer .container div {
    width: auto;
  }

  .quem-somos .container {
    flex-direction: row;
    margin: 80px auto 40px;
  }

  .quem-somos .container img {
    content: url('../img/me-frente.png');
    width: auto;
  }
  .quem-somos .container p {
    position: initial;
    color: #444;
    transform: none;
    max-width: 80%;
    padding: 1rem;
  }

  .contato .container {
    flex-direction: row;
    margin: 80px auto 40px;
  }

  .contato .hero-contact {
    width: 45%;
    margin-right: 20px;
  }

  .contato .contact-option {
    margin: 10px 0;
  }

  .servicos {
    margin: 80px 0 40px;
  }

  .servicos .servico {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .servicos .servico img {
    max-width: 50%;
  }

  .servicos .servico:nth-child(even) img {
    order: 2;
  }

  .servicos .servico h3,
  .servicos .servico p {
    text-align: left;
    padding: 0 25px;
  }
}
