/* ===== SITE FIXES ===== */

/* 1. Sticky header - full viewport width, stays at top */
header.elementor-location-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  width: 100%;
  left: 0;
}

/* Ensure the header section stretches full width (override elementor-section-boxed) */
header.elementor-location-header > .elementor-section,
header.elementor-location-header .elementor-top-section {
  width: 100%;
  max-width: 100%;
}

/* Keep the inner container properly padded but full-width outer */
header.elementor-location-header .elementor-section.elementor-section-boxed > .elementor-container {
  max-width: 1200px;
  width: 100%;
}

/* ===== DROPDOWN FIXES ===== */

/* Caret arrows for dropdown triggers (Elementor's JS normally injects these) */
/* Down arrow on top-level items with children (About, Our Services)
   Override Elementor's .elementor-item::after which sets display:block,
   position:absolute, and opacity:0 — all of which hide/misplace our caret */
.elementor-nav-menu--main .elementor-nav-menu > .menu-item-has-children > a.elementor-item {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
}
.elementor-nav-menu--main .elementor-nav-menu > .menu-item-has-children > a.elementor-item::after {
  content: '' !important;
  display: inline-block !important;
  position: static !important;
  opacity: 1 !important;
  transform: none !important;
  width: 0 !important;
  height: 0 !important;
  border-left: 4px solid transparent !important;
  border-right: 4px solid transparent !important;
  border-top: 5px solid currentColor !important;
  border-bottom: none !important;
  flex-shrink: 0;
  transition: none !important;
}

/* Right arrow on nested submenu items with children (Areas We Work In) */
.elementor-nav-menu--main .sub-menu .menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 8px;
  vertical-align: middle;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid currentColor;
  float: right;
  margin-top: 6px;
}

/* 2. Replace display:none/block with visibility+opacity+pointer-events.
   This eliminates the cursor-gap problem that closes the menu prematurely. */
.elementor-nav-menu--main .menu-item-has-children { position: relative; }

.elementor-nav-menu--main .menu-item-has-children > .sub-menu {
  display: block !important;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 99999;
  min-width: 320px;
  background-color: #ffffff !important;
  background: #ffffff !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18) !important;
  padding: 6px 0 !important;
  /* Override Elementor's 32px margin-top that creates an uncrossable hover gap */
  margin: 0 !important;
  margin-top: 0 !important;
  list-style: none;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  border-top: 2px solid #e8e8e8;
}

/* Invisible bridge above the dropdown — fills any remaining gap so the cursor
   can travel from the nav item into the dropdown without losing hover state */
.elementor-nav-menu--main .menu-item-has-children > .sub-menu::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: 20px;
}

/* Show on hover of parent li */
.elementor-nav-menu--main .menu-item-has-children:hover > .sub-menu {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Sub-menu items */
.elementor-nav-menu--main .sub-menu li {
  display: block !important;
  width: 100%;
  background-color: #ffffff !important;
}
.elementor-nav-menu--main .sub-menu a {
  padding: 10px 20px !important;
  white-space: normal !important;
  word-wrap: break-word;
  display: block !important;
  color: #333333 !important;
  background-color: #ffffff !important;
  text-decoration: none;
  font-size: 15px;
  line-height: 1.4;
}
.elementor-nav-menu--main .sub-menu a:hover {
  background-color: #f0f0f0 !important;
  color: #000 !important;
}

/* ===== Nested flyout submenu (Areas We Work In) ===== */

.elementor-nav-menu--main .sub-menu .menu-item-has-children {
  position: relative !important;
}

/* Flyout opens to the right of the parent item */
.elementor-nav-menu--main .sub-menu .menu-item-has-children > .sub-menu {
  top: 0 !important;
  left: 100% !important;
  margin: 0 !important;
  margin-top: -6px !important;
  min-width: 180px !important;
  background-color: #ffffff !important;
  box-shadow: 4px 4px 16px rgba(0, 0, 0, 0.15) !important;
  border-top: none !important;
  border-left: 2px solid #e8e8e8;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

/* Invisible bridge to the left — fills the gap between parent and flyout */
.elementor-nav-menu--main .sub-menu .menu-item-has-children > .sub-menu::before {
  content: '';
  position: absolute;
  top: 0;
  left: -15px;
  width: 15px;
  height: 100%;
}

/* Show when hovering the parent "Areas We Work In" item */
.elementor-nav-menu--main .sub-menu .menu-item-has-children:hover > .sub-menu {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}


/* ===== GALLERY GRID ===== */
.hx-gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 28px;
}
.hx-filter-btn {
  padding: 8px 20px;
  border: 2px solid #ddd;
  background: #fff;
  color: #333 !important;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s;
}
.hx-filter-btn:hover,
.hx-filter-btn.active {
  background: #ffb703 !important;
  color: #023047 !important;
  border-color: #ffb703 !important;
  font-weight: 600;
}
.hx-gallery-grid {
  columns: 3;
  column-gap: 10px;
  padding: 0 20px;
}
@media (max-width: 900px) { .hx-gallery-grid { columns: 2; } }
@media (max-width: 520px) { .hx-gallery-grid { columns: 1; } }

.hx-gallery-item {
  display: block;
  break-inside: avoid;
  margin-bottom: 10px;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
}
.hx-gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hx-gallery-item:hover img {
  transform: scale(1.03);
  opacity: 0.9;
}
.hx-gallery-item.hx-hidden { display: none; }

/* ===== LIGHTBOX ===== */
#hx-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 999999;
  align-items: center;
  justify-content: center;
}
#hx-lightbox.hx-lb-open { display: flex; }

#hx-lb-img-wrap {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
#hx-lb-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 3px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
  display: block;
}
#hx-lb-close {
  position: absolute;
  top: 16px; right: 20px;
  background: none; border: none;
  color: #fff; font-size: 44px;
  cursor: pointer; line-height: 1;
  opacity: 0.8; z-index: 1000000;
  padding: 0 6px;
}
#hx-lb-close:hover { opacity: 1; }
#hx-lb-prev, #hx-lb-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: none; color: #fff;
  font-size: 48px; cursor: pointer;
  padding: 8px 16px; border-radius: 4px;
  opacity: 0.8; z-index: 1000000;
  line-height: 1;
}
#hx-lb-prev { left: 12px; }
#hx-lb-next { right: 12px; }
#hx-lb-prev:hover, #hx-lb-next:hover { opacity: 1; background: rgba(255,255,255,0.25); }


/* ===== FOOTER GALLERY GRID ===== */
.elementor-gallery__container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.elementor-gallery__container .e-gallery-item {
  display: block;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 3/2;
}
.elementor-gallery__container .e-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.elementor-gallery__container .e-gallery-item:hover img {
  transform: scale(1.05);
}

/* ===== PORTFOLIO "OUR PREVIOUS WORKS" FIXES ===== */
.elementor-invisible {
  visibility: visible !important;
  opacity: 1 !important;
}

.hx-portfolio-link {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 10;
  cursor: pointer;
  transition: background 0.2s;
}
.hx-portfolio-link:hover {
  background: rgba(0,0,0,0.15);
}

/* ===== REVIEWS SWIPER CAROUSEL ===== */

/* Let Swiper JS control the layout — undo the static freeze */
.elementor-widget-reviews .swiper-wrapper {
  display: flex !important;
  overflow: visible !important;
  transition-timing-function: ease;
}

.elementor-widget-reviews .swiper-slide {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  height: auto !important;
  background-color: #fff !important;
  border: 1px solid #e1e8ed !important;
  border-radius: 8px !important;
  padding: 0 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  overflow: hidden;
}

/* Swiper container — clip overflow so only visible slides show */
.elementor-widget-reviews .elementor-main-swiper {
  width: calc(100% - 60px) !important;
  margin: 0 auto;
  overflow: hidden !important;
}

/* Show the prev/next arrows for reviews (override the global hide) */
.elementor-widget-reviews .elementor-swiper-button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.elementor-widget-reviews .elementor-swiper-button:hover {
  opacity: 1;
}
.elementor-widget-reviews .elementor-swiper-button-prev {
  left: 0;
}
.elementor-widget-reviews .elementor-swiper-button-next {
  right: 0;
}
/* Hide the original icon element */
.elementor-widget-reviews .elementor-swiper-button i {
  display: none !important;
}
/* CSS chevron arrows */
.elementor-widget-reviews .elementor-swiper-button::after {
  content: '' !important;
  display: block;
  width: 12px;
  height: 12px;
  border-top: 3px solid #ffb703;
  border-right: 3px solid #ffb703;
}
.elementor-widget-reviews .elementor-swiper-button-prev::after {
  transform: rotate(-135deg);
  margin-left: 4px;
}
.elementor-widget-reviews .elementor-swiper-button-next::after {
  transform: rotate(45deg);
  margin-right: 4px;
}

/* Review card inner styling */
.elementor-widget-reviews .elementor-testimonial__header {
  display: flex !important;
  padding: 15px 15px 6px !important;
  border-bottom: 1px solid #e1e8ed;
}

.elementor-widget-reviews .elementor-testimonial__cite {
  font-style: normal;
}

.elementor-widget-reviews .elementor-testimonial__name {
  font-weight: 700 !important;
  color: #1c2022 !important;
  font-size: 15px !important;
  display: block;
  margin-bottom: 4px;
}

.elementor-widget-reviews .elementor-testimonial__content {
  padding: 6px 15px 15px !important;
}

.elementor-widget-reviews .elementor-testimonial__text {
  font-size: 14px !important;
  line-height: 1.5 !important;
  color: #444 !important;
}

/* Star ratings */
.elementor-star-rating {
  color: #ccd6df;
  display: inline-flex !important;
  gap: 1px;
  font-family: eicons !important;
}
.elementor-star-rating i {
  display: inline-block !important;
  font-style: normal !important;
  position: relative;
  font-size: 14px;
  width: 1em;
  height: 1em;
}
.elementor-star-rating i::before {
  content: "\e934" !important;
  font-family: eicons !important;
  color: #f0ad4e !important;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

/* ===== MOBILE / TABLET NAV DROPDOWN ===== */
@media (max-width: 1024px) {
  /* Hidden by default — override ALL Elementor show/hide rules */
  nav.elementor-nav-menu--dropdown.elementor-nav-menu__container {
    display: none !important;
    transform: none !important;
    max-height: none !important;
  }

  /* Shown when JS adds .mobile-nav-open */
  nav.elementor-nav-menu--dropdown.elementor-nav-menu__container.mobile-nav-open {
    display: block !important;
    position: fixed !important;
    top: 70px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: auto !important;
    max-height: 100vh !important;
    overflow-y: auto !important;
    background: #fff !important;
    z-index: 99999 !important;
    padding: 10px 0 20px !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15) !important;
    transform: none !important;
  }

  /* All items in mobile dropdown — centered */
  .elementor-nav-menu--dropdown .elementor-item,
  .elementor-nav-menu--dropdown .elementor-sub-item {
    text-align: center !important;
    display: block !important;
    padding: 14px 20px !important;
    color: #333 !important;
    font-size: 16px !important;
    white-space: normal !important;
  }

  /* Top-level items — bold with subtle separator */
  .elementor-nav-menu--dropdown > .elementor-nav-menu > .menu-item > .elementor-item {
    font-weight: 600 !important;
    border-bottom: 1px solid #f0f0f0 !important;
  }

  /* Active page — gold highlight */
  .elementor-nav-menu--dropdown > .elementor-nav-menu > .current-menu-item > .elementor-item,
  .elementor-nav-menu--dropdown > .elementor-nav-menu > .current-menu-ancestor > .elementor-item {
    background: #ffb703 !important;
    color: #fff !important;
  }

  /* Dropdown carets on About / Our Services */
  .elementor-nav-menu--dropdown .menu-item-has-children > .elementor-item::after,
  .elementor-nav-menu--dropdown .menu-item-has-children > .elementor-sub-item::after {
    content: '' !important;
    display: inline-block !important;
    position: static !important;
    opacity: 1 !important;
    width: 0 !important;
    height: 0 !important;
    border-left: 5px solid transparent !important;
    border-right: 5px solid transparent !important;
    border-top: 6px solid currentColor !important;
    border-bottom: none !important;
    margin-left: 8px !important;
    vertical-align: middle !important;
    transform: none !important;
    transition: transform 0.2s !important;
  }

  /* Rotate caret when open */
  .elementor-nav-menu--dropdown .menu-item-has-children.mobile-open > a::after {
    transform: rotate(180deg) !important;
  }

  /* Sub-menus — hidden by default */
  .elementor-nav-menu--dropdown .sub-menu {
    position: static !important;
    display: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    box-shadow: none !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: #fafafa !important;
    max-height: none !important;
    overflow: visible !important;
    transform: none !important;
  }

  /* Show sub-menu when parent tapped */
  .elementor-nav-menu--dropdown .menu-item-has-children.mobile-open > .sub-menu {
    display: block !important;
  }

  /* Sub-menu items — slightly smaller */
  .elementor-nav-menu--dropdown .sub-menu .elementor-sub-item {
    font-size: 15px !important;
    color: #555 !important;
    padding: 12px 20px !important;
  }

  /* Nested sub-menus (cities) */
  .elementor-nav-menu--dropdown .sub-menu .sub-menu {
    background: #f5f5f5 !important;
  }
  .elementor-nav-menu--dropdown .sub-menu .sub-menu .elementor-sub-item {
    font-size: 14px !important;
    color: #666 !important;
    padding: 10px 20px !important;
  }

  /* No hover bridges in mobile */
  .elementor-nav-menu--dropdown .sub-menu::before {
    display: none !important;
  }

  /* Keep hamburger/X button above the fixed dropdown */
  .elementor-menu-toggle {
    position: relative !important;
    z-index: 100000 !important;
  }

  /* Keep header above the dropdown */
  header.elementor-location-header {
    z-index: 100001 !important;
  }
}

/* ===== FAQ SECTION ===== */
.faq-list .faq-item {
  border-bottom: 1px solid #e0e0e0;
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 16px 0;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #023047;
  font-family: inherit;
  line-height: 1.4;
}
.faq-question:hover {
  color: #ffb703;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer-inner {
  padding: 0 0 16px;
  font-size: 15px;
  line-height: 1.6;
  color: #444;
}
.faq-icon {
  font-size: 20px;
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 12px;
}
