/** Global shell only. Existing design tokens remain the source of sizing. */
/* Hello's main and Elementor Full Width's page root are direct body children. */
body.lv-shell-active {
	--lv-shell-toolbar-offset: 0px;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100dvh;
}

body.lv-shell-active > main#content.site-main,
body.lv-shell-active > .elementor[data-elementor-type="wp-page"] {
	flex: 1 0 auto;
	min-width: 0;
}

body.lv-shell-active > .lv-site-header,
body.lv-shell-active > .lv-site-footer {
	flex: 0 0 auto;
}

body.lv-shell-active > .lv-site-footer { margin-block-start: auto; }

/* WordPress reserves this space on html, outside the flex body's minimum height. */
body.lv-shell-active.admin-bar {
	--lv-shell-toolbar-offset: var(--wp-admin--admin-bar--height, 32px);
	min-height: calc(100vh - var(--wp-admin--admin-bar--height, 32px));
	min-height: calc(100dvh - var(--wp-admin--admin-bar--height, 32px));
}

@media (max-width: 782px) {
	body.lv-shell-active.admin-bar {
		--lv-shell-toolbar-offset: var(--wp-admin--admin-bar--height, 46px);
		min-height: calc(100vh - var(--wp-admin--admin-bar--height, 46px));
		min-height: calc(100dvh - var(--wp-admin--admin-bar--height, 46px));
	}
}

.lv-site-header,
.lv-site-footer {
	font-family: var(--lv-body-family);
	font-size: var(--lv-body-size);
	line-height: var(--lv-body-line-height);
}

.lv-site-header {
	position: sticky;
	top: var(--lv-shell-toolbar-offset, 0px);
	z-index: 100;
	background: #FFFFFF;
	color: #0A1F44;
	border-bottom: var(--lv-border-width) solid #E5E7EB;
}

.lv-header-inner,
.lv-header-panel,
.lv-footer-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--lv-space-6);
}

.lv-header-inner { padding-block: var(--lv-space-4); }
.lv-header-panel { flex: 1 1 100%; }
.lv-site-brand { color: inherit; text-decoration: none; font-weight: 700; }
.lv-site-logo { display: block; max-width: min(12rem, 60vw); width: auto; height: auto; max-height: 3rem; }
.lv-site-header .lv-site-brand { margin-inline-end: auto; }
.lv-site-header nav { flex: 1 1 100%; }
.lv-site-header ul,
.lv-site-footer ul { list-style: none; margin: 0; padding: 0; }
.lv-site-header li { position: relative; }
.lv-site-header a:not(.lv-btn-base),
.lv-site-footer a { color: inherit; text-decoration: none; }
.lv-site-header nav a,
.lv-site-footer nav a { display: inline-block; padding-block: var(--lv-space-2); font-family: var(--lv-nav-family); font-weight: var(--lv-nav-weight); font-size: var(--lv-nav-size); }
/* Closed from first paint, before the disclosure script creates its buttons. */
.lv-site-header nav .sub-menu { display: none; padding-inline-start: var(--lv-space-4); }
.lv-site-header[data-nav-ready] nav .sub-menu:not([hidden]) { display: block; }
.lv-site-footer a:hover { text-decoration: underline; }
.lv-site-header .lv-project-cta { text-decoration: none; }
.lv-menu-toggle { appearance: none; background: #FFFFFF; color: #0A1F44; border: var(--lv-border-width) solid #E5E7EB; border-radius: var(--lv-radius-sm); min-width: 2.75rem; min-height: 2.75rem; font: inherit; cursor: pointer; }
.lv-menu-toggle { padding-inline: var(--lv-space-4); }
/* Outrank Hello's button reset even when the theme stylesheet loads later. */
.lv-site-header button.lv-submenu-toggle { appearance: none; display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; margin-inline-start: 0.125rem; padding: 0; width: 2.75rem; height: 2.75rem; min-width: 2.75rem; min-height: 2.75rem; background: transparent; color: #0A1F44; border: 0; border-radius: var(--lv-radius-sm); font: inherit; line-height: 1; cursor: pointer; transition: none; }
.lv-site-header button.lv-submenu-toggle::before { content: ''; display: block; flex: 0 0 auto; width: 0.5rem; height: 0.5rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-0.125rem) rotate(45deg); }
.lv-site-header button.lv-submenu-toggle[aria-expanded="true"]::before { transform: translateY(0.125rem) rotate(225deg); }
.lv-site-header button.lv-submenu-toggle:hover { background: transparent; color: #E11A32; }
.lv-site-header button.lv-submenu-toggle:focus { background: transparent; }
.lv-site-header [hidden] { display: none !important; }
.lv-site-header a:focus-visible,
.lv-site-header button:focus-visible,
.lv-site-footer a:focus-visible { outline: 2px solid #E11A32; outline-offset: 3px; box-shadow: var(--lv-focus-ring); }
.lv-site-footer { background: #0A1F44; color: #FFFFFF; border-top: 1px solid rgba(255,255,255,.18); padding-block: clamp(3rem,5vw,4.5rem) 1.5rem; }
.lv-footer-grid { display: grid; grid-template-columns: minmax(0,40%) minmax(0,1.2fr) minmax(0,1fr) minmax(0,.85fr); gap: clamp(1rem,2.2vw,2rem); align-items: start; }
.lv-footer-grid > * { min-width: 0; }
.lv-footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; }
.lv-site-footer .lv-footer-logo { display: block; width: 12rem; max-width: 100%; height: auto; }
.lv-footer-statement { margin: 0; max-width: 27rem; color: rgba(255,255,255,.78); font-size: .9375rem; line-height: 1.7; }
.lv-footer-contact { display: flex; flex-direction: column; gap: 0; font-size: .875rem; font-style: normal; overflow-wrap: anywhere; }
.lv-footer-contact a, .lv-site-footer a.lv-footer-connect { display: inline-flex; align-items: center; min-height: 44px; }
.lv-footer-contact span { color: rgba(255,255,255,.78); }
.lv-footer-heading { margin: 0 0 .75rem; font-family: var(--lv-h4-family); font-size: 1rem; font-weight: 600; line-height: 1.5; color: #FFFFFF; }
.lv-site-footer nav a { box-sizing: border-box; display: flex; align-items: center; min-height: 44px; padding-block: .5rem; font-size: .875rem; font-weight: 400; line-height: 1.55; color: rgba(255,255,255,.82); overflow-wrap: anywhere; }
.lv-site-footer a.lv-footer-connect { gap: .5rem; font-size: .875rem; color: rgba(255,255,255,.82); }
.lv-footer-social { display: flex; flex-direction: column; }
.lv-footer-connect svg { flex: 0 0 1.125rem; width: 1.125rem; height: 1.125rem; }
.lv-footer-wordmark { padding-block: clamp(2.5rem,5vw,4rem); text-align: center; color: #FFFFFF; }
/* Both lines share a scalable unit; tracking is proportional, never inserted spaces. */
.lv-footer-wordmark-lockup { display: inline-flex; flex-direction: column; align-items: center; max-width: 100%; font-size: clamp(2.35rem,12vw,10.75rem); }
.lv-footer-wordmark-lockup > span { display: block; font-family: var(--lv-h1-family); font-weight: 800; font-size: 1em; line-height: 1.1; letter-spacing: -.035em; white-space: nowrap; }
.lv-footer-wordmark-lockup small { display: block; margin-top: .55em; padding-left: .515em; font-family: var(--lv-body-family); font-weight: 400; font-size: .24em; line-height: 1.5; letter-spacing: .515em; white-space: nowrap; color: rgba(255,255,255,.78); }
.lv-footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 2rem; border-top: 1px solid rgba(255,255,255,.2); padding-block: 1.25rem .5rem; }
.lv-footer-copyright { margin: 0; font-size: .8125rem; color: rgba(255,255,255,.78); }
.lv-footer-legal { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.lv-site-footer .lv-footer-legal a { font-size: .8125rem; }
@media (max-width: 63.999rem) { .lv-footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 2.5rem 2rem; } }
@media (max-width: 47.999rem) { .lv-footer-grid { grid-template-columns: minmax(0,1fr); gap: 2rem; } .lv-footer-bottom { align-items: flex-start; flex-direction: column; } }
.lv-skip-link { position: absolute; inset-inline-start: var(--lv-gutter); top: 0; transform: translateY(-200%); padding: var(--lv-space-3) var(--lv-space-4); background: #FFFFFF; color: #0A1F44; z-index: 1000; }
.lv-skip-link:focus { transform: none; outline: 2px solid #E11A32; }
.admin-bar .lv-skip-link { top: var(--wp-admin--admin-bar--height, 32px); }

/* Keep fragment and keyboard destinations clear of the measured sticky shell. */
html:has(> body.lv-shell-active) { scroll-padding-top: var(--lv-shell-scroll-offset, 7rem); }
.lv-main-target { scroll-margin-top: var(--lv-shell-scroll-offset, 7rem); }
.lv-page-top { height: 0; flex: 0 0 0; scroll-margin: 0; }
.lv-site-footer { position: relative; }
.lv-site-footer a.lv-back-to-top { position: absolute; inset-block-start: -1.375rem; inset-inline-end: var(--lv-gutter); display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; background: #FFFFFF; color: #0A1F44; border: var(--lv-border-width) solid #E5E7EB; border-radius: var(--lv-radius-sm); text-decoration: none; }
.lv-back-to-top svg { width: 1.25rem; height: 1.25rem; }
@media (max-width: 63.999rem) {
	.lv-site-header:has(.lv-menu-toggle[aria-expanded="true"]) { max-height: calc(100vh - var(--lv-shell-toolbar-offset, 0px)); max-height: calc(100dvh - var(--lv-shell-toolbar-offset, 0px)); overflow-y: auto; }
}

@media (min-width: 64rem) {
	.lv-site-header button.lv-submenu-toggle { width: 1.5rem; height: 1.5rem; min-width: 1.5rem; min-height: 1.5rem; }
	.lv-header-inner { flex-wrap: nowrap; }
	.lv-header-panel { flex: 1 1 auto; justify-content: flex-end; }
	.lv-site-header nav { flex: 0 1 auto; }
	.lv-primary-menu { display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--lv-space-5); }
	.lv-site-header .sub-menu { position: absolute; inset-inline-start: 0; top: 100%; min-width: 16rem; max-width: min(22rem, 90vw); padding: var(--lv-space-3); background: #FFFFFF; border: var(--lv-border-width) solid #E5E7EB; border-radius: var(--lv-radius-sm); z-index: 20; }
	.lv-site-header .sub-menu .sub-menu { position: static; min-width: 0; border: 0; }
}

/* Shared decorative action artwork: fixed local SVG masks, no external requests. */
.lv-ui-icon {
	display: inline-block;
	flex: 0 0 1.0625rem;
	width: 1.0625rem;
	height: 1.0625rem;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16m-6-6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16m-6-6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform 180ms ease;
}
.lv-project-cta { gap: .5rem; }
body.lv-shell-active a:has(.lv-ui-icon),
body.lv-shell-active a:has(> .e-svg-base) { text-decoration: none; }
@media (hover: hover) {
	body.lv-shell-active a:hover .lv-ui-icon { transform: translateX(3px); }
}

/* Navigation uses surfaces; current page stays identifiable without hover. */
.lv-site-header nav a {
	padding: .5rem .625rem;
	border-radius: var(--lv-radius-sm);
	transition: color 180ms ease, background-color 180ms ease;
}
.lv-site-header nav a:hover { color: #0A1F44; background: #F7F8FA; text-decoration: none; }
.lv-site-header nav a[aria-current="page"],
.lv-site-header nav .current-menu-item > a { color: #FFFFFF; background: #0A1F44; }
.lv-site-header nav li:has(> .lv-submenu-toggle[aria-expanded="true"]) > a { color: #0A1F44; background: #F7F8FA; }
.lv-site-header nav li.current-menu-item:has(> .lv-submenu-toggle[aria-expanded="true"]) > a { color: #FFFFFF; background: #0A1F44; }
.lv-site-header button.lv-submenu-toggle:hover,
.lv-site-header button.lv-submenu-toggle[aria-expanded="true"] { color: #0A1F44; background: #F7F8FA; }
.lv-site-header nav .sub-menu a { display: block; }
.lv-site-header .lv-mega-links { list-style: none; margin: 0; padding: 0; }
.lv-site-header .lv-mega-intro, .lv-site-header .lv-mega-icon { display: none; }
.lv-mega-group { margin-block: .5rem; }
.lv-mega-label { margin: 0; padding: .375rem .625rem; font-weight: 700; color: #0A1F44; }
.lv-site-header nav .lv-mega-overview > a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
	background: #F7F8FA;
	color: #0A1F44;
	font-weight: 700;
}
.lv-mega-arrow {
	display: grid;
	place-items: center;
	flex: 0 0 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	color: #FFFFFF;
	background: #0A1F44;
}
@media (min-width: 64rem) {
	.lv-site-header nav .lv-services-parent { position: static; }
	.lv-site-header[data-nav-ready] nav .lv-services-mega:not([hidden]) {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0 1.25rem;
		inset-inline: 0;
		margin-inline: auto;
		width: min(56rem, calc(100vw - 3rem));
		box-sizing: border-box;
		min-width: 0;
		max-width: none;
		padding: 1.125rem 1.375rem;
		border-radius: 1.125rem;
		box-shadow: 0 1.125rem 3rem rgb(10 31 68 / .16);
	}
	.lv-site-header .lv-mega-intro {
		display: block;
		grid-column: 1 / -1;
		box-sizing: border-box;
		min-height: 7.5rem;
		padding: 1rem 31% .875rem 0;
		border-bottom: 1px solid #E5E7EB;
		background: url('../images/services-mega-laptop.webp') right center / min(29%, 13.75rem) auto no-repeat;
	}
	.lv-mega-title {
		margin: 0 0 .375rem;
		font-family: var(--lv-h1-family);
		font-weight: 800;
		font-size: 1.625rem;
		line-height: 1.15;
		letter-spacing: -.035em;
		color: #0A1F44;
	}
	.lv-mega-title span { color: #E11A32; }
	.lv-mega-subtitle { margin: 0; font-size: .875rem; line-height: 1.4; color: #0A1F44; }
	.lv-mega-group {
		display: grid;
		grid-template-columns: 2.75rem minmax(0, 1fr);
		grid-template-rows: auto 1fr;
		column-gap: .625rem;
		margin: 0;
		padding: .75rem 0;
		border-bottom: 1px solid #E5E7EB;
	}
	.lv-site-header .lv-mega-icon {
		display: grid;
		place-items: center;
		grid-row: span 2;
		width: 2.75rem;
		height: 2.75rem;
		border-radius: var(--lv-radius-sm);
		color: #0A1F44;
		background: rgb(225 26 50 / .08);
		font-size: 1.5rem;
		font-weight: 700;
	}
	.lv-mega-icon svg { width: 1.375rem; height: 1.375rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
	.lv-mega-label { padding: .125rem .625rem; font-size: 1rem; line-height: 1.25; }
	.lv-site-header nav .lv-mega-links a { padding-block: .1875rem; font-size: .875rem; line-height: 1.35; font-weight: 500; }
	.lv-mega-overview { grid-column: 1 / -1; margin-top: .75rem; }
	.lv-site-header nav .lv-mega-overview > a { padding: .375rem .75rem; font-size: .9375rem; }
	.lv-mega-arrow { flex-basis: 2rem; height: 2rem; }
}
@media (min-width: 64rem) and (max-height: 40rem) {
	.lv-site-header[data-nav-ready] nav .lv-services-mega:not([hidden]) {
		max-height: calc(100dvh - var(--lv-shell-scroll-offset, 7rem));
		overflow-y: auto;
		overscroll-behavior: contain;
	}
}
@media (min-width: 64rem) {
	.lv-primary-menu { column-gap: .25rem; }
}
@media (max-width: 63.999rem) {
	.lv-site-header nav a { min-height: 44px; padding: .625rem .75rem; }
}

/* Body prose keeps a persistent weight and colour distinction, without a browser underline. */
body.lv-shell-active :is(.entry-content, .page-content, .elementor) :is(p, li) a:not([class]),
body.lv-shell-active .elementor a.e-paragraph-link-base {
	color: #E11A32;
	font-weight: 600;
	text-decoration: none;
}
body.lv-shell-active :is(.entry-content, .page-content, .elementor) :is(p, li) a:not([class]):hover,
body.lv-shell-active .elementor a.e-paragraph-link-base:hover { color: #0A1F44; text-decoration: underline; text-underline-offset: .2em; }
body.lv-shell-active :is(.elementor, .entry-content, .page-content) a:focus-visible {
	outline: 2px solid #E11A32;
	outline-offset: 3px;
	box-shadow: var(--lv-focus-ring);
}
@media (prefers-reduced-motion: reduce) {
	.lv-ui-icon, .lv-site-header nav a { transition: none; }
	body.lv-shell-active a:hover .lv-ui-icon { transform: none; }
}

/* Atomic action icons remain native Elementor elements; only shared motion lives here. */
body.lv-shell-active a > .e-svg-base:has(path[d^="M4 12h16"]) { transition: transform 180ms ease; }
@media (hover: hover) { body.lv-shell-active a:hover > .e-svg-base:has(path[d^="M4 12h16"]) { transform: translateX(3px); } }
@media (prefers-reduced-motion: reduce) { body.lv-shell-active a > .e-svg-base:has(path[d^="M4 12h16"]) { transition: none; } body.lv-shell-active a:hover > .e-svg-base:has(path[d^="M4 12h16"]) { transform: none; } }

/* Elementor normalizes root SVG fill; preserve these two outline artworks. */
body.lv-shell-active .e-svg-base svg:has(> path[d^="M4 12h16"]),
body.lv-shell-active .e-svg-base svg:has(> path[d="m3 6 9 7 9-7"]) { fill: none; }

.lv-site-footer .lv-footer-menu a { border-radius: var(--lv-radius-sm); transition: background-color 180ms ease, color 180ms ease; }
.lv-site-footer .lv-footer-menu a:hover { color: #FFFFFF; background-color: rgba(255,255,255,.06); text-decoration: none; }
@media (prefers-reduced-motion: reduce) { .lv-site-footer .lv-footer-menu a { transition: none; } }
