/* The Vue-driven pages fade the preloader out and then reveal #app. The
   preloader is a full-viewport opaque overlay at the top of the stacking
   order, so #app does not need to be display:none as well — doing that meant
   a failed Supabase call or a blocked CDN left the page permanently blank,
   and hid the markup from crawlers that do not execute JavaScript. */
#app {
  display: block;
}

/* Generated static pages (scripts/build-pages.mjs) carry no preloader. */
.lqd-static-page #main-preloader {
  display: none;
}

#main-preloader {
  opacity: 1;
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100vw;
  background-color: #fff;
  color: var(--lqd-color-primary);
  z-index: 2147483647;
  transition: opacity 0.5s ease-out;
}

#whatsapp_button {
  position: fixed;
  left: 15px;
  bottom: 15px;
  z-index: 2147483646;
}

#whatsapp_button svg {
  height: 55px;
  width: 55px;
}

.swiper-pagination-bullets {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 10px 0;
}

.swiper-pagination-bullet {
  height: 9px;
  width: 9px;
  margin-right: 8px;
  margin-left: 8px;
  background: #888;
  border-color: #888;
  color: #888;
}

.swiper-pagination-bullet-active {
  opacity: 1;
  background-color: var(--lqd-color-primary);
}

.banner {
  position: relative;
}

.banner .swiper-slide {
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  height: calc(100vh - 162px);
}

.banner .swiper-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 0;
}

.banner .swiper-slide h1,
.banner .swiper-slide h2 {
  position: relative;
  color: #fff;
  z-index: 1;
}

.banner .swiper-slide p {
  position: relative;
  color: #ccc;
  z-index: 1;
}

.banner .banner-next-button,
.banner .banner-prev-button {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 30px;
  width: 30px;
  border-radius: 50%;
  background-color: var(--lqd-color-primary);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px;
  z-index: 3;
}

.banner .banner-prev-button {
  left: 15px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M20 10v4h-9l3.5 3.5l-2.42 2.42L4.16 12l7.92-7.92L14.5 6.5L11 10z'/%3E%3C/svg%3E");
}

.banner .banner-next-button {
  right: 15px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M4 10v4h9l-3.5 3.5l2.42 2.42L19.84 12l-7.92-7.92L9.5 6.5L13 10z'/%3E%3C/svg%3E");
}

.banner .banner-pagination {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  z-index: 3;
}

.banner
  .banner-pagination
  .swiper-pagination-bullet:not(.swiper-pagination-bullet-active) {
  background: #eee;
  opacity: 0.5;
}

.home-reference-image,
.our-services-image {
  aspect-ratio: 1.43 / 1;
  width: 100%;
  object-fit: cover;
}

.link-overlay {
  position: absolute;
  height: 100%;
  width: 100%;
  inset: 0;
  top: 0;
  left: 0;
}

#case-studies .swiper-slide h5 {
  transition: all 0.15s ease-out;
}
#case-studies .swiper-slide:hover h5 {
  color: var(--lqd-color-primary);
}

.lity-custom-show {
  opacity: 1;
  visibility: visible;
}

.swiper-slide {
  cursor: grab;
}

.swiper-slide:active {
  cursor: grabbing;
}

/* Fix navigation dropdown hover issue */
.menu-item-has-children {
  position: relative;
}

.menu-item-has-children .nav-item-children {
  top: calc(100% - 5px); /* Create a 5px overlap to bridge the gap */
}

/* Ensure the dropdown stays visible when hovering over the parent or child */
.menu-item-has-children:hover .nav-item-children,
.menu-item-has-children .nav-item-children:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Add a small invisible bridge to prevent mouse leave */
.menu-item-has-children::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 5px;
  z-index: 10;
  pointer-events: auto;
}
