/* InphytO — chrome, forms, lightbox, nav, overlays, hero (vanilla). */

.spectra-image-gallery__control-lightbox {
  pointer-events: none !important;
  visibility: hidden !important;
  display: none !important;
}

.skip-link.screen-reader-text:focus {
  left: 8px;
  top: 8px;
}

.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.form-status {
  margin-top: 16px;
  font-family: Poppins, Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}
.form-status[hidden] { display: none !important; }
.form-status:not([hidden]) { display: block; }
.form-status.is-ok { color: #215387; }
.form-status.is-err { color: #c62828; }

.elementor-form .elementor-field-textual,
.elementor-form input.elementor-field,
.elementor-form textarea.elementor-field {
  color: #3d3d3d;
  -webkit-text-fill-color: #3d3d3d;
  caret-color: #3d3d3d;
}

/* Sticky header without a full-viewport fixed overlay. */
.elementor-location-header [data-settings*="sticky"] {
  position: sticky;
  top: 0;
  z-index: 99;
}

.elementor-location-header,
.elementor-location-header a,
.elementor-location-header button,
.elementor-widget,
.elementor-widget a,
.elementor-widget button {
  pointer-events: auto;
}

/* Home hero video — no Elementor 50% / translate pill. */
.elementor-element-2fa20bbd {
  position: relative !important;
  overflow: hidden !important;
  min-height: 420px;
}
@media (min-width: 768px) {
  .elementor-element-2fa20bbd { min-height: 520px; }
}
@media (min-width: 1025px) {
  .elementor-element-2fa20bbd { min-height: 620px; }
}
.elementor-element-2fa20bbd .elementor-background-video-container,
.inphyto-hero__media {
  position: absolute !important;
  inset: 0 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  overflow: hidden !important;
  pointer-events: none;
}
.elementor-element-2fa20bbd .elementor-background-video-hosted,
.inphyto-hero__video {
  position: absolute !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  transform: none !important;
  inset-block-start: 0 !important;
  z-index: 0;
}
.elementor-element-2fa20bbd > .e-con-inner {
  position: relative;
  z-index: 1;
}

/* Lightbox. */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox[hidden] { display: none !important; }
.lightbox__img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
}
.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  line-height: 1;
}
.lightbox__close {
  top: 12px;
  right: 16px;
  font-size: 42px;
}
.lightbox__prev,
.lightbox__next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 48px;
  padding: 8px 16px;
}
.lightbox__prev { left: 8px; }
.lightbox__next { right: 8px; }

html.js .elementor-invisible { opacity: 0; }
html.js .elementor-invisible.animated { opacity: 1; }
html.no-js .elementor-invisible { opacity: 1; }

.page-default {
  max-width: 800px;
  margin: 80px auto 100px;
  padding: 0 24px;
  font-family: Poppins, Roboto, sans-serif;
}
.page-default .entry-title {
  font-size: 32px;
  font-weight: 600;
  margin: 0 0 20px;
}
.page-default .page-content {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}
.page-default a { color: #215387; }

.page-default-tpl .page-header .entry-title,
.page-default-tpl h1.entry-title {
  display: block !important;
  padding-block-start: 2rem;
}

/* Image carousel without Swiper JS: 3-up grid. */
.elementor-image-carousel-wrapper.swiper {
  overflow: hidden;
}
.elementor-image-carousel.swiper-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  transform: none !important;
}
.elementor-image-carousel .swiper-slide {
  width: auto !important;
  margin: 0 !important;
}
.elementor-image-carousel .swiper-slide-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.swiper-lazy-preloader { display: none !important; }
@media (max-width: 767px) {
  .elementor-image-carousel.swiper-wrapper {
    grid-template-columns: 1fr;
  }
}

/* Toggle / accordion without Elementor JS. */
.elementor-toggle-item .elementor-tab-title {
  scroll-margin-top: 96px;
}
.elementor-toggle-item .elementor-tab-content {
  display: none;
}
.elementor-toggle-item.e-active .elementor-tab-content,
html.no-js .elementor-toggle-item .elementor-tab-content {
  display: block;
}

@media (max-width: 1024px) {
  .elementor-nav-menu--dropdown.elementor-nav-menu__container:not(.elementor-nav-menu--main) {
    display: none;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 200;
  }
  .elementor-menu-toggle.elementor-active + .elementor-nav-menu--dropdown,
  .elementor-nav-menu--dropdown.is-open {
    display: block;
  }
  .elementor-nav-menu--dropdown .menu-item-has-children > .sub-menu {
    display: none;
    position: static !important;
    width: 100% !important;
    left: auto !important;
    box-shadow: none;
  }
  .elementor-nav-menu--dropdown .menu-item-has-children.is-open > .sub-menu {
    display: block;
  }
}

@media (min-width: 1025px) {
  .elementor-nav-menu--dropdown.elementor-nav-menu__container:not(.elementor-nav-menu--main) {
    display: none !important;
  }
  .elementor-nav-menu--main .menu-item-has-children:hover > .elementor-nav-menu--dropdown,
  .elementor-nav-menu--main .menu-item-has-children:focus-within > .elementor-nav-menu--dropdown {
    display: block;
  }
}

html { scroll-behavior: smooth; }
