
.rooth-banner-wrapper {
	display: flex;
	align-items: stretch;
	flex-wrap: nowrap;
	background: #1d4657;
	overflow: hidden;
	color: #fff;
	margin-bottom: 30px;
}

.rooth-banner-left {
	flex: 1 1 40%;
	display: flex;
	flex-direction: column;
	gap: 0;
	height: auto;
	align-self: stretch;
}

.rooth-left-top {
	position: relative;
	min-height: 360px;
	border: 2px solid #fff;
	overflow: hidden;
	flex: 1 1 auto;
}

.rooth-parallax-bg {
	position: absolute;
	top: -10%;
	left: 0;
	width: 100%;
	height: 120%;
	background: url("https://cdn-ileijbm.nitrocdn.com/upnQHNLnybUaXFaQPerlyTPZJOnXQWPn/assets/images/optimized/rev-95b82cc/roothlawfirm.com/wp-content/themes/roothlawfirm/images/cta-background.jpg") center center/cover no-repeat;
	will-change: transform;
	z-index: 1;
}

.rooth-portrait-wrap {
	position: relative;
	z-index: 2;
	display: flex;
	justify-content: center;
	align-items: flex-end;
	height: 100%;
	overflow: visible;
}

.rooth-portrait {
	width: 95%;
	align-self: flex-end;
	object-fit: contain;
	margin-bottom: -25px;
	bottom: -20px;
	position: relative;
	min-height: 80%;
}

.rooth-left-brand {
	background: #7b9aaa;
	padding: 15px;
	text-align: center;
	margin-top: auto;
}

.rooth-left-brand img {
	margin-bottom: 5px;
	max-width: 80%;
}

.rooth-banner-right {
	flex: 1 1 60%;
	padding: 20px 40px 30px;
	background: url("https://cdn-ileijbm.nitrocdn.com/upnQHNLnybUaXFaQPerlyTPZJOnXQWPn/assets/images/optimized/rev-95b82cc/roothlawfirm.com/wp-content/themes/roothlawfirm/images/R.png");
}

.rooth-banner-right h3 {
	font-size: 26px;
	font-weight: 700;
	margin-bottom: 35px;
	padding-bottom: 15px;
	color: #fff;
	border-bottom: 1px solid #fff;
}

.rooth-banner-right p {
	font-size: 18px;
	line-height: 1.6;
}

.rooth-banner-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #7b9aaa;
	color: #fff;
	text-decoration: none;
	padding: 14px 22px;
	border-radius: 30px;
	font-weight: 700;
	margin-top: 25px;
}

.rooth-banner-btn img {
	height: 18px;
}

/* Responsive layout for mobile */
@media (max-width: 991px) {
	.rooth-banner-wrapper {
		flex-direction: column-reverse;
		border-radius: 0;
	}
	
	.rooth-banner-left, .rooth-banner-right {
		flex: 1 1 100%;
		width: 100%;
	}
	
	.rooth-banner-right {
		padding: 20px;
		text-align: center;
	}
	
	.rooth-banner-right h3 {
		font-size: 26px;
	}
	
	.rooth-banner-right p {
		font-size: 16px;
	}
	
	.rooth-portrait {
		width: 85%;
		margin-bottom: -15px;
	}
	
	.rooth-banner-btn {
		font-size: 14px;
		margin-bottom: 25px;
	}
}

/* === FINAL COMPACT BANNER (portrait overlap + two-column layout) === */
.rooth-banner-compact.overlap-layout {
	position: relative;
	display: flex;
	background: #2f4d5b;
	color: #fff;
	width: 100%;
	overflow: visible;
	margin: 100px auto 30px;
}

.rooth-banner-compact-inner {
	display: flex;
	align-items: stretch;
	justify-content: flex-end;
	width: 100%;
	position: relative;
}

/* Left side with overlapping image */
.compact-left {
	position: absolute;
	left: 0;
	/* overlap outside the banner */
	bottom: 0;
	z-index: 2;
	height: 100%;
	display: flex;
	align-items: flex-end;
}

.compact-left .compact-portrait {
	height: 270px;
	object-fit: cover;
	width: 215px;
	object-position: top;
}

/* Right side (main content area) */
.compact-right {
	width: 100%;
	margin-left: auto;
	background: #2f4d5b;
	display: flex;
	align-items: center;
	padding: 0;
	box-sizing: border-box;
}

.compact-content {
	width: 100%;
}

.compact-title {
	font-size: 32px;
	font-weight: 600;
	line-height: 1.2;
	color: #fff;
	margin: 0;
	padding-left: 30%;
	padding-top: 20px;
	padding-bottom: 20px;
}

/* Bottom row: logo + button */
.compact-bottom-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding-left: 30%;
	background: #759aab;
}

.compact-logo {
	background: #7b9aaa;
	display: flex;
	align-items: center;
	justify-content: center;
}

.compact-logo img {
	max-height: 40px;
}

.compact-button {
	background: #d7dadb;
}

.compact-button .rooth-banner-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: #1d4657;
	font-weight: 700;
	font-size: 18px;
	text-decoration: none;
	margin: 0;
	background: transparent;
}

.compact-button .rooth-banner-btn img {
	height: 22px;
}

/* === MOBILE === */
@media (max-width: 991px) {
	.rooth-banner-compact.overlap-layout {
		flex-direction: column;
		margin: 30px auto;
	}
	
	.compact-left {
		position: relative;
		left: 0;
		justify-content: center;
	}
	
	.compact-right {
		width: 100%;
		padding: 0px;
		text-align: center;
	}
	
	.compact-bottom-row {
		flex-direction: column;
		gap: 15px;
		padding-left: 0;
	}
	
	.compact-logo, .compact-button {
		width: 100%;
		justify-content: center;
	}
	
	.compact-title {
		font-size: 22px;
		background-color: #759aab;
		color: #1d4657;
		padding: 10px 10px;
	}
	
	.compact-logo img {
		max-height: 30px;
	}
	
	.rooth-banner-compact-inner {
		flex-direction: column;
	}
}

/* === CENTERED BANNER (title + optional phone button) === */
.rooth-banner-centered {
	background: #1d4d5f;
	padding: 28px 20px 36px;
	margin-bottom: 30px;
}

.rooth-banner-centered-inner {
	max-width: 980px;
	margin: 0 auto;
	text-align: center;
}

.rooth-banner-centered-title {
	color: #fff;
	font-size: 32px;
	font-weight: 700;
	line-height: 1.1;
	margin: 0;
	text-transform: uppercase;
}

.rooth-banner-centered-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin-top: 22px;
	padding: 10px 24px;
	background: #d0d2d5;
	color: #1d4d5f;
	font-size: 26px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
}

.rooth-banner-centered-btn img {
	width: 28px;
	height: 28px;
}

@media (max-width: 991px) {
	.rooth-banner-centered-title {
		font-size: 26px;
	}
	
	.rooth-banner-centered {
		padding: 22px 14px 24px;
	}
	
	.rooth-banner-centered-btn {
		width: 100%;
		max-width: 560px;
		padding: 14px 18px;
		font-size: 18px;
	}
}

/* === INLINE LOGO BANNER (logo + title + optional phone button) === */
.rooth-banner-inline-logo {
	display: flex;
	align-items: center;
	gap: 30px;
	background: #1d4d5f;
	padding: 0px 30px 0px 0px;
	margin-bottom: 30px;
}

.rooth-banner-inline-logo-mark {
	background: linear-gradient(90deg, #fff 0 50%, #1d4d5f 50% 100%);
	width: 104px;
	height: 104px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 84px;
	padding: 15px;
}

.rooth-banner-inline-logo-mark img {
	width: 64px;
	height: auto;
	border: 5px solid #fff;
}

.rooth-banner-inline-logo-title {
	margin: 0;
	color: #fff;
	text-transform: uppercase;
	font-size: 24px;
	line-height: 1.05;
	font-weight: 700;
	flex: 1 1 auto;
}

.rooth-banner-inline-logo-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	text-decoration: none;
	background: #dfdfdf;
	color: #1d4d5f;
	font-size: 22px;
	font-weight: 700;
	line-height: 1;
	padding: 10px 24px;
	white-space: nowrap;
}

.rooth-banner-inline-logo-btn img {
	width: 24px;
	height: 24px;
}

@media (max-width: 991px) {
	.rooth-banner-inline-logo {
		flex-wrap: wrap;
		justify-content: center;
		gap: 16px;
		padding: 18px 14px;
	}
	
	.rooth-banner-inline-logo-mark {
		width: 72px;
		height: 72px;
		flex-basis: 72px;
	}
	
	.rooth-banner-inline-logo-mark img {
		width: 54px;
	}
	
	.rooth-banner-inline-logo-mark {
		background: transparent;
	}
	
	.rooth-banner-inline-logo-title {
		font-size: 24px;
		text-align: center;
		flex: 1 1 100%;
	}
	
	.rooth-banner-inline-logo-btn {
		width: 100%;
		max-width: 560px;
		font-size: 26px;
		padding: 12px 16px;
	}
	
	.rooth-banner-inline-logo-btn img {
		width: 34px;
		height: 34px;
	}
}

/* === PATTERN BANNER (left image + title + optional phone CTA) === */
.rooth-banner-patterned {
	display: flex;
	position: relative;
	align-items: stretch;
	gap: 24px;
	margin-bottom: 30px;
	background-color: #145675;
	background-image: url("https://cdn-ileijbm.nitrocdn.com/upnQHNLnybUaXFaQPerlyTPZJOnXQWPn/assets/images/optimized/rev-95b82cc/roothlawfirm.com/wp-content/themes/roothlawfirm/images/patterned-shortcode-background.jpg");
	overflow: hidden;
}

.rooth-banner-patterned.nitro-lazy {
	background-image: none !important;
}

.rooth-banner-patterned-figure {
	flex: 0 0 230px;
	min-height: 240px;
	display: flex;
	align-items: flex-end;
}

.rooth-banner-patterned-figure img {
	width: 100%;
	height: 100%;
	object-fit: inherit;
	object-position: center top;
}

.rooth-banner-patterned-content {
	flex: 1 1 auto;
	padding: 30px 28px 30px 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.rooth-banner-patterned-title {
	margin: 0;
	color: #fff;
	text-transform: uppercase;
	font-size: 28px;
	line-height: 1.05;
	font-weight: 700;
}

.rooth-banner-patterned-phone {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: #fff;
	text-decoration: none;
	font-size: 22px;
	font-weight: 700;
	line-height: 1;
	margin-top: 20px;
}

.rooth-banner-patterned-phone img {
	width: 28px;
	height: 28px;
}

.rooth-banner-patterned-logo {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 84px;
	height: 84px;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 8px;
}

.rooth-banner-patterned-logo img {
	width: 100%;
	height: auto;
}

@media (max-width: 991px) {
	.rooth-banner-patterned-title {
		font-size: 24px;
	}
	
	.rooth-banner-patterned {
		flex-direction: column;
		gap: 0;
		background-size: cover;
	}
	
	.rooth-banner-patterned-figure {
		flex-basis: auto;
		min-height: 190px;
		justify-content: center;
	}
	
	.rooth-banner-patterned-content {
		padding: 18px 14px 22px;
		text-align: center;
	}
	
	.rooth-banner-patterned-phone {
		justify-content: center;
		font-size: 22px;
	}
	
	.rooth-banner-patterned-logo {
		display: none;
	}
}

/* === SPLIT LOGO BANNER (left content + right logo panel) === */
.rooth-banner-split-logo {
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	background: #1d4d5f;
	margin-bottom: 30px;
	overflow: hidden;
}

.rooth-banner-split-logo-content {
	flex: 1 1 auto;
	padding: 44px 44px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.rooth-banner-split-logo-title {
	margin: 0;
	color: #fff;
	text-transform: uppercase;
	font-size: 28px;
	line-height: 1.06;
	font-weight: 700;
	max-width: 90%;
}

.rooth-banner-split-logo-phone {
	margin-top: 30px;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: #fff;
	text-decoration: none;
	font-size: 26px;
	font-weight: 700;
	line-height: 1;
}

.rooth-banner-split-logo-phone img {
	width: 30px;
	height: 30px;
}

.rooth-banner-split-logo-mark {
	flex: 0 0 150px;
	width: 150px;
	background: #1d4d5e;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 18px;
}

.rooth-banner-split-logo-mark img {
	width: 100%;
	height: auto;
	max-width: 100px;
	border: 5px solid #fff;
}

@media (max-width: 991px) {
	.rooth-banner-split-logo {
		flex-direction: column-reverse;
	}
	
	.rooth-banner-split-logo-content {
		padding: 22px 14px 24px;
		text-align: center;
	}
	
	.rooth-banner-split-logo-title {
		max-width: 100%;
		font-size: 24px;
	}
	
	.rooth-banner-split-logo-phone {
		justify-content: center;
		font-size: 26px;
		margin-top: 18px;
	}
	
	.rooth-banner-split-logo-phone img {
		width: 30px;
		height: 30px;
	}
	
	.rooth-banner-split-logo-mark {
		width: 100%;
		flex-basis: auto;
	}
	
	.rooth-banner-split-logo-mark img {
		width: 40px;
	}
}

/* === CONSULT BANNER (left image + right content + overlap logo) === */
.rooth-banner-consult {
	position: relative;
	display: flex;
	align-items: stretch;
	background: #1d4d5f;
	margin-bottom: 30px;
	overflow: hidden;
}

.rooth-banner-consult-image {
	flex: 0 0 50%;
	min-height: 430px;
}

.rooth-banner-consult-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

.rooth-banner-consult-content {
	flex: 0 0 50%;
	padding: 56px 35px 34px 74px;
	color: #fff;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.rooth-banner-consult-title {
	margin: 0;
	color: #fff;
	text-transform: uppercase;
	font-size: 26px;
	line-height: 1.15;
	font-weight: 700;
}

.rooth-banner-consult-description {
	margin: 24px 0 0 !important;
	color: white;
	font-size: 18px;
	line-height: 1.5;
}

.rooth-banner-consult-phone {
	margin-top: 34px;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: #fff;
	background: #84a9bb;
	border-radius: 999px;
	padding: 10px 20px;
	font-size: 26px;
	font-weight: 700;
	line-height: 1;
	width: fit-content;
}

.rooth-banner-consult-phone img {
	width: 23px;
	height: 23px;
}

.rooth-banner-consult-logo {
	position: absolute;
	left: calc(50% - 44px);
	top: 42%;
	width: 88px;
	height: 88px;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 6px;
}

.rooth-banner-consult-logo img {
	width: 100%;
	height: auto;
}

@media (max-width: 991px) {
	.rooth-banner-consult {
		flex-direction: column;
	}
	
	.rooth-banner-consult-image, .rooth-banner-consult-content {
		flex-basis: auto;
		width: 100%;
	}
	
	.rooth-banner-consult-image {
		min-height: 250px;
	}
	
	.rooth-banner-consult-content {
		padding: 22px 14px 26px;
		text-align: center;
	}
	
	.rooth-banner-consult-title {
		font-size: 24px;
	}
	
	.rooth-banner-consult-description {
		margin-top: 14px;
		font-size: 18px;
		max-width: 100%;
	}
	
	.rooth-banner-consult-phone {
		margin: 20px auto 0;
		font-size: 21px;
	}
	
	.rooth-banner-consult-logo {
		left: 50%;
		transform: translateX(-50%);
		bottom: auto;
		top: 220px;
		width: 70px;
		height: 70px;
		top: 40%;
	}
}
