/*
 * JL Boggio internal technical pages.
 *
 * Shared visual foundation for semantic, content-managed landing pages.
 * Keep this file independent from Elementor so existing builder data remains
 * available as a rollback path while priority pages are modernized.
 */

.jlb-internal-template .site-content,
.jlb-internal-template .site-main,
.jlb-internal-template article,
.jlb-internal-template .entry-content {
	margin: 0 !important;
	padding: 0 !important;
}

.jlb-internal-template .site-content > .ast-container {
	max-width: none;
	padding-inline: 0;
}

.jlb-internal-template .entry-header {
	display: none;
}

.jlb-internal-page {
	--jlb-navy: #07111d;
	--jlb-navy-soft: #102030;
	--jlb-accent: #b24a3f;
	--jlb-ink: #15212d;
	--jlb-muted: #5f6b76;
	--jlb-line: #dce3e8;
	--jlb-surface: #f3f6f8;
	--jlb-white: #ffffff;
	background: var(--jlb-white);
	color: var(--jlb-ink);
}

.jlb-internal-shell {
	width: min(100% - 3rem, 1180px);
	margin-inline: auto;
}

.jlb-internal-breadcrumbs {
	position: relative;
	z-index: 5;
	border-bottom: 1px solid rgba(255, 255, 255, 0.09);
	background: var(--jlb-navy);
	color: rgba(255, 255, 255, 0.62);
}

.jlb-internal-breadcrumbs .jlb-internal-shell {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	min-height: 48px;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.jlb-internal-breadcrumbs a {
	color: rgba(255, 255, 255, 0.78);
	text-decoration: none;
}

.jlb-internal-breadcrumbs a:hover {
	color: var(--jlb-white);
}

.jlb-internal-breadcrumbs a:focus-visible,
.jlb-internal-page__content a:focus-visible {
	outline: 3px solid var(--jlb-accent);
	outline-offset: 3px;
}

.jlb-internal-page__content > section {
	position: relative;
	width: min(100% - 3rem, 1180px);
	margin-inline: auto;
	padding-block: clamp(4rem, 7vw, 6.5rem);
}

.jlb-internal-page__content > section:first-child {
	isolation: isolate;
	width: 100%;
	max-width: none;
	min-height: clamp(520px, 68vh, 700px);
	padding: clamp(5rem, 9vw, 8rem) max(1.5rem, calc((100vw - 1180px) / 2));
	color: var(--jlb-white);
	background:
		radial-gradient(circle at 78% 32%, rgba(178, 74, 63, 0.18), transparent 26%),
		linear-gradient(112deg, #07111d 0%, #0a1724 58%, #102332 100%);
	overflow: hidden;
}

.jlb-internal-page__content > section:first-child::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -2;
	pointer-events: none;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
	background-size: 72px 72px;
	mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.75) 62%, transparent 100%);
}

.jlb-internal-page__content > section:first-child::after {
	content: "CHILLER";
	position: absolute;
	right: -0.04em;
	bottom: -0.18em;
	z-index: -1;
	font-size: clamp(6rem, 16vw, 14rem);
	font-weight: 800;
	line-height: 0.8;
	letter-spacing: -0.08em;
	color: rgba(255, 255, 255, 0.035);
	white-space: nowrap;
}

.jlb-internal-page__content > section:first-child > * {
	max-width: 770px;
}

.jlb-internal-page__content > section:first-child > p:first-child {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0 0 1.2rem;
	font-size: 0.8rem;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.78);
}

.jlb-internal-page__content > section:first-child > p:first-child::before {
	content: "";
	width: 34px;
	height: 2px;
	background: var(--jlb-accent);
}

.jlb-internal-page__content > section:first-child h1 {
	max-width: 13ch;
	margin: 0;
	font-size: clamp(2.8rem, 5vw, 5rem);
	font-weight: 700;
	line-height: 0.98;
	letter-spacing: -0.045em;
	color: var(--jlb-white);
	text-wrap: balance;
}

.jlb-internal-page__content > section:first-child h1 + p {
	max-width: 66ch;
	margin: clamp(1.4rem, 2.5vw, 2rem) 0 0;
	font-size: clamp(1.05rem, 1.6vw, 1.24rem);
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.8);
}

.jlb-internal-page__content > section:first-child > p:last-child,
.jlb-internal-page__content > section:last-child > p:last-child {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
	margin-top: 2rem;
}

.jlb-internal-page__content > section:first-child > p:last-child a,
.jlb-internal-page__content > section:last-child > p:last-child a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 0.85rem 1.25rem;
	border: 1px solid transparent;
	border-radius: 4px;
	font-size: 0.96rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.jlb-internal-page__content > section:first-child > p:last-child a:first-child,
.jlb-internal-page__content > section:last-child > p:last-child a:first-child {
	background: var(--jlb-white);
	color: var(--jlb-navy);
}

.jlb-internal-page__content > section:first-child > p:last-child a:last-child {
	border-color: rgba(255, 255, 255, 0.36);
	background: rgba(255, 255, 255, 0.04);
	color: var(--jlb-white);
}

.jlb-internal-page__content > section:first-child > p:last-child a:hover,
.jlb-internal-page__content > section:last-child > p:last-child a:hover {
	transform: translateY(-2px);
}

.jlb-internal-page__content > section:not(:first-child) h2 {
	max-width: 20ch;
	margin: 0 0 1.5rem;
	font-size: clamp(2rem, 3.4vw, 3.25rem);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.035em;
	color: var(--jlb-navy);
	text-wrap: balance;
}

.jlb-internal-page__content > section:not(:first-child) h2::before {
	content: "";
	display: block;
	width: 44px;
	height: 3px;
	margin-bottom: 1rem;
	background: var(--jlb-accent);
}

.jlb-internal-page__content > section p,
.jlb-internal-page__content > section li {
	font-size: clamp(1rem, 1.2vw, 1.08rem);
	line-height: 1.72;
}

.jlb-internal-page__content > section:not(:first-child) > p {
	max-width: 76ch;
	color: var(--jlb-muted);
}

.jlb-internal-page__content > section:nth-child(odd):not(:first-child) {
	width: 100%;
	max-width: none;
	padding-inline: max(1.5rem, calc((100vw - 1180px) / 2));
	background: var(--jlb-surface);
}

.jlb-internal-page__content h3 {
	max-width: 32ch;
	margin: 2.5rem 0 0.8rem;
	font-size: clamp(1.25rem, 1.8vw, 1.6rem);
	font-weight: 700;
	line-height: 1.25;
	color: var(--jlb-navy);
}

.jlb-internal-page__content ul,
.jlb-internal-page__content ol {
	max-width: 820px;
	margin: 1.25rem 0 0;
	padding-left: 1.35rem;
}

.jlb-internal-page__content li {
	margin-bottom: 0.65rem;
	padding-left: 0.25rem;
	color: #354452;
}

.jlb-internal-page__content li::marker {
	color: var(--jlb-accent);
	font-weight: 700;
}

.jlb-internal-page__content > section:nth-child(3) h3 {
	padding-top: 1.6rem;
	border-top: 1px solid var(--jlb-line);
}

.jlb-internal-page__content a:not(.jlb-internal-breadcrumbs a) {
	font-weight: 650;
	color: #81362f;
	text-underline-offset: 0.18em;
}

.jlb-internal-page__content > section:last-child {
	isolation: isolate;
	width: 100%;
	max-width: none;
	padding-inline: max(1.5rem, calc((100vw - 1180px) / 2));
	color: var(--jlb-white);
	background: var(--jlb-navy);
	overflow: hidden;
}

.jlb-internal-page__content > section:last-child::after {
	content: "";
	position: absolute;
	top: -120px;
	right: max(1.5rem, calc((100vw - 1180px) / 2));
	width: 360px;
	height: 360px;
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 50%;
	box-shadow: 0 0 0 70px rgba(255, 255, 255, 0.025), 0 0 0 140px rgba(255, 255, 255, 0.018);
	pointer-events: none;
}

.jlb-internal-page__content > section:last-child h2,
.jlb-internal-page__content > section:last-child h2::before {
	color: var(--jlb-white);
}

.jlb-internal-page__content > section:last-child h2::before {
	background: var(--jlb-accent);
}

.jlb-internal-page__content > section:last-child > p {
	color: rgba(255, 255, 255, 0.72);
}

.jlb-internal-page__content > section:last-child > p:last-child a:first-child {
	background: var(--jlb-white);
	color: var(--jlb-navy);
}

.jlb-internal-page__content > section:last-child > p:last-child a:last-child {
	border-color: rgba(255, 255, 255, 0.36);
	background: transparent;
	color: var(--jlb-white);
}

@media (max-width: 760px) {
	.jlb-internal-shell,
	.jlb-internal-page__content > section {
		width: min(100% - 2rem, 1180px);
	}

	.jlb-internal-breadcrumbs .jlb-internal-shell {
		min-height: 44px;
		overflow-x: auto;
		white-space: nowrap;
	}

	.jlb-internal-page__content > section:first-child,
	.jlb-internal-page__content > section:nth-child(odd):not(:first-child),
	.jlb-internal-page__content > section:last-child {
		padding-inline: 1rem;
	}

	.jlb-internal-page__content > section:first-child {
		min-height: 560px;
		padding-top: 4.5rem;
		padding-bottom: 4rem;
	}

	.jlb-internal-page__content > section:first-child h1 {
		font-size: clamp(2.5rem, 12vw, 3.7rem);
	}

	.jlb-internal-page__content > section:first-child::after {
		right: -0.02em;
		bottom: 0.05em;
		font-size: 27vw;
	}

	.jlb-internal-page__content > section:first-child > p:last-child,
	.jlb-internal-page__content > section:last-child > p:last-child {
		align-items: stretch;
		flex-direction: column;
	}

	.jlb-internal-page__content > section:first-child > p:last-child a,
	.jlb-internal-page__content > section:last-child > p:last-child a {
		width: 100%;
	}

	.jlb-internal-page__content > section {
		padding-block: 3.75rem;
	}

	.jlb-internal-page__content > section:not(:first-child) h2 {
		max-width: none;
	}

	.jlb-internal-page__content > section:last-child::after {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.jlb-internal-page__content > section:first-child > p:last-child a,
	.jlb-internal-page__content > section:last-child > p:last-child a {
		transition: none;
	}
}
