/* ===========================

         RESET STYLE 

============================== */

/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, main, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* ===========================

         GLOBAL STYLE 

============================== */

div, article, aside, details, figcaption, figure, 
footer, header, hgroup, main, menu, nav, section {
  box-sizing: border-box;
  position: relative;
}

body {
  font-family: 'Raleway', Arial, sans-serif;
  background-color: #eee;
  font-size: 1em; 
}

.clearit {
	display: none;
}

/* Styles related to typography */

h1,h2,h3,h4 {
	font-family: 'Roboto', Arial, sans-serif;
}

h1 {
	font-size: 3.5rem;
	margin: 40px 0;
	text-align: center;
	font-weight: bold;
}

h2 {
	font-size: 1.25rem;
	margin: 20px 0;
	font-weight: bold;
}

p {
	line-height: 1.25;
}


.masthead h1 {
    font-size: 4rem;
	font-weight: bold;
	text-align: center;
	color: #fff;
    text-shadow: 5px 5px 10px #000;	
	align-self: center;
	margin-top: 175px;
}

@media (max-width: 767px){
	h1, .masthead h1 {
		font-size: 2rem;
	}
}
/* Header -- video and navbar sections */

header {
	display: grid;
	grid-template-columns: auto;
	grid-template-rows: auto auto; 
}

.masthead {
	display: grid;
	z-index: 1;
	grid-row: 1 / 1;
}

.masthead p {
	text-align: center;
}

.mainnav {
	grid-row: 2 / 2;
}

@media (min-width: 768px) {
	.masthead {
		height: 100vh;
	}
}

@media (max-width: 767px){
	.masthead {
		height: 50vh;
		grid-row: 2 / 2;
	}
	.mainnav {
		grid-row: 1 / 1;
	}

}

/* Buttons -- a tag */

.btn {
	font-family: 'Roboto', Arial, sans-serif;
    text-shadow: 2px 2px 2px #eee;
	font-size: 1.25rem;
	text-decoration: none;
	padding: 20px 15px;
	border-radius: 5px;
	background-color: #00ffad;
	box-shadow: 0 3px 3px 0 rgba(0,0,0,.1);
    font-weight: 700;
    border-color: #eee;
    color: #000;
	transition: all 0.3s ease 0s;
	-o-transition: all 0.3s ease 0s;
	-webkit-transition: all 0.3s ease 0s;
	-ms-transition: all 0.3s ease 0s;
	-moz-transition: all 0.3s ease 0s;
	margin-top: 20px;
	transition: background 0.2s ease-in;
	cursor: pointer;
}

.btn:hover {
	background:#eee;
}

.btn-holder {
	margin-top: 30px;
}


/* Revealed header */

#navheader {
	display: grid;
	padding: 2px 3%;
	grid-template-columns: 100px 1fr;
	grid-column-gap: 15px;
	justify-items: end;
	align-items: center;
}

.mainnav {
	background-color: #eee;
	color: #f1f1f1;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	padding: 0;
	z-index: 10;
	transform: translateY(0%);  
	transition: all 0.5s;
	box-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
}


.hiddenheader {
    overflow: hidden;
    transform: translateY(-100%);
}

/* Navbar items */

.menu ul li {
	display: inline-block;
	padding: 33px 15px;
}
.menu ul li a {
	float:right;
	text-decoration: none;
	font-family: 'Roboto', Arial, sans-serif;
	color: #4e4f4f;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	transition: color 0.2s ease-in;
	-moz-transition: color 0.2s ease-in;
	-o-transition: color 0.2s ease-in;
	-webkit-transition: color 0.2s ease-in;
	-ms-transition: color 0.2s ease-in;
}

.menu ul li a:hover {
  color: #aaa;
}

/* Sidr */

.menu-button {
    display: block;
    position: fixed;
    top: 27px;
    right: 30px;
    background: url(../img/menu.gif) no-repeat;
    overflow: hidden;
    width: 34px;
    height: 31px;
    text-indent: -9999px;
}

#mobile-menu {
	display: none; 
}

@media (max-width: 767px){
	#mobile-menu {
		display: block;
		z-index: 100;
	}
	.mainnavbar {
		display: none;
	}
	.hiddenheader {
    	overflow: hidden;
    	transform: none;
	}

}

/* Services Section */

.services-grid {
	display: grid;
	grid-template-columns: repeat(3, 30%);
	grid-template-rows: auto;
	grid-column-gap: 5%;
}
.service-item {
	display: grid;
	justify-items: center;
	margin-bottom: 30px;
}

.feature-icon {
	background:url(../img/feature-icons.png) no-repeat;
	width: 60px;
	height: 60px;
	display: inline-block;
}

.icon1 {
	background-position: -1px -1px;
}

.icon2 {
	background-position: -68px -1px;
}

.icon3 {
	background-position: -136px -1px;
}

@media (max-width: 550px){
	.services-grid {
		grid-template-columns: auto;
	}

}


/* Other Sections */

main, 
footer {
    max-width: 1440px;
	margin: 0 auto;
}

#services,
#stories,
#contact,
footer {
	padding: 110px 3% 50px 3%;
}

#services, 
#contact {
	background-color: #ff0052;
}

#services h1,
#services h2,
#services p,
#contact h1, 
#contact p {
	color: #fff;
}

footer {
	background-color: #00ffad;
}

footer p {
	color: #000;
	text-align: center;
}


/* Grid styles */

.stories-grid {
  max-width: 1440px;
  margin: 3px auto;
  font-size: 0;
  z-index: 1;
  display: grid;
  grid-gap: 3px;
  grid-template-columns: repeat(2, 1fr);
}

.stories-grid img {
  display: block;
  object-fit: cover;
}


@media (min-width: 728px) {
	.stories-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}


/* Thumbnails */

.responsive-img {
  max-width: 100%;
  height: auto;
  width: 100%;
}

.caption {
  padding: 16px;
}

.title,
.tag {
  text-transform: uppercase;
  letter-spacing: 1px;
}

.title {
  font-size: 1.1em;
  font-weight: bold;
  margin-bottom: 4px;
  line-height: 1.35em;
  text-align: left;
}

.tag {
  background: #ff0052;
  padding: 4px 8px;
  display: inline-block;
  margin-bottom: 8px;
  font-size: 12px;
}

.thumbnail {
  color: #fff;
  position: relative;
  overflow: hidden;
}

.image-wrapper:after {
  background: -webkit-gradient(linear, left bottom, left top, color-stop(1, rgba(0, 0, 0, 0)), color-stop(0, black));
  bottom: 0;
  content: "";
  left: 0;
  opacity: .2;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 2;
}

.title,
.sub-title {
  color: #333;
}

.news-item {
  display: inline-block;
  vertical-align: top;
  font-size: 16px;
  padding: 2px;
  position: relative;
}

.hero-item,
.standard-item {
  width: 50%;
}
@media (min-width: 728px) {
  .hero-item,
  .standard-item {
    width: 25%;
  }
}

/* Stories grid */

@supports (display: grid) {
  .stories-grid > *,
  .standard-item:nth-child(4),
  .standard-item:nth-child(5),
  .standard-item:nth-child(6) {
    margin: 0;
    width: auto;
  }

  .news-item {
    padding: 0;
  }
  @media (min-width: 1100px) {
    .news-item:first-child:before, .news-item:first-child:after, .news-item:nth-child(4):before, .news-item:nth-child(4):after, .news-item:nth-child(5):before, .news-item:nth-child(5):after, .news-item:nth-child(8):before, .news-item:nth-child(8):after {
      content: "";
      width: 0;
      height: 0;
      border: 0 solid transparent;
      position: absolute;
      z-index: 5;
      display: block;
    }
    .news-item:first-child:before, .news-item:nth-child(4):before, .news-item:nth-child(5):before, .news-item:nth-child(8):before {
      border-right-color: #eee;
      border-width: 0 55px 55px 0;
      right: 0;
      top: 0;
    }
    .news-item:first-child:after, .news-item:nth-child(4):after, .news-item:nth-child(5):after, .news-item:nth-child(8):after {
      border-right-color: #eee;
      border-width: 55px 55px 0 0;
      right: 0;
      bottom: 0;
    }
    .news-item:nth-child(4):before, .news-item:nth-child(8):before {
      top: 0;
      left: 0;
      border-left-color: #eee;
      border-width: 0 0 55px 55px;
    }
    .news-item:nth-child(4):after, .news-item:nth-child(8):after {
      border-bottom: 55px solid #eee;
      border-right: 55px solid transparent;
      left: 0;
      bottom: 0;
    }
  }

  @media (min-width: 1100px) {
    .standard-item:nth-child(2),
    .standard-item:nth-child(3),
    .standard-item:nth-child(6),
    .standard-item:nth-child(7) {
      border-top: 55px solid #eee;
    }
  }

  .caption {
    position: static;
    margin-right: auto;
  }

  @media (min-width: 1100px) {
    .hero-item .thumbnail,
    .hero-item .responsive-img,
    .hero-item .image-wrapper,
    .standard-item:nth-child(4) .thumbnail,
    .standard-item:nth-child(4) .responsive-img,
    .standard-item:nth-child(4) .image-wrapper,
    .standard-item:nth-child(5) .thumbnail,
    .standard-item:nth-child(5) .responsive-img,
    .standard-item:nth-child(5) .image-wrapper,
    .standard-item:nth-child(8) .thumbnail,
    .standard-item:nth-child(8) .responsive-img,
    .standard-item:nth-child(8) .image-wrapper {
      height: 100%;
    }
    .hero-item .responsive-img,
    .standard-item:nth-child(4) .responsive-img,
    .standard-item:nth-child(5) .responsive-img,
    .standard-item:nth-child(8) .responsive-img {
      width: 100%;
    }
    .hero-item .caption,
    .standard-item:nth-child(4) .caption,
    .standard-item:nth-child(5) .caption,
    .standard-item:nth-child(8) .caption {
      position: absolute;
      bottom: 0;
      z-index: 3;
      bottom: 32px;
      left: 8px;
    }
    .hero-item .title,
    .hero-item .sub-title,
    .standard-item:nth-child(4) .title,
    .standard-item:nth-child(4) .sub-title,
    .standard-item:nth-child(5) .title,
    .standard-item:nth-child(5) .sub-title,
    .standard-item:nth-child(8) .title,
    .standard-item:nth-child(8) .sub-title {
      color: #fff;
    }
  }
}

/* Contact Section */

#contact {
	padding-bottom: 100px;
}


.contact-form {
	width: 60%;
	margin: 0 auto;
}

form input {
	font-family: 'Roboto', Arial, sans-serif;
	background: none repeat scroll 0% 0% #F7F6F6;
	padding: 15px;
	width: 100%;
	border-radius: 5px;
	font-size: 16px;
	font-weight: 400;
	margin-top: 30px;
	box-shadow: none;
	border: 2px solid #f7f6f6;
	transition: all 0.5s ease-in;
	-moz-transition: all 0.5s ease-in;
	-o-transition: all 0.5s ease-in;
	-ms-transition: all 0.5s ease-in;
	-webkit-transition: all 0.5s ease-in;
	margin-left: -20px;
}

form textarea {
	font-family: 'Roboto', Arial, sans-serif;
	width: 100%;
    border-radius: 5px;
    box-shadow: none;
    background: none repeat scroll 0% 0% #F7F6F6;
    padding: 15px;
    font-size: 16px;
    font-weight: 400;
	height: 180px;
	margin-top: 30px;
	border: 2px solid #f7f6f6;
	resize: none;
	transition: all 0.5s ease-in;
	-moz-transition: all 0.5s ease-in;
	-ms-transition: all 0.5s ease-in;
	-o-transition: all 0.5s ease-in;
	-webkit-transition: all 0.5s ease-in;
	margin-left: -20px;
	margin-bottom: 30px;
}

form input:focus {
	border: 2px solid #888;
	background-color: #fff;
}

form textarea:focus {
	border: 2px solid #888;
	background-color: #fff;
}

form div {
	padding: 1px;
}
form div p {
	text-align: center;
}

/* Footer */



.infooter {
	margin-top: 80px;
}

.socialmedia {
    margin: 0;
    list-style:none;
    margin-top: 25px;
	text-align: center;
}
.socialmedia li {
    display: inline-block;
    margin-left: 15px;
	margin-right: 15px;
    color: #585c65;
    font-size: 26px;
}
.socialmedia li a {
    
    font-size: 50px;
	text-decoration: none;
}

.fab {
	color: #fff;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    transition: all 0.3s;
}
.fab:hover {
    height: 100%;
    color: #ff0052;
}
