/* =========================================================
   Custom enhancements: contact popup, lightbox slider, navbar
   ========================================================= */

/* ---------- Contact Popup ---------- */
.nw-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}
.nw-popup-overlay.is-open {
  display: flex;
}
.nw-popup {
  position: relative;
  width: 100%;
  max-width: 960px;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  animation: nwPopupIn 0.25s ease-out;
}
@keyframes nwPopupIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nw-popup__image {
  background-size: cover;
  background-position: center;
  min-height: 400px;
}
.nw-popup__form-wrap {
  background: #1e3a8a;
  color: #fff;
  padding: 40px 36px;
  position: relative;
}
.nw-popup__close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  padding: 6px 10px;
  line-height: 1;
  z-index: 2;
}
.nw-popup__close:hover { opacity: 0.75; }
.nw-popup__title {
  margin: 0 0 14px;
  font-family: Montserrat, sans-serif;
  font-weight: 800;
  font-size: 30px;
  letter-spacing: 1px;
  text-align: center;
}
.nw-popup__sub {
  text-align: center;
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.4;
}
.nw-popup__phone {
  display: block;
  text-align: center;
  color: #f59e0b;
  font-size: 26px;
  font-weight: 700;
  text-decoration: none;
  margin: 4px 0 22px;
}
.nw-popup__phone:hover { color: #fbbf24; }
.nw-popup__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
.nw-popup__field {
  margin-bottom: 10px;
}
.nw-popup input[type="text"],
.nw-popup input[type="tel"],
.nw-popup input[type="email"],
.nw-popup input[type="file"],
.nw-popup textarea {
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 4px;
  background: #fff;
  color: #111;
  font-size: 15px;
  font-family: Inter, sans-serif;
  box-sizing: border-box;
}
.nw-popup textarea { min-height: 70px; resize: vertical; }
.nw-popup__upload-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin: 8px 0 6px;
}
.nw-popup__file-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 4px;
  padding: 6px 6px 6px 10px;
  overflow: hidden;
}
.nw-popup__file-btn {
  background: #f59e0b;
  color: #fff;
  padding: 10px 14px;
  border-radius: 3px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.nw-popup__file-btn:hover { background: #fbbf24; }
.nw-popup__file-name {
  color: #555;
  font-size: 14px;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nw-popup__file-input { display: none; }
.nw-popup__file-rule { font-size: 12px; margin: 4px 0 12px; opacity: 0.85; }
.nw-popup__submit {
  width: 100%;
  background: #f59e0b;
  color: #fff;
  border: 0;
  padding: 14px;
  font-size: 17px;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  font-family: Montserrat, sans-serif;
  margin-top: 4px;
  transition: background 0.2s;
}
.nw-popup__submit:hover { background: #fbbf24; }
.nw-popup__success {
  text-align: center;
  padding: 30px 10px;
  font-size: 16px;
  line-height: 1.5;
}
@media (max-width: 768px) {
  .nw-popup { grid-template-columns: 1fr; max-width: 500px; }
  .nw-popup__image { display: none; }
  .nw-popup__form-wrap { padding: 32px 24px; }
  .nw-popup__title { font-size: 24px; }
  .nw-popup__phone { font-size: 22px; }
  .nw-popup__row { grid-template-columns: 1fr; }
}

/* ---------- Lightbox Slider ---------- */
.nw-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.93);
  z-index: 99998;
  display: none;
  align-items: center;
  justify-content: center;
}
.nw-lightbox.is-open { display: flex; }
.nw-lightbox__stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nw-lightbox__img {
  max-width: 92%;
  max-height: 86%;
  object-fit: contain;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.7);
  border-radius: 4px;
  animation: nwLightboxIn 0.2s ease-out;
}
@keyframes nwLightboxIn {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}
.nw-lightbox__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  font-size: 26px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.nw-lightbox__btn:hover { background: rgba(255, 255, 255, 0.25); }
.nw-lightbox__prev { left: 24px; }
.nw-lightbox__next { right: 24px; }
.nw-lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 34px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  line-height: 1;
}
.nw-lightbox__close:hover { opacity: 0.75; }
.nw-lightbox__caption {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 15px;
  background: rgba(0, 0, 0, 0.5);
  padding: 8px 16px;
  border-radius: 4px;
  max-width: 80%;
  text-align: center;
}
.nw-lightbox__counter {
  position: absolute;
  top: 24px;
  left: 24px;
  color: #fff;
  font-size: 14px;
  opacity: 0.8;
}
@media (max-width: 640px) {
  .nw-lightbox__btn { width: 42px; height: 42px; font-size: 20px; }
  .nw-lightbox__prev { left: 8px; }
  .nw-lightbox__next { right: 8px; }
  .nw-lightbox__close { top: 10px; right: 10px; font-size: 28px; }
}

/* ---------- Force-visible gallery thumbnails ---------- */
/* Elementor gallery uses background-image + lazyload. Ensure images show. */
.e-gallery-image,
.elementor-gallery-item__image {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  opacity: 1 !important;
}
.e-gallery-item { cursor: pointer; }
.e-gallery-image.e-gallery-image-loaded { opacity: 1 !important; }

/* ---------- Navbar width + sticky overflow ---------- */
/* Elementor sets an inline `width: <viewport>px` on the sticky section when
   activated which can overshoot the real viewport on narrow windows. Force
   the sticky bar to 100% width and constrain the inner container. */
.elementor-location-header .elementor-top-section,
header.elementor-location-header .elementor-sticky,
.elementor-sticky.elementor-sticky--active {
  width: 100% !important;
  max-width: 100vw !important;
  left: 0 !important;
  right: 0 !important;
  box-sizing: border-box;
}
.elementor-location-header .elementor-container,
.elementor-sticky .elementor-container {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}
#site-logo img {
  max-width: 180px;
  height: auto;
}

/* ---------- Header height + oversized logo on scroll ----------
   Header bar is a fixed 110px. At the top the logo is scaled up and
   hangs BELOW the bar; on scroll it snaps back to fit inside the bar.
   Scaling (not resizing) keeps the 110px bar height identical. */
.elementor-33 .elementor-element-5ce8b08a,
.elementor-33 .elementor-element-5ce8b08a > .elementor-container {
  min-height: 110px !important;
  height: 110px !important;
}
.elementor-location-header,
.elementor-location-header .elementor-container,
.elementor-location-header .elementor-column,
.elementor-location-header .elementor-widget-wrap,
#site-logo,
#site-logo .elementor-widget-container,
#site-logo .elementor-widget-container > a {
  overflow: visible;
}
/* Logo sized by height so it fits the 110px bar in the scrolled state */
#site-logo img {
  height: 84px !important;
  width: auto !important;
  max-width: none !important;
  transform-origin: left top;
  transform: scale(1.6);
  transition: transform 0.25s ease-out;
  will-change: transform;
}
body.nw-scrolled #site-logo img {
  transform: scale(1);
}
@media (max-width: 1024px) {
  #site-logo img { height: 72px !important; transform: scale(1.5); }
  body.nw-scrolled #site-logo img { transform: scale(1); }
}
@media (max-width: 540px) {
  #site-logo img { height: 58px !important; transform: scale(1.4); }
  body.nw-scrolled #site-logo img { transform: scale(1); }
}
.elementor-nav-menu > li > a.elementor-item {
  padding: 10px 14px;
  white-space: nowrap;
}

/* Tablet: shrink menu items */
@media (max-width: 1100px) {
  .elementor-nav-menu > li > a.elementor-item { padding: 8px 10px; font-size: 14px; }
  #site-logo img { max-width: 150px; }
}
/* Tablet + mobile: show burger, hide inline menu (Elementor's tablet breakpoint) */
@media (max-width: 1024px) {
  .elementor-nav-menu--main { display: none !important; }
  .elementor-menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 24px;
    margin-left: auto;
  }
  /* Keep header in a single row: logo on the left, burger on the right */
  .elementor-location-header .elementor-container,
  .elementor-sticky .elementor-container {
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  .elementor-location-header .elementor-top-column,
  .elementor-sticky .elementor-top-column {
    width: auto !important;
    flex: 0 0 auto !important;
  }
  /* Logo column stays left */
  .elementor-location-header .elementor-top-column:first-child,
  .elementor-sticky .elementor-top-column:first-child {
    margin-right: auto;
  }
  /* The nav column holds the burger — push it to the far right.
     Fallback targets 2nd top-column; modern browsers use :has(). */
  .elementor-location-header .elementor-top-column:nth-child(2),
  .elementor-sticky .elementor-top-column:nth-child(2),
  .elementor-location-header .elementor-top-column:has(.elementor-menu-toggle),
  .elementor-sticky .elementor-top-column:has(.elementor-menu-toggle) {
    order: 2;
    margin-left: auto;
  }
  /* Inner widget-wrap should be inline, not full-column width */
  .elementor-location-header .elementor-top-column:nth-child(2) .elementor-widget-wrap,
  .elementor-sticky .elementor-top-column:nth-child(2) .elementor-widget-wrap,
  .elementor-location-header .elementor-top-column:has(.elementor-menu-toggle) .elementor-widget-wrap,
  .elementor-sticky .elementor-top-column:has(.elementor-menu-toggle) .elementor-widget-wrap {
    display: inline-flex !important;
    justify-content: flex-end;
    width: auto !important;
  }
  /* The widget that contains the nav/toggle: let it shrink to content */
  .elementor-location-header .elementor-top-column:nth-child(2) .elementor-widget-nav-menu,
  .elementor-sticky .elementor-top-column:nth-child(2) .elementor-widget-nav-menu {
    width: auto !important;
  }
  /* CTA column: hide on tablet/mobile to keep the row clean (there's a CTA
     in the mobile menu) */
  .elementor-location-header .elementor-top-column.elementor-hidden-tablet,
  .elementor-location-header .elementor-top-column.elementor-hidden-mobile,
  .elementor-sticky .elementor-top-column.elementor-hidden-tablet,
  .elementor-sticky .elementor-top-column.elementor-hidden-mobile {
    display: none !important;
  }
  #site-logo img { max-width: 140px; }
}
@media (max-width: 540px) {
  #site-logo img { max-width: 110px; }
  .cta-btn .elementor-button { padding: 7px 10px; font-size: 12px; }
}
/* Open/close icons: make sure the right one shows */
.elementor-menu-toggle .elementor-menu-toggle__icon--close { display: none !important; }
.elementor-menu-toggle.elementor-active .elementor-menu-toggle__icon--open { display: none !important; }
.elementor-menu-toggle.elementor-active .elementor-menu-toggle__icon--close { display: inline-block !important; }

/* ---------- Desktop dropdown + flyout submenus ---------- */
/* Ensure parent menu items can anchor their submenus */
.elementor-nav-menu--main .menu-item-has-children { position: relative; }

/* Keep parent-text + caret on ONE line (inline flex) */
.elementor-nav-menu--main a.elementor-item,
.elementor-nav-menu--main a.elementor-sub-item {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.elementor-nav-menu--main a.elementor-item .sub-arrow,
.elementor-nav-menu--main a.elementor-sub-item .sub-arrow {
  display: inline-flex !important;
  align-items: center;
  margin: 0 !important;
  padding: 0 !important;
  position: static !important;
  float: none !important;
  font-size: 0.85em;
}

/* Rotate the second-level caret so it points right (→) instead of down */
.elementor-nav-menu--main .sub-menu a.elementor-sub-item.has-submenu .sub-arrow i {
  transform: rotate(-90deg);
  display: inline-block;
}

/* Top-level dropdown */
.elementor-nav-menu--main .menu-item-has-children > .sub-menu {
  display: none !important;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 9999;
  width: max-content;
  min-width: 240px;
  max-width: 360px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  padding: 6px 0;
  margin: 0;
  list-style: none;
  border-radius: 4px;
  overflow: visible !important;
}
/* Nested flyout: opens to the RIGHT of the parent sub-item */
.elementor-nav-menu--main .sub-menu .menu-item-has-children > .sub-menu {
  top: -6px !important;
  left: 100% !important;
  margin-left: 2px;
}
/* Show on hover (adds a small invisible bridge so cursor can cross) */
.elementor-nav-menu--main .menu-item-has-children:hover > .sub-menu,
.elementor-nav-menu--main .menu-item-has-children:focus-within > .sub-menu {
  display: block !important;
}
.elementor-nav-menu--main .sub-menu .menu-item-has-children > .sub-menu::before {
  content: "";
  position: absolute;
  top: 0;
  left: -4px;
  width: 6px;
  height: 100%;
  background: transparent;
}
/* Sub-menu items styling */
.elementor-nav-menu--main .sub-menu li {
  display: block !important;
  width: 100%;
  list-style: none;
}
.elementor-nav-menu--main .sub-menu a {
  padding: 10px 18px !important;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  white-space: nowrap;
  color: #222 !important;
  text-decoration: none;
  background: transparent;
}
.elementor-nav-menu--main .sub-menu a:hover,
.elementor-nav-menu--main .sub-menu li:hover > a {
  background: #f4f6fa !important;
  color: #1e3a8a !important;
}
/* Active / current page — white text on the dark highlight */
.elementor-nav-menu--main .sub-menu a.elementor-item-active,
.elementor-nav-menu--main .sub-menu a.elementor-sub-item.elementor-item-active,
.elementor-nav-menu--main .sub-menu li.current-menu-item > a,
.elementor-nav-menu--main .sub-menu li.current_page_item > a {
  background: #1e3a8a !important;
  color: #ffffff !important;
}
.elementor-nav-menu--main .sub-menu a.elementor-item-active:hover,
.elementor-nav-menu--main .sub-menu li.current-menu-item > a:hover,
.elementor-nav-menu--main .sub-menu li.current_page_item > a:hover {
  background: #1e40af !important;
  color: #ffffff !important;
}

/* Hide the top-level underlines that sometimes leak in from defaults */
.elementor-nav-menu--main a.elementor-item,
.elementor-nav-menu--main a.elementor-sub-item {
  text-decoration: none !important;
}

/* ---------- Mobile / tablet burger dropdown ---------- */
/* Scoped to the burger-nav container so it doesn't leak to desktop sub-menus
   that share the .elementor-nav-menu--dropdown class. The dropdown breaks
   out of its narrow nav column and spans the full viewport width. */
nav.elementor-nav-menu--dropdown.elementor-nav-menu__container {
  position: fixed !important;
  top: 79px !important;            /* tablet/mobile: sits flush under header */
  left: 0 !important;
  right: 0 !important;
  width: 100vw !important;
  max-width: 100vw !important;
  max-height: 70vh !important;
  overflow-y: auto !important;
  background: #ffffff !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  border-radius: 0;
  margin-top: 0 !important;
  padding: 0;
  z-index: 9998;
  display: none;
}
/* Mobile-only: push the dropdown 21px below the header */
@media (max-width: 767px) {
  nav.elementor-nav-menu--dropdown.elementor-nav-menu__container {
    margin-top: 21px !important;
  }
}
nav.elementor-nav-menu--dropdown.elementor-nav-menu__container[aria-hidden="false"],
.elementor-menu-toggle.elementor-active + nav.elementor-nav-menu--dropdown.elementor-nav-menu__container {
  display: block !important;
}
nav.elementor-nav-menu--dropdown.elementor-nav-menu__container .elementor-nav-menu {
  display: block !important;
  width: 100%;
}
nav.elementor-nav-menu--dropdown.elementor-nav-menu__container .elementor-nav-menu li {
  display: block !important;
  width: 100%;
  list-style: none;
}
nav.elementor-nav-menu--dropdown.elementor-nav-menu__container a.elementor-item,
nav.elementor-nav-menu--dropdown.elementor-nav-menu__container a.elementor-sub-item {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 30px !important;
  font-size: 17px !important;
  line-height: 1.3;
  border-bottom: 1px solid #eee;
  color: #222 !important;
  text-decoration: none;
}
nav.elementor-nav-menu--dropdown.elementor-nav-menu__container a.elementor-item:hover,
nav.elementor-nav-menu--dropdown.elementor-nav-menu__container a.elementor-sub-item:hover {
  background: #f4f6fa !important;
  color: #1e3a8a !important;
}
/* Active / current page in the mobile menu: white on dark blue */
nav.elementor-nav-menu--dropdown.elementor-nav-menu__container a.elementor-item-active,
nav.elementor-nav-menu--dropdown.elementor-nav-menu__container li.current-menu-item > a,
nav.elementor-nav-menu--dropdown.elementor-nav-menu__container li.current_page_item > a {
  background: #1e3a8a !important;
  color: #ffffff !important;
}
/* Nested sub-menus in the mobile menu: indented, stacked (no flyout) */
nav.elementor-nav-menu--dropdown.elementor-nav-menu__container .sub-menu {
  display: none;
  background: #f8f9fb;
  list-style: none;
  padding: 0;
  margin: 0;
}
nav.elementor-nav-menu--dropdown.elementor-nav-menu__container .menu-item-has-children.sub-menu-open > .sub-menu {
  display: block;
}
nav.elementor-nav-menu--dropdown.elementor-nav-menu__container .sub-menu a.elementor-sub-item {
  padding-left: 50px !important;
  font-size: 16px !important;
}
nav.elementor-nav-menu--dropdown.elementor-nav-menu__container .sub-menu .sub-menu a.elementor-sub-item {
  padding-left: 70px !important;
  font-size: 15px !important;
}

/* ---------- Reviews slider ---------- */
.nw-reviews {
  position: relative;
  padding: 0 56px;
  box-sizing: border-box;
  overflow: hidden;
}
.nw-reviews__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 10px 2px 20px;
  align-items: stretch;
}
.nw-reviews__track::-webkit-scrollbar { display: none; }

.nw-review {
  background: #f5f5f7;
  border-radius: 8px;
  padding: 50px 20px 20px;
  flex: 0 0 calc((100% - 48px) / 4);
  max-width: calc((100% - 48px) / 4);
  min-width: 220px;
  scroll-snap-align: start;
  position: relative;
  margin-top: 36px;
  box-sizing: border-box;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  transition: none;
}
@media (max-width: 1100px) {
  .nw-review { flex: 0 0 calc((100% - 32px) / 3); max-width: calc((100% - 32px) / 3); }
}
@media (max-width: 860px) {
  .nw-review { flex: 0 0 calc((100% - 16px) / 2); max-width: calc((100% - 16px) / 2); }
}
@media (max-width: 600px) {
  .nw-reviews { padding: 0 44px; }
  .nw-review { flex: 0 0 100%; max-width: 100%; }
}

.nw-review__avatar {
  position: absolute;
  top: -36px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #ddd;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  font-family: Montserrat, sans-serif;
  overflow: visible;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.nw-review__avatar::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'><path fill='%234285F4' d='M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z'/><path fill='%2334A853' d='M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z'/><path fill='%23FBBC05' d='M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z'/><path fill='%23EA4335' d='M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z'/></svg>") center/contain no-repeat;
  border: 2px solid #fff;
}

.nw-review__name {
  text-align: center;
  font-weight: 700;
  color: #111;
  margin: 0 0 2px;
  font-size: 16px;
}
.nw-review__time {
  text-align: center;
  color: #777;
  font-size: 13px;
  margin: 0 0 10px;
}
.nw-review__stars {
  display: flex;
  justify-content: center;
  gap: 2px;
  margin: 0 0 10px;
  color: #fbbc04;
  font-size: 18px;
}
.nw-review__verified {
  color: #4285f4;
  font-size: 14px;
  margin-left: 6px;
}
.nw-review__text {
  color: #333;
  font-size: 14px;
  line-height: 1.55;
  text-align: center;
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  line-clamp: 6;
  -webkit-box-orient: vertical;
  max-height: none;
}
.nw-review.is-expanded .nw-review__text {
  -webkit-line-clamp: unset;
  line-clamp: unset;
  display: block;
}
.nw-review__toggle,
.nw-review__toggle:hover,
.nw-review__toggle:focus,
.nw-review__toggle:active,
.nw-review__toggle:focus-visible {
  display: block;
  margin: 12px auto 0;
  margin-top: auto;
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  color: #555;
  font-size: 13px;
  cursor: pointer;
  padding: 6px 10px;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.nw-review__toggle:hover { color: #1e3a8a; }

.nw-reviews__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  color: #555;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
.nw-reviews__btn:hover { color: #1e3a8a; }
.nw-reviews__btn:focus,
.nw-reviews__btn:active,
.nw-reviews__btn:focus-visible {
  outline: none !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
  background: #ffffff !important;
}
.nw-reviews__btn--prev { left: 8px; }
.nw-reviews__btn--next { right: 8px; }
.nw-reviews__btn[disabled] { opacity: 0.35; cursor: default; }

/* Avatar color variants */
.nw-review__avatar--c1 { background: #4b5563; }
.nw-review__avatar--c2 { background: #0f172a; }
.nw-review__avatar--c3 { background: #374151; }
.nw-review__avatar--c4 { background: #b91c1c; }
.nw-review__avatar--c5 { background: #64748b; }
.nw-review__avatar--c6 { background: #6b7280; }
.nw-review__avatar--c7 { background: #9d174d; }

/* ---------- Media Room listing + article pages ---------- */
.nw-mr-page { font-family: Inter, sans-serif; }
.nw-mr-hero {
  background: linear-gradient(120deg, #1e3a8a 0%, #2563eb 100%);
  color: #fff;
  padding: 60px 20px;
}
.nw-mr-hero__inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.nw-mr-hero h1 {
  font-family: Montserrat, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 10px;
  font-size: 42px;
  color: #fff;
}
.nw-mr-hero p { margin: 0; font-size: 17px; opacity: 0.9; }
.nw-mr-list__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 50px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.nw-mr-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.nw-mr-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}
.nw-mr-card__image {
  display: block;
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  background-color: #e5e7eb;
}
.nw-mr-card__body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.nw-mr-card__title {
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  text-transform: none;
  font-size: 18px;
  line-height: 1.35;
  margin: 0 0 6px;
}
.nw-mr-card__title a { color: #111; text-decoration: none; }
.nw-mr-card__title a:hover { color: #1e3a8a; }
.nw-mr-card__date { font-size: 13px; color: #6b7280; margin-bottom: 10px; }
.nw-mr-card__excerpt {
  font-size: 14px; color: #374151; line-height: 1.55;
  margin: 0 0 14px; flex: 1;
}
.nw-mr-card__more {
  align-self: flex-start;
  color: #1e3a8a;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
}
.nw-mr-card__more:hover { color: #1e40af; }

/* Article page */
.nw-mr-article__inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}
.nw-mr-article__back {
  display: inline-block;
  margin-bottom: 20px;
  color: #1e3a8a;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.nw-mr-article__back:hover { color: #1e40af; }
.nw-mr-article__title {
  font-family: Montserrat, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 30px;
  line-height: 1.25;
  margin: 0 0 10px;
  color: #111;
}
.nw-mr-article__meta { color: #6b7280; font-size: 14px; margin-bottom: 22px; }
.nw-mr-article__hero {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 28px;
  display: block;
}
.nw-mr-article__body { color: #1f2937; font-size: 16px; line-height: 1.7; }
.nw-mr-article__body h2 {
  font-family: Montserrat, sans-serif;
  font-size: 22px;
  text-transform: none;
  margin: 28px 0 12px;
  color: #111;
  line-height: 1.3;
}
.nw-mr-article__body h3 {
  font-family: Montserrat, sans-serif;
  font-size: 19px;
  text-transform: none;
  margin: 24px 0 10px;
  color: #111;
}
.nw-mr-article__body p { margin: 0 0 16px; }
.nw-mr-article__body a { color: #1e3a8a; text-decoration: underline; }
.nw-mr-article__body a:hover { color: #1e40af; }
.nw-mr-article__body img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 14px 0;
}
.nw-mr-article__body ul,
.nw-mr-article__body ol { padding-left: 22px; margin: 0 0 16px; }
.nw-mr-article__body li { margin-bottom: 6px; }
@media (max-width: 640px) {
  .nw-mr-hero { padding: 40px 20px; }
  .nw-mr-hero h1 { font-size: 30px; }
  .nw-mr-article__title { font-size: 24px; }
  .nw-mr-list__inner { padding: 30px 20px; gap: 20px; }
}

/* "In The News" accordion & distribution grid */
.wa-intcode-accordion {
  margin: 28px 0 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f9fafb;
  overflow: hidden;
}
.wa-intcode-accordion-header {
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 14px 18px;
  background: #1e3a8a;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}
.wa-intcode-accordion-header::after {
  content: "▾";
  font-size: 14px;
  transition: transform 0.2s;
}
.wa-intcode-accordion.is-collapsed .wa-intcode-accordion-header::after {
  transform: rotate(-90deg);
}
.wa-intcode-accordion-content {
  padding: 16px;
}
.wa-intcode-accordion.is-collapsed .wa-intcode-accordion-content {
  display: none;
}
.wa-intcode-row.wa-intcode-distribution {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin: 0;
}
.wa-intcode-distribution-col {
  width: auto !important;
  padding: 0;
}
.wa-intcode-distribution-col a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 8px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  text-decoration: none;
  color: #1f2937;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  min-height: 96px;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.wa-intcode-distribution-col a:hover {
  border-color: #1e3a8a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  color: #1e3a8a;
}
.wa-intcode-distribution-col a img {
  max-width: 48px;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0;
}
.wa-intcode-distribution-col a span {
  display: block;
  line-height: 1.2;
  word-break: break-word;
}
/* If the image fails to load / is the generic placeholder, it should still
   look clean — the label stays centered. Tiles without <img> already render
   with just the label thanks to the flex centering above. */

/* Kill any leftover print-release markup we didn't need */
.wa-intcode-content > h3:first-child,
.wa-intcode-card > p.pr-79679489142d5f12df5e38aee0b946f2 {
  display: none;
}

/* ---------- Elementor media carousel (About page "Type of Projects") ---------- */
/* Override the inline page-freeze rule + give slides a visible frame & transitions */
.elementor-widget-media-carousel .swiper-wrapper {
  display: block !important;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #f3f4f6;
  border-radius: 6px;
}
.elementor-widget-media-carousel .swiper-slide {
  display: block !important;
  position: absolute !important;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
}
.elementor-widget-media-carousel .swiper-slide.is-active {
  opacity: 1;
  z-index: 2;
}
.elementor-widget-media-carousel .swiper-slide > a {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  cursor: default;
}
.elementor-widget-media-carousel .elementor-carousel-image {
  width: 100%;
  height: 100%;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}
.elementor-widget-media-carousel .elementor-swiper-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #1f2937;
  border-radius: 4px;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: background 0.15s, color 0.15s;
}
.elementor-widget-media-carousel .elementor-swiper-button:hover {
  background: #ffffff;
  color: #1e3a8a;
}
.elementor-widget-media-carousel .elementor-swiper-button-prev { left: 10px; }
.elementor-widget-media-carousel .elementor-swiper-button-next { right: 10px; }
/* Draw clean chevron arrows regardless of whether Elementor's icon font
   loaded (the <i class="eicon-chevron-*"> may be empty without it). */
.elementor-widget-media-carousel .elementor-swiper-button i {
  font-style: normal;
  display: inline-block;
  width: 12px;
  height: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}
.elementor-widget-media-carousel .elementor-swiper-button-prev i {
  transform: rotate(135deg);
  margin-left: 4px;
}
.elementor-widget-media-carousel .elementor-swiper-button-next i {
  transform: rotate(-45deg);
  margin-right: 4px;
}

/* ---------- Process-cards spacing fix on tablet ----------
   Elementor's per-post CSS applies `margin: 45px 8px 8px 8px` to each card
   column (the 45px top reserves space for the floating number badge). On
   desktop all cards share a row so the 45px only adds badge space at the
   top of the section. On tablet the cards wrap to 2-per-row, turning the
   45px into a big gap between every row. Trim it at tablet width. */
@media (min-width: 768px) and (max-width: 1024px) {
  /* New Construction (page 1277) */
  .elementor-1277 .elementor-element-9a4ac2d > .elementor-element-populated,
  .elementor-1277 .elementor-element-5579bf9 > .elementor-element-populated,
  .elementor-1277 .elementor-element-80e3fdb > .elementor-element-populated,
  .elementor-1277 .elementor-element-6db31e1 > .elementor-element-populated,
  .elementor-1277 .elementor-element-68b1d31 > .elementor-element-populated,
  /* Remodel & Retrofit (page 1276) */
  .elementor-1276 .elementor-element-cd72113 > .elementor-element-populated,
  .elementor-1276 .elementor-element-6d92e62 > .elementor-element-populated,
  .elementor-1276 .elementor-element-3c9ce12 > .elementor-element-populated,
  .elementor-1276 .elementor-element-b8e456a > .elementor-element-populated,
  .elementor-1276 .elementor-element-4a01776 > .elementor-element-populated,
  .elementor-1276 .elementor-element-98ab63c > .elementor-element-populated {
    margin-top: 20px !important;
    margin-bottom: 20px !important;
  }
  /* Close the big vertical gap between the two process sections */
  .elementor-1277 .elementor-element.elementor-element-c631dec,
  .elementor-1277 .elementor-element.elementor-element-c631dec > .elementor-container,
  .elementor-1276 .elementor-element.elementor-element-48f20c1,
  .elementor-1276 .elementor-element.elementor-element-48f20c1 > .elementor-container {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}
@media (max-width: 767px) {
  /* On true mobile cards stack 1-per-row, so tighten even more */
  .elementor-1277 [class*="elementor-element-"] > .elementor-element-populated,
  .elementor-1276 [class*="elementor-element-"] > .elementor-element-populated {
    margin-top: 22px !important;
    margin-bottom: 10px !important;
  }
}

/* prevent horizontal overflow */
html, body { overflow-x: hidden; }

/* ---------- "Projects We Work On" image grid — equal-height / symmetrical ---------- */
.elementor-element-c2b3834 .elementor-widget-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}

/* ---------- Footer Facebook / social icon ---------- */
.nw-footer-social {
  margin: 14px 0 0 !important;
}
.nw-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.nw-footer-social a:hover,
.nw-footer-social a:focus {
  background: #1877f2;
  color: #ffffff;
  transform: translateY(-2px);
}
.nw-footer-social svg {
  display: block;
}

/* ---------- Hero military discount banner (full-width strip) ---------- */
.nw-military-bar {
  width: 100%;
  background: #F79D1B;
  text-align: center;
  padding: 13px 20px;
  box-sizing: border-box;
}
.nw-military-bar p {
  margin: 0;
  color: #10233f;
  font-family: Inter, sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
}
@media (max-width: 768px) {
  .nw-military-bar { padding: 11px 16px; }
  .nw-military-bar p { font-size: 14px; }
}


/* --- Visible breadcrumbs (mirror the BreadcrumbList JSON-LD on each page) --- */
/* Tokens taken from the site: Inter 17px body, --e-global-color-primary #1F3C88,
   --e-global-color-147d088 #F3F4F6 ground, --e-global-color-9e89d4e #111111 ink. */
.nw-breadcrumb {
  background: #F3F4F6;
  border-bottom: 1px solid #E5E7EB;
  padding: 12px 20px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.4;
}
.nw-breadcrumb__list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1140px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.nw-breadcrumb__item {
  display: flex;
  align-items: center;
  color: #111111;
}
.nw-breadcrumb__item + .nw-breadcrumb__item::before {
  content: "/";
  margin: 0 8px;
  color: #9CA3AF;
}
.nw-breadcrumb__item a {
  color: #1F3C88;
  text-decoration: none;
}
.nw-breadcrumb__item a:hover,
.nw-breadcrumb__item a:focus {
  text-decoration: underline;
}
.nw-breadcrumb__item[aria-current="page"] {
  color: #111111;
  font-weight: 600;
}
@media (max-width: 767px) {
  .nw-breadcrumb { font-size: 14px; padding: 10px 16px; }
}

/* --- Internal link blocks (cities we serve / services we offer) ----------- */
.nw-links {
  padding: 56px 20px;
  background: #F3F4F6;
}
.nw-links--plain { background: #ffffff; }
.nw-links__inner { max-width: 1100px; margin: 0 auto; }
.nw-links__title {
  font-family: Montserrat, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 30px;
  line-height: 1.2;
  margin: 0 0 10px;
  color: #111111;
}
.nw-links__intro {
  font-family: Inter, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #374151;
  margin: 0 0 26px;
  max-width: 760px;
}
.nw-links__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.nw-links__card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 18px 20px 20px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.nw-links--plain .nw-links__card { background: #F3F4F6; }
.nw-links__card:hover,
.nw-links__card:focus {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  border-color: #1F3C88;
}
.nw-links__name {
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  color: #111111;
}
.nw-links__desc {
  font-family: Inter, sans-serif;
  font-size: 14.5px;
  line-height: 1.5;
  color: #4b5563;
}
.nw-links__cta {
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #1F3C88;
  margin-top: 4px;
}
@media (max-width: 767px) {
  .nw-links { padding: 38px 20px; }
  .nw-links__title { font-size: 23px; }
  .nw-links__intro { font-size: 15.5px; margin-bottom: 20px; }
}

/* Upload-your-plans fields — shared so every page matches the service pages */
#gform_wrapper_4 #field_4_6 {margin-top: 10px;}
#gform_wrapper_4 #field_4_6 .gfield_label {color: #000000;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;}
#gform_wrapper_4 #field_4_6 input[type="file"] {width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #ffffff;
    color: #000000;
    font-size: 15px;
    box-sizing: border-box;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;}
#gform_wrapper_4 #field_4_6 input[type="file"]:focus {outline: none;
    border-color: #D97B25;
    box-shadow: 0 0 0 2px rgba(217, 123, 37, 0.15);}
#gform_wrapper_4 #field_4_6 input[type="file"]::file-selector-button {background: #F59E0B;
    color: #ffffff;
    border: none;
    padding: 10px 16px;
    margin-right: 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;}
#gform_wrapper_4 #field_4_6 input[type="file"]::file-selector-button:hover {background: #bf6a1f;
    transform: translateY(-1px);}
#gform_wrapper_4 #field_4_6 .gform_fileupload_rules {display: block;
    margin-top: 8px;
    font-size: 13px;
    color: #6b7280;}
#gform_wrapper_4 #field_4_6 .gfield_validation_message {margin-top: 8px;
    font-size: 13px;}
body .gform_wrapper#gform_wrapper_2 #field_2_5 .gfield_label {display: block !important;
  font-size: 14px;
  font-weight: 600;
  color: #000;
  margin-bottom: 6px;}
body .gform_wrapper#gform_wrapper_2 #field_2_5 {margin-bottom: 10px;}
body .gform_wrapper#gform_wrapper_2 #field_2_5 input[type="file"] {width: 100%;
  padding: 14px 18px;
  border: 1.5px solid #D6D6D6;
  border-radius: 8px;
  background: #f9fbfc;
  font-size: 15px;
  cursor: pointer;
  transition: border 0.2s, background 0.2s;}
body .gform_wrapper#gform_wrapper_2 #field_2_5 input[type="file"]:focus {border-color: #CCCCCC;
  background: #fff;
  outline: none;}
body .gform_wrapper#gform_wrapper_2 #field_2_5 input[type="file"]::file-selector-button {background: #F79D1B;
  color: #fff;
  border: none;
  padding: 10px 16px;
  margin-right: 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s;}
body .gform_wrapper#gform_wrapper_2 #field_2_5 input[type="file"]::file-selector-button:hover {background: #F69813;}
body .gform_wrapper#gform_wrapper_2 #field_2_5 .gform_fileupload_rules {display: block !important;
  font-size: 12px;
  color: #fff;
  margin-top: 6px;}
body .gform_wrapper#gform_wrapper_2 #field_2_5 .ginput_container {margin-top: 0 !important;}
body .gform_wrapper#gform_wrapper_2 #field_2_5 .gfield_label {color: #ffffff !important;}
