/* ==========================================================================
   CRIMINAL-PROCESS.CSS — The Law Office of Jimmy Cha, APC.
   California Criminal Process Guide (/criminal-process). Map the page ID to
   'criminal-process' in functions.php.
   Hero · Understanding Your Charge (offense cards) · The Process (timeline) ·
   When to Call an Attorney · disclaimer · CTA (final-cta from component.css).

   NOTE: the docx/wireframe have no dedicated guide content (page card only). The
   copy is assembled from the site's established, factual process content (Just
   Arrested "OC Process" + Felony process + offense categories). It is general
   information, not legal advice — disclaimer included.
   ========================================================================== */

@keyframes jcFadeUp {
	from { opacity: 0; transform: translateY(28px); }
	to   { opacity: 1; transform: none; }
}

/* ==========================================================================
   HERO (calm, editorial)
   ========================================================================== */
.cp-hero {
	position: relative;
	overflow: hidden;
	background: var(--ink);
	border-bottom: 1px solid var(--crimson-dim);
}
.cp-hero-inner {
	position: relative;
	z-index: 1;
	max-width: 880px;
	margin-inline: auto;
	text-align: center;
	padding-block: 96px 72px;
}
.cp-hero-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 2.5px;
	text-transform: uppercase;
	color: var(--gold);
	padding: 9px 18px;
	border: 1px solid var(--gold-dim);
	border-radius: 50px;
	background: var(--gold-dim);
	margin-bottom: 22px;
	animation: jcFadeUp 0.7s ease both;
}
.cp-hero-title {
	font-size: clamp(32px, 4.6vw, 52px);
	font-weight: 700;
	color: var(--warm-white);
	line-height: 1.1;
	letter-spacing: -0.4px;
	margin-bottom: 18px;
	animation: jcFadeUp 0.7s ease 0.08s both;
}
.cp-hero-title em {
	font-style: italic;
	background: var(--grad-crimson);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}
.cp-hero-sub {
	font-size: clamp(16px, 2vw, 19px);
	color: var(--silver-light);
	max-width: 700px;
	margin: 0 auto 28px;
	animation: jcFadeUp 0.7s ease 0.16s both;
}
.cp-hero-actions {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 16px;
	animation: jcFadeUp 0.7s ease 0.24s both;
}

/* ==========================================================================
   SECTION 02 — UNDERSTANDING YOUR CHARGE (offense cards)
   ========================================================================== */
.cp-offense-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-top: 14px;
}
.cp-offense-card {
	border: 1px solid var(--gunmetal);
	border-radius: var(--radius-lg);
	padding: 28px;
	background: var(--grad-surface);
	height: 100%;
	transition: transform 0.3s ease, border-color 0.3s ease;
}
.cp-offense-card:hover {
	transform: translateY(-4px);
	border-color: rgba(166, 24, 44, 0.35);
}
.cp-offense-icon {
	display: grid;
	place-items: center;
	width: 50px;
	height: 50px;
	border-radius: 13px;
	font-size: 20px;
	color: var(--crimson-light);
	background: rgba(166, 24, 44, 0.12);
	border: 1px solid rgba(166, 24, 44, 0.25);
	margin-bottom: 18px;
}
.cp-offense-card--gold .cp-offense-icon {
	color: var(--gold);
	background: var(--gold-dim);
	border-color: var(--gold-dim);
}
.cp-offense-title {
	font-size: 21px;
	color: var(--warm-white);
	margin-bottom: 10px;
	line-height: 1.25;
}
.cp-offense-title .cp-code {
	display: block;
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 1px;
	color: var(--gold);
	margin-top: 4px;
}
.cp-offense-card p {
	font-size: 14.5px;
	color: var(--silver-light);
	line-height: 1.7;
}

/* ==========================================================================
   SECTION 03 — THE PROCESS (vertical timeline)
   ========================================================================== */
.cp-process-section {
	background: var(--charcoal);
}
.cp-timeline {
	margin-top: 16px;
	display: flex;
	flex-direction: column;
	counter-reset: cp-stage;
}
.cp-step {
	position: relative;
	display: grid;
	grid-template-columns: 64px 1fr;
	gap: 26px;
	padding-bottom: 30px;
	counter-increment: cp-stage;
}
.cp-step:last-child {
	padding-bottom: 0;
}
.cp-step::before {
	content: '';
	position: absolute;
	top: 56px;
	left: 31px;
	bottom: -4px;
	width: 2px;
	background: linear-gradient(180deg, var(--crimson), rgba(166, 24, 44, 0.12));
}
.cp-step:last-child::before {
	display: none;
}
.cp-step-node {
	position: relative;
	z-index: 1;
	width: 64px;
	height: 64px;
	display: grid;
	place-items: center;
	font-family: var(--font-display);
	font-style: italic;
	font-weight: 700;
	font-size: 28px;
	color: var(--warm-white);
	border-radius: 50%;
	background:
		linear-gradient(160deg, #20202b, #16161c) padding-box,
		var(--grad-crimson) border-box;
	border: 2px solid transparent;
	box-shadow: var(--shadow-sm);
}
.cp-step-content {
	border: 1px solid var(--gunmetal);
	border-radius: var(--radius-lg);
	padding: 24px 28px;
	background: var(--grad-surface);
	transition: transform 0.3s ease, border-color 0.3s ease;
}
.cp-step-content:hover {
	transform: translateX(4px);
	border-color: rgba(166, 24, 44, 0.35);
}
.cp-step-title {
	font-size: clamp(23px, 2.6vw, 28px);
	font-weight: 700;
	color: var(--warm-white);
	margin-bottom: 14px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--gunmetal);
	line-height: 1.2;
	letter-spacing: -0.3px;
}
/* "Stage N" label above each header — auto-numbered for scannability */
.cp-step-title::before {
	content: "Stage " counter(cp-stage);
	display: block;
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 2.5px;
	text-transform: uppercase;
	color: var(--gold);
	margin-bottom: 8px;
}
.cp-step-title .cp-step-tag {
	display: inline-block;
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--gold);
	border: 1px solid var(--gold-dim);
	border-radius: 4px;
	padding: 3px 8px;
	margin-left: 10px;
	vertical-align: middle;
}
.cp-step-content p {
	font-size: 14.5px;
	color: var(--silver-light);
	line-height: 1.7;
}
.cp-step-content > p + p {
	margin-top: 12px;
}
/* Sub-stage headings within a stage */
.cp-step-content h4 {
	font-family: var(--font-display);
	font-size: 16px;
	font-weight: 600;
	color: var(--warm-white);
	margin: 20px 0 8px;
}
/* Lists within a stage */
.cp-step-content ul {
	list-style: none;
	margin: 8px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 9px;
}
.cp-step-content li {
	position: relative;
	padding-left: 20px;
	font-size: 14.5px;
	color: var(--silver-light);
	line-height: 1.65;
}
.cp-step-content li::before {
	content: '';
	position: absolute;
	left: 3px;
	top: 9px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--crimson);
}
.cp-step-content li strong {
	color: var(--warm-white);
	font-weight: 600;
}

/* ==========================================================================
   TWO-COLUMN LAYOUT + STICKY SIDEBAR CTA (same pattern as the Blog page)
   ========================================================================== */
.blog-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 40px;
	align-items: start;
	margin-top: 6px;
}
.blog-main-col .section-label {
	margin-bottom: 22px;
}
.blog-sidebar {
	position: sticky;
	top: 104px;
}
.sidebar-card {
	border: 1px solid var(--crimson-dim);
	border-radius: var(--radius-lg);
	padding: 30px;
	background: var(--grad-surface);
}
.sidebar-card .section-label {
	margin-bottom: 12px;
}
.sidebar-title {
	font-size: 24px;
	color: var(--warm-white);
	line-height: 1.25;
	margin-bottom: 12px;
}
.sidebar-text {
	font-size: 14.5px;
	color: var(--silver-light);
	line-height: 1.6;
	margin-bottom: 22px;
}
.sidebar-actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 22px;
}
.sidebar-actions .btn {
	width: 100%;
}
.blog-sidebar iframe {
	width: 100%;
	border: none;
	border-radius: 8px;
	margin-bottom: 22px;
}
.sidebar-honors {
	border-top: 1px solid var(--gunmetal);
	padding-top: 22px;
	margin-bottom: 18px;
}
.sidebar-honors-label {
	display: block;
	font-family: var(--font-mono);
	font-size: 10.5px;
	font-weight: 500;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--gold);
	margin-bottom: 14px;
}
.sidebar-honors ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.sidebar-honors li {
	display: flex;
	align-items: center;
	gap: 11px;
	font-size: 13px;
	color: var(--silver-light);
	line-height: 1.4;
}
.sidebar-honors i {
	font-size: 13px;
	color: var(--gold);
	flex-shrink: 0;
}
.blog-sidebar .reassurance-line {
	color: var(--gold);
	text-align: center;
	font-size: 10px;
}

/* ==========================================================================
   SECTION 04 — WHEN TO CALL AN ATTORNEY (centered editorial callout)
   ========================================================================== */
.cp-call-inner {
	max-width: 760px;
	margin-inline: auto;
	text-align: center;
}
.cp-call-inner .section-title {
	margin-inline: auto;
	margin-bottom: 22px;
}
.cp-call-lead {
	font-family: var(--font-display);
	font-style: italic;
	font-size: clamp(18px, 2.2vw, 22px);
	color: var(--crimson-light);
	margin-bottom: 20px;
}
.cp-call-inner p {
	font-size: 16px;
	color: var(--silver-light);
	line-height: 1.8;
	margin-bottom: 16px;
}
.cp-call-inner p:last-child {
	margin-bottom: 0;
}

/* Disclaimer */
.cp-disclaimer {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	max-width: 920px;
	margin: 48px auto 0;
	padding: 22px 26px;
	border: 1px solid var(--gold-dim);
	border-radius: var(--radius-lg);
	background: var(--gold-dim);
}
.cp-disclaimer i {
	flex-shrink: 0;
	color: var(--gold);
	font-size: 20px;
	margin-top: 2px;
}
.cp-disclaimer p {
	font-size: 14px;
	color: var(--silver-light);
	line-height: 1.65;
}
.cp-disclaimer strong {
	color: var(--warm-white);
	font-weight: 600;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 980px) {
	.cp-offense-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.blog-layout {
		grid-template-columns: 1fr;
		gap: 40px;
	}
	.blog-sidebar {
		position: static;
	}
	.sidebar-card {
		max-width: 560px;
	}
}
@media (max-width: 680px) {
	/* On mobile the site-wide sticky CTA bar covers conversion — hide the sidebar. */
	.blog-sidebar {
		display: none;
	}
}
@media (max-width: 680px) {
	.cp-hero-inner {
		padding-block: 68px 52px;
	}
	.cp-hero-actions .btn {
		width: 100%;
	}
	.cp-offense-grid {
		grid-template-columns: 1fr;
	}
	.cp-step {
		grid-template-columns: 50px 1fr;
		gap: 18px;
	}
	.cp-step::before {
		left: 24px;
	}
	.cp-step-node {
		width: 50px;
		height: 50px;
		font-size: 22px;
	}
}
