/* Site Builder — Law Firm Practice Areas widget styles */

.sb-lf-pa {
	position: relative;
	width: 100%;
	background-color: #0a0a14;
	overflow: hidden;
	font-family: var(--sb-font-sans);
}

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

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

/* Full-bleed utility (shared class name with the header/about widgets) */
.sb-lf-stretch {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.sb-lf-pa-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 0.35;
	pointer-events: none;
}

.sb-lf-pa-overlay {
	position: absolute;
	inset: 0;
	background: rgba(10, 10, 20, 0.75);
	pointer-events: none;
}

.sb-lf-pa-inner {
	position: relative;
	z-index: 1;
	max-width: 1280px;
	margin: 0 auto;
	padding: 100px 48px;
}

/* Header */
.sb-lf-pa-header {
	text-align: center;
	max-width: 720px;
	margin: 0 auto 72px;
}

.sb-lf-pa-eyebrow {
	color: #c9a227;
	font-family: var(--sb-font-serif);
	font-style: italic;
	font-weight: 600;
	font-size: 14px;
	letter-spacing: var(--sb-hero-eyebrow-tracking);
	text-transform: uppercase;
	margin-bottom: 14px;
}

/* Page hero — matched to the homepage hero headline. */
.sb-lf-pa-heading {
	margin: 0;
	color: #ffffff;
	font-family: var(--sb-font-serif);
	text-transform: uppercase;
	font-weight: var(--sb-hero-title-weight);
	font-size: var(--sb-hero-title-size);
	line-height: var(--sb-hero-title-leading);
	letter-spacing: var(--sb-hero-title-tracking);
}

.sb-lf-pa-description {
	margin: 16px 0 0;
	color: rgba(255, 255, 255, 0.65);
	font-size: 16px;
	line-height: 1.7;
}

/* Items — each practice area is its own full section (image + text),
   alternating sides, rather than a grid of small cards. Each item carries
   its own --sb-pa-accent / --sb-pa-accent-rgb custom properties (inline,
   from the Accent Color field) that everything below is colored from —
   this class only supplies the fallback if an item's color is unset. */
.sb-lf-pa-items {
	--sb-pa-accent: #c9a227;
	--sb-pa-accent-rgb: 201, 162, 39;
	display: flex;
	flex-direction: column;
}

.sb-lf-pa-item {
	scroll-margin-top: 100px;
}

.sb-lf-pa-item + .sb-lf-pa-item {
	margin-top: 64px;
	padding-top: 64px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* `stretch`, not `center`: each item's text column now runs to a bullet list
   plus a closing note, so a fixed-height image would float in the middle of a
   much taller row. The media column matches the content column's height and
   the image fills it, falling back to its own min-height when the text is
   short. */
.sb-lf-pa-item {
	display: flex;
	align-items: stretch;
	gap: 56px;
}

/* Directional entrance: left-image items slide in from the left, right-image
   items from the right, instead of the generic reveal's straight translateY —
   pairs with the shared `.sb-lf-reveal.sb-lf-visible` rule (below) which
   resets the transform to none once revealed. */
.sb-lf-pa-item.sb-lf-pa-item-pos-left.sb-lf-pending {
	transform: translateX(-56px);
}

.sb-lf-pa-item.sb-lf-pa-item-pos-right.sb-lf-pending {
	transform: translateX(56px);
}

/* "Left"/"right" are about where the IMAGE sits; the content column keeps
   the same DOM order either way (via flex `order`) so reading order for
   screen readers stays consistent regardless of visual position. */
.sb-lf-pa-item-media {
	order: 1;
	flex-basis: 44%;
	flex-shrink: 0;
}

.sb-lf-pa-item-content {
	order: 2;
	flex: 1 1 auto;
	min-width: 0;
}

.sb-lf-pa-item-pos-right .sb-lf-pa-item-media {
	order: 2;
}

.sb-lf-pa-item-pos-right .sb-lf-pa-item-content {
	order: 1;
}

/* Media column: ambient glow + large index number behind the image */
.sb-lf-pa-item-media {
	position: relative;
	display: flex;
}

@keyframes sbPaPulse {
	0%, 100% { transform: scale(1); opacity: 0.55; }
	50% { transform: scale(1.12); opacity: 0.85; }
}

.sb-lf-pa-item-glow {
	display: none;
	position: absolute;
	inset: -10%;
	z-index: 0;
	background: radial-gradient(circle at 30% 30%, rgba(var(--sb-pa-accent-rgb), 0.4), transparent 65%);
	filter: blur(40px);
	pointer-events: none;
	animation: sbPaPulse 7s ease-in-out infinite;
}

.sb-lf-pa-glow-yes .sb-lf-pa-item-glow {
	display: block;
}

.sb-lf-pa-item-number {
	display: none;
	position: absolute;
	top: -34px;
	left: -14px;
	z-index: 1;
	font-family: var(--sb-font-serif);
	font-weight: 700;
	font-size: 96px;
	line-height: 1;
	color: rgba(var(--sb-pa-accent-rgb), 0.18);
	pointer-events: none;
	transition: color 0.4s ease;
}

.sb-lf-pa-number-yes .sb-lf-pa-item-number {
	display: block;
}

.sb-lf-pa-item:hover .sb-lf-pa-item-number {
	color: rgba(var(--sb-pa-accent-rgb), 0.32);
}

.sb-lf-pa-item-pos-right .sb-lf-pa-item-number {
	left: auto;
	right: -14px;
}

.sb-lf-pa-item-image {
	position: relative;
	z-index: 2;
	flex: 1 1 auto;
	min-height: 420px;
	border-radius: 12px;
	background-size: cover;
	background-position: center;
	box-shadow: 0 30px 60px -22px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(var(--sb-pa-accent-rgb), 0.18);
	transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease;
}

.sb-lf-pa-item:hover .sb-lf-pa-item-image {
	transform: scale(1.03);
	box-shadow: 0 34px 70px -20px rgba(var(--sb-pa-accent-rgb), 0.45), 0 0 0 1px rgba(var(--sb-pa-accent-rgb), 0.4);
}

/* Corner accents — small L-shaped brackets that draw in on hover */
.sb-lf-pa-item-media::before,
.sb-lf-pa-item-media::after {
	content: "";
	display: none;
	position: absolute;
	z-index: 3;
	width: 34px;
	height: 34px;
	border-color: var(--sb-pa-accent);
	border-style: solid;
	border-width: 0;
	opacity: 0;
	transition: opacity 0.4s ease, transform 0.4s ease;
	pointer-events: none;
}

.sb-lf-pa-corners-yes .sb-lf-pa-item-media::before,
.sb-lf-pa-corners-yes .sb-lf-pa-item-media::after {
	display: block;
}

.sb-lf-pa-item-media::before {
	top: -12px;
	left: -12px;
	border-top-width: 3px;
	border-left-width: 3px;
	transform: translate(8px, 8px);
}

.sb-lf-pa-item-media::after {
	bottom: -12px;
	right: -12px;
	border-bottom-width: 3px;
	border-right-width: 3px;
	transform: translate(-8px, -8px);
}

.sb-lf-pa-item:hover .sb-lf-pa-item-media::before,
.sb-lf-pa-item:hover .sb-lf-pa-item-media::after {
	opacity: 1;
	transform: translate(0, 0);
}

/* ---------------------------------------------------------------------
   Content column — animated marks

   These replaced the circular Font Awesome badge. Each mark is one inline
   SVG on a 96x72 grid (see mark_svg() in the widget), drawn in the item's
   accent color with no plate or ring behind it. Every animation below is
   written as a short gesture followed by a long hold, so three of them
   running down a page read as occasional movement rather than a loop that
   never stops competing with the copy.

   Motion is opt-out twice over: the widget's "Animate Marks" switch gates
   it behind `.sb-lf-pa-anim-yes`, and the reduced-motion block at the
   bottom of this file cancels it outright. Each mark's *static* pose is
   therefore the base rule — the folder sits open, the gavel rests on the
   block — so switching motion off leaves a finished drawing, not a
   half-built one.
   --------------------------------------------------------------------- */
.sb-lf-pa-item-mark {
	display: block;
	width: auto;
	height: 72px;
	margin: 0 0 22px;
	color: var(--sb-pa-accent);
	overflow: visible;
}

/* --- Family: three figures walking, hands joined ------------------- */
.sb-lf-mark-ground {
	opacity: 0.32;
}

@keyframes sbPaWalk {
	0%, 100% { transform: translateY(0) rotate(0deg); }
	25% { transform: translateY(-1.6px) rotate(-1deg); }
	50% { transform: translateY(0) rotate(0deg); }
	75% { transform: translateY(-1.6px) rotate(1deg); }
}

@keyframes sbPaChildBob {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-1.2px); }
}

.sb-lf-pa-anim-yes .sb-lf-mark-walk {
	transform-box: view-box;
	transform-origin: 48px 66px;
	animation: sbPaWalk 3.6s ease-in-out infinite;
}

.sb-lf-pa-anim-yes .sb-lf-mark-child {
	transform-box: view-box;
	transform-origin: 48px 60px;
	animation: sbPaChildBob 1.8s ease-in-out infinite;
}

/* --- Criminal: the gavel lifts, then slams onto the block ---------- */
/* Lift is mostly a raise, only slightly a swing: the head is 52 units wide,
   so rotating it far enough to look like a backswing drags its trailing
   corner straight through the sounding block. Pairing a small angle with a
   vertical lift keeps the head clear of the block all the way round. */
@keyframes sbPaGavel {
	0% { transform: translateY(0) rotate(0deg); }
	10% { transform: translateY(-13px) rotate(-15deg); }
	20% { transform: translateY(-13px) rotate(-15deg); }
	27% { transform: translateY(0) rotate(0deg); }
	31% { transform: translateY(-4px) rotate(-4deg); }
	36%, 100% { transform: translateY(0) rotate(0deg); }
}

@keyframes sbPaImpact {
	0%, 25% { opacity: 0; transform: scale(0.75); }
	29% { opacity: 1; transform: scale(1); }
	43%, 100% { opacity: 0; transform: scale(1.15); }
}

.sb-lf-mark-impact {
	opacity: 0;
}

.sb-lf-pa-anim-yes .sb-lf-mark-gavel {
	transform-box: view-box;
	transform-origin: 48px 8px;
	animation: sbPaGavel 2.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.sb-lf-pa-anim-yes .sb-lf-mark-impact {
	transform-box: view-box;
	transform-origin: 48px 56px;
	animation: sbPaImpact 2.6s ease-out infinite;
}

/* --- Other matters: the folder opens and its sheets fan up --------- */
.sb-lf-mark-flap,
.sb-lf-mark-sheet {
	transform-box: view-box;
}

.sb-lf-mark-flap {
	transform-origin: 48px 66px;
	transform: scaleY(0.62);
}

/* The sheets run well below the flap's open edge (y=52.4) on purpose — a
   sheet whose bottom stopped short of it would show its own base line and
   fanned corners floating in the folder's mouth. */
.sb-lf-mark-sheet {
	transform-origin: 48px 58px;
}

.sb-lf-mark-sheet-c { transform: translateY(-8px); }
.sb-lf-mark-sheet-l { transform: translateY(-3px) rotate(-14deg); }
.sb-lf-mark-sheet-r { transform: translateY(-3px) rotate(14deg); }

@keyframes sbPaFlap {
	0%, 12% { transform: scaleY(1); }
	38%, 70% { transform: scaleY(0.62); }
	88%, 100% { transform: scaleY(1); }
}

@keyframes sbPaSheetC {
	0%, 12% { opacity: 0; transform: translateY(14px); }
	38%, 70% { opacity: 1; transform: translateY(-8px); }
	88%, 100% { opacity: 0; transform: translateY(14px); }
}

@keyframes sbPaSheetL {
	0%, 12% { opacity: 0; transform: translateY(14px) rotate(0deg); }
	38%, 70% { opacity: 1; transform: translateY(-3px) rotate(-14deg); }
	88%, 100% { opacity: 0; transform: translateY(14px) rotate(0deg); }
}

@keyframes sbPaSheetR {
	0%, 12% { opacity: 0; transform: translateY(14px) rotate(0deg); }
	38%, 70% { opacity: 1; transform: translateY(-3px) rotate(14deg); }
	88%, 100% { opacity: 0; transform: translateY(14px) rotate(0deg); }
}

.sb-lf-pa-anim-yes .sb-lf-mark-flap {
	animation: sbPaFlap 4.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.sb-lf-pa-anim-yes .sb-lf-mark-sheet-c { animation: sbPaSheetC 4.2s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
.sb-lf-pa-anim-yes .sb-lf-mark-sheet-l { animation: sbPaSheetL 4.2s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
.sb-lf-pa-anim-yes .sb-lf-mark-sheet-r { animation: sbPaSheetR 4.2s cubic-bezier(0.4, 0, 0.2, 1) infinite; }

.sb-lf-pa-item-title {
	position: relative;
	display: inline-block;
	margin: 0 0 16px;
	color: #ffffff;
	font-family: var(--sb-font-serif);
	font-weight: 700;
	font-size: clamp(22px, 2.2vw, 28px);
}

.sb-lf-pa-item-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -6px;
	width: 0;
	height: 2px;
	background: var(--sb-pa-accent);
	transition: width 0.4s ease;
}

.sb-lf-pa-item:hover .sb-lf-pa-item-title::after {
	width: 100%;
}

.sb-lf-pa-item-text {
	color: rgba(255, 255, 255, 0.62);
	font-size: 15.5px;
	line-height: 1.75;
}

.sb-lf-pa-item-text p {
	margin: 0 0 14px;
}

.sb-lf-pa-item-text p:last-child {
	margin-bottom: 0;
}

/* Bullet list — set in columns because eight short scope items stacked in a
   single file would run far past the image beside them. `break-inside` keeps
   an item that wraps to two lines from splitting across the column gutter. */
.sb-lf-pa-item-list {
	margin: 0;
	padding: 0;
	list-style: none;
	columns: 2;
	column-gap: 34px;
	color: rgba(255, 255, 255, 0.82);
	font-size: 14.5px;
	line-height: 1.55;
}

.sb-lf-pa-item-text + .sb-lf-pa-item-list {
	margin-top: 18px;
}

.sb-lf-pa-item-list li {
	position: relative;
	margin: 0 0 11px;
	padding-left: 20px;
	break-inside: avoid;
	-webkit-column-break-inside: avoid;
}

.sb-lf-pa-item-list li::before {
	content: "";
	position: absolute;
	top: 0.62em;
	left: 2px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--sb-pa-accent);
	transform: translateY(-50%);
}

/* Closing note — deliberately set apart from the list with an accent rule so
   it reads as commentary on the scope above it rather than a ninth item. */
.sb-lf-pa-item-note {
	margin: 26px 0 0;
	padding: 2px 0 2px 18px;
	border-left: 2px solid rgba(var(--sb-pa-accent-rgb), 0.45);
	color: rgba(255, 255, 255, 0.6);
	font-size: 15px;
	line-height: 1.75;
}

.sb-lf-pa-item-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 26px;
	padding: 14px 28px;
	background: var(--sb-pa-accent);
	color: #0a0a14;
	font-weight: 700;
	font-size: 13.5px;
	letter-spacing: 0.02em;
	border-radius: 6px;
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sb-lf-pa-item-btn::before {
	content: "";
	position: absolute;
	top: 0;
	left: -60%;
	width: 40%;
	height: 100%;
	background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.55), transparent);
	transform: skewX(-20deg);
	transition: left 0.6s ease;
}

.sb-lf-pa-item-btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 32px -14px rgba(var(--sb-pa-accent-rgb), 0.6);
}

.sb-lf-pa-item-btn:hover::before {
	left: 130%;
}

/* Scroll-reveal utility — fails open by default (see law-firm-practice-areas.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);
	will-change: opacity, transform;
}

.sb-lf-reveal.sb-lf-pending.sb-lf-reveal-zoom {
	transform: scale(0.92);
}

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

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

	.sb-lf-reveal.sb-lf-pending,
	.sb-lf-pa-item.sb-lf-pa-item-pos-left.sb-lf-pending,
	.sb-lf-pa-item.sb-lf-pa-item-pos-right.sb-lf-pending {
		opacity: 1;
		transform: none;
	}

	/* Cancel the marks outright rather than letting the blanket
	   `animation-duration: .001ms` above freeze them on their last keyframe —
	   for the folder that frame is *closed*, which would strand it with its
	   sheets faded out. Removing the animation restores each mark's static
	   pose from the base rules instead. */
	.sb-lf-mark-walk,
	.sb-lf-mark-child,
	.sb-lf-mark-gavel,
	.sb-lf-mark-impact,
	.sb-lf-mark-flap,
	.sb-lf-mark-sheet {
		animation: none !important;
	}
}

/* Responsive */
@media (max-width: 900px) {
	.sb-lf-pa-item {
		flex-direction: column;
		align-items: stretch;
		gap: 28px;
	}

	.sb-lf-pa-item-media,
	.sb-lf-pa-item-pos-right .sb-lf-pa-item-media {
		order: 1;
		flex-basis: auto;
	}

	.sb-lf-pa-item-content,
	.sb-lf-pa-item-pos-right .sb-lf-pa-item-content {
		order: 2;
	}

	.sb-lf-pa-item-number {
		font-size: 64px;
		top: -20px;
	}
}

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

	.sb-lf-pa-header {
		margin-bottom: 48px;
	}

	.sb-lf-pa-item + .sb-lf-pa-item {
		margin-top: 44px;
		padding-top: 44px;
	}

	.sb-lf-pa-item-mark {
		height: 60px;
	}
}
