/* Keep the Theme Builder header, page content and footer in normal flow. */
:root {
  --viae-header-side-space: 60px;
}

header {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  display: block;
  margin-bottom: 0;
}

/* Keep the header visible while the page scrolls. */
header.sticky,
body:not(.elementor-editor-active) > .elementor-location-header {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: auto !important;
  left: 0 !important;
  width: 100%;
  z-index: 100;
}

body:not(.elementor-editor-active) .elementor-location-header .e-con,
body:not(.elementor-editor-active) .elementor-location-header .e-con.e-parent {
  position: relative !important;
}

.elementor-location-header > .e-con,
header.site-header .desktopHeader,
header.site-header .headerType1 {
  align-items: center !important;
}

.elementor-location-header > .e-con {
  padding-top: 20px !important;
  padding-bottom: 20px !important;
}

@media (min-width: 768px) {
  .elementor-location-header .e-5637664 {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center !important;
    width: 100%;
    box-sizing: border-box;
    padding-right: var(--viae-header-side-space) !important;
    padding-left: var(--viae-header-side-space) !important;
  }

  .elementor-location-header .e-3bf3a2f {
    grid-column: 1;
    justify-self: start;
    width: auto !important;
  }

  .elementor-location-header .e-30c8a13 {
    grid-column: 2;
    justify-self: center;
    width: auto !important;
  }

  .elementor-location-header .e-30c8a13 .elementor-widget-nav-menu,
  .elementor-location-header .e-30c8a13 .elementor-widget-container,
  .elementor-location-header .e-30c8a13 .elementor-nav-menu--main,
  .elementor-location-header .e-30c8a13 .elementor-nav-menu {
    width: auto;
  }
}

/* Switch menu links to gray after scrolling past the video section. */
.elementor-location-header.header-menu-gray,
header.site-header.header-menu-gray,
.header-menu-gray > .e-con {
  background-color: #FFFFFF !important;
}

.elementor-location-header.header-menu-gray > .e-con,
header.site-header.header-menu-gray {
  padding-top: 40px !important;
  padding-bottom: 40px !important;
}

.header-menu-gray .elementor-widget-theme-site-logo img,
header.site-header.header-menu-gray .custom-logo-link img,
header.site-header.header-menu-gray .logo img,
header.site-header.header-menu-gray .logoMobile img {
  margin-top: 0;
}

.header-menu-gray .elementor-nav-menu--main .elementor-item,
.header-menu-gray .elementor-nav-menu--main .elementor-item:hover,
.header-menu-gray .elementor-nav-menu--main .elementor-item:focus,
.header-menu-gray .topMenu #menuContainer li a,
.header-menu-gray .topMenu #menuContainer li a:hover {
  color: #7A7A7A !important;
  fill: #7A7A7A !important;
}

/* Keep the desktop navigation centered within the header. */
.elementor-location-header .elementor-widget-nav-menu,
.elementor-location-header .elementor-widget-nav-menu .elementor-widget-container,
.elementor-location-header .elementor-nav-menu--main {
  width: 100%;
  align-items: center;
}

.elementor-location-header .elementor-nav-menu--main > .elementor-nav-menu {
  width: 100%;
  justify-content: center;
}

header.site-header .topMenu,
header.site-header .topMenu #menuContainer {
  width: 100%;
  text-align: center;
}

.elementor-location-header .viae-header-social,
header.site-header .viae-header-social {
  position: absolute;
  top: 50%;
  right: var(--viae-header-side-space);
  z-index: 2;
  transform: translateY(-50%);
  color: #FFFFFF;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.viae-header-social a {
  color: inherit !important;
  text-decoration: none;
}

.viae-header-social a:hover,
.viae-header-social a:focus {
  text-decoration: underline;
}

.header-menu-gray .viae-header-social {
  color: #7A7A7A;
}

.viae-mobile-social-menu-item {
  display: none;
}

@media (max-width: 767px) {
  :root {
    --viae-header-side-space: 20px;
  }

  /* Keep the logo and hamburger on one line on mobile. Elementor assigns
     both header columns a 100% width at this breakpoint. */
  .elementor-location-header > .e-con {
    padding: 12px var(--viae-header-side-space) !important;
  }

  .elementor-location-header .e-5637664 {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100%;
    box-sizing: border-box;
    padding: 16px 20px 12px !important;
  }

  .elementor-location-header .e-3bf3a2f,
  .elementor-location-header .e-30c8a13 {
    flex: 0 0 auto !important;
    width: auto !important;
  }

  .elementor-location-header .e-30c8a13 {
    margin-left: auto !important;
    margin-top: 0 !important;
    align-items: flex-end !important;
  }

  .elementor-location-header .elementor-widget-nav-menu,
  .elementor-location-header .elementor-widget-nav-menu .elementor-widget-container {
    width: auto !important;
  }

  .elementor-location-header .elementor-menu-toggle {
    margin: 0 0 0 auto !important;
    position: relative;
    top: 0;
    right: 0;
    color: #FFFFFF !important;
    fill: #FFFFFF !important;
  }

  .elementor-location-header .elementor-menu-toggle i,
  .elementor-location-header .elementor-menu-toggle svg,
  .elementor-location-header .elementor-menu-toggle svg * {
    color: inherit !important;
    fill: currentColor !important;
  }

  .elementor-location-header.header-menu-gray .elementor-menu-toggle,
  header.site-header.header-menu-gray .elementor-menu-toggle,
  header.site-header.sticky .elementor-menu-toggle {
    color: #7A7A7A !important;
    fill: #7A7A7A !important;
  }

  .elementor-location-header .elementor-nav-menu--dropdown {
    right: 0 !important;
    left: auto !important;
  }

  .elementor-location-header .viae-header-social,
  header.site-header .viae-header-social {
    display: none;
  }

  .viae-mobile-social-menu-item {
    display: block;
  }

  .viae-mobile-menu-social {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 13px 20px;
    color: #7A7A7A;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
  }

  .viae-mobile-menu-social a {
    color: inherit !important;
    text-decoration: none;
  }

  .viae-mobile-menu-social a:hover,
  .viae-mobile-menu-social a:focus {
    text-decoration: underline;
  }
}

.elementor-location-header .elementor-widget-theme-site-logo img,
header.site-header .custom-logo-link img,
header.site-header .logo img,
header.site-header .logoMobile img {
  display: block;
  width: 100px !important;
  max-width: 100px !important;
  height: auto !important;
  margin-top: 0;
}

.elementor-location-header .elementor-element-e0349d8,
.elementor-location-header .elementor-element-e0349d8 .elementor-widget-container,
.elementor-location-header .elementor-element-e0349d8 a {
  width: 100px !important;
  max-width: 100px !important;
}

@media (min-width: 768px) {
  .elementor-location-header .elementor-element-e0349d8 {
    padding-top: 50px !important;
  }
}

@media (max-width: 767px) {
  .elementor-location-header .elementor-widget-theme-site-logo img,
  header.site-header .custom-logo-link img,
  header.site-header .logo img,
  header.site-header .logoMobile img {
    width: 48px !important;
    max-width: 48px !important;
  }

  .elementor-location-header .elementor-element-e0349d8,
  .elementor-location-header .elementor-element-e0349d8 .elementor-widget-container,
  .elementor-location-header .elementor-element-e0349d8 a {
    width: 48px !important;
    max-width: 48px !important;
  }
}

body:not(.elementor-editor-active) {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

body:not(.elementor-editor-active) > .elementor-location-header,
body:not(.elementor-editor-active) > .elementor-location-footer {
  position: relative;
  width: 100%;
  flex: 0 0 auto;
}

body:not(.elementor-editor-active) > .elementor-location-header > .e-con {
  position: relative;
  width: 100%;
}

body:not(.elementor-editor-active) > #primary,
body:not(.elementor-editor-active) > main {
  position: relative;
  width: 100%;
  flex: 1 0 auto;
}

/* Breadcrumbs are not used in the current page layout. */
#breadcrumbs,
.breadcrumbs {
  display: none !important;
}

/* Align the footer logo with the top of the other footer columns. */
@media (min-width: 1025px) {
  .elementor-location-footer .elementor-element-3acbfa2 {
    grid-template-columns: 1fr 1fr 1fr 1.5fr !important;
  }
}

.elementor-location-footer .elementor-element-d5799af {
  justify-content: flex-start !important;
  align-items: flex-start !important;
}

.elementor-location-footer .elementor-element-48ccf18,
.elementor-location-footer .elementor-element-48ccf18 .elementor-widget-container {
  width: 100%;
  margin-top: 0 !important;
  padding-top: 0 !important;
  text-align: center;
}

.elementor-location-footer .elementor-element-48ccf18 .elementor-widget-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.elementor-location-footer .elementor-element-48ccf18 img {
  display: block;
  height: 130px !important;
  width: auto !important;
  max-width: 100%;
  margin: 0 auto !important;
  object-fit: contain;
}

/* Keep the newsletter controls readable and consistently aligned. */
.elementor-location-footer .elementor-element-298d80b,
.elementor-location-footer .elementor-element-298d80b form {
  width: 100%;
  max-width: 600px;
}

.elementor-location-footer .elementor-element-298d80b .elementor-form-fields-wrapper {
  display: grid !important;
  grid-template-columns: minmax(320px, 1fr) max-content !important;
  column-gap: 14px !important;
  align-items: stretch;
  width: 100%;
  margin: 0 !important;
}

.elementor-location-footer .elementor-element-298d80b .elementor-field-type-email {
  display: flex;
  grid-column: 1;
  width: 100% !important;
  min-width: 320px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible;
}

.elementor-location-footer .elementor-element-298d80b .elementor-field-type-email .elementor-field {
  box-sizing: border-box;
  width: 100% !important;
  min-width: 320px !important;
  height: 54px !important;
  padding: 12px 16px !important;
}

.elementor-location-footer .elementor-element-298d80b .elementor-field-type-email .elementor-field::placeholder {
  color: #348837;
  opacity: 1;
}

.elementor-location-footer .elementor-element-298d80b .elementor-field-type-submit,
.elementor-location-footer .elementor-element-298d80b .e-form__buttons {
  display: flex;
  grid-column: 2;
  width: auto !important;
  min-width: max-content;
  margin: 0 !important;
  padding: 0 !important;
}

.elementor-location-footer .elementor-element-298d80b .elementor-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: 150px;
  height: 54px !important;
  padding: 0 24px !important;
  white-space: nowrap !important;
}

@media (max-width: 480px) {
  .elementor-location-footer .elementor-element-298d80b .elementor-form-fields-wrapper {
    grid-template-columns: minmax(0, 1fr) !important;
    row-gap: 12px !important;
  }

  .elementor-location-footer .elementor-element-298d80b .elementor-field-type-email,
  .elementor-location-footer .elementor-element-298d80b .elementor-field-type-submit,
  .elementor-location-footer .elementor-element-298d80b .e-form__buttons {
    grid-column: 1;
    width: 100% !important;
    min-width: 0 !important;
  }

  .elementor-location-footer .elementor-element-298d80b .elementor-field-type-email .elementor-field,
  .elementor-location-footer .elementor-element-298d80b .elementor-button {
    width: 100% !important;
    min-width: 0 !important;
  }
}

/* Remove theme and Bootstrap gutters from standard internal pages. */
#primary.page-content > .site-main > .container-fluid {
  padding-left: 0;
  padding-right: 0;
}

#primary.page-content > .site-main > .container-fluid > .row {
  margin-left: 0;
  margin-right: 0;
}

#primary.page-content > .site-main > .container-fluid > .row > .content-area {
  padding-left: 0;
  padding-right: 0;
}

/* Use one consistent, compact transition from each hero video to the page
   content. The Elementor pages all place the hero in their first container. */
#primary .elementor > .e-con:has(.elementor-widget-video) + .e-con,
#primary .elementor > .e-con:has(video) + .e-con {
  margin-top: 0 !important;
  padding-top: clamp(28px, 4vw, 56px) !important;
}

@media (max-width: 767px) {
  #primary .elementor > .e-con:has(.elementor-widget-video) + .e-con,
  #primary .elementor > .e-con:has(video) + .e-con {
    padding-top: 24px !important;
  }
}

/* Interactive map: local OpenLayers fallback when the Leaflet CDN is blocked. */
.WPLeafletMap {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background-color: #e7eee7;
}

.WPLeafletMap .ol-viewport,
.WPLeafletMap .ol-unselectable {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}

.WPLeafletMap canvas {
  display: block;
  max-width: none !important;
}

/* Shepherd loop: show the portrait first, then reveal the profile on interaction. */
#divshepherd .e-loop-item,
#divshepherd .e-loop-item.elementor,
#divshepherd .e-loop-item.elementor-582 {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

/* Elementor can paint the Loop background on nested wrappers and pseudo-elements. */
@media (hover: hover) {
  #divshepherd .e-loop-item:not(:hover):not(:focus-within),
  #divshepherd .e-loop-item:not(:hover):not(:focus-within) .e-con,
  #divshepherd .e-loop-item:not(:hover):not(:focus-within) .e-con-inner,
  #divshepherd .e-loop-item:not(:hover):not(:focus-within) .elementor-widget,
  #divshepherd .e-loop-item:not(:hover):not(:focus-within) .elementor-widget-container,
  #divshepherd .e-loop-item:not(:hover):not(:focus-within)::before,
  #divshepherd .e-loop-item:not(:hover):not(:focus-within)::after,
  #divshepherd .e-loop-item:not(:hover):not(:focus-within) .e-con::before,
  #divshepherd .e-loop-item:not(:hover):not(:focus-within) .e-con::after {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
  }
}

#divshepherd .e-loop-item .elementor-element-bde7b11 {
  box-sizing: border-box;
  height: 250px;
  min-height: 250px;
  overflow: hidden;
  border-radius: 60px;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none;
  transition: height 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              background-color 0.35s ease,
              box-shadow 0.35s ease;
}

/* The portrait must remain visible while the rest of the card is collapsed. */
#divshepherd .e-loop-item .elementor-element-bde7b11 .elementor-element-2d2280e {
  display: block;
  flex: 0 0 auto;
  width: 100%;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  position: relative;
  z-index: 2;
}

#divshepherd .e-loop-item .elementor-element-bde7b11 .elementor-element-2d2280e img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  opacity: 1 !important;
  visibility: visible !important;
}

#divshepherd .e-loop-item .elementor-element-bde7b11 > .e-con-inner > :not(.elementor-element-2d2280e) {
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  transition: opacity 0.25s ease,
              transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              visibility 0s linear 0.3s;
}

#divshepherd .e-loop-item:hover .elementor-element-bde7b11,
#divshepherd .e-loop-item:focus-within .elementor-element-bde7b11 {
  height: 595px;
  border-radius: 60px;
  background: #43A747 !important;
  background-color: #43A747 !important;
  box-shadow: 0 18px 38px rgba(35, 39, 36, 0.14);
}

#divshepherd .e-loop-item:hover .elementor-element-bde7b11 .elementor-heading-title,
#divshepherd .e-loop-item:hover .elementor-element-bde7b11 .elementor-heading-title a,
#divshepherd .e-loop-item:hover .elementor-element-bde7b11 .elementor-button,
#divshepherd .e-loop-item:hover .elementor-element-bde7b11 .elementor-button-text,
#divshepherd .e-loop-item:focus-within .elementor-element-bde7b11 .elementor-heading-title,
#divshepherd .e-loop-item:focus-within .elementor-element-bde7b11 .elementor-heading-title a,
#divshepherd .e-loop-item:focus-within .elementor-element-bde7b11 .elementor-button,
#divshepherd .e-loop-item:focus-within .elementor-element-bde7b11 .elementor-button-text {
  color: #FFFFFF !important;
  fill: #FFFFFF !important;
}

#divshepherd .e-loop-item:hover .elementor-element-bde7b11 > .e-con-inner > :not(.elementor-element-2d2280e),
#divshepherd .e-loop-item:focus-within .elementor-element-bde7b11 > .e-con-inner > :not(.elementor-element-2d2280e) {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0.13s, 0.08s, 0s;
}

/* Touch screens have no reliable hover: keep profiles readable there. */
@media (hover: none), (max-width: 767px) {
  #divshepherd .e-loop-item .elementor-element-bde7b11 {
    height: auto;
    min-height: 0;
    background-color: #43A747 !important;
  }

  #divshepherd .e-loop-item .elementor-element-bde7b11 > .e-con-inner > :not(.elementor-element-2d2280e) {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  #divshepherd .e-loop-item .elementor-element-bde7b11 .elementor-heading-title,
  #divshepherd .e-loop-item .elementor-element-bde7b11 .elementor-heading-title a,
  #divshepherd .e-loop-item .elementor-element-bde7b11 .elementor-button,
  #divshepherd .e-loop-item .elementor-element-bde7b11 .elementor-button-text {
    color: #FFFFFF !important;
    fill: #FFFFFF !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #divshepherd .e-loop-item .elementor-element-bde7b11,
  #divshepherd .e-loop-item .elementor-element-bde7b11 > .e-con-inner > :not(.elementor-element-2d2280e) {
    transition-duration: 0.01ms;
  }
}
