/* AVADA Visual v1.1.3 — Native AVADA section surfaces, not generic Builder palette.
   Applies to BOTH Editor and Frontend. No template HTML/number of columns is changed. */
/* Shell must not paint white over/around the real nested AVADA section. */
#avl-canvas .primary-section.avada-business-section,
.primary-builder-output .primary-section.avada-business-section {
  background:transparent;
  color:inherit;
  color-scheme:normal;
}
/* Original and newly saved Inspector background-color / gradient / image styles
   stay on the wrapper. No !important here, so LEGACY saved inline colors survive. */
/* AVADA background is designed on its child section, not on the Builder wrapper.
   Only when owner intentionally changes background does child become transparent. */
#avl-canvas .primary-section.avada-business-section:is([data-avl-bg-type="solid"],[data-avl-bg-type="gradient"],[data-avl-bg-type="image"],[data-avl-section-bg-color="1"]) > :is(section,header,footer,main),
.primary-builder-output .primary-section.avada-business-section:is([data-avl-bg-type="solid"],[data-avl-bg-type="gradient"],[data-avl-bg-type="image"],[data-avl-section-bg-color="1"]) > :is(section,header,footer,main) {
  background-color:transparent!important;
  background-image:none!important;
}
/* Force only the original dark photographic hero zones to light foreground.
   Scoped ABOVE card level so nested light cards retain their own text colors. */
:is(#avl-canvas,.primary-builder-output) .primary-section.avada-business-section > .hero :is(h2,h3,.lead,.hero-quote,.hero-quote strong,.hero-quote p,.hero-quote small),
:is(#avl-canvas,.primary-builder-output) .primary-section.avada-business-section > .campaign-strip :is(h2,h3,p,strong),
:is(#avl-canvas,.primary-builder-output) .primary-section.avada-business-section > .lib-panorama :is(h2,h3,p) {
  color:#fff!important;
}
/* Do not impose generic dark color on any other AVADA headings.
   Their actual colors come from avada-business.css for each Section. */
:is(#avl-canvas,.primary-builder-output) .primary-section.avada-business-section > .membership h2 {color:#29241F!important;}
/* Homepage hero should retain white-on-red in edit, preview and frontend. */
:is(#avl-canvas,.primary-builder-output) .primary-section.avada-business-section > .hero {background:#402A15!important;}
:is(#avl-canvas,.primary-builder-output) .primary-section.avada-business-section > .hero::after {
  background:linear-gradient(90deg,rgba(71,9,22,.96) 0%,rgba(92,14,29,.88) 42%,rgba(72,9,21,.25) 77%,rgba(59,7,18,.45) 100%)!important;
}
/* Background editing must keep the image readable when it is explicitly replaced. */
:is(#avl-canvas,.primary-builder-output) .primary-section.avada-business-section[data-avl-bg-type] > .hero {
  background:transparent!important;
}
:is(#avl-canvas,.primary-builder-output) .primary-section.avada-business-section[data-avl-bg-type] > .hero::after {background:rgba(40,0,10,.35)!important;}
/* Buttons on brand red keep white labels, including spans/icons and hover. */
:is(#avl-canvas,.primary-builder-output) .primary-section.avada-business-section .btn.primary,
:is(#avl-canvas,.primary-builder-output) .primary-section.avada-business-section .btn.primary :is(span,strong,small,i),
:is(#avl-canvas,.primary-builder-output) .primary-section.avada-business-section .btn.primary:is(:hover,:focus-visible,:visited){color:#fff!important;}

/* The original V6 consultation form has a PALE pink surface. Never white-on-pink. */
:is(#avl-canvas,.primary-builder-output) .primary-section.avada-business-section > .join :is(h2,h3,.join-intro p,.form-note){color:#292124!important;}
/* Maintain readable body copy, also in the event-list variants of Page Base. */
:is(#avl-canvas,.primary-builder-output) .primary-section.avada-business-section .event .subtitle {color:#645c65!important;}
/* The panoramic hero must remain legible while an image is loading or unavailable. */
:is(#avl-canvas,.primary-builder-output) .primary-section.avada-business-section > .lib-panorama {background-color:#402A15!important;}
:is(#avl-canvas,.primary-builder-output) .primary-section.avada-business-section[data-avl-bg-type] > .lib-panorama {background-color:transparent!important;}

/* v1.1.5 — AVADA Canvas state parity. Selection must not paint a new surface. */
/* Selection changes only the editor outline; saved custom / inline backgrounds are never replaced. */
/* Focusing text is an editing outline, never an overlay that replaces its original background. */
body.avv-primary-shell #avl-canvas .primary-section.avada-business-section [data-avl-text]:not([style*="background"]):focus,
body.avv-primary-shell #avl-canvas .primary-section.avada-business-section [data-avl-text]:not([style*="background"]).avl-inspector-selected {
  background-color:transparent!important;
}
/* True AVADA dark hero: white typography in default, selected, and editable modes. */
body.avv-primary-shell #avl-canvas .primary-section.avada-business-section > .hero :is(h2,h3,.lead,.hero-content p,.hero-quote,.hero-quote p,.hero-quote strong),
body.avv-primary-shell #avl-canvas .primary-section.avada-business-section > .hero :is(h2,h3,.lead,.hero-content p,.hero-quote,.hero-quote p,.hero-quote strong):is(:focus,:hover,.avl-inspector-selected),
.primary-builder-output .primary-section.avada-business-section > .hero :is(h2,h3,.lead,.hero-content p,.hero-quote,.hero-quote p,.hero-quote strong) {
  color:#fff!important;
}
/* Selected wrapper overlays must not cover the original child Section. */
body.avv-primary-shell #avl-canvas .primary-section.avada-business-section > :is(section,header,footer,main) {
  isolation:isolate;
}
