/* ==========================================================================
   WorkExc theme styles
   1. Tokens   2. Base   3. Helpers   4. Buttons   5. Top bar
   6. Header and menu   7. Page title band and content   8. Footer
   ========================================================================== */

/* 0. Font: Inter, stored in the theme (SIL Open Font License, see assets/fonts/OFL.txt).
   One variable file covers the 400, 600 and 700 weights. */
@font-face {
	font-family: Inter;
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/inter-latin.woff2") format("woff2");
}

/* 1. Tokens ------------------------------------------------------------- */
:root {
	--navy: #053c56;
	--navy-deep: #032a3d;
	--orange: #ef9421;
	--orange-dark: #a8570a; /* orange that stays readable as text on white */
	--light: #f2f6f8;
	--border: #d9e3e9;
	--text: #1f2d36;
	--muted: #4f6270;
	--white: #fff;

	--font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--container: 1200px;
	--gutter: 16px;
	--radius: 8px;
	--shadow: 0 6px 24px rgba(5, 60, 86, 0.1);
	--header-h: 76px;
}

@media (min-width: 600px) {
	:root { --gutter: 24px; }
}

/* 2. Base --------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--white);
	color: var(--text);
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

img,
svg { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
	margin: 0 0 0.6em;
	color: var(--navy);
	line-height: 1.2;
	font-weight: 700;
}

h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.5vw, 2.25rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

a { color: var(--navy); text-underline-offset: 0.15em; }
a:hover { color: var(--orange-dark); }

:focus-visible {
	outline: 3px solid var(--orange);
	outline-offset: 2px;
}

/* 3. Helpers ------------------------------------------------------------ */
.container {
	width: 100%;
	max-width: calc(var(--container) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip-link:focus {
	position: fixed !important;
	top: 8px;
	left: 8px;
	z-index: 1000;
	width: auto;
	height: auto;
	padding: 12px 16px;
	clip: auto;
	background: var(--white);
	color: var(--navy);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.icon { fill: currentColor; flex-shrink: 0; }

/* 4. Buttons ------------------------------------------------------------ */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 24px;
	border: 2px solid transparent;
	border-radius: var(--radius);
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

/* Navy lettering on orange: white on this orange is too faint to read. */
.btn-primary { background: var(--orange); color: var(--navy); }
.btn-primary:hover { background: #f5a843; color: var(--navy); }

.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--white); }

/* 5. Top bar ------------------------------------------------------------ */
.topbar {
	background: var(--navy-deep);
	color: #dbe7ee;
	font-size: 0.875rem;
}

.topbar-inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px 24px;
	padding-block: 8px;
}

.topbar-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: inherit;
	text-decoration: none;
}

a.topbar-item:hover { color: var(--orange); }
.topbar .icon { color: var(--orange); }

.topbar-hours { display: none; }

@media (min-width: 600px) {
	.topbar-inner { justify-content: flex-end; }
	.topbar-hours { display: inline-flex; }
}

/* 6. Header and menu ---------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--white);
	border-bottom: 1px solid var(--border);
}

.admin-bar .site-header { top: 46px; }
@media (min-width: 783px) { .admin-bar .site-header { top: 32px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: var(--header-h);
}

.brand {
	display: flex;
	align-items: center;
	gap: 14px;
	text-decoration: none;
}

.brand-logo { width: auto; height: 56px; }

.brand-tagline {
	display: none;
	padding-left: 14px;
	border-left: 2px solid var(--orange);
	color: var(--muted);
	font-size: 0.85rem;
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
}

@media (min-width: 1100px) {
	.brand-tagline { display: block; }
}

/* Menu button (phones and tablets) */
.nav-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--white);
	cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--navy);
	border-radius: 2px;
	transition: transform 0.2s, background-color 0.2s;
}

.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

.site-nav ul { list-style: none; margin: 0; padding: 0; }

.site-nav a {
	display: block;
	color: var(--navy);
	font-weight: 600;
	text-decoration: none;
}

.site-nav .menu a:hover,
.site-nav .menu a[aria-current="page"],
.site-nav .current-menu-item > a { color: var(--orange-dark); }

/* Phone menu: a panel under the header */
@media (max-width: 899px) {
	.site-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		max-height: calc(100vh - var(--header-h));
		overflow-y: auto;
		padding: 8px var(--gutter) 24px;
		background: var(--white);
		border-bottom: 1px solid var(--border);
		box-shadow: var(--shadow);
	}

	.site-nav.is-open { display: block; }

	.site-nav .menu > li { border-bottom: 1px solid var(--border); }
	.site-nav .menu a { padding: 14px 0; }

	.site-nav .sub-menu { padding: 0 0 8px 16px; }
	.site-nav .sub-menu a { padding: 10px 0; font-weight: 400; }

	.site-nav .header-cta { display: flex; width: 100%; margin-top: 20px; }
}

/* Desktop menu: one row, services in a drop-down */
@media (min-width: 900px) {
	.nav-toggle { display: none; }

	.site-nav {
		display: flex;
		align-items: center;
		gap: 28px;
	}

	.site-nav .menu {
		display: flex;
		align-items: center;
		gap: 28px;
	}

	.site-nav .menu > li { position: relative; }
	.site-nav .menu > li > a { padding: 24px 0; }

	.site-nav .menu-item-has-children > a::after {
		content: "";
		display: inline-block;
		width: 7px;
		height: 7px;
		margin-left: 8px;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: translateY(-3px) rotate(45deg);
	}

	.site-nav .sub-menu {
		position: absolute;
		top: 100%;
		left: -20px;
		width: max-content;
		min-width: 280px;
		padding: 8px 0;
		background: var(--white);
		border: 1px solid var(--border);
		border-top: 3px solid var(--orange);
		border-radius: 0 0 var(--radius) var(--radius);
		box-shadow: var(--shadow);
		opacity: 0;
		visibility: hidden;
		transform: translateY(6px);
		transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
	}

	.site-nav .menu-item-has-children:hover > .sub-menu,
	.site-nav .menu-item-has-children:focus-within > .sub-menu {
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.site-nav .sub-menu a {
		padding: 10px 20px;
		font-weight: 400;
		font-size: 0.95rem;
	}

	.site-nav .sub-menu a:hover { background: var(--light); }

	.site-nav .header-cta { display: inline-flex; min-height: 44px; padding: 10px 20px; }
}

/* 7. Page title band and content ---------------------------------------- */
.page-hero {
	padding-block: 48px;
	background: var(--light);
	border-bottom: 1px solid var(--border);
}

.page-title { margin: 0; }

.content-area { padding-block: 48px 72px; }

.entry-content { max-width: 760px; }
.entry-content > * + * { margin-top: 1em; }
.entry-content ul,
.entry-content ol { padding-left: 1.25em; }
.entry-content li + li { margin-top: 0.35em; }

.entry + .entry {
	margin-top: 32px;
	padding-top: 32px;
	border-top: 1px solid var(--border);
}

/* 8. Footer ------------------------------------------------------------- */
.site-footer {
	background: var(--light);
	border-top: 4px solid var(--orange);
	font-size: 0.95rem;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 36px;
	padding-block: 48px;
}

@media (min-width: 600px) {
	.footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1000px) {
	.footer-grid { grid-template-columns: 1.2fr 1.3fr 0.8fr 1.3fr; gap: 40px; }
}

.footer-brand img { width: auto; height: 84px; }

.footer-tagline {
	margin: 12px 0 16px;
	color: var(--navy);
	font-weight: 600;
}

.footer-heading {
	margin-bottom: 14px;
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li + li { margin-top: 8px; }

.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--orange-dark); text-decoration: underline; }

.footer-contact { font-style: normal; }
.footer-contact p { margin-bottom: 12px; }

.social-links {
	display: flex;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.social-links a {
	display: inline-flex;
	padding: 6px;
	color: var(--navy);
}

.social-links a:hover { color: var(--orange-dark); }
.social-links .icon { width: 28px; height: 28px; }
.social-links .glyph { fill: var(--white); }

.footer-bottom {
	background: var(--navy);
	color: #dbe7ee;
	font-size: 0.875rem;
}

.footer-bottom-inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 4px 24px;
	padding-block: 16px;
}

.footer-bottom p { margin: 0; }
.site-footer .footer-bottom a { color: inherit; }
.site-footer .footer-bottom a:hover { color: var(--orange); }

.footer-label { color: var(--navy); font-weight: 600; }
.footer-note { color: var(--muted); font-size: 0.875rem; }

/* 9. Home page ---------------------------------------------------------- */
.draft-notice {
	padding: 10px var(--gutter);
	background: #fff4e0;
	border-bottom: 1px solid #f3c98a;
	color: #5c3a06;
	font-size: 0.875rem;
	text-align: center;
}

.section { padding-block: 64px; }
.section-light { background: var(--light); }

@media (min-width: 900px) {
	.section { padding-block: 88px; }
}

.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.125rem; }

.eyebrow {
	margin-bottom: 12px;
	color: var(--orange);
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.btn-outline-light { border-color: rgba(255, 255, 255, 0.7); color: var(--white); background: transparent; }
.btn-outline-light:hover { background: var(--white); color: var(--navy); }

/* Hero */
.hero {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(circle at 85% 20%, rgba(239, 148, 33, 0.18), transparent 40%),
		linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
	color: #e3edf3;
}

.hero-inner {
	display: grid;
	gap: 40px;
	padding-block: 56px 64px;
}

.hero-title { color: var(--white); font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem); }
.hero-lead { max-width: 36em; font-size: 1.125rem; margin-bottom: 28px; }

.pillars {
	display: grid;
	gap: 12px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.pillar {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 20px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-left: 4px solid var(--orange);
	border-radius: var(--radius);
	color: var(--white);
	font-size: 1.125rem;
	font-weight: 600;
}

.pillar-icon {
	display: inline-flex;
	padding: 10px;
	background: rgba(239, 148, 33, 0.15);
	border-radius: 50%;
	color: var(--orange);
}

@media (min-width: 900px) {
	.hero-inner {
		grid-template-columns: 1.4fr 1fr;
		align-items: center;
		gap: 64px;
		padding-block: 88px 96px;
	}
}

/* Service cards */
.line-icon {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.card-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (min-width: 600px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .card-grid { grid-template-columns: repeat(4, 1fr); } }

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 28px 24px;
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.card:hover,
.card:focus-within {
	border-color: var(--orange);
	box-shadow: var(--shadow);
	transform: translateY(-2px);
}

.card-icon {
	display: inline-flex;
	align-self: flex-start;
	margin-bottom: 18px;
	padding: 12px;
	background: var(--light);
	border-radius: var(--radius);
	color: var(--navy);
}

.card-title { font-size: 1.125rem; margin-bottom: 10px; }
.card-link { text-decoration: none; }
/* The whole card is clickable through the title link. */
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card-link:focus-visible { outline: none; }
.card-link:focus-visible::after { outline: 3px solid var(--orange); outline-offset: 2px; }

.card p { color: var(--muted); font-size: 0.975rem; flex-grow: 1; }
.card-more { color: var(--orange-dark); font-weight: 600; font-size: 0.95rem; }

/* About summary */
.split { display: grid; gap: 40px; }
.split p { font-size: 1.125rem; }

@media (min-width: 900px) {
	.split { grid-template-columns: 1.2fr 1fr; align-items: center; gap: 64px; }
}

.facts {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.facts li {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 20px;
	background: var(--white);
	border-top: 3px solid var(--orange);
	border-radius: var(--radius);
	box-shadow: 0 2px 8px rgba(5, 60, 86, 0.06);
}

.facts strong { color: var(--navy); font-size: 1.375rem; line-height: 1.2; }
.facts li > span { color: var(--muted); font-size: 0.9rem; line-height: 1.4; }

/* Why work with us */
.reasons {
	display: grid;
	gap: 20px;
	counter-reset: reason;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (min-width: 700px) { .reasons { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .reasons { grid-template-columns: repeat(3, 1fr); } }

.reason {
	counter-increment: reason;
	padding: 24px 24px 20px 72px;
	position: relative;
	border: 1px solid var(--border);
	border-radius: var(--radius);
}

.reason::before {
	content: counter(reason, decimal-leading-zero);
	position: absolute;
	top: 22px;
	left: 24px;
	color: var(--orange-dark);
	font-weight: 700;
	font-size: 1.125rem;
}

.reason h3 { font-size: 1.0625rem; margin-bottom: 6px; }
.reason p { margin: 0; color: var(--muted); font-size: 0.975rem; }

/* Call to action */
.cta { background: var(--navy); color: #e3edf3; }

.cta-inner {
	display: grid;
	gap: 24px;
	padding-block: 56px;
}

.cta h2 { color: var(--white); margin-bottom: 8px; }
.cta p { margin: 0; font-size: 1.125rem; }

.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.cta-direct { font-size: 0.95rem !important; }
.cta-direct a { color: var(--white); }
.cta-direct a:hover { color: var(--orange); }
.cta-direct span { margin-inline: 6px; }

@media (min-width: 900px) {
	.cta-inner { grid-template-columns: 1fr auto; align-items: center; gap: 48px; }
	.cta-actions { align-items: flex-end; }
}

/* Keep in-page jump targets clear of the sticky header. */
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* 10. Service pages ----------------------------------------------------- */
.page-hero-dark {
	padding-block: 40px 56px;
	background:
		radial-gradient(circle at 85% 20%, rgba(239, 148, 33, 0.16), transparent 40%),
		linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
	border-bottom: 0;
	color: #e3edf3;
}

.page-hero-dark .page-title { color: var(--white); }
.page-hero-dark .hero-lead { margin-top: 20px; }

@media (min-width: 900px) {
	.page-hero-dark { padding-block: 48px 80px; }
}

.breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 28px;
	font-size: 0.875rem;
}

.breadcrumb a { color: #c4d6e0; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb span { color: #7f9aab; }

.service-hero { display: flex; align-items: flex-start; gap: 20px; }
.service-hero .eyebrow { margin-bottom: 8px; }

.service-hero-icon {
	display: none;
	padding: 14px;
	background: rgba(239, 148, 33, 0.15);
	border-radius: var(--radius);
	color: var(--orange);
}

.service-hero-icon .line-icon { width: 40px; height: 40px; }

@media (min-width: 600px) {
	.service-hero-icon { display: inline-flex; }
}

.split-top { align-items: start !important; }

.check-list {
	display: grid;
	gap: 14px;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (min-width: 600px) {
	.check-list { grid-template-columns: repeat(2, 1fr); }
}

.check-list li {
	position: relative;
	padding: 16px 16px 16px 48px;
	background: var(--light);
	border-radius: var(--radius);
	line-height: 1.45;
}

.check-list li::before {
	content: "";
	position: absolute;
	top: 18px;
	left: 18px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23053c56' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.helps {
	padding: 28px;
	background: var(--navy);
	border-radius: var(--radius);
	color: #e3edf3;
}

.helps h2 { color: var(--white); font-size: 1.5rem; }
.helps ul { margin: 0; padding-left: 1.2em; }
.helps li + li { margin-top: 12px; }
.helps li::marker { color: var(--orange); }

/* Numbered steps */
.steps {
	display: grid;
	gap: 16px;
	counter-reset: step;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (min-width: 600px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(5, 1fr); } .steps-3 { grid-template-columns: repeat(3, 1fr); } }

.steps li {
	counter-increment: step;
	padding: 24px 20px;
	background: var(--white);
	border-top: 3px solid var(--orange);
	border-radius: var(--radius);
	box-shadow: 0 2px 8px rgba(5, 60, 86, 0.06);
}

.section:not(.section-light) .steps li { border: 1px solid var(--border); border-top: 3px solid var(--orange); box-shadow: none; }

.steps li::before {
	content: counter(step);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin-bottom: 12px;
	border-radius: 50%;
	background: var(--navy);
	color: var(--white);
	font-weight: 700;
	font-size: 0.9rem;
}

.steps h3 { font-size: 1.0625rem; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); font-size: 0.95rem; }

@media (min-width: 1000px) { .card-grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* Highlight "Services" in the menu while on a service page. */
.site-nav .menu-item-has-children:has([aria-current="page"]) > a,
.site-nav .current-menu-ancestor > a { color: var(--orange-dark); }

/* 11. Motion: slider, fade-in, hover, header, back to top ---------------- */

/* Banner slider: slides share one grid cell so the banner keeps the height
   of the tallest slide and nothing jumps when slides change. */
.hero-slides { display: grid; }

.hero-slide {
	grid-area: 1 / 1;
	visibility: hidden;
	opacity: 0;
}

.hero-slide.is-active { visibility: visible; opacity: 1; }

.hero.is-ready .hero-slide {
	transition: opacity 0.7s ease, visibility 0.7s;
}

.hero.is-ready .hero-slide .hero-text > *,
.hero.is-ready .hero-slide .pillars > *,
.hero.is-ready .hero-slide .hero-panel {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero.is-ready .hero-slide.is-active .hero-text > *,
.hero.is-ready .hero-slide.is-active .pillars > *,
.hero.is-ready .hero-slide.is-active .hero-panel {
	opacity: 1;
	transform: none;
}

/* Text lines and boxes arrive one after another. */
.hero.is-ready .hero-slide.is-active .hero-text > :nth-child(2) { transition-delay: 0.08s; }
.hero.is-ready .hero-slide.is-active .hero-text > :nth-child(3) { transition-delay: 0.16s; }
.hero.is-ready .hero-slide.is-active .hero-text > :nth-child(4) { transition-delay: 0.24s; }
.hero.is-ready .hero-slide.is-active .pillars > :nth-child(1),
.hero.is-ready .hero-slide.is-active .hero-panel { transition-delay: 0.2s; }
.hero.is-ready .hero-slide.is-active .pillars > :nth-child(2) { transition-delay: 0.3s; }
.hero.is-ready .hero-slide.is-active .pillars > :nth-child(3) { transition-delay: 0.4s; }
.hero.is-ready .hero-slide.is-active .pillars > :nth-child(4) { transition-delay: 0.5s; }

.hero-inner { padding-bottom: 32px; }

@media (min-width: 900px) {
	.hero-inner { min-height: 470px; padding-bottom: 40px; }
}

.pillars > li { list-style: none; }

.pillar-link {
	color: var(--white);
	text-decoration: none;
	font-size: 1rem;
	transition: background-color 0.2s, transform 0.2s;
}

.pillar-link:hover {
	color: var(--white);
	background: rgba(255, 255, 255, 0.12);
	transform: translateX(4px);
}

.hero-panel {
	padding: 28px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-top: 4px solid var(--orange);
	border-radius: var(--radius);
}

.hero-panel-title {
	margin: 14px 0 12px;
	color: var(--white);
	font-size: 1.25rem;
	font-weight: 700;
}

.hero-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.hero-checks li {
	position: relative;
	padding-left: 30px;
	color: #e3edf3;
}

.hero-checks li::before {
	content: "";
	position: absolute;
	top: 4px;
	left: 0;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23053c56' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Slider controls */
.hero-controls {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-bottom: 40px;
}

.hero-controls[hidden] { display: none; }

.slider-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 50%;
	background: transparent;
	color: var(--white);
	cursor: pointer;
	transition: background-color 0.2s, border-color 0.2s;
}

.slider-btn:hover { background: var(--orange); border-color: var(--orange); color: var(--navy); }
.slider-pause { margin-left: auto; }
.slider-pause .icon-play { display: none; }
.hero.is-paused .slider-pause .icon-play { display: block; }
.hero.is-paused .slider-pause .icon-pause { display: none; }

.slider-dots { display: flex; gap: 4px; }

/* Each dot is a 44px tap target with a small visible bar inside. */
.slider-dot {
	position: relative;
	width: 32px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.slider-dot::before,
.slider-dot::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	height: 4px;
	margin-top: -2px;
	border-radius: 2px;
}

.slider-dot::before { right: 0; background: rgba(255, 255, 255, 0.3); }
.slider-dot::after { width: 0; background: var(--orange); }
.slider-dot.is-active::after { width: 100%; }

/* While the slides are moving, the active bar fills up as a timer. */
.hero.is-running .slider-dot.is-active::after {
	width: 0;
	animation: slider-progress 6s linear forwards;
}

@keyframes slider-progress { to { width: 100%; } }

@media (min-width: 900px) {
	.slider-dot { width: 44px; }
	.hero-controls { padding-bottom: 56px; }
}

/* Fade-in on scroll (only when the script is running) */
.has-reveal [data-reveal] {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.7s ease, transform 0.7s ease;
	transition-delay: var(--reveal-delay, 0ms);
}

.has-reveal [data-reveal].is-visible { opacity: 1; transform: none; }

/* Card hover: icon turns orange and gives a small bounce */
.card-icon { transition: background-color 0.2s, color 0.2s; }

.card:hover .card-icon,
.card:focus-within .card-icon {
	background: var(--orange);
	color: var(--navy);
	animation: icon-bounce 0.5s ease;
}

@keyframes icon-bounce {
	0%, 100% { transform: translateY(0); }
	40% { transform: translateY(-6px); }
	70% { transform: translateY(2px); }
}

.card-more { transition: letter-spacing 0.2s; }
.card:hover .card-more { letter-spacing: 0.02em; }

.facts li,
.steps li,
.reason { transition: transform 0.2s, box-shadow 0.2s, opacity 0.7s ease; }
.facts li:hover,
.steps li:hover,
.reason:hover { box-shadow: var(--shadow); }

/* Header gets smaller once the page is scrolled */
.header-inner { transition: min-height 0.25s ease; }
.brand-logo { transition: height 0.25s ease; }
.site-header { transition: box-shadow 0.25s ease; }

.is-scrolled .site-header { box-shadow: 0 4px 18px rgba(5, 60, 86, 0.1); }
.is-scrolled .header-inner { min-height: 62px; }
.is-scrolled .brand-logo { height: 44px; }

@media (min-width: 900px) {
	.is-scrolled .site-nav .menu > li > a { padding-block: 18px; }
}

/* Back to top */
.to-top {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 90;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--orange);
	color: var(--navy);
	box-shadow: var(--shadow);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity 0.25s, transform 0.25s, visibility 0.25s, background-color 0.2s;
}

.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: #f5a843; }

@media (min-width: 900px) {
	.to-top { right: 28px; bottom: 28px; }
}

/* Visitors who ask their device for less motion get none. */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		transition-delay: 0ms !important;
		scroll-behavior: auto !important;
	}
}

/* Phones: slides show text and buttons only, so the banner stays short and
   the slide controls stay on screen. The same links appear further down. */
@media (max-width: 899px) {
	.hero-slide .pillars,
	.hero-slide .hero-panel { display: none; }
	.hero-inner { padding-block: 40px 24px; }
	.hero-controls { padding-bottom: 32px; }
}

/* 12. About page --------------------------------------------------------- */
.page-hero-dark .eyebrow { margin-bottom: 10px; }

/* Timeline: a line down the left with a dot for each year */
.timeline {
	position: relative;
	list-style: none;
	margin: 0;
	padding: 0 0 0 32px;
}

.timeline::before {
	content: "";
	position: absolute;
	top: 8px;
	bottom: 8px;
	left: 7px;
	width: 2px;
	background: var(--border);
}

.timeline li { position: relative; padding-bottom: 28px; }
.timeline li:last-child { padding-bottom: 0; }

.timeline li::before {
	content: "";
	position: absolute;
	top: 6px;
	left: -32px;
	width: 16px;
	height: 16px;
	border: 3px solid var(--orange);
	border-radius: 50%;
	background: var(--white);
}

.timeline-year {
	display: block;
	color: var(--orange-dark);
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.2;
}

.timeline h3 { margin: 4px 0 4px; font-size: 1.125rem; }
.timeline p { margin: 0; color: var(--muted); }

/* Service links as chips */
.service-chips {
	display: grid;
	gap: 12px;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (min-width: 600px) { .service-chips { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .service-chips { grid-template-columns: repeat(4, 1fr); } }

.service-chips a {
	display: flex;
	align-items: center;
	gap: 12px;
	height: 100%;
	padding: 14px 16px;
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	color: var(--navy);
	font-weight: 600;
	font-size: 0.95rem;
	line-height: 1.35;
	text-decoration: none;
	transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.service-chips a:hover {
	border-color: var(--orange);
	box-shadow: var(--shadow);
	transform: translateY(-2px);
	color: var(--navy);
}

.chip-icon {
	display: inline-flex;
	flex-shrink: 0;
	padding: 8px;
	background: var(--light);
	border-radius: var(--radius);
	transition: background-color 0.2s;
}

.chip-icon .line-icon { width: 22px; height: 22px; }
.service-chips a:hover .chip-icon { background: var(--orange); }

/* Values */
.values {
	display: grid;
	gap: 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (min-width: 600px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .values { grid-template-columns: repeat(4, 1fr); } }

.value {
	padding: 28px 24px;
	background: var(--navy);
	border-radius: var(--radius);
	border-bottom: 4px solid var(--orange);
	color: #d3e1e9;
	transition: transform 0.2s, box-shadow 0.2s, opacity 0.7s ease;
}

.value:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.value h3 { color: var(--white); font-size: 1.25rem; }
.value p { margin: 0; font-size: 0.975rem; }

/* 13. Contact page ------------------------------------------------------- */
.contact-grid { display: grid; gap: 40px; }

@media (min-width: 1000px) {
	.contact-grid { grid-template-columns: 1.6fr 1fr; gap: 56px; align-items: start; }
}

.contact-form-wrap:focus { outline: none; }
.form-note { color: var(--muted); font-size: 0.95rem; }

.contact-form { display: grid; gap: 20px; margin-top: 8px; }

.field-row { display: grid; gap: 20px; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }

.field label {
	display: block;
	margin-bottom: 6px;
	color: var(--navy);
	font-weight: 600;
	font-size: 0.95rem;
}

.field label span { color: var(--orange-dark); }

.field input,
.field select,
.field textarea {
	width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	border: 1px solid #b8c8d2;
	border-radius: var(--radius);
	background: var(--white);
	color: var(--text);
	font: inherit;
	font-size: 1rem; /* 16px stops phones zooming in on the field */
	transition: border-color 0.15s, box-shadow 0.15s;
}

.field textarea { resize: vertical; min-height: 150px; }

.field input:focus,
.field select:focus,
.field textarea:focus {
	outline: none;
	border-color: var(--navy);
	box-shadow: 0 0 0 3px rgba(239, 148, 33, 0.45);
}

.field [aria-invalid="true"] { border-color: #b3261e; }

.field-error {
	margin: 6px 0 0;
	color: #b3261e;
	font-size: 0.9rem;
}

.form-errors {
	margin: 16px 0;
	padding: 16px 20px;
	border-left: 4px solid #b3261e;
	border-radius: var(--radius);
	background: #fdecea;
	color: #5f1410;
}

.form-errors p { margin-bottom: 6px; }
.form-errors ul { margin: 0; padding-left: 1.2em; }
.form-errors a { color: inherit; }

.field-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-form .btn { justify-self: start; min-width: 180px; }

.form-privacy { margin: 0; color: var(--muted); font-size: 0.9rem; }

.form-success {
	padding: 32px;
	border: 1px solid var(--border);
	border-top: 4px solid var(--orange);
	border-radius: var(--radius);
	background: var(--light);
}

.form-success .line-icon { color: var(--orange-dark); margin-bottom: 12px; }

/* Contact details card */
.contact-details {
	padding: 28px;
	background: var(--navy);
	border-radius: var(--radius);
	color: #d3e1e9;
}

.contact-details h2 { color: var(--white); font-size: 1.5rem; }

.contact-list { display: grid; gap: 20px; list-style: none; margin: 0 0 24px; padding: 0; }
.contact-list li { display: flex; gap: 14px; line-height: 1.5; }
.contact-list strong { display: block; color: var(--white); margin-bottom: 2px; }
.contact-list a { color: var(--white); }
.contact-list a:hover { color: var(--orange); }

.contact-icon {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(239, 148, 33, 0.15);
	color: var(--orange);
}

.contact-note { display: block; margin: 6px 0; color: #a9c0cd; font-size: 0.9rem; }

.contact-social-label { margin-bottom: 8px; color: var(--white); font-weight: 600; }
.contact-details .social-links a { color: var(--white); }
.contact-details .social-links a:hover { color: var(--orange); }
.contact-details .social-links .glyph { fill: var(--navy); }

/* Headings inside page text (for example the Privacy Policy) */
.entry-content h2 { margin-top: 1.8em; font-size: 1.5rem; }
.entry-content h3 { margin-top: 1.4em; font-size: 1.2rem; }

/* 14. Industries ---------------------------------------------------------- */
/* Home: a slowly scrolling strip. Without the script, or for visitors who ask
   for less motion, it is a simple wrapped list. */
.industries {
	padding-block: 40px 44px;
	border-block: 1px solid var(--border);
	background: var(--white);
}

.industries-head { margin-bottom: 20px; }

.industries-title {
	margin: 0;
	color: var(--muted);
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-align: center;
}

.marquee { overflow: hidden; }

.marquee-track {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	list-style: none;
	margin: 0 auto;
	padding: 0 var(--gutter);
	max-width: calc(var(--container) + 2 * var(--gutter));
}

.marquee-track li {
	flex-shrink: 0;
	padding: 10px 20px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--light);
	color: var(--navy);
	font-weight: 600;
	font-size: 0.95rem;
	white-space: nowrap;
}

.marquee-track li::before {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-right: 10px;
	border-radius: 50%;
	background: var(--orange);
	vertical-align: middle;
}

/* Moving version (switched on by effects.js) */
.marquee.is-moving {
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.marquee.is-moving .marquee-track {
	flex-wrap: nowrap;
	justify-content: flex-start;
	width: max-content;
	max-width: none;
	padding: 0;
	animation: marquee-scroll var(--marquee-duration, 40s) linear infinite;
}

.marquee.is-moving:hover .marquee-track,
.marquee.is-moving:focus-within .marquee-track { animation-play-state: paused; }

@keyframes marquee-scroll {
	to { transform: translateX(-50%); }
}

/* About: industries as a grid */
.industry-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (min-width: 700px) { .industry-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .industry-grid { grid-template-columns: repeat(4, 1fr); } }

.industry-grid li {
	padding: 14px 16px;
	border-left: 3px solid var(--orange);
	border-radius: var(--radius);
	background: var(--light);
	color: var(--navy);
	font-weight: 600;
	line-height: 1.35;
}
/* Equal spacing after every item keeps the loop seamless. */
.marquee.is-moving .marquee-track { gap: 0; }
.marquee.is-moving .marquee-track li { margin-right: 12px; }
.sub-head { margin: 48px 0 18px; font-size: 1.375rem; }
.section-light .industry-grid li { background: var(--white); }

/* 15. Photos ---------------------------------------------------------------- */
/* Banner photos sit behind the slide text with a navy tint so the white text
   stays readable. The active photo zooms in slowly. */
.hero-slide { position: relative; overflow: hidden; }

.hero-photo {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.02);
}

.hero-slide::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background:
		linear-gradient(90deg, rgba(3, 42, 61, 0.94) 0%, rgba(3, 42, 61, 0.86) 45%, rgba(5, 60, 86, 0.62) 100%),
		radial-gradient(circle at 85% 20%, rgba(239, 148, 33, 0.18), transparent 45%);
}

.hero-slide .hero-inner { position: relative; z-index: 1; }

.hero.is-ready .hero-slide.is-active .hero-photo {
	animation: hero-zoom 9s ease-out forwards;
}

@keyframes hero-zoom {
	from { transform: scale(1.02); }
	to { transform: scale(1.12); }
}

/* Controls stay above the photos */
.hero-controls { position: relative; z-index: 2; }

/* Phones: a little more tint, because text covers most of the photo */
@media (max-width: 899px) {
	.hero-slide::after {
		background: linear-gradient(180deg, rgba(3, 42, 61, 0.88) 0%, rgba(3, 42, 61, 0.9) 100%);
	}
}

/* Controls float over the bottom of the photo, so the photo fills the banner. */
.hero-controls {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	margin-inline: auto;
}

.hero.is-ready .hero-inner { padding-bottom: 100px; }

@media (min-width: 900px) {
	.hero.is-ready .hero-inner { padding-bottom: 120px; }
}

/* About banner: text with a photo beside it (photo hidden on phones) */
.hero-figure { display: none; margin: 0; }

@media (min-width: 900px) {
	.page-hero-split {
		display: grid;
		grid-template-columns: 1.3fr 1fr;
		align-items: center;
		gap: 56px;
	}

	.hero-figure {
		display: block;
		position: relative;
		justify-self: end;
		max-width: 380px;
	}

	/* Orange frame offset behind the photo */
	.hero-figure::before {
		content: "";
		position: absolute;
		inset: 18px -18px -18px 18px;
		border: 3px solid var(--orange);
		border-radius: var(--radius);
	}

	.hero-figure img {
		position: relative;
		display: block;
		width: 100%;
		height: auto;
		aspect-ratio: 453 / 420;
		object-fit: cover;
		border-radius: var(--radius);
		box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
	}
}
