/*
 * Shared closing CTA — "Ready to sell with …?" (propseller-core, includes/cta-section.php).
 * Ported 1:1 from the agent-profile contact section. Text rules carry !important because the
 * theme styles h2 / p / a with ID selectors (#content …) that would otherwise win.
 */

.ps-cta {
	--ps-cta-white: #fff;
	--ps-cta-onyx: var(--onyx-black, #221f2b);
	--ps-cta-steel: var(--steel-blue, #8a9deb);
	--ps-cta-blue: var(--propseller-blue, #3f5cd6);
	--ps-cta-serif: "Source Serif Pro", Georgia, serif;
	--ps-cta-sans: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

	position: relative;
	overflow: hidden;
	isolation: isolate;
	padding: 200px 24px;
	background: var(--ps-cta-onyx);
	color: var(--ps-cta-white);
	font-family: var(--ps-cta-sans);
}

.ps-cta__background {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none !important;
	object-fit: cover;
	object-position: center;
	z-index: -2;
}

.ps-cta::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(34, 31, 43, 0.8);
	z-index: -1;
}

.ps-cta__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	max-width: 1140px;
	margin: 0 auto;
	text-align: center;
}

.ps-cta .ps-cta__title {
	margin: 0 0 35px !important;
	padding: 0 !important;
	font-family: var(--ps-cta-serif) !important;
	font-size: 36px !important;
	font-weight: 400 !important;
	line-height: 1.5 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	color: var(--ps-cta-white) !important;
}

.ps-cta .ps-cta__title em {
	font-family: var(--ps-cta-serif) !important;
	font-style: italic !important;
	font-weight: 400 !important;
	color: var(--ps-cta-steel) !important;
}

.ps-cta .ps-cta__subheading {
	margin: 0 !important;
	font-family: var(--ps-cta-sans) !important;
	font-size: 18px !important;
	line-height: 1.5 !important;
	color: var(--ps-cta-white) !important;
}

/* Google rating badge. */
.ps-cta .ps-cta__rating {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 15px;
	max-width: 100%;
	margin-top: 40px;
	padding: 11px 20px;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.1);
	box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.06);
	color: var(--ps-cta-white) !important;
	font-family: var(--ps-cta-sans) !important;
	font-size: 16px;
	line-height: 1;
	text-decoration: none !important;
}

.ps-cta .ps-cta__rating * {
	text-decoration: none !important;
}

.ps-cta .ps-cta__rating:hover,
.ps-cta .ps-cta__rating:focus-visible {
	color: var(--ps-cta-white) !important;
	background: rgba(255, 255, 255, 0.16);
}

.ps-cta .ps-cta__rating:focus-visible {
	outline: 2px solid var(--ps-cta-white);
	outline-offset: 4px;
}

.ps-cta__rating-logo {
	display: flex;
	flex: none;
}

.ps-cta__rating-logo img {
	display: block;
	width: 87px;
	height: 28px;
	max-width: none !important;
	object-fit: contain;
}

.ps-cta .ps-cta__rating strong {
	font-size: inherit;
	font-weight: 700;
	white-space: nowrap;
	color: inherit !important;
}

.ps-cta__stars {
	display: inline-flex;
	align-items: center;
	gap: 1px;
	flex: none;
	color: #f6bb06;
}

.ps-cta__star {
	display: inline-flex;
	width: 20px;
	height: 20px;
}

.ps-cta__star svg {
	display: block;
	width: 100%;
	height: 100%;
}

.ps-cta__star.is-empty {
	opacity: 0.25;
}

.ps-cta__rating-divider {
	flex: none;
	width: 1px;
	height: 15px;
	background: currentColor;
	opacity: 0.2;
}

/* Buttons. */
.ps-cta__buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: stretch;
	gap: 16px;
	margin-top: 40px;
}

.ps-cta__slot {
	display: flex;
}

.ps-cta .ps-cta__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 51px;
	max-width: 360px;
	margin: 0 auto;
	padding: 12px 50px;
	border: 1px solid transparent;
	border-radius: 3px;
	font-family: var(--ps-cta-sans) !important;
	font-size: 16px !important;
	font-weight: 400 !important;
	line-height: 1.5 !important;
	text-align: center;
	text-decoration: none !important;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ps-cta .ps-cta__btn * {
	text-decoration: none !important;
}

.ps-cta__btn svg {
	display: block;
	width: 16px;
	height: 16px;
	flex: none;
}

.ps-cta .ps-cta__btn--primary,
.ps-cta .ps-cta__btn--primary:visited {
	background: var(--ps-cta-blue);
	border-color: var(--ps-cta-blue);
	color: var(--ps-cta-white) !important;
}

.ps-cta .ps-cta__btn--primary:hover,
.ps-cta .ps-cta__btn--primary:focus {
	background: #3450c2;
	border-color: #3450c2;
	color: var(--ps-cta-white) !important;
}

.ps-cta .ps-cta__btn--outline,
.ps-cta .ps-cta__btn--outline:visited {
	background: transparent;
	border-color: var(--ps-cta-white);
	color: var(--ps-cta-white) !important;
}

.ps-cta .ps-cta__btn--outline:hover,
.ps-cta .ps-cta__btn--outline:focus {
	background: var(--ps-cta-white);
	border-color: var(--ps-cta-white);
	color: var(--ps-cta-onyx) !important;
}

/* Mobile-only in the design; turned on below. */
.ps-cta .ps-cta__note {
	display: none;
}

/* Tablet + mobile: the photo becomes a strip along the bottom under one gradient. */
@media (max-width: 1023px) {
	.ps-cta {
		padding: 70px 16px 0;
	}

	.ps-cta__inner {
		padding-bottom: 200px;
	}

	.ps-cta .ps-cta__title em {
		display: block;
	}

	.ps-cta__background {
		top: auto;
		bottom: 0;
		height: 246px;
		object-position: center top;
	}

	/* Stops measured from the bottom so the blend stays at the photo's top edge. */
	.ps-cta::before {
		background: linear-gradient(
			180deg,
			#221f2b 0,
			#262332 20%,
			#494650 50%,
			rgba(148, 145, 153, 1) 69%,
			rgba(148, 145, 153, 0.35) 73%,
			rgba(148, 145, 153, 0) 77%
		);
	}

	.ps-cta__buttons,
	.ps-cta__slot,
	.ps-cta .ps-cta__btn {
		width: 100%;
	}

	.ps-cta .ps-cta__btn {
		padding: 12px 24px;
	}

	.ps-cta .ps-cta__note {
		display: block;
		margin: 40px 0 0 !important;
		font-family: var(--ps-cta-sans) !important;
		font-size: 18px !important;
		line-height: 1.5 !important;
		color: var(--ps-cta-white) !important;
		opacity: 0.7;
	}

	.ps-cta .ps-cta__note a {
		color: inherit !important;
		text-decoration: none !important;
	}
}

/* Phones: smaller heading; the Google wordmark switches to its compact mark. */
@media (max-width: 767px) {
	.ps-cta .ps-cta__title {
		font-size: 28px !important;
	}

	.ps-cta .ps-cta__rating {
		padding: 15px 14px;
	}

	.ps-cta .ps-cta__rating-verdict {
		display: none;
	}

	.ps-cta__rating-logo img {
		width: 25px;
		height: 24px;
	}
}

@media (max-width: 375px) {
	.ps-cta .ps-cta__rating {
		padding-inline: 10px;
		font-size: 15px;
	}

	.ps-cta__star {
		width: 17px;
		height: 17px;
	}
}
