/* =========================================================
   LSA Landing Page Styles
   Shared across:
     - template-lsa-employment-page.php
     - tempate-lsa-estate-page.php
     - template-lsa-2.0.php
   Only loaded on those templates (see functions.php enqueue).
   ========================================================= */

* { box-sizing: border-box; }

body {
	margin: 0;
	font-family: Arial, sans-serif;
	color: #111827;
	background: #ffffff;
	line-height: 1.5;
}

h1, h2, h3, h4, p { margin-top: 0; }

.container {
	width: 92%;
	max-width: 1400px;
	margin: 0 auto;
}

.section { padding: 60px 0; }

.dark-section {
	background: #03133f;
	color: #ffffff;
}

.light-section { background: #f5f5f5; }

.pricing-bar {
	background: #03133f;
	color: #ffffff;
	text-align: center;
	padding: 28px 20px;
}

.pricing-label {
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	margin-bottom: 8px;
}

.pricing-amount {
	font-size: 58px;
	font-weight: 800;
	line-height: 1.1;
}

.pricing-amount span {
	font-size: 34px;
	font-weight: 400;
}

.eyebrow {
	color: #ef2027;
	font-size: 16px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 12px;
}

.hero {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
}

.hero-copy { min-width: 0; }

.hero h1 {
	font-size: 52px;
	line-height: 1.05;
	margin-bottom: 24px;
	font-weight: 800;
	letter-spacing: -1px;
	overflow-wrap: break-word;
}

.hero h1 .red { color: #ef2027; }

.hero p {
	font-size: 18px;
	max-width: 580px;
	color: #f2f4f8;
	margin-bottom: 28px;
}

.btn {
	display: inline-block;
	background: #ef2027;
	color: #ffffff;
	text-decoration: none;
	font-size: 18px;
	font-weight: 800;
	padding: 18px 32px;
	border-radius: 6px;
	transition: 0.2s ease;
}

.btn:hover,
.btn:focus,
.btn:active,
.btn:visited {
	background: #d91920;
	color: #ffffff;
	text-decoration: none;
}

.check-list {
	list-style: none;
	padding: 0;
	margin: 28px 0 0;
}

.check-list li {
	margin-bottom: 14px;
	font-size: 17px;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	color: #ffffff;
}

.check-list .icon {
	color: #ef2027;
	font-weight: 800;
	font-size: 18px;
	line-height: 1;
	margin-top: 3px;
}

.video-card {
	position: relative;
	background: #0c1d53;
	border: 1px solid rgba(255,255,255,0.14);
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0,0,0,0.25);
	aspect-ratio: 18 / 13;
	width: 100%;
}

.video-card img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.video-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.48);
	color: #ffffff;
	padding: 18px 22px;
	font-size: 16px;
}

.play-button {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 92px;
	height: 92px;
	border-radius: 50%;
	background: #ef2027;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.play-button:before {
	content: "";
	margin-left: 6px;
	width: 0;
	height: 0;
	border-top: 16px solid transparent;
	border-bottom: 16px solid transparent;
	border-left: 24px solid #ffffff;
}

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

.section-title {
	font-size: 34px;
	line-height: 1.2;
	margin-bottom: 10px;
	font-weight: 800;
	color: #111827;
	text-align: center;
}

.section-subtitle {
	font-size: 17px;
	color: #4b5563;
	margin-bottom: 40px;
	text-align: center;
}

/* --- Equal-height feature cards --- */
.features {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0;
	margin-top: 34px;
	background: #ffffff;
	align-items: stretch; /* ensures all cells match tallest */
}

.feature {
	text-align: center;
	padding: 10px 28px 0;
	position: relative;
	display: flex;          /* makes the card a flex column */
	flex-direction: column;
	height: 100%;           /* fill the stretched grid cell */
}

/* Divider now spans the full card height instead of a fixed 180px */
.feature:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 12px;
	bottom: 12px;
	right: 0;
	width: 1px;
	background: #d1d5db;
}

.feature-icon {
	font-size: 54px;
	margin-bottom: 18px;
}

/* Reserve space for 2-line titles so paragraphs start at the same Y */
.feature h3 {
	font-size: 20px;
	line-height: 1.2;
	margin-bottom: 14px;
	font-weight: 800;
	color: #111827;
	min-height: 2.4em;      /* fits 2 lines like "Only Pay for Qualified Leads" */
	display: flex;
	align-items: center;
	justify-content: center;
}

.feature h3.red { color: #ef2027; }

/* Paragraph fills remaining space so all card bottoms align */
.feature p {
	font-size: 16px;
	color: #374151;
	max-width: 240px;
	margin: 0 auto;
	flex: 1;                /* absorbs leftover vertical space */
	padding-bottom: 10px;   /* bottom breathing room */
}

.split-section {
	display: grid;
	grid-template-columns: 1.15fr 0.95fr;
	gap: 50px;
	align-items: start;
}

.left-copy .eyebrow,
.right-copy .eyebrow { margin-bottom: 10px; }

.left-copy h2,
.right-copy h2 {
	font-size: 34px;
	line-height: 1.15;
	margin-bottom: 18px;
	font-weight: 800;
	color: #111827;
}

.left-copy .intro {
	font-size: 18px;
	color: #4b5563;
	margin-bottom: 26px;
	max-width: 620px;
}

.loss-list {
	list-style: none;
	padding: 0;
	margin: 0 0 34px;
}

.loss-list li {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin-bottom: 16px;
	font-size: 17px;
	color: #374151;
}

.loss-icon {
	position: relative;
	width: 26px;
	height: 26px;
	min-width: 26px;
	border-radius: 50%;
	background: #ef2027;
	margin-top: 1px;
	/* Hide the native "x" character so we can draw a perfectly centered one */
	font-size: 0;
	line-height: 0;
	color: transparent;
	text-indent: -9999px;
	overflow: hidden;
}

/* Draw the X with two centered lines — independent of font metrics, so it stays centered at any zoom */
.loss-icon::before,
.loss-icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 12px;
	height: 3px;
	background: #ffffff;
	border-radius: 1px;
	transform-origin: center center;
}

.loss-icon::before {
	transform: translate(-50%, -50%) rotate(45deg);
}

.loss-icon::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

.testimonial-card {
	position: relative;
	overflow: hidden;
	border-radius: 6px;
	background: #0c1d53;
	min-height: 330px;
	cursor: pointer;
}

.testimonial-card img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.testimonial-video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	background: #0c1d53;
	pointer-events: none; /* clicks pass through to the card */
}

.testimonial-overlay {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 40%;
	background: rgba(3,19,63,0.88);
	color: #ffffff;
	padding: 36px 28px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	pointer-events: none;
}

.quote-mark {
	font-size: 74px;
	line-height: 1;
	color: #ef2027;
	margin-bottom: 12px;
	font-weight: 800;
}

.quote-text {
	font-size: 20px;
	line-height: 1.35;
	font-weight: 600;
	margin-bottom: 20px;
}

.quote-author {
	font-size: 16px;
	color: #f3f4f6;
}

.testimonial-play {
	position: absolute;
	top: 58%;
	left: 52%;
	transform: translate(-50%, -50%);
	width: 84px;
	height: 84px;
	border-radius: 50%;
	background: #ef2027;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	padding: 0;
	cursor: pointer;
	z-index: 3;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.testimonial-play:hover {
	transform: translate(-50%, -50%) scale(1.08);
	box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

.testimonial-play:before {
	content: "";
	margin-left: 5px;
	width: 0;
	height: 0;
	border-top: 14px solid transparent;
	border-bottom: 14px solid transparent;
	border-left: 22px solid #ffffff;
}

.right-copy {
	border-left: 1px solid #d1d5db;
	padding-left: 34px;
}

.steps {
	display: flex;
	flex-direction: column;
	gap: 28px;
	margin-top: 26px;
	margin-bottom: 32px;
}

.step {
	display: grid;
	grid-template-columns: 54px 1fr;
	gap: 18px;
	align-items: start;
}

.step-number {
	width: 54px;
	height: 54px;
	background: #ef2027;
	color: #ffffff;
	font-weight: 800;
	font-size: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
}

.step h3 {
	font-size: 19px;
	margin-bottom: 8px;
	font-weight: 800;
	color: #111827;
}

.step p {
	margin: 0;
	font-size: 17px;
	color: #4b5563;
}

.clarity {
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 26px;
	color: #111827;
}

.final-cta {
	background: #f3f4f6;
	text-align: center;
	padding: 54px 0 70px;
}

.final-cta h2 {
	font-size: 30px;
	line-height: 1.2;
	margin-bottom: 12px;
	font-weight: 800;
	color: #111827;
}

.final-cta p {
	font-size: 18px;
	color: #4b5563;
	margin-bottom: 26px;
	text-align: center;
}

/* SweetAlert2 video popup */
.jw-video-popup {
	background: transparent !important;
	padding: 0 !important;
	border-radius: 8px !important;
	overflow: visible !important;
	width: auto !important;
	max-width: min(960px, 92vw) !important;
	box-shadow: none !important;
	display: inline-block !important;
}

.jw-video-popup .swal2-html-container {
	margin: 0 !important;
	padding: 0 !important;
	overflow: visible !important;
	display: block !important;
	font-size: 0 !important;
	line-height: 0 !important;
}

.jw-video-popup .swal2-close {
	position: absolute !important;
	background: rgba(0, 0, 0, 0.75) !important;
	width: 36px !important;
	height: 36px !important;
	padding: 0 !important;
	margin: 0 !important;
	border-radius: 50% !important;
	top: 12px !important;
	right: 12px !important;
	z-index: 10 !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
	border: 2px solid rgba(255, 255, 255, 0.9) !important;
	transition: background 0.2s ease !important;
	cursor: pointer !important;
	/* Hide the native "x" character so we can draw a perfectly centered one */
	font-size: 0 !important;
	line-height: 0 !important;
	color: transparent !important;
	text-indent: -9999px !important;
	overflow: hidden !important;
	text-shadow: none !important;
}

/* Draw the X with two centered lines — independent of font metrics, so it stays centered at any zoom */
.jw-video-popup .swal2-close::before,
.jw-video-popup .swal2-close::after {
	content: "" !important;
	position: absolute !important;
	top: 50% !important;
	left: 50% !important;
	width: 16px !important;
	height: 2px !important;
	background: #ffffff !important;
	border-radius: 1px !important;
	transform-origin: center center !important;
}

.jw-video-popup .swal2-close::before {
	transform: translate(-50%, -50%) rotate(45deg) !important;
}

.jw-video-popup .swal2-close::after {
	transform: translate(-50%, -50%) rotate(-45deg) !important;
}

.jw-video-popup .swal2-close:hover,
.jw-video-popup .swal2-close:focus {
	background: #ef2027 !important;
	outline: none !important;
}

.jw-video-wrap {
	position: relative;
	width: 100%;
	background: transparent;
	line-height: 0;
}

.jw-video-wrap video {
	width: 100%;
	height: auto;
	max-height: 85vh;
	display: block;
	background: transparent;
}

@media (max-width: 1100px) {
	.hero,
	.split-section,
	.features { grid-template-columns: 1fr; }

	.features { display: grid; gap: 30px; }

	.feature:not(:last-child)::after { display: none; }

	.feature h3 { min-height: 0; } /* reset reserved title space on mobile */

	.right-copy {
		border-left: none;
		padding-left: 0;
	}

	.hero h1 { font-size: 48px; }
	.pricing-amount { font-size: 46px; }
}

@media (max-width: 768px) {
	.section { padding: 42px 0; }
	.hero h1 { font-size: 40px; }

	.section-title,
	.left-copy h2,
	.right-copy h2,
	.final-cta h2 { font-size: 28px; }

	.pricing-amount { font-size: 36px; }
	.pricing-amount span { font-size: 26px; }

	.btn {
		width: 100%;
		text-align: center;
	}

	.play-button { width: 70px; height: 70px; }

	/* ---- Testimonial card — mobile layout fix ---- */
	.testimonial-card {
		min-height: 0;
		aspect-ratio: 16 / 10;
	}

	.testimonial-overlay {
		top: auto;
		bottom: 0;
		width: 100%;
		padding: 18px 18px 20px;
		background: linear-gradient(
			to top,
			rgba(3,19,63,0.95) 40%,
			rgba(3,19,63,0.55) 80%,
			rgba(3,19,63,0) 100%
		);
		justify-content: flex-end;
	}

	.quote-mark {
		font-size: 44px;
		margin-bottom: 2px;
	}

	.quote-text {
		font-size: 15px;
		margin-bottom: 6px;
	}

	.quote-author { font-size: 13px; }

	.testimonial-play {
		top: 50%;
		left: 50%;
		width: 60px;
		height: 60px;
		z-index: 4;
	}

	.testimonial-play:before {
		border-top: 10px solid transparent;
		border-bottom: 10px solid transparent;
		border-left: 17px solid #ffffff;
		margin-left: 4px;
	}
}

/* ───────── Sticky site header ───────── */
.cfb-header {
	position: sticky;
	top: 0;
	z-index: 9999;
	background: #000;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 0 2px 12px rgba(17, 24, 39, 0.06);
	padding: 14px 0;
}

.cfb-header .cfb-container {
	width: 92%;
	max-width: 1400px;
	margin-inline: auto;
}

.cfb-header-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: nowrap;
	gap: 20px;
}

.cfb-logo {
	height: 50px;
	width: auto;
	display: block;
	flex-shrink: 0;
}

.cfb-header a { text-decoration: none; color: inherit; }
.cfb-header img { max-width: 100%; display: block; }

@media (max-width: 480px) {
	.cfb-logo { height: 36px; }
}

/* =========================================================
   LSA 2.0 ONLY — stacked content section + hero video card
   ---------------------------------------------------------
   These rules are intentionally scoped to:
     - .stacked-section  (only present in template-lsa-2.0.php)
     - #jwHeroCard       (unique element ID in template-lsa-2.0.php)
     - .hero-video-col / .hero-video-btn  (LSA 2.0 markup only)
   They will NOT affect template-lsa-employment-page.php or
   tempate-lsa-estate-page.php because none of those selectors
   exist in those templates.
   ========================================================= */

/* --- Stacked layout: losing -> steps -> testimonial --- */
.stacked-section {
	display: flex;
	flex-direction: column;
}

.stacked-section .steps-block,
.stacked-section .testimonial-block {
	border-top: 1px solid #d9d9d9;
	padding-top: 48px;
	margin-top: 48px;
}

.stacked-section .losing-block h2,
.stacked-section .steps-block h2 {
	margin-bottom: 32px;
}

.stacked-section .loss-list {
	display: flex;
	flex-direction: row;
	gap: 24px;
	list-style: none;
	padding: 0;
	margin: 0;
	align-items: flex-start;
}

.stacked-section .loss-list li {
	flex: 1;
	margin-bottom: 0;
}

.stacked-section .steps {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 24px;
	align-items: flex-start;
}

.stacked-section .steps .step {
	flex: 0 0 calc(33.333% - 16px);
	gap: 12px;
}

.stacked-section .steps .step-number {
	width: 32px;
	height: 32px;
	min-width: 32px;
	font-size: 16px;
	line-height: 32px;
	border-radius: 6px;
	flex-shrink: 0;
}

.stacked-section .steps .step h3 {
	font-size: 17px;
	line-height: 1.3;
	margin: 0 0 6px;
}

.stacked-section .steps .step p {
	font-size: 16px;
	line-height: 1.4;
	margin: 0;
}

.stacked-section .steps-block .clarity {
	text-align: center;
}

.stacked-section .steps-block > .btn {
	display: table;
	margin-left: auto;
	margin-right: auto;
}

.stacked-section .testimonial-block .testimonial-card {
	width: 100%;
	max-width: 960px;
	margin-left: auto;
	margin-right: auto;
}

/* --- Hero video card (LSA 2.0) --- */
.hero-video-col {
	text-align: center;
}

#jwHeroCard {
	cursor: pointer;
	position: relative;
	aspect-ratio: 16 / 9;
	width: 100%;
	overflow: hidden;
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
	background: #000;
}

#jwHeroCard > img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}

/* Only overrides pointer-events; positioning comes from base .play-button rule */
#jwHeroCard .play-button {
	pointer-events: none;
}

.hero-video-btn {
	margin-top: 24px;
}

/* --- Responsive overrides for the stacked section --- */
@media (max-width: 992px) {
	.stacked-section .steps .step {
		flex: 0 0 calc(50% - 12px);
	}
}

@media (max-width: 768px) {
	.stacked-section .loss-list,
	.stacked-section .steps {
		flex-direction: column;
	}

	.stacked-section .steps .step {
		flex: 1 1 auto;
	}

	/* Tighter, more consistent spacing between stacked blocks on mobile */
	.stacked-section .steps-block,
	.stacked-section .testimonial-block {
		padding-top: 32px;
		margin-top: 32px;
	}

	.stacked-section .losing-block h2,
	.stacked-section .steps-block h2 {
		margin-bottom: 20px;
	}
}