/**
 * Property Search - CTA Banner widget styles
 *
 * Self-contained port of the static site gold call-to-action banner
 * (the plugin does not load Bootstrap, so the flex layout and h2
 * sizing are recreated here). Colours are CSS custom properties
 * written by Elementor; values below are the design defaults.
 *
 * @package PropertySearch
 */

.ps-cta-section {
	--ps-cta-grad-start: #ffcc00;
	--ps-cta-grad-end: #e6b800;
	--ps-cta-decoration: rgba(255, 255, 255, 0.15);
	--ps-cta-heading: #003d2b;
	--ps-cta-desc: rgba(0, 61, 43, 0.7);
	--ps-cta-btn-bg: #003d2b;
	--ps-cta-btn-text: #ffffff;
	--ps-cta-btn-border: #003d2b;

	/* Mirrors Bootstrap .py-5 */
	padding: 48px 0;
	font-family: inherit;
	line-height: 1.5;
}

.ps-cta-section,
.ps-cta-section * {
	box-sizing: border-box;
}

/* Container (mirrors Bootstrap .container) */
.ps-cta-container {
	width: 100%;
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 15px;
}

/* Gold banner card (mirrors .cta-banner + flex utilities) */
.ps-cta-banner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	position: relative;
	overflow: hidden;
	padding: 60px;
	border-radius: 24px;
	background: linear-gradient(135deg, var(--ps-cta-grad-start) 0%, var(--ps-cta-grad-end) 100%);
}

/* Decorative circle (mirrors .cta-banner::before) */
.ps-cta-banner::before {
	content: '';
	position: absolute;
	top: -60px;
	right: -60px;
	width: 200px;
	height: 200px;
	border-radius: 50%;
	background: var(--ps-cta-decoration);
	pointer-events: none;
}

.ps-cta-banner.ps-no-decoration::before {
	display: none;
}

/* Text column */
.ps-cta-text {
	position: relative;
	z-index: 1;
	flex: 1 1 auto;
	min-width: 0;
}

/* Heading (mirrors Bootstrap h2 sizing with the .cta-banner h2 overrides) */
.ps-cta-heading {
	color: var(--ps-cta-heading);
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 0.5rem;
	font-size: calc(1.325rem + 0.9vw);
}

@media (min-width: 1200px) {
	.ps-cta-heading {
		font-size: 2rem;
	}
}

/* Description (mirrors p.mb-0.u-43) */
.ps-cta-desc {
	color: var(--ps-cta-desc);
	margin: 0;
}

/* Button (mirrors .btn.btn-hero.u-44 + .mt-3.mt-md-0) */
.ps-cta-btn {
	position: relative;
	z-index: 1;
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	background: var(--ps-cta-btn-bg);
	color: var(--ps-cta-btn-text);
	border: 2px solid var(--ps-cta-btn-border);
	border-radius: 50px;
	padding: 15px 38px;
	font-weight: 700;
	font-size: 1rem;
	letter-spacing: 0.3px;
	line-height: 1.4;
	text-decoration: none;
	/* Mirrors Bootstrap .mt-3 */
	margin-top: 16px;
	transition: all 0.3s ease;
}

.ps-cta-btn i,
.ps-cta-btn svg {
	margin-right: 8px;
	width: 1em;
	height: 1em;
}

.ps-cta-btn:hover {
	background: var(--ps-cta-btn-bg);
	color: var(--ps-cta-btn-text);
	border-color: var(--ps-cta-btn-border);
}

.ps-cta-btn:focus-visible {
	outline: 2px solid var(--ps-cta-btn-bg);
	outline-offset: 2px;
}

/* Mirrors Bootstrap .mt-md-0 */
@media (min-width: 768px) {
	.ps-cta-btn {
		margin-top: 0;
	}
}

/* Scroll reveal (mirrors .fade-up / .fade-up.show) */
.ps-cta-container.ps-reveal {
	opacity: 0;
	transform: translateY(40px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}

.ps-cta-container.ps-reveal.ps-show {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	.ps-cta-container.ps-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
}
