/**
 * Marketing-page components: hero search, feature grid, process steps,
 * CTA band, FAQ, testimonials, latest-articles cards, business info,
 * social links. Token-driven; shared across Home/About/Sell/Contact.
 */

/* --- Hero section (container-level background treatment) --- */
.rb-hero-section {
	position: relative;
	background: radial-gradient(120% 140% at 15% -10%, #3a2c27 0%, var(--rb-secondary) 45%, var(--rb-primary-active) 100%);
	overflow: hidden;
}
/* Faint brand-colored glow, decorative only — pure CSS, no image request. */
.rb-hero-section::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(60% 80% at 85% 110%, rgba(169, 138, 78, 0.16), transparent 70%);
	pointer-events: none;
}

/* --- Hero search --- */
.rb-hero-search {
	position: relative;
	text-align: center;
	max-width: 860px;
	margin: 0 auto;
	z-index: 1;
}
.rb-hero-search__title {
	margin: 0 0 var(--rb-space-4);
	color: var(--rb-text-invert);
	font-size: clamp(2.25rem, 4.8vw, 3.5rem);
	line-height: 1.15;
}
.rb-hero-search__sub {
	margin: 0 0 var(--rb-space-7);
	color: rgba(255, 255, 255, 0.82);
	font-size: 19px;
	max-width: 620px;
	margin-inline: auto;
}
.rb-hero-search__form {
	display: flex;
	gap: var(--rb-space-2);
	padding: var(--rb-space-3);
	background: var(--rb-bg);
	border: 1px solid var(--rb-border);
	border-radius: var(--rb-radius-lg);
	box-shadow: var(--rb-shadow-lg);
}
.rb-hero-search__field {
	flex: 1;
}
.rb-hero-search__field select {
	width: 100%;
	min-height: 48px;
	padding: 0 var(--rb-space-3);
	border: 1px solid var(--rb-border-input);
	border-radius: var(--rb-radius-sm);
	background: var(--rb-bg);
	color: var(--rb-text);
	font-size: 15px;
}
.rb-hero-search__submit {
	min-height: 48px;
	padding: 0 var(--rb-space-6);
	border: 0;
	border-radius: var(--rb-radius-sm);
	background: var(--rb-primary);
	color: var(--rb-text-invert);
	font-weight: 600;
	font-size: 15px;
	white-space: nowrap;
	cursor: pointer;
	transition: background var(--rb-duration-fast) var(--rb-ease);
}
.rb-hero-search__submit:hover {
	background: var(--rb-primary-hover);
}
@media (max-width: 767px) {
	.rb-hero-search__form {
		flex-direction: column;
	}
}

/* Secondary hero CTA — a plain core Elementor button styled as a ghost
   action beneath the search form, giving visitors a non-search path to
   convert (talk to a broker directly) without competing with the primary
   search CTA. */
.rb-hero-secondary {
	margin-top: var(--rb-space-5);
	position: relative;
	z-index: 1;
}
.rb-hero-secondary .elementor-button {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.4);
	color: var(--rb-text-invert);
	font-weight: 500;
	transition: background var(--rb-duration-fast) var(--rb-ease), border-color var(--rb-duration-fast) var(--rb-ease);
}
.rb-hero-secondary .elementor-button:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.75);
	color: var(--rb-text-invert);
}

/* --- Trust strip (below hero) --- */
.rb-trust {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: flex-start;
	gap: var(--rb-space-7) var(--rb-space-7);
}
.rb-trust__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--rb-space-1);
	min-width: 130px;
}
.rb-trust__number {
	margin: 0;
	font-family: var(--rb-font-display);
	font-size: clamp(1.875rem, 3.4vw, 2.5rem);
	font-weight: 600;
	line-height: 1;
	color: var(--rb-text-invert);
}
.rb-trust__label {
	margin: 0;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--rb-gray-400);
}
@media (max-width: 767px) {
	.rb-trust {
		gap: var(--rb-space-6) var(--rb-space-6);
	}
}

/* --- Feature / values grid --- */
.rb-fgrid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--rb-space-5);
}
.rb-fgrid__item {
	text-align: left;
	padding: var(--rb-space-5);
	background: var(--rb-bg);
	border: 1px solid var(--rb-border);
	border-radius: var(--rb-radius-md);
	transition: box-shadow var(--rb-duration-base) var(--rb-ease), transform var(--rb-duration-base) var(--rb-ease), border-color var(--rb-duration-base) var(--rb-ease);
}
@media (hover: hover) {
	.rb-fgrid__item:hover {
		box-shadow: var(--rb-shadow-md);
		transform: var(--rb-hover-lift);
		border-color: var(--rb-accent);
	}
}
.rb-fgrid__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin-bottom: var(--rb-space-4);
	border-radius: var(--rb-radius-pill);
	background: var(--rb-primary-tint);
	color: var(--rb-text);
}
.rb-fgrid__icon svg {
	width: 26px;
	height: 26px;
}
.rb-fgrid__title {
	margin: 0 0 var(--rb-space-2);
	font-size: 19px;
}
.rb-fgrid__text {
	margin: 0;
	color: var(--rb-text-secondary);
	line-height: 1.6;
}
@media (max-width: 1024px) {
	.rb-fgrid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 767px) {
	.rb-fgrid {
		grid-template-columns: 1fr;
	}
}

/* --- Process steps --- */
.rb-steps__heading {
	text-align: center;
	margin: 0 0 var(--rb-space-6);
}
.rb-steps {
	position: relative;
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--rb-space-6);
	counter-reset: rb-step;
}
/* Connecting timeline line — sits behind the (opaque) number circles, so
   it visually threads through them without extra markup. Desktop-only:
   a straight line stops making sense once the grid wraps to 2/1 columns. */
.rb-steps::before {
	content: "";
	position: absolute;
	top: 20px;
	left: 6%;
	right: 6%;
	height: 2px;
	background: var(--rb-border);
	z-index: 0;
}
@media (max-width: 1024px) {
	.rb-steps::before {
		display: none;
	}
}
.rb-steps__item {
	position: relative;
	z-index: 1;
	text-align: left;
}
.rb-steps__num {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin-bottom: var(--rb-space-3);
	border-radius: var(--rb-radius-pill);
	background: var(--rb-secondary);
	color: var(--rb-text-invert);
	font-family: var(--rb-font-display);
	font-weight: 600;
	font-size: 16px;
	box-shadow: 0 0 0 4px var(--rb-bg);
}
.rb-steps__title {
	margin: 0 0 var(--rb-space-2);
	font-size: 18px;
}
.rb-steps__text {
	margin: 0;
	color: var(--rb-text-secondary);
	line-height: 1.6;
	font-size: 14.5px;
}
@media (max-width: 1024px) {
	.rb-steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 767px) {
	.rb-steps {
		grid-template-columns: 1fr;
	}
}

/* --- CTA band --- */
.rb-cta {
	border-radius: var(--rb-radius-lg);
	padding: var(--rb-space-8) var(--rb-space-5);
}
.rb-cta--dark {
	background: var(--rb-secondary);
	color: var(--rb-text-invert);
}
.rb-cta--light {
	background: var(--rb-primary-tint);
	color: var(--rb-text);
}
.rb-cta__inner {
	max-width: 620px;
	margin: 0 auto;
	text-align: center;
}
.rb-cta__heading {
	margin: 0 0 var(--rb-space-3);
	color: inherit;
}
.rb-cta__text {
	margin: 0 0 var(--rb-space-5);
	opacity: 0.85;
}
.rb-cta__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 var(--rb-space-7);
	border-radius: var(--rb-radius-md);
	font-weight: 600;
	text-decoration: none;
}
.rb-cta--dark .rb-cta__button {
	background: var(--rb-accent);
	color: var(--rb-secondary);
}
.rb-cta--dark .rb-cta__button:hover {
	background: var(--rb-accent-hover);
	color: var(--rb-secondary);
}

/* Homepage's closing CTA — the strongest ask on the page, so it gets the
   full-strength treatment (same gradient language as the hero, for a
   connected feel) rather than the flat background every other `.rb-cta`
   instance (Sell page, blog articles) keeps. Additive modifier, applied
   only to this one instance via the widget's own CSS Classes field —
   which Elementor places on the OUTER wrapper div, one level above the
   widget's own `.rb-cta.rb-cta--dark` markup, hence the descendant
   selector here rather than a bare `.rb-cta--final { }` rule (a bare
   rule would apply padding/background to the outer wrapper while the
   inner div's own opaque background painted on top would hide it). */
.rb-cta--final .rb-cta.rb-cta--dark {
	padding: var(--rb-space-9) var(--rb-space-5);
	background: radial-gradient(120% 160% at 85% 120%, #3a2c27 0%, var(--rb-secondary) 55%, var(--rb-primary-active) 100%);
}
.rb-cta--final .rb-cta__heading {
	font-size: clamp(1.75rem, 3.4vw, 2.5rem);
}
.rb-cta--final .rb-cta__text {
	font-size: 17px;
}
.rb-cta--final .rb-cta__button {
	padding: 0 var(--rb-space-8);
	min-height: 52px;
	font-size: 16px;
	box-shadow: var(--rb-shadow-md);
	transition: background var(--rb-duration-fast) var(--rb-ease), transform var(--rb-duration-base) var(--rb-ease), box-shadow var(--rb-duration-base) var(--rb-ease);
}
@media (hover: hover) {
	.rb-cta--final .rb-cta__button:hover {
		transform: var(--rb-hover-lift);
		box-shadow: var(--rb-shadow-lg);
	}
}
@media (max-width: 767px) {
	.rb-cta--final .rb-cta.rb-cta--dark {
		padding: var(--rb-space-7) var(--rb-space-4);
	}
}
.rb-cta--light .rb-cta__button {
	background: var(--rb-secondary);
	color: var(--rb-text-invert);
}
.rb-cta--light .rb-cta__button:hover {
	background: var(--rb-text);
	color: var(--rb-text-invert);
}

/* --- FAQ --- */
.rb-faq {
	max-width: 760px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: var(--rb-space-3);
}
.rb-faq__item {
	border: 1px solid var(--rb-border);
	border-radius: var(--rb-radius-md);
	padding: var(--rb-space-4) var(--rb-space-5);
	background: var(--rb-bg);
}
.rb-faq__q {
	cursor: pointer;
	font-weight: 600;
	font-size: 16px;
	color: var(--rb-text);
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: var(--rb-space-3);
}
.rb-faq__q::-webkit-details-marker {
	display: none;
}
.rb-faq__q::after {
	content: "+";
	flex-shrink: 0;
	font-size: 20px;
	color: var(--rb-text);
	transition: transform var(--rb-duration-fast) var(--rb-ease);
}
.rb-faq__item[open] .rb-faq__q::after {
	transform: rotate(45deg);
}
.rb-faq__a {
	margin-top: var(--rb-space-3);
	color: var(--rb-text-secondary);
	line-height: 1.6;
}

/* --- Testimonials --- */
.rb-testi {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--rb-space-6);
}
.rb-testi__item {
	position: relative;
	margin: 0;
	padding: var(--rb-space-6) var(--rb-space-5) var(--rb-space-5);
	background: var(--rb-bg);
	border: 1px solid var(--rb-border);
	border-radius: var(--rb-radius-md);
	box-shadow: var(--rb-shadow-xs);
	transition: box-shadow var(--rb-duration-base) var(--rb-ease), transform var(--rb-duration-base) var(--rb-ease);
}
@media (hover: hover) {
	.rb-testi__item:hover {
		box-shadow: var(--rb-shadow-md);
		transform: var(--rb-hover-lift);
	}
}
/* Decorative quotation mark — pure CSS, reinforces "this is a quote" at a
   glance without an icon asset. */
.rb-testi__item::before {
	content: "\201C";
	position: absolute;
	top: var(--rb-space-2);
	left: var(--rb-space-4);
	font-family: var(--rb-font-display);
	font-size: 56px;
	line-height: 1;
	color: var(--rb-primary-tint);
	pointer-events: none;
}
.rb-testi__quote {
	position: relative;
	margin: 0 0 var(--rb-space-4);
	font-size: 15px;
	line-height: 1.65;
	color: var(--rb-text);
	font-style: italic;
}
.rb-testi__attr {
	display: flex;
	flex-direction: column;
	font-style: normal;
	padding-top: var(--rb-space-3);
	border-top: 1px solid var(--rb-border);
}
.rb-testi__author {
	font-weight: 600;
	font-size: 14px;
}
.rb-testi__role {
	font-size: 13px;
	color: var(--rb-text-secondary);
}
@media (max-width: 1024px) {
	.rb-testi {
		grid-template-columns: 1fr;
	}
}

/* --- Latest articles --- */
.rb-postgrid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--rb-grid-gap);
}
.rb-postcard {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--rb-bg);
	border: 1px solid var(--rb-border);
	border-radius: var(--rb-radius-md);
	box-shadow: var(--rb-shadow-xs);
	overflow: hidden;
	transition: box-shadow var(--rb-duration-base) var(--rb-ease), transform var(--rb-duration-base) var(--rb-ease);
}
@media (hover: hover) {
	.rb-postcard:hover {
		box-shadow: var(--rb-shadow-md);
		transform: var(--rb-hover-lift);
	}
	.rb-postcard:hover .rb-postcard__media img {
		transform: scale(1.03);
	}
}
.rb-postcard:focus-within {
	outline: 2px solid var(--rb-primary);
	outline-offset: 2px;
}
.rb-postcard__media {
	aspect-ratio: 3 / 2;
	background: var(--rb-muted);
	overflow: hidden;
}
.rb-postcard__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--rb-duration-slow) var(--rb-ease);
}
.rb-postcard__body {
	padding: var(--rb-space-4);
}
.rb-postcard__date {
	margin: 0 0 var(--rb-space-1);
	font-size: 12.5px;
	color: var(--rb-text-secondary);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
.rb-postcard__title {
	margin: 0 0 var(--rb-space-2);
	font-size: 18px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.rb-postcard__excerpt {
	margin: 0;
	font-size: 14px;
	color: var(--rb-text-secondary);
	line-height: 1.6;
}
@media (max-width: 1024px) {
	.rb-postgrid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 767px) {
	.rb-postgrid {
		grid-template-columns: 1fr;
	}
}

/* --- Business info / social --- */
.rb-bizinfo__row {
	margin: 0 0 var(--rb-space-2);
}
.rb-bizinfo__row a {
	color: inherit;
	text-decoration: none;
}
.rb-bizinfo__row a:hover {
	text-decoration: underline;
}
.rb-bizinfo__note {
	margin: var(--rb-space-2) 0 0;
	font-size: 12.5px;
	opacity: 0.7;
	font-style: italic;
}
.rb-social {
	list-style: none;
	display: flex;
	gap: var(--rb-space-4);
	margin: 0;
	padding: 0;
}
.rb-social a {
	color: inherit;
	text-decoration: none;
	font-size: 14px;
}
.rb-social a:hover {
	text-decoration: underline;
}
