/* Site Builder — Law Firm Intro Statement widget styles */

.sb-lf-intro {
	position: relative;
	width: 100%;
	background-color: #0a1730;
	padding: 64px 48px;
	font-family: var(--sb-font-sans);
	box-sizing: border-box;
	overflow: hidden;
	background-image: var(--sb-weave);
}

.sb-lf-intro * {
	box-sizing: border-box;
}

/* Soft glow in the corner, echoing the reference design without needing an
   uploaded background image. */
.sb-lf-intro::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 88% 92%, rgba(182, 145, 44, 0.16), transparent 55%);
	pointer-events: none;
}

.sb-lf-intro-layout {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 48px;
}

.sb-lf-intro-inner {
	flex: 1 1 0%;
	order: 1;
	max-width: 620px;
	margin: 0 auto;
	min-width: 0;
}

.sb-lf-intro-align-left .sb-lf-intro-inner {
	margin: 0;
}

.sb-lf-intro-align-center .sb-lf-intro-inner {
	margin: 0 auto;
	text-align: center;
}

/* Image column — sits after the text ("right") by default; the "left"
   position control just reorders it visually via flex `order`, keeping the
   text first in the actual markup for reading/screen-reader order. */
.sb-lf-intro-image {
	position: relative;
	flex: 0 0 40%;
	order: 2;
	height: 460px;
	border-radius: 8px;
	overflow: hidden;
}

.sb-lf-intro-image-pos-left .sb-lf-intro-image {
	order: 0;
}

.sb-lf-intro-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sb-lf-intro-image-overlay-yes .sb-lf-intro-image::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(10, 23, 48, 0.35);
	pointer-events: none;
}

.sb-lf-intro-image-grayscale-yes .sb-lf-intro-image img {
	filter: grayscale(0.85) contrast(1.05);
}

.sb-lf-intro-align-center .sb-lf-intro-divider {
	justify-content: center;
}

.sb-lf-intro-align-center .sb-lf-intro-tags {
	justify-content: center;
}

/* Divider (line — diamond — line) */
.sb-lf-intro-divider {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 28px;
	margin-bottom: 28px;
}

.sb-lf-intro-divider-line {
	flex: 1 1 auto;
	height: 1px;
	background: #b6912c;
}

.sb-lf-intro-diamond {
	flex: none;
	width: 8px;
	height: 8px;
	background: #b6912c;
	transform: rotate(45deg);
}

/* Heading */
.sb-lf-intro-heading {
	margin: 0;
	font-weight: 600;
	font-size: clamp(28px, 3.4vw, 40px);
	line-height: 1.22;
}

.sb-lf-intro-line {
	display: block;
}

.sb-lf-intro-line + .sb-lf-intro-line {
	margin-top: 6px;
}

.sb-lf-intro-line-primary {
	color: #ffffff;
}

.sb-lf-intro-line-accent {
	color: #c9a227;
}

.sb-lf-intro-highlight {
	position: relative;
	display: inline-block;
	color: #c9a227;
	font-weight: 700;
	padding-bottom: 0.14em;
}

.sb-lf-intro-highlight-underline {
	position: absolute;
	left: -4%;
	bottom: -0.28em;
	width: 108%;
	height: 0.5em;
	color: #c9a227;
	overflow: visible;
}

/* Hand-drawn "strike" — fails open by default (see law-firm-intro-statement.js):
   fully drawn by default (dashoffset 0, safe if JS never runs), JS adds
   `sb-lf-pending` up front to hide it, then swaps to `sb-lf-visible` once
   the heading scrolls into view, which is what actually plays the draw-in
   transition. `pathLength="1"` on the SVG path makes a dasharray/dashoffset
   of 1 span the whole stroke regardless of its actual curve geometry. */
.sb-lf-intro-highlight-underline path {
	stroke-dasharray: 1;
	stroke-dashoffset: 0;
}

.sb-lf-intro-highlight-underline.sb-lf-pending path {
	stroke-dashoffset: 1;
}

.sb-lf-intro-highlight-underline.sb-lf-visible path {
	transition: stroke-dashoffset 0.9s cubic-bezier(0.65, 0.05, 0.36, 1);
	transition-delay: 0.35s;
	stroke-dashoffset: 0;
}

/* Practice tags */
.sb-lf-intro-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin-top: 24px;
	font-weight: 700;
	font-size: 16px;
	color: #c9a227;
}

.sb-lf-intro-tags-sep {
	color: rgba(201, 162, 39, 0.5);
}

/* Body */
.sb-lf-intro-body {
	margin-top: 22px;
}

.sb-lf-intro-body p {
	margin: 0;
	color: rgba(255, 255, 255, 0.78);
	font-size: 16px;
	line-height: 1.65;
}

.sb-lf-intro-body p + p {
	margin-top: 16px;
}

.sb-lf-intro-footnote {
	margin: 22px 0 0;
	color: #c9a227;
	font-weight: 600;
	font-size: 15px;
}

/* Scroll-reveal utility — fails open by default (see law-firm-intro-statement.js):
   `.sb-lf-reveal` alone is always fully visible; JS only adds `.sb-lf-pending`
   to items currently off-screen, then flips them to `.sb-lf-visible` as they
   scroll into view. `--sb-delay` staggers the sequence. */
.sb-lf-reveal {
	transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
	transition-delay: var(--sb-delay, 0s);
}

.sb-lf-reveal.sb-lf-pending {
	opacity: 0;
	transform: translateY(24px);
}

.sb-lf-reveal.sb-lf-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	.sb-lf-intro * {
		animation-duration: 0.001ms !important;
		transition-duration: 0.001ms !important;
	}

	.sb-lf-reveal.sb-lf-pending {
		opacity: 1;
		transform: none;
	}

	.sb-lf-intro-highlight-underline.sb-lf-pending path {
		stroke-dashoffset: 0;
	}
}

/* Responsive */
@media (max-width: 780px) {
	.sb-lf-intro-layout {
		flex-direction: column;
		align-items: stretch;
	}

	.sb-lf-intro-inner {
		max-width: none;
	}

	.sb-lf-intro-image {
		flex-basis: auto;
		width: 100%;
		height: 320px;
	}
}

@media (max-width: 560px) {
	.sb-lf-intro {
		padding: 44px 24px;
	}

	.sb-lf-intro-heading {
		font-size: 26px;
	}

	.sb-lf-intro-image {
		height: 260px;
	}
}
