/* Gutenberg-native LCS page canvas. */
/* Gutenberg adds content-width constraints to nested Group blocks. The LCS
 * page canvas owns its own full-width section and 1240px shell geometry, so
 * normalise those block-layout rules here. These selectors also repair pages
 * converted with v1.2.0 without requiring a destructive layout reset. */
.lcs-editable-page { width: 100%; max-width: none; }
.lcs-editable-page > * { margin-block-start: 0; }
.lcs-editable-page > :where(.alignfull, .lcs-editable-hero, .lcs-editable-section, .lcs-proof-strip, .lcs-section) {
	width: 100% !important;
	max-width: none !important;
	margin-inline: 0 !important;
}
.lcs-editable-page .wp-block-group,
.lcs-editable-page .wp-block-image,
.lcs-editable-page .wp-block-buttons { margin-top: 0; margin-bottom: 0; }
.lcs-editable-page .wp-block-image img { width: 100%; }
.lcs-editable-page :where(.lcs-editable-hero, .lcs-editable-section).is-layout-constrained > :where(.lcs-editable-hero__media, .lcs-editable-hero__overlay) {
	width: 100% !important;
	max-width: none !important;
	margin-inline: 0 !important;
}
.lcs-editable-page :where(.lcs-editable-hero, .lcs-editable-section).is-layout-constrained > .lcs-shell,
.lcs-editable-page :where(.lcs-editable-hero, .lcs-editable-section) > .lcs-shell {
	width: min(calc(100% - 2.5rem), var(--lcs-shell)) !important;
	max-width: var(--lcs-shell) !important;
	margin-inline: auto !important;
}
.lcs-editable-page .lcs-shell.is-layout-constrained > :where(:not(.alignleft):not(.alignright)) {
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}
.lcs-editable-page .lcs-shell > * { margin-block-start: 0; }

.lcs-editable-section {
	position: relative;
	padding-block: var(--lcs-section);
}
.lcs-editable-section--mist { background: var(--lcs-mist); }
.lcs-editable-section--services { background: var(--lcs-white); }
.lcs-editable-section--projects { background: #f7f8fa; }
.lcs-editable-section--coverage { background: #f7f8fa; }
.lcs-editable-section--faq { background: var(--lcs-white); }
.lcs-editable-section--dark {
	color: #dce2e8;
	background: var(--lcs-black);
}
.lcs-editable-section--dark::before {
	position: absolute;
	inset: 0;
	pointer-events: none;
	content: "";
	opacity: .12;
	background-image: repeating-linear-gradient(118deg, transparent 0 36px, rgba(255,255,255,.16) 36px 37px, transparent 37px 72px);
}
.lcs-editable-section--dark > * { position: relative; }
.lcs-editable-section--dark h2,
.lcs-editable-section--dark h3 { color: var(--lcs-white); }
.lcs-editable-section--dark p { color: #aeb8c3; }
.lcs-editable-section--answer {
	padding-block: clamp(3.25rem, 6vw, 5.25rem);
	background: var(--lcs-yellow);
}

.lcs-editable-section-heading {
	max-width: 780px;
	margin-bottom: clamp(2.25rem, 5vw, 4.25rem) !important;
}
.lcs-editable-section-heading > p:last-child {
	max-width: 680px;
	color: var(--lcs-steel);
	font-size: 1.08rem;
}
.lcs-editable-section--dark .lcs-editable-section-heading > p:last-child { color: #aeb8c3; }

.lcs-editable-buttons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .85rem;
}
.lcs-editable-buttons .wp-block-button__link {
	display: inline-flex;
	min-height: 3.55rem;
	align-items: center;
	justify-content: center;
	padding: .9rem 1.35rem;
	border: 2px solid var(--lcs-yellow);
	border-radius: 0;
	color: var(--lcs-black);
	background: var(--lcs-yellow);
	font-size: .88rem;
	font-weight: 900;
	letter-spacing: .035em;
	line-height: 1.1;
	text-decoration: none;
	text-transform: uppercase;
	transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.lcs-editable-buttons .wp-block-button__link:hover {
	border-color: var(--lcs-white);
	background: var(--lcs-white);
	transform: translateY(-2px);
}
.wp-block-button.is-style-lcs-outline .wp-block-button__link {
	border-color: var(--lcs-black);
	background: transparent;
}
.wp-block-button.is-style-lcs-outline .wp-block-button__link:hover {
	color: var(--lcs-white);
	border-color: var(--lcs-black);
	background: var(--lcs-black);
}
.wp-block-button.is-style-lcs-outline-light .wp-block-button__link {
	color: var(--lcs-white);
	border-color: rgba(255,255,255,.55);
	background: transparent;
}
.wp-block-button.is-style-lcs-outline-light .wp-block-button__link:hover {
	color: var(--lcs-black);
	border-color: var(--lcs-white);
	background: var(--lcs-white);
}

.lcs-editable-hero {
	position: relative;
	min-height: 650px;
	overflow: hidden;
	color: var(--lcs-white);
	background: var(--lcs-black);
}
.lcs-editable-hero--home { min-height: min(820px, calc(100vh - 8rem)); }
.lcs-editable-hero__media {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	overflow: hidden;
}
.lcs-editable-hero__media img,
.lcs-editable-hero__media video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: var(--lcs-hero-focal-x, 50%) var(--lcs-hero-focal-y, 44%);
}
.lcs-editable-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(5,8,12,.96) 0%, rgba(5,8,12,.84) 48%, rgba(5,8,12,.36) 78%, rgba(5,8,12,.2) 100%), linear-gradient(0deg, rgba(5,8,12,.7), transparent 58%);
}
.lcs-editable-hero__media { z-index: 0; }
.lcs-editable-hero__overlay { z-index: 1; }
.lcs-editable-hero .lcs-shell { position: relative; z-index: 2; min-height: inherit; }
.lcs-editable-hero__inner {
	display: grid;
	min-height: inherit;
	grid-template-columns: minmax(0, 1.45fr) minmax(300px, .65fr);
	align-items: end;
	gap: clamp(2rem, 6vw, 6rem);
	padding-block: clamp(5rem, 9vw, 8rem);
}
.lcs-editable-hero--page .lcs-editable-hero__inner {
	grid-template-columns: minmax(0, 1.2fr) minmax(0, .6fr);
	align-items: center;
}
.lcs-editable-hero__copy { max-width: 900px; }
.lcs-editable-hero h1 {
	max-width: 900px;
	color: var(--lcs-white);
	font-size: clamp(3.4rem, 7.8vw, 7.4rem);
	text-transform: uppercase;
}
.lcs-editable-hero--page h1 { font-size: clamp(3rem, 6.4vw, 6rem); }
.lcs-editable-hero__lead {
	max-width: 740px;
	color: #dce4ec;
	font-size: clamp(1.08rem, 1.7vw, 1.35rem);
}
.lcs-editable-hero .lcs-breadcrumbs { margin-bottom: 1.2rem; }
.lcs-editable-hero .lcs-breadcrumbs,
.lcs-editable-hero .lcs-breadcrumbs a { color: #dce4ec; }
.lcs-editable-hero__side {
	padding: clamp(1.5rem, 3vw, 2.4rem);
	border-top: 5px solid var(--lcs-yellow);
	background: rgba(13,17,23,.9);
	box-shadow: var(--lcs-shadow);
	backdrop-filter: blur(12px);
}
.lcs-editable-hero__side h2 {
	color: var(--lcs-white);
	font-size: clamp(1.55rem, 2.3vw, 2.25rem);
}
.lcs-editable-number-list {
	margin: 1.6rem 0 0;
	padding: 0;
	counter-reset: lcs-hero-step;
	list-style: none;
}
.lcs-editable-number-list li {
	display: grid;
	grid-template-columns: 2.5rem 1fr;
	align-items: center;
	gap: .75rem;
	padding: .8rem 0;
	border-bottom: 1px solid rgba(255,255,255,.12);
	color: #d3dbe3;
	counter-increment: lcs-hero-step;
}
.lcs-editable-number-list li::before {
	color: var(--lcs-yellow);
	font-weight: 900;
	content: counter(lcs-hero-step, decimal-leading-zero);
}

.lcs-editable-split,
.lcs-editable-answer,
.lcs-editable-coverage,
.lcs-editable-faq-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(2.5rem, 7vw, 7rem);
	align-items: start;
}
.lcs-editable-split__copy { max-width: 620px; }
.lcs-editable-split__copy > p:not(.lcs-eyebrow) { font-size: 1.08rem; }

.lcs-editable-answer { align-items: center; }
.lcs-editable-answer__copy h2 { font-size: clamp(2rem, 4.5vw, 4rem); }
.lcs-editable-answer__copy > p:not(.lcs-eyebrow) { font-size: 1.08rem; }
.lcs-editable-answer__points {
	padding: clamp(1.5rem, 3vw, 2.25rem);
	border: 2px solid var(--lcs-black);
	background: rgba(255,255,255,.25);
}

.lcs-editable-check-list {
	display: grid;
	gap: .8rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.lcs-editable-check-list li {
	position: relative;
	padding-left: 1.75rem;
	font-weight: 800;
}
.lcs-editable-check-list li::before {
	position: absolute;
	top: .45em;
	left: 0;
	width: .7rem;
	height: .7rem;
	content: "";
	background: var(--lcs-yellow);
	box-shadow: 4px 4px 0 var(--lcs-black);
}
.lcs-editable-section--answer .lcs-editable-check-list li::before { background: var(--lcs-black); box-shadow: 4px 4px 0 rgba(255,255,255,.55); }
.lcs-editable-checklist-card {
	padding: clamp(1.5rem, 3vw, 2.4rem);
	border-top: 5px solid var(--lcs-yellow);
	background: var(--lcs-black);
	box-shadow: var(--lcs-shadow);
}
.lcs-editable-checklist-card h3 { color: var(--lcs-white); }
.lcs-editable-checklist-card .lcs-editable-check-list li { color: #dce3ea; }

.lcs-editable-feature-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}
.lcs-editable-feature-card {
	min-height: 140px;
	padding: 1.4rem;
	border: 1px solid var(--lcs-line);
	background: var(--lcs-white);
}
.lcs-editable-feature-card h3 { margin: 0; font-size: 1rem; letter-spacing: -.02em; }
.lcs-editable-card-number {
	display: block;
	margin-bottom: 1.5rem;
	color: #7a6100;
	font-size: .8rem;
	font-weight: 900;
}

.lcs-editable-process-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
	gap: 1px;
	border: 1px solid var(--lcs-line);
	background: var(--lcs-line);
}
.lcs-editable-process-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lcs-editable-process-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lcs-editable-process-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lcs-editable-process-grid--1 { grid-template-columns: 1fr; }
@supports selector(:has(*)) {
	.lcs-editable-process-grid:has(> :nth-child(1):last-child) { grid-template-columns: 1fr; }
	.lcs-editable-process-grid:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.lcs-editable-process-grid:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.lcs-editable-process-grid:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.lcs-editable-process-card {
	min-height: 250px;
	padding: clamp(1.5rem, 3vw, 2.2rem);
	background: var(--lcs-white);
}
.lcs-editable-process-card h3 { font-size: 1.2rem; }
.lcs-editable-process-card > p:last-child { color: var(--lcs-steel); font-size: .9rem; }
.lcs-editable-section--dark .lcs-editable-process-grid { border-color: #303a45; background: #303a45; }
.lcs-editable-section--dark .lcs-editable-process-card { background: var(--lcs-charcoal); }
.lcs-editable-section--dark .lcs-editable-card-number { color: var(--lcs-yellow); }

.lcs-editable-coverage { align-items: center; }
.lcs-editable-coverage__copy { max-width: 560px; }

.lcs-editable-faq-layout { grid-template-columns: .72fr 1.28fr; }
.lcs-editable-faq-intro { position: sticky; top: 8rem; }
.lcs-editable-faq-intro > p:not(.lcs-eyebrow) { color: var(--lcs-steel); }
.lcs-editable-faq-link { font-size: .85rem; font-weight: 800; }
.lcs-editable-faq-list { border-top: 1px solid var(--lcs-line); }
.lcs-editable-faq-item { margin: 0; border-bottom: 1px solid var(--lcs-line); }
.lcs-editable-faq-item summary {
	position: relative;
	padding: 1.45rem 3rem 1.45rem 0;
	color: var(--lcs-black);
	font-size: 1.05rem;
	font-weight: 900;
	cursor: pointer;
	list-style: none;
}
.lcs-editable-faq-item summary::-webkit-details-marker { display: none; }
.lcs-editable-faq-item summary::after {
	position: absolute;
	top: 50%;
	right: .2rem;
	width: 1.2rem;
	height: 1.2rem;
	content: "+";
	font-size: 1.4rem;
	font-weight: 700;
	line-height: 1;
	transform: translateY(-50%);
}
.lcs-editable-faq-item[open] summary::after { content: "–"; }
.lcs-editable-faq-item > p { max-width: 760px; padding: 0 3rem 1.4rem 0; color: var(--lcs-steel); }

.lcs-section--contact-details { background: var(--lcs-mist); }
.lcs-contact-details {
	display: grid;
	grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
	gap: clamp(2.5rem, 7vw, 7rem);
	align-items: center;
}
.lcs-contact-details__intro { max-width: 560px; }
.lcs-contact-details__cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}
.lcs-contact-detail-card {
	display: flex;
	min-height: 145px;
	flex-direction: column;
	justify-content: space-between;
	padding: 1.4rem;
	border: 1px solid var(--lcs-line);
	background: var(--lcs-white);
	text-decoration: none;
}
.lcs-contact-detail-card:last-child { grid-column: 1 / -1; }
.lcs-contact-detail-card strong {
	color: #745c00;
	font-size: .72rem;
	letter-spacing: .12em;
	text-transform: uppercase;
}
.lcs-contact-detail-card span { color: var(--lcs-black); font-size: 1.08rem; font-weight: 850; }
.lcs-contact-detail-card[href]:hover { border-color: var(--lcs-black); box-shadow: var(--lcs-shadow); }

.lcs-block-breadcrumbs { padding-top: 1rem; }

/* Editor canvas: make full-width sections legible without changing front-end output. */
.editor-styles-wrapper .lcs-editable-hero,
.editor-styles-wrapper .lcs-editable-section,
.editor-styles-wrapper .lcs-proof-strip,
.editor-styles-wrapper .lcs-section--accreditations,
.editor-styles-wrapper .lcs-section--calculator,
.editor-styles-wrapper .lcs-section--cta,
.editor-styles-wrapper .lcs-section--contact-details {
	max-width: none !important;
}
.editor-styles-wrapper .lcs-editable-hero { min-height: 620px; }
.editor-styles-wrapper :where(.lcs-editable-hero, .lcs-editable-section).is-layout-constrained > .lcs-shell,
.editor-styles-wrapper :where(.lcs-editable-hero, .lcs-editable-section) > .lcs-shell {
	width: min(calc(100% - 2.5rem), var(--lcs-shell)) !important;
	max-width: var(--lcs-shell) !important;
	margin-inline: auto !important;
}
.editor-styles-wrapper .lcs-shell.is-layout-constrained > :where(:not(.alignleft):not(.alignright)) {
	max-width: none !important;
	margin-inline: 0 !important;
}
.editor-styles-wrapper .lcs-editable-hero__media { z-index: 0; }
.editor-styles-wrapper .lcs-editable-hero__overlay { z-index: 1; }
.editor-styles-wrapper .lcs-editable-hero > .lcs-shell { z-index: 2; }
.editor-styles-wrapper .lcs-editable-hero__media .components-resizable-box__container,
.editor-styles-wrapper .lcs-editable-hero__media .components-resizable-box__container img { width: 100% !important; height: 100% !important; }

@media (max-width: 1120px) {
	.lcs-editable-process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
	.lcs-editable-hero__inner,
	.lcs-editable-split,
	.lcs-editable-answer,
	.lcs-editable-coverage,
	.lcs-editable-faq-layout,
	.lcs-contact-details { grid-template-columns: 1fr; }
	.lcs-editable-hero--home { min-height: 760px; }
	.lcs-editable-hero__side { max-width: 620px; }
	.lcs-editable-faq-intro { position: static; }
}

@media (max-width: 680px) {
	.lcs-editable-page :where(.lcs-editable-hero, .lcs-editable-section).is-layout-constrained > .lcs-shell,
	.lcs-editable-page :where(.lcs-editable-hero, .lcs-editable-section) > .lcs-shell {
		width: min(calc(100% - 1.5rem), var(--lcs-shell)) !important;
	}
	.lcs-editable-hero,
	.lcs-editable-hero--home { min-height: 690px; }
	.lcs-editable-hero__inner { min-height: 690px; padding-block: 4rem 2.5rem; }
	.lcs-editable-hero h1,
	.lcs-editable-hero--page h1 { font-size: clamp(2.55rem, 12vw, 4rem); overflow-wrap: anywhere; }
	.lcs-editable-hero__side { display: none; }
	.lcs-editable-buttons { align-items: stretch; flex-direction: column; }
	.lcs-editable-buttons .wp-block-button,
	.lcs-editable-buttons .wp-block-button__link { width: 100%; }
	.lcs-editable-feature-grid,
	.lcs-editable-process-grid,
	.lcs-contact-details__cards { grid-template-columns: 1fr; }
	.lcs-contact-detail-card:last-child { grid-column: auto; }
	.lcs-editable-process-card { min-height: 210px; }
	.lcs-editable-faq-item > p { padding-right: 0; }
}
