/**
 * Newsletter CTA leaf band — .ppbh-newsletter-cta-leaf
 *
 * Softens the Divi leaf card: watermark, spacing, and a green signup button
 * that fits the sage band better than navy primary.
 */

#page-container .ppbh-newsletter-cta-leaf {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.55) inset,
		0 14px 36px rgba(36, 88, 2, 0.12);
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

#page-container .ppbh-newsletter-cta-leaf::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(120% 80% at 12% 18%, rgba(255, 255, 255, 0.55) 0%, transparent 52%),
		radial-gradient(90% 70% at 88% 82%, rgba(49, 116, 0, 0.1) 0%, transparent 55%);
	pointer-events: none;
	z-index: 0;
}

#page-container .ppbh-newsletter-cta-leaf::after {
	content: "";
	position: absolute;
	width: auto;
	height: clamp(7.5rem, 22vw, 11.5rem);
	aspect-ratio: 122 / 151;
	bottom: 0%;
    right: 1%;
	background-color: var(--green-leaf-800, #317400);
	-webkit-mask: url("/wp-content/uploads/white-leaf-bg-pseudo.svg") no-repeat center / 100% 100%;
	mask: url("/wp-content/uploads/white-leaf-bg-pseudo.svg") no-repeat center / 100% 100%;
	pointer-events: none;
	transform: scaleX(-1) rotate(-6deg);
	opacity: 0.14;
	z-index: 0;
}

#page-container .ppbh-newsletter-cta-leaf > .et_pb_column,
#page-container .ppbh-newsletter-cta-leaf .et_pb_module {
	position: relative;
	z-index: 1;
}

#page-container .ppbh-newsletter-cta-leaf .et_pb_blurb_container {
	max-width: 36rem;
	margin-inline: auto;
}

#page-container .ppbh-newsletter-cta-leaf .et_pb_module_header,
#page-container .ppbh-newsletter-cta-leaf h2.et_pb_module_header {
	margin-bottom: var(--size-12, 0.75rem) !important;
	letter-spacing: -0.02em;
	line-height: var(--line-height-xs, 1.25) !important;
}

#page-container .ppbh-newsletter-cta-leaf .et_pb_blurb_description,
#page-container .ppbh-newsletter-cta-leaf .et_pb_blurb_description p {
	margin: 0 auto !important;
	padding-bottom: 0 !important;
	color: var(--green-leaf-900, #245802) !important;
	font-size: var(--font-size-200, 16px);
	line-height: var(--line-height-sm, 1.5);
	max-width: 32rem;
}

#page-container .ppbh-newsletter-cta-leaf .et_pb_button_module_wrapper {
	margin-top: var(--size-24, 1.5rem) !important;
}

/* Match site secondary green buttons (no lift / shadow); keeps fsm-btn-primary class in builder */
#page-container .ppbh-newsletter-cta-leaf .et_pb_button,
#page-container .ppbh-newsletter-cta-leaf a.et_pb_button {
	box-sizing: border-box !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 10px !important;
	min-height: 48px !important;
	padding: 12px 21px !important;
	border-radius: 50px !important;
	border: none !important;
	background-color: var(--btn-secondary-bg, #317400) !important;
	background-image: none !important;
	box-shadow: none !important;
	color: var(--btn-secondary-text, #ffffff) !important;
	font-family: var(--font-family-heading, "DM Sans", system-ui, sans-serif) !important;
	font-size: var(--font-size-175, 18px) !important;
	font-style: normal !important;
	font-weight: var(--font-weight-semibold, 600) !important;
	letter-spacing: -0.36px !important;
	line-height: normal !important;
	text-align: center !important;
	text-decoration: none !important;
	text-transform: none !important;
	transform: none !important;
	transition: background-color 0.2s ease, color 0.2s ease !important;
}

#page-container .ppbh-newsletter-cta-leaf .et_pb_button .et_pb_button_text,
#page-container .ppbh-newsletter-cta-leaf a.et_pb_button .et_pb_button_text {
	color: inherit !important;
}

#page-container .ppbh-newsletter-cta-leaf .et_pb_button::after,
#page-container .ppbh-newsletter-cta-leaf a.et_pb_button::after {
	display: none !important;
}

#page-container .ppbh-newsletter-cta-leaf .et_pb_button:hover,
#page-container .ppbh-newsletter-cta-leaf a.et_pb_button:hover {
	background-color: var(--btn-secondary-bg-hover, #64a70b) !important;
	background-image: none !important;
	box-shadow: none !important;
	color: var(--btn-secondary-text, #ffffff) !important;
	text-decoration: underline !important;
	transform: none !important;
}

#page-container .ppbh-newsletter-cta-leaf .et_pb_button:hover .et_pb_button_text,
#page-container .ppbh-newsletter-cta-leaf a.et_pb_button:hover .et_pb_button_text {
	text-decoration: underline !important;
}

#page-container .ppbh-newsletter-cta-leaf .et_pb_button:focus-visible,
#page-container .ppbh-newsletter-cta-leaf a.et_pb_button:focus-visible {
	background-color: var(--btn-secondary-bg-hover, #64a70b) !important;
	background-image: none !important;
	box-shadow: none !important;
	color: var(--btn-secondary-text, #ffffff) !important;
	outline: 2px solid var(--focus-ring-outer, #4ba3d9) !important;
	outline-offset: 2px !important;
	transform: none !important;
}

@media (max-width: 767px) {
	#page-container .ppbh-newsletter-cta-leaf::after {
		height: clamp(5.5rem, 34vw, 8rem);
		opacity: 0.12;
		bottom: -2%;
		right: -4%;
	}

	#page-container .ppbh-newsletter-cta-leaf .et_pb_blurb_description,
	#page-container .ppbh-newsletter-cta-leaf .et_pb_blurb_description p {
		max-width: 22rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	#page-container .ppbh-newsletter-cta-leaf,
	#page-container .ppbh-newsletter-cta-leaf .et_pb_button,
	#page-container .ppbh-newsletter-cta-leaf a.et_pb_button {
		transition: none !important;
	}
}
