/*
 * Trade Techxou — logistics templates.
 *
 * Loaded after style.css on pages that use a "Logistics:" template (or on the
 * whole site when the Customizer's Site type is Logistics). Shared components
 * (buttons, form fields, sections) come from style.css, the site header and
 * footer from assets/home/css/chrome.css.
 *
 * Inner pages follow the home page design (assets/home/css/styles.css): the
 * logo's orange and steel on navy, Manrope headings over Inter, sand cards
 * with an orange top rule, and photo heroes. This file sets those tokens,
 * maps style.css's tokens and components onto them, and styles the
 * logistics-only components.
 */

/* ==========================================================================
   1. Tokens
   ========================================================================== */
.tmtl {
	/* Logo palette, as on the home page. */
	--navy-950: #071426;
	--navy-900: #0a1b33;
	--navy-700: #14325c;
	--orange-500: #f28a2e;
	--orange-600: #e0592a;
	--orange-700: #b54412; /* orange text on light backgrounds (5:1) */
	--steel-500: #7a7c7d;
	--sand-50: #f7f5f1;
	--white: #fff;
	--ink: #0e1726;
	--ink-soft: #46505f;
	--line-light: rgba(14, 23, 38, 0.1);
	--line-dark: rgba(255, 255, 255, 0.12);
	--on-dark: rgba(255, 255, 255, 0.8);

	--gutter: clamp(16px, 4vw, 32px);
	--pill: 999px;
	--radius-lg: 18px;
	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--shadow-1: 0 1px 2px rgba(7, 20, 38, 0.06), 0 4px 12px rgba(7, 20, 38, 0.06);
	--shadow-2: 0 2px 6px rgba(7, 20, 38, 0.08), 0 18px 40px rgba(7, 20, 38, 0.14);
	--shadow-3: 0 30px 70px rgba(4, 12, 24, 0.45);

	/* style.css tokens, mapped onto the palette. */
	--color-primary: var(--orange-500);
	--color-primary-rgb: 242, 138, 46;
	--color-primary-dark: var(--orange-700);
	--color-on-primary: var(--navy-950);
	--color-navy: var(--navy-950);
	--color-navy-2: var(--navy-900);
	--color-ink: var(--ink);
	--color-muted: var(--ink-soft);
	--color-line: #e6e3dd;
	--color-bg: var(--sand-50);
	--color-surface: var(--white);
	--color-down: var(--orange-600);

	--radius: 12px;
	--radius-sm: 10px;
	--shadow-sm: var(--shadow-1);
	--shadow-md: var(--shadow-2);

	--font-body: "Inter", "Segoe UI", system-ui, sans-serif;
	--font-heading: "Manrope", "Segoe UI", system-ui, sans-serif;

	--container: 1240px;
	--header-h: 76px;

	font-size: clamp(1rem, 0.96rem + 0.18vw, 1.0625rem);
	line-height: 1.65;
}

/* ==========================================================================
   2. Base and shared components (style.css, restyled)
   ========================================================================== */
/* :where() keeps these at element weight, so chrome.css (loaded later) still
   styles the header and footer headings. */
:where(.tmtl) h1,
:where(.tmtl) h2,
:where(.tmtl) h3,
:where(.tmtl) h4 {
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.12;
}

:where(.tmtl) h3,
:where(.tmtl) h4 {
	font-weight: 700;
}

.tmtl ::selection {
	background: var(--orange-500);
	color: var(--navy-950);
}

.tmtl :focus-visible {
	outline-color: var(--orange-600);
	border-radius: 4px;
}

.tmtl .container {
	width: min(100% - var(--gutter) * 2, var(--container));
}

.tmtl .eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 16px;
	padding: 0;
	border-radius: 0;
	background: none;
	color: var(--orange-700);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.tmtl .eyebrow::before {
	content: "";
	flex: none;
	width: 24px;
	height: 2px;
	border-radius: 2px;
	background: var(--orange-500);
}

.tmtl .lg-hero .eyebrow,
.tmtl .section--dark .eyebrow {
	color: var(--orange-500);
}

/* Buttons */
.tmtl .btn {
	gap: 10px;
	min-height: 50px;
	padding: 12px 26px;
	border: 1px solid transparent;
	font-family: var(--font-body);
	font-size: 0.98rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	transition: background-color 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.tmtl .btn:hover {
	transform: none;
}

.tmtl .btn .icon {
	width: 18px;
	height: 18px;
	transition: transform 0.25s var(--ease);
}

.tmtl .btn:hover .icon {
	transform: translateX(4px);
}

.tmtl .btn-primary {
	background: var(--orange-500);
	color: var(--navy-950);
	box-shadow: 0 8px 24px rgba(242, 138, 46, 0.28);
}

.tmtl .btn-primary:hover {
	background: #f59a45;
	color: var(--navy-950);
	box-shadow: 0 12px 30px rgba(242, 138, 46, 0.38);
}

.tmtl .btn-ghost {
	border-color: currentColor;
	background: transparent;
	color: inherit;
}

.tmtl .btn-ghost:hover {
	border-color: currentColor;
	background: rgba(127, 127, 127, 0.12);
}

.tmtl .lg-hero .btn-ghost {
	border-color: rgba(255, 255, 255, 0.4);
	color: var(--white);
}

.tmtl .lg-hero .btn-ghost:hover {
	border-color: var(--white);
	background: rgba(255, 255, 255, 0.08);
}

.tmtl .btn-sm {
	min-height: 42px;
	padding: 9px 18px;
	font-size: 0.9rem;
}

/* Basic pages, posts, search and 404 */
.tmtl .page-wrap {
	padding: clamp(48px, 6vw, 96px) 0 clamp(64px, 8vw, 120px);
}

.tmtl .entry-title {
	font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
}

.tmtl .entry-content {
	color: var(--ink-soft);
}

.tmtl .post-card {
	border-color: var(--line-light);
	background: var(--sand-50);
	box-shadow: none;
}

.tmtl .not-found .error-code {
	color: var(--orange-500);
	font-family: var(--font-heading);
}

/* ==========================================================================
   3. Inner-page hero and breadcrumbs
   ========================================================================== */
/* The site header lies over the hero, so the top padding clears it: the main
   bar (76px), plus the utility bar (40px) once that is shown at 1024px. */
.lg-hero {
	position: relative;
	padding: calc(var(--header-h) + clamp(24px, 3vw, 40px)) 0 clamp(48px, 6vw, 80px);
	overflow: hidden;
	background:
		radial-gradient(900px 420px at 85% 0%, rgba(20, 50, 92, 0.7), transparent 70%),
		var(--navy-950);
	color: var(--on-dark);
	isolation: isolate;
}

/* Orange rule along the bottom edge, after the arc of the logo. */
.lg-hero::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--orange-500), var(--orange-600) 35%, rgba(224, 89, 42, 0) 85%);
}

@media (min-width: 1024px) {
	.lg-hero {
		padding-top: calc(var(--header-h) + 40px + clamp(24px, 3vw, 40px));
	}
}

.lg-hero--media {
	display: flex;
	flex-direction: column;
	min-height: clamp(420px, 34vw + 150px, 600px);
}

.lg-hero--media .lg-hero-inner {
	display: flex;
	flex: 1;
	flex-direction: column;
}

.lg-hero-media {
	position: absolute;
	inset: 0;
	z-index: -2;
	overflow: hidden;
}

.lg-hero-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 55%;
	animation: lg-hero-in 12s var(--ease-out) both;
}

.lg-hero-media::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(0deg, rgba(7, 20, 38, 0.95) 0%, rgba(7, 20, 38, 0) 55%),
		linear-gradient(90deg, rgba(7, 20, 38, 0.94) 0%, rgba(7, 20, 38, 0.78) 42%, rgba(7, 20, 38, 0.3) 100%);
}

@media (max-width: 767px) {
	.lg-hero-media::after {
		background:
			linear-gradient(0deg, rgba(7, 20, 38, 0.96) 0%, rgba(7, 20, 38, 0.3) 60%),
			rgba(7, 20, 38, 0.66);
	}
}

@keyframes lg-hero-in {
	from { transform: scale(1.08); }
	to { transform: scale(1); }
}

.lg-breadcrumbs {
	margin-bottom: clamp(28px, 4vw, 48px);
	font-size: 0.86rem;
}

.lg-hero--media .lg-breadcrumbs {
	margin-bottom: auto;
	padding-bottom: clamp(40px, 5vw, 72px);
}

.lg-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lg-breadcrumbs li + li::before {
	content: "/";
	margin: 0 10px;
	color: rgba(255, 255, 255, 0.35);
}

.lg-breadcrumbs a {
	color: rgba(255, 255, 255, 0.72);
	text-decoration: none;
	transition: color 0.2s;
}

.lg-breadcrumbs a:hover {
	color: var(--orange-500);
}

.lg-breadcrumbs [aria-current] {
	color: var(--white);
	font-weight: 600;
}

.lg-title {
	max-width: 900px;
	margin-bottom: 0.35em;
	color: var(--white);
	font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.6rem);
}

.lg-lead {
	max-width: 720px;
	margin-bottom: 0;
	color: var(--on-dark);
	font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.2rem);
}

.lg-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 32px;
}

/* ==========================================================================
   4. Body layout
   ========================================================================== */
.lg-body {
	padding: clamp(48px, 6vw, 96px) 0 clamp(64px, 8vw, 120px);
	background: var(--white);
}

.lg-layout {
	display: grid;
	gap: 48px;
	align-items: start;
}

.lg-main {
	min-width: 0;
}

@media (min-width: 980px) {
	.lg-layout {
		grid-template-columns: minmax(0, 1fr) 330px;
		gap: 64px;
	}

	/* The header scrolls away, so the sidebar only clears the viewport edge. */
	.lg-aside {
		position: sticky;
		top: 24px;
	}
}

.lg-content {
	color: var(--ink-soft);
}

.lg-content > * + * {
	margin-top: 1.1em;
}

.lg-content h2,
.lg-content h3 {
	margin-top: 1.6em;
	color: var(--ink);
}

.lg-content h2 {
	font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
}

.lg-content strong {
	color: var(--ink);
}

.lg-content a {
	color: var(--orange-700);
	font-weight: 600;
	text-decoration-color: rgba(242, 138, 46, 0.5);
	text-decoration-thickness: 1.5px;
	text-underline-offset: 3px;
}

.lg-content a:hover {
	text-decoration-color: var(--orange-500);
}

.lg-content ul,
.lg-content ol {
	padding-left: 1.25em;
}

.lg-content li::marker {
	color: var(--orange-500);
}

.lg-content img {
	border-radius: var(--radius);
}

.lg-content--wide {
	max-width: 860px;
	margin-bottom: 48px;
	font-size: clamp(1.02rem, 0.98rem + 0.25vw, 1.15rem);
}

.lg-block {
	margin-top: clamp(48px, 6vw, 72px);
}

.lg-block > h2 {
	margin-bottom: 24px;
	font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.25rem);
}

/* The short orange rule of the home page's section labels. */
.lg-block > h2::before {
	content: "";
	display: block;
	width: 36px;
	height: 3px;
	margin-bottom: 16px;
	border-radius: 2px;
	background: var(--orange-500);
}

/* AEO quick-answer box */
.lg-quick {
	margin-bottom: 32px;
	padding: 22px 24px;
	border: 1px solid var(--line-light);
	border-left: 3px solid var(--orange-500);
	border-radius: var(--radius);
	background: var(--sand-50);
}

.lg-quick p {
	margin: 0;
	color: var(--ink);
	font-size: 1.05rem;
}

.lg-quick .lg-quick-label {
	margin-bottom: 8px;
	color: var(--orange-700);
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

/* Key facts and case-study meta */
.lg-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 1px;
	margin: 32px 0;
	overflow: hidden;
	border: 1px solid var(--color-line);
	border-radius: var(--radius);
	background: var(--color-line);
}

.lg-facts > div {
	padding: 16px 18px;
	background: var(--sand-50);
}

.lg-facts dt {
	margin-bottom: 4px;
	color: var(--orange-700);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.lg-facts dd {
	margin: 0;
	color: var(--ink);
	font-family: var(--font-heading);
	font-weight: 700;
}

/* ==========================================================================
   5. Sidebar
   ========================================================================== */
.lg-widget {
	margin-bottom: 20px;
	padding: 24px;
	border: 1px solid var(--line-light);
	border-radius: var(--radius);
	background: var(--sand-50);
}

.lg-widget h2 {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.lg-widget h2::before {
	content: "";
	flex: none;
	width: 18px;
	height: 2px;
	border-radius: 2px;
	background: var(--orange-500);
}

.lg-widget ul,
.lg-toc {
	margin: 0;
	padding: 0;
	list-style: none;
}

.lg-toc {
	counter-reset: toc;
}

.lg-toc li {
	counter-increment: toc;
}

.lg-toc a::before {
	content: counter(toc, decimal-leading-zero);
	margin-right: 10px;
	color: var(--orange-700);
	font-size: 0.85em;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.lg-widget li a {
	display: block;
	padding: 9px 0;
	border-top: 1px solid var(--line-light);
	color: var(--ink);
	font-size: 0.95rem;
	font-weight: 500;
	text-decoration: none;
	transition: color 0.2s, padding-left 0.25s var(--ease);
}

.lg-widget li:first-child a {
	border-top: 0;
}

.lg-widget li a:hover {
	padding-left: 4px;
	color: var(--orange-700);
}

.lg-widget .lg-parent a {
	color: var(--orange-700);
	font-weight: 600;
}

.lg-widget--contact {
	padding: 28px 24px;
	border: 0;
	background:
		radial-gradient(420px 220px at 100% 0%, rgba(242, 138, 46, 0.2), transparent 70%),
		var(--navy-950);
	color: var(--on-dark);
}

.lg-widget--contact h2 {
	display: block;
	color: var(--white);
	font-family: var(--font-heading);
	font-size: 1.35rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	text-transform: none;
}

.lg-widget--contact h2::before {
	display: none;
}

.lg-widget--contact p {
	margin: 0 0 20px;
}

.lg-widget-line {
	margin: 14px 0 0;
	font-size: 0.95rem;
	text-align: center;
}

.lg-widget--contact .lg-widget-line {
	margin: 14px 0 0;
}

.lg-widget--contact a:not(.btn) {
	color: var(--white);
	font-weight: 600;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.lg-widget--contact a:not(.btn):hover {
	color: var(--orange-500);
}

/* ==========================================================================
   6. Clusters, chips, FAQ
   ========================================================================== */
.lg-clusters {
	display: grid;
	gap: 18px;
}

@media (min-width: 640px) {
	.lg-clusters {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.lg-cluster {
	padding: 24px;
	border: 1px solid var(--line-light);
	border-radius: var(--radius);
	background: var(--sand-50);
}

.lg-cluster h3 {
	margin-bottom: 0.6em;
	font-size: 1.1rem;
}

.lg-cluster ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.lg-cluster li {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 10px;
	padding: 10px 0 10px 22px;
	border-top: 1px solid var(--line-light);
}

.lg-cluster li:first-child {
	border-top: 0;
}

.lg-cluster li::before {
	content: "";
	position: absolute;
	top: 1.2em;
	left: 4px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--orange-500);
}

.lg-cluster a {
	color: var(--ink);
	font-weight: 600;
	text-decoration: none;
}

.lg-cluster a:hover {
	color: var(--orange-700);
	text-decoration: underline;
}

.lg-intent {
	padding: 1px 9px;
	border-radius: var(--pill);
	background: rgba(242, 138, 46, 0.14);
	color: var(--orange-700);
	font-size: 0.7rem;
	font-style: normal;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.lg-intent--informational {
	background: rgba(20, 50, 92, 0.1);
	color: var(--navy-700);
}

.lg-intent--mixed {
	background: rgba(122, 124, 125, 0.16);
	color: #4f5253;
}

.lg-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lg-chips li {
	padding: 7px 15px;
	border: 1px solid var(--line-light);
	border-radius: var(--pill);
	background: var(--sand-50);
	color: var(--ink);
	font-size: 0.9rem;
	font-weight: 500;
}

.lg-chips li:has(> a) {
	padding: 0;
}

.lg-chips a {
	display: block;
	padding: 7px 15px;
	border-radius: inherit;
	color: var(--orange-700);
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.2s;
}

.lg-chips a:hover {
	background: rgba(242, 138, 46, 0.12);
}

.lg-faq-group + .lg-faq-group {
	margin-top: 32px;
}

.lg-faq-group h3 {
	margin-bottom: 14px;
	font-size: 1.1rem;
}

.lg-faq {
	border: 1px solid var(--line-light);
	border-radius: var(--radius);
	background: var(--sand-50);
	transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.lg-faq + .lg-faq {
	margin-top: 12px;
}

.lg-faq[open] {
	border-color: transparent;
	background: var(--white);
	box-shadow: var(--shadow-2);
}

.lg-faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	min-height: 64px;
	padding: 18px 22px;
	color: var(--ink);
	font-family: var(--font-heading);
	font-weight: 700;
	line-height: 1.35;
	list-style: none;
	cursor: pointer;
}

.lg-faq summary::-webkit-details-marker {
	display: none;
}

.lg-faq summary::after {
	content: "";
	flex: none;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b54412' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / 16px no-repeat;
	transition: transform 0.3s var(--ease), background-color 0.3s;
}

.lg-faq[open] summary::after {
	transform: rotate(180deg);
	background-color: var(--orange-500);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23071426' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

.lg-faq-answer {
	padding: 0 22px 22px;
	color: var(--ink-soft);
}

.lg-faq[open] .lg-faq-answer {
	animation: lg-faq-in 0.35s var(--ease-out);
}

@keyframes lg-faq-in {
	from { opacity: 0; transform: translateY(-6px); }
	to { opacity: 1; transform: none; }
}

.lg-faq-answer p {
	margin: 0;
}

/* ==========================================================================
   7. Cards (hubs and compact cards), as the home page's service cards
   ========================================================================== */
.lg-cards {
	display: grid;
	gap: 18px;
}

@media (min-width: 620px) {
	.lg-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 980px) {
	.lg-cards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 22px;
	}
}

/* .tmtl outranks style.css's ".js .reveal", whose transition would otherwise
   replace this one; the hover lift uses translate, which the reveal's
   transform leaves alone. */
.tmtl .lg-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 30px 28px 28px;
	overflow: hidden;
	border: 1px solid var(--line-light);
	border-radius: var(--radius);
	background: var(--sand-50);
	color: inherit;
	text-decoration: none;
	transition: opacity 0.6s ease, transform 0.6s ease, translate 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s, background-color 0.35s;
}

.lg-card::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 3px;
	background: var(--orange-500);
	transform: scaleX(0.18);
	transform-origin: left;
	transition: transform 0.45s var(--ease);
}

.tmtl a.lg-card:hover,
.tmtl a.lg-card:focus-visible {
	translate: 0 -6px;
	border-color: transparent;
	background: var(--white);
	box-shadow: var(--shadow-2);
}

a.lg-card:hover::before,
a.lg-card:focus-visible::before {
	transform: scaleX(1);
}

.lg-card-icon {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	margin-bottom: 4px;
	border-radius: 12px;
	background: var(--navy-900);
	color: var(--orange-500);
	transition: transform 0.45s var(--ease);
}

.lg-card-icon .icon {
	width: 24px;
	height: 24px;
}

a.lg-card:hover .lg-card-icon {
	transform: rotate(-8deg);
}

.lg-card h3 {
	margin: 4px 0 0;
	color: var(--ink);
	font-size: clamp(1.1rem, 1rem + 0.35vw, 1.3rem);
}

.lg-card p {
	flex: 1;
	margin: 0;
	color: var(--ink-soft);
	font-size: 0.97rem;
}

.lg-card-more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 6px;
	color: var(--orange-700);
	font-size: 0.95rem;
	font-weight: 600;
}

.lg-card-more .icon {
	width: 18px;
	height: 18px;
	transition: transform 0.25s var(--ease);
}

a.lg-card:hover .lg-card-more .icon {
	transform: translateX(4px);
}

/* ==========================================================================
   8. Call-to-action band, as the home page's contact section
   ========================================================================== */
.tmtl .lg-cta {
	position: relative;
	padding: clamp(64px, 6vw + 32px, 112px) 0;
	overflow: hidden;
	background: var(--navy-950);
	color: var(--on-dark);
	isolation: isolate;
}

.lg-cta::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -2;
	background: url("../home/images/logistics/logistics-barge-river-wide.jpg") center 60% / cover no-repeat;
	opacity: 0.4;
}

.lg-cta::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, var(--navy-950) 12%, rgba(7, 20, 38, 0.72) 60%, rgba(7, 20, 38, 0.5) 100%);
}

.lg-cta-inner {
	display: grid;
	gap: 28px;
	align-items: center;
}

.lg-cta h2 {
	max-width: 760px;
	margin-bottom: 0.35em;
	color: var(--white);
	font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.9rem);
}

.lg-cta p:not(.eyebrow) {
	max-width: 620px;
	margin: 0;
	color: var(--on-dark);
	font-size: clamp(1.02rem, 0.98rem + 0.25vw, 1.15rem);
}

.lg-cta-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 24px;
}

.lg-cta-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--white);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: rgba(242, 138, 46, 0.6);
	text-decoration-thickness: 1.5px;
	text-underline-offset: 5px;
}

.lg-cta-link:hover {
	color: var(--white);
	text-decoration-color: var(--orange-500);
}

.lg-cta-link .icon {
	width: 18px;
	height: 18px;
	color: var(--orange-500);
}

@media (min-width: 860px) {
	.lg-cta-inner {
		grid-template-columns: 1fr auto;
		gap: 56px;
	}
}

/* ==========================================================================
   9. Equipment chain
   ========================================================================== */
.lg-chain {
	display: grid;
	gap: 0;
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
	counter-reset: chain;
}

.lg-chain li {
	position: relative;
	padding: 4px 0 28px 60px;
	counter-increment: chain;
}

.lg-chain li::before {
	content: counter(chain, decimal-leading-zero);
	position: absolute;
	top: 0;
	left: 0;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: var(--navy-900);
	color: var(--orange-500);
	font-family: var(--font-heading);
	font-size: 0.9rem;
	font-weight: 800;
}

.lg-chain li::after {
	content: "";
	position: absolute;
	top: 46px;
	bottom: 6px;
	left: 19px;
	width: 2px;
	background: linear-gradient(var(--orange-500), var(--color-line));
}

.lg-chain li:last-child {
	padding-bottom: 0;
}

.lg-chain li:last-child::after {
	display: none;
}

.lg-chain h3 {
	margin-bottom: 0.35em;
	font-size: 1.1rem;
}

.lg-chain p {
	margin: 0 0 0.6em;
	color: var(--ink-soft);
}

/* ==========================================================================
   10. Case study
   ========================================================================== */
.lg-case-section {
	padding: 32px 0;
	border-top: 1px solid var(--line-light);
}

.lg-case-section:first-of-type {
	padding-top: 8px;
	border-top: 0;
}

.lg-case-section h2 {
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem);
}

.lg-step {
	display: inline-grid;
	place-items: center;
	min-width: 42px;
	height: 42px;
	padding: 0 8px;
	border-radius: 12px;
	background: var(--navy-900);
	color: var(--orange-500);
	font-size: 0.95rem;
	font-variant-numeric: tabular-nums;
}

.lg-case-section p {
	color: var(--ink-soft);
}

.lg-case-section .lg-content p {
	color: inherit;
}

.lg-status {
	display: inline-block;
	padding: 3px 12px;
	border-radius: var(--pill);
	background: rgba(20, 50, 92, 0.1);
	color: var(--navy-700);
	font-family: var(--font-body);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.lg-status--ongoing {
	background: rgba(242, 138, 46, 0.16);
	color: var(--orange-700);
}

.lg-status--upcoming {
	background: rgba(122, 124, 125, 0.16);
	color: #4f5253;
}

.lg-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 14px;
}

.lg-gallery figure {
	margin: 0;
	overflow: hidden;
	border-radius: var(--radius);
}

.lg-gallery img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform 0.6s var(--ease);
}

.lg-gallery figure:hover img {
	transform: scale(1.05);
}

/* ==========================================================================
   11. Team and foreign principals
   ========================================================================== */
.lg-team {
	display: grid;
	gap: 18px;
}

@media (min-width: 620px) {
	.lg-team {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 980px) {
	.lg-team {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.lg-main .lg-team {
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

/* Leaders: wider cards, shown above the rest of the team. */
.lg-team--lead {
	margin-bottom: 36px;
}

@media (min-width: 980px) {
	.lg-team--lead {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px;
	}

	.lg-team--lead .lg-person {
		display: grid;
		grid-template-columns: 200px minmax(0, 1fr);
		align-items: stretch;
	}

	.lg-team--lead .lg-person-photo {
		aspect-ratio: auto;
	}
}

.lg-person {
	overflow: hidden;
	border: 1px solid var(--line-light);
	border-radius: var(--radius);
	background: var(--sand-50);
	transition: translate 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}

.lg-person:hover {
	translate: 0 -4px;
	border-color: transparent;
	box-shadow: var(--shadow-2);
}

.lg-person-photo {
	position: relative;
	display: grid;
	place-items: center;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: var(--navy-900);
}

.lg-person-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 22%;
	transition: transform 0.6s var(--ease);
}

.lg-person:hover .lg-person-photo img {
	transform: scale(1.04);
}

/* No photo: the person's initials fill the portrait area instead. */
.lg-person-initials {
	color: var(--orange-500);
	font-family: var(--font-heading);
	font-size: 2.6rem;
	font-weight: 800;
	letter-spacing: 0.04em;
}

.lg-person-body {
	padding: 22px 22px 24px;
}

.lg-person h3 {
	margin-bottom: 0.2em;
	font-size: 1.1rem;
}

.lg-person p {
	margin: 0;
	color: var(--ink-soft);
	font-size: 0.95rem;
}

.lg-person .lg-person-role {
	margin-bottom: 0.7em;
	color: var(--orange-700);
	font-size: 0.9rem;
	font-weight: 600;
}

/* Team roster: the group's lead in a wide navy card, then profile cards with
   the portrait beside the name and the bio underneath. The grid follows its
   own width, which the sidebar changes, rather than the viewport. */
.lg-roster {
	container-type: inline-size;
}

.lg-roster-grid {
	display: grid;
	gap: 18px;
}

.tmtl .lg-member {
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr);
	grid-template-areas:
		"photo head"
		"bio bio";
	gap: 18px;
	align-content: start;
	align-items: center;
	padding: 22px;
	border: 1px solid var(--line-light);
	border-radius: var(--radius);
	background: var(--sand-50);
	transition: opacity 0.6s ease, transform 0.6s ease, translate 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}

.lg-member:hover {
	translate: 0 -4px;
	border-color: transparent;
	box-shadow: var(--shadow-2);
}

.lg-member-photo {
	position: relative;
	display: grid;
	grid-area: photo;
	place-items: center;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	border-radius: var(--radius-sm);
	background: var(--navy-900);
}

.lg-member-photo::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 3px;
	background: var(--orange-500);
}

.lg-member-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 22%;
	transition: transform 0.6s var(--ease);
}

.lg-member:hover .lg-member-photo img {
	transform: scale(1.05);
}

.lg-member-initials {
	color: var(--orange-500);
	font-family: var(--font-heading);
	font-size: 1.4rem;
	font-weight: 800;
	letter-spacing: 0.04em;
}

.lg-member-head {
	grid-area: head;
	min-width: 0;
}

.lg-member h3 {
	margin: 0 0 6px;
	font-size: 1.05rem;
	line-height: 1.3;
}

.lg-member-role {
	margin: 0;
	color: var(--orange-700);
	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1.45;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.lg-member-bio {
	grid-area: bio;
	margin: 0;
	padding-top: 16px;
	border-top: 1px solid var(--line-light);
	color: var(--ink-soft);
	font-size: 0.93rem;
	line-height: 1.6;
}

/* The lead. */
.tmtl .lg-member--lead {
	grid-template-columns: 96px minmax(0, 1fr);
	padding: 26px;
	border-color: transparent;
	background:
		radial-gradient(120% 140% at 100% 0%, rgba(242, 138, 46, 0.2), transparent 55%),
		linear-gradient(135deg, var(--navy-900), var(--navy-700));
	color: var(--white);
}

.lg-member--lead h3 {
	margin-bottom: 10px;
	color: var(--white);
	font-size: 1.3rem;
}

.lg-member--lead .lg-member-role {
	display: inline-block;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--orange-500);
	color: var(--navy-900);
}

.lg-member--lead .lg-member-photo {
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 18px 36px rgba(4, 12, 24, 0.4);
}

.lg-member--lead .lg-member-initials {
	font-size: 2rem;
}

.lg-member--lead .lg-member-bio {
	border-top-color: var(--line-dark);
	color: var(--on-dark);
	font-size: 1rem;
}

@container (min-width: 600px) {
	.lg-roster-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/* The lead and an odd one out at the end take the whole row, the
	   portrait beside the text, which sits centred against it. */
	.lg-member--lead,
	.lg-member:last-child:nth-child(even) {
		grid-column: 1 / -1;
	}

	.tmtl .lg-member--lead,
	.tmtl .lg-member:last-child:nth-child(even) {
		grid-template-columns: 104px minmax(0, 1fr);
		grid-template-rows: 1fr auto auto 1fr;
		grid-template-areas:
			"photo ."
			"photo head"
			"photo bio"
			"photo .";
		column-gap: 28px;
		row-gap: 0;
		align-items: start;
	}

	.tmtl .lg-member--lead {
		grid-template-columns: 180px minmax(0, 1fr);
		padding: 30px;
	}

	.lg-member--lead .lg-member-photo,
	.lg-member:last-child:nth-child(even) .lg-member-photo {
		align-self: center;
	}

	.lg-member--lead .lg-member-bio,
	.lg-member:last-child:nth-child(even) .lg-member-bio {
		margin-top: 16px;
	}
}

.lg-notice {
	max-width: 820px;
	margin: 0 0 32px;
	padding: 16px 18px;
	border: 1px solid rgba(242, 138, 46, 0.35);
	border-left: 3px solid var(--orange-500);
	border-radius: var(--radius-sm);
	background: #fdf3ea;
	color: #7a3510;
	font-size: 0.95rem;
}

.lg-principals {
	display: grid;
	gap: 18px;
}

@media (min-width: 620px) {
	.lg-principals {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 980px) {
	.lg-principals {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.lg-country {
	padding: 24px;
	border: 1px solid var(--line-light);
	border-radius: var(--radius);
	background: var(--sand-50);
}

.lg-country h2 {
	margin-bottom: 0.6em;
	padding-bottom: 0.6em;
	border-bottom: 2px solid var(--orange-500);
	font-size: 1.1rem;
}

.lg-country ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.lg-country li {
	padding: 6px 0;
	color: var(--ink-soft);
}

/* ==========================================================================
   12. Contact and enquiry
   ========================================================================== */
.lg-contact {
	display: grid;
	gap: 36px;
	align-items: start;
}

@media (min-width: 960px) {
	.lg-contact {
		grid-template-columns: 0.8fr 1.2fr;
		gap: 64px;
	}
}

.lg-contact-details {
	display: grid;
	gap: 14px;
}

.lg-contact-card {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 20px;
	border: 1px solid var(--line-light);
	border-radius: var(--radius);
	background: var(--sand-50);
}

.lg-contact-card > .icon {
	width: 46px;
	height: 46px;
	padding: 12px;
	border-radius: 12px;
	background: var(--navy-900);
	color: var(--orange-500);
}

.lg-contact-card h2 {
	margin-bottom: 4px;
	color: var(--orange-700);
	font-family: var(--font-body);
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.lg-contact-card p {
	margin: 0;
	color: var(--ink);
}

.lg-contact-card a {
	color: inherit;
	font-weight: 600;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.lg-contact-card a:hover {
	color: var(--orange-700);
	text-decoration: underline;
}

/* The enquiry form: a dark card, as on the home page. */
.tmtl .lg-enquiry {
	padding: clamp(24px, 3vw, 40px);
	border: 0;
	border-radius: var(--radius-lg);
	background:
		radial-gradient(600px 300px at 100% 0%, rgba(20, 50, 92, 0.85), transparent 70%),
		var(--navy-950);
	box-shadow: var(--shadow-3);
	color: var(--on-dark);
}

.tmtl .lg-enquiry h2 {
	color: var(--white);
	font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
}

.tmtl .lg-enquiry .field label {
	color: rgba(255, 255, 255, 0.86);
	font-size: 0.88rem;
}

.tmtl .lg-enquiry .field .req {
	color: var(--orange-500);
}

.tmtl .lg-enquiry .field input,
.tmtl .lg-enquiry .field select,
.tmtl .lg-enquiry .field textarea {
	min-height: 48px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 10px;
	background-color: rgba(255, 255, 255, 0.05);
	color: var(--white);
}

.tmtl .lg-enquiry .field select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f28a2e' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-size: 16px;
}

.tmtl .lg-enquiry .field select option {
	background: var(--navy-900);
	color: var(--white);
}

.tmtl .lg-enquiry .field ::placeholder {
	color: rgba(255, 255, 255, 0.5);
}

.tmtl .lg-enquiry .field input:focus,
.tmtl .lg-enquiry .field select:focus,
.tmtl .lg-enquiry .field textarea:focus {
	border-color: var(--orange-500);
	box-shadow: 0 0 0 3px rgba(242, 138, 46, 0.25);
}

.tmtl .lg-enquiry .form-notice.is-success {
	border-color: rgba(52, 211, 153, 0.35);
	background: rgba(52, 211, 153, 0.14);
	color: #a7f3d0;
}

.tmtl .lg-enquiry .form-notice.is-error {
	border-color: rgba(255, 155, 133, 0.4);
	background: rgba(255, 120, 100, 0.12);
	color: #ffb3a3;
}

.lg-regarding {
	margin: 0 0 18px;
	padding: 10px 14px;
	border-radius: var(--radius-sm);
	background: rgba(255, 255, 255, 0.06);
	font-size: 0.95rem;
}

.lg-regarding strong {
	color: var(--white);
}

.lg-editor-note {
	max-width: 820px;
	margin: 24px 0;
	padding: 14px 16px;
	border: 1px dashed rgba(14, 23, 38, 0.25);
	border-radius: var(--radius-sm);
	background: var(--white);
	color: var(--ink-soft);
	font-size: 0.92rem;
}

/* ==========================================================================
   13. Page sections (architecture sections, compact cards, tables)
   ========================================================================== */
.lg-section .lg-group-title {
	margin: 1.4em 0 0.8em;
	color: var(--ink);
	font-size: 1.1rem;
}

.lg-section > .lg-group-title:first-child {
	margin-top: 0;
}

.lg-section .lg-chips + .lg-group-title,
.lg-section .lg-cards + .lg-group-title,
.lg-section .lg-facts + .lg-group-title {
	margin-top: 1.8em;
}

.lg-section-more {
	margin: 24px 0 0;
}

/* Compact cards: sub-services, why-choose and credential points */
.lg-cards--compact {
	gap: 14px;
}

.tmtl .lg-cards--compact .lg-card {
	gap: 8px;
	padding: 22px 22px 20px;
}

.lg-cards--compact .lg-card-icon {
	width: 38px;
	height: 38px;
	border-radius: 10px;
}

.lg-cards--compact .lg-card-icon .icon {
	width: 20px;
	height: 20px;
}

.lg-cards--compact .lg-card h3 {
	font-size: 1.05rem;
}

.lg-cards--compact .lg-card p {
	font-size: 0.93rem;
}

.lg-cards--compact .lg-card-more {
	margin-top: 2px;
	font-size: 0.9rem;
}

.lg-main .lg-cards--compact {
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

/* Project archive table */
.lg-table-wrap {
	overflow-x: auto;
	border: 1px solid var(--line-light);
	border-radius: var(--radius);
	background: var(--white);
}

.lg-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.97rem;
}

.lg-table th,
.lg-table td {
	padding: 14px 18px;
	border-bottom: 1px solid var(--line-light);
	text-align: left;
	vertical-align: top;
}

.lg-table thead th {
	background: var(--navy-950);
	color: rgba(255, 255, 255, 0.86);
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.lg-table tbody tr:nth-child(even) {
	background: var(--sand-50);
}

.lg-table tbody th {
	width: 38%;
	color: var(--ink);
	font-weight: 600;
}

.lg-table tbody tr:last-child th,
.lg-table tbody tr:last-child td {
	border-bottom: 0;
}

.lg-table a {
	color: var(--orange-700);
	text-decoration: none;
}

.lg-table a:hover {
	text-decoration: underline;
}

/* Enquiry type chips on the contact page */
.lg-enquiry-types {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 36px;
}

.lg-chip-link {
	padding: 9px 18px;
	border: 1px solid var(--line-light);
	border-radius: var(--pill);
	background: var(--sand-50);
	color: var(--ink);
	font-size: 0.93rem;
	font-weight: 600;
	text-decoration: none;
	transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.lg-chip-link:hover,
.lg-chip-link.is-active {
	border-color: var(--orange-500);
	background: rgba(242, 138, 46, 0.12);
	color: var(--orange-700);
}

/* HTML sitemap */
.lg-sitemap {
	display: grid;
	gap: 22px;
	padding-bottom: 24px;
}

@media (min-width: 760px) {
	.lg-sitemap {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.lg-sitemap-group {
	padding: 24px 26px;
	border: 1px solid var(--line-light);
	border-radius: var(--radius);
	background: var(--sand-50);
}

.lg-sitemap-group h2 {
	margin-bottom: 0.6em;
	font-size: 1.2rem;
}

.lg-sitemap-group h2 a {
	color: inherit;
	text-decoration: none;
}

.lg-sitemap-group h2 a:hover {
	color: var(--orange-700);
}

.lg-sitemap-group ul {
	margin: 0;
	padding-left: 1.1em;
}

.lg-sitemap-group ul ul {
	margin-top: 4px;
}

.lg-sitemap-group li {
	padding: 3px 0;
}

.lg-sitemap-group li::marker {
	color: var(--orange-500);
}

.lg-sitemap-group li a {
	color: var(--orange-700);
	text-decoration: none;
}

.lg-sitemap-group li a:hover {
	text-decoration: underline;
}
