/* apply a natural box layout model to all elements, but allowing components to change */
html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}

:root {
  --white: #ddd;
  --hover-color: #bbb;
  --green: rgba(68, 97, 64, 1.0);
  --yellow: rgba(209, 194, 162, 1.0);
  --grey: #333;
  --shadow: rgba(0,0,0,0.3);
}

body {
  color: var(--white);
  background-color: var(--green);
  font-size: 18px;
  line-height: 1.4em;
}

a {
  color: var(--white);
  text-decoration: none;
}

a:hover {
  color: var(--hover-color);
}

/* alegreya-sans-regular - latin */
@font-face {
  font-family: 'Alegreya Sans';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/alegreya-sans-v20-latin-regular.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('../fonts/alegreya-sans-v20-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/alegreya-sans-v20-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/alegreya-sans-v20-latin-regular.woff') format('woff'), /* Modern Browsers */
       url('../fonts/alegreya-sans-v20-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/alegreya-sans-v20-latin-regular.svg#AlegreyaSans') format('svg'); /* Legacy iOS */
}
/* alegreya-sans-700italic - latin */
@font-face {
  font-family: 'Alegreya Sans';
  font-style: italic;
  font-weight: 700;
  src: url('../fonts/alegreya-sans-v20-latin-700italic.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('../fonts/alegreya-sans-v20-latin-700italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/alegreya-sans-v20-latin-700italic.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/alegreya-sans-v20-latin-700italic.woff') format('woff'), /* Modern Browsers */
       url('../fonts/alegreya-sans-v20-latin-700italic.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/alegreya-sans-v20-latin-700italic.svg#AlegreyaSans') format('svg'); /* Legacy iOS */
}

h1 {
  font-family: 'Alegreya Sans', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 2em;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  /* line-height: 0.1em; */
  text-align: center;
  margin-bottom: 0;
}

h2 {
  font-family: 'Alegreya Sans', sans-serif;
  font-style: italic;
  font-weight: 700;
  font-size: 2.6em;
  letter-spacing: 0.7em;
  color: var(--yellow);
  /* text-transform: lowercase; */
  text-align: center;
  line-height: 1.6em;
  margin-top: 0;
}

h3 {
  font-family: 'Alegreya Sans', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 1.6em;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  width: 66%;
  padding-bottom: 1em;
  border-bottom: 1px solid var(--grey);
  margin: 0 auto;

}

.article-heading {
  text-transform: none;
}

h4 {
  font-family: 'Alegreya Sans', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 1.2em;
  text-transform: uppercase;
  letter-spacing: 0.7em;
  text-align: center;
}

h5 {
  font-family: 'Alegreya Sans', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 0.8em;
  text-align: center;
}

.articles-container h5 {
  font-size: 1em;
}

h6 {
  font-family: 'Alegreya Sans', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 1.6em;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  margin: 0 auto;

}


/* alegreya-regular - latin */
@font-face {
  font-family: 'Alegreya';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/alegreya-v26-latin-regular.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('../fonts/alegreya-v26-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/alegreya-v26-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/alegreya-v26-latin-regular.woff') format('woff'), /* Modern Browsers */
       url('../fonts/alegreya-v26-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/alegreya-v26-latin-regular.svg#Alegreya') format('svg'); /* Legacy iOS */
}

p, ul {
  font-family: 'Alegreya', serif;
  font-style: normal;
  font-weight: 400;
  padding: 0.6em;
}

/* p::first-line {
  font-family: "Mercury SSm Small Caps A", "Mercury SSm Small Caps B";
  font-style: normal;
  font-weight: 400;
}

blockquote p::first-line,
.footer-item p::first-line {
  font-family: "Mercury SSm A", "Mercury SSm B";
} */



header {
  height: 585px;
  margin: 0;
  padding: 0;
  /* background-image: url("/images/header-fade.jpg");
  background-size: cover;
  background-position: center bottom; */
  border: 0;
}

.cb-slideshow,
.cb-slideshow:after {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    z-index: 0;
}

.cb-slideshow li {
  height: 585px;
}
.cb-slideshow li span {
    width: 100%;
    height: 585px;
    position: absolute;
    top: 0px;
    left: 0px;
    /* color: transparent; */
    /* background-image: url("/images/header-fade.jpg"); */
    background-size: cover;
    background-position: center bottom;
    background-repeat: none;
    opacity: 0;
    z-index: 0;
    animation: imageAnimation 18s linear infinite 0s;
}

.cb-slideshow li:nth-child(1) span {
    background-image: url("/images/header-fade.jpg");
}
.cb-slideshow li:nth-child(2) span {
    background-image: url("/images/header-fade2.jpg");
    animation-delay: 6s;
}
.cb-slideshow li:nth-child(3) span {
    background-image: url("/images/header-fade3.jpg");
    animation-delay: 12s;
}
/* .cb-slideshow li:nth-child(4) span {
    background-image: url("/images/header-fade4.jpg");
    animation-delay: 18s;
}
.cb-slideshow li:nth-child(5) span {
    background-image: url("/images/header-fade5.jpg");
    animation-delay: 24s;
} */
/* .cb-slideshow li:nth-child(6) span {
    background-image: url("/images/header-fade3.jpg");
    animation-delay: 30s;
} */

@keyframes imageAnimation {
    0% { opacity: 0; animation-timing-function: ease-in; }
    16% { opacity: 1; animation-timing-function: ease-out; }
    33% { opacity: 1; }
    66% { opacity: 0; }
    100% { opacity: 0; }
}

section {
  margin-top: 60px;
}

.section-container {
  max-width: 960px;
  margin: 0 auto;
}

.text-logo {
  max-width: 960px;
  margin: 0 auto;
  top: 527px;
  position: relative;
  text-align: center;
}


.intro-container {
  max-width: 480px;
  margin: 0 auto;
}

.intro-container p {
  text-align: justify;
}

.intro-section {
  background-color: var(--green);
}

.market-container {
  padding: 0;
  margin: 0 auto;
  display: inline-flex;
  justify-content: space-around;
  flex-wrap: wrap;
  align-content: center;
  padding: 20px;
}
.market-item {
  padding: 20px 0px;
  border: 0;
  /* margin: 20px 20px; */
  max-width: calc(50% - 50px);
  min-width: 280px;
  text-align: center;
  position: relative;
}

.bike-svg {
  height: 44px;
  margin: 10px 0px;
}

.market-detail {
  top: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  visibility: hidden;
  background-color: var(--grey);
  border-radius: 10px;
  margin: 0 auto;
  -webkit-box-shadow: 10px 10px 10px -5px var(--shadow);
  -moz-box-shadow: 10px 10px 10px -5px var(--shadow);
  box-shadow: 10px 10px 10px -5px var(--shadow);
}

.market-detail li {
  font-family: 'Alegreya Sans', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 0.7em;
}

.checkmark {
  width: 15px;
  height: 15px;
  vertical-align: text-top;
}

.market-detail h4 {
  width: 80%;
  padding-top: 10px;
  border-bottom: 1px solid var(--green);
  margin: 0 auto;
}

.market-detail ul {
  position: relative;
  padding-top: 10px;
  vertical-align: middle;
}

.detail-hover {
  padding: 5px;
  width: 66%;
  border: 1px solid var(--grey);
  margin: 0 auto;
  margin-top: 40px;
  display: none;
}

.garnish {
  position: absolute;
  top: 80%;
  width: 40px;
  left: 50%;
  transform: translateX(-50%);
}

.market-item:hover > .market-detail,
.market-item:active > .market-detail,
.touch-hover:active > .market-detail {
  /* visibility: visible; */
}
.markets-section {
  background-color: var(--green);
}

.profile-image {
  margin: 0 auto;
  max-height: 270px;
  text-align: center;
  padding-top: 20px;
}
.testimonial-container {
  padding: 0;
  margin: 0 auto;
  display: inline-flex;
  justify-content: space-around;
  flex-wrap: wrap;
  align-content: center;
  padding: 20px;
}
.testimonial-item {
  padding-top: 20px;
  border: 0;
  margin: 0;
  max-width: calc(50% - 50px);
  min-width: 280px;
  text-align: center;
}
.testimonial-item p,
.testimonial-item li {
  /* font-size: 0.8em; */
}
.testimonial-section {
  background-color: var(--green);
}
.hide {
  display: none;
}
blockquote:before {
  color: var(--grey);
  content: "\201C";
  font-size: 4em;
  line-height: 0.1em;
  margin-right: 0.25em;
  vertical-align: -0.5em;
}

blockquote p {
  padding-bottom: 10px;
}

cite {
  font-style: italic;
  font-size: 1em;
  font-weight: 700;
}

.article-section {
  background-color: var(--green);
}

.articles-container {
  padding-top: 40px;
}

.articles-container h6 {
  padding: 40px 20px;
  font-size: 1.3em;
}

.articles-container p {
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6em;
  text-align: justify;
}

footer {
  margin: 0 auto;
  margin-top: 60px;
  border-top: 3px solid var(--grey);
  width: 80%;
}

.footer-container {
  padding: 0;
  margin: 0 auto;
  display: inline-flex;
  justify-content: space-around;
  flex-wrap: wrap;
  align-content: center;
  padding: 20px;
  width: 100%;
}

.footer-item {
  padding-top: 20px;
  border: 0;
  margin: 0;
  max-width: calc(50% - 50px);
  min-width: 280px;
  text-align: center;
}

.linkedin-logo {
  width: auto;
  height: 59px;
  padding-top: 10px;
}

@media (max-width: 835px) {
  h1 {
    font-size: 1.5em;
  }

  h2 {
    font-size: 1.95em;
  }
  header,
  .cb-slideshow li span {
    height: 485px;
  }
  .text-logo {
    top: 440px;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: 1em;
  }

  h2 {
    font-size: 1.3em;
  }
  header,
  .cb-slideshow li span {
    height: 385px;
  }
  .text-logo {
    top: 353px;
  }

  .testimonial-item,
  .market-item {
    max-width: 100%;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 0.8em;
  }

  h2 {
    font-size: 1.04em;
  }

  header,
  .cb-slideshow li span {
    height: 285px;
  }
  .text-logo {
    top: 260px;
  }


}

@media (max-width: 360px) {
  h1 {
    font-size: 0.6em;
  }

  h2 {
    font-size: 0.78em;
  }

  header,
  .cb-slideshow li span {
    height: 185px;
  }
  .text-logo {
    top: 165px;
  }

}
