/* Site Builder — Law Firm Case Studies widget styles */

.sb-lf-cs {
	position: relative;
	width: 100%;
	background-color: #ffffff;
	font-family: var(--sb-font-sans);
}

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

.sb-lf-cs a {
	text-decoration: none;
}

.sb-lf-stretch {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.sb-lf-cs-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 96px 48px;
}

/* Header */
.sb-lf-cs-header {
	margin-bottom: 56px;
}

.sb-lf-cs-eyebrow {
	color: #b6912c;
	font-family: var(--sb-font-serif);
	font-style: italic;
	font-weight: 600;
	font-size: 14px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	margin-bottom: 12px;
}

.sb-lf-cs-heading {
	margin: 0;
	max-width: 640px;
	color: #151312;
	font-family: var(--sb-font-serif);
	font-weight: 700;
	font-size: clamp(28px, 3.2vw, 40px);
	line-height: 1.25;
}

.sb-lf-cs-description {
	margin: 16px 0 0;
	max-width: 560px;
	color: #6b6863;
	font-size: 16px;
	line-height: 1.7;
}

/* Grid */
.sb-lf-cs-grid {
	--sb-cs-cols: 3;
	display: grid;
	grid-template-columns: repeat(var(--sb-cs-cols), 1fr);
	gap: 40px;
}

.sb-lf-cs-card {
	--sb-cs-accent: #c9a227;
	--sb-cs-accent-rgb: 201, 162, 39;
	display: flex;
	flex-direction: column;
}

.sb-lf-cs-card-media {
	position: relative;
	display: block;
}

.sb-lf-cs-image {
	display: block;
	height: 340px;
	background-size: cover;
	background-position: center;
	transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.sb-lf-cs-card-media {
	overflow: hidden;
}

.sb-lf-cs-card:hover .sb-lf-cs-image {
	transform: scale(1.07);
}

/* Overlapping info strip — pulled up over the image's bottom edge, inset
   from the left, so it reads as a card layered on top of the photo. */
.sb-lf-cs-strip {
	position: relative;
	z-index: 1;
	display: block;
	width: 88%;
	margin: -44px 0 0 auto;
	padding: 20px 22px;
	background: #ffffff;
	box-shadow: 0 18px 36px -18px rgba(21, 19, 18, 0.35);
	transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.sb-lf-cs-card:hover .sb-lf-cs-strip {
	transform: translateY(-4px);
	box-shadow: 0 26px 46px -18px rgba(var(--sb-cs-accent-rgb), 0.45);
}

.sb-lf-cs-strip::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 0;
	height: 3px;
	background: var(--sb-cs-accent);
	transition: width 0.4s ease;
}

.sb-lf-cs-card:hover .sb-lf-cs-strip::before {
	width: 100%;
}

.sb-lf-cs-title {
	display: block;
	color: #151312;
	font-family: var(--sb-font-serif);
	font-weight: 700;
	font-size: 18px;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	transition: color 0.3s ease;
}

.sb-lf-cs-card:hover .sb-lf-cs-title {
	color: var(--sb-cs-accent);
}

.sb-lf-cs-subtitle {
	display: block;
	margin-top: 6px;
	color: #8a8680;
	font-size: 14.5px;
}

/* Read More bar */
.sb-lf-cs-btn {
	display: block;
	margin-top: 18px;
	padding: 16px 22px;
	background: var(--sb-cs-accent);
	color: #151312;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-align: center;
	position: relative;
	overflow: hidden;
	transition: color 0.3s ease;
}

.sb-lf-cs-btn::before {
	content: "";
	position: absolute;
	inset: 0;
	background: #151312;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
	z-index: 0;
}

.sb-lf-cs-btn span,
.sb-lf-cs-btn {
	position: relative;
}

.sb-lf-cs-btn:hover {
	color: #ffffff;
}

.sb-lf-cs-btn:hover::before {
	transform: scaleX(1);
}

/* Scroll-reveal utility — fails open by default (see law-firm-insights.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 groups. */
.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(32px);
}

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

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

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

/* Responsive */
@media (max-width: 900px) {
	.sb-lf-cs-grid {
		--sb-cs-cols: 2 !important;
	}
}

@media (max-width: 640px) {
	.sb-lf-cs-inner {
		padding: 64px 24px;
	}

	.sb-lf-cs-grid {
		--sb-cs-cols: 1 !important;
		gap: 36px;
	}

	.sb-lf-cs-image {
		height: 280px;
	}

	.sb-lf-cs-strip {
		width: 92%;
		margin-top: -32px;
	}
}
