/* Résidence Sopramare — chrome, forms, lightbox, nav, overlays (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: 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: #1693A5; }
.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 .elementor-section[data-settings*="sticky"] {
  position: sticky;
  top: 0;
  z-index: 99;
}

/* Empty Jet parallax layers must never intercept clicks. */
.jet-parallax-section,
.jet-parallax-section__image,
.jet-elements-parallax,
[class*="jet-parallax"] {
  pointer-events: none;
}
.jet-banner,
.jet-banner a,
.elementor-location-header,
.elementor-location-header a,
.elementor-location-header button,
.elementor-widget,
.elementor-widget a,
.elementor-widget button {
  pointer-events: auto;
}

/* 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: 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: #1693A5; }

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

.elementor-gallery__container {
  display: grid;
  grid-template-columns: repeat(var(--columns, 3), 1fr);
  gap: var(--vgap, 10px) var(--hgap, 10px);
}
.elementor-gallery__container.e-gallery-grid {
  --columns: 3;
  --hgap: 10px;
  --vgap: 10px;
  --aspect-ratio: 66.66%;
}
.e-gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
}
.e-gallery-image {
  width: 100%;
  padding-bottom: var(--aspect-ratio, 66.66%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.elementor-gallery-item__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.e-animation-grow:hover,
.elementor-gallery-item.e-animation-grow:hover .e-gallery-image,
.elementor-animated-content:hover .e-gallery-image {
  transform: scale(1.08);
  transition: transform 0.4s ease;
}

/* Custom home hero — no Elementor classes (vendor cannot re-stack this). */
.sopra-hero { position: relative; height: 350px; overflow: hidden; background: none; }
@media (min-width: 768px) { .sopra-hero { height: 500px !important; } }
@media (min-width: 1025px) { .sopra-hero { height: 620px !important; } }
.sopra-hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.sopra-hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: rgba(0,0,0,0.16); pointer-events: none;
}
.sopra-hero__content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 20px; color: #fff;
}
.sopra-hero__kicker {
  margin: 0;
  font-family: Lato, sans-serif;
  font-size: 20px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #fff;
}
.sopra-hero__title {
  margin: 0.15em 0 0;
  font-family: "Patrick Hand", sans-serif;
  font-size: 40px;
  font-weight: 400;
  line-height: 1em;
  color: #fff;
}
@media (min-width: 768px) {
  .sopra-hero__kicker { font-size: 22px; }
  .sopra-hero__title { font-size: 45px; }
}
@media (min-width: 1025px) {
  .sopra-hero__kicker { font-size: 20px; }
  .sopra-hero__title { font-size: 80px; }
}

@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;
  }
}

@media (min-width: 1025px) {
  .elementor-nav-menu--dropdown.elementor-nav-menu__container:not(.elementor-nav-menu--main) {
    display: none !important;
  }
}

html { scroll-behavior: smooth; }
