/* Divi 5's light-layout button color can override the HVAC button palette. */
body #page-container .et_pb_section .et_pb_button.dct_hvac_btn:not(:hover),
body #page-container .et_pb_section .et_pb_button_3_tb_header[href^="tel:"],
body.page-id-160 #page-container .et_pb_section .et_pb_button:is(.et_pb_button_7, .et_pb_button_9),
body #page-container .et_pb_section .et_pb_button.dct_hvac_btn.light:hover {
	color: #fff;
}

body #page-container .dct_hvac_pricing .et_pb_pricing_table_button {
	border-color: var(--color-1, #d34c53);
	background-color: var(--color-1, #d34c53);
	color: #fff;
}

body #page-container .dct_hvac_pricing .et_pb_pricing_table_button:hover {
	border-color: var(--color-2, #34407b);
	background-color: #fff;
	color: var(--color-2, #34407b);
}

/* The HVAC theme now reads Divi tokens in place of its original palette. */
body.wp-child-theme-divihvactheme {
	--gcid-primary-color: var(--color-1, #d34c53);
	--gcid-secondary-color: var(--color-2, #34407b);
}

/* Divi 5 renamed the parallax element that carries the HVAC hero overlay. */
.dct_hvac_parallax .et-pb-parallax-background::before {
	content: "";
	position: absolute;
	inset: 0;
	background-color: rgba(0, 0, 0, .6);
}

/* Divi 5 nests the portrait and adds typography rules inside the card. */
body #page-container .dct_hva_tml {
	isolation: isolate;
}

body #page-container .dct_hva_tml::after {
	content: "";
}

body #page-container .dct_hva_tml .et_pb_testimonial_inner {
	position: static;
}

body #page-container .dct_hva_tml .et_pb_testimonial_portrait img {
	object-fit: cover;
}

body #page-container .dct_hva_tml .et_pb_testimonial_content :is(p, p span) {
	font-weight: 500;
	line-height: 26px;
}

/* Use the site's original desktop tab and mobile arrow with Divi's scroll handler. */
body.wp-child-theme-divihvactheme.px_custom_back_to_top--style-1 > .et_pb_scroll_top {
	--scroll-red: var(--color-1, #d34c53);
	--scroll-navy: var(--color-2, #34407b);
	position: fixed;
	right: 0;
	bottom: 20px;
	z-index: 9999;
	display: inline-flex;
	align-items: center;
	width: 40px;
	height: auto;
	padding: 14px 0 0;
	border: 0;
	border-radius: 0;
	background: var(--scroll-red);
	box-shadow: 0 2px 4px rgba(0, 0, 0, .2);
	cursor: pointer;
	writing-mode: vertical-rl;
	transform-origin: center;
	transform: rotate(180deg);
	transition: opacity .18s ease;
	animation: none;
	opacity: 0;
	visibility: hidden;
}

body.wp-child-theme-divihvactheme.px_custom_back_to_top--style-1 > .et_pb_scroll_top.et-visible {
	opacity: 1;
	visibility: visible;
}

body.wp-child-theme-divihvactheme.px_custom_back_to_top--style-1 > .et_pb_scroll_top::before {
	content: "Back To Top";
	position: static;
	transform: none;
	color: #fff;
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 1px;
	text-transform: uppercase;
}

body.wp-child-theme-divihvactheme.px_custom_back_to_top--style-1 > .et_pb_scroll_top::after {
	content: "\24";
	position: static;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	margin: 12px 0 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: var(--scroll-navy);
	color: #fff;
	font: 700 16px/1 ETmodules;
	writing-mode: horizontal-tb;
	animation: none;
	transform: rotate(90deg);
}

body.wp-child-theme-divihvactheme.px_custom_back_to_top--style-1 > .et_pb_scroll_top > div {
	display: none;
}

body.wp-child-theme-divihvactheme.px_custom_back_to_top--style-1 > .et_pb_scroll_top:hover {
	background: var(--scroll-navy);
}

body.wp-child-theme-divihvactheme.px_custom_back_to_top--style-1 > .et_pb_scroll_top:hover::after {
	background: var(--scroll-red);
}

@media (max-width: 981px) {
	body.wp-child-theme-divihvactheme.px_custom_back_to_top--style-1 > .et_pb_scroll_top {
		right: 20px;
		bottom: 20px;
		padding: 0;
		writing-mode: horizontal-tb;
		transform: none;
	}

	body.wp-child-theme-divihvactheme.px_custom_back_to_top--style-1 > .et_pb_scroll_top::before {
		content: none;
	}

	body.wp-child-theme-divihvactheme.px_custom_back_to_top--style-1 > .et_pb_scroll_top::after {
		margin: 0;
		box-shadow: inset 0 0 0 1px #fff;
		transform: rotate(-90deg);
	}
}
