* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body,
html {
  height: 100%;
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  font-size: 20px;
}

/* Navbar */
/* NAVBAR */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px 10%;
  background-color: white;
  border-bottom: 8px solid #335c81;
}

.logo {
  cursor: pointer;
}

.nav__links a,
.cta,
.overlay__content a {
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  color: #335c81;
  text-decoration: none;
}

.nav__links {
  list-style: none;
  display: flex;
}

.nav__links li {
  padding: 0px 20px;
}

.nav__links li a {
  transition: color 0.3s ease 0s;
}

.nav__links li a:hover {
  color: #1b2845;
}

.cta {
  padding: 9px 25px;
  background-color: #335c81;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.3s ease 0s;
  color: white;
}

.cta:hover {
  background-color: #1b2845;
}

/* Mobile Nav */

.menu {
  display: none;
}

.overlay {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  background-color: white;
  overflow-x: hidden;
  transition: width 0.5s ease 0s;
}

.overlay--active {
  width: 100%;
}

.overlay__content {
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.overlay a {
  padding: 15px;
  font-size: 36px;
  display: block;
  transition: color 0.3s ease 0s;
}

.overlay a:hover,
.overlay a:focus {
  color: #0088a9;
}
.overlay .close {
  position: absolute;
  top: 20px;
  right: 45px;
  font-size: 60px;
  color: #edf0f1;
}

@media screen and (max-height: 450px) {
  .overlay a {
    font-size: 20px;
  }
  .overlay .close {
    font-size: 40px;
    top: 15px;
    right: 35px;
  }
}

@media only screen and (max-width: 800px) {
  .nav__links,
  .cta {
    display: none;
  }
  .menu {
    display: initial;
  }
}

/* Services */
h1 {
  text-align: center;
  margin: 2rem;
}

.serv {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  margin: 2rem;
  padding: 2rem;
  border-bottom: 4px solid #335c81;
}

.serv-img,
.serv-text {
  width: 40%;
  display: flex;
  justify-content: space-evenly;
}

.serv-text {
  flex-direction: column;
}

.serv-text p {
  margin-bottom: 2rem;
}

.serv-text h2,
h3,
.benefits li {
  margin-bottom: 1rem;
}

h3,
.benefits li {
  color: #335c81;
}

.serv-img img {
  height: auto;
  width: 100%;
}

/* Contact */
.contact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border: 1px solid black;
  border-radius: 8px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  padding: 42px;
  margin: 50px 500px 50px 500px;
}

.contact button {
  background-color: #335c81;
  border: none;
  color: white;
  padding: 0.7rem;
  cursor: pointer;
  width: 8rem;
  margin: 0.5rem;
  border-radius: 8px;
  font-size: 18px;
}

.contact button:hover {
  background-color: #1b2845;
}

.contact button > a {
  text-decoration: none;
  color: white;
}

/* Footer */
.footer-distributed {
  background-image: linear-gradient(
      rgba(27, 40, 69, 0.8),
      rgba(27, 40, 69, 0.8)
    ),
    url(/images/footer.jpg);
  box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.12);
  box-sizing: border-box;
  width: 100%;
  text-align: left;
  font: normal 16px sans-serif;
  padding: 45px 50px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

.footer-distributed .footer-left p {
  color: #8f9296;
  font-size: 14px;
  margin: 0;
}
/* Footer links */

.footer-distributed p.footer-links {
  font-size: 18px;
  font-weight: bold;
  color: #ffffff;
  margin: 0 0 10px;
  padding: 0;
  transition: ease 0.25s;
}

.footer-distributed p.footer-links a {
  display: inline-block;
  line-height: 1.8;
  text-decoration: none;
  color: inherit;
  transition: ease 0.25s;
}

.footer-distributed .footer-links a:before {
  content: "·";
  font-size: 20px;
  left: 0;
  color: #fff;
  display: inline-block;
  padding-right: 5px;
}

.footer-distributed .footer-links .link-1:before {
  content: none;
}

.footer-distributed .footer-right {
  float: right;
  margin-top: 6px;
  max-width: 180px;
}

.footer-distributed .footer-right a {
  display: inline-block;
  width: 35px;
  height: 35px;
  background-color: #335c81;
  border-radius: 2px;
  font-size: 20px;
  color: #ffffff;
  text-align: center;
  line-height: 35px;
  margin-left: 3px;
  transition: all 0.25s;
}

.footer-distributed .footer-right a:hover {
  transform: scale(1.1);
  -webkit-transform: scale(1.1);
}

.footer-distributed p.footer-links a:hover {
  text-decoration: underline;
}

/* Media Queries */

@media (max-width: 600px) {
  .footer-distributed .footer-left,
  .footer-distributed .footer-right {
    text-align: center;
  }
  .footer-distributed .footer-right {
    float: none;
    margin: 0 auto 20px;
  }
  .footer-distributed .footer-left p.footer-links {
    line-height: 1.8;
  }
}

@media only screen and (max-width: 450px) {
  .serv {
    display: flex;
    flex-direction: column;
    margin: 0px;
    text-align: left;
    margin-bottom: 20px;
  }

  .serv-text {
    width: 100%;
  }

  .serv-img img {
    height: 280px;
    width: 380px;
  }

  .contact {
    margin: 0px;
    border: none;
    box-shadow: 0px 0px;
  }
}
