/* Basic styles */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: Merriweather, serif;
  font-weight: normal;
}

ul {
  padding: 0;
  list-style-type: none;
}

a {
  text-decoration: none;
}

img {
  width: 100%;
  background-color: #bfc7cb;
  display: inline-block;
}

noscript {
  background-color: #ff0;
}

.clear {
  clear: both;
}

/* Back to top button */

#back-to-top {
  display: none;
  position: fixed;
  bottom: 10px;
  left: 10px;
  z-index: 99;
  border: none;
  outline: none;
  background-color: #898d8e;
  color: #fff;
  cursor: pointer;
  padding: 10px 15px;
  border-radius: 5px;
  font-size: 18px;
  transition: 0.5s;
}

/* Main header */

#main-header {
  text-align: center;
  width: 90%;
  margin: 32px auto;
}

#main-header a {
  color: #d7794a;
}

#main-header a h1 {
  font-size: 18px;
}

/* Title section */

#title {
  position: relative;
}

#open-top-menu,
#close-top-menu {
  background-color: rgba(31, 49, 56, 0.95);
  display: block;
  position: fixed;
  right: 5px;
  top: 5px;
  z-index: 9;
}

#open-top-menu i,
#close-top-menu i {
  color: #fff;
  font-size: 17px;
  padding: 4px;
  cursor: pointer;
  animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

#title .fas.fa-times {
  right: 7px;
  background-color: unset;
}

#title nav menu {
  background-color: rgba(31, 49, 56, 0.95);
  margin: 0;
  padding: 40px 0;
  list-style-type: none;
  position: fixed;
  top: 0;
  width: 100%;
  height: 100%;
  overflow-y: scroll;
  visibility: hidden;
  z-index: -10;
}

#title nav .show-top-menu {
  visibility: visible;
  z-index: 10;
}

#title nav menu li a {
  color: #e8e6e6;
  font-size: 15px;
  padding: 20px 16px;
  display: block;
  text-align: center;
}

#title img {
  min-height: 32vw;
}

#welcome {
  display: none;
}

/* Team leaders */

#leaders {
  width: 100%;
  text-align: center;
}

#leaders,
#advantages > div,
#contact-us,
#about-us,
#gallery {
  padding: 72px 0;
}

#leaders h2,
#gallery h2 {
  color: #a95e39;
  margin: 0;
}

#leaders h2,
#gallery h2,
#contact-us h2,
#about h2 {
  font-size: 24px;
}

#leaders > p,
#gallery p {
  line-height: 30px;
  width: 75%;
  margin: 50px auto;
}

#leaders .leader-cont {
  width: 75%;
  display: inline-block;
  margin: 0 20px;
}

#leaders .leader-cont img {
  min-height: 28vw;
}

#leaders .leader-cont h3 {
  margin: 33px auto 20px auto;
}

#leaders .leader-cont p {
  font-size: 15px;
  margin: 0 0 50px 0;
  line-height: 24px;
}

/* Advantages */

#advantages {
  background-color: #1f3138;
  text-align: center;
}

#advantages > div {
  margin: auto;
  width: 75%;
}

#advantages > div ul {
  width: 100%;
  float: left;
}

#advantages > div ul li:first-child {
  color: #88543b;
  font-size: 52px;
  font-weight: bold;
  margin-bottom: 16px;
}

#advantages > div ul li:last-child {
  color: #fff;
  font-size: 18px;
}

#advantages img {
  margin-bottom: -5px;
  min-height: 48vw;
}

/* Contact us */

#contact-us {
  position: relative;
}

#contact-us::before {
  content: '';
  background-color: #2a3e47;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  opacity: 0.9;
  position: absolute;
  z-index: -1;
}

#contact-us::after {
  content: '';
  background-image: url('assets/img/contact-us-1.jpg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  position: absolute;
  z-index: -2;
}

#contact-us h2,
#contact-us p {
  text-align: center;
}

#contact-us h2 {
  margin: 0;
  color: #fff;
}

#contact-us p {
  width: 75%;
  color: #c0c0c0;
  margin: 50px auto;
  line-height: 30px;
}

#contact-us form {
  width: 70%;
  max-width: 1024px;
  margin: auto;
}

#contact-us form input,
#contact-us form textarea,
#contact-us form input[type='email'] {
  width: 100%;
  font-size: 15px;
  outline: none;
}

#contact-us form input::placeholder,
#contact-us form textarea::placeholder {
  color: #8f8f8f;
}

#contact-us form input {
  background-color: transparent;
  border: 0;
  border-bottom: 1px solid #bfbfbf;
  color: #8f8f8f;
  padding: 6px;
  margin: 0 5% 60px 0;
}

#contact-us form textarea {
  background-color: transparent;
  border: 0;
  border-bottom: 1px solid #bfbfbf;
  color: #8f8f8f;
  height: 150px;
  margin-bottom: 30px;
  resize: none;
}

#contact-us form input[type='submit'] {
  margin: 20px 0 0 0;
  color: #fff;
  background-color: #89553b;
  border: 0;
  padding: 10px;
  text-align: center;
  width: 25%;
}

/* Custom select */
.custom-select {
  position: relative; /* The container must be positioned relative. */
  width: 100%; /* Remember to set the width. */
  display: inline-block;
  font-size: 15px;
  margin: 0 0 60px 0;
}

.custom-select select {
  display: none; /*hide original SELECT element: */
}

.select-selected {
  background-color: transparent;
  border: 0;
  border-bottom: 1px solid #bfbfbf;
  color: #8f8f8f;
}

/* Style the arrow inside the select element: */
.select-selected:after {
  position: absolute;
  content: '';
  top: 14px;
  right: 10px;
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-color: #8f8f8f transparent transparent transparent;
}

/* Point the arrow upwards when the select box is open (active): */
.select-selected.select-arrow-active:after {
  border-color: transparent transparent #8f8f8f transparent;
  top: 7px;
}

/* style the items (options), including the selected item: */
.select-items div,
.select-selected {
  color: #8f8f8f;
  padding: 5px;
  background-color: transparent;
  border: 0;
  border-bottom: 1px solid #bfbfbf;
  cursor: pointer;
}

/* Style items (options): */
.select-items {
  position: absolute;
  background-color: #fff;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 99;
}

/* Hide the items when the select box is closed: */
.select-hide {
  display: none;
}

.same-as-selected {
  background-color: rgba(0, 0, 0, 0.1);
}

/* Custom select end*/

/* About us */

#about-us {
  text-align: center;
  position: relative;
  padding-right: 2.5%;
  padding-left: 2.5%;
}

#about-us::before {
  content: '';
  background-color: #eee;
  background-image: url('assets/img/about-us-01.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: 0.1;
  z-index: -1;
}

#about-us > img {
  width: 85%;
  min-height: 24vw;
  background-color: #eee;
  margin-bottom: 10px;
}

#about {
  background-color: #f9f9fb;
  width: 85%;
  border: 1px solid #d2d3d7;
  padding: 20px 10px 10px 10px;
  text-align: center;
  margin: auto;
}

#about h2 {
  margin-bottom: 0;
}

#about p {
  width: 90%;
  margin: 25px auto;
  font-size: 15px;
  line-height: 24px;
  color: #3d3d3d;
}

#about .image-text {
  width: 75%;
  margin: auto;
}

#about .image-text img {
  width: 70%;
  min-height: 8vw;
  border-radius: 50%;
}

#about .image-text h5 {
  border: 2px solid #323648;
  width: 90%;
  padding: 8px 4px;
  margin-right: auto;
  margin-left: auto;
}

#about .image-text .vl {
  border-left: 2px solid #323648;
  height: 20px;
  margin: -5px 0 -24px 50%;
}

/* Gallery */

#gallery {
  text-align: center;
  padding-bottom: 0;
}

#gallery i.fas.fa-angle-right,
#gallery i.fas.fa-angle-left {
  background-color: #88543a;
  font-size: 24px;
  color: #b7afaa;
  width: 55px;
  height: 55px;
  line-height: 55px;
  border-radius: 50%;
  margin: 10px;
  padding: 0 0 0 2px;
  cursor: pointer;
  position: absolute;
  right: 2vw;
}

#gallery i.fas.fa-angle-left {
  background-color: unset;
  color: #88543a;
  border: 3px solid #88543a;
  line-height: 49px;
  padding: 0 2px 0 0;
  right: unset;
  left: 2vw;
}

#gallery .slider-arrow-next:hover i.fas.fa-angle-right,
#gallery .slider-arrow-next:focus i.fas.fa-angle-right,
#gallery .slider-arrow-prev:hover i.fas.fa-angle-left,
#gallery .slider-arrow-prev:focus i.fas.fa-angle-left {
  border: 2px solid #000;
}

/* Top footer */

#top-footer {
  padding: 40px;
  background-color: #1b2c33;
  overflow: hidden;
}

#top-footer .widget {
  width: 100%;
  float: left;
  color: #d2d3d7;
}

#top-footer .widget h3 {
  font-size: 18px;
}

#top-footer .widget ul li {
  padding: 9px 0;
}

#top-footer .widget ul li a {
  font-size: 16px;
  color: #d2d3d7;
}

#top-footer .widget p {
  font-size: 14px;
  margin: 8px auto;
}

#top-footer .widget p a {
  color: #d2d3d7;
}

#top-footer .widget p i {
  padding: 10px;
}

/* Bottom footer */

#bottom-footer {
  padding: 32px 16px;
  background-color: #000;
  color: #cdcbcb;
  overflow: hidden;
  text-align: center;
}

#bottom-footer p {
  line-height: 25px;
  font-size: 16px;
  margin: 0 0 24px;
}

#bottom-footer div a i {
  font-size: 22px;
  color: #fff;
  padding: 7px 0;
  width: 35px;
  border: 1px solid #fff;
  margin: 0 3px;
  transition: 0.5s;
}

/* For devices with 576px width and more */

@media only screen and (min-width: 576px) {
  /* Back to top button */

  #back-to-top {
    bottom: 20px;
    left: 20px;
  }

  /* Main header */

  #main-header {
    text-align: left;
    margin: 32px 40px;
  }

  /* Title section */

  #open-top-menu i,
  #close-top-menu i {
    font-size: 18px;
  }

  #welcome {
    display: block;
    position: absolute;
    right: 10%;
    bottom: 10%;
    text-align: center;
  }

  #welcome h2 {
    color: #fcf9f7;
    font-size: 24px;
    margin-bottom: 14px;
  }

  #welcome h3 {
    color: #d7794a;
    font-size: 18px;
    margin-top: 0px;
  }

  /* Team leaders */

  #leaders h2,
  #gallery h2,
  #contact-us h2,
  #about h2 {
    font-size: 30px;
  }

  /* Top footer */

  #top-footer .widget {
    width: 50%;
  }

  #top-footer .widget:nth-child(odd) {
    padding-right: 16px;
  }

  #top-footer .widget:nth-last-child(2) {
    width: 100%;
    padding-right: 0;
  }

  #top-footer .widget:nth-last-child(2) p {
    float: left;
    width: 50%;
  }
}

/* For devices with 768px width and more */

@media only screen and (min-width: 768px) {
  /* Back to top button */

  #back-to-top {
    bottom: 20px;
    left: 30px;
  }

  /* Title section */

  #open-top-menu i,
  #close-top-menu i {
    font-size: 19px;
  }

  #welcome h2 {
    font-size: 30px;
  }

  #welcome h3 {
    font-size: 24px;
  }

  /* Team leaders */

  #leaders h2,
  #gallery h2,
  #contact-us h2,
  #about h2 {
    font-size: 36px;
  }

  #leaders > p,
  #gallery p {
    font-size: 18px;
    margin: 50px auto 90px auto;
  }

  #leaders .leader-cont {
    width: 25%;
  }

  #leaders .leader-cont h3 {
    margin: 33px auto 36px auto;
  }

  #leaders .leader-cont p {
    margin: 0;
  }

  /* Advantages */

  #advantages > div {
    width: 95%;
  }

  #advantages > div ul {
    width: 25%;
  }

  #advantages > div ul li:first-child {
    font-size: 42px;
  }

  #advantages > div ul li:last-child {
    font-size: 16px;
  }

  /* Contact us */

  #contact-us p {
    width: 65%;
    font-size: 18px;
  }

  #contact-us form input {
    width: 45%;
    font-size: 16px;
  }

  #contact-us form input[type='email'] {
    width: 96%;
  }

  #contact-us form textarea {
    max-width: 97%;
    font-size: 16px;
  }

  #contact-us form input[type='submit'] {
    margin: 0 10px 0 0;
    float: right;
  }

  /* Custom select */
  .custom-select {
    width: 45%; /* Remember to set the width. */
    font-size: 16px;
  }
}

/* For devices with 992px width and more */

@media only screen and (min-width: 992px) {
  /* Title section */

  #open-top-menu,
  #close-top-menu {
    display: none;
  }

  #title nav menu {
    background: rgba(31, 49, 56, 0.5);
    padding: 0;
    height: auto;
    position: absolute;
    overflow-y: hidden;
    visibility: visible;
    z-index: 10;
  }

  #title nav menu li:first-child {
    margin-left: 20px;
  }

  #title nav menu li a {
    padding: 20px;
    float: left;
    transition: 0.5s;
  }

  #welcome h2 {
    font-size: 36px;
  }

  #welcome h3 {
    font-size: 30px;
  }

  /* Leaders section */

  #leaders h2,
  #gallery h2,
  #contact-us h2 {
    font-size: 42px;
  }

  /* About us */

  #about-us > img {
    width: 45%;
  }

  #about {
    width: 50%;
    float: right;
    margin: 3.5% 0 0 0;
  }

  #about p {
    width: 80%;
  }

  #about .image-text {
    float: left;
    width: 33.3%;
  }

  /* Top footer */

  #top-footer .widget {
    width: 25%;
    padding-right: 16px;
  }

  #top-footer .widget:nth-child(4) {
    padding-right: 0;
  }

  #top-footer .widget ul li {
    padding: 6px 0;
  }

  #top-footer .widget:nth-last-child(2) p {
    float: unset;
    width: unset;
  }

  /* Bottom footer */

  #bottom-footer {
    padding-right: 88px;
    padding-left: 88px;
  }

  #bottom-footer p {
    float: left;
    margin: 0;
    padding: 7px 7px 7px 0;
  }

  #bottom-footer div {
    float: right;
  }
}

/* For devices with 1200px width and more */

@media only screen and (min-width: 1200px) {
  /* Advantages */

  #advantages > div ul li:first-child {
    font-size: 52px;
  }

  #advantages > div ul li:last-child {
    font-size: 18px;
  }

  /* Top footer */

  #top-footer .widget {
    width: 20%;
  }

  #top-footer .widget:nth-child(4) {
    padding-right: 16px;
  }

  #top-footer .widget:nth-last-child(2) {
    width: 20%;
  }
}

/* For hoverable devices */

@media only screen and (hover: hover) {
  /* Back to top button */

  #back-to-top:hover {
    background-color: #d7794a;
  }

  /* Title section */

  #title nav menu li a:hover {
    background: rgba(0, 179, 240, 0.5);
    cursor: pointer;
  }

  /* Contact us - Custom select */

  .select-items div:hover {
    background-color: rgba(0, 0, 0, 0.1);
  }

  /* Top footer */

  #top-footer .widget ul li a:hover {
    text-decoration: underline;
  }

  #top-footer .widget p a:hover {
    text-decoration: underline;
  }

  /* Bottom footer */

  #bottom-footer div a i:hover {
    color: #999;
  }
}
