/*
====================================================================
	Case Results page (template-case-results.php)
	Loaded only on that template — see ogatheme_enqueue_case_results_styles() in functions.php.
	Everything is scoped under .cr-page, plus the footer/call-bar bits under .cr-*.
====================================================================
*/

.cr-page {
	--cr-accent: #FB7E1F;
	--cr-dark: #262626;
	--cr-heading: #111111;
	--cr-text: #535353;
	--cr-border: #d5dbe3;
	--cr-display: "Bebas Neue", Impact, sans-serif;

	font-family: "Roboto", Arial, sans-serif;
	font-size: 17px;
	line-height: 1.65;
	color: var(--cr-text);
	background: #ffffff;
}

.cr-page *,
.cr-page *::before,
.cr-page *::after {
	box-sizing: border-box;
}

/* Reset global theme margins (style.css gives h1–h6 and p bottom margins) */
.cr-page h1,
.cr-page h2,
.cr-page h3,
.cr-page p {
	margin: 0;
}

.cr-page a {
	text-decoration: none;
}

.cr-page section {
	position: relative;
	padding-left: 6%;
	padding-right: 6%;
}

.cr-container {
	max-width: 1200px;
	margin: 0 auto;
}

/* ---------- Shared type ---------- */

.cr-eyebrow {
	font-family: var(--cr-display);
	font-size: 28px;
	line-height: 1.2;
	letter-spacing: 0.06em;
	color: var(--cr-accent);
}

.cr-title {
	font-family: var(--cr-display);
	font-weight: 400;
	font-size: clamp(40px, 5vw, 60px);
	line-height: 1;
	color: var(--cr-heading);
	margin-top: 4px !important;
}

.cr-title--lg {
	font-size: clamp(44px, 6vw, 72px);
}

.cr-title--center {
	text-align: center;
}

.cr-btn {
	display: inline-block;
	min-height: 52px;
	padding: 16px 42px;
	background: var(--cr-accent);
	color: #ffffff !important;
	font-weight: 700;
	font-size: 20px;
	line-height: 1.2;
	text-align: center;
	border-radius: 4px;
	transition: background 200ms ease;
}

.cr-btn:hover,
.cr-btn:focus {
	background: #e86d10;
}

.cr-btn--block {
	display: block;
	padding: 15px 24px;
}

/* ---------- Hero ---------- */

.cr-hero {
	background: var(--cr-dark);
	padding-top: 96px;
	padding-bottom: 104px;
	overflow: hidden;
}

.cr-hero__bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 40%;
}

.cr-hero__overlay {
	position: absolute;
	inset: 0;
	background: rgba(38, 38, 38, 0.78);
}

.cr-hero__inner {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	gap: 56px;
	align-items: center;
}

.cr-hero__text {
	flex: 1.5 1 520px;
	min-width: 0;
}

.cr-hero__title {
	font-family: var(--cr-display);
	font-weight: 400;
	font-size: clamp(60px, 8vw, 116px);
	line-height: 0.98;
	letter-spacing: 0.01em;
}

.cr-hero__title-light {
	color: #ffffff;
}

.cr-hero__title-accent {
	color: var(--cr-accent);
}

.cr-hero__lead {
	color: #ececec;
	font-size: 21px;
	max-width: 640px;
	margin-top: 28px !important;
}

.cr-hero__card {
	flex: 1 1 340px;
	max-width: 460px;
	background: #ffffff;
	border-radius: 16px;
	padding: 36px 34px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.cr-hero__card-title {
	font-family: var(--cr-display);
	font-size: 28px;
	line-height: 1.2;
	letter-spacing: 0.05em;
	color: var(--cr-heading);
}

.cr-hero__phone {
	font-family: var(--cr-display);
	font-size: clamp(36px, 9vw, 60px);
	line-height: 1;
	white-space: nowrap;
	color: var(--cr-accent);
}

.cr-hero__card p {
	font-size: 17px;
}

/* ---------- Results ---------- */

.cr-results {
	background: #ffffff;
	padding-top: 104px;
	padding-bottom: 88px;
}

.cr-intro {
	max-width: 720px;
	margin-bottom: 48px;
}

.cr-intro__text {
	font-size: 19px;
	margin-top: 18px !important;
}

.cr-featured {
	background: var(--cr-dark);
	border-radius: 16px;
	padding: 48px 44px;
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	align-items: center;
}

.cr-featured__head,
.cr-featured__text {
	flex: 1 1 360px;
	min-width: 0;
}

.cr-featured__amount {
	font-family: var(--cr-display);
	font-size: clamp(60px, 8vw, 100px);
	line-height: 0.95;
	color: var(--cr-accent);
}

.cr-featured__label {
	font-family: var(--cr-display);
	font-size: 26px;
	line-height: 1.2;
	letter-spacing: 0.04em;
	color: #ffffff;
	margin-top: 6px;
}

.cr-featured__text {
	color: #e6e6e6;
	font-size: 19px;
}

.cr-result-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 24px;
	margin-top: 24px;
}

.cr-result-card {
	background: #ffffff;
	border: 1px solid var(--cr-border);
	border-radius: 16px;
	padding: 34px 30px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.cr-result-card__amount {
	font-family: var(--cr-display);
	font-size: 72px;
	line-height: 0.95;
	color: var(--cr-accent);
}

.cr-result-card__label {
	font-family: var(--cr-display);
	font-size: 23px;
	line-height: 1.15;
	letter-spacing: 0.03em;
	color: var(--cr-heading);
}

.cr-results__disclaimer {
	font-size: 14px;
	text-align: center;
	margin-top: 28px !important;
}

/* ---------- Photo band ---------- */

.cr-page .cr-photo-band {
	height: clamp(200px, 26vw, 340px);
	overflow: hidden;
	background: var(--cr-dark);
	padding: 0;
}

.cr-photo-band img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 55%;
}

/* ---------- What happens when you call ---------- */

.cr-steps {
	background: #f3f3f3;
	padding-top: 96px;
	padding-bottom: 96px;
}

.cr-steps__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 24px;
	margin-top: 44px;
}

.cr-step {
	background: #ffffff;
	border-radius: 16px;
	padding: 32px 30px;
}

.cr-step__num {
	font-family: var(--cr-display);
	font-size: 64px;
	line-height: 1;
	color: var(--cr-accent);
}

.cr-step__title {
	font-family: var(--cr-display);
	font-weight: 400;
	font-size: 28px;
	line-height: 1.1;
	color: var(--cr-heading);
	margin-top: 6px !important;
}

.cr-step p {
	margin-top: 10px;
}

/* ---------- Who this is for + attorney ---------- */

.cr-who {
	background: #ffffff;
	padding-top: 104px;
	padding-bottom: 104px;
}

.cr-who__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 56px;
	align-items: flex-start;
}

.cr-who__list {
	flex: 1 1 400px;
	min-width: 0;
}

.cr-checklist {
	list-style: none;
	margin: 32px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.cr-checklist li {
	border: 1px solid var(--cr-border);
	border-radius: 10px;
	padding: 18px 20px;
	display: flex;
	gap: 14px;
	align-items: center;
}

.cr-icon {
	flex: none;
	color: var(--cr-accent);
}

.cr-attorney {
	flex: 1 1 400px;
	min-width: 0;
	background: var(--cr-dark);
	border-radius: 16px;
	padding: 36px;
	display: flex;
	flex-wrap: wrap;
	gap: 28px;
	align-items: center;
}

.cr-attorney__photo {
	flex: 1 1 170px;
	min-width: 150px;
	max-width: 260px;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: center top;
	border-radius: 8px;
	display: block;
}

.cr-attorney__body {
	flex: 1.4 1 220px;
	min-width: 0;
}

.cr-attorney__label {
	color: var(--cr-accent);
	font-weight: 700;
	font-size: 16px;
}

.cr-attorney__name {
	font-family: var(--cr-display);
	font-weight: 400;
	font-size: 52px;
	line-height: 1;
	text-transform: uppercase;
	color: #ffffff;
	margin-top: 6px !important;
}

.cr-attorney__role {
	font-style: italic;
	font-weight: 700;
	color: #bdbdbd;
	margin-top: 4px;
}

.cr-attorney__points {
	list-style: none;
	margin: 16px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
	color: #d6d6d6;
	font-size: 16px;
}

.cr-attorney__points li {
	list-style: none;
}

/* ---------- FAQ ---------- */

.cr-faq {
	background: #f6f6f4;
	padding-top: 96px;
	padding-bottom: 96px;
}

.cr-faq__inner {
	max-width: 860px;
}

.cr-faq .cr-title {
	margin-bottom: 36px !important;
}

.cr-faq__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.cr-faq__item {
	background: #ffffff;
	border: 1px solid var(--cr-border);
	border-radius: 12px;
	padding: 22px 26px;
}

.cr-faq__item summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	font-family: var(--cr-display);
	font-size: 28px;
	line-height: 1.1;
	color: var(--cr-heading);
}

.cr-faq__item summary::-webkit-details-marker {
	display: none;
}

.cr-plus {
	flex: none;
	color: var(--cr-accent);
	transition: transform 200ms ease;
}

.cr-faq__item[open] .cr-plus {
	transform: rotate(45deg);
}

.cr-faq__item p {
	margin-top: 12px;
}

/* ---------- Closing CTA ---------- */

.cr-closing {
	background: var(--cr-dark);
	padding-top: 96px;
	padding-bottom: 96px;
	text-align: center;
}

.cr-closing__inner {
	max-width: 880px;
}

.cr-closing__title {
	font-family: var(--cr-display);
	font-weight: 400;
	font-size: clamp(48px, 7vw, 88px);
	line-height: 1;
	color: #ffffff;
}

.cr-closing__text {
	color: #ececec;
	font-size: 20px;
	max-width: 720px;
	margin: 22px auto 0 !important;
}

.cr-closing__phone {
	display: block;
	font-family: var(--cr-display);
	font-size: clamp(52px, 8vw, 84px);
	line-height: 1;
	color: var(--cr-accent);
	margin-top: 28px;
}

/* Phone links hover to the same shade as the .cr-btn hover */
.cr-hero__phone,
.cr-closing__phone {
	transition: color 200ms ease;
}

.cr-hero__phone:hover,
.cr-hero__phone:focus,
.cr-closing__phone:hover,
.cr-closing__phone:focus {
	color: #e86d10;
}

.cr-closing__button {
	margin-top: 28px;
}

/* ---------- Footer additions (rendered in footer.php on this template only) ---------- */

.cr-footer-disclaimer {
	padding: 24px 0 14px;
	font-size: 13px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.7);
}

.cr-callbar {
	display: none;
}

/* ---------- Responsive ---------- */

/* Hero: the text (520px) + card (340px) + gap (56px) only fit side by side above ~1080px.
   Below that they stack, so make both full width instead of leaving the card capped at 460px. */
@media only screen and (max-width: 1080px) {
	.cr-hero__text,
	.cr-hero__card {
		flex-basis: 100%;
		max-width: none;
	}
}

@media only screen and (max-width: 767px) {
	.cr-hero,
	.cr-results,
	.cr-who {
		padding-top: 64px;
		padding-bottom: 64px;
	}

	.cr-steps,
	.cr-faq,
	.cr-closing {
		padding-top: 64px;
		padding-bottom: 64px;
	}

	.cr-featured {
		padding: 36px 26px;
	}

	.cr-result-grid {
		grid-template-columns: 1fr;
	}

	.cr-result-card__amount {
		font-size: 60px;
	}

	.cr-who__list,
	.cr-attorney {
		flex-basis: 100%;
	}

	.cr-attorney {
		padding: 28px 24px;
	}

	.cr-faq__item summary {
		font-size: 24px;
	}
}

@media only screen and (max-width: 700px) {
	.cr-callbar {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 998;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 10px;
		padding: 10px 14px;
		background: #262626;
		border-top: 3px solid #FB7E1F;
	}

	.cr-callbar__text {
		color: #ffffff;
		font-weight: 700;
		font-size: 16px;
		line-height: 1.3;
	}

	.cr-callbar__btn {
		display: inline-block;
		min-height: 48px;
		padding: 12px 22px;
		background: #FB7E1F;
		color: #ffffff !important;
		font-weight: 700;
		font-size: 19px;
		line-height: 24px;
		border-radius: 4px;
		white-space: nowrap;
	}

	/* Keep the footer and the scroll-to-top button clear of the fixed call bar */
	.page-template-template-case-results .main-footer {
		padding-bottom: 74px;
	}

	.page-template-template-case-results .scroll-to-top {
		bottom: 88px;
	}
}


/*
====================================================================
	Home page — "Active Cases" strip at the bottom of the banner
	(template-home.php, ACF: cases_headline, cases_sub_headline, banner_cases)
	Also enqueued on template-home.php — see ogatheme_enqueue_case_results_styles().
====================================================================
*/

.active-cases {
	position: relative;
	z-index: 2;
	background: #1b1b1b;
	border-top: 4px solid #FB7E1F;
}

.active-cases *,
.active-cases *::before,
.active-cases *::after {
	box-sizing: border-box;
}

.active-cases__inner {
	display: flex;
	align-items: center;
	min-height: 130px;
	padding: 20px 0;
}

.active-cases__intro {
	flex: 0 0 auto;
	padding-right: 30px;
}

.active-cases .active-cases__title {
	margin: 0;
	font-family: "Bebas Neue", Impact, sans-serif;
	font-size: 40px;
	letter-spacing: 0.04em;
	line-height: 1;
	color: #ffffff;
}

.active-cases .active-cases__subtitle {
	margin: 6px 0 0;
	font-size: 16px;
	line-height: 1.3;
	color: #FB7E1F;
}

/* Divider: left border on desktop, top border when stacked */
.active-cases__list {
	flex: 1 1 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 7px 0 7px 30px;
	list-style: none;
	border-left: 1px solid #FB7E1F;
}

.active-cases__list li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.active-cases__case {
	display: inline-flex;
	align-items: center;
	min-height: 50px;
	padding: 0 15px;
	border: 1px solid #FB7E1F;
	border-radius: 2px;
	background: #262626;
	color: #ffffff;
	font-weight: 500;
	font-size: 16px;
	line-height: 1.2;
	white-space: nowrap;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.active-cases a.active-cases__case,
.active-cases a.active-cases__case:visited {
	color: #ffffff;
}

.active-cases a.active-cases__case:hover,
.active-cases a.active-cases__case:focus-visible {
	background: #FB7E1F;
	color: #ffffff;
}

.active-cases a.active-cases__case:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 2px;
}

/* Stacked layout: heading, horizontal divider, 2-column grid of cases */
@media only screen and (max-width: 991px) {
	.active-cases__inner {
		display: block;
		min-height: 0;
		padding: 20px 2px 24px;
	}

	.active-cases__intro {
		padding: 0 0 14px;
	}

	.active-cases .active-cases__title {
		font-size: 36px;
	}

	.active-cases .active-cases__subtitle {
		font-size: 15px;
	}

	.active-cases__list {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 10px;
		padding: 14px 0 0;
		border-left: 0;
		border-top: 1px solid #FB7E1F;
	}

	/* Odd number of cases: last one spans the full row */
	.active-cases__list li:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}

	.active-cases__case {
		display: flex;
		justify-content: center;
		width: 100%;
		height: 100%;
		min-height: 52px;
		padding: 8px 10px;
		font-size: 17px;
		text-align: center;
		white-space: normal;
	}
}
