/* ========================================
   SITE FIXES - Navbar, Gallery, Popup
   ======================================== */

/* === NAVBAR RESPONSIVE FIXES === */
.elementor-sticky,
.elementor-sticky--active {
  width: 100% !important;
  max-width: 100vw !important;
  box-sizing: border-box !important;
}

nav.elementor-nav-menu--dropdown.elementor-nav-menu__container {
  width: 100% !important;
  left: 0 !important;
  right: 0 !important;
  max-width: 100vw !important;
  box-sizing: border-box !important;
}

@media (max-width: 767px) {
  nav.elementor-nav-menu--dropdown.elementor-nav-menu__container {
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    position: fixed !important;
    margin: 0 !important;
    padding: 10px 0 !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 1024px) {
  .elementor-nav-menu--main.elementor-nav-menu--layout-horizontal {
    display: none !important;
  }
  .elementor-menu-toggle {
    display: flex !important;
  }
  nav.elementor-nav-menu--dropdown.elementor-nav-menu__container {
    position: absolute !important;
    top: 100% !important;
    width: 100% !important;
    left: 0 !important;
    z-index: 99999 !important;
    background: #fff !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    padding: 10px 0 !important;
  }
  nav.elementor-nav-menu--dropdown .elementor-nav-menu > li {
    display: block !important;
    width: 100% !important;
  }
  nav.elementor-nav-menu--dropdown .elementor-nav-menu > li > a {
    display: block !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
    color: #222 !important;
    text-decoration: none !important;
    border-bottom: 1px solid #f0f0f0 !important;
    text-align: center !important;
  }
  nav.elementor-nav-menu--dropdown .sub-menu {
    position: static !important;
    display: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding-left: 0px !important;
  }
  nav.elementor-nav-menu--dropdown .sub-menu.sub-menu-open {
    display: block !important;
  }
  nav.elementor-nav-menu--dropdown .sub-menu a {
    padding: 10px 20px !important;
    font-size: 15px !important;
    display: block !important;
    color: #444 !important;
    text-decoration: none !important;
    text-align: center !important;
  }
  nav.elementor-nav-menu--dropdown .elementor-nav-menu > li.current-menu-item > a,
  nav.elementor-nav-menu--dropdown .elementor-nav-menu > li.current_page_item > a,
  nav.elementor-nav-menu--dropdown .elementor-nav-menu > li > a.elementor-item-active {
    color: #fff !important;
  }
  nav.elementor-nav-menu--dropdown .elementor-nav-menu > li.menu-item-has-children > a,
  nav.elementor-nav-menu--dropdown .elementor-nav-menu > li.menu-item-has-children.sub-menu-open > a {
    color: #000 !important;
    background: #fff !important;
  }
  nav.elementor-nav-menu--dropdown .menu-item-has-children > a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    width: 100% !important;
  }
  nav.elementor-nav-menu--dropdown .menu-item-has-children > a .sub-arrow {
    position: static !important;
    display: inline-flex !important;
    align-items: center !important;
    margin-left: 4px !important;
    float: none !important;
  }
}

/* === GALLERY FIXES === */
.e-gallery-item.elementor-gallery-item {
  display: block !important;
  overflow: hidden;
  cursor: pointer;
}

.e-gallery-image.elementor-gallery-item__image {
  width: 100% !important;
  height: 100% !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  min-height: 200px;
}

/* === LIGHTBOX === */
.lr-lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  z-index: 999999;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

.lr-lightbox-overlay.active {
  display: flex;
}

.lr-lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  z-index: 1000001;
  line-height: 1;
  font-weight: 300;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.lr-lightbox-close:hover {
  opacity: 0.7;
}

.lr-lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}

.lr-lightbox-title {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 14px;
  text-align: center;
  max-width: 80%;
  font-family: Poppins, sans-serif;
}

.lr-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 48px;
  cursor: pointer;
  z-index: 1000001;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
  user-select: none;
  font-weight: 300;
}

.lr-lightbox-nav:hover {
  opacity: 0.7;
}

.lr-lightbox-prev {
  left: 20px;
}

.lr-lightbox-next {
  right: 20px;
}

/* === CTA POPUP === */
.lr-popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999998;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

.lr-popup-overlay.active {
  display: flex;
}

.lr-popup {
  background: #06418b;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  max-width: 850px;
  width: 100%;
  max-height: 90vh;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  position: relative;
  animation: lrPopupSlideIn 0.3s ease-out;
}

@keyframes lrPopupSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.lr-popup-image {
  width: 45%;
  min-height: 400px;
  background-size: cover;
  background-position: center top;
  flex-shrink: 0;
}

.lr-popup-content {
  flex: 1;
  padding: 40px 35px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.lr-popup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  line-height: 1;
}

.lr-popup-close:hover {
  color: #fff;
}

.lr-popup-content h2 {
  font-family: Jost, sans-serif;
  font-weight: 700;
  font-size: 32px;
  color: #fff;
  text-transform: uppercase;
  margin: 0 0 8px 0;
  letter-spacing: 1px;
}

.lr-popup-content p {
  color: rgba(255, 255, 255, 0.85);
  font-family: Poppins, sans-serif;
  font-size: 14px;
  margin: 0 0 10px 0;
  line-height: 1.5;
}

.lr-popup-phone {
  font-family: Jost, sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #FFB343;
  text-decoration: none !important;
  margin-bottom: 18px;
  display: inline-block;
}

.lr-popup-phone:hover {
  color: #ffc56a;
}

.lr-popup-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lr-popup-form .form-row {
  display: flex;
  gap: 10px;
}

.lr-popup-form input,
.lr-popup-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 6px;
  font-family: Poppins, sans-serif;
  font-size: 14px;
  color: #333;
  background: #fff;
  box-sizing: border-box;
  outline: none;
}

.lr-popup-form input::placeholder,
.lr-popup-form textarea::placeholder {
  color: #888;
}

.lr-popup-form textarea {
  resize: none;
  height: 50px;
}

.lr-popup-form button {
  background: #FFB343;
  color: #111;
  border: none;
  border-radius: 10px;
  padding: 14px 30px;
  font-family: Jost, sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 5px;
  text-transform: none;
  letter-spacing: 0.3px;
}

.lr-popup-form button:hover {
  background: #FFAD33;
}

@media (max-width: 700px) {
  .lr-popup {
    flex-direction: column;
    max-height: 95vh;
    overflow-y: auto;
  }
  .lr-popup-image {
    width: 100%;
    min-height: 200px;
    max-height: 220px;
  }
  .lr-popup-content {
    padding: 25px 20px;
  }
  .lr-popup-content h2 {
    font-size: 26px;
  }
  .lr-popup-phone {
    font-size: 22px;
  }
}
