/* WeddingZa homepage hero background — v7 (12 Nov 2026)
   Goal: keep the hero background image clear and visible (not washed out, not blurry)
   while preserving readability for the left-side content and keeping the white theme.
   This file only affects the homepage hero.
*/
html body.vision-site[data-page="home"] main.vision-home section.vision-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

/* Show the decorative wedding background clearly. */
html body.vision-site[data-page="home"] main.vision-home section.vision-hero .vision-hero-bg {
  display: block !important;
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 1 !important;
  overflow: hidden;
  pointer-events: none;
}
html body.vision-site[data-page="home"] main.vision-home section.vision-hero .vision-hero-bg > img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 48%;
  opacity: 1 !important;
  filter: saturate(1) contrast(1.05) brightness(1) !important;
  transform: none !important;
}

/* Remove the strong white wash over the whole hero.
   Keep only a very soft tonal layer so the section stays elegant. */
html body.vision-site[data-page="home"] main.vision-home section.vision-hero .vision-hero-vignette {
  display: block !important;
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 1 !important;
  pointer-events: none;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background:
    linear-gradient(90deg,
      rgba(255,255,255,.18) 0%,
      rgba(255,255,255,.10) 28%,
      rgba(255,255,255,.05) 55%,
      rgba(255,255,255,.08) 100%),
    linear-gradient(180deg,
      rgba(255,255,255,.04) 0%,
      rgba(255,255,255,.08) 100%) !important;
}

/* Keep hero content readable without whitening the full image. */
html body.vision-site[data-page="home"] main.vision-home section.vision-hero .vision-hero-stage {
  position: relative;
  z-index: 2;
}
html body.vision-site[data-page="home"] main.vision-home section.vision-hero .home-hero-content {
  position: relative;
}
html body.vision-site[data-page="home"] main.vision-home section.vision-hero .home-hero-content::before {
  content: "";
  position: absolute;
  inset: -28px -26px -20px -26px;
  z-index: -1;
  border-radius: 32px;
  background: linear-gradient(180deg,
    rgba(255,255,255,.74) 0%,
    rgba(255,255,255,.66) 58%,
    rgba(255,255,255,.56) 100%);
  border: 1px solid rgba(140, 104, 116, .10);
  box-shadow: 0 18px 48px rgba(58, 36, 46, .06);
}

/* Ensure the foreground portrait remains untouched and vivid. */
html body.vision-site[data-page="home"] main.vision-home section.vision-hero .home-hero-portrait,
html body.vision-site[data-page="home"] main.vision-home section.vision-hero .home-hero-portrait > img {
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

@media (max-width: 800px) {
  html body.vision-site[data-page="home"] main.vision-home section.vision-hero .vision-hero-bg > img {
    object-position: center 42%;
  }
  html body.vision-site[data-page="home"] main.vision-home section.vision-hero .vision-hero-vignette {
    background:
      linear-gradient(180deg,
        rgba(255,255,255,.22) 0%,
        rgba(255,255,255,.12) 44%,
        rgba(255,255,255,.10) 100%) !important;
  }
  html body.vision-site[data-page="home"] main.vision-home section.vision-hero .home-hero-content::before {
    inset: -18px -16px -16px -16px;
    border-radius: 24px;
    background: linear-gradient(180deg,
      rgba(255,255,255,.80) 0%,
      rgba(255,255,255,.70) 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  html body.vision-site[data-page="home"] main.vision-home section.vision-hero .vision-hero-bg > img {
    animation: none !important;
  }
}
