/* Remodel Group LA: shared site styles.
   Ported from the approved mockups (scrollcraft/builds/home-v2/home.html).
   The short token names below alias theme.json presets, so section CSS from the
   mockups can be moved into blocks/patterns without renaming anything. */

:root {
	--slate: var(--wp--preset--color--slate);
	--slate-2: var(--wp--preset--color--slate-2);
	--slate-3: var(--wp--preset--color--slate-3);
	--bone: var(--wp--preset--color--bone);
	--bone-2: var(--wp--preset--color--bone-2);
	--ink: var(--wp--preset--color--slate);
	--ink-soft: var(--wp--preset--color--ink-soft);
	--soft: var(--wp--preset--color--soft);
	--mist: var(--wp--preset--color--mist);
	--poppy: var(--wp--preset--color--poppy);
	--poppy-deep: var(--wp--preset--color--poppy-deep);
	--poppy-ink: var(--wp--preset--color--poppy-ink);
	--line-d: var(--wp--custom--line-dark);
	--line-l: var(--wp--custom--line-light);
	--display: var(--wp--preset--font-family--display);
	--text: var(--wp--preset--font-family--text);
	--gutter: var(--wp--preset--spacing--gutter);
	--sec: var(--wp--preset--spacing--section);
	--wrap: var(--wp--style--global--wide-size, 1200px);
	--ease: var(--wp--custom--ease);
	--top-h: var(--wp--custom--header-height);
}

/* ---------- base ---------- */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { -webkit-font-smoothing: antialiased; overflow-x: clip; }
::selection { background: var(--poppy); color: var(--poppy-ink); }
:focus-visible { outline: 2px solid var(--poppy); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; height: auto; }
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 10px 14px; background: var(--poppy); color: var(--poppy-ink); }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; }
.link { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.illus { font-size: .74rem; color: var(--ink-soft); }
.on-dark .illus { color: var(--soft); }

/* ---------- buttons ---------- */
.wp-element-button,
.wp-block-button__link,
.btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 52px; white-space: nowrap; text-decoration: none; cursor: pointer;
	transition: transform .12s var(--ease), background-color .12s var(--ease);
}
.btn { padding: 0 24px; border: 0; border-radius: 8px; background: var(--poppy); color: var(--poppy-ink); font: 700 1.02rem/1 var(--display); }
.wp-element-button:active, .btn:active { transform: scale(.97); }
.btn--sm .wp-block-button__link, .btn.btn--sm { min-height: 40px; padding: 0 16px; font-size: .92rem; }
.btn--line .wp-block-button__link, .btn.btn--line { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
@media (hover: hover) and (pointer: fine) {
	.btn:hover { background: #FF8A38; }
	.btn--line .wp-block-button__link:hover, .btn.btn--line:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
}

/* ---------- header ---------- */
.top {
	position: fixed; inset: 0 0 auto 0; z-index: 50;
	gap: 26px; height: var(--top-h); margin: 0 !important;
	padding: 0 var(--gutter);
	color: var(--bone);
	transition: background-color .25s var(--ease);
}
.top.is-solid { background: rgba(24, 32, 38, .95); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.top .brand { margin: 0 auto 0 0; font: 800 1.22rem/1 var(--display); letter-spacing: -.02em; white-space: nowrap; }
.top .brand a { text-decoration: none; color: inherit; }
.top .nav { gap: 22px; font-size: .95rem; font-weight: 500; }
.top .nav .wp-block-navigation__container { gap: 22px; }
.top .nav a { text-decoration: none; }
.top .nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
/* current page: weight + poppy rule (not colour alone) */
.top .nav a[aria-current="page"] { font-weight: 700; text-decoration: underline; text-decoration-color: var(--poppy); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.top__tel { margin: 0; }
.top__tel a { font-weight: 700; font-family: var(--display); text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
.top__tel a:hover { text-decoration: underline; text-underline-offset: 4px; }
.top__cta { margin: 0; }
.ico { display: block; flex: none; width: 22px; height: 22px; }
/* Menu button: phones and tablets only. */
.menu-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px var(--line-d); font: 700 .92rem/1 var(--display); cursor: pointer; -webkit-tap-highlight-color: transparent; }
@media (min-width: 901px) { .top .menu-btn { display: none; } }
/* While the modal menu is open the page behind it does not scroll. */
html:has(dialog[open]) { overflow: hidden; }
/* Scroll target of the "Free assessment" links (header.js): focus moves there, without a ring around the section. */
.rg-jump:focus { outline: 0; }

/* Pages without a dark full-bleed hero: header is solid and content clears it. */
.page-plain { padding-top: calc(var(--top-h) + clamp(32px, 6vw, 72px)); padding-bottom: var(--sec); }
.page-plain :where(h1) { margin-bottom: .5em; }
.page-plain :where(p, li) { max-width: 68ch; }

/* ---------- footer ---------- */
.site-foot { margin: 0; padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(28px, 4vw, 44px); background: var(--wp--preset--color--night); color: var(--soft); font-size: .95rem; }
.site-foot__in { display: grid; grid-template-columns: minmax(0, 1fr) repeat(4, max-content); gap: clamp(24px, 3.4vw, 48px); }
.site-foot__in > * { margin: 0 !important; }
.site-foot .site-foot__h { margin: 0 0 10px; font: 700 .98rem/1.2 var(--display); letter-spacing: 0; color: var(--bone); }
.site-foot .brand { display: block; margin: 0 0 12px; color: var(--bone); font: 800 1.35rem/1 var(--display); letter-spacing: -.02em; }
.site-foot .brand a { text-decoration: none; }
.site-foot ul { margin: 0; padding: 0; list-style: none; }
.site-foot li { padding: 3px 0; }
.site-foot a { text-decoration: none; overflow-wrap: anywhere; }
.site-foot a:hover { color: var(--bone); text-decoration: underline; text-underline-offset: 4px; }
.site-foot p { margin: 0; }
.site-foot__in > div:first-child p { max-width: 44ch; }
.site-foot .social { display: flex; gap: 4px; margin: 14px 0 0 -11px; }
.site-foot .social li { padding: 0; }
.site-foot .social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; color: var(--bone); }
.site-foot .social svg { display: block; }
@media (hover: hover) and (pointer: fine) { .site-foot .social a:hover { color: var(--poppy); } }
/* Five columns need about 1100px: below that the company block takes its own row. */
@media (max-width: 1100px) {
	.site-foot__in { grid-template-columns: 1.25fr repeat(3, minmax(0, 1fr)); }
	.site-foot__in > div:first-child { grid-column: 1 / -1; }
}
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: clamp(28px, 4vw, 48px) !important; padding-top: 18px; border-top: 1px solid var(--line-d); font-size: .86rem; }
.legal ul { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-foot--lp { padding-block: 24px 28px; font-size: .86rem; text-align: center; }

/* ---------- mobile contact bar ---------- */
.bar { display: none; margin: 0 !important; }

@media (max-width: 900px) {
	:root { --top-h: var(--wp--custom--header-height-mobile); }
	body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
	html { scroll-padding-top: 64px; }
	.top { gap: 12px; }
	.top .nav, .top__tel:not(.top__tel--lp) { display: none; }
	.top .brand { font-size: 1.08rem; }
	.top .btn--sm .wp-block-button__link { min-height: 36px; padding: 0 12px; font-size: .84rem; }
	.site-foot__in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bar {
		position: fixed; inset: auto 0 0 0; z-index: 60;
		display: grid; grid-template-columns: 1fr 1fr 1.7fr; gap: 8px;
		padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
		background: var(--slate); box-shadow: 0 -1px 0 var(--line-d);
	}
	.bar a { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 8px; background: var(--slate-2); color: var(--bone); font: 700 .95rem/1 var(--display); text-decoration: none; }
	.bar a.is-main { background: var(--poppy); color: var(--poppy-ink); }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { scroll-behavior: auto !important; }
	.wp-element-button, .btn, .top { transition: none; }
}

/* Logged-in admin bar: push the fixed header below it. */
.admin-bar .top { top: var(--wp-admin--admin-bar--height, 32px); }

/* WordPress flow layout adds block-gap margins between siblings; the bar, header and
   footer are tight component layouts, so reset those margins inside them. */
.bar > *, .top > *, .legal > * { margin-block: 0 !important; }

/* ---------- logo (white lockup, colour via currentColor) ---------- */
/* Mark = SVG; name = live text so the browser hints it crisply. --logo-h drives both:
   the name's cap height is ~45% of the mark, as in the master lockup. */
.brand { --logo-h: 28px; }
.brand > a, .brand:not(:has(> a)) { display: inline-flex; align-items: center; gap: calc(var(--logo-h) * .3); color: inherit; text-decoration: none; }
.brand__mark { display: block; flex: none; height: var(--logo-h); width: auto; color: inherit; } /* follows the header colour: bone by default, ink over a light "day" hero */
.brand .brand__name {
	font: 700 calc(var(--logo-h) * .62)/1 var(--display);
	text-transform: uppercase; letter-spacing: .06em; white-space: nowrap;
	-webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
.site-foot .brand { --logo-h: 34px; }
.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; }
@media (max-width: 900px) {
	.top .brand { --logo-h: 24px; }
}
/* Compact desktop (menu variant A): seven nav items need about 1300px. Tighten first, drop the
   header phone below 1120px (it stays in the footer), then squeeze once more below 1000px. */
@media (min-width: 901px) and (max-width: 1280px) {
	.top { gap: 16px; }
	.top .nav, .top .nav .wp-block-navigation__container { gap: 14px; }
	.top .brand { --logo-h: 24px; }
}
@media (min-width: 901px) and (max-width: 1120px) {
	.top__tel:not(.top__tel--lp) { display: none; }
}
@media (min-width: 901px) and (max-width: 1000px) {
	.top { gap: 14px; }
	.top .nav { font-size: .9rem; }
	.top .nav, .top .nav .wp-block-navigation__container { gap: 12px; }
	.top .brand { --logo-h: 22px; }
	.top .btn--sm .wp-block-button__link { padding: 0 12px; font-size: .86rem; }
}
/* Under 520px the header has room for the logo and Menu only; the bottom bar keeps the CTA on screen. */
@media (max-width: 519px) { .top:not(.top--lp) .top__cta { display: none; } }
@media (max-width: 400px) {
	.top .brand { --logo-h: 20px; }
}
@media (max-width: 360px) {
	.top { gap: 10px; }
	.top .brand { --logo-h: 18px; }
	.top .brand .brand__name { letter-spacing: .03em; }
	.top .btn--sm .wp-block-button__link { padding: 0 10px; font-size: .8rem; }
}

/* QA: header nav links meet the 24px minimum target size. */
.top .nav a { padding-block: 6px; }
.top .brand a { padding-block: 4px; } /* target size: at least 24px tall on phones */

/* Financing disclosures (Reg Z representative example): readable size and full contrast wherever they sit,
   so "$0 down" / "$750 a month" are never shown without a legible example next to them. */
.rg-disclosure, .page-sections .rg-disclosure { display: block; font-size: max(.8125rem, 13px) !important; line-height: 1.45; color: inherit !important; opacity: .92 !important; }

/* Build scaffolding is for the team, not for visitors: "to verify" and "owner to confirm" tags, the sections
   reserved for real project photos (the ones that still carry the mockup note), and team-photo placeholders.
   Logged-in admins still see all of it, so it stays on the launch checklist. */
body:not(.logged-in) .page-sections :is(.tv, .oc) { display: none !important; }
body:not(.logged-in) .page-sections section.projects:has(.projects__note) { display: none !important; }
body:not(.logged-in) .page-sections .teamgrid:not(:has(img)) { display: none !important; }
body:not(.logged-in) .page-sections .team__in > .ph:not(:has(img)) { display: none !important; }
body:not(.logged-in) .page-sections .team__in:has(> .ph:not(:has(img))) { grid-template-columns: minmax(0, 1fr); }

/* Hero trust rows: "Licensed, bonded and insured" is longer, so on phones the row wraps to two lines
   instead of running off the screen. */
@media (max-width: 900px) {
	body .page-sections.page-sections :is(.trust, .lh__trust, .gh__trust, .jh__trust, .wh__trust, .ph-trust) { flex-wrap: wrap; justify-content: flex-start; column-gap: 12px; row-gap: 2px; }
}

/* ---------- mobile menu (variant A): full-screen modal dialog ---------- */
.menu--full { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--slate); color: var(--bone); opacity: 0; transition: opacity .2s ease-out; }
.menu--full, .menu--full *, .menu-btn { box-sizing: border-box; }
.menu--full[open] { display: flex; flex-direction: column; }
.menu--full[open]:not([data-closing]) { opacity: 1; @starting-style { opacity: 0; } }
.menu--full::backdrop { background: var(--slate); }

.menu__top { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: var(--top-h); padding: 0 var(--gutter); }
.menu__top .brand { --logo-h: 24px; margin: 0; }
.menu__top .brand > a { min-height: 44px; }
@media (max-width: 400px) { .menu__top .brand { --logo-h: 20px; } }
@media (max-width: 360px) { .menu__top .brand { --logo-h: 18px; } .menu__top .brand .brand__name { letter-spacing: .03em; } }
.menu--full nav { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: clamp(4px, 2svh, 20px) var(--gutter) 8px; }
.menu--full ul { margin: 0; padding: 0; list-style: none; }
.menu--full li { border-bottom: 1px solid var(--line-d); }
.menu--full li a { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; min-height: clamp(48px, 8.4svh, 68px); padding: clamp(8px, 1.5svh, 14px) 0; color: inherit; text-decoration: none; }
.menu--full .l { font: 800 clamp(1.55rem, 1.1rem + 2.6vw, 2.3rem)/1.05 var(--display); letter-spacing: -.03em; }
.menu--full .d { flex: 0 1 15ch; font-size: .86rem; line-height: 1.25; text-align: right; color: var(--soft); text-wrap: balance; }
.menu--full a[aria-current="page"] .l { padding-left: 16px; box-shadow: inset 5px 0 0 var(--poppy); }
.menu--full a[aria-current="page"] .d { color: var(--bone); }
@media (max-width: 359px) { .menu--full .d { display: none; } }

.menu__foot { flex: none; display: grid; gap: 10px; padding: 14px var(--gutter) calc(16px + env(safe-area-inset-bottom)); background: var(--wp--preset--color--night); }
.menu__foot .btn { width: 100%; min-height: 56px; font-size: 1.08rem; }
.menu__call { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; color: inherit; font: 700 1.05rem/1 var(--display); font-variant-numeric: tabular-nums; text-decoration: none; }
.menu__call span { font-weight: 500; color: var(--soft); }

/* the one orchestrated moment: links rise in, in order */
@media (prefers-reduced-motion: no-preference) {
	.menu--full li { transition: opacity .3s ease-out, translate .45s var(--ease); transition-delay: calc(40ms + var(--i) * 30ms); }
	.menu--full[open]:not([data-closing]) li { @starting-style { opacity: 0; translate: 0 18px; } }
}
@media (prefers-reduced-motion: reduce) { .menu--full { transition-duration: .1s; } }

/* City lists: names without a page render as plain text (2026-11-22, plan/review-decisions.md 6.5). Same look as the linked names. */
.cities li > span{display:block;padding:13px 0;border-bottom:1px solid var(--line-l);font:700 1.02rem/1.2 var(--display)}
.cities--dark li > span{border-color:var(--line-d)}
