/*
Theme Name: Roofing SEO Services
Author: SEO ALGORITHMS
Author URI: https://seoalgorithms.com/
Theme URI: https://roofingseoservices.com/
Description: Custom "Blueprint craft" theme for Roofing SEO Services. Homepage is a designed template; every other page is native Gutenberg blocks styled by this stylesheet.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: roofing-seo-services
*/

/* ---------- Tokens ---------- */
:root {
	--brick: #8c2a1e;
	--brick-dark: #6f2016;
	--navy: #1d3a5f;
	--navy-dark: #172534;
	--accent: #e8551e;
	--accent-dark: #c94412;
	--peach: #fff1ea;
	--ink: #1b1d1f;
	--muted: #4a5260;
	--line: #d6d7db;
	--grid-bg: #f6f7f9;
	--grid-line: #e6e9ef;
	--white: #fff;
	--display: "Zilla Slab", "Rockwell", Georgia, serif;
	--body: "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif;
	--hand: "Caveat", "Segoe Print", cursive;
	--mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
	--wrap: 1200px;
	--gutter: 24px;
	--radius: 4px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--body);
	font-size: 18px;
	line-height: 1.55;
	color: var(--ink);
	background: var(--white);
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brick); }
h1, h2, h3, h4 {
	font-family: var(--display);
	font-weight: 700;
	line-height: 1.06;
	letter-spacing: -0.01em;
	margin: 0 0 .5em;
	color: var(--brick);
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.3rem; line-height: 1.2; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.screen-reader-text, .sr-only {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--white); color: var(--ink); padding: 10px 16px; }
.skip-link:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.navy { color: var(--navy); }
.grid-bg {
	background-color: var(--grid-bg);
	background-image:
		linear-gradient(var(--grid-line) 1px, transparent 1px),
		linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
	background-size: 24px 24px;
}

/* ---------- Buttons ---------- */
.btn, .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font-family: var(--body); font-weight: 600; font-size: 1.1rem; line-height: 1.2;
	padding: 14px 24px; border-radius: var(--radius); border: 2px solid transparent;
	text-decoration: none; cursor: pointer;
	transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover, .btn:focus-visible, .wp-block-button__link:hover, .wp-block-button__link:focus-visible { transform: translateY(-2px); }
.btn-primary, .wp-block-button.btn-primary .wp-block-button__link, .wp-block-button__link {
	background: var(--accent); color: var(--white); border-color: var(--accent);
}
.btn-primary:hover, .wp-block-button.btn-primary .wp-block-button__link:hover, .wp-block-button__link:hover {
	background: var(--accent-dark); border-color: var(--accent-dark); color: var(--white);
}
.btn-ghost-light, .wp-block-button.btn-ghost-light .wp-block-button__link { background: transparent; color: var(--white); border-color: var(--white); }
.btn-ghost-light:hover, .wp-block-button.btn-ghost-light .wp-block-button__link:hover { background: var(--white); color: var(--ink); }
.btn-ghost, .wp-block-button.btn-ghost .wp-block-button__link { background: var(--white); color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover, .wp-block-button.btn-ghost .wp-block-button__link:hover { background: var(--navy); color: var(--white); }

/* ---------- Header ---------- */
.site-header { background: var(--brick); color: var(--white); position: sticky; top: 0; z-index: 50; }
.admin-bar .site-header { top: 32px; }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.5rem; letter-spacing: -.01em; white-space: nowrap; }
.brand:hover { color: var(--white); }
.brand svg { width: 46px; height: 28px; flex: none; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.main-nav a { display: block; color: var(--white); text-decoration: none; font-weight: 500; padding: 8px 12px; border-radius: var(--radius); }
.main-nav a:hover, .main-nav .current-menu-item > a { background: rgba(255,255,255,.12); color: var(--white); }
.header-cta { padding: 10px 16px; font-size: 1rem; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 2px solid rgba(255,255,255,.6); color: var(--white); border-radius: var(--radius); padding: 8px 12px; font: 600 1rem var(--body); cursor: pointer; }

/* ---------- Homepage: hero ---------- */
.hp-hero { position: relative; color: var(--white); background: var(--navy-dark); overflow: hidden; }
.hp-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.hp-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(14,18,24,.9) 0%, rgba(14,18,24,.72) 38%, rgba(14,18,24,.15) 62%, rgba(14,18,24,0) 80%); }
.hp-hero .wrap { position: relative; z-index: 2; padding-top: 72px; padding-bottom: 80px; }
.hp-hero__copy { max-width: 600px; }
.label-brick { display: inline-block; background: var(--brick); color: var(--white); font: 600 .85rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; padding: 9px 12px; border-radius: 2px; margin-bottom: 22px; }
.hp-hero h1 { color: var(--white); margin-bottom: 22px; }
.hp-hero__sub { font-size: 1.25rem; max-width: 470px; margin-bottom: 30px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- Facts strip ---------- */
.hp-facts { border-bottom: 1px solid var(--line); }
.facts { list-style: none; margin: 0 auto; padding: 0 var(--gutter); max-width: var(--wrap); display: grid; grid-template-columns: repeat(5, 1fr); }
.facts li { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 8px; text-align: center; font-weight: 600; font-size: 1.05rem; }
.facts li + li { border-left: 1px solid var(--line); }
.facts svg { width: 40px; height: 40px; color: var(--navy); }

/* ---------- Split rows (heading left, content right) ---------- */
.split { display: grid; grid-template-columns: minmax(220px, 3fr) 7fr; gap: 40px; align-items: start; }
.split__head h2 { margin-bottom: .4em; }
.split__head p { color: var(--muted); }
.section { position: relative; padding: 64px 0; overflow: hidden; }
.section + .section { border-top: 1px solid var(--line); }
.deco { position: absolute; pointer-events: none; opacity: .5; z-index: 0; }
.section > .wrap { position: relative; z-index: 1; }

/* ---------- Cards ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.cards { display: grid; gap: 14px; }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-6 { grid-template-columns: repeat(6, 1fr); }
.num { display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--brick); color: var(--white); font: 700 1.15rem/1 var(--display); }
.num.navy-num { background: var(--navy); }
.problem-card { display: flex; flex-direction: column; min-height: 230px; }
.problem-card__top { display: flex; gap: 10px; align-items: flex-start; }
.problem-card h3 { color: var(--ink); font-family: var(--body); font-weight: 600; font-size: 1.1rem; margin: 4px 0 0; }
.problem-card img { width: 120px; height: 120px; margin: auto auto 0; }
.service-card { text-align: center; display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--ink); padding: 16px 10px; }
.service-card h3 { font-family: var(--body); font-weight: 600; color: var(--ink); font-size: 1.05rem; margin: 0 0 10px; }
.service-card img { width: 96px; height: 96px; margin-top: auto; }
a.service-card:hover { border-color: var(--navy); color: var(--ink); }

/* ---------- Site-map diagram ---------- */
.pages-wrap { display: grid; grid-template-columns: minmax(220px, 3fr) 6fr 2.2fr; gap: 28px; align-items: center; }
.hand-note { font-family: var(--hand); font-size: 1.5rem; line-height: 1.25; color: var(--navy); margin-top: 18px; max-width: 260px; }
.hand-note svg { display: inline-block; vertical-align: middle; width: 70px; height: 20px; }
.sitemap { text-align: center; }
.sitemap__home { display: inline-flex; align-items: center; gap: 10px; background: var(--navy); color: var(--white); font: 600 1.05rem var(--mono); letter-spacing: .04em; padding: 12px 18px; border-radius: var(--radius); }
.sitemap__home svg { width: 24px; height: 24px; }
.sitemap__trunk { width: 2px; height: 20px; background: var(--navy); margin: 0 auto; }
.sitemap__jobs { list-style: none; margin: 0; padding: 18px 0 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; position: relative; border-top: 2px solid var(--navy); }
.sitemap__jobs li { position: relative; }
.sitemap__jobs li::before { content: ""; position: absolute; top: -18px; left: 50%; width: 2px; height: 18px; background: var(--navy); }
.sitemap__jobs a, .sitemap__jobs span { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; background: var(--white); border: 1.5px solid var(--navy); border-radius: var(--radius); padding: 10px 4px; color: var(--navy); font-weight: 600; font-size: .98rem; line-height: 1.15; text-decoration: none; }
.sitemap__jobs img { width: 52px; height: 52px; margin-top: auto; }
.sitemap__towns { margin-top: 26px; border: 2px dashed var(--navy); border-radius: var(--radius); padding: 14px; display: flex; justify-content: space-around; gap: 10px; flex-wrap: wrap; position: relative; }
.sitemap__towns::before { content: ""; position: absolute; top: -28px; left: 50%; width: 2px; height: 26px; background: var(--navy); }
.chip { display: inline-flex; align-items: center; gap: 8px; background: var(--white); border: 1.5px solid var(--navy); border-radius: var(--radius); padding: 7px 14px; font-weight: 600; color: var(--navy); }
.chip svg { width: 16px; height: 16px; }
.xsection { position: relative; }
.xsection img { width: 100%; }
.xsection ul { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.xsection li { position: absolute; left: -6%; font: 500 .68rem/1 var(--mono); letter-spacing: .04em; color: var(--navy); background: rgba(246,247,249,.85); padding: 2px 3px; white-space: nowrap; }

/* ---------- Pricing ---------- */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.price-card { position: relative; text-align: center; padding: 24px 18px 20px; display: flex; flex-direction: column; }
.price-card h3 { font-family: var(--body); color: var(--navy); font-weight: 600; font-size: 1.45rem; margin: 0 0 6px; }
.price { font: 700 3rem/1 var(--display); color: var(--navy); margin: 0 0 14px; }
.price sup { font-size: .5em; vertical-align: top; position: relative; top: .25em; margin-right: 2px; }
.price-card .pages { border-top: 2px solid var(--navy); padding-top: 12px; margin: 0 auto; width: 80%; font-weight: 500; font-size: 1.1rem; }
.price-card ul { text-align: left; margin: 14px 0 18px; padding-left: 20px; font-size: 1rem; color: var(--muted); }
.price-card .btn { margin-top: auto; }
.price-card.is-featured { border: 2px solid var(--accent); background: var(--peach); padding-top: 38px; }
.price-card.is-featured h3, .price-card.is-featured .price { color: var(--brick); }
.price-card.is-featured .pages { color: var(--accent-dark); border-color: var(--brick); }
.ribbon { position: absolute; top: 0; left: 0; right: 0; background: var(--accent); color: var(--white); font: 700 .85rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; padding: 8px; }
.price-note { text-align: center; margin: 20px 0 0; font-weight: 500; color: var(--muted); }

/* ---------- Comparison table ---------- */
.compare { width: 100%; border-collapse: collapse; background: var(--white); font-size: 1.02rem; }
.compare th, .compare td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; vertical-align: middle; }
.compare thead th { color: var(--white); font: 600 1.15rem var(--body); text-align: center; }
.compare thead th.agency { background: var(--navy); }
.compare thead th.us { background: var(--brick); }
.compare thead td { border: 0; }
.compare tbody th { font-weight: 600; width: 26%; }
.compare tbody td.agency { text-align: center; color: var(--muted); }
.compare tbody td.us { font-weight: 500; }
.compare .tick { display: inline-block; width: 20px; height: 20px; vertical-align: -4px; margin-right: 10px; color: var(--navy); }

/* ---------- Process ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: step; }
.step { position: relative; }
.step + .step::before { content: ""; position: absolute; left: -19px; top: 50%; border: 7px solid transparent; border-left: 9px solid var(--navy); transform: translateY(-50%); }
.step .card { height: 100%; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: start; }
.step h3 { font-family: var(--display); color: var(--navy); font-size: 1.35rem; margin: 4px 0 0; }
.step svg { width: 54px; height: 54px; color: var(--navy); grid-row: span 2; align-self: center; }
.step p { margin: 0; font-size: 1rem; color: var(--muted); }

/* ---------- Ownership band ---------- */
.hp-own { display: grid; grid-template-columns: 1fr 1.4fr 1.6fr; min-height: 300px; border-top: 1px solid var(--line); }
.hp-own__title { background: var(--navy) center/cover; color: var(--white); display: flex; align-items: center; padding: 32px; position: relative; }
.hp-own__title::before { content: ""; position: absolute; inset: 0; background: rgba(23,37,52,.45); }
.hp-own__title h2 { position: relative; color: var(--white); margin: 0; font-size: clamp(2.2rem, 3.6vw, 3rem); }
.hp-own__photo img { width: 100%; height: 100%; object-fit: cover; }
.hp-own__list { padding: 32px 40px; position: relative; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.hp-own__list p { font-size: 1.05rem; color: var(--muted); max-width: 420px; position: relative; z-index: 1; }
.checks { list-style: none; margin: 0; padding: 0; position: relative; z-index: 1; }
.checks li { display: flex; align-items: center; gap: 12px; font-weight: 500; font-size: 1.15rem; padding: 5px 0; }
.checks svg { width: 22px; height: 22px; flex: none; color: var(--navy); }

/* ---------- FAQ + CTA ---------- */
.hp-faqcta { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.hp-faq { padding: 48px var(--gutter) 48px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); display: grid; grid-template-columns: 180px 1fr; gap: 24px; align-items: start; }
.hp-faq h2 { font-size: 1.7rem; }
.faq-list details, .wp-block-details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); margin: 0 0 10px; }
.faq-list summary, .wp-block-details summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; font-weight: 500; }
.faq-list summary::-webkit-details-marker, .wp-block-details summary::-webkit-details-marker { display: none; }
.faq-list summary::after, .wp-block-details summary::after { content: "+"; font: 400 1.5rem/1 var(--body); color: var(--navy); }
.faq-list details[open] summary::after, .wp-block-details[open] summary::after { content: "\2212"; }
.faq-list details > div, .wp-block-details > :not(summary) { padding: 0 14px 12px; margin: 0; color: var(--muted); }
.hp-cta { position: relative; background: var(--navy); color: var(--white); padding: 48px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 48px 48px; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.hp-cta__map { position: absolute; right: -40px; top: 50%; transform: translateY(-50%); width: 72%; opacity: .55; }
.hp-cta > *:not(.hp-cta__map) { position: relative; z-index: 1; }
.hp-cta h2 { color: var(--white); font-size: clamp(2.2rem, 3.6vw, 3.2rem); max-width: 380px; }
.hp-cta p { max-width: 380px; }
.hp-cta .btn { align-self: flex-start; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #cfd6df; position: relative; overflow: hidden; }
.site-footer .wrap { position: relative; z-index: 1; padding-top: 32px; padding-bottom: 20px; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; }
.footer-brand .brand { font-size: 1.3rem; }
.footer-phone { display: block; color: var(--accent); font-weight: 600; font-size: 1.2rem; text-decoration: none; margin-top: 2px; }
.footer-phone:hover { color: #ff8a5c; }
.footer-nav { flex: 1; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: center; }
.footer-nav a { color: var(--white); text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; color: var(--white); }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: .98rem; }
.footer-cols h2 { font: 600 .9rem var(--body); letter-spacing: .08em; text-transform: uppercase; color: #9fb0c4; margin: 0 0 8px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { padding: 2px 0; }
.footer-cols a { color: #e6ebf1; text-decoration: none; }
.footer-cols a:hover { text-decoration: underline; color: var(--white); }
.copyright { text-align: center; font-size: .9rem; margin: 24px 0 0; color: #9fb0c4; }
.footer-deco { position: absolute; right: -30px; bottom: -20px; width: 260px; opacity: .12; filter: invert(1); }

/* ---------- Inner pages (block content) ---------- */
.page-crumbs { font-size: .95rem; color: var(--muted); padding: 14px 0 0; }
.page-crumbs a { color: var(--muted); }
.entry-content > .wp-block-group { margin: 0; }
.entry-content .alignwide { max-width: var(--wrap); margin-left: auto; margin-right: auto; }
.entry-content > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; }
.entry-content > .wp-block-group.is-layout-constrained > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.entry-content > .wp-block-group { max-width: none; }
.entry-content .wp-block-columns { gap: 18px; }
.entry-content .wp-block-list { padding-left: 1.2em; }
.entry-content .wp-block-list li { margin-bottom: 6px; }

/* page hero (block group) */
.pg-hero { background: var(--navy-dark) var(--pg-hero-img, none) center/cover; color: var(--white); position: relative; padding: 64px 0 60px; }
.pg-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,18,24,.92) 0%, rgba(14,18,24,.75) 50%, rgba(14,18,24,.45) 100%); }
.pg-hero > * { position: relative; z-index: 1; }
.pg-hero h1 { color: var(--white); max-width: 760px; }
.pg-hero .lede { font-size: 1.25rem; max-width: 640px; }
.pg-hero .eyebrow { display: inline-block; background: var(--brick); color: var(--white); font: 600 .85rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; padding: 9px 12px; border-radius: 2px; }
.pg-hero .wp-block-buttons { margin-top: 26px; }

.pg-section { padding: 60px 0; position: relative; }
.pg-section + .pg-section { border-top: 1px solid var(--line); }
.pg-section.is-grid { background-color: var(--grid-bg); background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 24px 24px; }
.pg-section h2.is-navy, .is-navy { color: var(--navy); }
.pg-section .intro { font-size: 1.15rem; color: var(--muted); max-width: 760px; }
.pg-split > .wp-block-column:first-child h2 { margin-top: 0; }
.pg-cards .wp-block-column > .card, .pg-cards .card { height: 100%; }
.card h3 { color: var(--navy); margin-top: 0; }
.card .card-icon img, .card .wp-block-image.card-icon img { width: 72px; height: 72px; }
.card .wp-block-image.card-icon { margin: 0 0 10px; }
.card p:last-child { margin-bottom: 0; }
.numbered h3 { display: flex; gap: 10px; align-items: center; }
.pg-checks { list-style: none !important; padding-left: 0 !important; }
.pg-checks li { position: relative; padding-left: 32px; }
.pg-checks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.pg-table table { border-collapse: collapse; width: 100%; background: var(--white); }
.pg-table th, .pg-table td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.pg-table thead th { background: var(--navy); color: var(--white); }
.pg-table thead th:last-child { background: var(--brick); }
.wp-block-table.pg-table thead { border-bottom: 0; }
.wp-block-table.pg-table figcaption { font-size: .9rem; color: var(--muted); }
.note-box { border-left: 4px solid var(--accent); background: var(--peach); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; }
.pg-cta { background: var(--navy); color: var(--white); padding: 56px 0; text-align: center; position: relative; overflow: hidden; }
.pg-cta h2 { color: var(--white); }
.pg-cta p { max-width: 640px; margin-left: auto; margin-right: auto; }
.pg-cta .wp-block-buttons { justify-content: center; }
.pg-related ul { columns: 2; column-gap: 32px; }
.prose { max-width: 820px; }
.prose h2 { margin-top: 1.4em; }
.price-cards .price-card { height: 100%; }

/* contact form */
.rss-form { display: grid; gap: 14px; max-width: 640px; }
.rss-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rss-form label { display: block; font-weight: 600; margin-bottom: 4px; }
.rss-form input, .rss-form textarea { width: 100%; font: 400 1.05rem var(--body); padding: 12px; border: 1px solid #9aa1ab; border-radius: var(--radius); background: var(--white); color: var(--ink); }
.rss-form textarea { min-height: 140px; }
.rss-form .hp-field { position: absolute; left: -9999px; }
.form-ok { background: #e9f6ee; border: 1px solid #8fc9a3; padding: 12px 16px; border-radius: var(--radius); }
.contact-ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

/* ---------- Motion (subtle, key moments) ---------- */
html.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease-out, transform .5s ease-out; }
html.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	html.js .reveal { opacity: 1; transform: none; transition: none; }
	.btn, .wp-block-button__link { transition: none; }
	.btn:hover, .wp-block-button__link:hover { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.main-nav a { padding: 8px 8px; }
	.cards-6 { grid-template-columns: repeat(3, 1fr); }
	.pages-wrap { grid-template-columns: 1fr; }
	.xsection { display: none; }
	.sitemap__jobs { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
}
@media (max-width: 960px) {
	.nav-toggle { display: inline-block; }
	.header-cta { display: none; }
	.main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--brick-dark); }
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; padding: 8px var(--gutter) 16px; }
	.split { grid-template-columns: 1fr; gap: 20px; }
	.cards-4 { grid-template-columns: repeat(2, 1fr); }
	.steps { grid-template-columns: repeat(2, 1fr); }
	.step + .step::before { display: none; }
	.hp-own { grid-template-columns: 1fr 1fr; }
	.hp-own__list { grid-column: 1 / -1; }
	.hp-faqcta { grid-template-columns: 1fr; }
	.hp-faq { padding: 40px var(--gutter); }
	.hp-cta { padding: 48px var(--gutter); }
	.facts { grid-template-columns: repeat(3, 1fr); }
	.facts li:nth-child(4) { border-left: 0; }
	.footer-cols { grid-template-columns: 1fr 1fr; }
	.contact-ways { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	:root { --gutter: 16px; }
	body { font-size: 17px; }
	.brand { font-size: 1.2rem; }
	.brand svg { width: 36px; height: 22px; }
	.hp-hero .wrap { padding-top: 48px; padding-bottom: 56px; }
	.hp-hero::before { background: linear-gradient(180deg, rgba(14,18,24,.82) 0%, rgba(14,18,24,.78) 100%); }
	.btn-row .btn { width: 100%; }
	.facts { grid-template-columns: 1fr 1fr; }
	.facts li { border-left: 0 !important; border-top: 1px solid var(--line); }
	.facts li:last-child { grid-column: 1 / -1; }
	.cards-4, .cards-6 { grid-template-columns: 1fr 1fr; }
	.sitemap__jobs { grid-template-columns: 1fr 1fr; }
	.prices { grid-template-columns: 1fr; }
	.compare { font-size: .92rem; }
	.compare th, .compare td { padding: 8px; }
	.compare .tick { display: none; }
	.steps { grid-template-columns: 1fr; }
	.hp-own { grid-template-columns: 1fr; }
	.hp-own__title { min-height: 160px; }
	.hp-faq { grid-template-columns: 1fr; }
	.hp-cta__map { width: 120%; right: -30%; }
	.footer-cols { grid-template-columns: 1fr; }
	.rss-form .row { grid-template-columns: 1fr; }
	.pg-related ul { columns: 1; }
	.pg-table { overflow-x: auto; }
}
.problem-card__text { font-size: .95rem; color: var(--muted); margin: 10px 0 12px; line-height: 1.4; }

.mobile-cta { display: none; }
@media (max-width: 640px) {
	.mobile-cta { display: grid; grid-template-columns: 1.4fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; box-shadow: 0 -2px 10px rgba(0,0,0,.18); }
	.mobile-cta a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; font: 600 1.1rem var(--body); text-decoration: none; }
	.mobile-cta svg { width: 20px; height: 20px; }
	.mobile-cta__call { background: var(--accent-dark); color: var(--white); }
	.mobile-cta__text { background: var(--navy); color: var(--white); }
	.mobile-cta a:hover { color: var(--white); }
	body { padding-bottom: 56px; }
}
.trust-closer { font-size: .98rem; opacity: .9; margin-top: 14px; }

/* ---------- Fidelity pass 1 ---------- */
h1, h2, .hp-hero h1 { -webkit-text-stroke: .6px currentColor; }
.hp-hero .wrap { max-width: 1320px; }
.hp-hero h1 { font-size: clamp(2.6rem, 5.2vw, 4.6rem); line-height: 1.02; }
.hp-hero .btn { font-size: 1.25rem; padding: 16px 28px; }
.facts li { padding: 30px 8px; font-size: 1.18rem; gap: 14px; }
.facts svg { width: 54px; height: 54px; }
.split { grid-template-columns: minmax(240px, 2.6fr) 7.4fr; }
.split__head h2, .pages-wrap h2 { font-size: clamp(2.3rem, 4vw, 3.5rem); line-height: 1.02; }
.h-big { display: block; font-size: 1.25em; }
.hp-faq h2 { font-size: 2rem; }
.service-card { padding: 18px 10px 14px; }
.service-card h3 { font-size: 1.15rem; }
.service-card img { width: 112px; height: 112px; }
.problem-card img { width: 140px; height: 140px; }
.problem-card h3 { font-size: 1.2rem; }
.pricing-head { text-align: center; padding-left: 60px; }
.price { font-size: 3.8rem; }
.price-card h3 { font-size: 1.6rem; }
.compare { font-size: 1.12rem; }
.compare .tick { width: 24px; height: 24px; }
.compare th, .compare td { padding: 12px 16px; }
/* process: number + title on top, icon left of text */
.split.process { grid-template-columns: minmax(200px, 2fr) 8fr; }
.step .card { grid-template-columns: 58px 1fr; grid-template-areas: "num title" "icon text"; gap: 10px 14px; padding: 18px 16px; }
.step .num { grid-area: num; }
.step h3 { grid-area: title; }
.step svg { grid-area: icon; grid-row: auto; width: 54px; height: 54px; }
.step p { grid-area: text; font-size: 1.02rem; }
/* own: filled navy checks */
.checks .ck { width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.hp-own__title h2 { font-size: clamp(2.6rem, 4.2vw, 3.6rem); }
.hp-own__list .deco { opacity: .6 !important; }
/* CTA map blends into navy */
.hp-cta__map { mix-blend-mode: lighten; opacity: .9; }
/* cross-section labels to the left with leader lines */
.pages-wrap { grid-template-columns: minmax(220px, 2.6fr) 6fr 2.6fr; }
.xsection { padding-left: 46%; }
.xsection ul { left: 0; right: auto; width: 100%; }
.xsection li { left: 0; background: none; padding: 0; display: flex; align-items: center; gap: 4px; font-size: .62rem; width: 56%; }
.xsection li::after { content: ""; flex: 1; height: 1px; background: var(--navy); }
.hand-note { margin: 14px 0 16px; }
.pages-text { color: var(--muted); font-size: 1.02rem; }
@media (max-width: 960px) {
	.split.process { grid-template-columns: 1fr; }
	.pricing-head { padding-left: 0; }
}
@media (max-width: 640px) {
	.hp-hero::before { background: linear-gradient(180deg, rgba(14,18,24,.72) 0%, rgba(14,18,24,.55) 100%); }
	.hp-hero__img { object-position: 78% 50%; }
	section[data-section="06-pricing"] .deco { display: none; }
	.footer-top { flex-direction: column; align-items: flex-start; }
	.footer-nav ul { justify-content: flex-start; gap: 8px 20px; }
	.split__head h2, .pages-wrap h2 { font-size: 2.3rem; }
}

/* ---------- Fidelity pass 2 ---------- */
.home .wrap { max-width: 1320px; }
.facts { max-width: 1320px; }
.facts li { padding: 44px 8px; font-size: 1.3rem; gap: 16px; }
.facts svg { width: 66px; height: 66px; }
@media (min-width: 961px) {
	.split { grid-template-columns: 3.4fr 6.6fr; gap: 36px; }
	.split.process { grid-template-columns: 2.3fr 7.7fr; }
	.pages-wrap { grid-template-columns: 3fr 5.4fr 3.2fr; }
	.pricing-head { text-align: left; padding-left: 70px; }
}
.compare { font-size: 1.22rem; }
.compare .tick { width: 28px; height: 28px; }
.compare tbody th { font-size: 1.2rem; }
.hp-faq { grid-template-columns: 240px 1fr; }
.hp-faq h2 { font-size: 2.1rem; }
@media (max-width: 960px) {
	.split, .split.process, .pages-wrap { grid-template-columns: 1fr; }
	.facts li { padding: 26px 8px; font-size: 1.15rem; }
	.facts svg { width: 48px; height: 48px; }
}
@media (max-width: 640px) {
	.hp-faq { grid-template-columns: 1fr; }
	.compare { font-size: 1rem; }
	.compare tbody th { font-size: 1rem; }
}

/* ---------- Fidelity pass 3 ---------- */
.facts li { padding: 52px 8px; font-size: 1.45rem; }
.facts svg { width: 80px; height: 80px; stroke-width: 1.3; }
@media (min-width: 961px) {
	.split.process { grid-template-columns: 1.7fr 8.3fr; gap: 28px; }
	.steps { gap: 22px; }
	.hp-faq { grid-template-columns: 200px 1fr; }
}
.step .card { grid-template-columns: 46px 1fr; padding: 16px 14px; }
.step svg { width: 46px; height: 46px; }
.step p { font-size: .98rem; line-height: 1.4; }
@media (max-width: 960px) {
	.facts li { padding: 26px 8px; font-size: 1.15rem; }
	.facts svg { width: 52px; height: 52px; }
}

/* ---------- Inner page hero photo variants ---------- */
.pg-hero.bg-truck { --pg-hero-img: url(assets/images/pg-truck.webp); }
.pg-hero.bg-storm { --pg-hero-img: url(assets/images/pg-storm.webp); }
.pg-hero.bg-metal { --pg-hero-img: url(assets/images/pg-metal.webp); }
.pg-hero.bg-flat { --pg-hero-img: url(assets/images/pg-flat.webp); }
.pg-hero.bg-tile { --pg-hero-img: url(assets/images/pg-tile.webp); }
.pg-hero.bg-laptop { --pg-hero-img: url(assets/images/pg-laptop.webp); }
.pg-hero.bg-aerial { --pg-hero-img: url(assets/images/pg-aerial.webp); }
.pg-hero.bg-roofer { --pg-hero-img: url(assets/images/hero.webp); }

/* ---------- Block page template (Stage 4) ---------- */
.rss-block-page .entry-content > .wp-block-group > *,
.rss-block-page .entry-content > .wp-block-group.is-layout-constrained > * { max-width: 1320px; margin-left: auto !important; margin-right: auto !important; padding-left: var(--gutter); padding-right: var(--gutter); box-sizing: border-box; }
.rss-block-page .entry-content > .pg-faqcta > * { max-width: none; padding-left: 0; padding-right: 0; }
.rss-block-page .entry-content > .pg-faqcta > .wp-block-group > * { max-width: 1320px; margin-left: auto !important; margin-right: auto !important; padding-left: var(--gutter); padding-right: var(--gutter); }
.pg-hero { padding: 26px 0 72px; min-height: 440px; display: flex; flex-direction: column; justify-content: center; }
.pg-hero .crumbs { font-size: .95rem; margin: 0 0 28px; color: #d5dbe3; }
.pg-hero .crumbs a { color: #fff; }
.pg-hero .eyebrow { margin: 0 0 18px; width: fit-content; margin-left: 0; }
.pg-hero h1 { font-size: clamp(2.4rem, 4.6vw, 4rem); line-height: 1.04; max-width: 680px; margin-bottom: 18px; }
.pg-hero .lede { font-size: 1.25rem; max-width: 560px; }
.pg-hero .wp-block-buttons { gap: 16px; }
.pg-hero .wp-block-button__link, .pg-cta .wp-block-button__link { font-size: 1.2rem; padding: 15px 26px; }
.rss-block-page .entry-content > .pg-hero > p.eyebrow { margin-left: max(var(--gutter), calc((100% - 1320px) / 2 + var(--gutter))) !important; padding: 9px 12px; }
.pg-section { padding: 64px 0; }
.pg-section h2 { font-size: clamp(2.1rem, 3.6vw, 3.1rem); line-height: 1.04; }
.pg-split { gap: 40px !important; align-items: flex-start; }
.pg-split .wp-block-column > p:first-of-type { margin-top: 0; }
.pg-split .pg-checks li { font-size: 1.12rem; font-weight: 500; margin-bottom: 10px; }
.pg-cards { gap: 16px !important; align-items: stretch !important; }
.pg-cards > .wp-block-column { display: flex; }
.pg-cards > .wp-block-column > .card { flex: 1; }
.card.numbered h3 { display: flex; gap: 10px; align-items: center; color: var(--ink); font-family: var(--body); font-weight: 600; font-size: 1.25rem; }
.card.numbered .num { width: 34px; height: 34px; font-size: 1.1rem; }
.card.numbered p { font-size: 1rem; color: var(--muted); }
.card .wp-block-image.card-icon { margin: 0 0 12px; }
.card .wp-block-image.card-icon img { width: 84px !important; height: 84px !important; }
.plan-card { padding: 22px; }
.plan-card .wp-block-table { margin: 0; }
.plan-card table { font-size: 1.1rem; }
.plan-card thead th { background: var(--navy); color: #fff; }
.plan-card td:last-child { font-family: var(--mono); font-size: .95rem; color: var(--brick); }
.pg-section .hand-note { font-family: var(--hand); font-size: 1.6rem; color: var(--navy); }
.price-cards { gap: 18px !important; }
.price-cards > .wp-block-column { display: flex; }
.price-cards .price-card { flex: 1; text-align: center; }
.price-cards .price-card ul { text-align: left; }
.price-cards .price-card .wp-block-buttons { justify-content: center; margin-top: auto; }
.price-card .ribbon { margin: 0; }
.price-note, .center { text-align: center; }
.pg-faqcta { padding: 0; }
.pg-faq { padding: 56px 0; }
.pg-faq h2 { font-size: 2.2rem; }
.pg-faq .wp-block-details { margin-bottom: 10px; }
.pg-faq .wp-block-details summary { font-size: 1.1rem; }
.pg-cta { background: var(--navy) url(assets/images/usmap.webp) right -40px center / 55% auto no-repeat; background-blend-mode: lighten; padding: 64px 0; text-align: left; }
.pg-cta h2 { color: #fff; font-size: clamp(2.4rem, 4vw, 3.4rem); }
.pg-cta p { margin-left: 0; color: #e6ebf1; }
.pg-cta .wp-block-buttons { justify-content: flex-start; gap: 14px; }
.pg-related ul { columns: 3; }
.pg-related { padding: 44px 0; }
.pg-related h2 { font-size: 1.6rem; }
@media (max-width: 781px) {
	.pg-hero { min-height: 0; padding: 20px 0 48px; }
	.pg-cta { background-size: 120% auto; background-position: center; }
	.pg-related ul { columns: 1; }
	.pg-split { gap: 12px !important; }
}

/* ---------- Template fidelity pass 1 ---------- */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.pg-hero { background: var(--navy-dark) var(--pg-hero-img, none) right center / auto 100% no-repeat; }
.pg-hero::before { background: linear-gradient(90deg, #11161d 0%, #11161d 34%, rgba(17,22,29,.75) 48%, rgba(17,22,29,.05) 70%, rgba(17,22,29,0) 100%); }
.rss-block-page .entry-content > .pg-hero > * { max-width: 1320px !important; width: 100%; }
.pg-hero h1, .pg-hero .lede { padding-right: max(var(--gutter), calc(100% - 700px)) !important; }
.pg-hero h1 { font-size: clamp(2.6rem, 4.8vw, 4.3rem); }
.pg-hero .eyebrow { background: none; padding: 0; margin: 0 auto 18px !important; text-transform: none; letter-spacing: 0; display: block; }
.pg-hero .eyebrow span { display: inline-block; background: var(--brick); color: #fff; font: 600 .85rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; padding: 9px 12px; border-radius: 2px; }
.rss-block-page .entry-content > .pg-hero > p.eyebrow { margin-left: auto !important; padding: 0 var(--gutter); }
.pg-section .lead { font-size: 1.2rem; color: var(--ink); }
.pg-split.three { align-items: center; }
.deco-sketch img { opacity: .55; mix-blend-mode: multiply; max-width: 260px; }
.deco-xsection img { mix-blend-mode: multiply; }
h2.center, .center { text-align: center; }
.card.numbered.has-icon { text-align: center; display: flex; flex-direction: column; }
.card.numbered.has-icon h3 { justify-content: flex-start; text-align: left; }
.card .wp-block-image.line-icon { margin: 8px auto 14px; }
.card .wp-block-image.line-icon img { width: 96px; height: 96px; }
.card.numbered.has-icon p { font-size: 1.08rem; }
.plan-card thead th { background: #fff; color: var(--ink); font-weight: 600; font-size: 1.15rem; border-bottom: 2px solid var(--navy); }
.plan-card td:last-child { font-family: var(--body); font-size: 1.08rem; color: var(--ink); }
.plan-card td, .plan-card th { border-color: var(--line); }
.plan-card td:first-child, .plan-card th:first-child { border-right: 2px solid var(--navy); }
.pg-table table { word-break: normal; overflow-wrap: normal; }
.hand-note.arrow-left { font-size: 1.9rem; line-height: 1.2; transform: rotate(-6deg); }
.hand-note.arrow-left::after { content: "\2190"; display: block; font-size: 2.4rem; line-height: 1; margin-top: 6px; }
.price-cards.compact .price-card { padding: 22px 14px 16px; }
.price-cards.compact .price-card.is-featured { padding-top: 40px; }
.price-cards.compact .price { font-size: 3.4rem; }
.price-card.is-featured .price { color: var(--brick); }
.price-card.is-featured h3 { color: var(--brick); }
.price-card .ribbon { position: absolute; top: 0; left: 0; right: 0; }
.entry-content .pg-faqcta .pg-faq > *, .entry-content .pg-faqcta .pg-cta > * { max-width: 1320px !important; margin-left: auto !important; margin-right: auto !important; padding-left: var(--gutter) !important; padding-right: var(--gutter) !important; box-sizing: border-box; }
.entry-content .pg-faqcta .pg-cta > h2, .entry-content .pg-faqcta .pg-cta > p { padding-right: max(var(--gutter), calc(100% - 640px)) !important; }
.pg-cta { background-size: 42% auto; background-position: right 8% center; }
@media (max-width: 781px) {
	.pg-hero { background-size: cover; background-position: 70% center; }
	.pg-hero::before { background: rgba(17,22,29,.72); }
	.pg-hero h1, .pg-hero .lede { padding-right: var(--gutter) !important; }
	.pg-cta { background-image: none; }
	.entry-content .pg-faqcta .pg-cta > h2, .entry-content .pg-faqcta .pg-cta > p { padding-right: var(--gutter) !important; }
	.wp-block-table.pg-table { overflow-x: auto; }
	.wp-block-table.pg-table table { min-width: 460px; }
	.deco-xsection, .deco-sketch { display: none; }
	.hand-note.arrow-left::after { content: "\2191"; }
}

/* ---------- Template fidelity pass 2 ---------- */
.pg-hero h1, .pg-hero .lede { padding-right: var(--gutter) !important; }
@media (min-width: 1000px) {
	.pg-hero h1, .pg-hero .lede { padding-right: 48% !important; }
}
.pg-hero { min-height: 460px; padding-bottom: 64px; }
.rss-block-page .entry-content > .pg-hero > p.eyebrow, .rss-block-page .entry-content > .pg-hero > p.crumbs { margin-left: auto !important; margin-right: auto !important; padding: 0 var(--gutter); text-align: left; }
.pg-section .lead { font-size: 1.28rem; }
.pg-split .pg-checks li { font-size: 1.2rem; }
.card .wp-block-image.line-icon { text-align: center; }
.card .wp-block-image.line-icon img { display: block; margin: 0 auto; width: 104px !important; height: 104px !important; }
.card.numbered.has-icon p { color: var(--ink); font-size: 1.12rem; }
.plan-card thead th, .plan-card thead th:last-child { background: #fff !important; color: var(--navy) !important; }
.deco-sketch img { opacity: .8; max-width: 330px; width: 100%; }
.hand-note.arrow-left::after { font-size: 3.4rem; }
.price-cards.compact .price { font-size: 3.7rem; }
.pg-faq .wp-block-details summary { font-size: 1.2rem; padding: 14px 16px; }
@media (max-width: 781px) {
	.wp-block-table.pg-table table { min-width: 0; font-size: .92rem; }
	.wp-block-table.pg-table td, .wp-block-table.pg-table th { padding: 8px; }
}

/* ---------- Template fidelity pass 3: hero (blocks sit inside .wp-block-group__inner-container) ---------- */
.pg-hero h1, .pg-hero .lede { padding-right: 0 !important; }
.pg-hero h1 { max-width: 700px; }
.pg-hero .lede { max-width: 560px; }
.pg-hero .eyebrow { margin: 0 0 18px !important; padding: 0 !important; }
.pg-hero .crumbs { padding: 0 !important; }

/* ---------- Template: type size bump ---------- */
.pg-split .pg-checks li { font-size: 1.28rem; }
.plan-card table { font-size: 1.2rem; }
.plan-card td:last-child { font-size: 1.2rem; }
.price-cards.compact .price { font-size: 4.2rem; }
.price-cards.compact .price-card h3 { font-size: 1.8rem; }
.pg-faq .wp-block-details summary { font-weight: 600; }
.pg-hero { background-size: auto 120%; background-position: right -40px center; }
@media (max-width: 781px) {
	.hand-note.arrow-left { margin-top: 8px; }
	.hand-note.arrow-left::after { display: none; }
	.plan-card table, .plan-card td:last-child { font-size: .95rem; }
}

/* ---------- QA: keyword H1 on homepage (eyebrow is the H1, headline keeps its look) ---------- */
.hp-hero h1.label-brick { font: 600 .85rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--white); -webkit-text-stroke: 0; margin: 0 0 22px; }
.hp-hero__title { font-family: var(--display); font-weight: 700; color: var(--white); font-size: clamp(2.6rem, 5.2vw, 4.6rem); line-height: 1.02; letter-spacing: -0.01em; -webkit-text-stroke: .6px currentColor; margin: 0 0 22px; }
/* ---------- QA: AA contrast on orange buttons (4.5:1) ---------- */
:root { --accent: #cf4a14; --accent-dark: #b53d0f; }

/* ---------- Bulk QA fixes ---------- */
h1, .hp-hero__title { text-wrap: balance; }
.card.has-icon { text-align: center; }
.card.has-icon a strong { display: inline-block; margin-top: 8px; }
.card.cta-card { background: var(--peach); border-color: var(--accent); }
.card.cta-card .wp-block-buttons { margin-top: 10px; }
.rss-form { max-width: none; }
@media (max-width: 781px) {
	.wp-block-table.pg-table.wide { overflow-x: auto; -webkit-overflow-scrolling: touch; }
	.wp-block-table.pg-table.wide table { min-width: 640px; }
	.wp-block-table.pg-table.wide::after { content: "Swipe sideways to see the whole table \2192"; display: block; font-size: .85rem; color: var(--muted); padding-top: 6px; position: sticky; left: 0; }
}

/* ---------- Referral page polish (applies site-wide) ---------- */
.plan-card td:first-child, .plan-card th:first-child { border-right: 1px solid var(--line); }
.card.numbered.has-icon h3 { justify-content: center; text-align: center; }
.pg-related ul { list-style: none; padding-left: 0 !important; display: flex; flex-wrap: wrap; gap: 10px; columns: auto; }
.pg-related li { margin: 0 !important; }
.pg-related li a { display: inline-block; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 14px; background: #fff; text-decoration: none; font-weight: 500; }
.pg-related li a:hover { border-color: var(--navy); }
@media (max-width: 781px) {
	.plan-card table, .plan-card td:last-child { font-size: 1rem; }
}
