/*
* General
*/
body.post,
body.page {
  margin-bottom: 0;
}

.custom-list ol,
.entry-content ol {
  padding-left: 1.5em;
}

.custom-list ul,
.entry-content ul,
section.services ul {
  padding-left: 1em;
}

section.services ul li {
  list-style-position: initial;
}

.bg-light_blue {
  background: #EAF7FF !important;
}

/*
* Frontpage hero
*/
.frontpage-hero {
  background-size: cover;
  background-position: bottom left;
  z-index: initial;
}

.bubble-desktop {
  top: 0 !important;
  bottom: 1em !important;
  height: unset !important;
  padding-top: 0 !important;
  background-image: url('./img/hero-bubble.svg') !important;
  /* background-size: contain !important; */
  background-position: bottom left !important;
  background-repeat: no-repeat;
  aspect-ratio: 1/1;
}

.bubble-mobile {
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  aspect-ratio: 1/1;
}

.bubble-mobile-text {
  max-width: calc(100% - 6rem);
}

.frontpage-hero .animation-image-col {
  z-index: 3;
}

@media screen and (max-width: 991px) {
  .frontpage-hero {
    height: auto;
    margin-top: 0;
    padding-top: 100px !important;
    background-size: cover;
    background-position: top left;
    overflow: hidden;
  }

  .frontpage-hero .animation-image-col {
    top: 0 !important;
    left: 0 !important;
  }

  .frontpage-hero #lottie-container {
    width: 100%;
    height: fit-content;
    padding-bottom: 1rem;
    max-width: 100%;
  }

  .frontpage-hero #lottie-container svg {
    max-width: 100% !important;
    transform: scale(1.75) !important;
  }

  .frontpage-hero h1 {
    font-size: 2rem;
  }
}

@media screen and (max-width: 768px) {
  .bubble-mobile {
    order: -1;
  }

  .frontpage-hero #lottie-container {
    margin-top: -2rem;
  }
}

/*
* Subpage hero
*/
section.hero {
  height: unset;
}

.hero.has-blue-bg .text-area {
  background-color: #B3E2FD;
}

section.hero .hero-img {
  position: static;
  width: 100%;
  max-height: 70vh;
  object-fit: cover;
}

section.hero .bottom-area {
  top: unset;
}

section.hero .bottom-area svg {
  position: absolute;
  display: block;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  height: auto;
  transform: translateY(-100%);
}

section.hero .text-area {
  margin-top: -4px;
}

section.hero .text-area .image-col img {
  width: 200px;
  height: 200px;
}

section.hero .text-area .image-col {
  margin-top: -200px;
}

section.hero .text-area .image-col {
  transform: translateY(-50%);
}

@media screen and (max-width: 1300px) {
  section.hero .text-area .image-col {
    transform: translateY(-0%);
  }
}

@media screen and (max-width: 768px) {
  section.hero .text-area .image-col {
    margin-top: -100px;
  }

  section.hero .text-area .image-col img {
    width: 150px;
    height: 150px;
  }
}

/*
* Hero with hide wave setting
*/
section.hero.hide-wave .text-area {
  padding-bottom: 10vh;
  background-image: none !important;
}

.hero.hide-wave+section.services-with-icons .box-container {
  margin-top: -2px !important;
  background-image: none !important;
}

.hero.hide-wave+section.services-with-icons .intro-container {
  padding: 0 !important;
}

@media screen and (max-width: 768px) {
  section.hero.hide-wave .text-area {
    padding-bottom: 0;
  }
}

/*
* Subpage mobile hero
*/
@media screen and (max-width: 992px) {
  section.hero .text-area {
    padding-bottom: 150px;
  }

  section.hero .hero-img {
    position: relative;
    min-height: 350px;
    object-fit: cover;
    object-position: top center;
  }

  /* section.hero .bottom-area {
    top: unset;
    margin-top: -125px;
  }

  section.hero .text-area {
    margin-top: -4px;
    padding-bottom: 2rem;
  } */
}

@media screen and (max-width: 768px) {
  section.hero .text-area {
    padding-bottom: 100px;
  }
}

/*
* Contacts
*/
section.contacts .row .image-col .rounded-circle {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
}

/*
* List and image
*/
.list-and-image .type-default .image-col {
  top: 0;
  right: 0;
  bottom: 0;
}

.list-and-image .type-default .image-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.list-and-image .text-col ul {
  padding-left: 1rem;
}

@media screen and (min-width: 768px) {
  .list-and-image .btn {
    padding: 15px 50px;
  }
}

@media screen and (max-width: 992px) {
  .list-and-image .type-default {
    flex-direction: column;
    gap: 0 !important;
  }

  .list-and-image .type-default .text-col {
    width: calc(100% - 1rem);
    margin-top: -2rem;
    border-radius: 0 !important;
  }

  .list-and-image .type-default .image-col {
    padding-left: 1rem;
  }
}

@media screen and (min-width: 992px) {
  .list-and-image .image-left {
    position: absolute !important;
    top: 0 !important;
    bottom: 100px !important;
    left: 0 !important;
    width: 70% !important;
    padding-bottom: 0 !important;
  }

  .list-and-image .image-left img {
    display: block;
    width: 100%;
    height: 100%;
    object-position: top right;
    object-fit: cover;
  }

  .list-and-image .text-right {
    margin-top: 100px !important;
    margin-left: auto !important;
  }
}

section.list-and-image .text-col.green-bubble.order-lg-last {
  top: 50%;
  right: unset;
  left: 50%;
  width: 50%;
  height: 100%;
  transform: translate(0, -50%);
  aspect-ratio: 1 / 1;
}

@media screen and (max-width: 1400px) {
  section.list-and-image .text-col.green-bubble {
    left: 40%;
  }
}

@media screen and (max-width: 992px) {
  .list-and-image .type-green_bubble {
    gap: 0 !important;
  }

  section.list-and-image .text-col.green-bubble.order-last {
    position: relative;
    left: unset;
    width: 100%;
    height: unset;
    margin-top: -2rem;
    padding: 1rem;
    border-radius: 0 !important;
    background: #97efdc !important;
    transform: none;
    aspect-ratio: unset;
  }
}

/*
* Custom list
*/
@media screen and (max-width: 768px) {
  .custom-list>.container {
    max-width: calc(100% - calc(var(--tt-gutter-x)));
  }
}

/*
* Image and text
*/
@media screen and (max-width: 578px) {
  section.image-and-text .row .image-col.grey-bg {
    padding: 2rem;
  }
}

/*
* Testimonials
*/
.carousel-control-prev-icon {
  background-image: url('./img/icons/chevron-left.svg');
}

.carousel-control-next-icon {
  background-image: url('./img/icons/chevron-right.svg');
}

/* @media screen and (max-width: 992px) {
  .statistics+.testimonials {
    margin-top: 0 !important;
    background-image: none !important;
  }
} */

/*
* Statistics
*/
@media screen and (max-width: 992px) {
  section.statistics {
    padding-top: 50px !important;
    padding-bottom: 0 !important;
    background-image: none !important;
  }
}

/*
* Services with icons
*/
section.services-with-icons {
  position: relative;
  z-index: 2;
}

@media screen and (min-width: 1500px) {
  section.services-with-icons .intro-container {
    padding-bottom: 20vh;
  }

  section.services-with-icons .box-container {
    margin-top: -20vh;
  }
}

@media screen and (max-width: 992px) {
  section.services-with-icons .intro-container {
    padding-bottom: 10vh;
  }

  section.services-with-icons .box-container {
    margin-top: -10vh;
  }
}

@media screen and (max-width: 768px) {
  section.services-with-icons .button-row {
    margin-top: 2rem;
  }
}

@media screen and (max-width: 577px) {
  section.services-with-icons.lift-top {
    margin-top: -50px;
  }
}

/*
* Services 
*/
.service-icon {
  width: 144px !important;
  height: 144px !important;
  margin: auto !important;
  padding: 0.5em;
  aspect-ratio: 1 / 1;
}

.service-icon img {
  display: block;
  object-fit: contain;
}

@media screen and (max-width: 768px) {
  .services .icon-container {
    text-align: center;
  }

  .services .icon-container:before {
    right: 0;
    left: 0;
    margin: auto;
  }
}

/*
* Newsletter 
*/
section.order-newsletter .form-container .col {
  position: relative;
}

section.order-newsletter .form-container label {
  position: absolute;
  top: 0.5rem;
  left: 30px;
  padding: 0;
  font-size: 80%;
  background: none;
  z-index: 2;
  pointer-events: none;
}

section.order-newsletter .form-container label+br {
  display: none;
}

section.order-newsletter .wpcf7-form-control-wrap {
  display: block;
  margin-bottom: 1rem;
}

section.order-newsletter .form-container input:not([type="submit"]) {
  margin-bottom: 0;
  padding-top: 2rem;
  border-radius: 1rem;
}

.order-newsletter .wpcf7-form {
  padding-left: calc(var(--tt-gutter-x));
  padding-right: calc(var(--tt-gutter-x));
}

section.order-newsletter .form-container .newsletter_icon {
  top: 0;
  transform: translateY(-75%);
}

/*
* Why choose us
*/
.why-to-choose-us img.rounded-circle {
  padding: 1em;
  background: currentColor;
  max-width: 140px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

/*
* Blog
*/
.single-hero {
  --hero-padding: 20vh;
  position: relative;
  background: #FFCFCF;
}

.single-hero-wrapper {
  padding-top: calc(var(--hero-padding) / 2);
  padding-bottom: var(--hero-padding);
}

.single-hero-bottom {
  position: absolute;
  right: 0;
  bottom: -2px;
  left: 0;
  height: var(--hero-padding);
  z-index: 2;
}

.single-hero-bottom svg {
  display: block;
  width: 100%;
  height: 100%;
  line-height: 0;
  object-fit: cover;
  object-position: top center;
}

.single-hero-date {
  font-weight: bold;
}

@media screen and (max-width: 992px) {
  .single-hero {
    --hero-padding: 10vh;
    padding-bottom: 1em;
  }
}

/* .related-posts {
  position: relative;
  margin-bottom: -2px;
  padding-bottom: 2px;
  z-index: 1;
}

.related-posts:before {
  content: '';
  position: absolute;
  top: 30%;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: url('./img/related-wave.svg');
  background-size: cover;
  background-position: top right;
  background-repeat: no-repeat;
  z-index: -1;
  pointer-events: none;
}

@media screen and (max-width: 768px) {
  .related-posts {
    padding-top: 10vh;
  }

  .related-posts:before {
    top: 0;
  }
} */

.latest-posts .featured-image img {
  display: block;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.latest-blog>.container>.col:first-child {
  position: relative;
  z-index: 1;
}

section.latest-blog .latest-posts div.text-area {
  z-index: initial !important;
}

/*
* Change footer background to match related posts wave
*/
.single-post .site-footer {
  position: relative;
  background-color: #FFE2E2 !important;
}

.related-posts-heading {
  color: #445773;
}

.related-posts-image img {
  display: block;
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
}

.related-posts-title {
  font-size: 1.3em;
}

.related-posts-link {
  font-weight: bold;
}

/* .single-post-image img {
  width: 100%;
  height: auto;
} */

/*
* Footer
*/
footer .bg-container.mobile {
  height: 10vh;
}

.footer-wave .site-footer {
  position: relative;
  background: #FFE2E2 !important;
}

.site-footer__wave {
  position: absolute;
  display: none;
  top: 0;
  right: 0;
  left: 0;
  background: #FFE2E2;
  z-index: -1;
}

.footer-wave .site-footer__wave {
  display: block;
}

.site-footer__wave svg {
  display: block;
  width: 100%;
  min-height: 20vh;
  transform: translateY(-95%);
}

.site-footer-some,
.footer-col__logo a {
  display: inline-block;
  transition: 0.25s ease all;
}

.footer-col__logo a:hover,
.footer-col__logo a:focus,
.site-footer-some:hover,
.site-footer-some:focus {
  opacity: .75;
}

@media screen and (max-width: 768px) {
  .site-footer__wave svg {
    min-height: unset;
    max-height: 10vh;
  }
}

/*
* Mobile header
*/
@media screen and (max-width: 992px) {
  #site-navigation.navbar>.container {
    flex-wrap: nowrap;
  }

  #site-navigation.navbar ul>li {
    margin-right: 0;
  }

  .dropdown-menu {
    display: block !important;
    background: none !important;
  }
}

/*
* Mobile menu
*/
.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

.navbar-toggler:focus-visible,
.navbar-toggler:hover {
  opacity: 0.75;
}

.navbar-toggler-icon {
  background-image: none;
}

.navbar-toggler-icon {
  position: relative;
  display: inline-block;
  width: 30px;
  height: 24px;
  transition: transform 0.3s ease;
}

.navbar-toggler-icon div,
.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: '';
  position: absolute;
  display: block;
  left: 0;
  height: 4px;
  border-radius: 2px;
  background-color: currentColor;
  transition: all 0.3s ease;
}

/* Default hamburger (when parent doesn't have .toggled) */
.navbar-toggler:not(.toggled) .navbar-toggler-icon div {
  top: 0;
  width: 20px;
}

.navbar-toggler:not(.toggled) .navbar-toggler-icon::before {
  top: 10px;
  width: 28px;
}

.navbar-toggler:not(.toggled) .navbar-toggler-icon::after {
  top: 20px;
  width: 14px;
}

/* X icon (when parent has .toggled) */
.toggled .navbar-toggler .navbar-toggler-icon div {
  top: 10px;
  width: 28px;
  transform: rotate(45deg);
}

.toggled .navbar-toggler .navbar-toggler-icon::before {
  opacity: 0;
}

.toggled .navbar-toggler .navbar-toggler-icon::after {
  top: 10px;
  width: 28px;
  transform: rotate(-45deg);
}

@media screen and (max-width: 992px) {

  .site-branding,
  .navbar-toggler {
    z-index: 9999;
  }

  .navbar-collapse {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(var(--tt-light_turquoise-rgb), var(--tt-bg-opacity));
    min-height: 100vh;
    z-index: 99;
  }

  .navbar-collapse #primary-menu {
    padding: 100px calc(3rem + 1.5rem) 3rem;
  }
}

@media screen and (max-width: 768px) {
  .navbar-collapse #primary-menu {
    padding: 100px calc(var(--tt-gutter-x) * .5) 3rem;
  }
}