/* Elementor JS appends a second .sub-arrow span to nav items that already have one in the captured HTML. Hide the duplicate. */
.sub-arrow + .sub-arrow {
  display: none !important;
}

/* Restore SmartMenus-style dropdown sizing and nested flyouts without the WordPress runtime. */
.elementor-location-header .elementor-nav-menu--main li.menu-item-has-children > .sub-menu {
  box-sizing: border-box;
  width: max-content;
  min-width: 100%;
}

.elementor-location-header .elementor-nav-menu--main .sub-menu a.has-submenu > .sub-arrow {
  color: inherit !important;
  fill: currentColor !important;
}

.elementor-location-header .elementor-nav-menu--main .sub-menu a.has-submenu > .sub-arrow svg,
.elementor-location-header .elementor-nav-menu--main .sub-menu a.has-submenu > .sub-arrow path {
  fill: currentColor !important;
}

.elementor-location-header .elementor-nav-menu--main .sub-menu .menu-item-has-children {
  position: relative;
}

.elementor-location-header .elementor-nav-menu--main .sub-menu .menu-item-has-children > .sub-menu {
  top: 0 !important;
  left: 100% !important;
  right: auto !important;
  margin: 0 !important;
  z-index: 1000;
}

.elementor-location-header .elementor-nav-menu--main .sub-menu .menu-item-has-children > .sub-menu.tekton-submenu-open-left {
  left: auto !important;
  right: 100% !important;
}

/* css3-animate-it: .animated stays opacity:0 + transform-shifted without JS adding .go */
.animated {
  opacity: 1 !important;
  animation: none !important;
  transform: none !important;
}

.tekton-form-placeholder {
  border: 2px dashed #2d7f7a;
  background: rgba(45, 127, 122, 0.08);
  color: #123331;
  padding: 24px;
  margin: 24px 0;
  border-radius: 6px;
  font: 600 18px/1.45 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: center;
}

/* Reproduce Elementor's background slideshow without loading its WordPress runtime. */
.tekton-static-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.tekton-static-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 500ms ease;
}

.tekton-static-slide.is-active {
  opacity: 1;
}

.tekton-static-slide .elementor-background-slideshow__slide__image {
  width: 100%;
  height: 100%;
  background-position: 50%;
  background-size: cover;
}

@media (prefers-reduced-motion: reduce) {
  .tekton-static-slide {
    transition: none;
  }
}

/* Keep captured Elementor image carousels functional without loading Swiper JS. */
.tekton-static-carousel-viewport {
  overflow: hidden;
}

.tekton-static-carousel {
  display: flex;
  width: 100%;
  will-change: transform;
}

.tekton-static-carousel > .swiper-slide {
  box-sizing: border-box;
  flex: 0 0 calc((100% - 24px) / 3);
  width: calc((100% - 24px) / 3) !important;
  max-width: calc((100% - 24px) / 3);
  margin-right: 12px;
}

.tekton-static-carousel .swiper-slide-image {
  display: block;
  width: 100%;
  height: auto;
}

.tekton-static-carousel .swiper-lazy-preloader {
  display: none !important;
}

.elementor-widget-image-carousel .swiper-pagination-bullet {
  border: 0;
  padding: 0;
  cursor: pointer;
}

.tekton-service-area-gallery {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 24px;
  width: 100%;
  margin: 24px 0 64px;
}

.tekton-service-area-gallery .tekton-service-area-card,
.tekton-service-area-gallery .elementor-widget-image,
.tekton-service-area-gallery .elementor-widget-container,
.tekton-service-area-gallery img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
}

.tekton-service-area-gallery .tekton-service-area-card {
  overflow: hidden;
  border-radius: 24px;
  background: #f4f7f7;
  text-decoration: none;
}

.tekton-service-area-gallery .tekton-service-area-card h3 {
  margin: 0;
  padding: 18px 16px 22px;
  text-align: center;
}

.tekton-service-area-gallery .elementor-widget-image {
  --container-widget-width: 100% !important;
  --container-widget-flex-grow: 1 !important;
  flex: 0 0 100% !important;
}

.tekton-service-area-gallery img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.wc-project-planner-frame {
  height: 805px !important;
  min-height: 805px !important;
}

/* Let the hardscape-wall feature section grow with its text and CTA. The captured
   Elementor CSS capped it at 600px, which pushed the button into Project Gallery. */
.elementor-page-3222 .elementor-element.elementor-element-370feb9 {
  max-height: none !important;
}

@media (max-width: 767px) {
  .elementor-location-header .elementor-menu-toggle {
    position: relative;
    z-index: 9998;
  }

  .tekton-service-area-detail .elementor-element.elementor-element-14364a1,
  .tekton-service-area-detail .elementor-element.elementor-element-eb64f3e,
  .tekton-service-area-detail .elementor-element.elementor-element-3e81514 {
    min-height: 350px !important;
    height: 350px !important;
  }

  .tekton-service-area-gallery {
    grid-template-columns: 1fr !important;
    gap: 18px;
    margin-bottom: 48px;
  }

  .tekton-static-carousel > .swiper-slide {
    flex-basis: 100%;
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0;
  }

  .tekton-static-carousel .swiper-slide-image {
    aspect-ratio: 1.5 / 1;
    object-fit: cover;
  }

  .wc-project-planner-frame {
    height: 875px !important;
    min-height: 875px !important;
  }
}
