/*
 * Clearline Energy site styles.
 * Tokens, type and base rules come from the Clearline WordPress theme (style.css).
 */

/* ==========================================================================
   Fonts: Bricolage Grotesque is self-hosted. Roboto (body) loads from Google
   Fonts in the page head.
   ========================================================================== */
@font-face {
	font-family: "Bricolage Grotesque";
	src: url("../fonts/bricolage-grotesque-latin.woff2") format("woff2");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	/* Brand colours from the Clearline Energy logo: navy #052F5E and green #69A53F */
	--bg: #f4f7fa;
	--surface: #ffffff;
	--ink: #0b2440;
	--muted: #4a5b6e;
	--line: #d5dee7;
	--accent: #69a53f;       /* green: fills, and text on navy */
	--accent-text: #3f7a1f;  /* darker green for small text on light backgrounds */
	--accent-ink: #031d3b;   /* navy text on green buttons */
	--accent-on-deep: #9fd06f; /* lighter green for small text on navy (from the theme's announcement bar) */
	--deep: #052f5e;
	--deep-fg: #eef4fa;
	--deep-muted: #a9c0db;
	--deep-line: rgba(238, 244, 250, 0.18);
	--deep-edge: rgba(238, 244, 250, 0.5);  /* control outlines on navy */
	--danger: #a33a16;

	--font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
	--font-body: "Roboto", "Segoe UI", system-ui, sans-serif;
	--font-mono: ui-monospace, "Cascadia Mono", Consolas, monospace;

	--measure: 720px;
	--wide: 1200px;
	--gutter: 20px;
	--pad: max(var(--gutter), (100% - var(--wide)) / 2);
	--radius: 18px;
	--radius-panel: 28px;
	--section-gap: clamp(56px, 9vw, 104px);
	--header-h: 72px;
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--shadow-lift: 0 30px 60px -30px rgba(5, 47, 94, 0.35), 0 4px 14px rgba(5, 47, 94, 0.07);
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 20px); }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 400 1.0625rem/1.6 var(--font-body);
	accent-color: var(--accent);
	caret-color: var(--accent-text);
}
::selection { background: var(--deep); color: var(--deep-fg); }
img, svg, video { max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.015em;
	text-wrap: balance;
	margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h3 { font-size: 1.25rem; }
p, ul, ol { margin: 0 0 1em; }
small { font-size: 0.85em; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; margin: 0;
	z-index: 100; top: 8px; left: 8px;
	padding: 10px 16px;
	background: var(--surface); color: var(--ink);
}

.wrap { width: min(100% - 2 * var(--gutter), var(--wide)); margin-inline: auto; }
.section { margin-top: var(--section-gap); }

.eyebrow {
	font-family: var(--font-mono);
	font-size: 0.78rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 0.75em;
}
.intro { color: var(--muted); font-size: 1.1rem; max-width: 40em; }
.section-head { margin-bottom: 36px; }
.section-head > :last-child { margin-bottom: 0; }
.section-head--split { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; }
.section-head--split > div > :last-child { margin-bottom: 0; }

/* ==========================================================================
   Buttons and links
   ========================================================================== */
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 22px;
	border: 1.5px solid var(--accent);
	border-radius: 999px;
	background: var(--accent);
	color: var(--accent-ink);
	font: 600 1rem/1.2 var(--font-body);
	text-decoration: none;
	cursor: pointer;
	transition: filter 0.15s, border-color 0.15s, background-color 0.15s;
}
.button:hover { filter: brightness(1.07); color: var(--accent-ink); }
.button:active { filter: brightness(0.96); }
.button--outline { background: transparent; color: inherit; border-color: currentColor; }
.button--outline:hover { filter: none; color: inherit; background: rgba(105, 165, 63, 0.14); border-color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }

.more { font-weight: 600; text-decoration: none; }
.more:hover { text-decoration: underline; }

/* ==========================================================================
   Announcement bar, header and navigation
   ========================================================================== */
.alert-bar {
	margin: 0;
	padding: 9px var(--pad);
	background: var(--deep);
	color: var(--deep-fg);
	font-size: 0.9rem;
	text-align: center;
}
.alert-bar a { font-weight: 700; margin-left: 10px; white-space: nowrap; color: var(--accent-on-deep); }
.alert-bar a:hover { color: var(--deep-fg); }

.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: var(--header-h);
	padding: 0 var(--pad);
	background: var(--bg);
	border-bottom: 1px solid var(--line);
}
.site-logo { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); }
.site-logo img { display: block; height: 46px; width: auto; }
@media (max-width: 420px) { .site-logo img { height: 38px; } }

.site-nav .menu, .site-nav .sub-menu { list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; text-decoration: none; font-weight: 500; }
.site-nav .menu-cta > a {
	padding: 11px 20px;
	border-radius: 999px;
	background: var(--accent);
	color: var(--accent-ink);
	font-weight: 600;
	transition: filter 0.15s;
}
.site-nav .menu-cta > a:hover { filter: brightness(1.07); }
.site-nav .menu-phone > a { font-family: var(--font-mono); font-size: 0.9rem; font-weight: 500; white-space: nowrap; }

.nav-toggle, .sub-toggle { display: none; }
.nav-toggle {
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	border: 1.5px solid var(--line);
	border-radius: 999px;
	background: var(--surface);
	color: var(--ink);
	font: 600 0.95rem var(--font-body);
	cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	display: block;
	width: 18px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	transition: transform 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: -6px; }
.nav-toggle__bars::after { top: 6px; }
.is-open .nav-toggle__bars { background: transparent; }
.is-open .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.is-open .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Small screens: every link stays in the HTML. The panel and its sub-menus
   only collapse when the script that can open them is running. */
@media (max-width: 1039px) {
	.site-header { min-height: 68px; }
	.js .nav-toggle { display: inline-flex; }
	.no-js .site-header { flex-wrap: wrap; padding-block: 10px; }
	.no-js .site-nav .menu { display: flex; flex-wrap: wrap; gap: 6px 18px; }
	.no-js .site-nav .sub-menu { display: none; }
	.js .site-nav .menu {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		max-height: calc(100vh - 68px);
		max-height: calc(100dvh - 68px);
		overflow-y: auto;
		overscroll-behavior: contain;
		padding: 8px var(--gutter) 24px;
		background: var(--bg);
		border-bottom: 1px solid var(--line);
		box-shadow: 0 24px 32px -24px rgba(5, 47, 94, 0.35);
	}
	.js .site-nav.is-open .menu { display: block; }
	.js .site-nav .menu > li { position: relative; border-bottom: 1px solid var(--line); }
	.js .site-nav .menu > li > a { padding: 14px 56px 14px 0; font-size: 1.05rem; }
	.js .sub-toggle {
		display: grid;
		place-items: center;
		position: absolute;
		right: 0;
		top: 6px;
		width: 44px;
		height: 44px;
		border: 0;
		border-radius: 50%;
		background: transparent;
		color: var(--ink);
		cursor: pointer;
	}
	.sub-toggle::before {
		content: "";
		width: 9px;
		height: 9px;
		border: solid currentColor;
		border-width: 0 2px 2px 0;
		transform: translateY(-2px) rotate(45deg);
		transition: transform 0.2s;
	}
	.is-expanded > .sub-toggle::before { transform: translateY(2px) rotate(-135deg); }
	.js .site-nav .sub-menu { display: none; padding: 0 0 12px 14px; }
	.js .site-nav .is-expanded > .sub-menu { display: block; }
	.site-nav .sub-menu a { padding: 9px 0; color: var(--muted); }
	.js .site-nav .menu > .menu-phone, .js .site-nav .menu > .menu-cta { border-bottom: 0; }
	.js .site-nav .menu > .menu-cta > a { margin-top: 12px; padding: 14px 20px; text-align: center; }
}
@media (min-width: 1040px) {
	.site-nav .menu { display: flex; align-items: center; gap: 28px; }
	.site-nav .menu > li { position: relative; }
	.site-nav .menu > li > a { color: var(--muted); font-size: 0.97rem; }
	.site-nav .menu > li:not(.menu-cta) > a { padding: 24px 0; }
	.site-nav .menu > li > a:hover,
	.site-nav .menu > li:focus-within > a,
	.site-nav .menu > .current-menu-item > a,
	.site-nav .menu > .current-menu-ancestor > a { color: var(--ink); }
	.site-nav .menu > .menu-cta > a { color: var(--accent-ink); }
	.site-nav .menu > .menu-phone > a { color: var(--ink); }
	.menu-item-has-children > a::after {
		content: "";
		display: inline-block;
		width: 7px;
		height: 7px;
		margin: 0 0 3px 8px;
		border: solid currentColor;
		border-width: 0 1.5px 1.5px 0;
		transform: rotate(45deg);
	}
	.site-nav .sub-menu {
		position: absolute;
		top: calc(100% - 8px);
		left: -22px;
		z-index: 5;
		min-width: 270px;
		padding: 10px;
		background: var(--surface);
		border-radius: 16px;
		box-shadow: 0 18px 44px -16px rgba(5, 47, 94, 0.38), 0 2px 6px rgba(5, 47, 94, 0.08);
		opacity: 0;
		visibility: hidden;
		transform: translateY(6px);
		transition: opacity 0.18s, transform 0.25s var(--ease-out), visibility 0.18s;
	}
	.menu-item-has-children:hover > .sub-menu,
	.menu-item-has-children:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
	.site-nav .sub-menu a { padding: 9px 12px; border-radius: 10px; font-size: 0.97rem; color: var(--ink); }
	.site-nav .sub-menu a:hover, .site-nav .sub-menu a:focus-visible { background: var(--bg); color: var(--ink); }
	.site-nav .sub-menu .current-menu-item > a { color: var(--accent-text); }
	.site-nav .menu-wide > .sub-menu { display: grid; grid-template-columns: 1fr 1fr; min-width: 470px; gap: 0 6px; }
	.site-nav .sub-menu .sub-menu__lead > a { font-weight: 700; }
	.site-nav .sub-menu .sub-menu__lead:nth-child(3) { grid-column: 1 / -1; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
}
@media (min-width: 1040px) and (max-width: 1160px) {
	.site-nav .menu { gap: 20px; }
	.site-nav .menu-phone { display: none; }
}

/* ==========================================================================
   Hero panels (home and interior pages)
   ========================================================================== */
.site-main { padding: 20px 0 var(--section-gap); }

.hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	border-radius: var(--radius-panel);
	background: var(--deep);
	color: var(--deep-fg);
}
.hero__media { position: absolute; inset: 0; margin: 0; }
.hero__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { /* navy wash that keeps the text column readable over any photo */
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(5, 47, 94, 0.97) 0%, rgba(5, 47, 94, 0.93) 72%, rgba(5, 47, 94, 0.5) 100%);
}
.hero__body { position: relative; padding: clamp(28px, 5vw, 68px); }
.hero__body > * { max-width: 780px; }
.hero .eyebrow, .hero .lede { color: var(--deep-muted); }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero a:not(.button):hover { color: var(--deep-fg); }
.lede { font-size: 1.15rem; max-width: 34em; }
@media (max-width: 760px) {
	.hero__media::after { background: linear-gradient(180deg, rgba(5, 47, 94, 0.94), rgba(5, 47, 94, 0.86)); }
}

/* Home: business size buttons and the clear line */
.hero--home .hero__body { padding-bottom: clamp(96px, 12vw, 150px); }
.pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-top: 28px; max-width: 540px; }
.pick .button { display: block; width: 100%; padding: 16px 20px; border-radius: 16px; text-align: left; font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; line-height: 1.3; }
.pick .button small { display: block; margin-top: 4px; font: 400 0.82rem/1.4 var(--font-body); opacity: 0.85; }
.pick .button--outline { border-color: var(--deep-edge); color: var(--deep-fg); background: rgba(5, 47, 94, 0.35); }
.pick .button--outline:hover { border-color: var(--accent); color: var(--deep-fg); background: rgba(5, 47, 94, 0.35); }
.hero__phone { margin: 18px 0 0; color: var(--deep-muted); font-size: 0.95rem; }
.hero__phone strong { color: var(--deep-fg); font-family: var(--font-mono); font-weight: 500; }

.hero__line {
	position: absolute;
	left: 0;
	bottom: clamp(18px, 3vw, 40px);
	pointer-events: none;
	width: 100%;
	height: clamp(56px, 7vw, 92px);
	overflow: visible;
}
.hero__line path {
	fill: none;
	stroke: var(--accent);
	stroke-width: 3;
	stroke-linecap: round;
	stroke-linejoin: round;
	vector-effect: non-scaling-stroke;
}
.hero__line { animation: draw-line 2.4s var(--ease-out) 0.15s backwards; }
@keyframes draw-line { from { clip-path: inset(-10% 100% -10% 0); } to { clip-path: inset(-10% 0 -10% 0); } }

/* Interior pages: the clear line, settled, closes the panel */
.hero--page::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--accent); }
.hero--page .hero__body { padding-block: clamp(26px, 4vw, 52px) clamp(32px, 5vw, 60px); }
.hero--page h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
.hero--page .lede { margin-bottom: 0; }
.hero--page .actions { margin-top: 26px; }
.hero__tag {
	display: inline-block;
	margin-bottom: 14px;
	padding: 5px 12px;
	border: 1px solid var(--deep-line);
	border-radius: 999px;
	font: 500 0.8rem var(--font-mono);
	color: var(--accent-on-deep);
}
.hero__call { color: var(--deep-muted); font-size: 0.95rem; }
.hero__call a { color: var(--deep-fg); font-family: var(--font-mono); font-weight: 500; }

.breadcrumbs { margin: 0 0 clamp(22px, 4vw, 44px); padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 0.88rem; color: var(--deep-muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 10px; opacity: 0.6; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* Image placeholder captions (only present until a real image is set) */
.slot-label {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: max-content;
	max-width: calc(100% - 24px);
	font: 500 0.72rem/1.4 var(--font-mono);
	text-align: center;
	color: var(--muted);
}
.card__media, .market__media, .feature__media { position: relative; }
.hero .slot-label { z-index: 1; left: auto; right: 22px; top: 18px; transform: none; max-width: 40%; text-align: right; color: var(--deep-fg); opacity: 0.85; }
.hero--page .slot-label { top: auto; bottom: 16px; }
@media (max-width: 760px) {
	.hero .slot-label { max-width: calc(100% - 44px); white-space: nowrap; }
	.hero .slot-label__size { display: none; }
	.hero--home .slot-label { top: 14px; }
	.hero--home:has(.slot-label) .hero__body { padding-top: 52px; }
	.hero--page:has(.slot-label) .hero__body { padding-bottom: 56px; }
}

/* ==========================================================================
   Home sections
   ========================================================================== */
/* Quick facts */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin: 36px auto 0; padding: 0; list-style: none; }
.stats p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.stats .stat__num { color: var(--accent-text); font: 800 clamp(2rem, 4vw, 2.6rem)/1 var(--font-display); margin-bottom: 8px; font-variant-numeric: tabular-nums; }
@media (min-width: 800px) { .stats { grid-template-columns: repeat(4, 1fr); } }

/* Industries */
.industries { margin-top: 36px; padding-block: 22px; border-block: 1px solid var(--line); }
.industries .eyebrow { margin-bottom: 10px; }
.industries ul { display: flex; flex-wrap: wrap; gap: 8px 32px; list-style: none; margin: 0; padding: 0; }
.industries li { font: 700 1.1rem var(--font-display); color: var(--muted); }
.industries a { text-decoration: none; transition: color 0.15s; }
.industries a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }

/* Who we help */
.markets { display: grid; gap: 20px; }
@media (min-width: 860px) { .markets { grid-template-columns: 1fr 1fr; } }
.market { display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.market__media { margin: 0; aspect-ratio: 16 / 7; background: var(--deep); }
.market__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.market__body { display: flex; flex-direction: column; flex: 1; gap: 4px; padding: clamp(24px, 4vw, 34px); }
.market--dark { background: var(--deep); color: var(--deep-fg); border-color: var(--deep); }
.market .eyebrow { color: var(--accent-text); }
.market--dark .eyebrow { color: var(--accent-on-deep); }
.market :is(h2, h3) { font-size: clamp(1.5rem, 3vw, 1.9rem); }
.market ul { list-style: none; padding: 0; display: grid; gap: 10px; margin: 12px 0 18px; }
.market li { display: grid; grid-template-columns: 22px 1fr; }
.market li::before { content: ""; width: 14px; height: 2px; margin-top: 0.8em; background: var(--accent); }
.market .market__who { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; }
.market--dark .market__who { border-color: var(--deep-line); color: var(--deep-muted); }
.market .more { margin-top: 6px; }
.market--dark .more:hover { color: var(--accent-on-deep); }

/* Services */
.services { display: grid; gap: 16px; }
@media (min-width: 640px) { .services { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .services { grid-template-columns: repeat(4, 1fr); } }
.services__lead {
	display: flex;
	flex-direction: column;
	padding: clamp(24px, 3vw, 34px);
	border-radius: 20px;
	background: var(--accent);
	color: var(--accent-ink);
}
@media (min-width: 640px) { .services__lead { grid-column: span 2; } }
.services__lead .eyebrow { color: var(--accent-ink); }
.services__lead h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.services__lead p { max-width: 26em; font-size: 1.1rem; }
.services__lead .more { margin-top: auto; padding-top: 14px; }
.services__lead .more:hover { color: var(--accent-ink); }

.service {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 24px;
	border-radius: 20px;
	background: var(--surface);
	border: 1px solid var(--line);
	transition: border-color 0.15s, transform 0.3s var(--ease-out);
}
.service:hover, .service:focus-within { border-color: var(--accent); transform: translateY(-3px); }
.service__unit { align-self: flex-start; margin-bottom: 28px; padding: 4px 10px; border-radius: 999px; background: var(--bg); font: 500 0.8rem var(--font-mono); color: var(--accent-text); }
.service :is(h2, h3) { margin-bottom: 6px; font-size: 1.25rem; }
.service :is(h2, h3) a { text-decoration: none; }
.service :is(h2, h3) a::after { content: ""; position: absolute; inset: 0; border-radius: 20px; } /* whole card clickable */
.service p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.service .more { margin-top: auto; padding-top: 18px; font-size: 0.95rem; }

/* How it works: a dark full-width band */
.band {
	padding: var(--section-gap) var(--pad);
	background: var(--deep);
	color: var(--deep-fg);
}
.band .eyebrow, .band .intro { color: var(--deep-muted); }
.band a:hover { color: var(--accent-on-deep); }
.steps { display: grid; gap: 26px; counter-reset: step; position: relative; margin: 36px 0 0; padding: 0 0 0 52px; list-style: none; }
.steps::before { content: ""; position: absolute; left: 17px; top: 0; bottom: 0; width: 2px; background: var(--accent); }
.step { position: relative; counter-increment: step; }
.step::before {
	content: counter(step);
	position: absolute;
	left: -52px;
	top: -4px;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border: 2px solid var(--accent);
	border-radius: 50%;
	background: var(--deep);
	color: var(--accent-on-deep);
	font: 500 0.9rem var(--font-mono);
}
.step h3 { margin-bottom: 0.4em; }
.step p { color: var(--deep-muted); margin: 0; }
.step p + p { margin-top: 0.7em; }
@media (min-width: 860px) {
	.steps--row { grid-template-columns: repeat(4, 1fr); padding: 52px 0 0; gap: 28px; }
	.steps--row::before { left: 0; right: 0; top: 17px; bottom: auto; width: auto; height: 2px; }
	.steps--row .step::before { left: 0; top: -52px; }
}
.band__more { margin: 40px 0 0; }
/* Steps on a light background */
.steps--light .step::before { background: var(--bg); color: var(--accent-text); }
.steps--light .step p { color: var(--muted); }

/* Guides and other link cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.card { position: relative; display: flex; flex-direction: column; gap: 10px; overflow: hidden; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color 0.15s, transform 0.3s var(--ease-out); }
.card:hover, .card:focus-within { border-color: var(--accent); transform: translateY(-3px); }
.card > * { margin: 0; }
.card .eyebrow { color: var(--accent-text); }
.card :is(h2, h3) { font-size: 1.3rem; }
.card :is(h2, h3) a { text-decoration: none; }
.card :is(h2, h3) a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); } /* whole card clickable */
.card p { color: var(--muted); font-size: 0.97rem; }
.card .card__more { margin-top: auto; padding-top: 6px; color: var(--ink); font-weight: 600; font-size: 0.95rem; }
.card__media { margin: -24px -24px 6px; aspect-ratio: 16 / 10; background: var(--deep); }
.card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.card:hover .card__media img { transform: scale(1.04); }
.cards--four { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }

/* FAQ */
.faq details { margin: 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
	position: relative;
	padding: 20px 44px 20px 0;
	list-style: none;
	cursor: pointer;
	font: 700 1.15rem/1.35 var(--font-display);
}
.faq summary:hover { color: var(--accent-text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font: 400 1.6rem var(--font-mono); color: var(--accent-text); }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 0 0 22px; color: var(--muted); max-width: 44em; }
.faq__more { margin: 26px 0 0; }

/* Quote */
.quote { display: grid; gap: 32px 48px; scroll-margin-top: 90px; }
@media (min-width: 860px) { .quote { grid-template-columns: 5fr 7fr; align-items: start; } }
@media (min-width: 860px) { .quote--page { grid-template-columns: 5fr 7fr; } .quote--page > .prose { order: -1; } }
.contact { font-family: var(--font-mono); font-size: 0.92rem; line-height: 1.9; }
.form-panel { padding: clamp(22px, 4vw, 32px); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }

/* ==========================================================================
   Forms
   ========================================================================== */
label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 6px; }
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="file"]),
select,
textarea {
	width: 100%;
	padding: 11px 12px;
	border: 1.5px solid var(--line);
	border-radius: 10px;
	background: var(--bg);
	color: var(--ink);
	font: 1rem var(--font-body);
	transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(105, 165, 63, 0.25); }
input[type="file"] {
	width: 100%;
	padding: 18px;
	border: 1.5px dashed var(--line);
	border-radius: 12px;
	background: var(--bg);
	font: 0.95rem var(--font-body);
	cursor: pointer;
}
input[type="file"]::file-selector-button {
	margin-right: 12px;
	padding: 9px 16px;
	border: 0;
	border-radius: 999px;
	background: var(--ink);
	color: var(--bg);
	font: 600 0.9rem var(--font-body);
	cursor: pointer;
}
button[type="submit"] {
	padding: 14px 24px;
	border: 0;
	border-radius: 999px;
	background: var(--accent);
	color: var(--accent-ink);
	font: 600 1rem var(--font-body);
	cursor: pointer;
	transition: filter 0.15s;
}
button[type="submit"]:hover { filter: brightness(1.07); }
.choices { display: grid; gap: 10px; margin: 0 0 18px; padding: 0; border: 0; }
.choices legend { padding: 0; font-size: 0.9rem; font-weight: 600; margin-bottom: 6px; }
.choice { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; margin: 0; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); cursor: pointer; transition: border-color 0.15s, background-color 0.15s; }
.choice:hover { border-color: var(--accent); }
.choice:has(input:checked) { border-color: var(--accent); background: rgba(105, 165, 63, 0.1); }
.choice:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.choice input { margin: 0.25em 0 0; }
.choice strong { display: block; font-weight: 600; }
.choice small { display: block; color: var(--muted); font-weight: 400; }
@media (min-width: 560px) { .form-panel:not(.aside-panel) .choices { grid-template-columns: 1fr 1fr; } }
.form p { margin: 0 0 18px; }
.form > p:last-of-type { margin-bottom: 0; }
.form__row { display: grid; gap: 0 16px; }
@media (min-width: 560px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form__note { margin: 14px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--bg); color: var(--muted); font-size: 0.9rem; }
.form__note[hidden] { display: none; }

/* ==========================================================================
   Interior page layouts
   ========================================================================== */
/* Content with a sticky quote panel beside it */
.with-aside { display: grid; gap: 48px; margin-top: clamp(40px, 6vw, 72px); }
@media (min-width: 1000px) {
	.with-aside { grid-template-columns: minmax(0, 1fr) 380px; gap: 72px; align-items: start; }
	.with-aside > aside { position: sticky; top: calc(var(--header-h) + 24px); }
}
.aside-panel h2 { font-size: 1.6rem; }
.aside-panel > p { color: var(--muted); font-size: 0.97rem; }
.aside-panel .contact { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }

.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.05rem); margin-top: 1.9em; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5em; }
.prose > p:first-child, .prose .lead { font-size: 1.2rem; line-height: 1.55; }
.prose :is(ul, ol):not([class]) { padding-left: 1.3em; }
.prose li + li { margin-top: 0.35em; }
.prose a:not(.button):not(.more) { color: var(--accent-text); font-weight: 600; }
.prose .faq, .prose .steps, .prose .cards { margin-top: 24px; }
.prose .step h3 { margin-top: 0; }
.prose .contact a { color: inherit !important; font-weight: inherit !important; }
.prose--legal h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); }
.narrow { width: min(100% - 2 * var(--gutter), var(--measure)); margin-inline: auto; }

/* "On this page" */
.toc { margin-top: 28px; padding: 18px 22px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.toc h2 { margin: 0 0 8px; font: 600 0.78rem var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.toc__list { display: flex; flex-wrap: wrap; gap: 4px 22px; list-style: none; margin: 0; padding: 0; }
.toc li + li { margin-top: 0; }
.toc a { font-weight: 500 !important; color: var(--ink) !important; }
.toc a:hover { color: var(--accent-text) !important; }

/* Tick lists */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 34px 1fr; align-items: start; }
.ticks li + li { margin-top: 0; }
.ticks li::before {
	content: "";
	width: 22px;
	height: 22px;
	margin-top: 0.18em;
	border-radius: 50%;
	background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.2 11.4l3.2 3.1 6.4-6.8' fill='none' stroke='%23031d3b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat;
}
.ticks a { font-weight: 600; }

/* Split: heading on the left, content on the right */
.split { display: grid; gap: 28px 64px; }
@media (min-width: 900px) { .split { grid-template-columns: 5fr 7fr; align-items: start; } }
.split > div > :last-child { margin-bottom: 0; }
.band .ticks li { font-size: 1.15rem; }

/* Reasons: a ruled grid of short statements */
.reasons { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.reasons li { padding: 24px 0; border-bottom: 1px solid var(--line); }
.reasons h3 { margin-bottom: 6px; }
.reasons p { margin: 0; color: var(--muted); font-size: 0.98rem; }
@media (min-width: 720px) {
	.reasons { grid-template-columns: 1fr 1fr; }
	.reasons li { padding: 28px 28px 28px 0; }
	.reasons li:nth-child(even) { padding-left: 28px; padding-right: 0; border-left: 1px solid var(--line); }
}

/* Notes: quiet conditions text */
.notes { padding: clamp(22px, 3vw, 30px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.notes h2, .notes h3 { font-size: 1.25rem; }
.notes p { color: var(--muted); font-size: 0.97rem; }
.notes > :last-child { margin-bottom: 0; }

/* Photo and text side by side */
.feature { display: grid; gap: 28px 56px; align-items: center; }
@media (min-width: 900px) { .feature { grid-template-columns: 1fr 1fr; } }
.feature__media { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-panel); background: var(--deep); }
.feature__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.feature > div > :last-child { margin-bottom: 0; }

/* Closing call to action */
.cta {
	display: grid;
	gap: 24px 48px;
	align-items: center;
	padding: clamp(28px, 5vw, 60px);
	border-radius: var(--radius-panel);
	background: var(--deep);
	color: var(--deep-fg);
}
@media (min-width: 900px) { .cta { grid-template-columns: 1fr auto; } }
.cta h2 { margin-bottom: 0.35em; }
.cta p { margin: 0; color: var(--deep-muted); max-width: 36em; font-size: 1.1rem; }
.cta .actions { flex-direction: column; align-items: stretch; }
.cta .button--outline { border-color: var(--deep-edge); font-family: var(--font-mono); font-weight: 500; }
.cta .button--outline:hover { color: var(--deep-fg); }

/* Plain link lists (states, related links) */
.link-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.link-list li + li { margin-top: 0; }
.link-list a { display: block; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); text-decoration: none; font-weight: 500 !important; color: var(--ink) !important; transition: border-color 0.15s; }
.link-list a:hover { border-color: var(--accent); }

/* ==========================================================================
   Service and industry templates
   ========================================================================== */
.shero, .ihero { margin-top: -20px; background: var(--surface); border-bottom: 3px solid var(--accent); } /* the clear line closes the white hero */
.breadcrumbs--light { margin-bottom: clamp(20px, 3vw, 36px); color: var(--muted); }
.breadcrumbs--light a:hover { color: var(--ink); }
.shero h1, .ihero h1 { font-size: clamp(2.5rem, 5.6vw, 4.2rem); color: var(--deep); }
.shero .lede, .ihero .lede { max-width: 28em; font-size: clamp(1.2rem, 2vw, 1.45rem); font-weight: 300; line-height: 1.45; }
.shero .actions, .ihero .actions { margin: 28px 0 0; }
.tag { display: inline-block; margin-bottom: 16px; padding: 5px 12px; border-radius: 999px; background: var(--bg); font: 500 0.8rem var(--font-mono); color: var(--accent-text); }

/* Service hero: copy on the left, the quote form raised on the right */
.shero { padding: clamp(28px, 4vw, 48px) 0 clamp(48px, 7vw, 88px); }
.shero__grid { display: grid; gap: 44px 72px; align-items: start; }
@media (min-width: 980px) { .shero__grid { grid-template-columns: minmax(0, 1fr) 420px; } .shero__copy { padding-top: 12px; } }
@media (max-width: 979px) { .shero__side, .closer > .form-panel { max-width: 520px; } }
.shero__copy > p:not([class]) { max-width: 36em; color: var(--muted); }
.shero__side { position: relative; isolation: isolate; }
.shero__side::before { /* navy block set behind the form for depth */
	content: "";
	position: absolute;
	z-index: -1;
	inset: -16px -16px 72px 64px;
	border-radius: var(--radius-panel);
	background: var(--deep);
}
@media (max-width: 979px) { .shero__side::before { inset: -10px -10px 72px 48px; } }
.form-panel--raised { border: 0; box-shadow: var(--shadow-lift); }

/* Industry hero: copy on the left, a large image with floating facts on the right */
.ihero { padding: clamp(28px, 4vw, 48px) 0 clamp(72px, 9vw, 112px); }
.ihero__grid { display: grid; gap: 44px 64px; align-items: center; }
@media (min-width: 980px) { .ihero__grid { grid-template-columns: 1fr 1fr; } }
.ihero__visual { position: relative; }
.ihero__media { position: relative; margin: 0; aspect-ratio: 5 / 4; overflow: hidden; border-radius: var(--radius-panel); background: var(--bg); box-shadow: var(--shadow-lift); }
.ihero__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ihero__facts {
	position: absolute;
	left: -28px;
	bottom: -40px;
	display: flex;
	gap: 28px;
	margin: 0;
	padding: 20px 24px;
	list-style: none;
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: var(--shadow-lift);
}
.ihero__facts strong { display: block; font: 800 1.7rem/1 var(--font-display); color: var(--accent-text); font-variant-numeric: tabular-nums; }
.ihero__facts span { display: block; max-width: 11em; margin-top: 6px; font-size: 0.85rem; line-height: 1.4; color: var(--muted); }
@media (max-width: 979px) { .ihero__facts { left: 12px; max-width: calc(100% - 24px); gap: 20px; } }

/* Large opening statement */
.statement { display: grid; gap: 20px 64px; }
@media (min-width: 900px) { .statement { grid-template-columns: 7fr 5fr; align-items: start; } }
.statement p { margin: 0; color: var(--muted); }
.statement .statement__lead { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 300; line-height: 1.4; color: var(--deep); }

/* Images and cards lifted off the page */
.depth { position: relative; isolation: isolate; overflow: visible; background: none; }
.depth img { border-radius: var(--radius-panel); box-shadow: var(--shadow-lift); }
.depth::before { /* navy backing panel, the same device as behind the hero form */
	content: "";
	position: absolute;
	z-index: -1;
	inset: -16px 64px 72px -16px;
	border-radius: var(--radius-panel);
	background: var(--deep);
}
.depth--left::before { inset: -16px -16px 72px 64px; }
@media (max-width: 899px) { .depth { margin-top: 10px; } .depth::before { inset: -10px 48px 72px -10px; } .depth--left::before { inset: -10px -10px 72px 48px; } }
@media (min-width: 900px) { .feature--flip .feature__media { order: 2; } }
.fit h3 { margin-top: 1.4em; }
.fit p { color: var(--muted); }
.fit a { color: var(--accent-text); font-weight: 600; }
.service--lift { border: 0; box-shadow: var(--shadow-lift); }
@media (min-width: 1040px) { .services--three { grid-template-columns: repeat(3, 1fr); } }

.panels { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.panel { padding: clamp(24px, 3vw, 36px); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-lift); }
.panel::before, .testimonial::before { content: ""; display: block; width: 40px; height: 3px; margin-bottom: 22px; background: var(--accent); }
.panel h3 { font-size: 1.5rem; }
.panel p { color: var(--muted); }
.panel a { color: var(--accent-text); font-weight: 600; }
.panel > :last-child { margin-bottom: 0; }

/* Testimonials */
.testimonials { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.testimonial { display: flex; flex-direction: column; margin: 0; padding: 28px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-lift); }
.testimonial blockquote { margin: 0 0 22px; font-size: 1.12rem; font-weight: 300; line-height: 1.55; }
.testimonial blockquote p { margin: 0; }
.testimonial figcaption { margin-top: auto; font-size: 0.92rem; color: var(--muted); }
.testimonial figcaption strong { display: block; font-weight: 600; color: var(--ink); }
.testimonial__flag { align-self: flex-start; margin: 0 0 14px; padding: 4px 11px; border-radius: 999px; background: var(--bg); font: 500 0.8rem var(--font-mono); color: var(--muted); }
.testimonial--feature { padding: clamp(28px, 5vw, 64px); border-radius: var(--radius-panel); background: var(--deep); color: var(--deep-fg); box-shadow: none; }
.testimonial--feature blockquote { max-width: 26em; font: 600 clamp(1.4rem, 3vw, 2.1rem)/1.3 var(--font-display); letter-spacing: -0.01em; }
.testimonial--feature figcaption { color: var(--deep-muted); }
.testimonial--feature figcaption strong { color: var(--deep-fg); }
.testimonial--feature .testimonial__flag { background: rgba(238, 244, 250, 0.12); color: var(--deep-muted); }

/* Industry close: the steps beside the quote form */
.closer { display: grid; gap: 44px 72px; align-items: start; scroll-margin-top: 90px; }
@media (min-width: 980px) { .closer { grid-template-columns: minmax(0, 1fr) 420px; } }
.closer > div > :last-child { margin-bottom: 0; }

/* ==========================================================================
   Footer and mobile call bar
   ========================================================================== */
.site-footer { margin-top: 0; padding: 56px var(--pad) 32px; background: var(--surface); border-top: 1px solid var(--line); color: var(--muted); font-size: 0.94rem; }
.site-footer__top { display: grid; gap: 36px 32px; }
@media (min-width: 700px) { .site-footer__top { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .site-footer__top { grid-template-columns: 1.5fr repeat(4, 1fr); } }
.site-footer__brand p { margin: 0 0 0.7em; max-width: 30em; }
.site-footer__brand .site-logo { margin-bottom: 18px; }
.site-footer h2 { margin: 0 0 12px; font: 600 0.78rem var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer__fine { display: grid; gap: 8px 48px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.88rem; }
.site-footer__fine p { margin: 0; max-width: 60em; }
.site-footer__fine p:only-child { grid-column: 1 / -1; }
@media (min-width: 900px) { .site-footer__fine { grid-template-columns: 1fr 1fr; } }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.site-footer__base p { margin: 0; }
.footer-menu { display: flex !important; flex-wrap: wrap; gap: 6px 20px !important; }

.call-bar { display: none; }
@media (max-width: 640px) {
	.call-bar {
		display: flex;
		gap: 10px;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 30;
		padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
		background: var(--surface);
		border-top: 1px solid var(--line);
	}
	.call-bar .button { flex: 1; padding: 13px; }
	.site-footer { padding-bottom: 100px; }
	.js .site-nav .menu { padding-bottom: 104px; } /* clear of the call bar */
}

/* ==========================================================================
   WordPress: admin bar offset, article pagination, core alignment classes
   ========================================================================== */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); text-decoration: none; }
.pagination .current { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.alignleft { float: left; margin: 0.3em 1.5em 1em 0; }
.alignright { float: right; margin: 0.3em 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption, .wp-block-image figcaption { font-size: 0.875rem; color: var(--muted); }
.prose img { border-radius: 12px; }
