/* West London Renovation
   Palette: London stock brick (accent) on slate greys. One accent, one radius (6px). */

@font-face {
	font-family: "Archivo";
	src: url("../fonts/archivo-wght.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
	/* Archivo's ampersand reads like an "E"; let "&" fall back to the system font. */
	unicode-range: U+0000-0025, U+0027-FFFF;
}

:root {
	--bg: #f3f4f5;
	--surface: #fbfbfc;
	--surface-2: #e9ebed;
	--ink: #15181c;
	--muted: #58606a;
	--line: #d6dade;
	--field: #7d858e;
	--accent: #b4471f;
	--accent-hover: #963916;
	--on-accent: #fbfbfc;
	--accent-soft: #f4e4dd;
	--slate: #202a34; /* logo navy */
	--on-slate: #eceef0;
	--on-slate-muted: #b3bac2;
	--photo-ink: #fbfbfc;
	--radius: 6px;
	--shadow: 0 1px 2px rgb(21 24 28 / .05), 0 14px 32px -16px rgb(21 24 28 / .22);
	--font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--wrap: 1240px;
	--gutter: 16px;
	--header-h: 68px;
	--section: clamp(4rem, 3rem + 4vw, 7rem);
	color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #101316;
		--surface: #171b1f;
		--surface-2: #1e2429;
		--ink: #eceef0;
		--muted: #a3abb4;
		--line: #2b3238;
		--field: #67717b;
		--accent: #e2683b;
		--accent-hover: #ef8259;
		--on-accent: #101316;
		--accent-soft: #33211a;
		--slate: #1f262d;
		--shadow: 0 1px 2px rgb(0 0 0 / .3), 0 14px 32px -16px rgb(0 0 0 / .6);
	}
}

@media (min-width: 768px) { :root { --gutter: 28px; } }
@media (min-width: 1280px) { :root { --gutter: 40px; } }

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 {
	margin: 0;
	font-weight: 720;
	line-height: 1.08;
	letter-spacing: -.022em;
	text-wrap: balance;
}

h1 {
	font-size: clamp(2.3rem, 1.55rem + 3.1vw, 3.85rem);
	font-weight: 780;
	letter-spacing: -.032em;
	line-height: 1.03;
}

h2 { font-size: clamp(1.85rem, 1.4rem + 1.8vw, 2.7rem); }
h3 { font-size: 1.25rem; letter-spacing: -.012em; line-height: 1.2; }
p { margin: 0; }

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }
.section--tint { background: var(--surface); border-block: 1px solid var(--line); }

.lede {
	font-size: clamp(1.075rem, 1rem + .3vw, 1.2rem);
	color: var(--muted);
	max-width: 54ch;
	text-wrap: pretty;
}

.section-head { max-width: 760px; }
.section-head .lede { margin-top: 1rem; }

.eyebrow {
	display: block;
	margin-bottom: .9rem;
	font-size: .8125rem;
	font-weight: 640;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--accent);
}

.icon { width: 1.25em; height: 1.25em; flex: none; }

.skip-link {
	position: absolute;
	left: -9999px;
	top: 8px;
	z-index: 100;
	padding: .6rem 1rem;
	background: var(--surface);
	border-radius: var(--radius);
}
.skip-link:focus { left: 8px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- Buttons ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .55rem;
	min-height: 48px;
	padding: .75rem 1.25rem;
	border: 1px solid transparent;
	border-radius: var(--radius);
	font: inherit;
	font-size: 1rem;
	font-weight: 620;
	line-height: 1.1;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--sm { min-height: 40px; padding: .5rem .95rem; font-size: .9375rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Header ---------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: color-mix(in srgb, var(--bg) 94%, transparent);
	-webkit-backdrop-filter: saturate(140%) blur(10px);
	backdrop-filter: saturate(140%) blur(10px);
	border-bottom: 1px solid var(--line);
}

.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 1rem;
	min-height: var(--header-h);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: .65rem;
	margin-right: auto;
	text-decoration: none;
	font-size: 1.0625rem;
	font-weight: 760;
	letter-spacing: -.02em;
	line-height: 1.05;
}
.brand__mark {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: var(--radius);
	background: var(--accent);
	color: var(--on-accent);
}
.brand__mark .icon { width: 22px; height: 22px; }
.brand .custom-logo { max-height: 44px; width: auto; }
.brand__logo img { height: 34px; width: auto; }
@media (min-width: 768px) { .brand__logo img { height: 40px; } }
.brand--footer .brand__logo img { height: 44px; }

.site-nav { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; }

.header-actions { display: flex; align-items: center; gap: .5rem; }
.header-phone { display: none; }

.nav-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	color: var(--ink);
	cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.site-header[data-open] .nav-toggle .icon-open { display: none; }
.site-header[data-open] .nav-toggle .icon-close { display: block; }

/* Mobile menu panel */
@media (max-width: 1079px) {
	.header-actions .btn--primary { display: none; }
	.site-header[data-open] .site-nav {
		display: block;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		max-height: calc(100dvh - var(--header-h));
		overflow-y: auto;
		padding: .5rem var(--gutter) 1.5rem;
		background: var(--bg);
		border-bottom: 1px solid var(--line);
		box-shadow: var(--shadow);
	}
	.site-nav > ul > li { border-bottom: 1px solid var(--line); }
	.site-nav > ul > li > a { display: block; padding: .9rem 0; font-size: 1.125rem; font-weight: 640; }
	.site-nav .sub { padding: 0 0 .9rem .9rem; display: grid; gap: .1rem; }
	.site-nav .sub a { display: block; padding: .35rem 0; color: var(--muted); }
	.site-nav .nav-cta { display: grid; gap: .6rem; padding-top: 1.25rem; border-bottom: 0; }
}

@media (min-width: 1080px) {
	.nav-toggle, .site-nav .nav-cta { display: none; }
	.site-nav { display: block; }
	.site-nav > ul { display: flex; align-items: center; gap: .15rem; }
	.site-nav > ul > li { position: relative; }
	.site-nav > ul > li > a {
		display: inline-flex;
		align-items: center;
		gap: .3rem;
		padding: .55rem .75rem;
		border-radius: var(--radius);
		font-size: .96875rem;
		font-weight: 560;
	}
	.site-nav > ul > li > a:hover,
	.site-nav > ul > li:focus-within > a { background: var(--surface-2); }
	.site-nav .caret { width: .9em; height: .9em; color: var(--muted); }
	.site-nav .sub {
		position: absolute;
		top: calc(100% + 6px);
		left: 0;
		min-width: 260px;
		padding: .5rem;
		background: var(--surface);
		border: 1px solid var(--line);
		border-radius: var(--radius);
		box-shadow: var(--shadow);
		opacity: 0;
		visibility: hidden;
		transform: translateY(4px);
		transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s;
	}
	.site-nav .sub::before { content: ""; position: absolute; inset: -8px 0 auto; height: 8px; }
	.site-nav .sub--cols { display: grid; grid-template-columns: 1fr 1fr; min-width: 360px; }
	.site-nav li:hover > .sub,
	.site-nav li:focus-within > .sub {
		opacity: 1;
		visibility: visible;
		transform: none;
		transition: opacity .15s ease, transform .15s ease;
	}
	.site-nav .sub a { display: block; padding: .5rem .7rem; border-radius: var(--radius); font-size: .9375rem; }
	.site-nav .sub a:hover { background: var(--surface-2); }
}

@media (min-width: 1240px) {
	.header-phone { display: inline-flex; }
}

/* ---------- Home hero ---------- */

.hero { padding-block: clamp(2.25rem, 1.25rem + 4vw, 4.5rem) clamp(3.5rem, 2.5rem + 4vw, 6rem); }

.hero__grid,
.page-hero__grid {
	display: grid;
	gap: 2.5rem;
	align-items: center;
}

@media (min-width: 900px) {
	.hero__grid { grid-template-columns: 1.15fr .85fr; gap: clamp(3rem, 5vw, 5rem); }
	.page-hero__grid { grid-template-columns: 1.1fr .9fr; gap: clamp(3rem, 5vw, 5rem); }
}

.hero h1 { font-size: clamp(2.3rem, 1.5rem + 3vw, 3.6rem); }
.hero .lede, .page-hero .lede { margin-top: 1.25rem; }
.hero .btn-row, .page-hero .btn-row { margin-top: 2rem; }

.hero__media img,
.page-hero__media img {
	width: 100%;
	aspect-ratio: 5 / 4;
	object-fit: cover;
	border-radius: var(--radius);
	background: var(--surface-2);
}

@media (min-width: 900px) {
	.hero__media img { aspect-ratio: 4 / 4.2; }
}

.hero__media { position: relative; }
.hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: var(--radius);
	opacity: 0;
	transition: opacity .8s ease;
	pointer-events: none;
}
.hero__video.is-playing { opacity: 1; }

/* ---------- Services bento ---------- */

.bento {
	display: grid;
	gap: 12px;
	margin-top: 2.75rem;
}

@media (min-width: 700px) {
	.bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tile--full { grid-column: span 2; }
}

@media (min-width: 1024px) {
	.bento {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		grid-template-areas:
			"full full loft loft"
			"full full kit bath"
			"paint paint comm comm";
	}
	.tile--full { grid-area: full; }
	.tile--loft { grid-area: loft; }
	.tile--kit { grid-area: kit; }
	.tile--bath { grid-area: bath; }
	.tile--paint { grid-area: paint; }
	.tile--comm { grid-area: comm; }
}

.tile {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: .5rem;
	min-height: 230px;
	padding: 1.5rem 1.5rem 1.6rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	color: var(--ink);
	text-decoration: none;
}
.tile h3 { font-size: 1.375rem; max-width: 18ch; }
.tile p { color: var(--muted); max-width: 40ch; }

.tile__go {
	position: absolute;
	top: 1.1rem;
	right: 1.1rem;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: var(--radius);
	background: var(--surface-2);
	color: var(--ink);
	transition: background-color .2s ease, color .2s ease;
}
.tile:hover .tile__go { background: var(--accent); color: var(--on-accent); }

.tile__icon { width: 30px; height: 30px; color: var(--accent); margin-bottom: auto; }

.tile--photo { border-color: transparent; color: var(--photo-ink); }
.tile--photo img {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.tile--photo::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(to top, rgb(12 15 18 / .86) 8%, rgb(12 15 18 / .35) 55%, rgb(12 15 18 / .05) 100%);
}
.tile--photo p { color: rgb(251 251 252 / .86); }
.tile--photo .tile__go { background: rgb(251 251 252 / .16); color: var(--photo-ink); }
.tile--full { min-height: 380px; }
.tile--loft { min-height: 260px; }

.tile--accent { background: var(--accent-soft); border-color: transparent; }
.tile--slate { background: var(--slate); border-color: transparent; color: var(--on-slate); }
.tile--slate p { color: var(--on-slate-muted); }
.tile--slate .tile__go { background: rgb(255 255 255 / .1); color: var(--on-slate); }
.tile--slate .tile__icon { color: #ef8259; }

@media (prefers-reduced-motion: no-preference) {
	.tile--photo img { transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
	.tile--photo:hover img { transform: scale(1.035); }
}

/* ---------- Intro + points ---------- */

.intro { display: grid; gap: 2.75rem; }

@media (min-width: 960px) {
	.intro { grid-template-columns: 5fr 7fr; gap: clamp(3rem, 6vw, 6rem); align-items: start; }
}

.intro__copy > * + * { margin-top: 1.1rem; }
.intro__copy p { color: var(--muted); max-width: 52ch; }
.intro__copy h2 { margin-bottom: .4rem; }

.points { display: grid; gap: 0 2.5rem; }
@media (min-width: 640px) { .points { grid-template-columns: 1fr 1fr; } }

.point { padding-block: 1.5rem; border-top: 1px solid var(--line); }
.point .icon { width: 28px; height: 28px; color: var(--accent); }
.point h3 { margin-top: .9rem; font-size: 1.15rem; }
.point p { margin-top: .45rem; color: var(--muted); }

/* ---------- Process ---------- */

.steps {
	list-style: none;
	margin: 3rem 0 0;
	padding: 0;
	display: grid;
}

.step {
	position: relative;
	padding: 0 0 2rem 2.25rem;
	border-left: 2px solid var(--line);
	margin-left: 6px;
}
.step:last-child { padding-bottom: 0; border-left-color: transparent; }
.step::before {
	content: "";
	position: absolute;
	left: -8px;
	top: .2rem;
	width: 14px;
	height: 14px;
	border-radius: 3px;
	background: var(--accent);
}
.step h3 { font-size: 1.25rem; }
.step p { margin-top: .4rem; color: var(--muted); max-width: 46ch; }

@media (min-width: 960px) {
	.steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.75rem; }
	.step {
		margin-left: 0;
		padding: 2rem 0 0;
		border-left: 0;
		border-top: 2px solid var(--line);
	}
	.step:last-child { padding-bottom: 0; }
	.step::before { left: 0; top: -8px; }
}

/* ---------- Split ---------- */

.split { display: grid; gap: 2.5rem; align-items: center; }

@media (min-width: 900px) {
	.split { grid-template-columns: .95fr 1.05fr; gap: clamp(3rem, 6vw, 6rem); }
}

.split__media img {
	width: 100%;
	aspect-ratio: 4 / 4.6;
	object-fit: cover;
	border-radius: var(--radius);
}

.split__copy > * + * { margin-top: 1.1rem; }
.split__copy p { color: var(--muted); max-width: 54ch; }

.ticks { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: .9rem; }
.ticks li { display: flex; gap: .75rem; align-items: flex-start; }
.ticks .icon { margin-top: .15em; color: var(--accent); }

/* ---------- Areas ---------- */

.area-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-top: 2.5rem;
}
@media (min-width: 720px) { .area-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .area-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.area-card {
	display: flex;
	flex-direction: column;
	gap: .3rem;
	padding: 1.1rem 1.15rem 1.25rem;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	text-decoration: none;
	transition: border-color .2s ease;
}
.area-card:hover { border-color: var(--accent); }
.area-card__code { font-size: .8125rem; font-weight: 640; letter-spacing: .04em; color: var(--accent); }
.area-card__name { font-size: 1.125rem; font-weight: 680; letter-spacing: -.01em; }

/* ---------- FAQ ---------- */

.faq > * { max-width: 860px; }
.faq-list { margin-top: 2.25rem; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }

.faq-item summary,
.prose .wp-block-details summary {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1.25rem;
	padding: 1.25rem 0;
	list-style: none;
	cursor: pointer;
	font-size: 1.125rem;
	font-weight: 640;
	line-height: 1.35;
}
.faq-item summary::-webkit-details-marker,
.prose .wp-block-details summary::-webkit-details-marker { display: none; }

.faq-item summary .icon { margin-top: .1em; color: var(--accent); transition: transform .2s ease; }
.faq-item[open] summary .icon { transform: rotate(45deg); }
.faq-item__a { padding-bottom: 1.4rem; color: var(--muted); max-width: 68ch; }
.faq-item__a a { color: var(--accent); font-weight: 560; }

/* ---------- Quote ---------- */

.quote { background: var(--surface); border-top: 1px solid var(--line); }

.quote__grid { display: grid; gap: 3rem; }
@media (min-width: 960px) { .quote__grid { grid-template-columns: 5fr 7fr; gap: clamp(3rem, 6vw, 6rem); } }

.quote__copy p { margin-top: 1rem; color: var(--muted); max-width: 46ch; }

.contact-list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; gap: .85rem; align-items: flex-start; }
.contact-list .icon { margin-top: .1em; color: var(--accent); }
.contact-list a { font-weight: 640; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.contact-list small { display: block; color: var(--muted); font-size: .9rem; }

.form {
	display: grid;
	gap: 1.15rem;
	padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.form__row { display: grid; gap: 1.15rem; }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: .4rem; align-content: start; }
.field label { font-size: .9375rem; font-weight: 620; }
.field .hint { font-size: .875rem; color: var(--muted); }
.field .req { color: var(--accent); }

.field input,
.field select,
.field textarea {
	width: 100%;
	min-height: 48px;
	padding: .7rem .85rem;
	border: 1px solid var(--field);
	border-radius: var(--radius);
	background: var(--surface);
	color: var(--ink);
	font: inherit;
	font-size: 1rem;
}
.field textarea { min-height: 132px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 1; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-offset: 1px; border-color: var(--accent); }

.form__note { font-size: .875rem; color: var(--muted); }
.form__note a { color: inherit; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice {
	display: flex;
	gap: .75rem;
	align-items: flex-start;
	padding: 1rem 1.1rem;
	border-radius: var(--radius);
	border: 1px solid var(--line);
	background: var(--surface-2);
	font-weight: 560;
}
.notice .icon { margin-top: .1em; }
.notice--error { border-color: var(--accent); background: var(--accent-soft); }

/* ---------- Inner page hero ---------- */

.page-hero { padding-block: clamp(1.5rem, 1rem + 2vw, 2.5rem) clamp(3rem, 2rem + 3vw, 5rem); }
.page-hero--plain { padding-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }
.page-hero h1 { font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.3rem); }

.crumbs { margin-bottom: 1.75rem; font-size: .9rem; color: var(--muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.crumbs li + li::before { content: "/"; margin-right: .45rem; color: var(--line); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; color: var(--ink); }

/* ---------- Landing body ---------- */

.landing {
	display: grid;
	gap: 3rem;
	padding-bottom: var(--section);
}

@media (min-width: 1024px) {
	.landing { grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(3rem, 6vw, 6rem); align-items: start; }
	.aside { position: sticky; top: calc(var(--header-h) + 24px); }
	.admin-bar .aside { top: calc(var(--header-h) + 56px); }
}

.aside { display: grid; gap: 1rem; align-content: start; }

.aside-box {
	padding: 1.5rem;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}
.aside-box h2 { font-size: 1.125rem; letter-spacing: -.01em; margin-bottom: .75rem; }

.aside-links { list-style: none; margin: 0; padding: 0; }
.aside-links li + li { border-top: 1px solid var(--line); }
.aside-links a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: .65rem 0;
	text-decoration: none;
	font-weight: 540;
}
.aside-links a:hover { color: var(--accent); }
.aside-links .icon { width: 1em; height: 1em; color: var(--muted); }
.aside-links [aria-current] { color: var(--accent); }

.facts { margin: 0; display: grid; gap: .9rem; }
.facts div { display: grid; gap: .1rem; }
.facts dt { font-size: .8125rem; color: var(--muted); }
.facts dd { margin: 0; font-weight: 620; }

.aside-box--cta { background: var(--slate); border-color: var(--slate); color: var(--on-slate); }
.aside-box--cta p { margin-bottom: 1.1rem; color: var(--on-slate-muted); }
.aside-box--cta .btn + .btn { margin-top: .6rem; }
.aside-box--cta .btn--ghost { background: transparent; color: var(--on-slate); border-color: rgb(255 255 255 / .24); }
.aside-box--cta .btn--ghost:hover { border-color: var(--on-slate); }

/* ---------- Prose (editor content) ---------- */

.prose { max-width: 70ch; }
.prose > * + * { margin-top: 1.1rem; }
.prose > h2 { margin-top: 3rem; font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); }
.prose > h3 { margin-top: 2rem; }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.prose > p:first-child { font-size: 1.15rem; }
.prose a { color: var(--accent); font-weight: 560; }
.prose ul { list-style: none; padding: 0; display: grid; gap: .6rem; }
.prose ul li { position: relative; padding-left: 1.85rem; }
.prose ul li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .28em;
	width: 1.1rem;
	height: 1.1rem;
	background: var(--accent);
	-webkit-mask: url("../icons/check.svg") center / contain no-repeat;
	mask: url("../icons/check.svg") center / contain no-repeat;
}
.prose ol { padding-left: 1.25rem; }
.prose img { border-radius: var(--radius); }

.prose .wp-block-details { margin-top: 0; border-bottom: 1px solid var(--line); }
.prose > h2 + .wp-block-details { margin-top: 1.25rem; border-top: 1px solid var(--line); }
.prose .wp-block-details summary::after {
	content: "";
	flex: none;
	width: 1.2rem;
	height: 1.2rem;
	margin-top: .1em;
	background: var(--accent);
	-webkit-mask: url("../icons/plus.svg") center / contain no-repeat;
	mask: url("../icons/plus.svg") center / contain no-repeat;
	transition: transform .2s ease;
}
.prose .wp-block-details[open] summary::after { transform: rotate(45deg); }
.prose .wp-block-details > :not(summary) { margin: 0 0 1.4rem; color: var(--muted); }

/* ---------- Pill links ---------- */

.pills { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.pills a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: .45rem .9rem;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	text-decoration: none;
	font-weight: 560;
	font-size: .9688rem;
}
.pills a:hover { border-color: var(--accent); color: var(--accent); }

.related { padding-bottom: var(--section); }
.related h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); }

/* ---------- Generic page ---------- */

.page-body { padding-bottom: var(--section); }

/* ---------- Footer ---------- */

.site-footer {
	padding-block: clamp(3rem, 2.5rem + 2vw, 4.5rem) 2rem;
	background: var(--surface-2);
	border-top: 1px solid var(--line);
	font-size: .96875rem;
}

.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr .8fr; gap: 3rem; } }

.footer-brand p { margin-top: 1rem; color: var(--muted); max-width: 34ch; }
.footer-brand .contact-list { margin-top: 1.5rem; gap: .7rem; }

.site-footer h2 { font-size: .9375rem; font-weight: 680; letter-spacing: 0; margin-bottom: 1rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
.footer-links--cols { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; }

.footer-base {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 3rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: .875rem;
}
.footer-base a { color: inherit; }

/* ---------- 404 ---------- */

.not-found { padding-block: var(--section); }
.not-found .btn-row { margin-top: 2rem; }

/* ---------- Eyebrow with icon, small links, address ---------- */

.hero .eyebrow { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: 1.1rem; }
.hero .eyebrow .icon { width: 1.05em; height: 1.05em; }
address { font-style: normal; }
.small-link { display: inline-block; margin-top: .2rem; font-size: .875rem; font-weight: 560; color: var(--accent); }
.contact-list a.small-link { font-weight: 560; }
.more-link { margin-top: 1.75rem; }
.more-link a { display: inline-flex; align-items: center; gap: .4rem; color: var(--accent); font-weight: 620; text-decoration: none; }
.more-link a:hover { text-decoration: underline; }
.hub-sub { margin: 3rem 0 0; font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem); }

/* ---------- Guides ---------- */

.guide-list { display: grid; gap: 12px; margin-top: 2.5rem; }
@media (min-width: 900px) { .guide-list { grid-template-columns: 1fr 1fr; } }

.guide-card {
	display: grid;
	grid-template-columns: 112px minmax(0, 1fr);
	gap: 1.1rem;
	align-items: start;
	padding: 12px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	text-decoration: none;
	transition: border-color .2s ease;
}
@media (min-width: 560px) { .guide-card { grid-template-columns: 168px minmax(0, 1fr); } }
.guide-card:hover { border-color: var(--accent); }
.guide-card__img img { width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; border-radius: calc(var(--radius) - 2px); }
.guide-card__body { display: grid; gap: .35rem; padding: .2rem .4rem .2rem 0; }
.guide-card__title { font-size: 1.1rem; font-weight: 680; letter-spacing: -.01em; line-height: 1.25; }
.guide-card__text { font-size: .9375rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.guide-card__more { display: inline-flex; align-items: center; gap: .35rem; margin-top: .2rem; font-size: .9rem; font-weight: 620; color: var(--accent); }
.guide-card__more .icon { width: 1em; height: 1em; }

.guide-meta { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.5rem; font-size: .9375rem; color: var(--muted); }
.guide-meta .icon { width: 1.1em; height: 1.1em; color: var(--accent); }

.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; display: grid; gap: .1rem; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: .6rem; padding: .35rem 0; text-decoration: none; font-size: .9375rem; line-height: 1.35; }
.toc a::before { content: counter(toc); flex: none; min-width: 1.1rem; color: var(--accent); font-weight: 640; font-variant-numeric: tabular-nums; }
.toc a:hover { color: var(--accent); }
.prose em { color: var(--muted); font-size: .9375rem; }
.prose h2[id] { scroll-margin-top: calc(var(--header-h) + 24px); }

/* ---------- Mobile quick-contact bar ---------- */

.action-bar { display: none; }
@media (max-width: 1079px) {
	.action-bar {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 30;
		display: grid;
		grid-auto-flow: column;
		grid-auto-columns: 1fr;
		gap: 8px;
		padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
		background: color-mix(in srgb, var(--bg) 94%, transparent);
		-webkit-backdrop-filter: saturate(140%) blur(10px);
		backdrop-filter: saturate(140%) blur(10px);
		border-top: 1px solid var(--line);
	}
	body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
	.site-header[data-open] ~ .action-bar { display: none; }
}

/* ---------- Gentle reveal on scroll ----------
   CSS scroll-driven animation only: browsers without support (or visitors who
   prefer reduced motion) simply see the content, so nothing can stay hidden. */

@keyframes wlr-reveal {
	from { opacity: 0; transform: translateY(18px); }
	to { opacity: 1; transform: none; }
}

@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.section-head, .bento, .points, .steps, .split, .area-grid, .guide-list, .faq-list, .quote__grid, .related .wrap {
			animation: wlr-reveal linear both;
			animation-timeline: view();
			animation-range: entry 0% entry 35%;
		}
	}
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
