@import url("https://fonts.googleapis.com/css2?family=Open+Sans&display=swap");

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body {
  font-family: "Open Sans", sans-serif;
  background: #fff;
  color: #333;
  line-height: 1.6;
}

ul {
  list-style: none;
}

a {
  color: #333;
  text-decoration: none;
}

h1,
h2 {
  font-weight: 300;
  line-height: 1.2;
}

p {
  margin: 10px 0;
}

img {
  width: 100%;
}

/* navbar */

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #333;
  color: #fff;
  opacity: 0.8;
  width: 100%;
  height: 4.375rem;
  position: fixed;
  top: 0;
  padding: 0 1.875rem;
  transition: 0.5s;
}

.navbar.top {
  background: transparent;
}

.navbar a {
  color: #fff;
  padding: 0.625rem 1.25rem;
  margin: 0 0.313rem;
}

.navbar a:hover {
  border-bottom: #28a745 0.125rem solid;
}

.navbar ul {
  display: flex;
}

.navbar .logo {
  font-weight: 400;
}

/* Header */

.hero {
  background: url("../images/home/showcase.jpg") no-repeat center center/cover;
  height: 100vh;
  position: relative;
  color: #fff;
}

.hero .content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  padding: 0 1.25rem;
  z-index: 10;
}

.hero .content h1 {
  font-size: 3.438rem;
}

.hero .content p {
  font-size: 1.438rem;
  max-width: 37.5rem;
  margin: 1.25rem 0 1.875rem;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.hero * {
  z-index: 10;
}

.hero.blog {
  background: url("../images/home/blog.jpg") no-repeat center center/cover;
  height: 30vh;
}

/* icons */
.icons {
  padding: 1.875rem;
}

.icons h3 {
  font-weight: bold;
  margin-bottom: 15px;
}

.icons i {
  background: #28a745;
  color: #fff;
  padding: 1rem;
  border-radius: 50%;
  margin-bottom: 0.938rem;
}

/* cases */

.cases img:hover {
  opacity: 0.7;
}

.team img {
  border-radius: 50%;
}

/* callback form */

.callback-form {
  width: 100%;
  padding: 1.25rem 0;
}

.callback-form label {
  display: block;
  margin-bottom: 5px;
}

.callback-form .form-control {
  margin-bottom: 0.938rem;
}

.callback-form input {
  width: 100%;
  padding: 4px;
  height: 2.5rem;
  border: #f5f5f5 1px solid;
}

.callback-form input:focus {
  outline-color: #28a745;
}

.callback-form btn {
  padding: 1.25rem 0;
  margin-top: 0.75rem;
}

/* post */
.post {
  padding: 3.125rem 1.875rem;
}

.post h2 {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.625rem;
  border-bottom: #ccc solid 1px;
}

.post .meta {
  margin-bottom: 1.875rem;
}

.post img {
  width: 18.75rem;
  border-radius: 50%;
  display: block;
  margin: 0 auto 1.875rem;
}

/* footer */

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 12.5rem;
}

.footer a {
  color: #fff;
}

.footer a:hover {
  color: #28a745;
}

.footer .social > * {
  margin-right: 1.875rem;
}

/* Mobile */

@media (max-width: 48rem) {
  .navbar {
    flex-direction: column;
    height: 7.5rem;
    padding: 1.25rem;
  }

  .navbar a {
    padding: 0.625rem 0.625rem;
    margin: 0 3px;
  }

  .flex-items {
    flex-direction: column;
  }

  .flex-columns .column,
  .flex-grid .column {
    flex: 100%;
    max-width: 100%;
  }

  .team img {
    width: 70%;
  }
}
