/*
 * Lock & Key Hub — the whole front end.
 *
 * Consolidates the five ~5 KB inline <style> blocks the reference site repeated
 * on every page into one cached sheet. No framework, no build step, no webfont
 * request (the system stack is what the source used, and it costs nothing).
 *
 * PALETTE — every text and button pairing below is measured, not eyeballed. Each
 * number is the WCAG 2.1 ratio for that pair and is asserted by
 * tools/lkh-contrast.php, which the harness runs:
 *
 *   --ink        #0f1e3d on white 16.49 | on --accent 5.88
 *   --accent     #f97316 on --ink 5.88  | on footer ink 6.47 | on WHITE 2.73 (FAIL)
 *   --accent-deep #c2410c on white 5.18 (the fix for white-on-orange)
 *   --body       #1a1a2e on white 17.06 | on --accent 6.09
 *   --muted      #64748b on white 4.76  | on --tint 4.55
 *   --on-dark    #8aa4cc on --ink 6.49  | on footer 7.13
 *   --hero-sub   #b8c8e8 on --ink 9.79
 *   emergency    #ffffff on #b91c1c 6.47 | #ffeb3b on #b91c1c 5.30 (large)
 *   residential  #ffffff on #166534 7.13 | #064e3b on #4ade80 5.58
 *   commercial   #ffffff on #1d4ed8 6.70 | #7dd3fc on #1d4ed8 4.02 (large)
 *                  #0c4a6e on #7dd3fc 5.67 | #ffffff on #1e3a8a 10.36
 *
 * The reference site set WHITE text on #f97316 for its nav button, urgency strip
 * and hero button. That is 2.73:1 and fails AA, so those three now use --ink on
 * the same orange — a hair heavier to look at, measurably compliant.
 */

:root {
	--ink: #0f1e3d;
	--ink-2: #1a3a6b;
	--footer: #0a1628;
	--accent: #f97316;
	--accent-dark: #ea6c0a;
	--accent-deep: #c2410c;
	--accent-banner: #e05d00;
	--emergency: #b91c1c;
	--emergency-dark: #7f1d1d;
	--residential: #166534;
	--residential-dark: #14532d;
	--residential-accent: #4ade80;
	--residential-accent-ink: #064e3b;
	--commercial: #1d4ed8;
	--commercial-dark: #1e3a8a;
	--commercial-accent: #7dd3fc;
	--commercial-accent-ink: #0c4a6e;
	--body: #1a1a2e;
	--muted: #64748b;
	--on-dark: #8aa4cc;
	--hero-sub: #b8c8e8;
	--tint: #f8fafc;
	--line: #e2e8f0;
	--chip: #475569;
	--tag: #334155;
	--white: #ffffff;
	--radius-sm: 6px;
	--radius: 8px;
	--radius-lg: 12px;
	--radius-xl: 16px;
	--container: 1100px;
	--narrow: 780px;
	--section-y: 80px;
	--callbar-h: 58px;
	--shadow-card: 0 4px 24px rgba(0, 0, 0, 0.07);
	--shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.12);
	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--body);
	background: var(--white);
	/* Keeps the fixed tap-to-call bar from covering the footer. */
	padding-bottom: calc(var(--callbar-h) + 12px);
}

img,
svg {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

a {
	color: var(--accent-deep);
}

a:hover {
	color: var(--ink);
}

/*
 * Links inside sentences must not depend on color alone (Lighthouse
 * `link-in-text-block`, WCAG 1.4.1). The safe default is therefore underline, and
 * the components that are already visually distinct — buttons, nav items, cards,
 * chips, the call bar — opt out. Doing it the other way round is what let a link
 * inside the closing CTA paragraph ship with color as its only cue.
 */
a {
	text-decoration: underline;
	text-underline-offset: 2px;
	text-decoration-thickness: 1px;
}

.brand,
.nav-cta,
.nav-list a,
.btn,
.card,
.card .card__link,
.area-tag a,
.fixed-callbar a,
.footer-links__list a,
.skip-link {
	text-decoration: none;
}

.card:hover .card__link,
.nav-cta:hover,
.btn:hover {
	text-decoration: none;
}

.footer-links__list a:hover,
.area-tag a:hover {
	text-decoration: underline;
}

h1, h2, h3, h4 {
	line-height: 1.15;
	color: var(--ink);
	margin: 0 0 0.5em;
	font-weight: 800;
}

p {
	margin: 0 0 1em;
}

ul, ol {
	margin: 0 0 1em;
	padding-left: 1.2em;
}

:focus-visible {
	outline: 3px solid var(--ink);
	outline-offset: 2px;
	border-radius: 2px;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--white);
	color: var(--ink);
	padding: 10px 16px;
	z-index: 200;
	border-radius: 0 0 var(--radius) 0;
	font-weight: 700;
}

.skip-link:focus {
	left: 0;
}

.container {
	max-width: var(--container);
	margin: 0 auto;
	padding-inline: 20px;
}

.container--narrow {
	max-width: var(--narrow);
}

/* -------------------------------------------------------------- buttons */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	text-decoration: none;
	font-weight: 800;
	border: 0;
	border-radius: var(--radius);
	cursor: pointer;
	padding: 16px 32px;
	font-size: 1.05rem;
	line-height: 1.2;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.btn--hero {
	background: var(--hero-accent, var(--accent));
	color: var(--hero-accent-ink, var(--ink));
	padding: 18px 40px;
	font-size: 1.15rem;
	box-shadow: 0 6px 22px rgba(0, 0, 0, 0.22);
}

.btn--hero:hover {
	background: var(--hero-accent-hover, var(--accent-dark));
	color: var(--hero-accent-ink, var(--ink));
	transform: translateY(-2px);
}

.btn--primary {
	background: var(--accent);
	color: var(--ink);
}

.btn--primary:hover {
	background: var(--accent-dark);
	color: var(--ink);
}

.btn--phone {
	background: var(--white);
	color: var(--accent-deep);
	font-size: 1.6rem;
	font-weight: 900;
	letter-spacing: 0.5px;
	padding: 16px 40px;
	border-radius: 10px;
}

.btn--phone:hover {
	background: #fff4ec;
	color: var(--accent-deep);
}

.btn--block {
	display: flex;
	width: 100%;
}

/* ---------------------------------------------------------------- nav band */

.site-nav {
	background: var(--ink);
	position: sticky;
	top: 0;
	z-index: 100;
	transition: box-shadow 0.2s ease;
}

.site-nav.is-stuck {
	box-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.site-nav__inner {
	max-width: var(--container);
	margin: 0 auto;
	padding: 12px 20px;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	font-size: 1.4rem;
	font-weight: 800;
	letter-spacing: -0.4px;
	color: var(--white);
}

.brand-text span {
	color: var(--accent);
}

.brand-logo img {
	display: block;
	max-height: 40px;
	width: auto;
}

.site-nav__links {
	flex: 1 1 auto;
}

.nav-list {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 22px;
	margin: 0;
	padding: 0;
	justify-content: center;
}

.nav-list a {
	color: var(--on-dark);
	text-decoration: none;
	font-size: 0.95rem;
	font-weight: 600;
	padding: 6px 2px;
	border-bottom: 2px solid transparent;
}

.nav-list a:hover,
.nav-list .current-menu-item > a,
.nav-list .current_page_item > a {
	color: var(--white);
	border-bottom-color: var(--accent);
}

.nav-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--accent);
	color: var(--ink);
	padding: 10px 20px;
	border-radius: var(--radius-sm);
	text-decoration: none;
	font-weight: 800;
	font-size: 0.95rem;
	white-space: nowrap;
}

.nav-cta:hover {
	background: var(--accent-dark);
	color: var(--ink);
}

/* --------------------------------------------------------------------- hero */

.hero {
	background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
	color: var(--white);
	padding: 72px 0 64px;
	text-align: center;
	--hero-accent: var(--accent);
	--hero-accent-hover: var(--accent-dark);
	--hero-accent-ink: var(--ink);
	--hero-em: var(--accent);
}

.hero--short {
	padding: 48px 0 44px;
}

.hero--emergency {
	background: linear-gradient(135deg, var(--emergency-dark) 0%, var(--emergency) 100%);
	--hero-accent: var(--white);
	--hero-accent-hover: #f1f5f9;
	--hero-accent-ink: var(--emergency);
	--hero-em: #ffeb3b;
}

.hero--local {
	background: linear-gradient(135deg, var(--residential-dark) 0%, var(--residential) 100%);
	--hero-accent: var(--residential-accent);
	--hero-accent-hover: #22c55e;
	--hero-accent-ink: var(--residential-accent-ink);
	--hero-em: var(--residential-accent);
}

/* Commercial landing: steel blue, distinct from the emergency red and the
   residential green, and measured in tools/lkh-contrast.php like every other
   text/background pair in this sheet. */
.hero--commercial {
	background: linear-gradient(135deg, var(--commercial-dark) 0%, var(--commercial) 100%);
	--hero-accent: var(--commercial-accent);
	--hero-accent-hover: #38bdf8;
	--hero-accent-ink: var(--commercial-accent-ink);
	--hero-em: var(--commercial-accent);
}

/* -------------------------------------------------------- hero with a photo */

/*
 * The hero photo is a CSS background, set inline by section-hero.php through the
 * --lkh-hero-image custom property, and it always sits under the skin's own
 * scrim. That ordering is the whole design: the picture is decoration, so it may
 * never decide whether the headline is readable.
 *
 * The scrim alpha is 0.94/0.9 rather than something prettier because it is a
 * measured choice, not a taste one: tools/lkh-contrast.php asserts every hero
 * text colour against this scrim composited over the brightest possible pixel
 * (pure white), which is the worst case any photograph can produce.
 *
 * Declared AFTER the skin rules on purpose. Each skin sets the `background`
 * shorthand, which resets background-image; at equal specificity the later rule
 * wins, so this block would silently lose the photo if it moved above them.
 *
 * The photo layer is `var(--lkh-hero-image)` and NOT `url(var(--lkh-hero-image))`.
 * That wrapper is the one mistake this treatment invites, and it shipped once (see
 * STATUS.md, 1.3.1): lkh_photo_attrs() already writes the `url(...)` token into the
 * custom property, so wrapping it substitutes to `url(url(...))`, which is invalid
 * at computed-value time. The declaration is then dropped outright and the skin's
 * gradient stays - a saved photo that simply never appears, with a correct-looking
 * class and inline variable in the HTML to mislead whoever debugs it.
 * tools/lkh-pages-test.php now fails on `url(var(` for that reason.
 *
 * 1.3.2 lowered the hero scrim from 0.94/0.90 to 0.90/0.78 at the client's
 * request, so the photograph reads as a photograph rather than a near-flat colour.
 * The change still clears WCAG AA on the mathematical worst case (a pure-white
 * pixel, the brightest a JPEG can hold), and tools/lkh-contrast.php recomputes the
 * effective background for every text/background pair in the photo banners when
 * these numbers move. tools/lkh-pages-test.php asserts the rgba string below is
 * still the literal one carried by the .hero--bg rule, so editing the CSS without
 * updating the test is a build error.
 */
.hero--bg {
	background-image:
		linear-gradient(180deg, rgba(15, 30, 61, 0.9) 0%, rgba(10, 22, 40, 0.78) 100%),
		var(--lkh-hero-image);
	background-size: cover, cover;
	background-position: center, center;
	background-repeat: no-repeat, no-repeat;
}

/* The accent landings keep their identity: the same photo, tinted with their own
   dark colour instead of the neutral ink. */
.hero--emergency.hero--bg {
	background-image:
		linear-gradient(180deg, rgba(127, 29, 29, 0.9) 0%, rgba(69, 10, 10, 0.78) 100%),
		var(--lkh-hero-image);
}

.hero--local.hero--bg {
	background-image:
		linear-gradient(180deg, rgba(20, 83, 45, 0.9) 0%, rgba(5, 46, 22, 0.78) 100%),
		var(--lkh-hero-image);
}

.hero--commercial.hero--bg {
	background-image:
		linear-gradient(180deg, rgba(30, 58, 138, 0.9) 0%, rgba(12, 35, 88, 0.78) 100%),
		var(--lkh-hero-image);
}

/* A short hero carrying a photo needs room to breathe: 44px of padding under a
   photograph reads as a mistake rather than as a banner. Two classes, so it also
   beats the responsive `.hero` padding above without an !important. */
.hero--short.hero--bg {
	padding: 96px 0 84px;
}

.hero__badge {
	display: inline-block;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.28);
	color: var(--white);
	font-size: 0.82rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.1px;
	padding: 6px 16px;
	border-radius: 20px;
	margin-bottom: 22px;
}

.hero__title {
	font-size: clamp(2rem, 5vw, 3.2rem);
	font-weight: 900;
	color: var(--white);
	margin: 0 auto 20px;
	max-width: 820px;
}

.hero__title em {
	font-style: normal;
	color: var(--hero-em);
}

.hero__sub {
	font-size: 1.12rem;
	color: var(--hero-sub);
	max-width: 620px;
	margin: 0 auto 34px;
}

.hero--emergency .hero__sub,
.hero--local .hero__sub,
.hero--commercial .hero__sub {
	color: rgba(255, 255, 255, 0.94);
}

.hero__hours {
	margin: 18px auto 0;
	font-size: 0.9rem;
	color: var(--on-dark);
}

.hero__trust {
	list-style: none;
	margin: 38px 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 14px 26px;
	justify-content: center;
	color: var(--on-dark);
	font-size: 0.9rem;
}

.hero--emergency .hero__trust,
.hero--local .hero__trust,
.hero--commercial .hero__trust {
	color: rgba(255, 255, 255, 0.9);
}

.hero__trust li {
	display: flex;
	align-items: center;
	gap: 8px;
}

.hero__trust .dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--hero-em);
	flex: 0 0 auto;
}

/* ----------------------------------------------------------- urgency strip */

.strip {
	background: var(--accent);
	color: var(--ink);
	padding: 14px 20px;
	text-align: center;
	font-size: 0.98rem;
	font-weight: 700;
}

.strip .container {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 6px 10px;
	align-items: baseline;
	justify-content: center;
}

.strip a {
	color: var(--ink);
	text-decoration: underline;
	text-underline-offset: 3px;
	white-space: nowrap;
}

/* ----------------------------------------------------------- section base */

.section {
	padding: var(--section-y) 0;
	background: var(--white);
}

.section--areas,
.section--tinted,
.section--faq {
	background: var(--tint);
}

.section__title {
	text-align: center;
	font-size: clamp(1.6rem, 3vw, 2.3rem);
	font-weight: 900;
	color: var(--ink);
	margin-bottom: 12px;
}

.section__sub {
	text-align: center;
	color: var(--muted);
	max-width: 580px;
	margin: 0 auto 48px;
}

/* ------------------------------------------------------- homepage big cards */

/*
 * The band carries the four services (automotive, commercial, residential,
 * emergency). 340px is the floor: at the 1060px of usable container that leaves
 * exactly two columns, so four cards land as a deliberate 2x2 rather than three
 * across with one orphan on the second row, and the cards are wide enough for
 * their keyword chips to sit on one line.
 */
.cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
	gap: 28px;
}

/*
 * Where the header's single "Services" link lands. The nav bar is sticky and
 * roughly 64px tall, so without this the anchor jump slides the band heading
 * under it.
 */
#services {
	scroll-margin-top: 88px;
}

.card {
	display: flex;
	flex-direction: column;
	border-radius: var(--radius-xl);
	overflow: hidden;
	box-shadow: var(--shadow-card);
	text-decoration: none;
	color: inherit;
	background: var(--white);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow-hover);
	color: inherit;
}

.card__header {
	padding: 32px 28px 26px;
	color: var(--white);
	background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
}

.card__header--emergency {
	background: linear-gradient(135deg, var(--emergency-dark) 0%, var(--emergency) 100%);
}

.card__header--local {
	background: linear-gradient(135deg, var(--residential-dark) 0%, var(--residential) 100%);
}

.card__header--commercial {
	background: linear-gradient(135deg, var(--commercial-dark) 0%, var(--commercial) 100%);
}

/*
 * A service card with a photo: the same rule as the hero — the picture is a
 * background under a scrim, so the card's icon, kicker, heading and intro keep
 * exactly the contrast they were measured with, whatever the client uploads.
 * The photo is requested at 'large' (see lkh_card_attrs()) because this band is
 * a few hundred pixels tall, not a full-screen banner.
 *
 * Declared after the three card__header--* skins, for the same reason .hero--bg
 * sits after the hero skins: they set the `background` shorthand.
 *
 * Bare `var(--lkh-card-image)`, never `url(var(--lkh-card-image))` - the custom
 * property already carries the url() token (see the long note on .hero--bg).
 *
 * 1.3.2: the card scrim is 0.84/0.78 (was 0.90/0.86) so the photograph stays
 * visible, same rationale as the hero scrim above. tools/lkh-contrast.php
 * recomputes the effective background and tools/lkh-pages-test.php asserts the
 * rgba string below.
 */
.card__header--bg {
	background-image:
		linear-gradient(180deg, rgba(15, 30, 61, 0.84) 0%, rgba(10, 22, 40, 0.78) 100%),
		var(--lkh-card-image);
	background-size: cover, cover;
	background-position: center, center;
	background-repeat: no-repeat, no-repeat;
}

.card__header--emergency.card__header--bg {
	background-image:
		linear-gradient(180deg, rgba(127, 29, 29, 0.84) 0%, rgba(69, 10, 10, 0.78) 100%),
		var(--lkh-card-image);
}

.card__header--local.card__header--bg {
	background-image:
		linear-gradient(180deg, rgba(20, 83, 45, 0.84) 0%, rgba(5, 46, 22, 0.78) 100%),
		var(--lkh-card-image);
}

.card__header--commercial.card__header--bg {
	background-image:
		linear-gradient(180deg, rgba(30, 58, 138, 0.84) 0%, rgba(12, 35, 88, 0.78) 100%),
		var(--lkh-card-image);
}

.card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	background: rgba(255, 255, 255, 0.16);
	border-radius: 14px;
	margin-bottom: 16px;
}

.card__tag {
	display: inline-block;
	background: rgba(255, 255, 255, 0.2);
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	padding: 3px 10px;
	border-radius: 20px;
	margin-bottom: 12px;
}

.card__title {
	font-size: 1.4rem;
	font-weight: 900;
	color: var(--white);
	margin: 0 0 10px;
}

.card__intro {
	font-size: 0.93rem;
	line-height: 1.55;
	opacity: 0.9;
	margin: 0;
}

.card__body {
	padding: 22px 28px 26px;
	background: var(--tint);
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 18px;
	border: 1px solid var(--line);
	border-top: 0;
}

.card__keywords {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
}

.chip {
	background: var(--white);
	border: 1px solid var(--line);
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 0.8rem;
	color: var(--chip);
	font-weight: 500;
}

.card__link {
	margin-top: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: var(--ink);
	color: var(--white);
	padding: 13px 20px;
	border-radius: var(--radius);
	text-decoration: none;
	font-weight: 700;
	font-size: 0.95rem;
}

.card__link--emergency {
	background: #991b1b;
}

.card__link--local {
	background: var(--residential);
}

.card__link--commercial {
	background: var(--commercial);
}

.card:hover .card__link {
	background: var(--ink-2);
}

.card:hover .card__link--emergency {
	background: var(--emergency-dark);
}

.card:hover .card__link--local {
	background: var(--residential-dark);
}

.card:hover .card__link--commercial {
	background: var(--commercial-dark);
}

.card__arrow {
	font-size: 1.1rem;
}

/* ------------------------------------------------------ landing card grids */

.service-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 24px;
}

.service-card {
	background: var(--tint);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	padding: 26px 24px;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.service-card:hover {
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
	transform: translateY(-3px);
}

.service-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 10px;
	margin-bottom: 14px;
	background: #fff1e6;
	color: var(--accent-deep);
}

.service-card--emergency .service-card__icon {
	background: #fee2e2;
	color: var(--emergency);
}

.service-card--local .service-card__icon {
	background: #dcfce7;
	color: var(--residential);
}

.service-card--commercial .service-card__icon {
	background: #dbeafe;
	color: var(--commercial);
}

.service-card h3 {
	font-size: 1.05rem;
	margin-bottom: 8px;
}

.service-card p {
	font-size: 0.92rem;
	color: var(--muted);
	margin: 0;
}

/* ------------------------------------------------------------- trust tiles */

.band {
	padding: var(--section-y) 0;
	background: var(--ink);
	color: var(--white);
}

.band .section__title {
	color: var(--white);
}

.band .section__sub {
	color: var(--on-dark);
}

.band--plain {
	background: var(--tint);
	color: var(--body);
}

.tile-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 34px;
	margin-top: 8px;
}

.tile {
	text-align: center;
}

.tile__value {
	display: block;
	font-size: 2.4rem;
	font-weight: 900;
	line-height: 1;
	margin-bottom: 10px;
	color: var(--accent);
}

.tile h3 {
	font-size: 1rem;
	color: var(--white);
	margin-bottom: 6px;
}

.tile p {
	font-size: 0.88rem;
	color: var(--on-dark);
	margin: 0;
}

/* -------------------------------------------------------------- how it works */

.steps {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
}

.step {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 26px 20px;
	border-radius: var(--radius-lg);
	background: var(--tint);
	border: 1px solid var(--line);
}

.step__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	background: var(--ink);
	color: var(--white);
	font-weight: 900;
	font-size: 1.1rem;
	border-radius: 50%;
	margin-bottom: 14px;
}

.step h3 {
	font-size: 1rem;
	margin-bottom: 6px;
}

.step p {
	font-size: 0.9rem;
	color: var(--muted);
	margin: 0;
}

/* ------------------------------------------------------------ long-form copy */

.prose {
	max-width: 900px;
	margin: 0 auto;
}

.prose h2 {
	font-size: 1.6rem;
	margin: 0 0 16px;
}

.prose h3 {
	font-size: 1.15rem;
	margin: 28px 0 10px;
}

.prose p,
.prose li {
	color: #475569;
	font-size: 0.98rem;
	line-height: 1.75;
}

.prose ul {
	padding-left: 20px;
}

/* ------------------------------------------------------------ service areas */

.areas-grid {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	margin: 0;
	padding: 0;
}

.area-tag {
	background: var(--white);
	border: 1px solid var(--line);
	padding: 9px 20px;
	border-radius: 24px;
	font-size: 0.9rem;
	color: var(--tag);
	font-weight: 500;
}

.area-tag--link a {
	text-decoration: none;
	color: var(--ink);
	font-weight: 700;
}

.areas-note {
	text-align: center;
	color: var(--muted);
	font-size: 0.92rem;
	margin: 26px auto 0;
}

/* ------------------------------------------------------------------ reviews */

.review-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 24px;
}

.review {
	position: relative;
	margin: 0;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	padding: 30px 26px 24px;
	box-shadow: var(--shadow-card);
}

.review--demo {
	border-style: dashed;
	border-color: #cbd5e1;
	background: #fcfcfd;
}

.review__mark {
	position: absolute;
	top: -14px;
	left: 22px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--accent);
	color: var(--ink);
}

.review__chip {
	display: inline-block;
	background: #fff7ed;
	border: 1px solid #fed7aa;
	color: #9a3412;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	padding: 3px 9px;
	border-radius: 20px;
	margin-bottom: 12px;
}

.review__quote {
	margin: 0 0 14px;
	font-size: 0.96rem;
	line-height: 1.65;
	color: #334155;
}

.review__quote p {
	margin: 0 0 0.6em;
}

.review__meta {
	font-style: normal;
	font-size: 0.85rem;
	color: var(--muted);
	display: flex;
	flex-wrap: wrap;
	gap: 4px 10px;
	align-items: baseline;
}

.review__author {
	font-weight: 800;
	color: var(--ink);
}

.review__service,
.review__date {
	color: var(--chip);
}

.review__service::before,
.review__date::before {
	content: "·";
	margin-right: 10px;
}

/* ---------------------------------------------------------------------- faq */

.faq {
	display: grid;
	gap: 12px;
}

.faq__item {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	padding: 0 20px;
}

.faq__q {
	cursor: pointer;
	font-weight: 700;
	color: var(--ink);
	padding: 16px 0;
	list-style: none;
	display: flex;
	justify-content: space-between;
	gap: 16px;
	align-items: center;
}

.faq__q::-webkit-details-marker {
	display: none;
}

.faq__q::after {
	content: "+";
	font-size: 1.4rem;
	line-height: 1;
	color: var(--accent-deep);
	flex: 0 0 auto;
}

.faq__item[open] .faq__q::after {
	content: "\2013";
}

.faq__a {
	padding: 0 0 18px;
	color: #475569;
	font-size: 0.96rem;
}

.faq__a p {
	margin: 0;
}

/* ----------------------------------------------------------------- quote form */

.lead-form {
	position: relative;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius-xl);
	padding: 30px 28px;
	box-shadow: var(--shadow-card);
}

.lead-form-title {
	font-size: 1.4rem;
	margin-bottom: 8px;
}

.lead-form-note {
	color: var(--muted);
	font-size: 0.95rem;
	margin-bottom: 22px;
}

.lead-form-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
	margin: 0;
}

.lead-form-field {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.lead-form-field--wide {
	grid-column: 1 / -1;
}

.lead-form-field label {
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--ink);
}

.lead-form-field input,
.lead-form-field select,
.lead-form-field textarea {
	font: inherit;
	padding: 11px 12px;
	border: 1px solid #cbd5e1;
	border-radius: var(--radius-sm);
	background: var(--white);
	color: var(--body);
	width: 100%;
}

.lead-form-field textarea {
	resize: vertical;
	min-height: 84px;
}

/* Off-screen, not display:none — a hidden-to-bots field the browser still
   treats as a real input is the one honeypot that actually gets filled in. */
.lead-form-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
	margin: 0;
}

.lead-form-status {
	grid-column: 1 / -1;
	border-radius: var(--radius);
	padding: 12px 16px;
	font-weight: 600;
	margin-bottom: 4px;
	display: flex;
	gap: 10px;
	align-items: center;
}

.lead-form-status--ok {
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	color: #065f46;
}

.lead-form-status--err {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
}

.lead-form-privacy {
	font-size: 0.8rem;
	color: var(--muted);
	margin: 0;
}

/* -------------------------------------------------------------- closing band */

.cta-banner {
	background: linear-gradient(135deg, var(--accent) 0%, var(--accent-banner) 100%);
	padding: 68px 20px;
	text-align: center;
}

.cta-banner h2 {
	font-size: clamp(1.6rem, 3.5vw, 2.6rem);
	font-weight: 900;
	color: var(--ink);
	margin-bottom: 14px;
}

.cta-banner p {
	font-size: 1.08rem;
	color: var(--body);
	max-width: 520px;
	margin: 0 auto 32px;
}

.cta-banner__hours {
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--ink);
	margin: 20px 0 0;
}

/* ------------------------------------------------------------ footer, bar */

.site-footer {
	background: var(--footer);
	color: var(--on-dark);
	padding: 40px 20px 48px;
	text-align: center;
	font-size: 0.9rem;
}

.site-footer__line {
	margin: 0 0 8px;
}

.site-footer strong {
	color: var(--white);
}

.site-footer a {
	color: var(--accent);
	/*
	 * No text-decoration here. An earlier draft set `none` on this rule, which sat
	 * after the global underline default and left the footer phone link inside a
	 * sentence distinguishable only by its color (axe measured 1.1:1 against the
	 * surrounding #8aa4cc). The footer *menu* list still opts out via
	 * .footer-links__list a above.
	 */
}

.site-footer a:hover {
	text-decoration: underline;
}

.site-footer__copy {
	font-size: 0.82rem;
	opacity: 0.92;
	margin-top: 14px;
}

.footer-links {
	margin-top: 16px;
}

.footer-links__list {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	justify-content: center;
	margin: 0;
	padding: 0;
}

.fixed-callbar {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: var(--ink);
	padding: 12px 20px;
	text-align: center;
	z-index: 999;
	box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.3);
}

.fixed-callbar a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	color: var(--white);
	text-decoration: none;
	font-size: 1.02rem;
	font-weight: 800;
	letter-spacing: 0.3px;
}

.fixed-callbar__label {
	color: var(--accent);
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.stream-item {
	border-bottom: 1px solid var(--line);
	padding: 22px 0;
}

.stream-item__title {
	margin-bottom: 6px;
}

/* ---------------------------------------------------------------- responsive */

@media (max-width: 900px) {
	.site-nav__inner {
		padding: 10px 16px;
	}

	.site-nav__links {
		order: 3;
		flex-basis: 100%;
	}

	.hero {
		padding: 56px 0 48px;
	}

	/* A photo hero keeps a genuine banner height on a phone too, rather than
	   collapsing to the 56px a text-only hero uses. */
	.hero--bg {
		padding: 72px 0 62px;
	}

	.btn--hero {
		padding: 16px 28px;
		font-size: 1.05rem;
	}

	.btn--phone {
		font-size: 1.35rem;
		padding: 14px 28px;
	}

	:root {
		--section-y: 60px;
	}
}

@media (max-width: 640px) {
	.hero__sub {
		font-size: 1.02rem;
	}

	.card__header,
	.card__body {
		padding-inline: 22px;
	}

	.lead-form {
		padding: 24px 20px;
	}

	.lead-form-grid {
		grid-template-columns: 1fr;
	}

	/* 1.2.0: the bar collapses into a toggler at 900px instead of vanishing here. */
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}

@media print {
	.site-nav,
	.fixed-callbar,
	.strip,
	.cta-banner {
		display: none;
	}

	body {
		padding-bottom: 0;
	}
}

/* ------------------------------------------------------------------ a11y */

/*
 * WordPress core does not ship this helper for the front end, so the theme owns
 * it: the toggler and the dropdown button need a text label a screen reader gets
 * and a sighted visitor does not.
 */
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* --------------------------------------------- nav: the dropdown and the drawer */

/*
 * Two changes in 1.2.0: Services carries the four service pages as a dropdown,
 * and on a phone the bar collapses behind a toggler instead of the old 640px rule
 * that hid the links outright.
 *
 * Progressive enhancement (AGENTS.md rule 1): every collapsed state is gated on
 * the 'js' class inc/class-assets.php puts on the html element before the
 * stylesheet paints. With JavaScript off the toggler disappears and the list and
 * its submenu render open, so the menu stays usable - it is simply always shown.
 *
 * Colours are measured, not eyeballed (tools/lkh-contrast.php):
 *   ink on the white panel            16.49
 *   accent-deep on the white panel     5.18
 *   white / on-dark inside the drawer 16.49 /  6.49
 * A closed submenu is visibility:hidden rather than display:none so the transition
 * can run; hidden either way, its links leave the tab order until it opens.
 */
.nav-toggle {
	display: none;
}

.nav-item {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 2px;
}

.nav-item__link {
	display: inline-flex;
	align-items: center;
}

.nav-sub-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	padding: 0;
	border: 0;
	border-radius: var(--radius-sm);
	background: none;
	color: var(--on-dark);
	cursor: pointer;
}

.nav-sub-toggle:hover,
.nav-sub-toggle:focus {
	color: var(--white);
}

.nav-sub-toggle svg {
	transition: transform 0.18s ease;
}

.nav-item.is-open > .nav-sub-toggle svg {
	transform: rotate(180deg);
}

.nav-submenu {
	list-style: none;
	position: absolute;
	top: calc(100% + 10px);
	left: 50%;
	margin: 0;
	padding: 8px;
	min-width: 246px;
	background: var(--white);
	border-top: 3px solid var(--accent);
	border-radius: var(--radius);
	box-shadow: var(--shadow-hover);
	visibility: hidden;
	opacity: 0;
	transform: translate(-50%, 6px);
	transition: opacity 0.16s ease, transform 0.16s ease, visibility 0s linear 0.16s;
	z-index: 120;
}

.nav-submenu li {
	width: 100%;
}

.nav-list .nav-submenu__link {
	display: block;
	padding: 11px 12px;
	border-radius: var(--radius-sm);
	color: var(--ink);
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.25;
	text-decoration: none;
}

.nav-list .nav-submenu__link:hover,
.nav-list .nav-submenu__link:focus {
	background: var(--tint);
	color: var(--accent-deep);
	text-decoration: underline;
}

.nav-list .nav-submenu__link[aria-current="page"] {
	background: var(--tint);
	box-shadow: inset 3px 0 0 var(--accent);
	color: var(--ink);
}

@media (min-width: 901px) {
	.nav-item--has-children:hover > .nav-submenu,
	.nav-item--has-children:focus-within > .nav-submenu,
	.nav-item--has-children.is-open > .nav-submenu {
		visibility: visible;
		opacity: 1;
		transform: translate(-50%, 0);
		transition-delay: 0s;
	}
}

@media (max-width: 900px) {
	/*
	 * One row of chrome: wordmark left, phone CTA and toggler right, the links in
	 * a panel that drops under the bar. Tap targets reach 44px and the panel scrolls
	 * on its own when the viewport is short, so a long menu cannot push the page.
	 */
	.site-nav__inner {
		padding: 10px 16px;
		gap: 10px;
	}

	.nav-toggle {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		padding: 12px 14px;
		border: 1px solid rgba(255, 255, 255, 0.4);
		border-radius: var(--radius-sm);
		background: none;
		color: var(--white);
		font-family: inherit;
		font-size: 0.92rem;
		font-weight: 700;
		line-height: 1;
		cursor: pointer;
	}

	.nav-toggle:hover,
	.nav-toggle:focus,
	.nav-toggle[aria-expanded="true"] {
		border-color: var(--accent);
		color: var(--accent);
	}

	.site-nav__links {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex: none;
		order: 0;
		max-height: calc(100vh - 64px);
		max-height: calc(100dvh - 64px);
		overflow-y: auto;
		background: var(--ink);
		border-top: 1px solid var(--ink-2);
		box-shadow: 0 14px 26px rgba(0, 0, 0, 0.32);
	}

	/* Only ever collapsed for a browser that runs scripts. */
	html.js .site-nav__links {
		display: none;
	}

	html.js .site-nav.is-open .site-nav__links {
		display: block;
	}

	.nav-list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 6px 16px 14px;
		text-align: left;
	}

	.nav-item {
		flex-wrap: wrap;
		justify-content: space-between;
		width: 100%;
		border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	}

	.nav-list .nav-item__link {
		flex: 1 1 auto;
		padding: 13px 2px;
		font-size: 1.02rem;
		border-bottom: 0;
	}

	.nav-sub-toggle {
		width: 44px;
		height: 44px;
	}

	/* Inside the drawer the submenu is a list, not a floating panel. */
	.nav-submenu {
		position: static;
		transform: none;
		min-width: 0;
		width: 100%;
		background: none;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		padding: 0 0 10px 12px;
		visibility: visible;
		opacity: 1;
	}

	.nav-list .nav-submenu__link {
		padding: 11px 8px;
		color: var(--on-dark);
	}

	.nav-list .nav-submenu__link:hover,
	.nav-list .nav-submenu__link:focus {
		background: none;
		color: var(--white);
	}

	.nav-list .nav-submenu__link[aria-current="page"] {
		background: none;
		box-shadow: inset 3px 0 0 var(--accent);
		color: var(--white);
	}

	html.js .nav-item--has-children > .nav-submenu {
		visibility: hidden;
		height: 0;
		padding: 0;
		margin: 0;
		overflow: hidden;
	}

	html.js .nav-item--has-children.is-open > .nav-submenu {
		visibility: visible;
		height: auto;
		padding: 0 0 10px 12px;
		overflow: visible;
	}
}

/* ------------------------------------------------------------- contact page */

/*
 * The contact details a Business Profile review looks for, in cards rather than
 * buried in a paragraph: a label, the value, one line of context. Every colour is
 * a pair tools/lkh-contrast.php measures - ink on white 16.49 for the value, muted
 * on white 4.76 for the label and note, accent-deep on white 5.18 for the icon -
 * and the cards sit on the sheet with a hairline border rather than on a tint band.
 */
.section--contact {
	padding-bottom: calc(var(--section-y) / 2);
}

.contact-facts {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 18px;
	margin: 0;
	padding: 0;
}

.contact-fact {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 24px 22px;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
}

.contact-fact__icon {
	color: var(--accent-deep);
	margin-bottom: 4px;
}

.contact-fact__label {
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	color: var(--muted);
}

.contact-fact__value {
	font-size: 1.2rem;
	font-weight: 800;
	line-height: 1.3;
	color: var(--ink);
	word-break: break-word;
}

.contact-fact__value a {
	color: var(--ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.contact-fact__value a:hover,
.contact-fact__value a:focus {
	color: var(--accent-deep);
}

.contact-fact__note {
	font-size: 0.9rem;
	color: var(--muted);
}

/* The two policy pages end the same short way. */
.section--legal-note {
	padding-top: 0;
}

.legal-note__date {
	font-weight: 800;
	color: var(--ink);
	margin-bottom: 6px;
}

.legal-note__ask {
	color: var(--muted);
	margin-bottom: 0;
}

/* ------------------------------------------------------------ footer legal */

.footer-legal {
	margin-top: 14px;
}

.footer-legal__list {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	justify-content: center;
	margin: 0;
	padding: 0;
	font-size: 0.82rem;
}

.footer-legal__list a {
	color: var(--on-dark);
}

.footer-legal__list a:hover,
.footer-legal__list a:focus {
	color: var(--white);
}
