/* =========================================================================
   Restoration Experts — main.css
   Palette + type locked to STYLE-GUIDE.md. Response Red (#C8362B) appears
   ONLY on .rex-btn--emergency and .rex-stickycall (the 24/7 call action).
   ========================================================================= */

:root {
	--navy:        #13294B; /* Harbor Navy  — primary surfaces, headings */
	--navy-700:    #1B3A66; /* lighter navy for gradients */
	--amber:       #E8772E; /* Beacon Amber — warmth accent, secondary CTA */
	--amber-dark:  #C9631F;
	--amber-text:  #A64C0C; /* WCAG-AA accessible rust for amber-colored TEXT on light bg (>=4.5:1) */
	--teal:        #1C75BC; /* Brand Blue   — sampled from the Restoration Experts logo; used as the accent / insurance color (WCAG-AA 4.86:1 on white) */
	--teal-dark:   #155E97; /* deeper brand blue for gradients / hover */
	--red:         #C8362B; /* Response Red — RESERVED: 24/7 call button only */
	--red-dark:    #A82A21;
	--paper:       #F7F4EF; /* Warm Paper   — page background */
	--white:       #FFFFFF;
	--ink:         #2B333B; /* warm slate body text */
	--muted:       #646C78; /* warm slate, darkened to meet WCAG AA (>=4.5:1) on light bg */
	--line:        #E4DED4; /* warm hairline border */

	--navy-grad-1: #163056;
	--navy-grad-2: #0E2240;

	--font-display: "Archivo", "Archivo Fallback", system-ui, "Segoe UI", sans-serif;
	--font-body:    "Inter", "Inter Fallback", system-ui, "Segoe UI", sans-serif;

	--maxw: 1180px;
	--gutter: clamp(1.1rem, 4vw, 2.5rem);
	--radius: 14px;
	--radius-sm: 9px;
	--shadow-sm: 0 2px 8px rgba(19, 41, 75, .06);
	--shadow-md: 0 10px 30px rgba(19, 41, 75, .10);
	--shadow-lg: 0 24px 60px rgba(19, 41, 75, .16);
	--ease: cubic-bezier(.22, .61, .36, 1);
}

/* ----------------------------- Reset ----------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--amber-text); text-decoration: underline; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-display); color: var(--navy); margin: 0; line-height: 1.08; letter-spacing: -.01em; }

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

.rex-container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

/* Icon constraint baseline (STYLE-GUIDE size table is enforced per-context). */
.rex-icon { flex: none; vertical-align: middle; }

/* Skip link */
.rex-skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 1000;
	background: var(--navy); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 8px 0;
}
.rex-skip-link:focus { left: 0; color: #fff; }

/* Focus visibility for keyboard users */
a:focus-visible, button:focus-visible {
	outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px;
}

/* ----------------------------- Buttons ----------------------------- */
.rex-btn {
	display: inline-flex; align-items: center; gap: .6rem;
	font-family: var(--font-display); font-weight: 700; font-size: 1rem;
	padding: .85rem 1.35rem; border-radius: var(--radius-sm); border: 2px solid transparent;
	cursor: pointer; transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
	line-height: 1.1; text-align: left;
}
.rex-btn:hover { transform: translateY(-2px); }
.rex-btn--lg { padding: 1.05rem 1.6rem; font-size: 1.08rem; }

/* Response Red — RESERVED for the 24/7 emergency call action ONLY */
.rex-btn--emergency { background: var(--red); color: #fff; box-shadow: 0 8px 22px rgba(200,54,43,.32); }
.rex-btn--emergency:hover { background: var(--red-dark); color: #fff; box-shadow: 0 12px 28px rgba(200,54,43,.4); }
.rex-btn__label { display: flex; flex-direction: column; }
.rex-btn__sup { font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; opacity: .9; }
.rex-btn__num { font-size: 1.08rem; font-weight: 800; letter-spacing: .01em; }

/* Beacon Amber — secondary CTA / warmth */
.rex-btn--amber { background: var(--amber); color: var(--navy); }
.rex-btn--amber:hover { background: var(--amber-dark); color: #fff; }

/* Ghost (on dark) */
.rex-btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.rex-btn--ghost:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }

/* ----------------------------- Utility bar ----------------------------- */
.rex-utility { background: var(--navy); color: #DCE4F0; font-size: .82rem; }
.rex-utility__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .5rem; flex-wrap: wrap; }
.rex-utility__proof { margin: 0; display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.rex-utility__proof span { display: inline-flex; align-items: center; gap: .35rem; }
.rex-utility__proof .rex-icon { color: var(--amber); }
.rex-utility__claim { margin: 0; display: inline-flex; align-items: center; gap: .4rem; color: #fff; font-weight: 600; }
.rex-utility__claim .rex-icon { color: var(--teal); filter: brightness(1.5); }
.rex-dot { color: rgba(255,255,255,.35); }

/* ----------------------------- Header ----------------------------- */
.rex-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255,255,255,.96); backdrop-filter: saturate(180%) blur(8px);
	border-bottom: 1px solid var(--line); transition: box-shadow .25s var(--ease);
}
.rex-header.is-stuck { box-shadow: var(--shadow-sm); }
.rex-header__inner { display: flex; align-items: center; gap: 1.2rem; padding-block: .7rem; }

.rex-logo { display: inline-flex; align-items: center; gap: .65rem; color: var(--navy); }
.rex-logo:hover { color: var(--navy); }

.rex-nav { margin-left: auto; }
.rex-nav__list { display: flex; align-items: center; gap: 1.5rem; }
.rex-nav__list a {
	font-family: var(--font-display); font-weight: 600; font-size: .98rem; color: var(--navy);
	padding: .4rem 0; position: relative;
}
.rex-nav__list a::after {
	content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--amber);
	transition: width .22s var(--ease);
}
.rex-nav__list a:hover { color: var(--navy); }
.rex-nav__list a:hover::after { width: 100%; }

.rex-nav__toggle { display: none; background: none; border: 0; padding: .4rem; cursor: pointer; }
.rex-nav__bars { display: grid; gap: 5px; width: 26px; }
.rex-nav__bars span { height: 3px; background: var(--navy); border-radius: 2px; transition: transform .22s var(--ease), opacity .22s; }

.rex-header .rex-btn--emergency { margin-left: .25rem; }

/* ----------------------------- Hero ----------------------------- */
.rex-hero { position: relative; color: #fff; overflow: hidden; isolation: isolate; }
.rex-hero::before {
	content: ""; position: absolute; inset: 0; z-index: -2;
	background-image: var(--rex-hero-img);
	background-size: cover; background-position: center 35%;
}
@media (max-width: 640px) {
	.rex-hero::before { background-image: var(--rex-hero-img-m, var(--rex-hero-img)); }
}
.rex-hero__scrim {
	position: absolute; inset: 0; z-index: -1;
	background:
		linear-gradient(110deg, rgba(13,26,48,.94) 0%, rgba(13,26,48,.82) 42%, rgba(13,26,48,.45) 100%),
		linear-gradient(to top, rgba(13,26,48,.85), rgba(13,26,48,0) 55%);
}
/* fallback solid navy if image missing */
.rex-hero { background: var(--navy); }

.rex-hero__inner {
	display: grid; grid-template-columns: 1.55fr .85fr; gap: clamp(1.5rem, 4vw, 3.5rem);
	align-items: center; padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
.rex-hero__eyebrow {
	display: inline-flex; align-items: center; gap: .45rem; margin: 0 0 1rem;
	font-family: var(--font-display); font-weight: 600; font-size: .9rem; letter-spacing: .03em;
	color: #fff; background: rgba(232,119,46,.18); border: 1px solid rgba(232,119,46,.5);
	padding: .4rem .85rem; border-radius: 100px;
}
.rex-hero__eyebrow .rex-icon { color: var(--amber); }
.rex-hero__title {
	color: #fff; font-weight: 900; letter-spacing: -.025em;
	font-size: clamp(2.8rem, 7vw, 5.2rem); line-height: .96; margin-bottom: 1.2rem;
	text-transform: uppercase;
}
.rex-hero__title-accent { color: var(--amber); }
.rex-hero__sub {
	font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 38ch; color: #E8EDF5; line-height: 1.5;
	margin: 0 0 1.8rem;
}
.rex-hero__sub strong { color: #fff; }
.rex-hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 1.8rem; }

.rex-creds { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; }
.rex-creds li { display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; font-weight: 600; }
.rex-hero__creds li { color: #CFE0E0; }
.rex-hero__creds .rex-icon { color: var(--teal); filter: brightness(1.6); }

.rex-hero__card {
	background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
	backdrop-filter: blur(6px); border-radius: var(--radius); padding: 1.6rem;
}
.rex-hero__card-head { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 .6rem; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: #fff; }
.rex-hero__card-head .rex-icon { color: var(--amber); }
.rex-hero__card-body { margin: 0 0 1.2rem; font-size: .98rem; color: #D7E0EC; }
.rex-hero__card-stat { display: flex; align-items: baseline; gap: .7rem; border-top: 1px solid rgba(255,255,255,.16); padding-top: 1.1rem; }
.rex-hero__card-stat .rex-stat__num { font-size: 2.6rem; color: var(--amber); }
.rex-hero__card-stat .rex-stat__label { font-size: .85rem; color: #CBD6E4; max-width: 16ch; }

/* ----------------------------- Stat number type ----------------------------- */
.rex-stat__num { font-family: var(--font-display); font-weight: 900; color: var(--amber); display: block; line-height: 1; letter-spacing: -.02em; }
.rex-stat__label { display: block; font-size: .92rem; color: var(--ink); font-weight: 500; }

/* ----------------------------- Trust bar ----------------------------- */
.rex-trustbar { background: var(--white); border-bottom: 1px solid var(--line); }
.rex-trustbar__grid {
	display: grid; grid-template-columns: repeat(4, 1fr);
	padding-block: clamp(1.8rem, 4vw, 2.6rem); gap: 1rem; text-align: center;
}
.rex-trustbar .rex-stat__num { font-size: clamp(2.4rem, 5vw, 3.4rem); }
.rex-trustbar .rex-stat { position: relative; }
.rex-trustbar .rex-stat:not(:last-child)::after {
	content: ""; position: absolute; right: 0; top: 15%; height: 70%; width: 1px; background: var(--line);
}
.rex-trustbar .rex-stat__label { margin-top: .35rem; color: var(--navy); font-weight: 600; }

/* ----------------------------- Section typography ----------------------------- */
.rex-eyebrow {
	font-family: var(--font-display); font-weight: 700; font-size: .85rem; letter-spacing: .08em;
	text-transform: uppercase; color: var(--amber-text); margin: 0 0 .8rem;
}
.rex-eyebrow--light { color: var(--amber); } /* amber is AA-compliant on dark/navy sections */
.rex-h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 800; margin: 0 0 1rem; letter-spacing: -.02em; }
.rex-h2--light { color: #fff; }
.rex-h3 { font-size: 1.22rem; font-weight: 700; margin: 0 0 .5rem; }
.rex-lead { font-size: 1.12rem; color: #4A535D; max-width: 60ch; margin: 0; line-height: 1.55; }
.rex-lead--light { color: #D7E0EC; }
.rex-section-head { max-width: 760px; margin: 0 auto clamp(2rem, 5vw, 3.2rem); text-align: center; }

section { padding-block: clamp(3.2rem, 7vw, 5.5rem); }

/* ----------------------------- Reassure ----------------------------- */
.rex-reassure { background: var(--paper); }
.rex-reassure__head { max-width: 720px; margin: 0 0 2.4rem; }
.rex-reassure__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.rex-fear {
	background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 2rem; box-shadow: var(--shadow-sm); border-top: 4px solid var(--teal);
}
.rex-fear__icon {
	display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 14px;
	background: rgba(28,117,188,.1); color: var(--teal); margin-bottom: 1rem;
}
.rex-fear h3 { color: var(--navy); }
.rex-fear p { margin: 0; color: #4A535D; }
.rex-fear strong { color: var(--navy); }

/* ----------------------------- Services ----------------------------- */
.rex-services { background: var(--white); }
.rex-services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.rex-card {
	background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 1.9rem; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.rex-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(232,119,46,.5); }
.rex-card__icon {
	display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 16px;
	background: var(--navy); color: #fff; margin-bottom: 1.1rem;
}
.rex-card__icon .rex-icon { color: var(--amber); }
.rex-card__title { color: var(--navy); font-size: 1.3rem; margin-bottom: .5rem; }
.rex-card__desc { margin: 0; color: #4A535D; font-size: 1rem; }

/* ----------------------------- Insurance (Calm Teal) ----------------------------- */
.rex-insurance { background: var(--teal); color: #fff; position: relative; overflow: hidden; }
.rex-insurance::after {
	content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px;
	border-radius: 50%; background: rgba(255,255,255,.05);
}
.rex-insurance__inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; position: relative; z-index: 1; }
.rex-steps { display: grid; gap: 1rem; }
.rex-step {
	display: flex; gap: 1rem; align-items: flex-start; background: rgba(255,255,255,.08);
	border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); padding: 1.25rem 1.4rem;
}
.rex-step__check {
	display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
	background: #fff; color: var(--teal); flex: none;
}
.rex-step__title { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: #fff; margin: 0 0 .2rem; }
.rex-step p { margin: 0; color: #DCEAE9; font-size: .98rem; }

/* ----------------------------- Family ----------------------------- */
.rex-family { background: var(--paper); }
.rex-family__inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.rex-family__photo {
	border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
	background: linear-gradient(135deg, #1B3A66, var(--navy));
	aspect-ratio: 4 / 3; min-height: 360px;
}
.rex-family__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rex-family__photo-inner {
	height: 100%; display: grid; place-content: center; gap: 1rem; text-align: center; padding: 2rem; color: rgba(255,255,255,.5);
}
.rex-family__photo-inner .rex-icon { margin: 0 auto; color: rgba(232,119,46,.7); }
.rex-family__photo-inner span { font-size: .82rem; max-width: 26ch; }
.rex-family__points { display: grid; gap: .9rem; margin-top: 1.5rem; }
.rex-family__points li { display: flex; gap: .7rem; align-items: flex-start; color: #3C454F; font-weight: 500; }
.rex-family__points .rex-icon { color: var(--amber); flex: none; margin-top: 2px; }
.rex-family strong { color: var(--navy); }

/* ----------------------------- Process ----------------------------- */
.rex-process { background: var(--navy); color: #fff; }
.rex-process .rex-eyebrow { color: var(--amber); }
.rex-process .rex-h2 { color: #fff; }
.rex-process__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; counter-reset: step; }
.rex-pstep {
	background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
	border-radius: var(--radius); padding: 1.8rem 1.4rem; position: relative;
}
.rex-pstep__num {
	position: absolute; top: -16px; left: 1.4rem; width: 38px; height: 38px; border-radius: 10px;
	display: grid; place-items: center; background: var(--amber); color: var(--navy);
	font-family: var(--font-display); font-weight: 900; font-size: 1.2rem;
}
.rex-pstep__icon {
	display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 14px;
	background: rgba(255,255,255,.08); color: var(--amber); margin: 1rem 0 1rem;
}
.rex-pstep h3 { color: #fff; font-size: 1.12rem; }
.rex-pstep p { margin: 0; color: #C3CFDF; font-size: .95rem; }

/* ----------------------------- Reviews ----------------------------- */
.rex-reviews { background: var(--white); }
.rex-reviews__rating { display: inline-flex; align-items: center; gap: .6rem; margin-top: 1rem; font-weight: 600; color: var(--navy); }
.rex-stars { display: inline-flex; gap: 2px; }
.rex-star--filled { color: var(--amber); fill: var(--amber); }
.rex-reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.rex-review {
	margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 1.8rem; box-shadow: var(--shadow-sm);
}
.rex-review .rex-stars { margin-bottom: .9rem; }
.rex-review p { margin: 0 0 1.1rem; color: #3C454F; font-size: 1.02rem; line-height: 1.55; }
.rex-review footer { font-family: var(--font-display); font-weight: 700; color: var(--navy); font-size: .95rem; }
.rex-reviews__note { text-align: center; margin: 1.8rem 0 0; font-size: .82rem; color: var(--muted); }

/* ----------------------------- Areas ----------------------------- */
.rex-areas { background: var(--paper); }
.rex-areas__grid { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; }
.rex-areas__primary, .rex-areas__secondary {
	background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem;
}
.rex-areas h3 { display: inline-flex; align-items: center; gap: .5rem; color: var(--navy); margin-bottom: 1.2rem; }
.rex-areas h3 .rex-icon { color: var(--amber); }
.rex-areas__towns { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem 1rem; }
.rex-areas__towns li, .rex-areas__secondary ul li {
	display: flex; align-items: center; gap: .5rem; color: #3C454F; font-weight: 500;
}
.rex-areas__towns li::before, .rex-areas__secondary ul li::before {
	content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); flex: none;
}
.rex-areas__secondary ul { display: grid; gap: .7rem; }
.rex-areas__secondary { background: var(--navy); }
.rex-areas__secondary h3, .rex-areas__secondary ul li { color: #fff; }
.rex-areas__secondary ul li::before { background: var(--amber); }

/* ----------------------------- Final CTA ----------------------------- */
.rex-finalcta {
	background: linear-gradient(135deg, var(--navy-700), var(--navy));
	color: #fff; text-align: center;
}
.rex-finalcta__inner { max-width: 720px; margin: 0 auto; }
.rex-finalcta__title { color: #fff; font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 900; letter-spacing: -.02em; margin-bottom: 1rem; }
.rex-finalcta__sub { font-size: 1.15rem; color: #D7E0EC; margin: 0 auto 2rem; max-width: 48ch; }
.rex-finalcta__actions { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }
.rex-finalcta__fine { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.6rem; color: #AFC0D6; font-size: .9rem; }
.rex-finalcta__fine .rex-icon { color: var(--amber); }

/* ----------------------------- Footer ----------------------------- */
.rex-footer { background: var(--navy); color: #C3CFDF; padding-block: 0; }
.rex-footer__grid {
	display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr; gap: 2.2rem;
	padding-block: clamp(2.8rem, 6vw, 4rem);
}
.rex-logo--footer { color: #fff; margin-bottom: 1rem; }
.rex-logo--footer .rex-logo__name { color: #fff; }
.rex-footer__about { font-size: .95rem; line-height: 1.6; margin: 0 0 1.2rem; }
.rex-creds--footer { flex-direction: column; gap: .55rem; }
.rex-creds--footer li { color: #DCE4F0; font-weight: 500; }
.rex-creds--footer .rex-icon { color: var(--teal); filter: brightness(1.6); }
.rex-footer__head { font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 1.02rem; margin: 0 0 1rem; }
.rex-footer__col ul { display: grid; gap: .55rem; }
.rex-footer__col a, .rex-footer__col li { color: #B8C5D8; font-size: .95rem; }
.rex-footer__col a:hover { color: var(--amber); }
.rex-footer__phone { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; color: #fff; margin-bottom: .8rem; }
.rex-footer__phone:hover { color: var(--amber); }
.rex-footer__phone .rex-icon { color: var(--amber); }
.rex-footer__line { display: flex; align-items: center; gap: .5rem; margin: .4rem 0; font-size: .95rem; }
.rex-footer__line .rex-icon { color: var(--teal); filter: brightness(1.6); }
.rex-footer__line a { color: #B8C5D8; }
.rex-footer__bar { border-top: 1px solid rgba(255,255,255,.12); }
.rex-footer__bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.3rem; }
.rex-footer__bar p { margin: 0; font-size: .85rem; color: #93A2B8; }
.rex-footer__fine { color: #7E8EA6 !important; }

/* ----------------------------- Mobile sticky call bar ----------------------------- */
.rex-stickycall {
	display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
	background: var(--red); color: #fff; align-items: center; justify-content: center; gap: .6rem;
	font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; padding: 1rem;
	box-shadow: 0 -6px 20px rgba(0,0,0,.2);
}
.rex-stickycall:hover { color: #fff; }

/* ----------------------------- Generic page / prose ----------------------------- */
.rex-page { background: var(--paper); min-height: 50vh; }
.rex-page__inner { max-width: 760px; padding-block: clamp(3rem, 7vw, 5rem); }
.rex-prose p { margin: 0 0 1rem; }

/* ----------------------------- Reveal animation ----------------------------- */
/* Content is hidden ONLY when JS is confirmed running (html.rex-js is set by an
   inline script in <head>). If main.js is blocked, errors, or never executes, the
   page still renders fully — the reveal animation is an enhancement, never a gate. */
.rex-js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rex-js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.rex-js .reveal { opacity: 1; transform: none; transition: none; }
	.rex-btn:hover, .rex-card:hover { transform: none; }
}

/* =========================================================================
   ⚡💥 SONIC BOOM LAYER — high-conversion additions (Stage 3.5)
   Red stays reserved for the call button. New CTAs use amber / teal / navy.
   ========================================================================= */

/* ---- Hero: Google rating proof (above the fold) ---- */
.rex-hero__rating {
	display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
	margin: 0 0 1.4rem; font-size: .96rem; color: #E8EDF5;
}
.rex-hero__rating .rex-stars { gap: 1px; }
.rex-hero__rating-text strong { color: #fff; }

/* ---- Hero: scroll cue ---- */
.rex-hero__scrollcue {
	position: absolute; left: 50%; bottom: 1.1rem; transform: translateX(-50%);
	display: inline-flex; align-items: center; gap: .5rem; z-index: 2;
	font-family: var(--font-display); font-weight: 600; font-size: .82rem;
	letter-spacing: .04em; text-transform: uppercase; color: #DCE4F0;
	background: rgba(13,26,48,.45); border: 1px solid rgba(255,255,255,.18);
	padding: .5rem .95rem; border-radius: 100px; backdrop-filter: blur(4px);
}
.rex-hero__scrollcue:hover { color: #fff; border-color: rgba(255,255,255,.4); }
.rex-scrollcue__chev { transform: rotate(90deg); color: var(--amber); animation: rex-bob 1.8s var(--ease) infinite; }
@keyframes rex-bob { 0%,100% { transform: rotate(90deg) translateX(0); } 50% { transform: rotate(90deg) translateX(4px); } }

/* ---- Service card: hover-reveal outcome ---- */
.rex-card { display: flex; flex-direction: column; }
.rex-card__outcome {
	display: flex; align-items: flex-start; gap: .45rem; margin: 0;
	color: var(--teal); font-weight: 600; font-size: .94rem;
	max-height: 0; opacity: 0; overflow: hidden;
	transition: max-height .28s var(--ease), opacity .28s var(--ease), margin-top .28s var(--ease);
}
.rex-card__outcome .rex-icon { color: var(--teal); flex: none; margin-top: 3px; }
.rex-card:hover .rex-card__outcome,
.rex-card:focus-within .rex-card__outcome {
	max-height: 6rem; opacity: 1; margin-top: .85rem;
}

/* ---- Named process lead ---- */
.rex-process__lead { color: #C3CFDF; margin: 1rem auto 0; }

/* ---- Evidence: before / after + case study ---- */
.rex-evidence { background: var(--white); }
.rex-evidence__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 1.6rem; align-items: stretch; }
.rex-beforeafter { margin: 0; display: flex; flex-direction: column; gap: .7rem; }
.rex-beforeafter__pair { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; height: 100%; }
.rex-ba { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 300px; }
.rex-ba__tag {
	position: absolute; top: .8rem; left: .8rem; z-index: 2;
	font-family: var(--font-display); font-weight: 800; font-size: .72rem; letter-spacing: .06em;
	text-transform: uppercase; color: #fff; background: rgba(19,41,75,.85);
	padding: .3rem .7rem; border-radius: 100px;
}
.rex-ba__tag--after { background: var(--teal); }
.rex-ba__placeholder {
	height: 100%; display: grid; place-content: center; gap: .8rem; text-align: center; padding: 1.5rem;
	background: linear-gradient(135deg, #1B3A66, var(--navy)); color: rgba(255,255,255,.55);
}
.rex-ba__placeholder--after { background: linear-gradient(135deg, var(--teal), var(--teal-dark)); color: rgba(255,255,255,.7); }
.rex-ba__placeholder .rex-icon { margin: 0 auto; color: rgba(255,255,255,.7); }
.rex-ba__placeholder span { font-size: .82rem; max-width: 22ch; }
.rex-beforeafter__cap { margin: 0; font-size: .8rem; color: var(--muted); text-align: center; }

.rex-casestudy {
	background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--amber);
	border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm);
	display: flex; flex-direction: column;
}
.rex-casestudy__title { color: var(--navy); font-size: 1.4rem; margin: .2rem 0 1.2rem; }
.rex-casestudy__facts { margin: 0; display: grid; gap: 1.1rem; }
.rex-casestudy__facts div { margin: 0; }
.rex-casestudy__facts dt {
	display: flex; align-items: center; gap: .5rem; margin: 0 0 .25rem;
	font-family: var(--font-display); font-weight: 700; font-size: .92rem; color: var(--navy);
}
.rex-casestudy__facts dt .rex-icon { color: var(--amber); }
.rex-casestudy__facts dd { margin: 0; color: #4A535D; font-size: .98rem; line-height: 1.5; }
.rex-casestudy__outcome {
	display: flex; align-items: flex-start; gap: .5rem; margin: 1.4rem 0 0;
	background: rgba(28,117,188,.1); border-radius: var(--radius-sm); padding: .9rem 1rem;
	color: var(--teal); font-weight: 600; font-size: .98rem;
}
.rex-casestudy__outcome .rex-icon { color: var(--teal); flex: none; margin-top: 2px; }
.rex-casestudy__note { margin: 1rem 0 0; font-size: .8rem; color: var(--muted); }

/* ---- Areas: local map embed ---- */
.rex-areas__map { margin-top: 1.5rem; }
.rex-areas__map iframe {
	display: block; width: 100%; border-radius: var(--radius);
	border: 1px solid var(--line); box-shadow: var(--shadow-sm); filter: saturate(.92);
}
.rex-areas__map-note {
	display: inline-flex; align-items: center; gap: .5rem; margin: .9rem 0 0;
	font-size: .92rem; color: #4A535D; font-weight: 500;
}
.rex-areas__map-note .rex-icon { color: var(--amber); }

/* ---- Final CTA: two-path close (lead + callback form) ---- */
.rex-finalcta__inner {
	max-width: var(--maxw); text-align: left;
	display: grid; grid-template-columns: 1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: start;
}
.rex-finalcta__title { text-align: left; }
.rex-finalcta__sub { margin: 0 0 1.8rem; text-align: left; max-width: 46ch; }
.rex-finalcta__call { margin-bottom: 1.4rem; }
.rex-finalcta__trust {
	display: flex; align-items: flex-start; gap: .55rem; margin: 0 0 .9rem;
	color: #D7E0EC; font-size: .96rem; max-width: 48ch; line-height: 1.5;
}
.rex-finalcta__trust .rex-icon { color: var(--teal); filter: brightness(1.6); flex: none; margin-top: 3px; }
.rex-finalcta .rex-finalcta__fine { margin-top: .2rem; }

/* Callback form card */
.rex-callback {
	background: var(--white); border-radius: var(--radius); padding: 1.8rem;
	box-shadow: var(--shadow-lg); position: relative;
}
.rex-callback__head {
	display: flex; align-items: center; gap: .5rem; margin: 0 0 .35rem;
	font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: var(--navy);
}
.rex-callback__head .rex-icon { color: var(--amber); }
.rex-callback__sub { margin: 0 0 1.2rem; font-size: .92rem; color: #4A535D; }
.rex-field { display: block; margin-bottom: .9rem; }
.rex-field__label { display: block; margin-bottom: .35rem; font-weight: 600; font-size: .9rem; color: var(--navy); }
.rex-field__opt { color: var(--muted); font-weight: 400; }
.rex-callback input,
.rex-callback textarea {
	width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
	background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
	padding: .75rem .85rem; transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.rex-callback input:focus,
.rex-callback textarea:focus {
	outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(232,119,46,.18); background: #fff;
}
.rex-callback textarea { resize: vertical; }
.rex-callback__submit { width: 100%; justify-content: center; margin-top: .4rem; }
.rex-callback__alt { margin: 1rem 0 0; text-align: center; font-size: .9rem; color: #4A535D; }
.rex-callback__alt a { color: var(--teal); font-weight: 600; }
.rex-callback__alt a:hover { color: var(--amber-text); text-decoration: underline; }
.rex-callback__ok {
	display: grid; place-items: center; gap: .7rem; text-align: center; padding: 1rem 0;
}
.rex-callback__ok .rex-icon {
	width: 48px; height: 48px; padding: 10px; border-radius: 50%;
	background: rgba(28,117,188,.12); color: var(--teal);
}
.rex-callback__ok p { margin: 0; color: var(--ink); font-size: .98rem; }
.rex-callback__ok strong { color: var(--navy); }
.rex-callback.is-sent .rex-field,
.rex-callback.is-sent .rex-callback__submit,
.rex-callback.is-sent .rex-callback__sub,
.rex-callback.is-sent .rex-callback__head,
.rex-callback.is-sent .rex-callback__alt { display: none; }
/* GHL native form embed — form_embed.js sets the real height via postMessage;
   the min-height is only a fallback so the card never collapses before it loads. */
.rex-callback--ghl iframe { display: block; width: 100%; min-height: 520px; }

@media (prefers-reduced-motion: reduce) {
	.rex-scrollcue__chev { animation: none; }
	.rex-card__outcome { transition: none; }
}

/* ============================== Responsive ============================== */
@media (max-width: 980px) {
	/* minmax(0,1fr): an unwrappable child (the live chip) must not widen the column past the phone. */
	.rex-hero__inner { grid-template-columns: minmax(0, 1fr); }
	.rex-hero__live { flex-wrap: wrap; row-gap: .15rem; }
	.rex-hero__card { max-width: 460px; }
	.rex-insurance__inner,
	.rex-family__inner { grid-template-columns: 1fr; }
	/* aspect-ratio 4/3 + min-height 360px forced a 480px-wide box: sideways scroll on phones. */
	.rex-family__photo { min-height: 0; }
	.rex-services__grid,
	.rex-process__grid,
	.rex-reviews__grid { grid-template-columns: repeat(2, 1fr); }
	.rex-areas__grid { grid-template-columns: 1fr; }
	.rex-utility__claim { display: none; }
	.rex-evidence__grid,
	.rex-finalcta__inner { grid-template-columns: 1fr; }
	.rex-finalcta__title,
	.rex-finalcta__sub { text-align: left; }
}

@media (max-width: 760px) {
	body { font-size: 16px; }
	/* Mobile nav */
	.rex-nav__toggle { display: inline-flex; margin-left: auto; }
	.rex-nav__list {
		position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
		background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
		padding: .5rem var(--gutter) 1rem; display: none;
	}
	.rex-nav.is-open .rex-nav__list { display: flex; }
	.rex-nav__list a { padding: .85rem 0; border-bottom: 1px solid var(--line); }
	.rex-nav__list a::after { display: none; }
	.rex-nav { margin-left: 0; }
	.rex-header__inner { flex-wrap: wrap; }
	/* Hide the desktop header call button on phones — sticky bar covers it */
	.rex-header .rex-btn--emergency { display: none; }
	.rex-nav__toggle { order: 3; }

	.rex-trustbar__grid { grid-template-columns: repeat(2, 1fr); gap: 1.6rem 1rem; }
	.rex-trustbar .rex-stat:nth-child(2)::after { display: none; }
	.rex-services__grid,
	.rex-process__grid,
	.rex-reviews__grid,
	.rex-reassure__grid { grid-template-columns: 1fr; }
	.rex-areas__towns { grid-template-columns: repeat(2, 1fr); }
	.rex-footer__grid { grid-template-columns: 1fr 1fr; }
	.rex-footer__brand { grid-column: 1 / -1; }

	.rex-stickycall { display: flex; }
	.rex-main { padding-bottom: 64px; } /* room for sticky call bar */
	.rex-pstep__num { position: static; margin-bottom: .5rem; }

	/* Sonic Boom — touch: no hover, so reveal outcomes inline; stack before/after */
	.rex-card__outcome { max-height: 6rem; opacity: 1; margin-top: .85rem; }
	.rex-beforeafter__pair { grid-template-columns: 1fr; }
	.rex-ba { min-height: 220px; }
	.rex-hero__scrollcue { display: none; }
	.rex-finalcta { padding-bottom: clamp(3.2rem, 7vw, 5.5rem); }
}

@media (max-width: 460px) {
	.rex-footer__grid { grid-template-columns: 1fr; }
	.rex-hero__actions .rex-btn { width: 100%; justify-content: center; }
	.rex-trustbar__grid { grid-template-columns: 1fr 1fr; }
}

/* =========================================================================
   📄 STAGE 7 — Programmatic SEO page components
   Service / location / matrix / hub templates. Same tokens, same palette;
   Response Red stays on the call button only.
   ========================================================================= */

/* ---- Inner-page hero (service / location / hub) ---- */
.rex-hero--inner .rex-hero__inner { padding-block: clamp(2.8rem, 6vw, 4.5rem); align-items: center; }
.rex-hero__title--inner {
	text-transform: none; font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.04; letter-spacing: -.02em;
}
.rex-hero--hub .rex-hero__inner { grid-template-columns: 1fr; }
.rex-hero--hub .rex-hero__sub { max-width: 56ch; }

/* ---- Breadcrumbs (+ BreadcrumbList schema) ---- */
.rex-crumbs { background: var(--white); border-bottom: 1px solid var(--line); }
.rex-crumbs ol {
	display: flex; flex-wrap: wrap; align-items: center; gap: .35rem;
	padding-block: .8rem; font-size: .86rem; color: var(--muted);
}
.rex-crumbs li { display: inline-flex; align-items: center; gap: .35rem; }
.rex-crumbs a { color: #4A535D; font-weight: 500; }
.rex-crumbs a:hover { color: var(--amber-text); text-decoration: underline; }
.rex-crumbs li[aria-current] { color: var(--navy); font-weight: 600; }
.rex-crumbs__sep { color: var(--muted); }

/* ---- "What we handle" split: includes checklist + signs panel ---- */
.rex-svc { background: var(--white); }
.rex-svc__grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.rex-checklist { display: grid; gap: .85rem; margin-top: 1.4rem; }
.rex-checklist li { display: flex; gap: .7rem; align-items: flex-start; color: #3C454F; font-size: 1.04rem; line-height: 1.5; }
.rex-checklist .rex-icon {
	color: #fff; background: var(--teal); border-radius: 50%; padding: 3px; flex: none; margin-top: 3px;
	width: 24px; height: 24px;
}
.rex-svc__signs {
	background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--amber);
	border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm);
}
.rex-svc__signs h3 { display: inline-flex; align-items: center; gap: .5rem; color: var(--navy); margin-bottom: 1rem; }
.rex-svc__signs h3 .rex-icon { color: var(--amber); }

/* =========================================================================
   ✦ AWARD-TIER MOTION & DEPTH — Chunk 1 (hero + global)
   All motion is gated behind (prefers-reduced-motion: no-preference) and the
   default static state is fully visible, so reduced-motion users lose nothing.
   ========================================================================= */

/* ---- Filmic grain overlay (kills the flat-template look) ---- */
body::after {
	content: ""; position: fixed; inset: 0; z-index: 2147483646; pointer-events: none;
	opacity: .035; mix-blend-mode: overlay; background-size: 160px 160px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- Depth gradients on dark sections (replace flat navy) ---- */
.rex-process { background: radial-gradient(125% 120% at 82% -10%, var(--navy-grad-1) 0%, var(--navy-grad-2) 62%); }
.rex-finalcta { background: radial-gradient(120% 130% at 15% 0%, var(--navy-grad-1) 0%, var(--navy-grad-2) 65%); }
.rex-footer { background: linear-gradient(180deg, var(--navy-grad-1) 0%, var(--navy-grad-2) 100%); }

/* ---- Hero ambient Ken-Burns zoom ---- */
@media (prefers-reduced-motion: no-preference) {
	.rex-hero::before {
		animation: rexKenBurns 26s ease-in-out infinite alternate;
		transform-origin: 60% 40%; will-change: transform;
	}
}
@keyframes rexKenBurns {
	from { transform: scale(1.05); }
	to   { transform: scale(1.16) translateY(-1.5%); }
}

/* ---- Hero animated headline (masked word rise) ---- */
.rex-hero__title--anim { display: block; text-wrap: balance; }
.rex-hero__title--anim .rex-hero__word {
	display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em;
}
.rex-hero__title--anim .rex-hero__word > span { display: block; }
@media (prefers-reduced-motion: no-preference) {
	.rex-hero__title--anim .rex-hero__word > span {
		transform: translateY(112%); animation: rexWordRise .8s var(--ease) forwards;
	}
	.rex-hero__title--anim .rex-hero__word:nth-child(1) > span { animation-delay: .12s; }
	.rex-hero__title--anim .rex-hero__word:nth-child(2) > span { animation-delay: .26s; }
	.rex-hero__title--anim .rex-hero__word:nth-child(3) > span { animation-delay: .40s; }
}
@keyframes rexWordRise { to { transform: translateY(0); } }

/* ---- Live "answering now" chip ---- */
.rex-hero__live {
	display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 1.6rem;
	font-size: .92rem; font-weight: 600; color: #DDE6F1;
}
.rex-hero__live strong { color: #fff; }
.rex-hero__live-dot {
	width: 9px; height: 9px; border-radius: 50%; background: #3FB66F; flex: none;
	box-shadow: 0 0 0 0 rgba(63,182,111,.6);
}
@media (prefers-reduced-motion: no-preference) {
	.rex-hero__live-dot { animation: rexPulse 2.2s ease-out infinite; }
}
@keyframes rexPulse {
	0%   { box-shadow: 0 0 0 0 rgba(63,182,111,.55); }
	70%  { box-shadow: 0 0 0 11px rgba(63,182,111,0); }
	100% { box-shadow: 0 0 0 0 rgba(63,182,111,0); }
}

/* ---- Reduced-motion safety net for Chunk 1 ---- */
@media (prefers-reduced-motion: reduce) {
	.rex-hero::before { animation: none; }
	.rex-hero__title--anim .rex-hero__word > span { transform: none; animation: none; }
	.rex-hero__live-dot { animation: none; }
}

/* =========================================================================
   ✦ AWARD-TIER MOTION & DEPTH — Chunk 2 (process line, magnetism, hovers)
   ========================================================================= */

/* ---- Scroll-drawn connector across the process steps (desktop) ---- */
@media (min-width: 880px) {
	.rex-process__grid { position: relative; }
	.rex-process__grid::before {
		content: ""; position: absolute; top: 2px; left: 7%; right: 7%; height: 2px; z-index: 0;
		background: linear-gradient(90deg, rgba(232,119,46,.2), var(--amber) 50%, rgba(232,119,46,.2));
		transform: scaleX(0); transform-origin: left center;
		transition: transform 1.3s var(--ease);
	}
	.rex-process__grid.is-drawn::before { transform: scaleX(1); }
	.rex-pstep { z-index: 1; }
}

/* ---- Magnetic large buttons (JS sets transform; keep it smooth) ---- */
@media (prefers-reduced-motion: no-preference) {
	.rex-btn--lg, .rex-btn--emergency { will-change: transform; }
}

/* ---- Card hover depth bloom + icon life ---- */
@media (prefers-reduced-motion: no-preference) {
	.rex-card { transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease); }
	.rex-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); }
	.rex-card__icon { transition: transform .3s var(--ease); }
	.rex-card:hover .rex-card__icon { transform: scale(1.08) rotate(-3deg); }
}

/* ---- Kinetic underline: draws under the hero promise ---- */
.rex-hero__sub strong { position: relative; }
@media (prefers-reduced-motion: no-preference) {
	.rex-hero__sub strong::after {
		content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px;
		background: var(--amber); border-radius: 2px;
		transform: scaleX(0); transform-origin: left;
		animation: rexUnderline .7s var(--ease) .9s forwards;
	}
}
@keyframes rexUnderline { to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
	.rex-process__grid::before { transform: scaleX(1); transition: none; }
}

/* =========================================================================
   ✦ AWARD-TIER — Chunk 3 (interactive before/after slider)
   User-driven (no auto-motion), so it works the same under reduced-motion.
   Panes hold real client before/after photos; gradients remain as the
   loading fallback behind the images.
   ========================================================================= */
.rex-beforeafter[data-rex-ba] { margin: 0; }
.rex-ba2 {
	position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
	box-shadow: var(--shadow-md); border: 1px solid var(--line); touch-action: pan-y;
	--pos: 50%;
}
.rex-ba2__pane {
	position: absolute; inset: 0; display: grid; place-content: center; justify-items: center;
	gap: .6rem; text-align: center; padding: 1.2rem;
	font-family: var(--font-display); font-weight: 600; font-size: .95rem; line-height: 1.3;
}
.rex-ba2__pane .rex-icon { width: 40px; height: 40px; opacity: .9; }
.rex-ba2__pane img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.rex-ba2__pane--after  { background: linear-gradient(135deg, #163A53, #0E2240); color: #CFE0E0; }
.rex-ba2__pane--before {
	background: linear-gradient(135deg, #3A291C, #221308); color: #EBD9C7;
	clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.rex-ba2__tag {
	position: absolute; top: .8rem; z-index: 3; padding: .25rem .7rem; border-radius: 100px;
	font-family: var(--font-display); font-weight: 700; font-size: .72rem; letter-spacing: .06em;
	text-transform: uppercase; color: #fff; backdrop-filter: blur(4px);
}
.rex-ba2__tag--before { left: .8rem; background: rgba(58,41,28,.8); }
.rex-ba2__tag--after  { right: .8rem; background: rgba(22,58,83,.8); }
.rex-ba2__handle {
	position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; z-index: 2;
	background: #fff; transform: translateX(-50%); pointer-events: none;
	box-shadow: 0 0 0 1px rgba(0,0,0,.15);
}
.rex-ba2__handle::after {
	content: "\2194"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
	width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--navy);
	display: grid; place-items: center; font-size: 1.2rem; font-weight: 700; box-shadow: var(--shadow-md);
}
.rex-ba2__range {
	position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; z-index: 4;
	opacity: 0; cursor: ew-resize;
}
.rex-ba2__range:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

/* ---- Animated service-area pins (Chunk 3) ---- */
.rex-areas__towns--pins { display: flex; flex-wrap: wrap; gap: .55rem .6rem; }
.rex-areas__towns--pins li {
	display: inline-flex; align-items: center; gap: .35rem; padding: .42rem .8rem;
	border: 1px solid var(--line); border-radius: 100px; background: var(--white);
	font-weight: 600; font-size: .9rem; color: var(--navy); box-shadow: var(--shadow-sm);
}
.rex-areas__towns--pins li .rex-icon { width: 15px; height: 15px; color: var(--amber); flex: none; }
.rex-areapin--base { position: relative; background: var(--navy); color: #fff; border-color: var(--navy); }
.rex-areapin__base {
	font-style: normal; font-size: .64rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
	background: var(--amber); color: var(--navy); padding: .08rem .4rem; border-radius: 100px; margin-left: .15rem;
}
@media (prefers-reduced-motion: no-preference) {
	.rex-js .reveal .rex-areas__towns--pins li { opacity: 0; transform: translateY(10px) scale(.96); }
	.rex-js .reveal.is-visible .rex-areas__towns--pins li { animation: rexPinIn .5s var(--ease) forwards; }
	.rex-areas__towns--pins li:nth-child(1)  { animation-delay: .04s; }
	.rex-areas__towns--pins li:nth-child(2)  { animation-delay: .08s; }
	.rex-areas__towns--pins li:nth-child(3)  { animation-delay: .12s; }
	.rex-areas__towns--pins li:nth-child(4)  { animation-delay: .16s; }
	.rex-areas__towns--pins li:nth-child(5)  { animation-delay: .20s; }
	.rex-areas__towns--pins li:nth-child(6)  { animation-delay: .24s; }
	.rex-areas__towns--pins li:nth-child(7)  { animation-delay: .28s; }
	.rex-areas__towns--pins li:nth-child(8)  { animation-delay: .32s; }
	.rex-areas__towns--pins li:nth-child(9)  { animation-delay: .36s; }
	.rex-areas__towns--pins li:nth-child(10) { animation-delay: .40s; }
	.rex-areas__towns--pins li:nth-child(11) { animation-delay: .44s; }
	.rex-areas__towns--pins li:nth-child(12) { animation-delay: .48s; }
	.rex-areapin--base::after {
		content: ""; position: absolute; inset: -2px; border-radius: 100px; pointer-events: none;
		animation: rexBasePulse 2.4s ease-in-out 1.2s infinite;
	}
}
@keyframes rexPinIn { to { opacity: 1; transform: none; } }
@keyframes rexBasePulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(232,119,46,.5); }
	50%      { box-shadow: 0 0 0 9px rgba(232,119,46,0); }
}

/* ---- Hero background video (Chunk 3) ---- */
.rex-hero__video {
	position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2;
	object-fit: cover; object-position: center 35%; pointer-events: none;
}
/* Reduced-motion + small screens: hide video, fall back to the ::before poster image */
@media (prefers-reduced-motion: reduce) {
	.rex-hero__video { display: none; }
}
@media (max-width: 640px) {
	.rex-hero__video { display: none; }
}
/* No old-image flash: in video mode the ::before still is hidden on desktop,
   so the load sequence is navy -> video (never the old photo). The still is
   restored only where the video is hidden (reduced-motion + mobile). */
.rex-hero--video::before { display: none; }
@media (prefers-reduced-motion: reduce) { .rex-hero--video::before { display: block; } }
@media (max-width: 640px)               { .rex-hero--video::before { display: block; } }
/* No JS = no video src attached, so show the still instead of bare navy. */
html:not(.rex-js) .rex-hero--video::before { display: block; }
html:not(.rex-js) .rex-hero__video { display: none; }
/* JS fades the video in once it can play; default visible for no-JS safety. */
.rex-hero__video { opacity: 1; transition: opacity .5s ease; }
.rex-hero--video.is-video-ready .rex-hero__video { opacity: 1; }

/* =========================================================================
   ✦ SEO MIGRATION — preserved content (blog posts, pages, archives)
   Brand-styled templates so migrated content keeps its URLs + rankings while
   matching the new design.
   ========================================================================= */

/* ---- Rich prose (article + page body) ---- */
.rex-prose { font-size: 1.06rem; line-height: 1.7; color: var(--ink); }
.rex-prose > * { margin: 0 0 1.15rem; }
.rex-prose h2 { font-family: var(--font-display); color: var(--navy); font-size: clamp(1.5rem, 3vw, 2rem); margin: 2rem 0 .8rem; letter-spacing: -.01em; }
.rex-prose h3 { font-family: var(--font-display); color: var(--navy); font-size: 1.3rem; margin: 1.6rem 0 .6rem; }
.rex-prose a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }
.rex-prose a:hover { color: var(--amber-text); }
.rex-prose ul, .rex-prose ol { margin: 0 0 1.15rem; padding-left: 1.3rem; }
.rex-prose ul { list-style: disc; }
.rex-prose ol { list-style: decimal; }
.rex-prose li { margin: 0 0 .5rem; }
.rex-prose img { border-radius: var(--radius); margin: 1.5rem 0; box-shadow: var(--shadow-sm); }
.rex-prose blockquote {
	margin: 1.5rem 0; padding: 1rem 1.4rem; border-left: 4px solid var(--amber);
	background: var(--white); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; box-shadow: var(--shadow-sm);
	font-size: 1.1rem; color: var(--navy);
}
.rex-prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.rex-prose th, .rex-prose td { border: 1px solid var(--line); padding: .6rem .8rem; text-align: left; }
.rex-prose th { background: var(--paper); font-family: var(--font-display); color: var(--navy); }

/* ---- Single post header + hero ---- */
.rex-post__head, .rex-page__head { background: var(--paper); border-bottom: 1px solid var(--line); }
.rex-post__head-inner, .rex-page__head-inner { max-width: 820px; padding-block: clamp(2rem, 5vw, 3.2rem); }
.rex-post__title, .rex-page__title {
	font-family: var(--font-display); color: var(--navy); font-weight: 900; letter-spacing: -.02em;
	font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.08; margin: .3rem 0 0;
}
.rex-post__hero { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius); margin: clamp(1.5rem, 4vw, 2.5rem) 0 0; }
.rex-post__body, .rex-page--full .rex-page__inner { max-width: 820px; padding-block: clamp(2rem, 5vw, 3.2rem); }

/* ---- Blog / archive listing ---- */
.rex-bloglist { padding-block: clamp(3rem, 7vw, 5rem); }
.rex-bloglist__grid {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 1.5rem; margin-top: 2.5rem;
}
.rex-postcard {
	display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line);
	border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); color: var(--ink);
}
.rex-postcard:hover { color: var(--ink); text-decoration: none; }
.rex-postcard__img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper); }
.rex-postcard__img img { width: 100%; height: 100%; object-fit: cover; }
.rex-postcard__body { display: flex; flex-direction: column; gap: .5rem; padding: 1.3rem; }
.rex-postcard__date { font-size: .8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.rex-postcard__title { font-family: var(--font-display); font-weight: 800; color: var(--navy); font-size: 1.2rem; line-height: 1.2; }
.rex-postcard__excerpt { font-size: .95rem; color: var(--ink); }
.rex-postcard .rex-card__more { margin-top: auto; padding-top: .4rem; color: var(--teal); font-weight: 700; display: inline-flex; align-items: center; gap: .35rem; }
@media (prefers-reduced-motion: no-preference) {
	.rex-postcard { transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease); }
	.rex-postcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(232,119,46,.5); }
}

/* ---- Pagination ---- */
.rex-pagination { margin-top: 2.5rem; }
.rex-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px;
	padding: 0 .6rem; margin: 0 .2rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
	background: var(--white); color: var(--navy); font-family: var(--font-display); font-weight: 700;
}
.rex-pagination .page-numbers.current { background: var(--navy); color: #fff; border-color: var(--navy); }
.rex-pagination a.page-numbers:hover { border-color: var(--amber); color: var(--amber-text); }

/* =========================================================================
   ✦ HERO FLAIR — pulsing 24/7 + cycling damage word
   ========================================================================= */
/* Pulsing amber glow on the "24/7" accent (glow only — clip-safe inside the
   masked headline). */
@media (prefers-reduced-motion: no-preference) {
	/* The "24/7" word rises in once, then pulses forever. Both animations are
	   composed on the SAME element so the rise doesn't override the pulse
	   (this selector also outranks the generic word-rise rule). */
	.rex-hero__title--anim .rex-hero__word:nth-child(3) > span {
		animation: rexWordRise .8s var(--ease) .40s forwards,
		           rexAccentPulse 1.9s ease-in-out 1.4s infinite;
		will-change: transform, text-shadow, filter;
	}
}
@keyframes rexAccentPulse {
	0%, 100% { text-shadow: 0 0 0 rgba(232,119,46,0); filter: brightness(1); }
	50%      { text-shadow: 0 0 26px rgba(232,119,46,.75); filter: brightness(1.18); }
}

/* =========================================================================
   Pillar (guide) pages — long-form article body + numbered timeline.
   Uses the locked palette only; no new brand colors.
   ========================================================================= */
.rex-article { background: var(--paper); padding-block: clamp(2.4rem, 6vw, 4rem); }
.rex-article__inner { max-width: 780px; margin-inline: auto; }
.rex-article__block { margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.rex-article__block > h2 { margin: 0 0 .9rem; }
.rex-article__block p { color: var(--ink); line-height: 1.7; margin: 0 0 1rem; }
.rex-article__block p:last-child { margin-bottom: 0; }
.rex-article__list { list-style: disc; padding-left: 1.3rem; margin: .6rem 0 0; display: grid; gap: .55rem; }
.rex-article__list li { color: var(--ink); line-height: 1.65; }

.rex-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.rex-timeline__step {
	display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start;
	background: var(--white); border: 1px solid var(--line); border-radius: 14px;
	padding: 1.1rem 1.3rem;
}
.rex-timeline__num {
	display: grid; place-items: center; width: 38px; height: 38px; flex: none;
	border-radius: 50%; background: var(--navy); color: #fff;
	font-family: var(--font-display); font-weight: 800; font-size: 1.05rem;
}
.rex-timeline__step h3 { margin: .2rem 0 .35rem; }
.rex-timeline__step p { margin: 0; color: var(--ink); line-height: 1.65; }

/* Cycling word ("Water" -> "Fire" -> "Storm" ...) in the hero sub. */
/* "Water damage?" sits on its own line in a slot sized by the widest phrase
   ("Sewage damage?"), so swapping words never reflows the paragraph (each
   swap was a layout shift: CLS) and the reserved space falls at line end. */
.rex-cycler-slot { display: grid; justify-content: start; }
.rex-cycler-slot > * { grid-area: 1 / 1; }
.rex-cycler-slot__sizer { visibility: hidden; }
.rex-cycler-slot__word { font-weight: 800; }
.rex-cycler {
	display: inline-block; color: var(--amber); font-weight: 800;
	transition: opacity .25s var(--ease), transform .25s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
	.rex-hero__title-accent { animation: none; }
	.rex-cycler { transition: none; }
}

/* =========================================================================
   ✦ CERTIFICATION BADGE BAND (real logos) + ANGLED DIVIDER
   ========================================================================= */
.rex-badges { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: clamp(1.4rem, 3vw, 2.2rem); }
.rex-badges__inner { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; text-align: center; }
.rex-badges__lead { margin: 0; font-size: .95rem; color: var(--ink); }
.rex-badges__lead strong { color: var(--navy); font-family: var(--font-display); }
.rex-badges__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(1.5rem, 5vw, 3.2rem); }
.rex-badges__row img { height: 66px; width: auto; object-fit: contain; }
.rex-badge-text {
	display: inline-flex; align-items: center; gap: .5rem;
	padding: .55rem 1rem; border: 1px solid var(--line); border-radius: 999px;
	background: rgba(28,117,188,.06); color: var(--navy);
	font-family: var(--font-display); font-weight: 600; font-size: .92rem; line-height: 1.2;
}
.rex-badge-text .rex-icon { color: var(--teal); flex: none; }
@media (prefers-reduced-motion: no-preference) {
	.rex-badges__row img { filter: grayscale(.2); transition: filter .3s var(--ease), transform .3s var(--ease); }
	.rex-badges__row img:hover { filter: grayscale(0); transform: translateY(-3px); }
}

/* ---- Per-service license callout (work-specific credential proof) ---- */
.rex-liccallout { background: var(--white); border-bottom: 1px solid var(--line); padding-block: clamp(1.4rem, 3vw, 2.2rem); }
.rex-liccallout__inner { display: flex; flex-direction: column; gap: 1rem; }
.rex-liccallout__head { display: flex; align-items: center; gap: .6rem; }
.rex-liccallout__head .rex-icon { color: var(--teal); flex: none; }
.rex-liccallout__title { font-size: clamp(1.12rem, 2.4vw, 1.5rem); }
.rex-liccallout__feat { display: flex; flex-wrap: wrap; gap: .7rem; }
.rex-liccallout__chip {
	display: flex; flex-direction: column; gap: .12rem;
	padding: .6rem .95rem; background: var(--paper);
	border: 1px solid var(--line); border-left: 3px solid var(--teal);
	border-radius: var(--radius-sm);
}
.rex-liccallout__chip-name { font-family: var(--font-display); font-weight: 600; font-size: .92rem; color: var(--navy); }
.rex-liccallout__chip-num { font-size: .86rem; color: var(--muted); letter-spacing: .02em; }
.rex-liccallout__base { margin: 0; font-size: .9rem; color: var(--muted); }

/* Angled divider on the closing CTA for a dynamic, modern transition. */
@media (min-width: 700px) {
	.rex-finalcta { clip-path: polygon(0 2vw, 100% 0, 100% 100%, 0 100%); margin-top: -1px; }
}
.rex-signs { display: grid; gap: .7rem; }
.rex-signs li { display: flex; gap: .6rem; align-items: flex-start; color: #4A535D; font-size: .98rem; line-height: 1.45; }
.rex-signs li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); flex: none; margin-top: .55rem; }
.rex-signs__cta { display: flex; gap: .5rem; align-items: flex-start; margin: 1.2rem 0 0; padding-top: 1.1rem; border-top: 1px solid var(--line); font-weight: 600; color: var(--navy); font-size: .95rem; }
.rex-signs__cta .rex-icon { color: var(--teal); flex: none; margin-top: 2px; }

/* ---- FAQ accordion (native <details>, no JS dependency) ---- */
.rex-faq { background: var(--paper); }
.rex-faq__list { max-width: 820px; margin: 0 auto; display: grid; gap: .8rem; }
.rex-faq__item {
	background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
	box-shadow: var(--shadow-sm); overflow: hidden;
}
.rex-faq__q {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer;
	padding: 1.15rem 1.4rem; font-family: var(--font-display); font-weight: 700; font-size: 1.08rem;
	color: var(--navy); list-style: none;
}
.rex-faq__q::-webkit-details-marker { display: none; }
.rex-faq__chev { color: var(--amber); transition: transform .22s var(--ease); flex: none; }
.rex-faq__item[open] .rex-faq__chev { transform: rotate(90deg); }
.rex-faq__a { padding: 0 1.4rem 1.3rem; }
.rex-faq__a p { margin: 0; color: #4A535D; font-size: 1.02rem; line-height: 1.6; }

/* ---- Town / service link chips ---- */
.rex-townlinks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.rex-townlinks li { display: flex; }
.rex-townlinks a {
	display: flex; align-items: center; gap: .5rem; width: 100%;
	background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
	padding: .85rem 1rem; color: var(--navy); font-family: var(--font-display); font-weight: 600; font-size: .98rem;
	box-shadow: var(--shadow-sm); transition: transform .18s var(--ease), border-color .18s, box-shadow .18s;
}
.rex-townlinks a:hover { transform: translateY(-2px); border-color: rgba(232,119,46,.55); box-shadow: var(--shadow-md); color: var(--navy); }
.rex-townlinks a .rex-icon { color: var(--amber); flex: none; }
/* Three columns on desktop; the responsive rules below still collapse it on phones. */
.rex-townlinks--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rex-townlinks--inline { grid-template-columns: 1fr; gap: .6rem; }
.rex-townlinks--inline a { background: var(--paper); box-shadow: none; }
/* Static (non-link) pills — borough neighborhood lists. Same look, no hover lift. */
.rex-townlinks--static span {
	display: flex; align-items: center; gap: .5rem; width: 100%;
	background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
	padding: .85rem 1rem; color: var(--navy); font-family: var(--font-display); font-weight: 600; font-size: .98rem;
	box-shadow: var(--shadow-sm);
}
.rex-townlinks--static span .rex-icon { color: var(--amber); flex: none; }

/* ---- Card-as-link (related services / hub grids) ---- */
.rex-card--link { color: var(--ink); }
.rex-card--link:hover { color: var(--ink); }
.rex-card__more {
	display: inline-flex; align-items: center; gap: .4rem; margin-top: auto; padding-top: 1rem;
	color: var(--teal); font-family: var(--font-display); font-weight: 700; font-size: .95rem;
}
.rex-card--link:hover .rex-card__more { color: var(--amber); }
.rex-card--link .rex-card__more .rex-icon { transition: transform .2s var(--ease); }
.rex-card--link:hover .rex-card__more .rex-icon { transform: translateX(4px); }

/* ---- Related services / generic section backgrounds ---- */
.rex-related { background: var(--white); }
.rex-related .rex-services__grid { grid-template-columns: repeat(4, 1fr); }

/* ---- Responsive ---- */
@media (max-width: 980px) {
	.rex-svc__grid { grid-template-columns: 1fr; }
	.rex-townlinks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.rex-related .rex-services__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
	.rex-townlinks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rex-related .rex-services__grid { grid-template-columns: 1fr; }
	.rex-hero--inner .rex-hero__inner { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
	.rex-townlinks { grid-template-columns: 1fr; }
}
