@media (min-width: 1200px) {
  .hero-section {
    min-height: 700px;
  }
}

/* Video Styling */

.vid-background {
  position: absolute;
  background: #000;
  height: 720px;
  width: 100%;
  z-index: -999;
}

#HomeVid .video-stage {
  position: fixed;
  left: 50%;
  transform: translate3d(-50%, 0, 0);
  width: 100vw;
  min-width: 300px;
  height: auto;
  overflow-x: hidden;
  z-index: -999;
  top: 145px;
  opacity: .5;
  will-change: transform;
}

@media (min-width: 768px) {
  #HomeVid .video-stage {
    top: 123px;
    opacity: .3;
  }
}

@media (min-width: 992px) {
  #HomeVid .video-stage {
    min-width: 1400px;
  }
}

#HomeVid .video-stage video {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 767.9px) {
  #HomeVid .video-stage .video-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, rgba(0,0,0,0), #000);
    pointer-events: none;
  }
}

/* fade video out when modal is opened */

.video-stage {
  opacity: 1;
  transition: opacity 0.8s ease-in-out;
}

body.modal-open .video-stage {
  opacity: 0 !important;
  pointer-events: none;
}

/* Logo Styling */

.hero-logo-wrapper {
  position: relative;
}

.mainlogo {
  position: absolute;
  margin: 0px auto;
  left: 0;
  right: 0;
  z-index: 20;
}

.hero-logo {
  position: relative;
  z-index: 20;
  width: 360px;
  height: auto;
}

@media (min-width: 576px) {
  .hero-logo {
    width: 500px;
  }
}

@media (min-width: 768px) {
  .hero-logo {
    width: 600px;
  }
}

@media (min-width: 992px) {
  .hero-logo {
    width: 800px;
  }
}

@media (min-width: 1200px) {
  .hero-logo {
    width: 1000px;
  }
}

@media (min-width: 1400px) {
  .hero-logo {
    width: 1200px;
  }
}

.fade-in-out-div {
  animation-name: fadeInOut;
  animation-duration: 4.5s;
  animation-delay: 0s;
  animation-fill-mode: forwards;
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
  }
  80% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* 1. Set the transition on the caption itself */

.carousel-fade .carousel-item .carousel-caption {
  display: block !important;
  transition: opacity .6s ease-in-out;
  opacity: 0;
}

/* 2. Fade IN: Target the caption when the slide becomes active */

.carousel-fade .carousel-item.active .carousel-caption {
  opacity: 1;
}

/* 3. Fade OUT: Target the caption when the slide is transitioning away.   Bootstrap adds .carousel-item-start or .carousel-item-end during the move. */

.carousel-fade .carousel-item-next.carousel-item-start .carousel-caption, .carousel-fade .carousel-item-prev.carousel-item-end .carousel-caption, .carousel-fade .active.carousel-item-start .carousel-caption, .carousel-fade .active.carousel-item-end .carousel-caption {
  opacity: 0;
}

/* Home Carousel */

#carousel-1 .carousel-control-next, .carousel-control-prev {
  width: 10%;
}

.carousel-item {
  position: relative;
  height: calc(50px + 28vw);
}

@media (min-width: 1400px) {
  .carousel-item {
    height: 440px;
  }
}

#carousel-1 .carousel-caption {
  padding: 0;
}

.carousel-caption {
  position: static;
  padding-bottom: 0;
}

#carousel-1 .carousel-caption p {
  font-family: 'Saira';
  line-height: 1.4;
  font-weight: 800;
  text-align: center;
  color: #fff;
  font-size: calc(16px + 4vw);
  text-shadow: 2px 2px 10px #000, -2px -2px 10px #000;
  margin-bottom: 0;
}

@media (min-width: 992px) {
  #carousel-1 .carousel-caption p {
    line-height: 1.3;
  }
}

@media (min-width: 1400px) {
  #carousel-1 .carousel-caption p {
    font-size: 84px;
  }
}

#carousel-1 .carousel-item.active .carousel-caption .c-text {
  will-change: transform, opacity;
  opacity: 0;
  animation: animate-carousel-title 2.0s ease-in-out forwards;
}

@keyframes animate-carousel-title {
  0% {
    transform: scale(0,0);
    opacity: 0;
  }
  100% {
    transform: scale(1,1);
    opacity: 1;
  }
}

/* Fade out Carousel on modal open */

#carousel-curtain {
  position: absolute;
  left: 0;
  margin-top: 10px;
  width: 100%;
  height: calc(50px + 23vw);
  background: #000;
  background: linear-gradient(rgba(0,0,0,0) 0%, black 10%, rgb(0,0,0) 90%, rgba(0,0,0,0) 100%);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease-in-out;
}

#carousel-curtain.active {
  opacity: 1 !important;
  pointer-events: all;
}

@media (min-width: 768px) {
  #carousel-curtain {
    margin-top: 30px;
  }
}

@media (min-width: 1400px) {
  #carousel-curtain {
    height: 400px;
  }
}

/* We Offer Styling */

.service-item h3 {
  line-height: 1.2;
}

.service-item .fas {
  position: relative;
  top: 1px;
}

@media (min-width: 1200px) {
  .service-item .fas {
    top: 2px;
  }
}

/* Read More-Less Styling */

.service-description {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.5;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
  word-break: break-word;
  word-wrap: break-word;
  text-align: left;
  margin-bottom: 0;
}

.toggle-link-wrapper {
  margin-top: 0px;
  margin-bottom: 15px;
  text-align: left;
}

.toggle-link {
  font-family: 'Open Sans' !important;
  background: none;
  border: none;
  padding: 0;
  color: #ffc107;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  transition: color 0.2s ease;
}

.toggle-link:hover, .toggle-link:focus {
  color: #c89600;
  text-decoration: none;
}

.toggle-link-wrapper.is-expanded .toggle-link {
  color: #c89600;
}

/* List Styling */

.service-item h3 {
  line-height: 1.2;
}

.service-item .fas {
  position: relative;
  top: 1px;
}

@media (min-width: 1200px) {
  .service-item .fas {
    top: 2px;
  }
}

/* Service Boxes Styling */

.services h3 {
  font-size: calc(4px + 2.5vw);
  margin-bottom: 0;
  letter-spacing: -.2px !important;
}

@media (min-width: 576px) {
  .services h3 {
    font-size: 17px;
  }
}

@media (min-width: 758px) {
  .services h3 {
    font-size: 20px;
  }
}

@media (min-width: 1200px) {
  .services h3 {
    font-size: 22px;
  }
}

.box {
  position: relative;
  overflow: hidden;
  transition: all .5s;
  border-radius: 5px;
}

.box img {
  max-width: 100%;
  transition: all 0.3s;
  display: block;
  width: 100%;
  height: auto;
  transform: scale(1);
}

.box:hover img {
  transform: scale(1.2);
  transition: all .5s;
}

.box .heading {
  width: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
  background: rgba(0,0,0,0.4);
  text-shadow: 1px 1px 0px rgba(0,0,0,0.6);
  color: #ffffff;
  text-align: center;
  padding: 5px 4px;
  transition: background .3s ease-in-out;
}

.box:hover .heading {
  background: var(--bs-gray-dark);
  transition: background .3s ease-in-out;
}

/* Quote Styling */

#maQuote p {
  position: relative;
  font-size: 16px;
  line-height: 1.5;
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  color: #ffffff;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
  z-index: 2;
  text-shadow: none;
  text-align: left;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

@media (min-width: 1200px) {
  #maQuote p {
    font-size: 18px;
    text-align: justify;
  }
}

#maQuote .speech-bubble {
  display: block;
  width: 100%;
  position: relative;
  background: var(--bs-gray-700);
  border: 2px solid #000000;
  border-radius: .5rem;
  text-shadow: none;
  padding: 15px 20px;
  box-sizing: border-box;
}

#maQuote .speech-bubble::before {
  content: '';
  position: absolute;
  bottom: -17px;
  right: 52px;
  transform: translateX(-50%) rotate(45deg);
  width: 30px;
  height: 30px;
  background: linear-gradient(-45deg, var(--bs-gray-700) 52%, transparent 0);
  border: 2px solid #000000;
  border-width: 0 3px 3px 0;
  border-radius: 0 0 3px 0;
  box-sizing: border-box;
}

#maQuote .speech-bubble-quote {
  position: absolute;
  background-image: url("../../assets/img/quote-dark-left.svg");
  background-repeat: no-repeat;
  width: 120px;
  height: 104px;
  transform: scale(.8);
  opacity: .15;
  z-index: 1;
}

#maQuote .speech-bubble-signature p {
  color: #fff;
  text-shadow: 1px 1px 1px #000;
  margin-top: 30px;
  margin-right: 50px;
  font-size: 18px;
  line-height: 1.0;
  text-align: right;
}

