/* Home Carousel Styling */

.carousel-caption {
  opacity: 0;
  left: 3%;
  top: 8%;
  z-index: 10;
  padding: 0;
  transition: opacity 1.2s ease-in-out;
}

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

.carousel-item:first-child .carousel-caption {
  opacity: 0;
}

.carousel-item:first-child.active .carousel-caption {
  animation: mobile-first-slide-fade 1.2s ease-in-out .5s forwards;
}

@media (min-width: 576px) {
  .carousel-item:first-child.active .carousel-caption {
    animation: desktop-slide 2.5s cubic-bezier(0.4, 0.2, 0.5, 1.0) forwards;
  }
}

@keyframes mobile-first-slide-fade {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@media (min-width: 576px) {
  .carousel-item.active .carousel-caption {
    transition: none;
    animation: desktop-slide 2.5s cubic-bezier(0.4, 0.2, 0.5, 1.0) forwards;
  }
}

@keyframes desktop-slide {
  0% {
    opacity: 0;
    transform: translate3d(-100vw, 0, 0);
  }
  50% {
    opacity: 0.2;
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (min-width: 1200px) {
  .carousel-caption {
    left: 5%;
    top: 10%;
  }
}

/* Pause animations when modal is open OR when carousel is out of view */

body.modal-open .carousel-item.active .carousel-caption, #carousel-1:not(.is-visible) .carousel-item.active .carousel-caption {
  animation-play-state: paused !important;
  transition: none !important;
}

/* Carousel Caption Wrapper Styling */

.carousel-caption-wrapper {
  background: rgba(2,66,142,0.6);
  border-radius: 5px;
  padding: 12px 10px 10px 12px;
  width: 79vw;
}

@media (min-width: 576px) {
  .carousel-caption-wrapper {
    padding: 15px 10px 12px 15px;
    width: 72vw;
  }
}

@media (min-width: 768px) {
  .carousel-caption-wrapper {
    padding: 15px 10px 15px 20px;
    width: 72vw;
  }
}

@media (max-width: 767px) {
  .slide-3.carousel-caption-wrapper {
    width: 87vw !important;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .slide-3.carousel-caption-wrapper {
    width: 84vw !important;
  }
}

@media (min-width: 992px) {
  .carousel-caption-wrapper {
    border-radius: 7px;
    padding: 15px 10px 15px 22px;
    width: 70vw;
  }
}

@media (min-width: 1200px) {
  .carousel-caption-wrapper {
    padding: 18px 10px 16px 25px;
    width: 685px;
  }
}

@media (min-width: 1200px) and (max-width: 1399px) {
  .slide5.carousel-caption-wrapper {
    width: 745px;
  }
}

@media (min-width: 1400px) {
  .carousel-caption-wrapper {
    padding: 18px 10px 16px 25px;
    width: 640px;
  }
}

.carousel-caption h2 {
  font-size: calc(2px + 5vw);
  text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
  font-weight: 900;
}

@media (min-width: 1200px) {
  .carousel-caption h2 {
    line-height: 1.1;
  }
}

@media (min-width: 1400px) {
  .carousel-caption h2 {
    font-size: 70px;
    line-height: 1.1;
  }
}

.carousel-caption p {
  line-height: 1.4;
  margin-bottom: 0;
  font-size: calc(1px + 4.5vw);
  text-shadow: 2px 2px 3px rgba(0,0,0,0.5);
  font-style: italic;
}

@media (min-width: 576px) {
  .carousel-caption p {
    line-height: 1.3;
    font-size: calc(3px + 4vw);
  }
}

@media (min-width: 992px) {
  .carousel-caption p {
    font-size: calc(3px + 3.5vw);
  }
}

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

/* Home Page Text Styling */

.main-text {
  font-size: 19px;
  line-height: 1.4;
  color: var(--bs-primary-border-subtle);
}

@media (min-width: 576px) {
  .main-text {
    font-size: 20px;
  }
}

@media (min-width: 768px) {
  .main-text {
    font-size: 22px;
  }
}

@media (min-width: 992px) {
  .main-text {
    font-size: 26px;
  }
}

@media (min-width: 1400px) {
  .main-text {
    font-size: 31px;
  }
}

.question-text {
  font-size: 17px;
}

@media (min-width: 576px) {
  .question-text {
    font-size: 17.5px;
  }
}

@media (min-width: 1400px) {
  .question-text {
    font-size: 20px;
  }
}

/* We Offer Styling */

.service-item h3 {
  margin-bottom: 2px;
}

.service-item .fas {
  font-size: 20px;
  position: relative;
  top: 4px;
  color: var(--bs-link-hover-color);
}

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

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

.service-description {
  font-size: 17px;
  -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;
}

@media (min-width: 1400px) {
  .service-description {
    font-size: 18px;
  }
}

/* Read More-Less Styling */

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

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

.toggle-link:hover, .toggle-link:focus {
  color: var(--bs-link-hover-color);
  text-decoration: none;
}

.toggle-link-wrapper.is-expanded .toggle-link {
  color: var(--bs-link-hover-color);
}

/* Service Boxes Styling */

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

@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-shadow: 4px 4px 15px rgba(0,0,0,0.2);
}

.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.5);
  text-shadow: 1px 1px 0px rgba(0,0,0,0.7);
  color: #ffffff;
  text-align: center;
  padding: 5px 4px;
  transition: background .3s;
}

.box:hover .heading {
  background: #000000;
  transition: background .3s;
}

/* Quote Styling */

#maQuote p {
  position: relative;
  font-size: 16px;
  line-height: 1.5;
  font-family: 'Roboto';
  font-weight: 400;
  color: #ffffff;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
  z-index: 2;
  text-align: left;
}

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

#maQuote .speech-bubble {
  display: block;
  width: 100%;
  position: relative;
  background: #004ba2;
  border: 2px solid #000000;
  border-radius: .5rem;
  text-shadow: none;
  padding: 15px 20px;
  box-sizing: border-box;
  min-height: 100px;
}

#maQuote .speech-bubble::before {
  content: '';
  position: absolute;
  bottom: -17px;
  right: 52px;
  transform: translateX(-50%) rotate(45deg);
  width: 30px;
  height: 30px;
  background: linear-gradient(-45deg, #004ba2 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(.7);
  opacity: .15;
  z-index: 1;
}

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

