/*
 * LB Marketing — migrated desktop hero fixes.
 *
 * These rules were previously injected at runtime by two separate
 * presentation plugins (LB Marketing Desktop Hero Fix and
 * LB Marketing — Agent Brennan Desktop Hero). They are now owned by the
 * child theme so the plugins can be retired. Behaviour is unchanged:
 * everything is scoped to desktop breakpoints and, where relevant, to the
 * Agent Brennan page.
 */

/* ---- former: lb-marketing-desktop-hero-fix ---- */
@media (min-width: 1200px) {
	#lbm-refresh-layout .lb2-hero,
	.lb2 .lb2-hero,
	#lbm-refresh-layout .lb2-detail-hero,
	.lb2 .lb2-detail-hero,
	#lbm-refresh-layout .lb2-subhero,
	.lb2 .lb2-subhero {
		padding-top: 48px !important;
		padding-bottom: 48px !important;
	}

	#lbm-refresh-layout .lb2-hero .lb2-container,
	.lb2 .lb2-hero .lb2-container,
	#lbm-refresh-layout .lb2-detail-hero .lb2-container,
	.lb2 .lb2-detail-hero .lb2-container {
		max-width: min(1500px, 96vw) !important;
	}

	#lbm-refresh-layout .lb2-herogrid,
	.lb2 .lb2-herogrid,
	#lbm-refresh-layout .lb2-detailgrid,
	.lb2 .lb2-detailgrid {
		display: grid !important;
		grid-template-columns: minmax(0, 0.95fr) minmax(620px, 1.05fr) !important;
		align-items: stretch !important;
		gap: clamp(32px, 4vw, 72px) !important;
		min-height: calc(100vh - 140px) !important;
	}

	body.page-id-9 #lbm-refresh-layout .lb2-herogrid,
	body.page-id-9 .lb2 .lb2-herogrid,
	body.page-id-9 #lbm-refresh-layout .lb2-detailgrid,
	body.page-id-9 .lb2 .lb2-detailgrid,
	body.page-slug-agent #lbm-refresh-layout .lb2-herogrid,
	body.page-slug-agent .lb2 .lb2-herogrid {
		grid-template-columns: minmax(0, 0.9fr) minmax(700px, 1.1fr) !important;
		min-height: calc(100vh - 130px) !important;
	}

	#lbm-refresh-layout .lb2-herogrid > div:first-child,
	.lb2 .lb2-herogrid > div:first-child,
	#lbm-refresh-layout .lb2-detailgrid > div:first-child,
	.lb2 .lb2-detailgrid > div:first-child {
		display: flex !important;
		flex-direction: column !important;
		justify-content: center !important;
		padding-top: 20px !important;
		padding-bottom: 20px !important;
	}

	#lbm-refresh-layout .lb2-artcase,
	.lb2 .lb2-artcase {
		width: 100% !important;
		height: 100% !important;
		min-height: 680px !important;
		padding: 0 !important;
		overflow: hidden !important;
		border-radius: 28px !important;
		display: flex !important;
		align-items: stretch !important;
		justify-content: stretch !important;
		box-shadow: 0 28px 70px rgba(5, 19, 38, 0.34) !important;
	}

	body.page-id-9 #lbm-refresh-layout .lb2-artcase,
	body.page-id-9 .lb2 .lb2-artcase,
	body.page-slug-agent #lbm-refresh-layout .lb2-artcase,
	body.page-slug-agent .lb2 .lb2-artcase {
		min-height: 760px !important;
	}

	#lbm-refresh-layout .lb2-artcase img,
	.lb2 .lb2-artcase img,
	#lbm-refresh-layout .lb2-artcase picture,
	.lb2 .lb2-artcase picture,
	#lbm-refresh-layout .lb2-artcase svg,
	.lb2 .lb2-artcase svg {
		width: 100% !important;
		height: 100% !important;
		max-width: none !important;
		max-height: none !important;
		object-fit: cover !important;
		object-position: center center !important;
		display: block !important;
		flex: 1 1 auto !important;
	}

	#lbm-refresh-layout .lb2-artcase .wp-block-image,
	.lb2 .lb2-artcase .wp-block-image,
	#lbm-refresh-layout .lb2-artcase figure,
	.lb2 .lb2-artcase figure {
		width: 100% !important;
		height: 100% !important;
		margin: 0 !important;
	}

	#lbm-refresh-layout .lb2-hero h1,
	.lb2 .lb2-hero h1,
	#lbm-refresh-layout .lb2-detail-hero h1,
	.lb2 .lb2-detail-hero h1 {
		max-width: 13ch !important;
		font-size: clamp(3.3rem, 5vw, 5.5rem) !important;
		line-height: 0.95 !important;
	}

	#lbm-refresh-layout .lb2-hero p:not(.lb2-kicker),
	.lb2 .lb2-hero p:not(.lb2-kicker),
	#lbm-refresh-layout .lb2-detail-hero p:not(.lb2-kicker),
	.lb2 .lb2-detail-hero p:not(.lb2-kicker) {
		max-width: 40rem !important;
		font-size: 1.15rem !important;
	}
}

/* ---- former: lb-agent-desktop-hero-v2 (Agent Brennan page, desktop) ---- */
@media (min-width: 980px) {
	body.page-id-9 .lb2 .lbm-head {
		padding: 0 !important;
		overflow: hidden !important;
		background:
			radial-gradient(ellipse at 83% 38%, rgba(36, 103, 204, .43), transparent 55%),
			linear-gradient(118deg, #071326 0%, #0b1b39 53%, #081a34 100%) !important;
	}

	body.page-id-9 .lb2 .lbm-head > .lb2-container.lbm-visual-text {
		width: 100% !important;
		max-width: 1750px !important;
		margin: 0 auto !important;
		padding: clamp(34px, 4.5vw, 76px) !important;
		box-sizing: border-box !important;
		display: grid !important;
		grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr) !important;
		gap: clamp(24px, 3.8vw, 76px) !important;
		align-items: center !important;
		min-height: clamp(610px, calc(100vh - 136px), 950px) !important;
	}

	body.page-id-9 .lb2 .lbm-head > .lb2-container.lbm-visual-text > div:first-child {
		width: 100% !important;
		max-width: 650px !important;
		align-self: center !important;
		position: relative !important;
		z-index: 2 !important;
	}

	body.page-id-9 .lb2 .lbm-head h1 {
		font-size: clamp(3.3rem, 5.2vw, 6.2rem) !important;
		line-height: 1.03 !important;
		letter-spacing: -.055em !important;
		max-width: 11ch !important;
		margin: 19px 0 26px !important;
	}

	body.page-id-9 .lb2 .lbm-head p:not(.lb2-kicker) {
		font-size: clamp(1.04rem, 1.25vw, 1.31rem) !important;
		line-height: 1.65 !important;
		color: #d1e1f3 !important;
		max-width: 590px !important;
	}

	body.page-id-9 .lb2 .lbm-head .lbm-visual-text > .lbm-picture {
		box-sizing: border-box !important;
		display: block !important;
		width: 100% !important;
		height: clamp(525px, 72vh, 850px) !important;
		min-height: 525px !important;
		max-height: 850px !important;
		padding: 0 !important;
		margin: 0 !important;
		overflow: hidden !important;
		border-radius: 30px !important;
		background: radial-gradient(ellipse at 53% 30%, #19457a, #06162b 72%) !important;
		border: 1px solid rgba(114, 194, 251, .3) !important;
		box-shadow: 0 26px 72px rgba(0, 0, 0, .36), 0 0 60px rgba(17, 108, 228, .16) !important;
	}

	body.page-id-9 .lb2 .lbm-head .lbm-visual-text > .lbm-picture > .lbm-illustration,
	body.page-id-9 .lb2 .lbm-head .lbm-visual-text > .lbm-picture > figure {
		display: block !important;
		box-sizing: border-box !important;
		width: 100% !important;
		height: 100% !important;
		max-width: none !important;
		max-height: none !important;
		padding: 0 !important;
		margin: 0 !important;
		overflow: hidden !important;
		border-radius: 0 !important;
	}

	body.page-id-9 .lb2 .lbm-head .lbm-visual-text .lbm-picture .lbm-asset-image {
		display: block !important;
		width: 100% !important;
		height: 100% !important;
		min-height: 100% !important;
		max-width: none !important;
		max-height: none !important;
		object-fit: cover !important;
		object-position: 50% 28% !important;
		aspect-ratio: auto !important;
		margin: 0 !important;
		border-radius: 0 !important;
	}
}

@media (min-width: 980px) and (max-width: 1199px) {
	body.page-id-9 .lb2 .lbm-head > .lb2-container.lbm-visual-text {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
		gap: 22px !important;
		padding: 25px !important;
	}

	body.page-id-9 .lb2 .lbm-head h1 {
		font-size: clamp(3.05rem, 5vw, 4.15rem) !important;
	}

	body.page-id-9 .lb2 .lbm-head .lbm-visual-text > .lbm-picture {
		height: clamp(500px, 67vh, 710px) !important;
		min-height: 500px !important;
	}
}
