/*
Theme Name: Riverca Pro
Theme URI: https://rivercapro.com/
Template: kadence
Author: Brendon Jensen
Description: Child theme for Riverca Pro. Stealth-black brand system with the three service accents from the logo. CSS only by design: this theme contains no template overrides, so Kadence updates never need merging and there is no PHP here to maintain.
Version: 1.0.0
Requires at least: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: riverca
*/

/* =========================================================================
   1. DESIGN TOKENS
   Single source of truth. Change a value here, not in a block or a page.
   ========================================================================= */

:root {
	/* Uniform base. Mirrors the black company shirts.
	   Tones are kept close to NEUTRAL rather than blue-biased: a blue-grey
	   ladder reads like a software product, and this is a labor contractor.
	   Ground stays exactly on the brand value. */
	--rvc-ground:      #0D1117;   /* page background — brand value, unchanged */
	--rvc-surface:     #15191F;   /* panels */
	--rvc-surface-2:   #1B2028;   /* alternating bands */
	--rvc-header:      #0A0E13;   /* header/footer: darker than the page, like signage */
	--rvc-raised:      #22272F;   /* form fields, table rows */

	/* Tri-service accents, sampled from the final logo emblem (Nov 2026):
	   blue wing/drop = water, orange ribbon/flame = fire, green wing/virus =
	   mold. Each is the logo's bright midtone, nudged only as far as needed
	   to stay >= 4.5:1 as text on both --rvc-ground and --rvc-surface-2. */
	--rvc-hydro:       #1A8CF0;   /* water / restoration */
	--rvc-blaze:       #FB4F0E;   /* fire / emergency, primary CTA */
	--rvc-bio:         #6CC40A;   /* mold / biohazard, success */

	/* Type. */
	--rvc-text:        #E6EDF3;
	--rvc-text-bright: #FFFFFF;
	--rvc-text-mute:   #8B98A5;   /* grey biased toward hydro, not a flat grey */

	/* Ink for use ON an accent fill. Never white: see section 2. */
	--rvc-on-accent:   #0D1117;

	--rvc-line:        rgba(230, 237, 243, .10);
	--rvc-line-strong: rgba(230, 237, 243, .18);

	/* The accent a section is currently using. Re-pointed by .is-* classes,
	   which is what lets one set of rules serve all three service colors. */
	--rvc-accent:      var(--rvc-blaze);

	/* Square. Rounded corners on every panel is the single strongest tell of
	   a generic modern template; job-site signage, equipment plates and
	   insurance certificates all have hard edges. */
	--rvc-radius:      0px;
	--rvc-maxw:        1180px;
	--rvc-gutter:      clamp(1.25rem, 4vw, 3rem);

	/* Adjacent sections each contribute this top AND bottom, so the gap
	   between two sections is double the value. Measured at 1400px: 6rem
	   produced 228px gaps, which read as dead space. 4rem lands at ~130px. */
	--rvc-section-y:   clamp(2.25rem, 4.5vw, 4rem);
}

/* Accent switches. Put .is-hydro / .is-blaze / .is-bio on any section or card
   and everything inside it re-tints. This is the whole tri-color system. */
.is-hydro { --rvc-accent: var(--rvc-hydro); }
.is-blaze { --rvc-accent: var(--rvc-blaze); }
.is-bio   { --rvc-accent: var(--rvc-bio); }

/* =========================================================================
   2. ACCESSIBILITY NOTE — read before changing any accent pairing
   The supplied brand spec asked for white text on the orange banner. Measured
   against the blaze orange that is ~3.3:1, below the 4.5:1 WCAG AA minimum. Hydro Blue
   is ~2.7:1 and Bio Green is worse still. So: accent colors take NEAR-BLACK
   text when used as a fill, and are only used as *text* against the dark
   ground, where they all pass comfortably (Blaze ~5.8:1).
   ========================================================================= */

/* =========================================================================
   3. BASE
   ========================================================================= */

body {
	background: var(--rvc-ground);
	color: var(--rvc-text);
}

/* No ambient gradient washes. Flat, honest color blocks separated by real
   rules — depth comes from tonal steps and borders, not glow. */
#wrapper, .site { position: relative; }

h1, h2, h3, h4, h5, h6 {
	color: var(--rvc-text-bright);
	text-wrap: balance;
}

a { color: var(--rvc-hydro); }
a:hover { color: var(--rvc-text-bright); }

/* Keyboard focus must stay visible everywhere. */
:focus-visible {
	outline: 2px solid var(--rvc-hydro);
	outline-offset: 2px;
}

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

/* =========================================================================
   4. LAYOUT PRIMITIVES
   ========================================================================= */

.rvc-section {
	padding-block: var(--rvc-section-y);
}

.rvc-section--tight { padding-block: clamp(1.5rem, 3vw, 2.25rem); }

/* Section heading rhythm. Without this the h2 inherits a large default margin
   and compounds the gap the section padding already provides. */
.rvc-section h2 { margin-block: 0 1.5rem; }
.rvc-section .rvc-eyebrow + h2 { margin-top: 0; }

.rvc-section--surface { background: var(--rvc-surface); }

/* Hairline divider that picks up whatever accent the section is set to. */
.rvc-section--ruled { border-top: 1px solid var(--rvc-line); }

/* =========================================================================
   5. SECTION HEADINGS
   ========================================================================= */

.rvc-eyebrow {
	font-family: ui-monospace, "SF Mono", Menlo, monospace;
	font-size: .72rem;
	font-weight: 500;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--rvc-text-mute);
	display: flex;
	align-items: center;
	gap: .7rem;
	margin-bottom: .75rem;
}

.rvc-eyebrow::before {
	content: "";
	width: 2.2rem;
	height: 3px;
	background: var(--rvc-accent);
	flex: none;
}

/* =========================================================================
   6. HERO
   ========================================================================= */

.rvc-hero {
	position: relative;
	background: var(--rvc-ground);
	padding-block: clamp(4rem, 12vw, 8rem);
	overflow: hidden;
}

/* The "subtle geometric grid overlay" from the brand spec, drawn in CSS so
   there is no image to load and nothing to go stale. */
.rvc-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(var(--rvc-line) 1px, transparent 1px),
		linear-gradient(90deg, var(--rvc-line) 1px, transparent 1px);
	background-size: 64px 64px;
	mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
	pointer-events: none;
}

.rvc-hero > * { position: relative; }

.rvc-hero h1 {
	font-size: clamp(2.1rem, 5.5vw, 3.75rem);
	font-weight: 800;
	letter-spacing: -.02em;
	line-height: 1.08;
	max-width: 20ch;
}

.rvc-hero p {
	font-size: clamp(1rem, 1.6vw, 1.15rem);
	color: var(--rvc-text-mute);
	max-width: 56ch;
}

/* =========================================================================
   7. BUTTONS
   Core button blocks, restyled. Accent fills carry near-black text.
   ========================================================================= */

.wp-block-button__link {
	/* Squared, uppercase, letterspaced: reads as job-site signage rather than
	   a product CTA. inline-flex keeps the label optically centred. */
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3.1em;
	border-radius: 0;
	font-weight: 700;
	font-size: .84rem;
	letter-spacing: .09em;
	text-transform: uppercase;
	line-height: 1.15;
	padding: 1.05em 2.2em;
	transition: filter .12s linear, background-color .12s linear, color .12s linear;
}

/* The outline variant draws its edge with an inset shadow rather than a
   border, so it needs no padding compensation and stays the same size as
   the filled buttons sitting next to it. */
.rvc-btn-outline .wp-block-button__link { padding: .95em 2em; }

.wp-block-buttons { gap: .75rem; }

/* Flat state change on hover. No lift, no shadow, no arrow slide. */
.wp-block-button__link:hover {
	filter: brightness(1.12);
}

/* Primary: Request a Crew */
.rvc-btn-blaze .wp-block-button__link {
	background: var(--rvc-blaze);
	color: var(--rvc-on-accent);
}

/* Secondary: Apply for Work */
.rvc-btn-hydro .wp-block-button__link {
	background: var(--rvc-hydro);
	color: var(--rvc-on-accent);
}

/* Success / submit */
.rvc-btn-bio .wp-block-button__link {
	background: var(--rvc-bio);
	color: var(--rvc-on-accent);
}

/* Quiet outline variant for use on dark ground. */
.rvc-btn-outline .wp-block-button__link {
	background: transparent;
	color: var(--rvc-text-bright);
	box-shadow: inset 0 0 0 1px var(--rvc-line-strong);
}

.rvc-btn-outline .wp-block-button__link:hover {
	box-shadow: inset 0 0 0 1px var(--rvc-accent);
	color: var(--rvc-accent);
}

/* =========================================================================
   8. SERVICE CARDS
   One rule set, three colors, driven by the .is-* class on the card.
   ========================================================================= */

.rvc-card {
	background: var(--rvc-surface);
	border: 1px solid var(--rvc-line);
	border-top: 3px solid var(--rvc-accent);
	border-radius: var(--rvc-radius);
	padding: clamp(1.35rem, 2.5vw, 1.85rem);
}

/* Stretch to equal height ONLY when the card is the sole occupant of its
   column, as in the three-up service grid. Cards stacked as siblings in one
   column must size to their content — otherwise each one tries to fill the
   whole column and the layout blows out. */
.wp-block-column > .rvc-card:only-child { height: 100%; }

.rvc-card h3 {
	font-size: 1.15rem;
	margin-block: 0 .5rem;
}

.rvc-card p {
	color: var(--rvc-text-mute);
	font-size: .95rem;
	margin: 0;
}

/* Small uppercase label above a title. Global, not card-scoped: it is used in
   cards, media rows and the audience split, and must take the accent of
   whichever section it sits in. */
.rvc-kicker {
	display: block;
	font-family: ui-monospace, "SF Mono", Menlo, monospace;
	font-size: .68rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--rvc-accent);
	margin: 0 0 .55rem;
}

/* =========================================================================
   9. TRUST BAR
   ========================================================================= */

.rvc-trustbar {
	background: var(--rvc-surface);
	border-block: 1px solid var(--rvc-line);
}

.rvc-trustbar .wp-block-column {
	text-align: center;
	padding-block: .5rem;
}

/* Each column is a heading (the figure) over a paragraph (the label). */
.rvc-trustbar h3 {
	color: var(--rvc-text-bright);
	font-size: clamp(1.35rem, 3vw, 1.75rem);
	font-weight: 800;
	letter-spacing: -.01em;
	line-height: 1.1;
	margin: 0;
}

.rvc-trustbar p {
	color: var(--rvc-text-mute);
	font-size: .82rem;
	letter-spacing: .04em;
	text-transform: uppercase;
	margin: .3rem 0 0;
}

/* =========================================================================
   10. ALERT BANNER  (Page 2, active loss events)
   Solid accent fill, so text goes near-black per section 2.
   ========================================================================= */

.rvc-alert {
	background: var(--rvc-accent);
	color: var(--rvc-on-accent);
	padding-block: clamp(1rem, 2.5vw, 1.5rem);
}

.rvc-alert h2,
.rvc-alert h3,
.rvc-alert p,
.rvc-alert strong { color: var(--rvc-on-accent); }

.rvc-alert p { margin: 0; font-weight: 500; }

.rvc-alert a {
	color: var(--rvc-on-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* =========================================================================
   11. CTA BAND
   ========================================================================= */

.rvc-band {
	background: var(--rvc-surface);
	border: 1px solid var(--rvc-line);
	border-left: 3px solid var(--rvc-accent);
	border-radius: var(--rvc-radius);
	padding: clamp(1.5rem, 4vw, 2.5rem);
}

.rvc-band h2 { margin-top: 0; }
.rvc-band p { color: var(--rvc-text-mute); }

/* =========================================================================
   12. FORMS
   Dark fields per the brand spec (#21262D), high-contrast text, and an
   accent focus ring so the active field is unmistakable on a phone.
   ========================================================================= */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="date"],
select,
textarea {
	background: var(--rvc-raised);
	color: var(--rvc-text-bright);
	border: 1px solid var(--rvc-line-strong);
	border-radius: 0;
	padding: .8em .9em;
	font-size: 1rem;   /* 16px minimum stops iOS zooming on focus */
	width: 100%;
}

input::placeholder,
textarea::placeholder { color: var(--rvc-text-mute); }

input:focus,
select:focus,
textarea:focus {
	outline: none;
	border-color: var(--rvc-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--rvc-accent) 30%, transparent);
}

label {
	display: block;
	color: var(--rvc-text);
	font-weight: 500;
	margin-bottom: .4rem;
}

/* =========================================================================
   13. HEADER / FOOTER
   Kadence renders these; we only recolor them.
   ========================================================================= */

.site-header-wrap,
.site-footer,
.site-bottom-footer-wrap {
	background: var(--rvc-surface);
	border-color: var(--rvc-line);
}

/* Kadence defaults these to dark ink, which vanishes on the black header. */
.site-title,
.site-branding a,
.site-branding .site-title a {
	color: var(--rvc-text-bright);
}

.header-navigation .menu-link,
.site-header-wrap .header-navigation a {
	color: var(--rvc-text);
}

.header-navigation .menu-link:hover,
.site-header-wrap .header-navigation a:hover {
	color: var(--rvc-text-bright);
}

/* Current page gets an accent underline rather than a color-only change,
   so it reads without relying on color alone. */
.header-navigation .current-menu-item > .menu-link {
	color: var(--rvc-text-bright);
	box-shadow: inset 0 -2px 0 var(--rvc-blaze);
}

/* =========================================================================
   13B. EMERGENCY STRIP
   Thin accent bar directly under the hero. Solid fill, so near-black ink.
   ========================================================================= */

.rvc-strip {
	background: var(--rvc-blaze);
	color: var(--rvc-on-accent);
}

.rvc-strip p {
	margin: 0;
	font-weight: 600;
	letter-spacing: .01em;
	text-align: center;
	padding-block: .85rem;
	font-size: .96rem;
}

.rvc-strip a {
	color: var(--rvc-on-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
	font-weight: 700;
}

/* =========================================================================
   13C. AUDIENCE SPLIT
   The two doors into the business: hire a crew, or come work. Deliberately
   asymmetric weighting via the accent rail rather than equal tidy boxes.
   ========================================================================= */

.rvc-split .wp-block-column {
	position: relative;
	background: var(--rvc-surface);
	border: 1px solid var(--rvc-line);
	border-radius: var(--rvc-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.rvc-split figure { margin: 0; }

.rvc-split img {
	display: block;
	width: 100%;
	height: clamp(180px, 22vw, 260px);
	object-fit: cover;
	filter: grayscale(.35) contrast(1.05);
}

.rvc-split .rvc-split-body {
	padding: clamp(1.35rem, 2.5vw, 2rem);
	border-top: 3px solid var(--rvc-accent);
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: .65rem;
}

.rvc-split h3 {
	font-size: clamp(1.25rem, 2.4vw, 1.6rem);
	margin: 0;
}

.rvc-split p { color: var(--rvc-text-mute); margin: 0; }

/* =========================================================================
   13D. MEDIA ROWS
   Alternating image/text bands, one per service line. Beats a row of three
   identical cards for scanning, and gives each service real estate.
   ========================================================================= */

.rvc-media-row {
	background: var(--rvc-surface);
	border: 1px solid var(--rvc-line);
	border-radius: var(--rvc-radius);
	overflow: hidden;
	margin-block: 1rem;
	grid-template-columns: 42% auto;
}

.rvc-media-row.has-media-on-the-right {
	grid-template-columns: auto 42%;
}

.rvc-media-row .wp-block-media-text__media img {
	height: 100%;
	min-height: 260px;
	object-fit: cover;
	filter: grayscale(.3) contrast(1.05);
}

.rvc-media-row .wp-block-media-text__content {
	padding: clamp(1.5rem, 3.5vw, 2.75rem);
	border-left: 3px solid var(--rvc-accent);
}

.rvc-media-row.has-media-on-the-right .wp-block-media-text__content {
	border-left: none;
	border-right: 3px solid var(--rvc-accent);
}

.rvc-media-row h3 {
	font-size: clamp(1.3rem, 2.6vw, 1.75rem);
	margin: .35rem 0 .6rem;
}

.rvc-media-row p { color: var(--rvc-text-mute); }

.rvc-media-row ul {
	list-style: none;
	padding: 0;
	margin: .9rem 0 0;
	display: grid;
	gap: .45rem;
}

.rvc-media-row li {
	position: relative;
	padding-left: 1.4rem;
	color: var(--rvc-text);
	font-size: .95rem;
}

.rvc-media-row li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .55em;
	width: .5rem;
	height: .5rem;
	background: var(--rvc-accent);
}

@media (max-width: 781px) {
	.rvc-media-row,
	.rvc-media-row.has-media-on-the-right { grid-template-columns: 1fr; }
	.rvc-media-row .wp-block-media-text__content,
	.rvc-media-row.has-media-on-the-right .wp-block-media-text__content {
		border-left: none;
		border-right: none;
		border-top: 3px solid var(--rvc-accent);
	}
}

/* =========================================================================
   13E. PROCESS STEPS
   A real sequence, so the numbering carries information rather than decoration.
   ========================================================================= */

.rvc-steps .wp-block-column {
	position: relative;
	padding-top: 2.6rem;
	border-top: 1px solid var(--rvc-line-strong);
	counter-increment: rvc-step;
}

.rvc-steps .wp-block-column::before {
	content: counter(rvc-step, decimal-leading-zero);
	position: absolute;
	top: .9rem;
	left: 0;
	font-family: ui-monospace, "SF Mono", Menlo, monospace;
	font-size: .82rem;
	font-weight: 600;
	letter-spacing: .1em;
	color: var(--rvc-accent);
}

.rvc-steps { counter-reset: rvc-step; }

.rvc-steps h3 { font-size: 1.05rem; margin: 0 0 .4rem; }
.rvc-steps p { color: var(--rvc-text-mute); font-size: .93rem; margin: 0; }

/* Each step takes the next accent, so the three service colors thread
   through the process rather than sitting only on the service cards. */
.rvc-steps .wp-block-column:nth-child(1) { --rvc-accent: var(--rvc-hydro); }
.rvc-steps .wp-block-column:nth-child(2) { --rvc-accent: var(--rvc-blaze); }
.rvc-steps .wp-block-column:nth-child(3) { --rvc-accent: var(--rvc-bio); }
.rvc-steps .wp-block-column:nth-child(4) { --rvc-accent: var(--rvc-text-mute); }

/* =========================================================================
   13F. HERO (COVER VARIANT)
   ========================================================================= */

.rvc-hero.wp-block-cover {
	min-height: clamp(520px, 78vh, 760px);
	padding-block: clamp(3rem, 8vw, 6rem);
	align-items: center;
}

.rvc-hero.wp-block-cover .wp-block-cover__image-background {
	filter: grayscale(.45) contrast(1.1);
}

/* Grid overlay sits above the photo, below the text. */
.rvc-hero.wp-block-cover::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(var(--rvc-line) 1px, transparent 1px),
		linear-gradient(90deg, var(--rvc-line) 1px, transparent 1px);
	background-size: 64px 64px;
	mask-image: radial-gradient(ellipse 90% 70% at 30% 20%, #000 30%, transparent 100%);
	pointer-events: none;
	z-index: 1;
}

.rvc-hero.wp-block-cover .wp-block-cover__inner-container { z-index: 2; }

/* Accent rule above the headline, tying the hero to the tri-color system. */
/* Drawn as a pseudo-element, not a Custom HTML block. A core/html block here
   was reported by the editor as "unexpected or invalid content", and Attempt
   Recovery then rewrote the hero and discarded everything inside it.
   Decorative furniture should not be editable content anyway: as CSS it
   cannot be selected, edited or deleted by mistake. */
.rvc-hero > h1:first-of-type::before {
	content: "";
	display: block;
	width: 11rem;
	height: 4px;
	margin-bottom: 1.5rem;
	background: linear-gradient(90deg,
		var(--rvc-hydro) 0 33.333%,
		var(--rvc-blaze) 33.333% 66.666%,
		var(--rvc-bio) 66.666% 100%);
}

/* =========================================================================
   13G. INTERACTION
   Everything clickable must look clickable and respond. Motion stays small
   and fast; anything showier reads as decoration rather than feedback.
   ========================================================================= */

/* Panels do not float or lift. The border state changes and that is all —
   a shadowed card rising off the page is a software affordance, not a
   physical one. */
.rvc-card,
.rvc-split .wp-block-column,
.rvc-media-row {
	transition: border-color .14s linear, background-color .14s linear;
}

.rvc-card:hover,
.rvc-split .wp-block-column:hover,
.rvc-media-row:hover {
	border-color: var(--rvc-accent);
	background: var(--rvc-surface-2);
}

/* Photography lifts out of grayscale on hover, which makes the image feel
   live without moving anything. */
.rvc-split img,
.rvc-media-row .wp-block-media-text__media img {
	transition: filter .3s ease, transform .4s ease;
}

.rvc-split .wp-block-column:hover img,
.rvc-media-row:hover .wp-block-media-text__media img {
	filter: grayscale(0) contrast(1.05);
}

.wp-block-button__link:active { transform: translateY(0); }

/* Anchor targets clear the sticky header. */
html { scroll-behavior: smooth; }
:target { scroll-margin-top: 6rem; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.rvc-card:hover,
	.rvc-split .wp-block-column:hover,
	.rvc-media-row:hover { transform: none; }
}

/* =========================================================================
   13H. STICKY HEADER
   A staffing site lives on its "request a crew" action. Keep it reachable
   at any scroll depth rather than making people go back to the top.
   ========================================================================= */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
}

/* Solid, opaque, and darker than the page — the way a signage band sits above
   a wall. No translucency and no backdrop blur: frosted glass is a software
   convention and it muddies the black the whole brand is built on. */
.site-header-wrap {
	background: var(--rvc-header);
	border-bottom: 3px solid var(--rvc-blaze);
	position: relative;
}

/* =========================================================================
   13I. PROOF BAND
   Credibility block: a quote plus hard numbers over a crew photograph.
   ========================================================================= */

.rvc-proof.wp-block-cover {
	min-height: clamp(340px, 42vw, 460px);
	overflow: hidden;
}

.rvc-proof .wp-block-cover__image-background {
	filter: grayscale(.6) contrast(1.1);
}

.rvc-proof blockquote {
	border: none;
	margin: 0;
	padding: 0;
	max-width: 46ch;
}

.rvc-proof blockquote p {
	font-family: inherit;
	font-size: clamp(1.15rem, 2.4vw, 1.6rem);
	font-weight: 600;
	line-height: 1.35;
	color: var(--rvc-text-bright);
	text-wrap: balance;
}

.rvc-proof cite {
	display: block;
	margin-top: .9rem;
	font-style: normal;
	font-family: ui-monospace, "SF Mono", Menlo, monospace;
	font-size: .78rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--rvc-text-mute);
}

.rvc-proof-stats {
	margin-top: 2rem;
	border-top: 1px solid var(--rvc-line-strong);
	padding-top: 1.25rem;
}

.rvc-proof-stats h3 {
	font-size: clamp(1.4rem, 3vw, 2rem);
	margin: 0;
	color: var(--rvc-text-bright);
}

.rvc-proof-stats p {
	margin: .2rem 0 0;
	font-size: .8rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--rvc-text-mute);
}

/* =========================================================================
   13J. FOOTER
   ========================================================================= */

/* Footer mirrors the header: same signage band, same solid black, rule on
   top instead of bottom so the page is bracketed top and bottom. */
.site-footer,
.site-footer-wrap,
.site-bottom-footer-wrap {
	background: var(--rvc-header);
	color: var(--rvc-text-mute);
}

.site-footer {
	border-top: 3px solid var(--rvc-blaze);
}

.site-footer h2,
.site-footer h3,
.site-footer .widget-title {
	font-size: .72rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--rvc-text);
	font-weight: 700;
	padding-bottom: .6rem;
	border-bottom: 1px solid var(--rvc-line-strong);
	margin-bottom: .9rem;
}

.site-footer a { color: var(--rvc-text-mute); text-decoration: none; }
.site-footer a:hover { color: var(--rvc-text-bright); }

.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }

.site-bottom-footer-wrap {
	border-top: 1px solid var(--rvc-line);
	font-size: .8rem;
	letter-spacing: .03em;
}

/* =========================================================================
   13K. MOTION
   Two effects only: an entrance sequence in the hero, and a reveal as
   sections come into view. Both are short, both travel a small distance,
   and both are fully disabled under prefers-reduced-motion. Content is
   visible by default and only hidden once JS confirms it can animate it,
   so nothing disappears if scripts fail.
   ========================================================================= */

/* JS adds .rvc-motion to <html> when animation is safe to run. */
.rvc-motion .rvc-reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity .6s cubic-bezier(.22, .61, .36, 1),
	            transform .6s cubic-bezier(.22, .61, .36, 1);
}

.rvc-motion .rvc-reveal.is-in {
	opacity: 1;
	transform: none;
}

/* Children stagger so a section resolves in sequence rather than as one slab. */
.rvc-motion .rvc-reveal.is-in > * { animation: rvc-rise .55s cubic-bezier(.22,.61,.36,1) backwards; }
.rvc-motion .rvc-reveal.is-in > *:nth-child(1) { animation-delay: .05s; }
.rvc-motion .rvc-reveal.is-in > *:nth-child(2) { animation-delay: .12s; }
.rvc-motion .rvc-reveal.is-in > *:nth-child(3) { animation-delay: .19s; }
.rvc-motion .rvc-reveal.is-in > *:nth-child(4) { animation-delay: .26s; }

@keyframes rvc-rise {
	from { opacity: 0; transform: translateY(12px); }
	to   { opacity: 1; transform: none; }
}

/* Hero entrance, on load rather than on scroll. */
.rvc-motion .rvc-hero > h1:first-of-type::before,
.rvc-motion .rvc-hero h1,
.rvc-motion .rvc-hero p,
.rvc-motion .rvc-hero .wp-block-buttons {
	animation: rvc-rise .7s cubic-bezier(.22,.61,.36,1) backwards;
}

.rvc-motion .rvc-hero > h1:first-of-type::before { animation: rvc-draw .8s cubic-bezier(.22,.61,.36,1) backwards; }
.rvc-motion .rvc-hero h1                { animation-delay: .18s; }
.rvc-motion .rvc-hero p                 { animation-delay: .30s; }
.rvc-motion .rvc-hero .wp-block-buttons { animation-delay: .42s; }

@keyframes rvc-draw {
	from { width: 0; opacity: 0; }
	to   { width: 11rem; opacity: 1; }
}

/* --- Emergency strip: dispatch beacon -----------------------------------
   Not a generic shine sweep. This is the double-flash-then-dark rhythm of a
   strobe on an emergency vehicle, which is what the strip is announcing. */
.rvc-strip { position: relative; overflow: hidden; }

.rvc-motion .rvc-strip::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, .5);
	opacity: 0;
	animation: rvc-beacon 4.5s ease-out 1.5s infinite;
	pointer-events: none;
}

@keyframes rvc-beacon {
	0%           { opacity: 0; }
	3%           { opacity: .30; }
	6%           { opacity: .04; }
	9%           { opacity: .26; }
	13%          { opacity: 0; }
	100%         { opacity: 0; }
}

/* --- Hero: blueprint plot-in --------------------------------------------
   The grid overlay draws left to right, the way a plotter lays down a site
   plan. Ties the hero's geometry to the trade rather than decorating it. */
.rvc-motion .rvc-hero.wp-block-cover::after {
	animation: rvc-plot 1.6s cubic-bezier(.33, 1, .68, 1) .25s backwards;
}

@keyframes rvc-plot {
	from { clip-path: inset(0 100% 0 0); opacity: 0; }
	40%  { opacity: 1; }
	to   { clip-path: inset(0 0 0 0); opacity: 1; }
}

/* --- Dispatch process: the job progressing ------------------------------
   A single rule draws across the four steps as the section enters view,
   running hydro to blaze to bio. It is the job moving from call to crew,
   drawn literally. */
.rvc-steps { position: relative; }

.rvc-steps::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg,
		var(--rvc-hydro) 0%,
		var(--rvc-blaze) 38%,
		var(--rvc-bio) 72%,
		var(--rvc-text-mute) 100%);
	transform: scaleX(0);
	transform-origin: left center;
	z-index: 1;
}

.rvc-motion .rvc-steps::before {
	transition: transform 1.4s cubic-bezier(.33, 1, .68, 1) .15s;
}

.rvc-motion .rvc-steps.is-in::before { transform: scaleX(1); }

/* Without JS the rule is simply drawn, never animated. */
.rvc-steps::before { transform: scaleX(1); }
.rvc-motion .rvc-steps::before { transform: scaleX(0); }
.rvc-motion .rvc-steps.is-in::before { transform: scaleX(1); }

/* The step numbers arrive just behind the line as it passes them. */
.rvc-motion .rvc-steps.is-in .wp-block-column::before {
	animation: rvc-rise .5s ease-out backwards;
}
.rvc-motion .rvc-steps.is-in .wp-block-column:nth-child(1)::before { animation-delay: .25s; }
.rvc-motion .rvc-steps.is-in .wp-block-column:nth-child(2)::before { animation-delay: .55s; }
.rvc-motion .rvc-steps.is-in .wp-block-column:nth-child(3)::before { animation-delay: .85s; }
.rvc-motion .rvc-steps.is-in .wp-block-column:nth-child(4)::before { animation-delay: 1.15s; }

/* --- Trust bar: credentials stamp in ------------------------------------
   Slight overshoot from oversized down to true size, like a stamp being
   pressed onto a compliance document. */
.rvc-motion .rvc-trustbar .wp-block-columns.is-in .wp-block-column {
	animation: rvc-stamp .45s cubic-bezier(.34, 1.3, .64, 1) backwards;
}
.rvc-motion .rvc-trustbar .wp-block-columns.is-in .wp-block-column:nth-child(1) { animation-delay: .05s; }
.rvc-motion .rvc-trustbar .wp-block-columns.is-in .wp-block-column:nth-child(2) { animation-delay: .16s; }
.rvc-motion .rvc-trustbar .wp-block-columns.is-in .wp-block-column:nth-child(3) { animation-delay: .27s; }
.rvc-motion .rvc-trustbar .wp-block-columns.is-in .wp-block-column:nth-child(4) { animation-delay: .38s; }

@keyframes rvc-stamp {
	from { opacity: 0; transform: scale(1.16); }
	to   { opacity: 1; transform: none; }
}

/* --- Service rows: taping off the work zone -----------------------------
   The accent rail on each service row wipes down as the row arrives, the
   way a work area gets taped off before the crew starts. */
.rvc-media-row .wp-block-media-text__content { position: relative; }

.rvc-media-row .wp-block-media-text__content::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: -3px;
	width: 3px;
	background: var(--rvc-accent);
	transform-origin: top center;
}

.rvc-media-row.has-media-on-the-right .wp-block-media-text__content::before {
	left: auto;
	right: -3px;
}

.rvc-motion .rvc-media-row .wp-block-media-text__content::before {
	transform: scaleY(0);
	transition: transform .9s cubic-bezier(.33, 1, .68, 1) .2s;
}

.rvc-motion .rvc-media-row.is-in .wp-block-media-text__content::before {
	transform: scaleY(1);
}

/* No arrow glyphs on buttons: the sliding-arrow CTA is a software
   convention and reads as generic. The label carries the action. */

@media (prefers-reduced-motion: reduce) {
	.rvc-motion .rvc-reveal,
	.rvc-motion .rvc-reveal.is-in > *,
	.rvc-motion .rvc-hero > h1:first-of-type::before,
	.rvc-motion .rvc-hero h1,
	.rvc-motion .rvc-hero p,
	.rvc-motion .rvc-hero .wp-block-buttons {
		opacity: 1 !important;
		transform: none !important;
		animation: none !important;
		width: auto;
	}
	.rvc-motion .rvc-strip::after { animation: none; display: none; }

	/* Trade animations resolve to their finished state, never to nothing. */
	.rvc-motion .rvc-hero.wp-block-cover::after { animation: none; clip-path: none; }
	.rvc-motion .rvc-steps::before,
	.rvc-motion .rvc-steps.is-in::before { transform: scaleX(1); transition: none; }
	.rvc-motion .rvc-media-row .wp-block-media-text__content::before,
	.rvc-motion .rvc-media-row.is-in .wp-block-media-text__content::before {
		transform: scaleY(1);
		transition: none;
	}
	.rvc-motion .rvc-trustbar .wp-block-columns.is-in .wp-block-column { animation: none; }
}

/* =========================================================================
   14. KADENCE INTEGRATION
   Kadence paints its own light surfaces on the content wrappers and lets
   .alignfull run edge to edge with no inner gutter. Both are corrected here,
   in CSS only — no template overrides.
   ========================================================================= */

/* The dark ground must own the whole page, not just <body>. */
body,
.site,
#wrapper,
#inner-wrap,
.content-area,
.content-container,
#main.site-main,
.content-wrap,
.entry.content-bg,
.entry-content-wrap,
.entry-content {
	background: transparent;
}

body { background: var(--rvc-ground); }

/* Sections carry their own vertical rhythm, so drop Kadence's wrapper margins
   and padding rather than fighting them section by section. */
.content-area {
	margin-block: 0;
}

.entry-content-wrap {
	padding: 0;
}

.entry.single-entry { box-shadow: none; }

/* Full-bleed sections: background spans the viewport, content stays readable.
   Constrained directly on the children rather than via a layout inner
   container. The core "constrained" layout attribute makes save() emit an
   extra wrapper div; hand-authored markup that omits it is reported as
   "unexpected or invalid content" in the editor, and Attempt Recovery then
   rewrites the block and destroys its contents. So the layout attribute is
   deliberately absent from every block here, and width is handled below. */
.rvc-hero.rvc-hero,
.rvc-section.rvc-section,
.rvc-trustbar.rvc-trustbar,
.rvc-alert.rvc-alert,
.rvc-strip.rvc-strip {
	/* Class doubled purely to raise specificity. WordPress emits inline
	   block-support styles after this stylesheet, and a single class was
	   losing to them, which stripped the horizontal gutter on mobile. */
	padding-inline: var(--rvc-gutter);
}

.rvc-hero > *,
.rvc-section > *,
.rvc-trustbar > *,
.rvc-alert > *,
.rvc-strip > * {
	max-width: var(--rvc-maxw);
	margin-inline: auto;
}

/* Cover positions its own background layers absolutely; those must not be
   caught by the child constraint above or the image stops filling the block. */
.rvc-hero > .wp-block-cover__background,
.rvc-hero > .wp-block-cover__image-background,
.rvc-proof > .wp-block-cover__background,
.rvc-proof > .wp-block-cover__image-background {
	max-width: none;
	margin-inline: 0;
}

/* Give stacked columns real breathing room on phones. */
@media (max-width: 781px) {
	.wp-block-columns { gap: 1rem; }
	.rvc-trustbar .wp-block-column { padding-block: .75rem; }
}

/* =========================================================================
   15. UTILITIES
   ========================================================================= */

.rvc-accent-text { color: var(--rvc-accent); }
.rvc-mute { color: var(--rvc-text-mute); }

.rvc-stack-sm > * + * { margin-top: .75rem; }
.rvc-stack-md > * + * { margin-top: 1.5rem; }

/* Wide content never forces the page to scroll sideways. */
.rvc-scroll-x {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

/* =========================================================================
   13L. HERO BACKGROUND LAYER
   The heroes were originally core/cover blocks. Cover's save() output is
   intricate (overlay span, dim classes, inner container) and hand-authored
   markup kept failing the editor's validator, which then offered "Attempt
   recovery" and destroyed the hero's contents. They are now a plain Group
   containing a normal Image block promoted to a background layer in CSS.
   Group and Image are the two simplest core blocks and both already
   validate cleanly here. The photo stays fully swappable: select the image,
   press Replace.
   ========================================================================= */

.rvc-hero,
.rvc-proof {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.rvc-hero { min-height: clamp(520px, 78vh, 760px); }
.rvc-proof { min-height: clamp(340px, 42vw, 460px); }

/* The image block, promoted to a full-bleed backdrop. */
/* Descendant, not child: WordPress injects a wp-block-group__inner-container
   wrapper at render time that is absent from the saved markup, so the image
   sits one level deeper than the saved structure suggests. */
.rvc-hero .rvc-bg,
.rvc-proof .rvc-bg {
	position: absolute;
	inset: 0;
	margin: 0;
	max-width: none;
	z-index: -2;
	pointer-events: none;
}

.rvc-hero .rvc-bg img,
.rvc-proof .rvc-bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	filter: grayscale(.45) contrast(1.1);
}

.rvc-proof .rvc-bg img { filter: grayscale(.6) contrast(1.1); }

/* Darkening overlay, replacing Cover's dim span. */
.rvc-hero::after,
.rvc-proof::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		linear-gradient(90deg, rgba(13,17,23,.92) 0%, rgba(13,17,23,.72) 45%, rgba(13,17,23,.45) 100%),
		linear-gradient(var(--rvc-line) 1px, transparent 1px),
		linear-gradient(90deg, var(--rvc-line) 1px, transparent 1px);
	background-size: auto, 64px 64px, 64px 64px;
}

.rvc-proof::after {
	background: linear-gradient(90deg, rgba(13,17,23,.94) 0%, rgba(13,17,23,.78) 60%, rgba(13,17,23,.55) 100%);
}

/* The old cover-specific grid overlay is no longer applicable. */
.rvc-hero.wp-block-cover::after { content: none; }

/* The injected inner container carries the content. It must NOT be
   positioned: doing so makes it the containing block for the absolutely
   positioned background image, which then clips to the content width
   instead of bleeding to the full viewport. Static positioning plus the
   isolation/z-index stack on .rvc-hero keeps content above the photo. */
.rvc-hero > .wp-block-group__inner-container,
.rvc-proof > .wp-block-group__inner-container {
	width: 100%;
	max-width: var(--rvc-maxw);
	margin-inline: auto;
}

/* Belt and braces on the hero backdrop.
   core/image ships `position:relative` on .wp-block-image, and the injected
   inner container can pick up positioning from the theme. Either one becomes
   the containing block for the absolutely positioned backdrop, which then
   clips it to the content column instead of the full section. Pin both. */
.rvc-hero > .wp-block-group__inner-container,
.rvc-proof > .wp-block-group__inner-container {
	position: static !important;
}

.rvc-hero .rvc-bg,
.rvc-proof .rvc-bg {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	display: block !important;
	z-index: -2;
}

/* =========================================================================
   13M. HEADER FURNITURE
   The header row is full-width, so it needs its own inner gutter or the
   logo and button sit flush against the screen edges.
   ========================================================================= */

.site-header-row-layout-fullwidth > .site-header-row-container-inner,
.site-header-row-layout-fullwidth .site-header-row {
	padding-inline: clamp(1.25rem, 4vw, 3rem);
}

/* Kadence renders its own header button (.header-button), which does not
   pick up the core button styling. Match it to the site's buttons so the
   two never drift apart visually. */
.header-button.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 0;
	font-weight: 700;
	font-size: .78rem;
	letter-spacing: .09em;
	text-transform: uppercase;
	padding: .95em 1.7em;
	background: var(--rvc-blaze);
	color: var(--rvc-on-accent);
	border: none;
	transition: filter .12s linear;
}

.header-button.button:hover,
.header-button.button:focus {
	background: var(--rvc-blaze);
	color: var(--rvc-on-accent);
	filter: brightness(1.12);
}

/* Nav sits closer to the button and gets a little more breathing room. */
.header-navigation .header-menu-container > ul > li > a {
	padding-inline: .85rem;
}

.header-navigation .menu-item + .menu-item { margin-left: 0; }

/* Site title scaled to sit beside the nav. Only shows if the custom logo is
   ever removed; normally the logo image replaces it. */
.site-branding .site-title {
	font-size: clamp(1.15rem, 2vw, 1.45rem);
	letter-spacing: -.01em;
}

/* --- Top utility bar ---------------------------------------------------- */
.site-top-header-wrap {
	background: #12181F;
	border-bottom: 1px solid var(--rvc-line);
}

.rvc-top {
	display: inline-flex;
	align-items: center;
	gap: .7rem;
	font-family: ui-monospace, "SF Mono", Menlo, monospace;
	font-size: .74rem;
	letter-spacing: .06em;
	color: var(--rvc-text-mute);
}

.rvc-top strong {
	color: var(--rvc-blaze);
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.rvc-top a { color: var(--rvc-text); text-decoration: none; }
.rvc-top a:hover { color: var(--rvc-text-bright); }

.rvc-top .rvc-sep {
	width: 1px;
	height: .85rem;
	background: var(--rvc-line-strong);
}

/* Utility bar is noise on a phone; the emergency strip already carries the
   number there. */
@media (max-width: 1024px) { .site-top-header-wrap { display: none; } }

/* --- Mobile header ------------------------------------------------------
   The hamburger renders in a dark ink by default, which is invisible on the
   black header. Force it and its bars to the light text colour. */
.mobile-toggle-open-container .menu-toggle-open,
.mobile-toggle-open-container .menu-toggle-open .menu-toggle-icon,
.drawer-toggle .kadence-svg-iconset,
.drawer-toggle svg {
	color: var(--rvc-text-bright);
	fill: currentColor;
}

.menu-toggle-open .kadence-menu-toggle-open-container .bar,
.menu-toggle-open .toggle-bar,
.menu-toggle-open span {
	background-color: var(--rvc-text-bright);
}

/* Off-canvas drawer inherits the brand ground rather than white. */
.popup-drawer .drawer-inner,
.popup-drawer-layout-sidepanel .drawer-inner,
#mobile-drawer .drawer-inner {
	background: var(--rvc-header);
	color: var(--rvc-text);
}

#mobile-drawer .drawer-inner a,
#mobile-drawer .mobile-navigation a { color: var(--rvc-text); }
#mobile-drawer .drawer-inner a:hover { color: var(--rvc-text-bright); }
#mobile-drawer .drawer-header .drawer-toggle,
#mobile-drawer .drawer-toggle svg { color: var(--rvc-text-bright); }

/* Mobile: keep the site title and toggle off the screen edges. */
@media (max-width: 1024px) {
	.site-mobile-header-wrap .site-header-row-container-inner,
	.site-main-header-wrap .site-header-row-container-inner {
		padding-inline: 1.15rem;
	}
	.rvc-hero h1 { font-size: clamp(1.85rem, 8vw, 2.5rem); }
}

/* =========================================================================
   13N. FOOTER
   Four columns of real navigation and credentials above a copyright bar,
   on the same signage-black band as the header so the page is bracketed.
   ========================================================================= */

.site-middle-footer-wrap {
	background: var(--rvc-header);
	padding-block: clamp(2.25rem, 5vw, 3.5rem);
}

.site-middle-footer-inner-wrap {
	gap: clamp(1.5rem, 4vw, 3rem);
}

/* Column headings: same mono label treatment as the section eyebrows. */
.site-footer .widget-title,
.site-footer .widgettitle,
.site-footer h2.widget-title {
	font-family: ui-monospace, "SF Mono", Menlo, monospace;
	font-size: .68rem;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--rvc-text-mute);
	margin: 0 0 1rem;
	padding-bottom: .6rem;
	border-bottom: 1px solid var(--rvc-line-strong);
}

.site-footer .widget { margin-bottom: 0; }

.rvc-ft-lede {
	color: var(--rvc-text-mute);
	font-size: .9rem;
	margin: 0 0 1.1rem;
	max-width: 34ch;
}

/* Contact rows: label left, value right, so they scan as a data block. */
.rvc-ft-contact {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: .55rem;
}

.rvc-ft-contact li {
	display: grid;
	grid-template-columns: 5.5rem 1fr;
	gap: .5rem;
	align-items: baseline;
	font-size: .88rem;
	color: var(--rvc-text);
}

.rvc-ft-contact span {
	font-family: ui-monospace, "SF Mono", Menlo, monospace;
	font-size: .66rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--rvc-text-mute);
}

.rvc-ft-contact a { color: var(--rvc-text); text-decoration: none; }
.rvc-ft-contact a:hover { color: var(--rvc-blaze); }

/* Link columns. */
.rvc-ft-links,
.site-footer .widget_nav_menu ul.menu,
.site-footer .widget_nav_menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: .6rem;
}

.site-footer .widget_nav_menu li { margin: 0; }

.rvc-ft-links a,
.site-footer .widget_nav_menu a {
	color: var(--rvc-text-mute);
	text-decoration: none;
	font-size: .9rem;
	transition: color .12s linear;
}

.rvc-ft-links a:hover,
.site-footer .widget_nav_menu a:hover { color: var(--rvc-text-bright); }

/* Credentials, each carrying one of the three service accents so the
   colour system closes the page the same way it opens it. */
.rvc-ft-creds {
	list-style: none;
	margin: 0 0 1.25rem;
	padding: 0;
	display: grid;
	gap: .55rem;
}

.rvc-ft-creds li {
	position: relative;
	padding-left: 1.1rem;
	font-size: .88rem;
	color: var(--rvc-text);
}

.rvc-ft-creds li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .5em;
	width: .45rem;
	height: .45rem;
	background: var(--rvc-accent);
}

.rvc-ft-area {
	margin: 0;
	font-size: .85rem;
	color: var(--rvc-text-mute);
	padding-top: 1rem;
	border-top: 1px solid var(--rvc-line);
}

.rvc-ft-area strong {
	display: block;
	font-family: ui-monospace, "SF Mono", Menlo, monospace;
	font-size: .66rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--rvc-text-mute);
	margin-bottom: .3rem;
}

/* Copyright bar. */
.site-bottom-footer-wrap {
	background: var(--rvc-header);
	border-top: 1px solid var(--rvc-line);
	font-size: .8rem;
	letter-spacing: .03em;
	color: var(--rvc-text-mute);
}

.site-bottom-footer-wrap .footer-html-inner { color: var(--rvc-text-mute); }

@media (max-width: 767px) {
	.rvc-ft-contact li { grid-template-columns: 1fr; gap: .1rem; }
}

/* =========================================================================
   13O. LINKED SERVICE ROWS
   Each service row on the home page targets its matching section on the
   restoration page. The whole row is the hit area via a stretched link,
   which keeps a single real anchor in the markup: better for screen
   readers and for SEO than wrapping the card in a div with a click
   handler. Safe here because these rows contain no other links.
   ========================================================================= */

.rvc-media-row.is-linked { position: relative; }

.rvc-media-row .rvc-rowlink,
.rvc-rowlink {
	/* Scoped to .rvc-media-row as well: Kadence emits inline paragraph
	   margins after this stylesheet loads, so a bare .rvc-rowlink loses. */
	margin-top: 1.4rem;
	margin-bottom: 0;
	padding-top: 1rem;
	border-top: 1px solid var(--rvc-line);
	font-family: ui-monospace, "SF Mono", Menlo, monospace;
	font-size: .72rem;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.rvc-rowlink a {
	color: var(--rvc-accent);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: .5em;
	font-weight: 600;
}

/* The arrow is decorative, so it is generated rather than typed into the
   content where an editor would have to maintain it. */
.rvc-rowlink a::after {
	content: "\2192";
	transition: transform .18s ease;
}

/* Stretch the anchor across the whole row. */
.rvc-media-row.is-linked .rvc-rowlink a::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
}

.rvc-media-row.is-linked:hover .rvc-rowlink a::after { transform: translateX(4px); }
.rvc-media-row.is-linked:hover .rvc-rowlink a { color: var(--rvc-text-bright); }
.rvc-media-row.is-linked:hover { cursor: pointer; }

/* Keyboard focus must outline the whole row, not just the text. */
.rvc-media-row.is-linked:focus-within {
	outline: 2px solid var(--rvc-accent);
	outline-offset: 2px;
}

/* Anchored sections on the restoration page must clear the sticky header. */
#water, #fire, #mold { scroll-margin-top: 7rem; }

/* =========================================================================
   13P. MOBILE
   Verified in a real 390px viewport (an iframe harness - headless Chrome's
   --window-size does not create a mobile CSS viewport, so earlier mobile
   screenshots were desktop layout squeezed into a narrow canvas).
   ========================================================================= */

@media (max-width: 767px) {

	/* --- Type: stop the headline running off the edge --- */
	.rvc-hero h1 {
		font-size: clamp(1.75rem, 8.5vw, 2.35rem);
		line-height: 1.12;
		max-width: none;
		hyphens: none;
	}

	.rvc-hero p { font-size: 1rem; max-width: none; }
	.rvc-section h2 { font-size: clamp(1.35rem, 6vw, 1.7rem); }

	/* --- Buttons: full width, stacked, never overflowing --- */
	.rvc-hero .wp-block-buttons,
	.rvc-band .wp-block-buttons,
	.rvc-split .wp-block-buttons {
		flex-direction: column;
		align-items: stretch;
		width: 100%;
		gap: .6rem;
	}

	.rvc-hero .wp-block-button,
	.rvc-band .wp-block-button,
	.rvc-split .wp-block-button { width: 100%; }

	.wp-block-button__link {
		width: 100%;
		padding-inline: 1.25em;
		font-size: .8rem;
		letter-spacing: .07em;
	}

	/* --- Hero: shorter, so the content below is discoverable ---
	   Fixed px rather than vh: mobile browsers resize the viewport as the
	   URL bar hides and shows, and a vh-based hero visibly jumps as you
	   scroll. */
	.rvc-hero {
		min-height: 500px;
		padding-block: clamp(2.5rem, 10vw, 3.5rem);
	}

	/* --- Trust bar: 2x2 rather than four full-width rows ---
	   Grid rather than flex: Kadence switches columns to
	   flex-direction:column on mobile, which makes flex-basis inert. */
	.rvc-trustbar .wp-block-columns {
		display: grid !important;
		grid-template-columns: 1fr 1fr;
		gap: 1.5rem 1rem;
	}
	.rvc-trustbar .wp-block-column {
		flex-basis: auto !important;
		margin: 0 !important;
	}

	/* --- Dispatch steps: single column, keep the numbering legible ---
	   position:relative must be restated here. Kadence resets columns to
	   static at this breakpoint, which made all four absolutely-positioned
	   step numbers anchor to the parent and stack on top of each other, so
	   only one appeared. */
	.rvc-steps .wp-block-column {
		position: relative;
		padding-top: 2.2rem;
		border-top: 1px solid var(--rvc-line);
	}

	.rvc-steps .wp-block-column::before { top: .7rem; }

	/* --- Emergency strip: allow the number to wrap onto its own line --- */
	.rvc-strip p { font-size: .85rem; line-height: 1.5; }

	/* --- Proof band --- */
	.rvc-proof-stats .wp-block-column + .wp-block-column { margin-top: 1rem; }
}

/* =========================================================================
   13Q. MOBILE MENU
   Kadence renders the toggle as a bare icon inheriting a mid-grey, which on
   a black header reads as an unstyled white box. Make it a real, obviously
   tappable control at the 44px minimum touch target.
   ========================================================================= */

@media (max-width: 1024px) {

	#mobile-header .site-header-row-container-inner,
	#mobile-header .site-container {
		padding-inline: 1.15rem;
		max-width: 100%;
	}

	#mobile-header .menu-toggle-open,
	#mobile-header .menu-toggle-open:focus,
	#mobile-header .menu-toggle-open:hover {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 46px;
		min-height: 46px;
		padding: 0;
		border: none;
		border-radius: 0;
		background: var(--rvc-blaze);
		color: var(--rvc-on-accent);
		box-shadow: none;
	}

	#mobile-header .menu-toggle-open .menu-toggle-icon,
	#mobile-header .menu-toggle-open .kadence-svg-iconset,
	#mobile-header .menu-toggle-open svg {
		color: var(--rvc-on-accent);
		fill: currentColor;
		width: 24px;
		height: 24px;
	}

	/* Visible keyboard focus on the primary mobile control. */
	#mobile-header .menu-toggle-open:focus-visible {
		outline: 3px solid var(--rvc-hydro);
		outline-offset: 3px;
	}

	/* --- The drawer itself --- */
	#mobile-drawer .drawer-inner,
	.popup-drawer .drawer-inner {
		background: var(--rvc-header);
		color: var(--rvc-text);
	}

	#mobile-drawer .drawer-header { padding: 1rem 1.15rem; }

	#mobile-drawer .drawer-toggle,
	#mobile-drawer .drawer-toggle svg {
		color: var(--rvc-text-bright);
		fill: currentColor;
	}

	/* Menu items sized as real tap targets, separated by hairlines. */
	#mobile-drawer .mobile-navigation ul li a,
	#mobile-drawer .drawer-inner .menu-item a {
		display: block;
		padding: .95rem 1.15rem;
		font-size: 1rem;
		font-weight: 600;
		color: var(--rvc-text);
		border-bottom: 1px solid var(--rvc-line);
		text-decoration: none;
	}

	#mobile-drawer .mobile-navigation ul li a:hover,
	#mobile-drawer .mobile-navigation ul li.current-menu-item > a {
		color: var(--rvc-text-bright);
		background: var(--rvc-surface);
		box-shadow: inset 3px 0 0 var(--rvc-blaze);
	}
}

/* =========================================================================
   13R. TRUST BAR + BUTTON SIZING (refinements)
   ========================================================================= */

/* Columns stretch to the row height by default, which left the figures
   sitting in the top third of the band with dead space beneath. Centre
   them on both axes so each cell reads as a balanced unit. */
.rvc-trustbar .wp-block-columns {
	align-items: center;
	/* core/columns ships a bottom margin that pushed the figures into the
	   top third of the band and left dead space underneath. */
	margin-block: 0;
}

.rvc-trustbar .wp-block-column {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
}

/* Equal-width CTA buttons.
   min-width alone only helped short labels: "See Restoration Services" is
   far longer than "Request a Crew", so the pair still mismatched. An
   inline-grid with equal auto-columns sizes BOTH to the wider label while
   the group as a whole still shrinks to its content. */
.rvc-hero .wp-block-buttons,
.rvc-band .wp-block-buttons {
	display: inline-grid;
	grid-auto-flow: column;
	grid-auto-columns: 1fr;
	gap: .75rem;
	width: auto;
}

.rvc-hero .wp-block-button,
.rvc-band .wp-block-button { width: 100%; }

.rvc-hero .wp-block-button__link,
.rvc-band .wp-block-button__link,
.rvc-split .wp-block-button__link {
	width: 100%;
	min-width: 11rem;
}

@media (max-width: 767px) {
	/* Already full-width when stacked; the min-width would force overflow
	   on the narrowest phones. */
	.rvc-hero .wp-block-button__link,
	.rvc-band .wp-block-button__link,
	.rvc-split .wp-block-button__link {
		min-width: 0;
	}
}

/* =========================================================================
   13S. SECTION RHYTHM
   core/columns ships :where(.wp-block-columns){margin-bottom:1.75em}. That
   is a zero-specificity rule, so it applies wherever we have not overridden
   it, and it silently adds ~35px to the bottom of any section whose last
   element is a columns block. The result reads as a section with more space
   underneath its content than above it. Neutralise it for the last child of
   every section rather than patching one block at a time.
   ========================================================================= */

.rvc-section > *  > :last-child,
.rvc-trustbar > * > :last-child,
.rvc-hero > *     > :last-child {
	margin-bottom: 0;
}

/* Same for the columns blocks used inside sections. */
.rvc-steps,
.rvc-proof-stats,
.rvc-trustbar .wp-block-columns {
	margin-block-end: 0;
}

/* =========================================================================
   13T. PRIMARY CTA HOVER
   The filled blaze button previously only brightened slightly on hover,
   which is easy to miss. It now inverts to the page ground with a blaze
   edge and blaze label: an unmistakable state change that stays inside
   the brand rather than introducing a fourth colour. The border is drawn
   with an inset shadow so nothing shifts by a pixel on hover.
   ========================================================================= */

.rvc-btn-blaze .wp-block-button__link,
.header-button.button {
	box-shadow: inset 0 0 0 2px var(--rvc-blaze);
	transition: background-color .14s linear, color .14s linear, box-shadow .14s linear;
}

.rvc-btn-blaze .wp-block-button__link:hover,
.rvc-btn-blaze .wp-block-button__link:focus-visible,
.header-button.button:hover,
.header-button.button:focus-visible {
	background: var(--rvc-ground);
	color: var(--rvc-blaze);
	filter: none;
	box-shadow: inset 0 0 0 2px var(--rvc-blaze);
}

/* Same treatment for the other two accents so the system stays consistent. */
.rvc-btn-hydro .wp-block-button__link { box-shadow: inset 0 0 0 2px var(--rvc-hydro); }
.rvc-btn-hydro .wp-block-button__link:hover,
.rvc-btn-hydro .wp-block-button__link:focus-visible {
	background: var(--rvc-ground);
	color: var(--rvc-hydro);
	filter: none;
}

.rvc-btn-bio .wp-block-button__link { box-shadow: inset 0 0 0 2px var(--rvc-bio); }
.rvc-btn-bio .wp-block-button__link:hover,
.rvc-btn-bio .wp-block-button__link:focus-visible {
	background: var(--rvc-ground);
	color: var(--rvc-bio);
	filter: none;
}

/* Outline button fills in on hover: the mirror of the above. */
.rvc-btn-outline .wp-block-button__link:hover,
.rvc-btn-outline .wp-block-button__link:focus-visible {
	background: var(--rvc-text-bright);
	color: var(--rvc-ground);
	box-shadow: inset 0 0 0 2px var(--rvc-text-bright);
}

@media (max-width: 767px) {
	/* Stack to a single full-width column on phones. */
	.rvc-hero .wp-block-buttons,
	.rvc-band .wp-block-buttons {
		display: grid;
		grid-auto-flow: row;
		width: 100%;
	}
	.rvc-hero .wp-block-button__link,
	.rvc-band .wp-block-button__link { min-width: 0; }
}

/* =========================================================================
   13U. AUDIENCE CARD BUTTON SPACING
   The card body is a flex column with a .65rem gap, which left only ~6px
   between the paragraph and the CTA while the kicker/heading/paragraph
   rhythm was 33-37px. margin-top:auto also pins the button to the bottom
   of the card, so the two cards' CTAs line up with each other even when
   their copy runs to different lengths.
   ========================================================================= */

.rvc-split-body .wp-block-buttons {
	margin-top: auto;
	padding-top: 1.5rem;
}

/* The card body needs to fill the column for margin-top:auto to have
   anything to push against. */
.rvc-split .wp-block-column { display: flex; flex-direction: column; }
.rvc-split .rvc-split-body { flex: 1; }

/* Hamburger icon: the inner icon wrapper was painting its own light
   background, leaving a white box inside the blaze button. */
@media (max-width: 1024px) {
	#mobile-header .menu-toggle-open .menu-toggle-icon,
	#mobile-header .menu-toggle-open .kadence-svg-iconset,
	#mobile-header .menu-toggle-open svg {
		background: transparent !important;
		box-shadow: none !important;
	}
}

/* Logo: the header uses the horizontal lockup (assets/img/
   riverca-logo-horizontal-dark.png: emblem + white wordmark, transparent).
   Height-driven so the wide lockup never pushes the nav off the row. */
.site-branding .custom-logo {
	height: auto;
	max-height: 52px;
	width: auto;
	max-width: min(280px, 60vw);
	display: block;
}
@media (max-width: 1024px) {
	.site-branding .custom-logo { max-height: 38px; }
}

/* Optional stacked logo for page content (e.g. an About or footer block):
   add an Image block with class "rvc-logo-stack". */
.rvc-logo-stack img {
	width: min(320px, 70vw);
	height: auto;
}

