/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/

body {
  background: #fff;
  color: #444;
  font-family: "Open Sans", sans-serif;
}

a {
  color: #007bff;
  transition: 0.5s;
}

a:hover,
a:active,
a:focus {
  color: #0b6bd3;
  outline: none;
  text-decoration: none;
}

p {
  padding: 0;
  margin: 0 0 30px 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  margin: 0 0 20px 0;
  padding: 0;
}

/* Back to top button */

.back-to-top {
  position: fixed;
  display: none;
  background: #007bff;
  color: #fff;
  width: 44px;
  height: 44px;
  text-align: center;
  line-height: 1;
  font-size: 16px;
  border-radius: 50%;
  right: 15px;
  bottom: 15px;
  transition: background 0.5s;
  z-index: 11;
}

.back-to-top i {
  padding-top: 12px;
  color: #fff;
}

/* Prelaoder */

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  overflow: hidden;
  background: #fff;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #f2f2f2;
  border-top: 6px solid #007bff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  -webkit-animation: animate-preloader 1s linear infinite;
  animation: animate-preloader 1s linear infinite;
}

@-webkit-keyframes animate-preloader {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes animate-preloader {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/

#header {
  height: 80px;
  transition: all 0.5s;
  z-index: 997;
  transition: all 0.5s;
  padding: 20px 0;
  background: #fff;
  box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.3);
}

#header.header-scrolled,
#header.header-pages {
  height: 60px;
  padding: 10px 0;
}

#header .logo h1 {
  font-size: 36px;
  margin: 0;
  padding: 0;
  line-height: 1;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
}

#header .logo h1 a,
#header .logo h1 a:hover {
  color: #00366f;
  text-decoration: none;
}

#header .logo img {
  padding: 0;
  max-height: 40px;
}


/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/

/* Desktop Navigation */

.main-nav {
  /* Drop Down */
  /* Deep Drop Down */
}

.main-nav,
.main-nav * {
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav > ul > li {
  position: relative;
  white-space: nowrap;
  float: left;
}

.main-nav a {
  display: block;
  position: relative;
  color: #ababab;
  padding: 10px 15px;
  transition: 0.3s;
  font-size: 14px;
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
}

.main-nav a:hover,
.main-nav .active > a,
.main-nav li:hover > a {
  color: #2a439d;
  text-decoration: none;
}
/*.main-nav .active:before {
    content: '';
    top: -40px;
    left: 0;
    height: 44px;
    position: absolute;
    border-radius: 0 0 8px 8px;
    background: rgba(41, 70, 153, 1) 0% 0% no-repeat padding-box;
    width: 100%;
}
.main-nav .active:after {
    content: '';
    bottom: 0;
    left: 0;
    height: 4px;
    position: absolute;
    border-radius: 8px;
    background: rgba(41, 70, 153, 1) 0% 0% no-repeat padding-box;
    width: 100%;  
}*/
.main-nav .drop-down ul {
  display: block;
  position: absolute;
  left: 0;
  top: calc(100% + 30px);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  padding: 10px 0;
  background: #fff;
  box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
  transition: ease all 0.3s;
}

.main-nav .drop-down:hover > ul {
  opacity: 1;
  top: 100%;
  visibility: visible;
}

.main-nav .drop-down li {
  min-width: 180px;
  position: relative;
}

.main-nav .drop-down ul a {
  padding: 10px 20px;
  font-size: 13px;
  color: #004289;
}

.main-nav .drop-down ul a:hover,
.main-nav .drop-down ul .active > a,
.main-nav .drop-down ul li:hover > a {
  color: #007bff;
}

.main-nav .drop-down > a:after {
  content: "\f107";
  font-family: FontAwesome;
  padding-left: 10px;
}

.main-nav .drop-down .drop-down ul {
  top: 0;
  left: calc(100% - 30px);
}

.main-nav .drop-down .drop-down:hover > ul {
  opacity: 1;
  top: 0;
  left: 100%;
}

.main-nav .drop-down .drop-down > a {
  padding-right: 35px;
}

.main-nav .drop-down .drop-down > a:after {
  content: "\f105";
  position: absolute;
  right: 15px;
}

/* Mobile Navigation */

.mobile-nav {
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: 9999;
  overflow-y: auto;
  left: -260px;
  width: 260px;
  padding-top: 18px;
  background: rgba(19, 39, 57, 0.8);
  transition: 0.4s;
}

.mobile-nav * {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-nav a {
  display: block;
  position: relative;
  color: #fff;
  padding: 10px 20px;
  font-weight: 500;
}

.mobile-nav a:hover,
.mobile-nav .active > a,
.mobile-nav li:hover > a {
  color: #74b5fc;
  text-decoration: none;
}

.mobile-nav .drop-down > a:after {
  content: "\f078";
  font-family: FontAwesome;
  padding-left: 10px;
  position: absolute;
  right: 15px;
}

.mobile-nav .active.drop-down > a:after {
  content: "\f077";
}

.mobile-nav .drop-down > a {
  padding-right: 35px;
}

.mobile-nav .drop-down ul {
  display: none;
  overflow: hidden;
}

.mobile-nav .drop-down li {
  padding-left: 20px;
}

.mobile-nav-toggle {
  position: fixed;
  right: 0;
  top: 0;
  z-index: 9998;
  border: 0;
  background: none;
  font-size: 24px;
  transition: all 0.4s;
  outline: none !important;
  line-height: 1;
  cursor: pointer;
  text-align: right;
}

.mobile-nav-toggle i {
  margin: 18px 18px 0 0;
  color: #004289;
}

.mobile-nav-overly {
  width: 100%;
  height: 100%;
  z-index: 9997;
  top: 0;
  left: 0;
  position: fixed;
  background: rgba(19, 39, 57, 0.8);
  overflow: hidden;
  display: none;
}

.mobile-nav-active {
  overflow: hidden;
}

.mobile-nav-active .mobile-nav {
  left: 0;
}

.mobile-nav-active .mobile-nav-toggle i {
  color: #fff;
}

/*--------------------------------------------------------------
# Sections
--------------------------------------------------------------*/

/* Sections Header
--------------------------------*/

.section-header h3 {
  font-size: 36px;
  color: #283d50;
  text-align: center;
  font-weight: 500;
  position: relative;
}

.section-header p {
  text-align: center;
  margin: auto;
  font-size: 15px;
  padding-bottom: 60px;
  color: #556877;
  width: 50%;
}

/* Section with background
--------------------------------*/

.section-bg {
  background: #ecf5ff;
}


section {
  padding: 50px 0;
  position: relative;
  min-height: calc(100vh - 60px);
  background: rgba(236, 236, 236, 1);
}
section .page-title {
  font-size: 40px;
  color: rgba(255, 255, 255, 1);
  text-align: center;
  text-transform: capitalize;
}
@media only screen and (min-width: 576px){
  section .page-title {
    font-size: 40px;
    color: rgba(255, 255, 255, 1);
    top: 50%;
    left: 0;
    position: absolute;
    transform: rotate(-180deg) translate(0, 50%);
    writing-mode: vertical-lr;
  }
}

/* Services Section
--------------------------------*/
section#services .container, section#typesOfMaterail .container {
  position: relative;
  min-height: calc(100vh - 110px);
}

section#services {
  padding-top: 100px;
  background: transparent linear-gradient(180deg, rgba(17, 28, 65, 1) 0%, rgba(41, 70, 153, 1) 100%) 0% 0% no-repeat padding-box;
}
@media only screen and (min-width: 768px){
  section#services .civil, section#services .excavation, section#services .utilities {
    position: absolute;  
  }
  section#services .excavation {
    transform: translate(-50%, 0);
    z-index: 0;
  }
  section#services .civil, section#services .utilities {
    z-index: 1;  
  }
}
@media only screen and (min-width: 1201px){
  section#services .civil {
    width: 22vw;
    top: 300px;
    left: 110px;
  }
  section#services .excavation {
    width: 27vw;
    top: 5%;
    left: 50%;
    /*transform: translate(-50%, 0);*/
  }
  section#services .utilities {
    width: 16vw;
    right: 170px;
    top: 300px;
  }
}
@media only screen and (min-width: 992px) and (max-width: 1200px){
  section#services .civil {
    width: 26vw;
    top: 270px;
    left: 120px;
  }
  section#services .excavation {
    width: 40vw;
    top: 5%;
    left: 50%;
  }
  section#services .utilities {
    width: 20vw;
    right: 130px;
    top: 260px;
  }
}
@media only screen and (min-width: 768px) and (max-width: 991px) {
  section#services .civil {
    left: 60px;
    width: 30vw;
    top: 250px;
  }
  section#services .excavation {
      width: 45vw;
      top: 5%;
      left: 50%;
  }
  section#services .utilities {
    right: 20px;
    width: 28vw;
    top: 250px;
  }
}
@media only screen and (max-width: 767px) {
  section#services .civil, section#services .excavation, section#services .utilities {
    text-align: center;
  }
}
section#services .civil h3,
section#services .excavation h3,
section#services .utilities h3 {
  color: rgba(255, 255, 255, 1);
  margin-bottom: 5px;
  text-align: center;
  text-transform: uppercase;
}
@media only screen and (min-width: 768px){
  section#services .civil h3 {
    text-align: left;
  }
  section#services .utilities h3 {
    text-align: right;
  }
}

section#services:before, section#typesOfMaterail:before {
  content: '"The Dirt Movers"';
  font-size: 3rem;
  font-family: 'Alatsi', sans-serif;
  font-style: italic;
  color: #18295d;
  top: 80px;
  right: 15px;
  position: absolute;
  text-shadow: 2px 0 0 #fff, -2px 0 0 #fff, 0 2px 0 #fff, 0 -2px 0 #fff, 1px 1px #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff;
}
section#typesOfMaterail:before {
  color: #1b6a6f;
  bottom: 45px;
  left: 15px;
  top: auto;
  right: auto;
}
@media only screen and (max-width: 992px){
  section#services:before, section#typesOfMaterail:before {
    font-size: 2rem;
    top: 60px;
  }
  section#typesOfMaterail:before {
    color: #1b6a6f;
    bottom: 45px;
    top: auto;
  }
}
/* Types of Material Section
--------------------------------*/
section#typesOfMaterail {
  background: transparent linear-gradient(180deg, rgba(17, 28, 65, 0.83) 0%, rgba(23, 110, 112, 1) 100%) 0% 0% no-repeat padding-box;
}
section#typesOfMaterail .sand {
  width: 18vw;
  top: 15px;
  left: 30px;
  position: absolute;
}
section#typesOfMaterail .dirt {
  width: 27vw;
  top: 50%;
  left: 50%;  
  position: absolute;
  transform: translate(-50%, -50%);
}
section#typesOfMaterail .rock {
  width: 17vw;
  position: absolute;
  right: 20px;
  bottom: 0px;
}

@media only screen and (max-width: 1200px){
  section#typesOfMaterail .sand {
    width: 21vw;
  }
  section#typesOfMaterail .dirt {
    width: 36vw;
  }
  section#typesOfMaterail .rock {
    width: 22vw;
  }
}
section#typesOfMaterail figure img {
    box-shadow: 20px 20px 0px -5px rgba(95, 150, 154, 1);
}
section#typesOfMaterail .sand h3,
section#typesOfMaterail .dirt h3,
section#typesOfMaterail .rock h3 {
  color: rgba(255, 255, 255, 1);
  margin-bottom: 10px;
  text-align: center;
  text-transform: uppercase;
}
/* About Us Section
--------------------------------*/

section#aboutUs {
  background: transparent url('../img/bg-contact-us.jpg') center center no-repeat padding-box;
  background-size: cover;
  background-attachment: fixed;
}
#aboutUs::before {
    content: '';
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    position: absolute;
    z-index: 0;
    background: rgba(47, 47, 47, 0.6);
}
section#aboutUs h3 {
    font-size: 20px;
    font-weight: 500;
    color: rgba(255, 255, 255, 1);
    margin: 30px auto 50px;
    padding: 20px 80px;
    border-radius: 8px;
    display: table;
    position: relative;
    z-index: 1;
    background: rgba(41, 70, 153, 1) 0% 0% no-repeat padding-box;
}
@media only screen and (max-width: 767px) {
  section#aboutUs h3 {
    font-size: 18px;
    padding: 20px;
    text-align: center;
  }
}
/* Contact Section
--------------------------------*/
/*#contactUs {
  background: transparent url('../img/bg-contact-us.jpg') center center no-repeat padding-box;
  background-size: cover;
}*/
section#contactUs .page-title {
  font-size: 40px;
  color: rgb(45, 45, 45);
}
#contactUs .section-header {
  padding-bottom: 30px;
}

#contactUs h5 {
  font-weight: 500;
}
#contactUs ul {
    list-style: none;
    margin: 0 0 30px 30px;
    padding: 0;
}
#contactUs ul li {
  margin-bottom: 5px;
}
#contactUs ul li i {
  margin: 0 5px 0 -25px;
  width: 20px;
}
#contactUs .form #sendmessage {
  color: #007bff;
  border: 1px solid #007bff;
  display: none;
  text-align: center;
  padding: 15px;
  font-weight: 600;
  margin-bottom: 15px;
}

#contactUs .form #errormessage {
  color: red;
  display: none;
  border: 1px solid red;
  text-align: center;
  padding: 15px;
  font-weight: 600;
  margin-bottom: 15px;
}

#contactUs .form #sendmessage.show,
#contactUs .form #errormessage.show,
#contactUs .form .show {
  display: block;
}

#contactUs .form .validation {
  color: red;
  display: none;
  margin: 0 0 20px;
  font-weight: 400;
  font-size: 13px;
}

#contactUs .form input,
#contactUs .form textarea {
  border-radius: 0;
  box-shadow: none;
  font-size: 14px;
}

#contactUs .form button[type="submit"] {
  background: #007bff;
  border: 0;
  border-radius: 20px;
  padding: 8px 30px;
  color: #fff;
  transition: 0.3s;
}

#contactUs .form button[type="submit"]:hover {
  background: #0067d5;
  cursor: pointer;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/

#footer {
  background: #2a439c;
  padding: 0 0 30px 0;
  color: #eee;
  font-size: 14px;
}

#footer .copyright {
  text-align: center;
  padding-top: 30px;
}

/*--------------------------------------------------------------
# Responsive Media Queries
--------------------------------------------------------------*/

@media (max-width: 991px) {
  #header {
    height: 60px;
    padding: 10px 0;
  }

  #header .logo h1 {
    font-size: 28px;
    padding: 8px 0;
  }

  #intro {
    padding: 140px 0 60px 0;
  }

  #intro .intro-img {
    width: 80%;
    float: none;
    margin: 0 auto 25px auto;
  }

  #intro .intro-info {
    width: 80%;
    float: none;
    margin: auto;
    text-align: center;
  }

}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 15px;
  }
}

@media (max-width: 767px) {
  #intro .intro-info {
    width: 100%;
  }

  #intro .intro-info h2 {
    font-size: 34px;
    margin-bottom: 30px;
  }

  .section-header p {
    width: 100%;
  }
}

@media (max-width: 574px) {
  #intro {
    padding: 100px 0 20px 0;
  }
}