/* Launch accessibility: approved palette and wording are preserved. */
body :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid #C99A4A !important;
  outline-offset: 3px !important;
}
body .skip-link:focus {
  position: fixed;
  top: 48px;
  left: 16px;
  z-index: 100000;
  padding: 16px 24px;
  background: #F5F3EC;
  color: #2C3B2E;
  clip: auto;
  clip-path: none;
  width: auto;
  height: auto;
}
body [class*="cookieadmin"] button {
  min-height: 44px;
  min-width: 44px;
}
body .cookieadmin_cookie_modal {
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
}
/* Preserve the approved header/footer dimensions and link spacing. */
body .elementor-button:where(:not(header *, footer *)) {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
}

/* Active FAQ titles need the same readable contrast as the closed titles. */
body .elementor-accordion .elementor-tab-title.elementor-active .elementor-accordion-title,
body .elementor-accordion .elementor-tab-title.elementor-active .elementor-accordion-icon {
  color: #2C3B2E !important;
}

/* Inline email links need a visible cue beyond their similar green color. */
body a[href^="mailto:"],
body .lumyra-waitlist-help a,
body .lumyra-legal-callout p a {
  text-decoration: underline;
  text-underline-offset: .15em;
}

/* Same approved hero and framing; browsers select the smaller AVIF copy. */
body .lumyra-hero-media {
  background-image: image-set(
    url("../images/responsive/hero-complete-kit-catalogue.avif") type("image/avif"),
    url("../images/editorial/catalogue-placeholders/hero-complete-kit-catalogue.webp") type("image/webp")
  ) !important;
}

/* A single image has no slider layout to wait for before it can be shown. */
.woocommerce-product-gallery:has(.woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:only-child) {
  opacity: 1 !important;
}

/* Anchor the original still at the right edge, preserving its bottle margin. */
body .lumyra-hero-media { background-position: right center !important; }
body .lumyra-hero-video video {
  display: block !important;
  opacity: 0;
  background: transparent !important;
  object-position: center;
}
body .lumyra-film-ready .lumyra-hero-video video { opacity: 1; }
body .lumyra-film-toggle {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  min-height: 44px;
  padding: 8px 16px;
  background: var(--lumyra-cream);
  color: var(--lumyra-green);
  border: 1px solid var(--lumyra-green);
  border-radius: 2px;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}
body .lumyra-film-toggle[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  body .lumyra-hero-video video, body .lumyra-film-toggle { display: none !important; }
}
@media (max-width: 767px) {
  body .lumyra-film-toggle { top: 16px; bottom: auto; }
}

/* Keep copy readable without washing out the film across the whole hero. */
body .lumyra-hero-copy {
  background: linear-gradient(90deg, rgb(245 243 236 / 92%) 0%, rgb(245 243 236 / 84%) 32%, rgb(245 243 236 / 38%) 52%, transparent 72%) !important;
}
body .lumyra-hero-copy > .elementor-element:not(.lumyra-hero-form) {
  max-width: 570px !important;
}
body .lumyra-hero-copy .lumyra-lead,
body .lumyra-hero-copy .lumyra-fine {
  color: var(--lumyra-green) !important;
}
body .lumyra-film-toggle { display: none !important; }
@media (max-width: 1024px) and (min-width: 768px) {
  body .lumyra-hero-copy {
    background: linear-gradient(90deg, rgb(245 243 236 / 92%) 0%, rgb(245 243 236 / 82%) 44%, rgb(245 243 236 / 30%) 72%, transparent 100%) !important;
  }
}
@media (max-width: 767px) {
  body .lumyra-hero-copy {
    background: linear-gradient(180deg, rgb(245 243 236 / 84%) 0%, rgb(245 243 236 / 70%) 55%, rgb(245 243 236 / 24%) 100%) !important;
  }
}

/* Hero content over the film, without a panel. */
body .lumyra-hero {
  padding: 56px max(24px, calc((100vw - 1200px) / 2)) !important;
  display: flex !important;
  align-items: center !important;
  min-height: 704px !important;
}
body .lumyra-hero-copy {
  background: transparent !important;
  width: min(540px, 48%) !important;
  max-width: 540px !important;
  min-height: 0 !important;
  padding: 36px !important;
  border: 0 !important;
  border-radius: 0;
  gap: 22px !important;
}
body .lumyra-hero-copy > .elementor-element,
body .lumyra-hero-copy p,
body .lumyra-hero-copy .elementor-heading-title { margin: 0 !important; }
body .lumyra-hero-copy .elementor-heading-title {
  font-size: clamp(36px, 3.8vw, 54px) !important;
  line-height: 1.08 !important;
}
body .lumyra-hero-copy .lumyra-lead p { font-size: 18px !important; line-height: 1.65 !important; }
@media (max-width: 1023px) and (min-width: 768px) {
  body .lumyra-hero-copy { width: 54% !important; padding: 28px !important; }
}
@media (max-width: 767px) {
  body .lumyra-hero {
    display: flex !important;
    flex-direction: column !important;
    padding: 24px 20px !important;
    min-height: 0 !important;
    gap: 24px !important;
    background: var(--lumyra-surface) !important;
  }
  body .lumyra-hero-copy {
    order: 0;
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    border: 0 !important;
  }
  body .lumyra-hero-media {
    order: 1;
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 4px;
  }
  body .lumyra-hero-video { position: absolute !important; inset: 0 !important; }
  body .lumyra-hero-video,
  body .lumyra-hero-video .elementor-widget-container,
  body .lumyra-hero-video .elementor-wrapper,
  body .lumyra-hero-video .e-hosted-video,
  body .lumyra-hero-video video { min-height: 0 !important; }
}

/* Keep edge-to-edge coverage while shifting the film's subject to the right. */
@media (min-width: 768px) {
  body .lumyra-hero-video video {
    transform: scale(1.18);
    transform-origin: left center;
  }
}

/* Align the copy with the left content edge; fade across the film, not a card. */
body .lumyra-hero-copy {
  text-align: left !important;
  align-items: flex-start !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
@media (min-width: 768px) {
  body .lumyra-hero { justify-content: flex-start !important; }
  body .lumyra-hero-copy {
    padding: 0 !important;
    margin: 0 auto 0 0 !important;
    width: min(480px, 43%) !important;
    max-width: 480px !important;
  }
  body .lumyra-hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(90deg, rgb(245 243 236 / 96%) 0%, rgb(245 243 236 / 90%) 25%, rgb(245 243 236 / 78%) 40%, rgb(245 243 236 / 32%) 55%, transparent 72%);
  }
}
