/* Before & After page — reuses .rs-results from home.css */

.page-template-template-before-after #main {
	background: #fff;
}

.page-template-template-before-after #main .wf-wrap,
.page-template-template-before-after #main .wf-container-main {
	max-width: none !important;
	width: 100%;
	padding-left: 0;
	padding-right: 0;
	box-sizing: border-box;
}

.rs-ba-content {
	padding: 0 !important;
	max-width: none !important;
	width: 100%;
	font-family: var(--rs-font-sans);
	overflow-x: clip;
}

/* Hero (matches Contact / Appointment) */
.rs-ba-hero {
	position: relative;
	overflow: hidden;
	background: var(--rs-ice-blue);
	min-height: 12rem;
	display: flex;
	align-items: flex-end;
	padding: 2.75rem 0 2.5rem;
	border-bottom: 1px solid var(--rs-ice-blue-border);
}

@media (min-width: 768px) {
	.rs-ba-hero {
		min-height: 16rem;
		padding: 4rem 0 3.25rem;
	}
}

.rs-ba-hero--has-image {
	background: var(--rs-slate-blue-dark);
	border-bottom: none;
}

.rs-ba-hero__media {
	position: absolute;
	inset: 0;
	background-image: var(--rs-ba-hero-image);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	transform: scale(1.02);
}

.rs-ba-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgba(17, 37, 51, 0.88) 0%,
		rgba(17, 37, 51, 0.55) 55%,
		rgba(17, 37, 51, 0.35) 100%
	);
}

.rs-ba-hero__inner {
	position: relative;
	z-index: 1;
	width: 100%;
}

.rs-ba-hero__breadcrumbs {
	margin-bottom: 0.85rem;
}

.rs-ba-hero .rs-breadcrumbs {
	margin: 0;
	font-size: 0.8125rem;
	font-weight: 400;
	color: #64748b;
	line-height: 1.5;
}

.rs-ba-hero .rs-breadcrumbs a {
	color: var(--rs-slate-blue);
	text-decoration: none;
}

.rs-ba-hero .rs-breadcrumbs a:hover,
.rs-ba-hero .rs-breadcrumbs a:focus {
	text-decoration: underline;
}

.rs-ba-hero--has-image .rs-breadcrumbs {
	color: rgba(255, 255, 255, 0.72);
}

.rs-ba-hero--has-image .rs-breadcrumbs a {
	color: #fff;
}

.rs-ba-hero__title {
	margin: 0;
	font-family: var(--rs-font-serif);
	font-size: clamp(2.25rem, 4.5vw, 3.25rem);
	font-weight: 600;
	color: var(--rs-slate-blue);
	line-height: 1.15;
}

.rs-ba-hero--has-image .rs-ba-hero__title {
	color: #fff;
}

.rs-ba-hero__subtitle {
	margin: 0.85rem 0 0;
	max-width: 36rem;
	font-size: 1.05rem;
	font-weight: 300;
	color: #475569;
	line-height: 1.65;
}

.rs-ba-hero--has-image .rs-ba-hero__subtitle {
	color: rgba(255, 255, 255, 0.85);
}

/* Gallery sits on ice-blue like Home results */
.page-template-template-before-after .rs-ba-results {
	border-top: none;
}

.page-template-template-before-after .scroll-top {
	display: none !important;
}
