/* ==========================================================================
   Venora ↔ Divi compatibility layer
   --------------------------------------------------------------------------
   The original site (assets/site/style.css) ships a global "new CSS reset"
   (~lines 1693-1771) that strips list markers, reverts cursors, and disables
   text-size-adjust GLOBALLY. Loaded site-wide, that degrades Divi's own
   modules. These rules restore sane defaults inside Divi content and fix the
   base page background. Refine selectors during visual QA if anything drifts.
   ========================================================================== */

/* --- Restore list markers inside Divi builder content -------------------- */
/* Site reset: ol,ul,menu,summary { list-style: none }                       */
#et-boc .et_pb_module ul,
#et-boc .et_pb_module ol,
.et_pb_section .et_pb_text ul,
.et_pb_section .et_pb_text ol,
.et_pb_blurb_description ul,
.et_pb_blurb_description ol {
	list-style: revert;
	padding-left: revert;
	margin: revert;
}

/* --- Restore inherited link colors -------------------------------------- */
/* Divi sets a default `a { color:#2ea3f2 }` (its blue). The Venora design gives
   links no explicit color — they inherit from their container (the original
   reset used `:where(){color:unset}`, which Divi's higher-specificity `a` beats).
   Re-assert inheritance; explicit `.link`/`.button` colors still win.            */
a {
	color: inherit;
}

/* --- Restore pointer cursor on Divi interactive elements ---------------- */
/* Site reset: a,button { cursor: revert }                                   */
a.et_pb_button,
.et_pb_button,
.et_pb_module a,
.et_pb_module button,
#et-boc a,
#et-boc button,
#main-header a,
#main-footer a,
.et_pb_menu a {
	cursor: pointer;
}

/* --- Responsive text scaling (site reset disabled it on <html>) --------- */
html {
	-moz-text-size-adjust: 100%;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

/* --- Body font fallback (Divi's Open Sans is dequeued) ------------------- */
/* Venora text is Urbanist-classed; this covers any unclassed Divi text.      */
body {
	font-family: Urbanist, Arial, Helvetica, sans-serif;
}

/* --- Page background ----------------------------------------------------- */
/* Site sets body bg to the brand green (--background:#A7F0CC). Keep pages    */
/* white; individual Divi/Code sections paint their own backgrounds.          */
body {
	background-color: #fff;
}

/* --- Safety: don't let the site's full-bleed helpers break Divi rows ----- */
/* (Add targeted fixes here if a preserved section's CSS leaks into Divi.)    */

/* --- Projects "The Grove Layout" masterplan ------------------------------ */
/* The original sizes it as a full-width band (.master-v{width:100vw;height:700px}),
   but Divi's img{max-width:100%} caps it to its grid cell (~160px). Also the
   original inline <style> has a missing brace, so re-assert it cleanly here.    */
.solutions-publications .master-v {
	grid-column: 1 / -1;
	width: 100vw;
	max-width: 100vw;
	height: 700px;
	object-fit: cover;
	display: block;
	margin-left: calc(50% - 50vw);
}
.solutions-publications {
	overflow-x: clip;
}
@media (max-width: 600px) {
	.solutions-publications .master-v {
		height: auto;
		max-height: 85vh;
	}
}

/* --- Hide Divi's default header/footer ----------------------------------- */
/* The Venora chrome (custom nav, header, footer) is rendered by the child    */
/* theme templates + wp_footer hook, so suppress Divi's own #main-header /     */
/* #main-footer (and the top bar) to avoid duplicates.                        */
#main-header,
#top-header,
#et-top-navigation,
#main-footer,
#et-secondary-nav {
	display: none !important;
}
/* Divi wraps content in #et-main-area with header offset padding — reset it   */
/* so the Venora fixed header sits correctly.                                  */
#page-container {
	padding-top: 0 !important;
}

/* --- Welcome splash leaf background on non-home pages --------------------- */
/* On the home page the splash's monstera-leaf backdrop comes from the hero    */
/* leaf going full-screen during the GSAP Flip. Other pages have no home-hero, */
/* so the splash (`.welcome`, otherwise solid --primary green) had no leaf.     */
/* Paint the same leaf here so the brand intro looks consistent site-wide.      */
/* Scoped to body:not(.home) so the home-page Flip stays untouched.            */
body:not(.home) .welcome {
	background-image: url(assets/site/img/venora_hero1.webp);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

/* Contact hero image height (restore source height; Divi img{height:auto} override fix) */
.contact-hero__image{height:390px !important;}
