/* ============================================================
   Mirador Law — Case Results v4 stylesheet
   Scoped under .mdl-cr-v4 so every rule wins specificity over
   Bootstrap, theme-style.css, home-style.css, and responsive.css.
   Spec source: Figma MDL-OCA-CaseResults-v3.
   Breakpoints: 1200 / 1100 / 992 / 768 / 600.
   ============================================================ */

/* Hard reset on the wrapper to neutralize Bootstrap leakage */
.mdl-cr-v4,
.mdl-cr-v4 *,
.mdl-cr-v4 *::before,
.mdl-cr-v4 *::after {
	box-sizing: border-box;
}
.mdl-cr-v4 {
	/* Tokens (mirror brand vars from home-v4.css) */
	--mdl-gold:        #CAA45D;
	--mdl-gold-dark:   #B5903F;
	--mdl-prussian:    #243952;
	--mdl-prussian-d:  #1A2A3D;
	--mdl-slate:       #4E6072;
	--mdl-slate-light: #647C90;
	--mdl-paynes:      #506272;
	--mdl-light-blue:  #BECCD7;
	--mdl-azure:       #E8F6F8;
	--mdl-bg-light:    #F3F5F7;
	--mdl-font:        'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--mdl-container:   1366px;
	--mdl-gutter:      32px;
	--mdl-section-y:   80px;

	font-family: var(--mdl-font);
	color: var(--mdl-paynes);
	line-height: 1.5;
}

/* Centered section wrapper */
.mdl-cr-v4 .mdl-cr-hero__inner,
.mdl-cr-v4 .mdl-cr-results__wrap,
.mdl-cr-v4 .mdl-cr-testimonials__wrap,
.mdl-cr-v4 .mdl-cr-cta__inner {
	max-width: var(--mdl-container);
	margin-left: auto; margin-right: auto;
	padding-left: var(--mdl-gutter);
	padding-right: var(--mdl-gutter);
	width: 100%;
}

/* ------------------------------------------------------------
   Typography helpers
   ------------------------------------------------------------ */
.mdl-cr-v4 .mdl-cr-h2 {
	font-family: var(--mdl-font);
	font-weight: 700; font-size: 32px; line-height: 38px;
	text-transform: uppercase; letter-spacing: 0;
	margin: 0;
}
.mdl-cr-v4 .mdl-cr-h2--prussian { color: var(--mdl-prussian); }

/* Screen-reader-only utility */
.mdl-cr-v4 .mdl-cr-sr-only {
	position: absolute !important;
	width: 1px !important; height: 1px !important;
	margin: -1px !important; padding: 0 !important;
	overflow: hidden !important; clip: rect(0,0,0,0) !important;
	white-space: nowrap !important; border: 0 !important;
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.mdl-cr-v4 .mdl-cr-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 14px 60px;
	font-family: var(--mdl-font);
	font-weight: 500; font-size: 16px; line-height: 24px;
	letter-spacing: 1px; text-transform: uppercase; text-decoration: none !important;
	border: 0; cursor: pointer; white-space: nowrap;
	transition: background-color .2s ease, transform .15s ease;
}
.mdl-cr-v4 .mdl-cr-btn--gold       { background: var(--mdl-gold); color: #fff !important; }
.mdl-cr-v4 .mdl-cr-btn--gold:hover { background: var(--mdl-gold-dark); color: #fff !important; }
.mdl-cr-v4 .mdl-cr-btn--sm         { padding: 14px 60px; }

/* ============================================================
   SECTION 1 — HERO
   Figma: 1440 × 400, image bg + rgba(0,0,0,0.3) overlay,
   H1 46/58 white center uppercase, sub 21/31 white center.
   ============================================================ */
.mdl-cr-v4 .mdl-cr-hero {
	position: relative;
	min-height: 450px;
	display: flex; align-items: flex-end; justify-content: center;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	background-color: #4F5F6F;
	padding: 80px 0 48px;
}
.mdl-cr-v4 .mdl-cr-hero__inner {
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	gap: 12px;
	text-align: center;
	position: relative; z-index: 2;
}
.mdl-cr-v4 .mdl-cr-hero__title {
	font-family: var(--mdl-font);
	font-weight: 700;
	font-size: 46px;
	line-height: 58px;
	text-transform: uppercase;
	text-align: center;
	color: #fff;
	margin: 0;
}
.mdl-cr-v4 .mdl-cr-hero__sub {
	font-family: var(--mdl-font);
	font-weight: 600;
	font-size: 21px;
	line-height: 31px;
	text-align: center;
	color: #fff;
	margin: 0;
	max-width: 720px;
}

/* ============================================================
   SECTION 2 — CASE RESULTS GRID
   Figma: bg #647C90, cards #4E6072 with 4px gold top border,
   card amount 32/38 700 white uppercase center,
   description 17/27 400 white center,
   READ MORE 16/24 500 gold uppercase letter-spacing 1px.
   3 columns × N rows.
   ============================================================ */
.mdl-cr-v4 .mdl-cr-results {
	background: #647C90;
	padding: 86px 0;
}
.mdl-cr-v4 .mdl-cr-results__grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;       /* incomplete last rows center themselves */
	gap: 38px 32px;
}
.mdl-cr-v4 .mdl-cr-result {
	/* 3-column desktop: subtract 2 gaps (32px each) and divide */
	flex: 0 0 calc((100% - 64px) / 3);
	max-width: calc((100% - 64px) / 3);
	min-width: 0;
}
.mdl-cr-v4 .mdl-cr-result {
	display: block;
	background: #4E6072;
	border-top: 4px solid #CAA45C;
	min-height: 216px;
	text-decoration: none !important;
	color: #fff;
	transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
	box-shadow: none;
}
.mdl-cr-v4 .mdl-cr-result:hover,
.mdl-cr-v4 .mdl-cr-result:focus-visible {
	transform: translateY(-3px);
	box-shadow: 0 12px 24px rgba(0,0,0,.18);
	background: #56697b;
}
.mdl-cr-v4 .mdl-cr-result:focus-visible { outline: 2px solid var(--mdl-gold); outline-offset: 2px; }

.mdl-cr-v4 .mdl-cr-result__inner {
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	gap: 32px;
	padding: 28px 24px;
	height: 100%;
	min-height: 212px; /* 216 - 4 gold border */
	text-align: center;
}
.mdl-cr-v4 .mdl-cr-result__group {
	display: flex; flex-direction: column; align-items: center;
	gap: 12px;
	width: 100%;
}
.mdl-cr-v4 .mdl-cr-result__amount {
	font-family: var(--mdl-font);
	font-weight: 700;
	font-size: 32px;
	line-height: 38px;
	color: #fff;
	text-transform: uppercase;
	text-align: center;
	margin: 0;
	letter-spacing: 0;
}
.mdl-cr-v4 .mdl-cr-result__desc {
	font-family: var(--mdl-font);
	font-weight: 400;
	font-size: 17px;
	line-height: 27px;
	color: #fff;
	text-align: center;
	margin: 0;
	letter-spacing: 0;
	text-transform: none;
}
.mdl-cr-v4 .mdl-cr-result__more {
	display: inline-block;
	font-family: var(--mdl-font);
	font-weight: 500;
	font-size: 16px;
	line-height: 24px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--mdl-gold);
	text-decoration: none;
}
.mdl-cr-v4 .mdl-cr-result:hover .mdl-cr-result__more { color: #E0B86B; }

/* Confidential cases: non-clickable, no read-more, shows a gold "Confidential"
   badge in place of the read-more link. Cursor stays default (not a link). */
.mdl-cr-v4 .mdl-cr-result--confidential {
	cursor: default;
}
.mdl-cr-v4 .mdl-cr-result--confidential:hover {
	transform: none;
}
.mdl-cr-v4 .mdl-cr-result__badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--mdl-font);
	font-weight: 600;
	font-size: 13px;
	line-height: 20px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--mdl-gold);
	border: 1px solid rgba(202,164,93,.55);
	border-radius: 4px;
	padding: 5px 12px;
	white-space: nowrap;
}
.mdl-cr-v4 .mdl-cr-result__badge::before {
	content: "";
	width: 12px;
	height: 12px;
	flex: 0 0 12px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23CAA45D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") center/12px 12px no-repeat;
}

/* ============================================================
   SECTION 3 — CLIENT TESTIMONIALS
   Figma: bg #F3F5F7, prussian cards, 470.41h, gold play 90×90,
   name 21/31 600 white center, sub 18/28 600 gold center.
   ============================================================ */
.mdl-cr-v4 .mdl-cr-testimonials {
	background: var(--mdl-bg-light);
	padding: var(--mdl-section-y) 0 40px;
}
.mdl-cr-v4 .mdl-cr-section-head {
	display: flex; align-items: center; justify-content: space-between;
	gap: 24px; margin-bottom: 40px; flex-wrap: wrap;
}
.mdl-cr-v4 .mdl-cr-testimonials__grid {
	display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.mdl-cr-v4 .mdl-cr-testimonial {
	background: var(--mdl-prussian);
	display: flex; flex-direction: column;
	border: 0 !important;
	outline: 0 !important;
	box-shadow: none !important;
}
/* Kill any legacy gold hover border from theme-style.css */
.mdl-cr-v4 .mdl-cr-testimonial,
.mdl-cr-v4 .mdl-cr-testimonial:hover,
.mdl-cr-v4 .mdl-cr-testimonial:focus,
.mdl-cr-v4 .mdl-cr-testimonial:focus-within,
.mdl-cr-v4 .mdl-cr-testimonial__media,
.mdl-cr-v4 .mdl-cr-testimonial__media:hover,
.mdl-cr-v4 .mdl-cr-testimonial__media:focus,
.mdl-cr-v4 .mdl-cr-testimonial .mdl-cr-video-trigger,
.mdl-cr-v4 .mdl-cr-testimonial .mdl-cr-video-trigger:hover,
.mdl-cr-v4 .mdl-cr-testimonial .mdl-cr-video-trigger:focus,
.mdl-cr-v4 .mdl-cr-testimonial .mdl-cr-video-trigger:focus-visible,
.mdl-cr-v4 .mdl-cr-testimonial a,
.mdl-cr-v4 .mdl-cr-testimonial a:hover,
.mdl-cr-v4 .mdl-cr-testimonial a:focus {
	border: 0 !important;
	outline: 0 !important;
	box-shadow: none !important;
	background-clip: padding-box !important;
}
/* Video trigger reusable */
.mdl-cr-v4 .mdl-cr-video-trigger {
	position: relative; display: block; width: 100%;
	padding: 0; background: transparent; border: 0;
	overflow: hidden; cursor: pointer;
}
.mdl-cr-v4 .mdl-cr-video-trigger__thumb {
	width: 100%; height: auto; display: block;
	transition: transform .4s ease;
}
.mdl-cr-v4 .mdl-cr-video-trigger:hover .mdl-cr-video-trigger__thumb { transform: scale(1.02); }
.mdl-cr-v4 .mdl-cr-video-trigger__play {
	position: absolute; top: 50%; left: 50%;
	transform: translate(-50%,-50%);
	width: 88px; height: 88px; pointer-events: none;
	filter: drop-shadow(0 4px 12px rgba(0,0,0,.3));
	transition: transform .2s ease;
	z-index: 2;
}
.mdl-cr-v4 .mdl-cr-video-trigger__play img { width: 88px; height: 88px; }
.mdl-cr-v4 .mdl-cr-video-trigger:hover .mdl-cr-video-trigger__play { transform: translate(-50%,-50%) scale(1.08); }

.mdl-cr-v4 .mdl-cr-testimonial__media {
	position: relative !important;
	display: block !important;
	width: 100% !important;
	height: 336px !important;
	padding: 0 !important;
	box-shadow: none !important;
	background: transparent;
	border: 0;
	overflow: hidden !important;
}
.mdl-cr-v4 .mdl-cr-testimonial__media .mdl-cr-video-trigger__thumb,
.mdl-cr-v4 .mdl-cr-testimonial__media img.mdl-cr-video-trigger__thumb {
	position: absolute !important;
	top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
	width: 100% !important; height: 100% !important;
	max-width: none !important; max-height: none !important;
	min-width: 100% !important; min-height: 100% !important;
	object-fit: cover !important;
	object-position: center center !important;
	display: block !important;
	margin: 0 !important; padding: 0 !important;
}
.mdl-cr-v4 .mdl-cr-testimonial__caption { padding: 24px; text-align: center; }
.mdl-cr-v4 .mdl-cr-testimonial__name {
	color: #fff;
	font-family: var(--mdl-font);
	font-weight: 600; font-size: 21px; line-height: 31px;
	margin: 0 0 4px;
}
.mdl-cr-v4 .mdl-cr-testimonial__sub {
	color: var(--mdl-gold);
	font-family: var(--mdl-font);
	font-weight: 600; font-size: 18px; line-height: 28px;
	margin: 0;
}

/* ============================================================
   SECTION 4 — CTA "From Crisis To Clarity"
   Figma: bg #BECCD7, 1440 × 398, centered stack,
   eyebrow 22/42 600 prussian uppercase,
   H2 32/38 700 prussian uppercase,
   sub 21/31 600 paynes (#506272) center,
   button 508 wide × 52 tall gold/white.
   ============================================================ */
.mdl-cr-v4 .mdl-cr-cta {
	background: var(--mdl-light-blue);
	padding: 90px 0;
	text-align: center;
}
.mdl-cr-v4 .mdl-cr-cta__inner {
	display: flex; flex-direction: column; align-items: center;
	gap: 24px;
	max-width: 1052px; margin: 0 auto;
}
.mdl-cr-v4 .mdl-cr-cta__eyebrow {
	color: var(--mdl-prussian);
	font-family: var(--mdl-font);
	font-weight: 600; font-size: 22px; line-height: 42px;
	text-transform: uppercase; letter-spacing: 0;
	margin: 0;
}
.mdl-cr-v4 .mdl-cr-cta__inner .mdl-cr-h2 { margin: 0; }
.mdl-cr-v4 .mdl-cr-cta__sub {
	color: var(--mdl-paynes);
	font-family: var(--mdl-font);
	font-weight: 600; font-size: 21px; line-height: 31px;
	margin: 0;
	text-align: center;
}
.mdl-cr-v4 .mdl-cr-cta__inner .mdl-cr-btn { margin-top: 10px; min-width: 380px; }

/* ============================================================
   Video modal
   ============================================================ */
.mdl-cr-modal {
	position: fixed; inset: 0; z-index: 99999;
	display: flex; align-items: center; justify-content: center;
	padding: 32px;
}
.mdl-cr-modal[hidden] { display: none; }
.mdl-cr-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.85); }
.mdl-cr-modal__panel {
	position: relative; z-index: 1; width: 100%; max-width: 1024px; background: #000;
}
.mdl-cr-modal__close {
	position: absolute; top: -40px; right: 0;
	background: transparent; color: #fff; border: 0; font-size: 32px; line-height: 1; cursor: pointer;
}
.mdl-cr-modal__embed { position: relative; padding-top: 56.25%; }
.mdl-cr-modal__embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1200px) {
	.mdl-cr-v4 .mdl-cr-results__grid { gap: 28px 24px; }
}

@media (max-width: 1100px) {
	.mdl-cr-v4 .mdl-cr-results__grid {
		gap: 24px;
	}
	.mdl-cr-v4 .mdl-cr-result {
		flex: 0 0 calc((100% - 24px) / 2);
		max-width: calc((100% - 24px) / 2);
	}
}

@media (max-width: 992px) {
	.mdl-cr-v4 { --mdl-section-y: 56px; --mdl-gutter: 24px; }
	.mdl-cr-v4 .mdl-cr-hero { min-height: 320px; padding: 56px 0 36px; }
	.mdl-cr-v4 .mdl-cr-hero__title { font-size: 36px; line-height: 44px; }
	.mdl-cr-v4 .mdl-cr-hero__sub   { font-size: 19px; line-height: 28px; }

	.mdl-cr-v4 .mdl-cr-results { padding: 64px 0; }
	.mdl-cr-v4 .mdl-cr-result__amount { font-size: 28px; line-height: 34px; }

	.mdl-cr-v4 .mdl-cr-cta { padding: 64px 20px; }
	.mdl-cr-v4 .mdl-cr-cta__eyebrow { font-size: 18px; line-height: 28px; }
	.mdl-cr-v4 .mdl-cr-cta__sub     { font-size: 18px; line-height: 28px; }
	.mdl-cr-v4 .mdl-cr-cta__inner .mdl-cr-btn { min-width: 280px; }
}

@media (max-width: 768px) {
	.mdl-cr-v4 { --mdl-section-y: 48px; --mdl-gutter: 20px; }
	.mdl-cr-v4 .mdl-cr-hero { min-height: 260px; padding: 48px 0 28px; }
	.mdl-cr-v4 .mdl-cr-hero__title { font-size: 30px; line-height: 36px; }
	.mdl-cr-v4 .mdl-cr-hero__sub   { font-size: 16px; line-height: 24px; }

	.mdl-cr-v4 .mdl-cr-results { padding: 48px 0; }
	.mdl-cr-v4 .mdl-cr-results__grid {
		gap: 20px;
	}
	.mdl-cr-v4 .mdl-cr-result {
		flex: 0 0 100%;
		max-width: 100%;
		min-height: 188px;
	}
	.mdl-cr-v4 .mdl-cr-result__amount { font-size: 26px; line-height: 32px; }
	.mdl-cr-v4 .mdl-cr-result__desc { font-size: 16px; line-height: 24px; }

	.mdl-cr-v4 .mdl-cr-testimonials { padding: 48px 0 24px; }
	.mdl-cr-v4 .mdl-cr-testimonials__grid { grid-template-columns: 1fr; gap: 16px; }
	.mdl-cr-v4 .mdl-cr-testimonial__media { height: 240px !important; }
	.mdl-cr-v4 .mdl-cr-section-head { gap: 16px; margin-bottom: 24px; }
	.mdl-cr-v4 .mdl-cr-h2 { font-size: 26px; line-height: 32px; }

	.mdl-cr-v4 .mdl-cr-cta { padding: 48px 20px; }
	.mdl-cr-v4 .mdl-cr-cta__eyebrow { font-size: 16px; line-height: 24px; }
	.mdl-cr-v4 .mdl-cr-cta__sub     { font-size: 16px; line-height: 24px; }
	.mdl-cr-v4 .mdl-cr-cta__inner .mdl-cr-btn {
		width: 100%; max-width: 320px; min-width: 0;
		padding: 14px 24px;
	}
}

@media (max-width: 600px) {
	.mdl-cr-v4 .mdl-cr-hero__title { font-size: 26px; line-height: 32px; }
	.mdl-cr-v4 .mdl-cr-btn--sm { padding: 12px 28px; font-size: 14px; }
}