@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:ital,wght@0,200;0,400;0,900;1,200;1,900&display=swap');

* {
  box-sizing: border-box;
  font-family: 'Source Sans Pro', sans-serif;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-size:  1em;
}


/*NavBar*/
#navbar-500 {
  display: none;
}


#navbar {
  background-color: white;
  padding: 50px 50px;
  transition: 0.4s;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 99;
}

#navbar a {
  float: left;
  padding: 50px 400px;
}

#navbar #logo {
  transition: 0.4s;
  background-image: url(../img/jce_logo.png);
  background-position: top 0;
  background-repeat: no-repeat;
  background-size: contain;
  position: relative;
}

#navbar-right a {
  float: right;
  color: black;
  text-align: center;
  padding: 20px !important;
  text-decoration: none;
  font-size: 18px;
  line-height: 25px;
  transition: 0.2s;
}

#navbar-right a:hover {
  color: #ff423a;
  border-bottom: 5px solid #ff423a;
  line-height: 1em;
}



.h-cover {
  background-image: url(../img/header-cover2.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content:center;
  width: 100%;
  height: 100vh;
}

.h-cover img {
  height: 100vh;
  opacity: 0.8;
  position: absolute;
  right: 0;
  top: 0;
}

.services-header img {
  height: 500px !important;
  opacity: 0.8;
  position: absolute;
  right: 0;
  top: 50px;
}

.services-header {
  position: relative;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content:center;
  width: 100%;
  height: 550px;
}

#planning {
  background-image: url(../img/planning.jpg);
}

#external {
  background-image: url(../img/external.jpg);
}

#drainage {
  background-image: url(../img/drainage.jpg);
}

#highway {
  background-image: url(../img/highway.jpg);
}

.services-header h1 {
  z-index: 1;
  color: white;
  font-weight: 900;
  font-style: italic;
  font-size: 10em;
  line-height: 0.8em;
  text-transform: uppercase;
  text-align: center;
  padding-top: 17vh;
}

.h-cover h1 {
  z-index: 1;
  color: white;
  font-weight: 900;
  font-style: italic;
  font-size: 7em;
  line-height: 0.8em;
  text-transform: uppercase;
  text-align: center;
  padding: 100px 200px;
}

.down-button {
  z-index: 1;
  padding: 0;
  border: none;
  background: none;
  position: absolute;
  bottom: 100px;
  animation-name: floating;
  animation-duration: 4s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

.down-button svg {
  fill: #45e800;
}

.down-button svg:hover {
  cursor: pointer;
  fill: #ff423a;
}

@keyframes floating {
  from { transform: translate(0,  0px); }
  65%  { transform: translate(0, 15px); }
  to   { transform: translate(0, -0px); }
}


/*About*/
.about {
  display: flex;
  flex-wrap: wrap;
  background-color: white;
  height: 100vh;
  background-image: url(../img/header-cover2.jpg);
  background-position: right;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
}

.below-intro {
  z-index: 1;
  display: flex;
  padding-top: 2%;
  padding-bottom: 2%;
  background-color: #0354e8;
  position: sticky;
  top: 50px;
  border-bottom: 3px solid white;
}

.below-intro h3 {
  width: 100%;
  justify-content: center;
  color: white;
  text-transform: uppercase;
  font-size: 2.5em;
  line-height: 1.2em;
  text-align: center;
  font-weight: normal;
  font-style: italic;
  font-size: 3vw;
}

.service-intro {
  display: flex;
  padding-top: 8%;
  padding-bottom: 8%;
}

.service-intro p {
  padding-left: 15%;
  padding-right: 15%;
  justify-content: center;
  align-self: center;
  font-size: 1.7vw;
  line-height: 1.4em;
  font-style: italic;
  text-align: center;
}

.service-detail {
  background-color: #e5e5e5;
  padding-left: 10%;
  padding-right: 10%;
  justify-content: center;
}

.service-detail ul {
  font-size: 1.3vw;
  line-height: 1.5em;
  margin: 0;
  padding-bottom: 30px;
  list-style: none;
}

.service-detail li {
  background-color: #e5e5e5;
  padding: 2% 0 2% 0;
  text-align: center;
  border-bottom: solid 3px white;
  line-height: 1.2em;
}

#li-no-border {
  border:none;

}

.service-detail li:before {
  content: "\>";
  color: red;
  font-size: 1.4vw;
  padding-right: 10px;
  font-weight: bold;
}

.gradient {
  background: linear-gradient(to top, white,transparent);
  width: 100%;
  height: 46vh;
  text-align: center;
}
.gradient h1 {
  font-style: italic;
  font-size: 5em;
  line-height: 0.8em;
  text-transform: uppercase;
  text-align: center;
  color: #0354e8;
  padding-top: 8vh;
}

.gradient-1 {
  background-color: white;
  width: 100%;
  height: 54vh;
  padding-left: 15%;
  padding-right: 15%;
  margin: 0;
}

.gradient-1 h3 {
  color: #0354e8;
  font-size: 2.4vw;
  line-height: 1.2em;
  font-style: italic;
  font-weight: normal;
  text-align: center;
}

.gradient-1 p {
  font-size: 1.4vw;
  line-height: 1.5em;
  text-align: center;
}

.gradient-1 a {
  color: #0354e8;
  text-decoration: none;
  transition: 0.1s;
}

.gradient-1 a:hover {
  color: #ff423a;
  border-bottom: 3px solid #ff423a;
  line-height: 1em;
}

.intro-button {
  background-color: #0354e8;
  border: none;
  color: white;
  padding: 15px 20px 15px 20px;
  text-align: center;
  text-decoration: none;
  border-radius: 40px;
  display: inline-block;
  font-size: 1vw;
  margin-top: 30px;
  cursor: pointer;
  transition: 0.30s;
  text-transform: uppercase;
}

.intro-button:hover {
  background-color: #45e800;
  color: #ff423a;
}


/*Services*/

.services {
  color: white;
  align-content: center;
  display: grid;
  margin: 0 auto;
  height: 350px;
  background-color: #bababa;
  text-align: center;
}

.services h1 {
  font-style: italic;
  margin: 0;
  font-size: 4em;
  text-transform: uppercase;
}

.services p {
  padding-top: 30px;
  margin: 0;
  font-size: 1.3vw;
  line-height: 1.4em;
}




/*--------------------------------------*/

.grid {
  overflow: hidden;
  background-color: #bababa;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 900px;
  display: grid;
  grid-gap: 10px;
  padding-left: 60px;
  padding-right: 60px;
  padding-bottom: 70px;
  grid-template-columns:50% 50%;
  grid-template-rows: 50% 50%;
	text-align: center;
}

/* Common style */
.grid figure {
	position: relative;
	overflow: hidden;
  width: 100%;
  height: 100%;
  margin: 0;
	background: #e5e5e5;
	text-align: center;
	cursor: pointer;
}

.grid figure img {
  height: 100vh;
	opacity: 0.8;
}

.grid figure figcaption {
	padding: 2em;
	color: #fff;
	text-transform: uppercase;
	font-size: 1.25em;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

.grid figure figcaption::before,
.grid figure figcaption::after {
	pointer-events: none;
}

.grid figure figcaption,
.grid figure figcaption > a {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* Anchor will cover the whole item by default */
/* For some effects it will show as a button */
.grid figure figcaption > a {
	z-index: 1000;
	text-indent: 200%;
	white-space: nowrap;
	font-size: 0;
	opacity: 0;
}

.grid figure h2 {
  font-size: 2em;
	word-spacing: -0.15em;
  font-weight: 800;
}

.grid figure h2,
.grid figure p {
	margin: 0;
}

.grid figure p {
	letter-spacing: 1px;
	font-size: 68.5%;
}


/*---------------*/
/***** thumbnails Effects *****/
/*---------------*/

figure.service-thumbnails figcaption::before {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: -webkit-linear-gradient(top, rgba(188,130,255,0.1) 5%, rgba(3,84,232,0.8) 75%);
	background: linear-gradient(to bottom, rgba(188,130,255,0.1) 5%, rgba(3,84,232,0.8) 75%);
	content: '';
	opacity: 0;
	-webkit-transform: translate3d(0,50%,0);
	transform: translate3d(0,50%,0);
}

figure.service-thumbnails h2 {
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
  color: #0354e8;
  text-shadow: white 5px -1px 70px;
	-webkit-transition: -webkit-transform 0.35s, color 0.35s;
	transition: transform 0.35s, color 0.35s;
	-webkit-transform: translate3d(0,-50%,0);
	transform: translate3d(0,-50%,0);
}

figure.service-thumbnails figcaption::before,
figure.service-thumbnails p {
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
}

figure.service-thumbnails p {
	position: absolute;
	bottom: 0;
	left: 0;
	padding: 2em;
	width: 100%;
	opacity: 0;
	-webkit-transform: translate3d(0,10px,0);
	transform: translate3d(0,10px,0);
}

figure.service-thumbnails:hover h2 {
  color: #fff;
  text-shadow: none;
	-webkit-transform: translate3d(0,-50%,0) translate3d(0,-40px,0);
	transform: translate3d(0,-50%,0) translate3d(0,-40px,0);
}

figure.service-thumbnails:hover figcaption::before ,
figure.service-thumbnails:hover p {
	opacity: 1;
	-webkit-transform: translate3d(0,0,0);
	transform: translate3d(0,0,0);
}


/*Contact Form*/
.c-form {
  display: flex;
  background-image: url(../img/intro-img.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  background-color: blue;
  height: 65vh;
  justify-content: center;
  align-content: center;
}

.container {
  justify-content: center;
  align-content: center;
  text-align: center;
}

.container h1 {
  font-size: 4em;
  font-style: italic;
  text-transform: uppercase;
  color: white;
}

.container p {
  color: white;
  margin: 0;
  font-size: 1.3vw;
}

.container a {
  border: none;
  background: none;
}

.container a svg {

  width: 4.5vw;
  fill: #45e800;
  transition: 0.2s;
}

.container a svg:hover {
  cursor: pointer;
  fill: #ff423a;
  }



/*Footer*/
footer {
  position: relative;
  height: 300px;
}

.footer-menu {
  padding-top: 60px;
  background: white;
  display: grid;
  grid-template-columns: 400px 400px;
  justify-content: center;
}

.l-side {
  margin-right: 40px;
}

.l-side img {
  padding-top: 10px;
  width: 300px;
}

.r-side h3 {
  margin: 0;
  font-size: 2em;
  text-transform: uppercase;
  padding-bottom: 10px;
}

.r-side p {
  margin: 0;
  font-size: 1.5em;
}

.r-side a {
  color: #0354e8;
  text-decoration: none;
  line-height: 25px;
  transition: 0.2s;
}

.r-side a:hover {
  color: #ff423a;
  line-height: 1em;
}

.footer-sub, .footer-designed-by {
  font-size: 0.9vw;
  font-style: italic;
  text-align: center;
  background-color:#e5e5e5;
}

.footer-sub {
  width: 100%;
  position: absolute;
  bottom: 0;
}

.footer-designed-by {
  width: 15vw;
  position: absolute;
  right: 0;
  bottom: 0;
}

.footer-designed-by a {
color: #0354e8;
text-decoration: none;
transition: 0.2s;
}

.footer-designed-by a:hover {
color: #ff423a;
line-height: 1em;
}





/*Screen Format*/
/* On screens that are less than 700px wide, make the sidebar into a topbar */


@media screen and (max-width: 700px) {
  .h-cover h1 {
    font-size: 4em;
  }
}

@media screen and (max-width: 580px) {


  #navbar {
    overflow: hidden;
    padding: 20px 10px !important;
  }
  #navbar a {
    float: none;
    display: block;
    text-align: left;
  }
  #navbar-right {
    z-index: 10000;
    display: none;
    float: none;
  }

/* Navbar 500*/
#navbar-500 {
  overflow: hidden;
  background-color: white;
  display: block;
  position: fixed;
  z-index: 99;
  width: 100vw;
  height:19vh;
}


#navbar-500 {
  width: 100vw;
  padding: 4vh 3vw 3vh 15vw;
}

#navbar-500 img {
  height: 8vh;
}

#nav-500 {
  padding-left: 1.9vw;
  padding-top: 1.6vh;
}

#nav-500 a {
  height: 50px;
  color: black;
  text-align: center;
  padding-left: 2vw;
  padding-right: 2vw;
  text-decoration: none;
  font-size: 2vh;
  line-height: 25px;
  transition: 0.2s;
}

#nav-500 a:hover {
  color: #ff423a;
  border-bottom: 5px solid #ff423a;
  line-height: 1em;
}

  .h-cover {
    overflow: hidden;
  }

  .h-cover h1 {
    font-size: 12vw;
    line-height: 1.4em;
  }

  .down-button svg {
    width: 20vw;
  }

  .about {
    overflow: hidden;
    background: none;
    height:90vh;
    display: flex;
  }

  .gradient {
    padding-bottom: 270px;
    margin: 0;
    background: none;
    height: 20vh;
    text-align: center;
  }

  .gradient h1 {
    font-size: 12vw;
    padding-bottom: 40vh;
  }

  .gradient-1 h3 {
    margin: 0;
    font-size: 6vw;
  }

  .gradient-1 p {
    font-size: 4vw;
    line-height: 1.5em;
  }
  
  .services-header {
    overflow: hidden;
  }

  .services h1 {
    font-size: 3em;
  }

  .services p {
    font-size: 1.2em;
    padding-left: 10%;
    padding-right: 10%;
    line-height: 1.4em;
  }

  .grid {
    padding: 0;
    grid-template-columns:100%;
    grid-template-rows: 24% 24% 24% 24%;
    grid-gap: 0;
    margin: 0;
  }

  .grid figure {
    position: relative;
    top: 5vh;
  }

  /*Contact Form*/

  .c-form {
    overflow: hidden;
    padding-left: 10%;
    padding-right: 10%;
  }

  .container {
    margin: 0;
    padding: 0;
  }

  .container h1 {
    padding-top: 40px;
    font-size: 3em;
  }
  
  .container p {
    position: relative;
    top: -3vh;
    font-size: 3.7vw;
    line-height: 1.5em;
  }
  
  .container a svg {
    position: relative;
    top: -1vh;
    width: 10vw;
    fill: #45e800;
    transition: 0.2s;
  }

/*Service Details*/

.services-header img {
  height: 400px !important;
  left: 50px;
  top: 50px;
}

.services-header {
  height: 450px;
}

.services-header h1 {
  font-size: 17vw;
  line-height: 0.8em;
}


.service-intro p {
  font-size: 3.4vw;
  line-height: 1.7em;
}


.service-detail ul {
  font-size: 3.5vw;
  line-height: 3w;

}

.service-detail li {
  padding: 4% 0 4% 0;
  text-align: center;
  border-bottom: solid 3px white;
  line-height: 1.2em;
}

#li-no-border {
  border:none;

}

.service-detail li:before {
  content: "\>";
  color: red;
  font-size: 1.4vw;
  padding-right: 10px;
  font-weight: bold;
}




/*Footer*/
  footer {
    height: 350px;
    text-align: center;
  }

  .footer-menu {
    padding-left:30px;
    padding-top: 50px;
    grid-template-columns: none;
  }

  .l-side {
    padding-bottom: 30px;
    align-items: center;
  }

  .footer-sub, .footer-designed-by {
    font-size: 2vw;
  }
  
  .footer-sub p {
    text-align: left;
    padding-left: 20px;
  }

  
  .footer-designed-by {
    width: 30vw;
  }
  
}