@import url("https://fonts.googleapis.com/css2?family=Gelasio:wght@400;500&family=Poppins:wght@200;300;400&display=swap");
:root {
  --orange: #f08700;
  --blue: #0d09c8;
  --white: #ffffff;
  --grey: rgb(241, 241, 241);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  max-width: 1350px;
  font-family: "Poppins", sans-serif;
  color: #252525;
}
a {
  text-decoration: none;
  color: #252525;
}
li {
  list-style: none;
}
h1,
h3 {
  text-transform: uppercase;
}
h1 {
  font-size: 4.5em;
  color: var(--orange);
  border-bottom: 3px solid;
}
h2 {
  margin-bottom: 5px;
  font-size: 1.1em;
  font-family: "Gelasio", serif;
}
#wrapper {
  width: 100%;
}
#back-to-top {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10;
  font-size: 1.5em;
  width: 50px;
  height: 50px;
  background-color: var(--white);
  color: var(--orange);
  cursor: pointer;
  outline: none;
  border: 3px solid var(--orange);
  border-radius: 50%;
  transition-duration: 0.2s;
  transition-timing-function: ease-in-out;
  -moz-transition-property: background-color, color;
}
#back-to-top:hover,
#back-to-top:focus {
  background-color: var(--orange);
  color: var(--white);
}
.flex_div {
  display: flex;
}
.container_wrap {
  margin: 0 auto;
  width: 60%;
  padding: 1%;
}
header {
  -webkit-box-shadow: 0px 4px 15px 5px #d3d3d3;
  box-shadow: 0px 4px 15px 5px #d3d3d3;
}
#header_upper {
  margin: 0 auto;
  padding: 0.5%;
  justify-content: center;
  align-items: center;
  background-color: var(--orange);
}
#contacts {
  width: 55%;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  color: var(--white);
}
#contacts a {
  color: var(--white);
}
.fa_icon::before {
  display: inline-block;
  margin-right: 15px;
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
}
.phone::before {
  content: "\f095";
}
.email::before {
  content: "\f0e0";
}
#header_inner {
  justify-content: space-between;
  align-items: center;
}
#logo {
  display: inline-block;
  width: 20%;
  margin-left: 50px;
  padding: 1%;
}
#logo img {
  width: 100%;
}
nav {
  width: 70%;
}
.nav_links {
  margin: 20px auto;
  justify-content: space-around;
}
.nav_links a {
  padding: 25px 55px;
  border-radius: 4px;
  transition: all 0.15s ease-in;
}
.nav_links a:hover,
.current {
  color: var(--white);
  background-color: var(--orange);
}
.burger {
  display: none;
  cursor: pointer;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: var(--orange);
  margin: 5px;
  transition: all 0.3s ease;
}
#hero_pic {
  background: url(img/IMG030.edited.jpg) 0 40% / cover no-repeat;
  height: 550px;
  padding: 1% 5%;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: var(--white);
}
#hero_pic div {
  justify-content: flex-end;
}
#hero_pic p.text_large {
  font-size: 4em;
  font-weight: 800;
  text-transform: uppercase;
}
#hero_pic p:nth-child(2) {
  width: 50%;
  margin-bottom: 20px;
}
#hero_pic button {
  margin-right: 20px;
}
#hero_pic button a {
  display: inline-block;
  padding: 10px 30px;
  border-radius: 4px;
  font-size: 1.2em;
  color: var(--white);
}
#hero_pic button {
  border: 1px solid var(--orange);
  border-radius: 4px;
}
#hero_pic button:nth-child(1) {
  background-color: var(--orange);
}
#hero_pic button:nth-child(2) {
  background-color: #f0880000;
}
#hero_pic button a {
  display: inline-block;
  padding: 10px 30px;
  border-radius: 4px;
  font-size: 1.2em;
  color: var(--white);
  transition: all 0.15s ease-in-out;
}
#hero_pic button a:hover {
  background-color: var(--white);
  color: var(--orange);
}

/*ABOUT US*/
#about {
  padding: 5%;
  background-color: var(--grey);
}
#about_wrap {
  justify-content: space-around;
  align-items: flex-end;
}
#about_wrap_text {
  width: 60%;
  margin-right: 20px;
  text-align: justify;
}
#about_wrap_text h1 {
  margin-bottom: 20px;
}
#about_pic {
  background: url(img/IMG014sm.jpg) 60% 30% / cover no-repeat;
  width: 300px;
  height: 300px;
}
/* SERVICES */
#services {
  padding: 5%;
  position: relative;
}
#services div {
  justify-content: space-between;
}
#services h1 {
  position: absolute;
  margin-bottom: 20px;
  border-bottom: 3px solid;
}
#services_inner {
  padding: 8% 15%;
  color: var(--white);
  background-color: var(--blue);
}
#services_inner li::before {
  display: inline-block;
  content: "\f058";
  margin-right: 10px;
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 0.8em;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
}

/* CLIENTS */
#clients {
  position: relative;
  overflow: hidden;
  padding: 5%;
  background-color: var(--grey);
}
#clients h1 {
  margin-bottom: 50px;
}
.client-area {
  padding: 150px 0 0;
}
.slick-slide {
  margin: 0 20px;
}
.slick-slide img {
  width: 100%;
}
.slick-list {
  position: relative;
  display: block;
  overflow: hidden;
  margin: 0;
  padding: 0;
}
.slick-list:focus {
  outline: none;
}
.slick-slide {
  display: none;
  float: left;
  height: 100%;
  min-height: 1px;
}
.slick-slide img {
  display: block;
}
.slick-initialized .slick-slide {
  display: block;
}
.slick-loading .slick-slide {
  visibility: hidden;
}
#clients img {
  width: 150px;
}

/* ABOUT US PAGE */
#about_us,
#service,
#projects {
  margin-top: 50px;
}
.about_flex_col {
  flex-direction: column;
}
#about_us h1,
#service h1,
#projects h1 {
  margin-bottom: 50px;
}
#purpose {
  background-color: var(--grey);
  padding: 5% 0;
}
#purpose_inner {
  justify-content: space-between;
  align-items: flex-start;
}
#purpose_inner div {
  width: 95%;
}
.purpose_pic {
  width: 300px;
  height: 300px;
  margin-bottom: 20px;
}
#mission_pic {
  background: url(img/3/IMG010.jpeg) 50% / cover no-repeat;
}
#vision_pic {
  background: url(img/1/IMG015.jpeg) 50% 20% / cover no-repeat;
}
#credentials_pic {
  background: url(img/IMG013sm.jpg) 50% 20% / cover no-repeat;
  margin-right: 50px;
}
#purpose h3,
#credentials h3 {
  margin-bottom: 10px;
  color: var(--orange);
}
#mission p {
  margin-bottom: 5px;
}
#mission li {
  margin-bottom: 10px;
}
#mission li::before,
#credentials li::before,
#service li::before {
  display: inline-block;
  margin-right: 15px;
  content: "\f111";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 0.5em;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
}
#credentials {
  padding: 5% 0;
  justify-content: flex-start;
  align-items: center;
}

/* SERVICES PAGE*/
.service_div {
  position: relative;
  padding: 15% 0 4%;
}
#service_head ~ div {
  height: 500px;
}
#service .pic {
  width: 300px;
  height: 300px;
  position: absolute;
  top: 70px;
  left: 310px;
  -webkit-box-shadow: 0px 4px 15px 5px #d3d3d3;
  box-shadow: 0px 4px 15px 5px #0000007c;
}
.service_div div:nth-child(2) {
  width: 100%;
  height: 200px;
  padding: 5% 5% 5% 55%;
  color: var(--white);
}
.service_div.odd div:nth-child(2) {
  background-color: var(--orange);
}
.service_div.even div:nth-child(2) {
  background-color: var(--blue);
}
#general .pic {
  background: url(img/3/IMG011.jpeg) 50% / cover no-repeat;
}
#civil .pic {
  background: url(img/IMG037.jpeg) 50% / cover no-repeat;
}
#road_maintenance .pic {
  background: url(img/4/IMG03.jpeg) 50% / cover no-repeat;
}
#road_construction .pic {
  background: url(img/4/IMG04.jpeg) 50% / cover no-repeat;
}
#fencing .pic {
  background: url(img/3/IMG011.jpeg) 50% / cover no-repeat;
}
#mechanical .pic {
  background: url(img/IMG039.jpg) 50% / cover no-repeat;
}
#general,
#road_maintenance,
#fencing {
  background-color: var(--grey);
}

/* PROJECTS PAGE */
.wrapper {
  max-width: 1100px;
}
.wrapper h3 {
  margin: 40px 0 10px;
}
.wrapper .gallery {
  display: flex;
  flex-wrap: wrap;
}
.gallery span {
  display: flex;
  width: 100%;
  overflow: hidden;
}
.gallery .image {
  padding: 7px;
  width: calc(100% / 4);
}
.gallery .image img {
  width: 100%;
  height: auto;
  vertical-align: middle;
  transition: all 0.3s ease;
}
.gallery .image:hover img {
  transform: scale(1.1);
}
.preview-box {
  position: fixed;
  max-width: 700px;
  width: 100%;
  top: 50%;
  left: 50%;
  z-index: 5;
  transform: translate(-50%, -50%) scale(0, 9);
  background: #ffffff;
  padding: 0 5px 5px 5px;
  opacity: 0;
  pointer-events: none;
  border-radius: 3px;
  box-shadow: 0 0 15px grey;
}
.preview-box.show {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
  transition: all 0.3s ease;
}
.preview-box .details {
  display: flex;
  align-items: center;
  padding: 12px 15px 12px 10px;
  justify-content: space-between;
}
.preview-box .details .icon {
  color: purple;
  cursor: pointer;
  font-size: 20px;
}
.details .title {
  display: flex;
  font-size: 18px;
  font-weight: 400;
}
.details .title p {
  margin: 0 5px;
}
.details .title p.current-img {
  font-weight: 600;
}
.preview-box .img-box {
  display: flex;
  width: 100%;
}
.img-box .slide {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 30px;
  cursor: pointer;
  color: #ffffff;
  width: 60px;
  height: 50px;
  line-height: 50px;
  text-align: center;
}
.img-box .slide.prev {
  left: 0;
}
.img-box .slide.next {
  right: 0;
}
.preview-box .img-box img {
  width: 100%;
  height: 90vh;
  object-fit: cover;
  border-radius: 0 0 3px 3px;
}
.shadow {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 3;
  height: 100%;
  width: 100%;
  display: none;
  background: rgba(0, 0, 0, 0.4);
}
/*FOOTER*/
footer {
  flex-wrap: wrap;
  padding: 2%;
  background-color: var(--blue);
  color: var(--white);
}
footer a {
  background-color: var(--blue);
  color: var(--white);
}
footer.flex_div {
  justify-content: space-around;
  align-items: flex-start;
}
.footer_head {
  margin-bottom: 10px;
  font-weight: 600;
}
footer div {
  min-width: calc(100% / 5);
  padding: 1%;
}

/* Animations */
.btnEntrance {
  animation-duration: 0.5s;
  animation-fill-mode: both;
  animation-name: btnEntrance;
}
/* zoomIn*/
@keyframes btnEntrance {
  from {
    opacity: 0;
    transform: scale3d(0.3, 0.3, 0.3);
  }
  to {
    opacity: 1;
  }
}

.btnExit {
  animation-duration: 0.25s;
  animation-fill-mode: both;
  animation-name: btnExit;
}
/* zoomOut */
@keyframes btnExit {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: scale3d(0.3, 0.3, 0.3);
  }
}

/* nav animation */
@keyframes navLinkFade {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0px);
  }
}

.toggle .line1 {
  transform: rotate(-45deg) translate(-5px, 6px);
}
.toggle .line2 {
  opacity: 0;
}
.toggle .line3 {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* MEDIA QUERIES*/
@media screen and (max-width: 74.0625em) {
  /*1185px*/
  .container_wrap {
    width: 65%;
  }
  #service .pic {
    top: 60px;
    left: 250px;
  }
}
@media screen and (max-width: 69.375em) {
  /*1110px*/
  #contacts {
    width: 65%;
  }
  h1 {
    font-size: 4em;
  }
  .container_wrap {
    width: 70%;
  }
  .nav_links a {
    padding: 20px 55px;
  }
  #service .pic {
    top: 45px;
    left: 210px;
  }
}
@media screen and (max-width: 61.5625em) {
  /*985px*/
  #contacts {
    width: 70%;
  }
  .nav_links a {
    padding: 15px 45px;
  }
  #logo {
    width: 23%;
    margin-left: 30px;
    padding: 2% 0.5% 1%;
  }
  #hero_pic p:nth-child(2) {
    width: 65%;
  }
  .container_wrap {
    width: 80%;
  }
  .service_div {
    padding: 20% 0 1%;
  }
  #service .pic {
    top: 65px;
    left: 150px;
  }
  .gallery .image {
    width: calc(100% / 2);
  }
}
@media screen and (max-width: 54.375em) {
  /*870px*/
  #contacts {
    width: 75%;
  }
  nav {
    width: 65%;
  }
  .nav_links a {
    padding: 13px 30px;
  }
  #logo {
    width: 25%;
    margin-left: 25px;
  }
  .container_wrap {
    width: 95%;
  }
  #services_inner {
    padding: 8% 20%;
  }
  #service .pic {
    top: 45px;
    left: 70px;
  }
}
@media screen and (max-width: 48em) {
  /*768px*/
  html,
  body {
    overflow-x: hidden;
    position: absolute;
    width: 100%;
    font-size: 0.93em;
  }
  h1 {
    font-size: 3.5em;
  }
  #header_upper {
    height: 6vh;
  }
  #header_inner {
    height: 16vh;
  }
  #contacts {
    width: 60%;
  }
  #contacts p {
    display: none;
  }
  .fa_icon::before {
    margin-right: 10px;
  }
  nav {
    width: 10%;
  }
  .nav_links {
    position: absolute;
    z-index: 20;
    right: 0px;
    height: 92vh;
    top: 20vh;
    background-color: var(--orange);
    opacity: 0.95;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 50%;
    transform: translateX(100%);
    transition: transform 0.5s ease-in;
  }
  .nav_links li {
    opacity: 0;
    width: 100%;
    text-align: center;
  }
  .nav_links a {
    padding:15% 35%;
    color: var(--blue);
  }
  .current {
    color: var(--orange);
    background-color: var(--white);
  }
  .burger {
    display: block;
  }
  #logo {
    width: 35%;
  }
  #hero_pic {
    align-items: center;
    text-align: center;
  }
  #hero_pic p.text_large {
    font-size: 3.5em;
  }
  #service_head ~ div {
    height: 400px;
  }
  #service .pic {
    width: 250px;
    height: 250px;
    top: 60px;
    left: 65px;
  }
}
@media screen and (max-width: 37.5em) {
  /*600*/
  body {
    font-size: 0.9em;
  }
  h1 {
    font-size: 3em;
  }
  #contacts {
    flex-direction: column;
  }
  #header_upper {
    height: 8vh;
  }
  #header_inner {
    height: 14vh;
  }
  #logo {
    width: 50%;
  }
  #hero_pic button {
    display: none;
  }
  #about_wrap {
    flex-direction: column;
  }
  #about_wrap_text {
    width: 100%;
    margin: 20px 0;
  }
  #about_pic {
    width: 100%;
  }
  #services > div {
    flex-direction: column;
  }
  #services h1 {
    position: relative;
  }
  #purpose_inner {
    flex-direction: column;
  }
  #purpose_inner div {
    width: 100%;
  }
  #credentials {
    flex-direction: column;
  }
  #credentials div {
    margin-right: 0;
    width: 100%;
  }
  #service_head ~ div {
    height: auto;
  }
  #service_head ~ div div {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  .service_div {
    padding: 5% 0;
    text-align: center;
  }
  .service_div div:nth-child(2) {
    padding: 5%;
  }
  #service .pic {
    width: 100%;
    position: relative;
    top: 0;
    left: 0;
    -webkit-box-shadow: none;
    box-shadow: none;
  }
  .gallery .image {
    padding: 4px;
    width: 100%;
  }
  footer div {
    min-width: calc(100% / 3);
  }
}
@media screen and (max-width: 28.1875em) {
  /*451px*/
  #projects_pic div {
    width: 100%;
    height: 220px;
  }
  .preview-box .img-box img {
    height: 60vh;
  }
}
@media screen and (max-width: 25em) {
  /*400px*/
  #contacts {
    width: 100%;
  }
  h1 {
    font-size: 2.5em;
  }
  .nav_links a {
    padding:15% 30%;
  }
}
@media screen and (max-width: 18.75em) {
  /*300px*/
  .preview-box .img-box img {
    height: 50vh;
  }
}

.nav-active {
  transform: translateX(0%);
}
