/*
Theme Name: Ridgeline Roofing Co.
Theme URI: https://ridgelineroofing.com
Author: Juan-Paul Du Preez
Author URI: https://www.upwork.com/freelancers/~010f2ecd500e232ecd
Description: Block theme for Ridgeline Roofing Co., a residential and light-commercial roofing contractor. Sample build for the UpworkPortfolio program (Phase 1 flagship).
Version: 0.1.0
Requires at least: 6.5
Tested up to: 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: ridgeline-roofing
*/

/* Design tokens live in theme.json. This file covers layout and
   component details that theme.json cannot express on its own. */

/* --- Site header (dark, logo, sticky) --- */
header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 100;
}
.site-header {
	border-bottom: 3px solid var(--wp--preset--color--safety);
}
.site-logo {
	display: inline-flex;
	line-height: 0;
}
.site-logo img {
	display: block;
	height: 100px;
	width: auto;
}
.site-header .wp-block-navigation .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.site-header .wp-block-navigation .wp-block-navigation-item__content,
.site-header .wp-block-navigation .wp-block-navigation-item__label {
	color: var(--wp--preset--color--bone) !important;
}
.site-header .wp-block-navigation .wp-block-navigation-item__content:hover,
.site-header .wp-block-navigation .wp-block-navigation-item__content:hover .wp-block-navigation-item__label {
	color: var(--wp--preset--color--safety) !important;
}
.site-header .wp-block-navigation__responsive-container-open,
.site-header .wp-block-navigation__responsive-container-close {
	color: var(--wp--preset--color--bone) !important;
}
.site-header .wp-block-navigation__responsive-container.is-menu-open {
	background-color: var(--wp--preset--color--navy-deep);
}
.phone-link .wp-block-button__link {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	letter-spacing: 0.03em;
}

/* Desktop inline nav. WP's navigation block ships the mobile-overlay base
   CSS, but the desktop inline override is not loading in this setup, so the
   links sat hidden behind the hamburger on desktop too. Force them inline. */
@media (min-width: 782px) {
	.site-header .wp-block-navigation__responsive-container-open,
	.site-header .wp-block-navigation__responsive-container-close {
		display: none !important;
	}
	.site-header .wp-block-navigation__responsive-container {
		display: block !important;
		position: static !important;
		inset: auto !important;
		width: auto !important;
		height: auto !important;
		background-color: transparent !important;
		padding: 0 !important;
		overflow: visible !important;
	}
	.site-header .wp-block-navigation__responsive-close,
	.site-header .wp-block-navigation__responsive-dialog,
	.site-header .wp-block-navigation__responsive-container-content {
		display: contents !important;
	}
	.site-header .wp-block-navigation__container {
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: wrap;
		align-items: center;
		gap: 0.4rem 1.6rem;
	}
}
@media (max-width: 600px) {
	.site-logo img {
		height: 64px;
	}
}

/* --- Eyebrow label --- */
.eyebrow {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: var(--wp--preset--color--safety);
	font-size: 0.95rem;
	margin-bottom: 0.25rem;
}

/* --- Hero --- */
.hero {
	min-height: 78vh;
	display: flex;
	align-items: center;
	background-color: var(--wp--preset--color--navy);
	background-image: linear-gradient(118deg, var(--wp--preset--color--navy-deep) 0%, var(--wp--preset--color--navy) 58%, var(--wp--preset--color--slate) 150%);
}
.hero h1,
.hero h2,
.hero p,
.hero li {
	color: var(--wp--preset--color--white);
}
.hero .eyebrow {
	color: var(--wp--preset--color--safety);
}
.hero .is-style-outline .wp-block-button__link {
	color: var(--wp--preset--color--white);
	border-color: var(--wp--preset--color--white);
}
.hero .is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--navy);
}

/* --- Service cards --- */
.service-card {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--mist);
	border-top: 4px solid var(--wp--preset--color--safety);
	padding: 2rem 1.75rem;
	height: 100%;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.service-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 32px -18px rgba(28, 37, 48, 0.5);
}
.service-card h3 {
	margin-top: 0;
}

/* --- Trust items --- */
.trust-item {
	border-left: 3px solid var(--wp--preset--color--safety);
	padding-left: 1.1rem;
}
.trust-item h3 {
	font-size: var(--wp--preset--font-size--large);
	margin: 0 0 0.35rem;
}

/* --- CTA band --- */
.cta-band h2,
.cta-band p {
	color: var(--wp--preset--color--white);
}

/* --- Footer (redesigned: dark, structured, logo) --- */
.site-footer {
	border-top: 3px solid var(--wp--preset--color--safety);
}
.site-footer .footer-grid {
	display: grid;
	grid-template-columns: 1.7fr 1fr 1fr 1.15fr;
	gap: var(--wp--preset--spacing--60) var(--wp--preset--spacing--50);
}

/* Footer brand column */
.footer-logo {
	display: inline-flex;
	line-height: 0;
	margin-bottom: 1.15rem;
	transition: opacity 0.16s ease;
}
.footer-logo:hover {
	opacity: 0.85;
}
.footer-logo img {
	display: block;
	height: 72px;
	width: auto;
}
.footer-blurb {
	margin: 0 0 1.15rem;
	max-width: 36ch;
	color: rgba(244, 241, 234, 0.78);
}
.footer-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 1.5rem;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 0.82rem;
	color: var(--wp--preset--color--bone);
}
.footer-badge svg {
	width: 1.15rem;
	height: 1.15rem;
	flex-shrink: 0;
	color: var(--wp--preset--color--safety);
}
.footer-contact {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}
.footer-phone {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800;
	font-size: 1.6rem;
	line-height: 1.15;
	color: var(--wp--preset--color--bone);
	text-decoration: none;
}
.footer-phone:hover {
	color: var(--wp--preset--color--safety);
}
.footer-email {
	color: rgba(244, 241, 234, 0.78);
	text-decoration: none;
}
.footer-email:hover {
	color: var(--wp--preset--color--safety);
}
.footer-hours {
	margin: 0.2rem 0 0;
	font-size: 0.9rem;
	color: rgba(244, 241, 234, 0.55);
}

/* Footer link columns */
.footer-col__title {
	margin: 0 0 1rem;
	padding-bottom: 0.6rem;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 0.95rem;
	color: var(--wp--preset--color--white);
	border-bottom: 1px solid rgba(244, 241, 234, 0.14);
}
.footer-col ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}
.footer-col a {
	color: rgba(244, 241, 234, 0.78);
	text-decoration: none;
	transition: color 0.15s ease;
}
.footer-col a:hover {
	color: var(--wp--preset--color--safety);
}
.footer-col .footer-quote-btn {
	display: inline-block;
	margin-top: 1.35rem;
	padding: 0.72rem 1.25rem;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 0.9rem;
	color: var(--wp--preset--color--white);
	background: var(--wp--preset--color--safety);
	border-radius: var(--r-radius);
	text-decoration: none;
	box-shadow: var(--shadow-sm);
	transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.footer-col .footer-quote-btn:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
	color: var(--wp--preset--color--white);
}

/* Footer bottom bar */
.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 0.5rem 1.5rem;
	margin-top: var(--wp--preset--spacing--60);
	padding-top: var(--wp--preset--spacing--40);
	border-top: 1px solid rgba(244, 241, 234, 0.14);
}
.footer-bottom p {
	margin: 0;
	font-size: 0.85rem;
	color: rgba(244, 241, 234, 0.55);
}
.footer-legal {
	font-family: var(--wp--preset--font-family--display);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

/* Footer responsive */
@media (max-width: 900px) {
	.site-footer .footer-grid {
		grid-template-columns: 1fr 1fr;
		gap: var(--wp--preset--spacing--50);
	}
}
@media (max-width: 560px) {
	.site-footer .footer-grid {
		grid-template-columns: 1fr;
	}
	.footer-bottom {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* ===== Phase 1B: interior pages ===== */

/* --- Interior page hero --- */
.page-hero {
	background-color: var(--wp--preset--color--navy);
	background-image: linear-gradient(118deg, var(--wp--preset--color--navy-deep) 0%, var(--wp--preset--color--navy) 72%);
}
.page-hero h1,
.page-hero h2,
.page-hero p {
	color: var(--wp--preset--color--white);
}
.page-hero .eyebrow {
	color: var(--wp--preset--color--safety);
}

/* --- Stats band (About) --- */
.stat .stat-num {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800;
	font-size: clamp(2.5rem, 1.8rem + 3vw, 3.75rem);
	color: var(--wp--preset--color--safety);
	line-height: 1;
	margin: 0 0 0.25rem;
}
.stat .stat-label {
	font-family: var(--wp--preset--font-family--display);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 600;
	color: var(--wp--preset--color--bone);
	margin: 0;
}

/* --- Testimonials --- */
.testimonial {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--mist);
	border-left: 4px solid var(--wp--preset--color--safety);
	padding: 1.75rem;
	height: 100%;
}
.testimonial p {
	margin: 0 0 0.75rem;
}
.stars {
	color: var(--wp--preset--color--safety);
	letter-spacing: 0.15em;
	margin: 0 0 0.5rem;
}
.testimonial .who {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--wp--preset--color--navy);
	margin: 0;
}

/* --- Process steps --- */
.process-step .step-num {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800;
	font-size: 2.75rem;
	color: var(--wp--preset--color--safety);
	line-height: 1;
	margin: 0 0 0.25rem;
}
.process-step h3 {
	margin-top: 0;
}

/* --- FAQ (core/details) --- */
.wp-block-details {
	border-bottom: 1px solid var(--wp--preset--color--mist);
	padding: 1.1rem 0;
}
.wp-block-details summary {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	font-size: var(--wp--preset--font-size--large);
	color: var(--wp--preset--color--navy);
	cursor: pointer;
}

/* --- Contact info + form --- */
.contact-info .big-phone {
	display: inline-block;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800;
	font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
	color: var(--wp--preset--color--navy);
	text-decoration: none;
	line-height: 1.1;
}
.contact-info .big-phone:hover {
	color: var(--wp--preset--color--safety);
}
.contact-form {
	display: grid;
	gap: 1rem;
}
.contact-form label {
	display: block;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 0.9rem;
	color: var(--wp--preset--color--navy);
	margin-bottom: 0.3rem;
}
.contact-form input,
.contact-form textarea {
	width: 100%;
	padding: 0.7rem 0.85rem;
	border: 1px solid var(--wp--preset--color--slate);
	background: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--body);
	font-size: 1rem;
	border-radius: 2px;
}
.contact-form input:focus,
.contact-form textarea:focus {
	outline: 2px solid var(--wp--preset--color--safety);
	outline-offset: 1px;
}
.contact-form button {
	justify-self: start;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 1.0625rem;
	background: var(--wp--preset--color--safety);
	color: var(--wp--preset--color--white);
	border: none;
	border-radius: 2px;
	padding: 0.9rem 1.6rem;
	cursor: pointer;
	transition: background 0.18s ease;
}
.contact-form button:hover {
	background: var(--wp--preset--color--navy);
}

/* ===== Phase 1C: quote form + service areas ===== */

/* --- Multi-step quote form --- */
.quote-form {
	max-width: 540px;
	margin: 0 auto;
}
.quote-progress {
	height: 6px;
	background: var(--wp--preset--color--mist);
	border-radius: 3px;
	overflow: hidden;
}
.quote-progress-bar {
	height: 100%;
	width: 25%;
	background: var(--wp--preset--color--safety);
	transition: width 0.3s ease;
}
.quote-step-label {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.85rem;
	color: var(--wp--preset--color--slate);
	margin: 0.6rem 0 1.5rem;
}
.quote-step {
	border: none;
	padding: 0;
	margin: 0;
}
.quote-step legend {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	text-transform: uppercase;
	font-size: var(--wp--preset--font-size--x-large);
	color: var(--wp--preset--color--navy);
	line-height: 1.1;
	margin-bottom: 1.25rem;
	padding: 0;
}
.quote-options {
	display: grid;
	gap: 0.6rem;
}
.quote-options.is-invalid {
	outline: 2px solid var(--wp--preset--color--safety);
	outline-offset: 6px;
}
.quote-option {
	display: block;
	position: relative;
	cursor: pointer;
}
.quote-option input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.quote-option span {
	display: block;
	padding: 0.95rem 1.1rem;
	border: 1px solid var(--wp--preset--color--slate);
	background: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	border-radius: 2px;
	transition: border-color 0.15s ease, background 0.15s ease;
}
.quote-option input:checked + span {
	border-color: var(--wp--preset--color--safety);
	border-width: 2px;
	background: #fdf1ea;
}
.quote-option input:focus-visible + span {
	outline: 2px solid var(--wp--preset--color--navy);
	outline-offset: 2px;
}
.quote-field {
	margin-bottom: 1rem;
}
.quote-field label {
	display: block;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 0.9rem;
	color: var(--wp--preset--color--navy);
	margin-bottom: 0.3rem;
}
.quote-field input,
.quote-field select,
.quote-field textarea {
	width: 100%;
	padding: 0.7rem 0.85rem;
	border: 1px solid var(--wp--preset--color--slate);
	background: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--body);
	font-size: 1rem;
	border-radius: 2px;
}
.quote-field input:focus,
.quote-field select:focus,
.quote-field textarea:focus {
	outline: 2px solid var(--wp--preset--color--safety);
	outline-offset: 1px;
}
.quote-field input.is-invalid,
.quote-field select.is-invalid,
.quote-field textarea.is-invalid {
	border-color: var(--wp--preset--color--safety);
	border-width: 2px;
}
.quote-error {
	color: var(--wp--preset--color--safety);
	font-weight: 600;
	margin: 0.5rem 0 0;
}
.quote-nav {
	display: flex;
	gap: 0.75rem;
	margin-top: 1.5rem;
}
.quote-btn {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 1.0625rem;
	padding: 0.85rem 1.6rem;
	border-radius: 2px;
	cursor: pointer;
	border: 2px solid transparent;
	transition: background 0.15s ease, border-color 0.15s ease;
}
.quote-btn-primary {
	background: var(--wp--preset--color--safety);
	color: var(--wp--preset--color--white);
	margin-left: auto;
}
.quote-btn-primary:hover {
	background: var(--wp--preset--color--navy);
}
.quote-btn-ghost {
	background: transparent;
	color: var(--wp--preset--color--navy);
	border-color: var(--wp--preset--color--slate);
}
.quote-btn-ghost:hover {
	border-color: var(--wp--preset--color--navy);
}
.quote-success h3 {
	margin: 0.25rem 0 0.5rem;
}

/* --- Service-area archive cards (restyled in Phase C) --- */
.wp-block-post-template.area-grid {
	margin: 0;
}
.wp-block-post-template.area-grid > li {
	display: flex;
}
.area-card {
	width: 100%;
	display: flex;
	flex-direction: column;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--mist);
	border-radius: var(--r-radius);
	box-shadow: var(--shadow-md);
	padding: 1.9rem 1.7rem;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.area-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow-lg);
}
.area-card__icon {
	width: 2.6rem;
	height: 2.6rem;
	display: grid;
	place-items: center;
	background: #fdf1ea;
	border: 1px solid var(--wp--preset--color--mist);
	border-radius: var(--r-radius);
	color: var(--wp--preset--color--safety);
	margin-bottom: 1.1rem;
}
.area-card__icon svg {
	width: 1.3rem;
	height: 1.3rem;
}
.area-card .wp-block-post-title {
	margin: 0 0 0.5rem;
}
.area-card .wp-block-post-title a {
	text-decoration: none;
}
.area-card .wp-block-post-title a:hover {
	color: var(--wp--preset--color--safety);
}
.area-card .wp-block-post-excerpt {
	margin: 0;
}
.area-card .wp-block-post-excerpt p,
.area-card .wp-block-post-excerpt__excerpt {
	margin: 0;
}
.area-card .wp-block-post-excerpt__more-text {
	display: none;
}

/* --- Project gallery (before/after) --- */
.ba-visual {
	display: flex;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--mist);
}
.ba-visual-wide {
	aspect-ratio: 21 / 9;
}
.ba-panel {
	flex: 1;
	display: flex;
	align-items: flex-end;
	padding: 0.7rem;
}
.ba-before {
	background-color: #6f7370;
	background-image: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.2) 0 2px, transparent 2px 13px);
}
.ba-after {
	background-color: var(--wp--preset--color--navy);
	background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.09) 0 2px, transparent 2px 13px);
}
.ba-label {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 0.72rem;
	background: rgba(244, 241, 234, 0.94);
	color: var(--wp--preset--color--navy);
	padding: 0.2rem 0.55rem;
	border-radius: 2px;
}
.project-featured .ba-visual {
	margin-bottom: 1.5rem;
}
.project-card {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--mist);
	height: 100%;
}
.project-card .ba-visual {
	border: none;
	border-bottom: 1px solid var(--wp--preset--color--mist);
}
.project-body {
	padding: 1.4rem 1.4rem 1.6rem;
}
.project-body .wp-block-heading {
	margin-top: 0;
	margin-bottom: 0.4rem;
}
.project-meta {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 0.82rem;
	color: var(--wp--preset--color--safety);
	margin: 0 0 0.5rem;
}

/* --- Small screens --- */
@media (max-width: 600px) {
	:root {
		--wp--preset--spacing--80: 4rem;
		--wp--preset--spacing--70: 3.25rem;
		--wp--preset--spacing--60: 2.5rem;
	}
	.hero {
		min-height: 68vh;
	}
	.quote-nav {
		flex-wrap: wrap;
	}
	.ba-visual-wide {
		aspect-ratio: 16 / 10;
	}
}

/* =====================================================================
   Phase A -- design overhaul: system + Home page.
   Image-led patterns (r- / svc- / why- / work- prefixes). Older component
   classes above stay in use by pages not yet redesigned (Phase B/C).
   ===================================================================== */

:root {
	--shadow-sm: 0 1px 2px rgba(28, 37, 48, 0.10), 0 2px 4px rgba(28, 37, 48, 0.06);
	--shadow-md: 0 10px 24px -10px rgba(28, 37, 48, 0.28);
	--shadow-lg: 0 26px 50px -18px rgba(28, 37, 48, 0.40);
	--r-radius: 3px;
}

/* Button polish (global) */
.wp-block-button__link {
	box-shadow: var(--shadow-sm);
	transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}
.wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
}

/* Sections butt together -- kill the default block-gap margins between
   the site's top-level blocks (header/main/footer) site-wide, and between
   the sections of any redesigned page (<main class="r-page">), so no
   background-coloured bars show through between them. */
.wp-site-blocks > *,
main.r-page > * {
	margin-block-start: 0 !important;
}

/* Section heading block */
.r-sec-head {
	max-width: 600px;
}
.r-sec-head > * + * {
	margin-top: 0.5rem;
}
.r-sec-head--light h2,
.r-sec-head--light p {
	color: var(--wp--preset--color--white);
}

/* Photo hero */
.r-hero {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	min-height: 88vh;
	overflow: hidden;
	padding-top: var(--wp--preset--spacing--70);
	padding-bottom: var(--wp--preset--spacing--70);
	padding-left: max(var(--wp--preset--spacing--40), calc((100% - 1200px) / 2));
	padding-right: max(var(--wp--preset--spacing--40), calc((100% - 1200px) / 2));
}
.r-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: -2;
}
.r-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(104deg, rgba(28, 37, 48, 0.95) 0%, rgba(28, 37, 48, 0.80) 38%, rgba(28, 37, 48, 0.32) 100%),
		linear-gradient(to top, rgba(28, 37, 48, 0.6) 0%, rgba(28, 37, 48, 0) 48%);
}
.r-hero__inner {
	max-width: 620px;
	width: 100%;
}
.r-hero__inner > * + * {
	margin-top: 1.1rem;
}
.r-hero h1,
.r-hero p {
	color: var(--wp--preset--color--white);
}
.r-hero h1 {
	margin: 0;
}
.r-hero .eyebrow {
	color: var(--wp--preset--color--safety);
}
.r-hero__inner .wp-block-buttons {
	margin-top: 1.6rem;
}

/* Trust strip */
.trust-strip__row {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
}
.trust-strip__item {
	margin: 0;
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.15rem 1.25rem;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--bone);
	border-left: 1px solid rgba(244, 241, 234, 0.16);
}
.trust-strip__item:first-child {
	border-left: none;
}
.trust-strip__item strong {
	color: var(--wp--preset--color--safety);
	font-weight: 800;
}

/* Image service cards */
.svc-card {
	display: flex;
	flex-direction: column;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--mist);
	border-radius: var(--r-radius);
	overflow: hidden;
	box-shadow: var(--shadow-md);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.svc-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--shadow-lg);
}
.svc-card__img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-bottom: 3px solid var(--wp--preset--color--safety);
}
.svc-card__body {
	flex-grow: 1;
	padding: 1.4rem 1.4rem 1.6rem;
}
.svc-card__body h3 {
	margin: 0 0 0.4rem;
}
.svc-card__body p {
	margin: 0;
}

/* Image + text split */
.r-split__media img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: var(--r-radius);
	box-shadow: var(--shadow-lg);
}
.why-points > * + * {
	margin-top: 1.3rem;
}
.why-point {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
}
.why-point__icon {
	flex-shrink: 0;
	width: 2.9rem;
	height: 2.9rem;
	display: grid;
	place-items: center;
	background: #fdf1ea;
	border: 1px solid var(--wp--preset--color--mist);
	border-radius: var(--r-radius);
	color: var(--wp--preset--color--safety);
}
.why-point__icon svg {
	width: 1.45rem;
	height: 1.45rem;
}
.why-point h3 {
	margin: 0 0 0.2rem;
}
.why-point p {
	margin: 0;
}

/* Featured work cards */
.work-card {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	border-radius: var(--r-radius);
	box-shadow: var(--shadow-lg);
}
.work-card img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: -2;
	transition: transform 0.45s ease;
}
.work-card:hover img {
	transform: scale(1.05);
}
.work-card::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(to top, rgba(28, 37, 48, 0.95) 6%, rgba(28, 37, 48, 0.55) 36%, rgba(28, 37, 48, 0.05) 68%);
}
.work-card__caption {
	margin-top: auto;
	padding: 1.5rem 1.4rem;
}
.work-card__caption .project-meta {
	margin: 0 0 0.25rem;
}
.work-card__caption h3 {
	margin: 0;
	color: var(--wp--preset--color--white);
}

/* Refined reviews */
.r-review {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--mist);
	border-radius: var(--r-radius);
	box-shadow: var(--shadow-md);
	padding: 1.9rem 1.7rem;
}
.r-review__mark {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800;
	font-size: 3.4rem;
	line-height: 0.55;
	color: var(--wp--preset--color--safety);
}
.r-review__quote {
	margin: 0;
	flex-grow: 1;
}
.r-review__who {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--wp--preset--color--navy);
}

/* Photo CTA band */
.r-cta {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding-left: var(--wp--preset--spacing--40);
	padding-right: var(--wp--preset--spacing--40);
}
.r-cta__inner {
	max-width: 620px;
	width: 100%;
}
.r-cta__inner > * + * {
	margin-top: 1.1rem;
}
.r-cta__inner .wp-block-buttons {
	margin-top: 1.6rem;
}
.r-cta__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: -2;
}
.r-cta::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(155deg, rgba(28, 37, 48, 0.93) 0%, rgba(40, 56, 69, 0.84) 100%);
}
.r-cta h2,
.r-cta p {
	color: var(--wp--preset--color--white);
}
.r-cta .eyebrow {
	color: var(--wp--preset--color--safety);
}

/* Outline buttons on dark photo sections */
.r-hero .is-style-outline .wp-block-button__link,
.r-cta .is-style-outline .wp-block-button__link {
	color: var(--wp--preset--color--white);
	border-color: rgba(255, 255, 255, 0.55);
	background: transparent;
	box-shadow: none;
}
.r-hero .is-style-outline .wp-block-button__link:hover,
.r-cta .is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--navy);
	border-color: var(--wp--preset--color--white);
}

/* Layout grids -- explicit even columns, no orphaned cards */
.svc-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--wp--preset--spacing--40);
}
.work-grid,
.review-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--wp--preset--spacing--40);
}

/* Image-split figure fills its column */
.r-split__media {
	width: 100%;
	margin: 0;
}

/* Phase A responsive */
@media (max-width: 980px) {
	.svc-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 860px) {
	.work-grid,
	.review-grid {
		grid-template-columns: 1fr;
	}
}
@media (max-width: 781px) {
	.r-hero {
		min-height: 76vh;
	}
	.r-split__media img {
		aspect-ratio: 16 / 10;
	}
	.trust-strip__row {
		grid-template-columns: repeat(2, 1fr);
		row-gap: 0.85rem;
	}
	.trust-strip__item {
		border-left: none;
	}
}
@media (max-width: 600px) {
	.r-hero {
		min-height: 70vh;
	}
	.svc-grid {
		grid-template-columns: 1fr;
	}
	.trust-strip__row {
		grid-template-columns: 1fr;
	}
	.work-card {
		aspect-ratio: 3 / 2;
	}
}

/* =====================================================================
   Phase B -- design overhaul: Services, Projects, About.
   Image-led patterns for the interior pages. Reuses the Phase A system
   (.r-cta, .r-sec-head, .work-card, .r-split, .eyebrow, SVG icons).
   ===================================================================== */

/* Interior photo hero (shorter than the home .r-hero) */
.r-pagehero {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	min-height: 44vh;
	overflow: hidden;
	padding-top: var(--wp--preset--spacing--70);
	padding-bottom: var(--wp--preset--spacing--70);
	padding-left: max(var(--wp--preset--spacing--40), calc((100% - 1200px) / 2));
	padding-right: max(var(--wp--preset--spacing--40), calc((100% - 1200px) / 2));
}
.r-pagehero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: -2;
}
.r-pagehero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(104deg, rgba(28, 37, 48, 0.94) 0%, rgba(28, 37, 48, 0.78) 44%, rgba(28, 37, 48, 0.40) 100%),
		linear-gradient(to top, rgba(28, 37, 48, 0.55) 0%, rgba(28, 37, 48, 0) 55%);
}
.r-pagehero__inner {
	max-width: 720px;
	width: 100%;
}
.r-pagehero__inner > * + * {
	margin-top: 0.85rem;
}
.r-pagehero h1,
.r-pagehero p {
	color: var(--wp--preset--color--white);
}
.r-pagehero h1 {
	margin: 0;
}
.r-pagehero .eyebrow {
	color: var(--wp--preset--color--safety);
}

/* Nested photo sections: kill blockGap on direct children so content
   sits where the section padding puts it. */
.r-pagehero > *,
.r-statband > * {
	margin-block-start: 0;
}

/* Services -- alternating image / text rows */
.svc-rows {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--70);
}
.svc-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--wp--preset--spacing--60);
	align-items: center;
}
.svc-row--flip .svc-row__media {
	order: 2;
}
.svc-row__media {
	margin: 0;
}
.svc-row__media img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--r-radius);
	box-shadow: var(--shadow-lg);
}
.svc-row__body > * + * {
	margin-top: 0.85rem;
}
.svc-row__body h2 {
	margin: 0;
}
.svc-checklist {
	list-style: none;
	margin: 1.1rem 0 0;
	padding: 0;
	display: grid;
	gap: 0.65rem;
}
.svc-checklist li {
	position: relative;
	padding-left: 2rem;
	font-size: 1.0625rem;
}
.svc-checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.06em;
	width: 1.35rem;
	height: 1.35rem;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23DA5B2B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Projects -- featured before / after comparison slider */
.ba-slider {
	position: relative;
	overflow: hidden;
	border-radius: var(--r-radius);
	box-shadow: var(--shadow-lg);
	aspect-ratio: 2 / 1;
	margin-bottom: var(--wp--preset--spacing--50);
	--ba-pos: 50%;
	user-select: none;
	touch-action: pan-y;
	cursor: ew-resize;
}
.ba-slider__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	-webkit-user-drag: none;
}
.ba-slider__before {
	clip-path: inset(0 calc(100% - var(--ba-pos)) 0 0);
	/* Same source photo as the "after" -- treated to read as an aged,
	   weathered roof so the wipe shows one roof being restored.
	   Faded + flat + dusty reads as "old", not "dark". */
	filter: brightness(0.74) saturate(0.32) contrast(0.95) sepia(0.26);
}
.ba-slider__tag {
	position: absolute;
	top: 0.85rem;
	z-index: 3;
}
.ba-slider__tag--before {
	left: 0.85rem;
}
.ba-slider__tag--after {
	right: 0.85rem;
}
.ba-slider__handle {
	position: absolute;
	top: 0;
	bottom: 0;
	left: var(--ba-pos);
	width: 3px;
	margin: 0;
	padding: 0;
	transform: translateX(-50%);
	background: var(--wp--preset--color--white);
	border: none;
	z-index: 4;
	cursor: ew-resize;
	box-shadow: 0 0 0 1px rgba(28, 37, 48, 0.18);
}
.ba-slider__handle::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 2.6rem;
	height: 2.6rem;
	transform: translate(-50%, -50%);
	background: var(--wp--preset--color--white);
	border-radius: 50%;
	box-shadow: var(--shadow-md);
}
.ba-slider__handle svg {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 1.5rem;
	height: 1.5rem;
	color: var(--wp--preset--color--navy);
	z-index: 1;
}
.ba-slider__handle:focus-visible {
	outline: 3px solid var(--wp--preset--color--safety);
	outline-offset: 3px;
}
.ba-label--after {
	background: var(--wp--preset--color--safety);
	color: var(--wp--preset--color--white);
}
.project-feature__body {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--wp--preset--spacing--40) var(--wp--preset--spacing--60);
	align-items: start;
}
.project-feature__head > * + * {
	margin-top: 0.4rem;
}
.project-feature__head h2 {
	margin: 0;
}
.project-feature__desc {
	margin: 0;
	font-size: var(--wp--preset--font-size--large);
}

/* Projects -- 5 photo cards: 3 then 2 (centred), no orphans */
.project-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: var(--wp--preset--spacing--40);
}
.project-grid > * {
	grid-column: span 2;
}
.project-grid > *:nth-child(4) {
	grid-column: 2 / span 2;
}
.project-grid > *:nth-child(5) {
	grid-column: 4 / span 2;
}

/* About -- stats over a photo */
.r-statband {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding-left: max(var(--wp--preset--spacing--40), calc((100% - 1200px) / 2));
	padding-right: max(var(--wp--preset--spacing--40), calc((100% - 1200px) / 2));
}
.r-statband__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: -2;
}
.r-statband::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(155deg, rgba(28, 37, 48, 0.95) 0%, rgba(40, 56, 69, 0.90) 100%);
}
.r-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--wp--preset--spacing--40);
}
.r-stat {
	text-align: center;
	padding: 0 1rem;
	border-left: 1px solid rgba(244, 241, 234, 0.16);
}
.r-stat:first-child {
	border-left: none;
}
.r-stat__num {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800;
	font-size: clamp(2.6rem, 1.9rem + 3vw, 3.9rem);
	line-height: 1;
	color: var(--wp--preset--color--safety);
	margin: 0 0 0.35rem;
}
.r-stat__label {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--wp--preset--color--bone);
	margin: 0;
}

/* About -- "how we work" standards */
.r-standards {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--wp--preset--spacing--40);
}
.r-standard {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--mist);
	border-radius: var(--r-radius);
	box-shadow: var(--shadow-md);
	padding: 1.8rem 1.6rem;
}
.r-standard__icon {
	width: 3rem;
	height: 3rem;
	display: grid;
	place-items: center;
	background: #fdf1ea;
	border: 1px solid var(--wp--preset--color--mist);
	border-radius: var(--r-radius);
	color: var(--wp--preset--color--safety);
	margin-bottom: 1.1rem;
}
.r-standard__icon svg {
	width: 1.5rem;
	height: 1.5rem;
}
.r-standard h3 {
	margin: 0 0 0.45rem;
}
.r-standard p {
	margin: 0;
}

/* Phase B responsive */
@media (max-width: 900px) {
	.svc-rows {
		gap: var(--wp--preset--spacing--60);
	}
	.svc-row {
		grid-template-columns: 1fr;
		gap: var(--wp--preset--spacing--40);
	}
	.svc-row--flip .svc-row__media {
		order: 0;
	}
	.svc-row__media img {
		aspect-ratio: 16 / 9;
	}
	.project-feature__body {
		grid-template-columns: 1fr;
		gap: var(--wp--preset--spacing--30);
	}
	.r-standards {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 781px) {
	.r-pagehero {
		min-height: 38vh;
	}
	.project-grid {
		grid-template-columns: 1fr 1fr;
	}
	.project-grid > *,
	.project-grid > *:nth-child(4),
	.project-grid > *:nth-child(5) {
		grid-column: auto;
	}
	.r-stats {
		grid-template-columns: repeat(2, 1fr);
		gap: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40);
	}
	.r-stat {
		border-left: none;
	}
}
@media (max-width: 560px) {
	.project-grid {
		grid-template-columns: 1fr;
	}
	.r-standards {
		grid-template-columns: 1fr;
	}
	.r-stats {
		grid-template-columns: 1fr;
	}
}

/* =====================================================================
   Phase C -- design overhaul: Reviews, Financing, Contact, Quote,
   Service Areas. Reuses the Phase A/B system (.r-pagehero, .r-cta,
   .r-sec-head, .r-standards, .r-split, .review-grid, .trust-strip,
   .svc-checklist).
   ===================================================================== */

/* Numbered steps (Financing "how it works", Contact "what happens next") */
.r-steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--wp--preset--spacing--40);
}
.r-step {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--mist);
	border-radius: var(--r-radius);
	box-shadow: var(--shadow-md);
	padding: 2rem 1.7rem;
}
.r-step__num {
	width: 3rem;
	height: 3rem;
	display: grid;
	place-items: center;
	background: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800;
	font-size: 1.5rem;
	border-radius: var(--r-radius);
	margin-bottom: 1.1rem;
}
.r-step h3 {
	margin: 0 0 0.45rem;
}
.r-step p {
	margin: 0;
}

/* 3-up variant of the Phase B .r-standards grid (Financing options,
   single service-area "why us") -- the base grid is 4 columns. */
.r-standards--3 {
	grid-template-columns: repeat(3, 1fr);
}

/* Contact -- navy info aside + white form card */
.contact-split {
	display: grid;
	grid-template-columns: 0.82fr 1.18fr;
	gap: var(--wp--preset--spacing--50);
	align-items: start;
}
.contact-aside {
	background: var(--wp--preset--color--navy-deep);
	border-radius: var(--r-radius);
	padding: 2.4rem 2.1rem;
}
.contact-aside .eyebrow {
	color: var(--wp--preset--color--safety);
	margin-bottom: 0.6rem;
}
.contact-aside__phone {
	display: inline-block;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800;
	font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.4rem);
	line-height: 1.05;
	color: var(--wp--preset--color--bone);
	text-decoration: none;
}
.contact-aside__phone:hover {
	color: var(--wp--preset--color--safety);
}
.contact-aside__meta {
	margin: 0.9rem 0 0;
	color: rgba(244, 241, 234, 0.78);
}
.contact-aside__block {
	margin-top: 1.8rem;
	padding-top: 1.6rem;
	border-top: 1px solid rgba(244, 241, 234, 0.16);
}
.contact-aside__block h3 {
	margin: 0 0 0.4rem;
	color: var(--wp--preset--color--white);
}
.contact-aside__block p {
	margin: 0;
	color: rgba(244, 241, 234, 0.78);
}
.contact-formcard {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--mist);
	border-radius: var(--r-radius);
	box-shadow: var(--shadow-md);
	padding: 2.4rem 2.1rem;
}
.contact-formcard h2 {
	margin: 0 0 1.4rem;
}

/* Quote -- assurances band + white form card */
.quote-assurances {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.6rem 2.5rem;
}
.quote-assurance {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--bone);
}
.quote-assurance svg {
	width: 1.1rem;
	height: 1.1rem;
	flex-shrink: 0;
	color: var(--wp--preset--color--safety);
}
.quote-card {
	max-width: 640px;
	margin: 0 auto;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--mist);
	border-radius: var(--r-radius);
	box-shadow: var(--shadow-lg);
	padding: var(--wp--preset--spacing--50);
}

/* Phase C responsive */
@media (max-width: 900px) {
	.contact-split {
		grid-template-columns: 1fr;
		gap: var(--wp--preset--spacing--40);
	}
}
@media (max-width: 781px) {
	.r-steps {
		grid-template-columns: 1fr;
	}
	.r-standards--3 {
		grid-template-columns: 1fr;
	}
}
@media (max-width: 600px) {
	.quote-card {
		padding: var(--wp--preset--spacing--40);
	}
}

/* =====================================================================
   Interactive features -- roof-estimate calculator + service-area map.
   (The before/after slider, .ba-slider, lives with the Phase B projects
   styles above.)
   ===================================================================== */

/* Roof-estimate calculator (Services page) */
.r-estimator {
	display: grid;
	grid-template-columns: 1.55fr 1fr;
	gap: var(--wp--preset--spacing--50);
	align-items: start;
}
.r-estimator__controls {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--40);
}
.r-est-label {
	margin: 0 0 0.6rem;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 0.95rem;
	color: var(--wp--preset--color--navy);
}
.r-est-options {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.6rem;
}
.r-est-opt {
	display: block;
	position: relative;
	cursor: pointer;
}
.r-est-opt input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.r-est-opt span {
	display: flex;
	flex-direction: column;
	gap: 0.12rem;
	height: 100%;
	padding: 0.85rem 0.9rem;
	border: 1px solid var(--wp--preset--color--slate);
	background: var(--wp--preset--color--white);
	border-radius: var(--r-radius);
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	font-size: 0.95rem;
	line-height: 1.15;
	transition: border-color 0.15s ease, background 0.15s ease;
}
.r-est-opt span small {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
	font-size: 0.8rem;
	color: var(--wp--preset--color--slate);
}
.r-est-opt input:checked + span {
	border-color: var(--wp--preset--color--safety);
	border-width: 2px;
	background: #fdf1ea;
	padding: calc(0.85rem - 1px) calc(0.9rem - 1px);
}
.r-est-opt input:focus-visible + span {
	outline: 2px solid var(--wp--preset--color--navy);
	outline-offset: 2px;
}
.r-estimator__result {
	background: var(--wp--preset--color--navy-deep);
	border-radius: var(--r-radius);
	box-shadow: var(--shadow-lg);
	padding: 2.2rem 2rem;
}
.r-estimator__result .eyebrow {
	color: var(--wp--preset--color--safety);
	margin-bottom: 0.4rem;
}
.r-est-range {
	margin: 0 0 0.9rem;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800;
	font-size: clamp(2rem, 1.4rem + 2.4vw, 2.9rem);
	line-height: 1.05;
	color: var(--wp--preset--color--white);
}
.r-est-note {
	margin: 0 0 1.5rem;
	font-size: 0.92rem;
	color: rgba(244, 241, 234, 0.72);
}
.r-est-cta {
	display: inline-block;
	background: var(--wp--preset--color--safety);
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 1.0625rem;
	padding: 0.85rem 1.6rem;
	border-radius: 2px;
	text-decoration: none;
	box-shadow: var(--shadow-sm);
	transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.r-est-cta:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
	color: var(--wp--preset--color--white);
}

/* Service-area coverage map (Leaflet) */
.area-map {
	height: 420px;
	border: 1px solid var(--wp--preset--color--mist);
	border-radius: var(--r-radius);
	box-shadow: var(--shadow-md);
	overflow: hidden;
	background: var(--wp--preset--color--mist);
	font-family: var(--wp--preset--font-family--body);
}
.area-map .leaflet-popup-content-wrapper {
	border-radius: var(--r-radius);
}
.area-map .leaflet-popup-content {
	margin: 0.8rem 1rem;
}
.area-map-pop__name {
	display: block;
	margin-bottom: 0.15rem;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	text-transform: uppercase;
	font-size: 1.05rem;
	color: var(--wp--preset--color--navy);
}
.area-map-pop a {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	font-size: 0.85rem;
}

/* Interactive-features responsive */
@media (max-width: 900px) {
	.r-estimator {
		grid-template-columns: 1fr;
		gap: var(--wp--preset--spacing--40);
	}
}
@media (max-width: 600px) {
	.r-est-options {
		grid-template-columns: 1fr;
	}
	.area-map {
		height: 320px;
	}
	.ba-slider {
		aspect-ratio: 4 / 3;
	}
}
