@font-face {
  font-family: "DIN Alternate Bold";
  font-style: normal;
  font-weight: normal;
  src: local("DIN Alternate Bold"), url("DINAlternate-Bold.woff") format("woff");
}

body {
  margin: 0;
  padding: 0;
  font-family: "Montserrat";
  background-color: #f8f8f2;
  color: #574e42;
}

.tns-outer button {
  display: none;
}

main {
  max-width: 2400px;
  margin: auto;
  overflow: hidden;
}

main.general {
  width: 80vw;
}

main.general section.subsection {
  margin-top: 0;
}

a {
  color: #574e42;
  text-decoration: none;
}

a:visited {
  color: #574e42;
}

nav {
  z-index: 100;
  align-items: center;
  background-color: #f8f8f2;
}

nav.main-nav {
  position: fixed;
  width: 100vw;
  /*height: 7.5em;*/
  top: 0;
  background-color: rgb(255, 255, 255);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.logo {
  max-height: 7.5em;
  /*height: 7.5em;*/
  display: inline-block;
  margin: 0.3em 0.3em 0.3em 3em;
  padding-top: 0.1em;
}

.link-container {
  display: flex;
  height: 5em;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
}

.nav-link {
  margin-right: 2em;
}

.nav-link>a {
  text-transform: uppercase;
  text-decoration: none;
  color: rgb(109, 109, 109);
  font-weight: 1000;
}

.nav-link>a:hover {
  color: #8c8218;
}

.hero .caption {
  position: absolute;
  top: 30%;
  left: 60%;
  border: 5px solid black;
  padding: 5%;
}

.hero h1 {
  font-family: "DIN Alternate Bold";
  font-size: 5em;
  display: flex;
  align-items: top;
}

/*.hero h1 span.higher {
  padding-top: 0;
}

.hero h1 span.lower {
  display: inline-block;
  padding-top: 0.3em;
}
*/

.hero {
  position: relative;
  width: 100%;
  height: 70vh;
  overflow: hidden;
}

.hero img {
  width: 100vw;
  height: 70vh;
  object-fit: cover;
}

.prev-hero:focus,
.next-hero:focus {
  outline: 0;
}

.prev-hero {
  position: absolute;
  left: -86px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  width: 86px;
  height: 190px;
  background-image: url("../img/icons/hero-prev.svg");
  background-size: cover;
  background-position: left;
  background-repeat: no-repeat;
  opacity: 0;
  transition: all ease-in 0.3s;
}

.prev-hero>i {
  color: #8c8218;
  opacity: 0.7;
  font-size: 3em;
  z-index: 40;
  position: absolute;
  top: 50%;
  left: 20%;
  transform: translateY(-50%);
}

.next-hero>i {
  color: #8c8218;
  opacity: 0.7;
  font-size: 3em;
  z-index: 40;
  position: absolute;
  top: 50%;
  right: 20%;
  transform: translate(-50%, -50%);
}

.next-hero {
  opacity: 0;
  position: absolute;
  right: -86px;
  top: 50%;
  width: 86px;
  height: 190px;
  transform: translateY(-50%);
  background-position: right;
  background-image: url("../img/icons/hero-next.svg");
  background-size: cover;
  background-repeat: no-repeat;
  cursor: pointer;
  transition: all ease-in 0.4s;
}

.hero:hover .prev-hero {
  left: 0;
  opacity: 1;
}

.hero:hover .next-hero {
  right: -2px;
  opacity: 1;
}

main {
  margin-top:4em;
}

.subsection {
  margin-top: 3em;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2em;
}

.subsection p {
  margin: 5px;
  color: rgb(109, 109, 109);
  font-size: 1.2em;
}

.section-title {
  text-transform: uppercase;
  letter-spacing: 1em;
  margin-bottom: 7em;
  text-align: center;
  color: #5e530e;
}

button {
  display: inline-block;
  border: none;
  font-size: 1em;
  padding: 1rem 2rem;
  margin: 0;
  text-decoration: none;
  background-color: #8c8218;
  text-transform: uppercase;
  color: #ffffff;
  font-family: "Montserrat";
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  text-align: center;
  transition: background-color 250ms ease-in-out, transform 150ms ease;
}

.ig-button {
  width: 10em;
  height: 5em;
  transition: background-color ease-in 0.2s;
}

.ig-button>svg {
  height: 3em;
  width: 3em;
  color: white;
  fill: white;
  transition: transform ease 0.2s;
}

.ig-button:hover {
  background-color: #92881b;
}

.ig-button:hover>svg {
  transform: scale(115%);
}

.instagram-container {
  text-align: center;
}

.instagram-container p {
  text-align: center;
  padding-bottom: 1em;
}

.ig-ribbon {
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
}

a.ig-picture {
  position: relative;
  flex: 1;
  max-height: 400px;
  margin: 0.5em;
  overflow: hidden;
  color: black;
}

a.ig-picture:visited {
  color: black;
}

.ig-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease-in;
}

.ig-picture .overlay {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  background-color: rgb(255, 255, 255, 0);
  transition: background-color 0.3s ease-in;
  width: 100%;
  height: 100%;
}

.ig-picture>.overlay>h3 {
  position: absolute;
  bottom: -100%;
  padding-left: 1em;
}

.ig-picture:hover>.overlay>h3 {
  bottom: 0;
  transition: bottom 0.4s ease-in;
}

.ig-picture:hover .overlay {
  background-color: rgb(255, 255, 255, 0.7);
}

.ig-picture:hover img {
  transform: scale(1.05);
}

.customer-container {
  display: grid;
  place-self: center;
  grid-template-columns: repeat(6, minmax(20vw, 225px));
  /*justify-content: center;*/
}

.customer {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all ease-in 0.2s;
}

.customer .customer-image-container {
  display: flex;
  flex-direction: column;
  align-self: center;
  justify-content: center;
  max-width: 225px;
  max-height: 225px;
  min-width: 120px;
  min-height: 120px;
  width: 8vw;
  margin: 5px;
}

.customer .customer-image-container img {
  max-width: 100%;
}

.customer>h5 {
  text-align: center;
  text-transform: uppercase;
  width: 100%;
}

.review-slider>div>h3 {
  text-align: center;
}

.review-slider>div>p {
  text-align: center;
  margin-bottom: 3em;
}

.review-container {
  position: relative;
  display: flex;
  flex-direction: row nowrap;
  align-items: center;
}

.tns-item {
  text-align: center;
}

.review-image {
  width: 12vw;
  min-width: 100px;
  height: 12vw;
  min-height: 100px;
  object-fit: cover;
  border-radius: 100%;
}

.prev-review,
.next-review {
  flex: 1;
  flex-shrink: 1;
  cursor: pointer;
  fill: #8c8218;
  opacity: 0.7;
}

.prev-review:focus,
.next-review:focus {
  outline: 0;
}

.prev-review {
  padding-left: 1em;
}

.next-review {
  padding-right: 1em;
}

.slider-container {
  overflow: hidden;
  flex: 6;
}

.review-nav {
  display: flex;
  flex-direction: row;
  position: absolute;
  bottom: 1em;
  left: 50%;
  transform: translateX(-50%);
}

.review-nav>.dot {
  height: 10px;
  width: 10px;
  background-color: rgb(219, 219, 219);
  opacity: 0.7;
  border-radius: 100%;
  margin: 5px;
  cursor: pointer;
}

.review-nav>.dot.tns-nav-active {
  background-color: #8c8218;
}

.banner.city {
  width: 100%;
  height: 30em;
  background-image: url("../img/paralex-bg.jpeg");
  /* Create the parallax scrolling effect */
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo {
  width: 15%;
  max-width: 110px;
}

.footer-text {
  color: #8c8218;
}

.social-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.social-container svg {
  width: 25px;
  height: 25px;
  margin: 5px;
  color: white;
  background-color: #8c8218;
  padding: 5px;
  border-radius: 100%;
  opacity: 0.7;
  transition: opacity ease-in 0.2s;
}

.social-container svg:hover {
  opacity: 1;
}

#nav-toggle {
  display: none;
}

@media only screen and (max-width: 800px) {
  .caption {
    display: none;
  }

  nav.main-nav {
    display: block;
    height: auto;
  }

  .hamburger {
    position: absolute;
    right: 1.5em;
    top: 1em;
    height: 45px;
    margin: 10px;
    display: -ms-grid;
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    justify-items: center;
    z-index: 120;
  }

  .line {
    background-color: #8c8218;
    position: relative;
    width: 40px;
    height: 5px;
    margin-top: 7px;
    -webkit-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
  }

  #nav-toggle:checked+.hamburger>.line {
    background-color: black;
  }

  #nav-toggle:checked+.hamburger>.line.top {
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
    margin-top: 22.5px;
  }

  #nav-toggle:checked+.hamburger>.line.middle {
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    margin-top: -5px;
  }

  #nav-toggle:checked+.hamburger>.line.bottom {
    -webkit-transform: scale(0);
    transform: scale(0);
  }

  .link-container {
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: 0;
    overflow: hidden;
    background-color: white;
    transition: all ease-in 0.3s;
  }

  .link-container>.nav-link>a {
    font-size: 2em;
  }

  .nav-link {
    margin-bottom: 1em;
    font-weight: bolder;
  }

  .nav-link:hover {
    color: #8c8218;
  }

  #nav-toggle:checked~.link-container {
    height: 35em;
  }

  .subsection {
    margin-top: 3em;
    margin-bottom: 2em;
  }

  .ig-ribbon {
    flex-wrap: wrap;
  }

  a.ig-picture {
    margin: 0.25em;
    flex: 1 0 40%;
  }

  a.ig-picture:last-of-type {
    flex: 1 0 80%;
  }

  .ig-picture>.overlay {
    display: none;
  }

  .customer-container {
    display: grid;
    grid-template-columns: 225px 225px;
    justify-items: center;
    justify-content: center;
  }

  .banner.city {
    height: 15em;
    background-size: cover;
  }

  .prev-hero,
  .next-hero {
    width: 43px;
    height: 96px;
    opacity: 1;
  }

  .prev-hero {
    left: 0;
  }

  .next-hero {
    right: 0;
  }

  .prev-hero i,
  .next-hero i {
    font-size: 1em;
  }

  .prev-review,
  .next-review {
    width: 13px;
    height: 28px;
  }

  .review-slider>div>h3 {
    font-size: 1em;
  }

  .review-slider>div>p {
    font-size: 0.8em;
  }
}

.accent-link {
  color: #8c8218;
  text-decoration: underline;
}

.intro-container {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
}

.intro-section {
  margin: 1em;
  max-width: 45%;
  flex-direction: column;
}

.intro-photo {
  max-width: 400px !important;
}

.intro-photo-copyright {
  display:block;
  font-style: italic;
  font-size: 0.67em;
}

.intro-container {
  flex-direction: column;
}

.intro-section {
  max-width: 85%;
  align-self: center;
}

.intro-section img {
  max-width: 100%;
}

@media screen and (min-width: 800px) {
  .footer-logo {
    width: 10%;
  }

  .social-container svg {
    width: 15px;
    height: 15px;
  }

  .prev-review, .next-review {
    height: 25px;
  }

  .prev-hero > i, .next-hero > i {
    font-size: 2em;
  }

  .prev-hero, .next-hero {
    width: 56px;
    height: 120px;
  }

  .intro-container {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
  }

  .intro-section {
    margin: 1em;
    max-width: 45%;
    flex-direction: column;
  }

 

}