/*
Theme Name: DirectBuy
Theme URI: https://directbuyfurnace.ca
Author: DirectBuy Furnace Ltd.
Description: Block theme for DirectBuy Furnace. Design tokens live in theme.json.
Version: 0.6.1
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: directbuy
*/

/* ==========================================================================
   Block shims

   assets/css/design.css is the ported design and is treated as read-only —
   it should keep matching the source build. Core blocks wrap their output in
   extra elements that the original hand-written markup didn't have, so the
   rules below reconcile the two. Everything here exists because of a block
   wrapper, not because of a design decision.
   ========================================================================== */

/* Core blocks add margins the design sets itself. */
.site-header .wp-block-group,
.footer .wp-block-group { margin-block: 0; }

/* --- Header ------------------------------------------------------------- */

/* The design expects .container to do the width work; the group adds padding. */
.site-header .container,
.footer .container { padding-inline: 0; }

/* wp:site-logo wraps the img, so .brand img needs to reach through it. */
.brand .wp-block-site-logo,
.brand .wp-block-site-logo a { display: flex; align-items: center; }
/* 98.6px tall: the 2026-11-27 logo (tagline +20%) is 301x197, a little taller than
   the old 300x193; this keeps the circles and name at their previous size. */
.brand .wp-block-site-logo img { width: 211.4px; height: 98.6px; object-fit: contain; }

/* The menus (desktop, mobile panel, top strip) are styled in the
   "Navigation" section further down. */

/* wp:buttons wraps the anchor, so .btn has to apply to the inner element. */
.header-quote .wp-block-button__link,
.header-quote-wrap .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	min-height: 45px;
	padding: 0 19px;
	border-radius: 0;
	background: #d70000;
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .025em;
	text-transform: uppercase;
	transition: background-color .2s ease, transform .2s ease;
}
.header-quote .wp-block-button__link:hover,
.header-quote-wrap .wp-block-button__link:hover { background: #b90000; transform: translateY(-2px); }

/* --- Footer ------------------------------------------------------------- */

/* Two columns: the logo alone on the left; name, address, phone, email and
   the Contact link on the right (the Heating / Cooling & Air / Company link
   groups were removed). */
.footer .footer-main { grid-template-columns: 1fr auto; gap: 48px; }
.footer .footer-details p { margin: 0; }

/* .footer-logo sized the <img> directly; it's a wrapper in the block version. */
.footer .footer-logo { width: auto; margin-bottom: 0; }
.footer .footer-logo .wp-block-site-logo { width: 172px; margin-bottom: 19px; }
.footer .footer-logo .wp-block-site-logo img { width: 172px; height: auto; }

/* The design styles h3 in the footer; the part uses h4 for heading order. */
.footer h4 { color: #fff; font-size: 19px; margin: 0 0 18px; }

/* wp:list adds list semantics the flex column layout doesn't expect. */
.footer .footer-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer .footer-bottom p { margin: 0; max-width: none; font-size: 12px; color: #8f9ba0; }

@media (max-width: 980px) {
	.footer .footer-main { grid-template-columns: 1fr auto; gap: 36px; }
	.footer .footer-main > div:first-child { grid-column: auto; }
}
@media (max-width: 560px) {
	.footer .footer-main { grid-template-columns: 1fr; }
}

/* --- Gravity Forms inside the quote card -------------------------------- */

/* The design styled hand-written .form-stack / .field markup: a single
   column, icon inside each control, label visually hidden, placeholder as
   the visible prompt. Gravity Forms emits its own structure with its
   framework styles off, so these rules reproduce that result.

   Placeholders are set on the form itself (form id 4), so hiding the labels
   here does not leave fields unlabelled — the label stays in the accessibility
   tree for screen readers. */

.quote-card .gform_wrapper { margin: 0; }
.quote-card .gform_heading { display: none; }

/* Single column, matching .form-stack at >=961px. */
.quote-card .gform_fields {
	display: grid !important;
	grid-template-columns: 1fr !important;
	gap: 12px !important;
}
.quote-card .gfield { grid-column: 1 / -1; position: relative; min-width: 0; }

/* Labels drive the accessibility tree; the placeholder is the visible prompt. */
.quote-card .gfield_label {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.quote-card .ginput_container,
.quote-card .fluentform .ff-el-input--content { position: relative; }

/* Icon sits where the design put .quote-field-icon: 14px from the left.
   Each icon rule also covers the Fluent Forms version of the field
   (.ff-el-input--content), see "Fluent Forms inside the quote card" below. */
.quote-card .ginput_container::before,
.quote-card .fluentform .ff-el-input--content::before {
	content: "";
	position: absolute;
	top: 17px;
	left: 14px;
	width: 21px;
	height: 21px;
	background-repeat: no-repeat;
	background-size: 21px 21px;
	pointer-events: none;
	z-index: 1;
}
.quote-card .q-name .ginput_container::before,
.quote-card .fluentform .q-name .ff-el-input--content::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2309182c' stroke-width='2.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}
.quote-card .q-phone .ginput_container::before,
.quote-card .fluentform .q-phone .ff-el-input--content::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2309182c' stroke-width='2.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
}
.quote-card .q-msg .ginput_container::before,
.quote-card .fluentform .q-msg .ff-el-input--content::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2309182c' stroke-width='2.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
}

.quote-card .ginput_container input,
.quote-card .ginput_container textarea {
	width: 100%;
	min-width: 0;
	height: 55px;
	min-height: 55px;
	padding: 15px 12px 15px 47px;
	border: 1px solid #bcc1c5;
	border-radius: 5px;
	background: #fff;
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .06);
	color: #263035;
	font-family: inherit;
	font-size: 15px;
	line-height: 23px;
	outline: none;
	transition: border-color .2s, box-shadow .2s;
}
.quote-card .ginput_container textarea { height: 55px; resize: vertical; }
.quote-card .ginput_container input::placeholder,
.quote-card .ginput_container textarea::placeholder { color: #50575e; opacity: 1; }
.quote-card .ginput_container input:focus,
.quote-card .ginput_container textarea:focus {
	border-color: #397986;
	box-shadow: 0 0 0 2px rgba(57, 121, 134, .15);
}

.quote-card .gform_footer { margin: 1px 0 0; padding: 0; }
.quote-card .gform_button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 68px;
	height: auto;
	padding: 9px 7px;
	border: 0;
	border-radius: 5px;
	background: #d70000;
	color: #fff;
	font-family: 'Barlow Condensed', Impact, sans-serif;
	font-size: 32px;
	font-weight: 800;
	letter-spacing: -.015em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color .2s ease, transform .2s ease;
}
.quote-card .gform_button:hover { background: #b90000; transform: translateY(-2px); }

.quote-card .gfield_validation_message,
.quote-card .validation_message {
	margin-top: 3px;
	padding: 0;
	border: 0;
	background: none;
	color: #b90000;
	font-size: 11px;
}
.quote-card .gform_validation_errors {
	margin: 0 0 12px;
	padding: 10px 12px;
	border: 1px solid #f0c3c3;
	border-radius: 5px;
	background: #fdf3f3;
	box-shadow: none;
	color: #8f1b1b;
	font-size: 12px;
}
.quote-card .gform_validation_errors h2 { margin: 0; font-size: 13px; }
.quote-card .gform_confirmation_message {
	padding: 28px 4px;
	color: #526167;
	font-size: 15px;
	line-height: 1.55;
}

/* theme.json sets a global heading colour, which wins over the design's
   white-on-navy card header. Restore it for the quote card. */
.quote-card .quote-top h2 { color: #fff; }

/* Gravity Forms' own gravity-theme stylesheet sets input padding with higher
   specificity than the rules above, which put the icon on top of the
   placeholder. Match its selector weight to win cleanly. */
.quote-card .gform_wrapper.gravity-theme .gfield input,
.quote-card .gform_wrapper.gravity-theme .gfield textarea {
	padding: 15px 12px 15px 47px;
	height: 55px;
	min-height: 55px;
	border: 1px solid #bcc1c5;
	border-radius: 5px;
	font-size: 15px;
	line-height: 23px;
}
/* The design sizes the message box like the other controls — one line that
   the visitor can drag taller if they need to. */
.quote-card .gform_wrapper.gravity-theme .gfield textarea {
	height: 55px;
	min-height: 55px;
	overflow-y: auto;
}

/* --- Fluent Forms inside the quote card --------------------------------- */

/* Same look as the Gravity Forms rules above, for the Fluent Forms version
   of the homepage form (Fluent form 5; fields carry q-name / q-phone / q-msg).
   Selectors are one step heavier than Fluent's own stylesheet and its inline
   button colour rule, so no !important is needed. Icons: see the ::before
   rules above. Safe to keep while the homepage still uses Gravity. */
.quote-card .fluentform { margin: 0; }
.quote-card .fluentform .ff-el-group { position: relative; min-width: 0; margin: 0 0 12px; }

.quote-card .fluentform .ff-el-input--label {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.quote-card .fluentform .ff-el-group .ff-el-form-control {
	display: block;
	width: 100%;
	min-width: 0;
	height: 55px;
	min-height: 55px;
	padding: 15px 12px 15px 47px;
	border: 1px solid #bcc1c5;
	border-radius: 5px;
	background: #fff;
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .06);
	color: #263035;
	font-family: inherit;
	font-size: 15px;
	line-height: 23px;
	outline: none;
	transition: border-color .2s, box-shadow .2s;
}
.quote-card .fluentform .ff-el-group textarea.ff-el-form-control { resize: vertical; overflow-y: auto; }
.quote-card .fluentform .ff-el-group .ff-el-form-control::placeholder { color: #50575e; opacity: 1; }
.quote-card .fluentform .ff-el-group .ff-el-form-control:focus {
	border-color: #397986;
	box-shadow: 0 0 0 2px rgba(57, 121, 134, .15);
}
.quote-card .fluentform .ff-el-is-error .ff-el-form-control { border-color: #b90000; }

/* Spacing measured from the Gravity version: 29px from the message box to
   the button, 37px from the button to the privacy line (which adds 13px). */
.quote-card .fluentform .ff_submit_btn_wrapper { margin: 29px 0 24px; padding: 0; }
.quote-card .fluentform .ff_submit_btn_wrapper .ff-btn-submit:not(.ff_btn_no_style) {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 68px;
	height: auto;
	padding: 9px 7px;
	border: 0;
	border-radius: 5px;
	background: #d70000;
	color: #fff;
	font-family: 'Barlow Condensed', Impact, sans-serif;
	font-size: 32px;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -.015em;
	text-transform: uppercase;
	cursor: pointer;
	opacity: 1;
	transition: background-color .2s ease, transform .2s ease;
}
.quote-card .fluentform .ff_submit_btn_wrapper .ff-btn-submit:not(.ff_btn_no_style):hover {
	background: #b90000;
	transform: translateY(-2px);
}

.quote-card .fluentform .ff-el-is-error .text-danger,
.quote-card .fluentform .error {
	margin-top: 3px;
	color: #b90000;
	font-size: 11px;
}
.quote-card .ff-errors-in-stack:not(:empty) {
	margin: 12px 0 0;
	padding: 10px 12px;
	border: 1px solid #f0c3c3;
	border-radius: 5px;
	background: #fdf3f3;
	color: #8f1b1b;
	font-size: 12px;
}

/* --- Review card source label ------------------------------------------ */

/* "Google review · 9 months ago" read too small at design.css's 11px. */
.review-source { gap: 8px; font-size: 14px; }
.review-source .google-g { font-size: 20px; }
.review-source-dot { width: 4px; height: 4px; }

/* --- Hero Google reviews badge ------------------------------------------ */

/* The source component styled this with Tailwind utilities, which the CSS
   port didn't carry over (design.css holds only the hand-written styles).
   These rules reproduce those utilities one-for-one. */

.gr-badge-link { display: inline-block; border-radius: 9999px; margin-bottom: 16px; }
.gr-badge-link:focus-visible { outline: 2px solid #b91c1c; outline-offset: 2px; }

.gr-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 16px;
	border: 1px solid #9ca3af;
	border-radius: 9999px;
	background: #fff;
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
}
.gr-badge-link:hover .gr-badge { border-color: #6b7280; }

.gr-logo { flex: 0 0 auto; width: 28px; height: 28px; }

.gr-stars { display: inline-flex; align-items: center; gap: 2px; }
.gr-stars svg { width: 14px; height: 14px; fill: #facc15; }

.gr-score { color: #1f2937; }
.gr-dot { color: #9ca3af; }
.gr-count { color: #4b5563; }

@media (max-width: 420px) {
	.gr-badge { gap: 6px; padding: 5px 12px; font-size: 13px; }
	.gr-logo { width: 22px; height: 22px; }
}

/* WordPress inserts blockGap as margin-block-start between the top-level
   template blocks, which opened a 24px band between the sticky header and
   the hero. Every section in this design carries its own vertical padding,
   so the template level needs no gap at all. */
.wp-site-blocks > * { margin-block-start: 0; }

/* --- FAQ accordion ------------------------------------------------------ */

/* The source used a React button toggle. <details> gives the same behaviour
   with no JavaScript, so these rules map the design onto its elements. */
.faq-item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	cursor: pointer;
	list-style: none;
	/* These four match .faq-item button in design.css. */
	padding: 22px 0;
	color: #253136;
	font-size: 17px;
	font-weight: 800;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { flex: 0 0 auto; color: #c60000; transition: transform .2s ease; }
.faq-item[open] summary svg { transform: rotate(45deg); }

/* --- Icons -------------------------------------------------------------- */

/* Lucide icons inherit colour; the design relied on that. */
.dbf-icon { flex: 0 0 auto; }
.service-icon .dbf-icon { color: #d70000; }
.trust-item .dbf-icon { color: #316e78; }
.step-icon .dbf-icon,
.why-point .dbf-icon { color: currentColor; }
.btn .dbf-icon { stroke-width: 2.2; }

/* --- Headings on dark sections ------------------------------------------ */

/* theme.json sets a global heading colour, which beats the `color: #fff` that
   these sections set on themselves and expect headings to inherit. Listing
   them explicitly is better than dropping the global colour, which would
   leave headings unstyled in the editor. */
.band h1, .band h2, .band h3,
.why-section h1, .why-section h2, .why-section h3,
.final-cta h1, .final-cta h2, .final-cta h3,
.quote-card .quote-top h2,
.footer h1, .footer h2, .footer h3, .footer h4,
.site-header h1, .site-header h2 {
	color: inherit;
}

/* The accent spans inside those headings keep their own colours. */
.why-section .teal { color: #76b8bb; }
.band .red, .why-section .red, .final-cta .red { color: #ff6b6b; }

/* Privacy note under the quote form: icon and text on one line. */
.quote-card .privacy {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	margin: 13px 0 0;
	font-size: 12px;
	line-height: 1.3;
	white-space: nowrap;
	color: #687277;
}
.quote-card .privacy .dbf-icon { flex: 0 0 auto; color: #9d7521; stroke-width: 2.2; }

/* reCAPTCHA notice (inc/recaptcha-notice.php): required once the floating
   badge is hidden. Under the quote card's privacy line and the /contact/ form. */
.recaptcha-notice {
	margin: 10px 0 0;
	font-size: 11px;
	line-height: 1.45;
	color: #687277;
}
.recaptcha-notice a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.recaptcha-notice a:hover { color: #d70000; }
.quote-card .recaptcha-notice { margin-top: 8px; text-align: center; }
.wp-block-post-content .recaptcha-notice { margin-top: 14px; font-size: 12px; }

/* Logo left, phone right, nav centred in the space between them.
   The source pushed both nav and phone right with `margin-left: auto`,
   which the removed quote button used to balance. Giving the nav flex:1
   instead lets it centre itself while the logo and phone hold the edges. */
.site-header .desktop-nav {
	flex: 1 1 auto;
	min-width: 0;
	margin-left: 0;
	justify-content: center;
}
.site-header .header-actions { flex: 0 0 auto; margin-left: 0; }

/* --- Map band above the footer ------------------------------------------ */

.map-section { background: #e8eeed; padding: 72px 0; }
.map-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	gap: clamp(28px, 4vw, 60px);
	align-items: center;
}
.map-copy h2 { font-size: clamp(32px, 3.4vw, 46px); line-height: .95; margin: 14px 0 18px; }
.map-copy address {
	font-style: normal;
	font-size: 16px;
	line-height: 1.65;
	color: #42505a;
}
.map-contact { display: grid; gap: 8px; margin: 18px 0 24px; }
.map-contact a {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-weight: 700;
	font-size: 15px;
	color: #1e222a;
}
.map-contact a:hover { color: #d70000; }
.map-contact .dbf-icon { color: #316e78; }

.map-embed {
	overflow: hidden;
	border-radius: 6px;
	border-top: 5px solid #d70000;
	box-shadow: 0 18px 55px rgba(20, 39, 44, .16);
	line-height: 0;
}
.map-embed iframe { display: block; width: 100%; height: 420px; border: 0; }

@media (max-width: 900px) {
	.map-grid { grid-template-columns: 1fr; }
	.map-embed iframe { height: 320px; }
}

/* --- Sticky header ------------------------------------------------------ */

/* WordPress wraps a template part in its own element, and that wrapper is
   only as tall as the header itself. A sticky child cannot travel outside
   its parent's box, so stickiness has to live on the wrapper. */
.site-header-wrap {
	position: sticky;
	top: 0;
	z-index: 50;
}
.site-header-wrap .site-header { position: static; }

/* --- Header phone hover -------------------------------------------------- */

/* Matches the buttons' lift so the header's two interactive elements behave
   the same way. The number is a link but doesn't look like one, so it needs
   a clear hover response. */
.site-header .header-phone {
	display: inline-flex;
	transition: transform .2s ease, color .2s ease;
	transform-origin: right center;
}
.site-header .header-phone:hover,
.site-header .header-phone:focus-visible {
	transform: translateY(-2px);
	color: #ff6b6b;
}
.site-header .header-phone small { transition: color .2s ease; }
.site-header .header-phone:hover small { color: #d8dee2; }

@media (prefers-reduced-motion: reduce) {
	.site-header .header-phone,
	.btn,
	.gform_button,
	.quote-card .fluentform .ff_submit_btn_wrapper .ff-btn-submit:not(.ff_btn_no_style),
	.gr-badge-link .gr-badge {
		transition: color .2s ease, background-color .2s ease, border-color .2s ease;
	}
	.site-header .header-phone:hover,
	.btn:hover,
	.gform_button:hover,
	.quote-card .fluentform .ff_submit_btn_wrapper .ff-btn-submit:not(.ff_btn_no_style):hover { transform: none; }
}

/* ---------------------------------------------------------------------------
   Homepage service categories

   Six Google Business Profile categories plus a catch-all. Each category
   heading is an H2 linking to its category page; each service beneath is an
   H3 linking to its own page. The source build had no equivalent section, so
   this is written here rather than in design.css, which stays a clean port.

   Borders, icon tile and type sizes are taken from the .service-list block in
   design.css so the section reads as part of the same design.
   ------------------------------------------------------------------------ */
.svc-categories {
	/* Multi-column rather than grid: a grid aligns rows, which leaves a tall
	   gap under every short category. Columns let each block sit directly
	   under the one above it and the browser balances the column heights.
	   The trade is reading order — columns run top-to-bottom, not across. */
	columns: 3;
	column-gap: 44px;
	margin-top: 44px;
}

.svc-category {
	padding: 28px 0 24px;
	border-top: 1px solid #bbc6c9;
	/* Without this a category can be split across a column break. */
	break-inside: avoid;
	-webkit-column-break-inside: avoid;
}

.svc-category-head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 10px;
}

.svc-category-head .service-icon { flex: 0 0 auto; }

.svc-category h2 {
	font-size: 25px;
	line-height: 1.05;
	margin: 0;
}

.svc-category h2 a {
	color: inherit;
	text-decoration: none;
	transition: color .18s ease;
}

.svc-category h2 a:hover,
.svc-category h2 a:focus-visible { color: #d70000; }

.svc-services {
	list-style: none;
	margin: 0;
	padding: 0;
}

.svc-services li { border-bottom: 1px solid #d7dfe0; }
.svc-services li:last-child { border-bottom: 0; }

/* theme.json styles every heading as the display face — Barlow Condensed,
   uppercase, 800. That's right at 24px and up, which is the only place the
   rest of the page uses it, but a condensed display face at list-item size
   reads as a third, foreign font. These stay h3s for the document outline;
   they just drop the display treatment and use the body face, so the
   hierarchy is condensed uppercase category / plain-text service beneath. */
.svc-services h3 {
	margin: 0;
	font-family: 'Barlow', system-ui, sans-serif;
	font-size: 16px;
	line-height: 1.35;
	font-weight: 600;
	text-transform: none;
	letter-spacing: normal;
}

.svc-services a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 11px 2px;
	color: #3a4449;
	text-decoration: none;
	transition: color .18s ease, padding-left .18s ease;
}

.svc-services a:hover,
.svc-services a:focus-visible {
	color: #d70000;
	padding-left: 5px;
}

/* A planned service with no page yet: same row metrics as a link, no hover.
   directbuy_live_href() swaps it for a link once the page is published. */
.svc-services .svc-plain {
	display: block;
	padding: 11px 2px;
	color: #3a4449;
}

/* The arrow is a hover affordance, not decoration — it would add 20 pieces of
   permanent visual noise to a list this long. */
.svc-arrow {
	flex: 0 0 auto;
	color: #d70000;
	opacity: 0;
	transition: opacity .18s ease;
}

.svc-services a:hover .svc-arrow,
.svc-services a:focus-visible .svc-arrow { opacity: 1; }

@media (max-width: 960px) {
	.svc-categories {
		columns: 2;
		column-gap: 34px;
	}
}

@media (max-width: 700px) {
	.svc-categories { columns: 1; }
	.svc-category h2 { font-size: 23px; }
}

@media (prefers-reduced-motion: reduce) {
	.svc-category h2 a,
	.svc-services a,
	.svc-arrow { transition: none; }

	.svc-services a:hover,
	.svc-services a:focus-visible { padding-left: 2px; }

	.svc-arrow { opacity: 1; }
}

/* The catch-all spanned the full width when this was a grid, to stop it
   leaving two empty columns. Columns pack on their own, so it now flows like
   any other block. The class stays on the element in case the distinction is
   wanted visually later. */

/* "Air Conditioning Repair Service" clears a 375px screen by 16px. Flex items
   don't shrink below their content by default, so without min-width the
   heading would push past the gutter on a narrower phone instead of wrapping. */
.svc-category-head h2 { min-width: 0; }

@media (max-width: 390px) {
	.svc-category h2 { font-size: 21px; }
}

/* ---------------------------------------------------------------------------
   Promotion popup

   A native <dialog>, so the browser supplies the backdrop, the focus trap and
   Escape. Only appearance is set here.
   ------------------------------------------------------------------------ */
.dbf-promo {
	width: min(560px, calc(100vw - 40px));
	max-width: none;
	max-height: calc(100vh - 48px);
	padding: 0;
	border: 0;
	background: #fff;
	color: #24292d;
	box-shadow: 0 30px 70px rgba(16, 20, 24, .34);
	overflow: visible;
}

.dbf-promo--image { width: min(840px, calc(100vw - 40px)); }

.dbf-promo::backdrop { background: rgba(23, 27, 30, .66); }

.dbf-promo-inner {
	position: relative;
	display: grid;
	grid-template-columns: 1fr;
	max-height: calc(100vh - 48px);
	overflow-y: auto;
}

.dbf-promo--image .dbf-promo-inner { grid-template-columns: 42% 1fr; }

.dbf-promo-media { background: #e8eeed; }

.dbf-promo-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dbf-promo-copy { padding: 44px 46px 46px; }

.dbf-promo-copy h2 {
	font-size: 38px;
	line-height: .98;
	margin: 0 0 14px;
	color: #171b1e;
}

.dbf-promo-copy p {
	margin: 0 0 24px;
	font-size: 16px;
	line-height: 1.6;
	color: #566168;
}

.dbf-promo-copy .btn { margin: 0; }

.dbf-promo-close {
	position: absolute;
	top: 12px;
	right: 12px;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .88);
	color: #39434a;
	cursor: pointer;
	transition: background .18s ease, color .18s ease;
}

.dbf-promo-close:hover,
.dbf-promo-close:focus-visible {
	background: #d70000;
	color: #fff;
}

@media (max-width: 700px) {
	.dbf-promo,
	.dbf-promo--image { width: calc(100vw - 32px); }

	.dbf-promo--image .dbf-promo-inner { grid-template-columns: 1fr; }

	.dbf-promo-media { max-height: 190px; }

	.dbf-promo-copy { padding: 30px 26px 32px; }

	.dbf-promo-copy h2 { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
	.dbf-promo-close { transition: none; }
}

/* design.css shrinks the header phone to an icon-only button under 700px by
   zeroing the font size, and sets the icon's width but not its height. */
@media (max-width: 700px) {
	.site-header .header-phone svg { height: 20px; }
}

/* ==========================================================================
   Navigation (theme v0.4.0)

   Menus come from Appearance → Menus via inc/nav.php and the header-* PHP
   patterns. wp_nav_menu() outputs <ul><li><a>, while design.css styled a flat
   <nav> > <a>, so the list structure is reset here. The dropdown and the top
   strip have no equivalent in design.css; their look follows
   header-options.html, Option B.
   ========================================================================== */

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

.dbf-menu,
.dbf-menu .sub-menu,
.dbf-mobile-menu,
.dbf-mobile-menu .sub-menu,
.dbf-mobile-utility,
.util-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* --- Desktop menu -------------------------------------------------------- */

.dbf-menu {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(16px, 2.1vw, 34px);
}
.dbf-menu > li { position: relative; }
.dbf-menu > li > a {
	display: flex;
	align-items: center;
	gap: 5px;
	padding-block: 10px;
	white-space: nowrap;
	color: #fff;
}
.dbf-menu > li > a:hover,
.dbf-menu > li:focus-within > a,
.dbf-menu > li:hover > a,
.dbf-menu > .current-menu-item > a,
.dbf-menu > .current-menu-ancestor > a { color: #ed6969; }
.dbf-caret { flex: 0 0 auto; opacity: .75; transition: transform .2s ease; }
.dbf-menu > li:hover .dbf-caret,
.dbf-menu > li:focus-within .dbf-caret { transform: rotate(180deg); }

.dbf-menu .sub-menu {
	position: absolute;
	top: calc(100% + 14px);
	left: -20px;
	z-index: 60;
	min-width: 246px;
	padding: 8px 0;
	background: #fff;
	border-top: 3px solid #d70000;
	box-shadow: 0 18px 44px rgba(10, 16, 19, .28);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
/* Invisible bridge over the 14px gap, so the pointer can travel from the
   top-level link to the dropdown without it closing. */
.dbf-menu .sub-menu::before {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 100%;
	height: 17px;
}
.dbf-menu > li:hover > .sub-menu,
.dbf-menu > li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity .18s ease, transform .18s ease, visibility 0s;
}
.dbf-menu .sub-menu a {
	display: block;
	padding: 10px 20px;
	font-size: 15px;
	font-weight: 600;
	color: #2d3539;
	white-space: nowrap;
}
.dbf-menu .sub-menu a:hover,
.dbf-menu .sub-menu a:focus-visible,
.dbf-menu .sub-menu .current-menu-item > a {
	background: #f2f5f5;
	color: #d70000;
}

/* --- Top strip ------------------------------------------------------------ */

.util-strip {
	background: #101416;
	border-bottom: 1px solid #2b3237;
	color: #9aa4a9;
	font-size: 12.5px;
	font-weight: 600;
}
.util-inner {
	display: flex;
	align-items: center;
	gap: 22px;
	height: 40px;
}
.util-area {
	margin: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.util-nav { margin-left: auto; flex: 0 0 auto; }
.util-menu { display: flex; align-items: center; }
.util-menu li + li::before {
	content: '·';
	margin: 0 11px;
	color: #3a4348;
}
.util-menu a { color: #c3cbcf; transition: color .18s ease; }
.util-menu a:hover,
.util-menu a:focus-visible,
.util-menu .current-menu-item > a { color: #fff; }

/* The strip scrolls away; only the main row stays stuck to the top. */
.site-header-wrap:has(.util-strip) { top: -41px; }

/* --- Mobile panel (below 1281px, where design.css hides the desktop menu) */

.mobile-nav[hidden] { display: none !important; }
.menu-toggle { cursor: pointer; }
.menu-toggle .dbf-icon-close,
.menu-toggle[aria-expanded="true"] .dbf-icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .dbf-icon-close { display: block; }

@media (max-width: 1280px) {
	/* With the desktop menu hidden, push the phone and menu button right. */
	.site-header .header-actions { margin-left: auto; }
	/* Long menus scroll inside the panel rather than off the bottom of the
	   screen, since the header is sticky and the page can't scroll it into view. */
	.mobile-nav {
		max-height: calc(100vh - 117px);
		max-height: calc(100dvh - 117px);
		overflow-y: auto;
		overscroll-behavior: contain;
	}
	.util-nav { display: none; }
}

.dbf-mobile-menu > li > a { display: block; color: #fff; }
.dbf-mobile-menu .sub-menu a {
	display: block;
	padding-left: 18px;
	font-size: 15px;
	font-weight: 600;
	color: #c3cbcf;
}
.dbf-mobile-menu a:hover,
.dbf-mobile-menu .current-menu-item > a { color: #ed6969; }
.dbf-mobile-utility {
	display: flex;
	flex-wrap: wrap;
	gap: 0 22px;
	margin-top: 8px;
	border-top: 1px solid #343d42;
}
.mobile-nav .dbf-mobile-utility a {
	display: block;
	border-top: 0;
	padding: 14px 0 4px;
	font-size: 14px;
	font-weight: 600;
	color: #aab3b8;
}
.mobile-nav .dbf-mobile-utility a:hover { color: #fff; }

@media (max-width: 700px) {
	.util-strip { display: none; }
	.site-header-wrap:has(.util-strip) { top: 0; }
	.mobile-nav {
		max-height: calc(100vh - 112px);
		max-height: calc(100dvh - 112px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.dbf-menu .sub-menu,
	.dbf-caret { transition: none; }
}

/* Section labels ("HVAC Services", "Why DirectBuy", "Good to know", ...).
   Design default eyebrow is 12px; enlarged site-wide so they read as section titles. */
.eyebrow {
	font-size: clamp(18px, 2vw, 24px);
	letter-spacing: .1em;
	gap: 14px;
}
.eyebrow:before { width: 32px; height: 3px; }

/* --- Jump-link offset ---------------------------------------------------- */

/* design.css sets scroll-padding-top: 133px, sized for the original header.
   Only the 117px main row stays pinned now (the top strip scrolls away), so
   133 left a strip of the previous section showing above every section a menu
   link jumped to. Matching the pinned header exactly puts the section's own
   top edge right under it; the sections' top padding keeps the heading clear. */
html { scroll-padding-top: 117px; }

@media (max-width: 700px) {
	html { scroll-padding-top: 112px; }
}

/* ==========================================================================
   Content pages: type scale

   theme.json referenced the H1 and H2 sizes as --font-size--4xl and --3xl,
   but core kebab-cases slugs that mix digits and letters (4xl → 4-xl), so
   those variables never existed and every unclassed H1/H2 fell back to body
   size: page titles rendered at 17px. theme.json now names the variables
   core actually emits (--4-xl, --3-xl). The var:preset|font-size|4xl form
   does NOT fix it: core converts that straight back to --4xl.

   Those element sizes (Hero 112px, Section 76px) suit the homepage, where
   headings carry their own classes anyway. Inside ordinary page copy they
   are far too big, so content gets its own steps here. The page title
   matches the homepage .section-heading; everything below it steps down.
   Below ~24px the condensed display face reads as a foreign font (see
   .svc-services h3), so h3 and smaller use the body face.
   ========================================================================== */

h1.wp-block-post-title {
	font-size: clamp(45px, 5vw, 76px);
	line-height: .92;
	margin: 0 0 .45em;
}

.wp-block-post-content h1 {
	font-size: var(--wp--preset--font-size--2-xl);
	line-height: .95;
	margin: 1.2em 0 .45em;
}

.wp-block-post-content h2 {
	font-size: var(--wp--preset--font-size--xl);
	line-height: 1;
	margin: 1.6em 0 .5em;
}

.wp-block-post-content h3,
.wp-block-post-content h4,
.wp-block-post-content h5,
.wp-block-post-content h6 {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 700;
	text-transform: none;
	letter-spacing: normal;
	line-height: 1.3;
	margin: 1.4em 0 .4em;
}
.wp-block-post-content h3 { font-size: var(--wp--preset--font-size--lg); }
.wp-block-post-content h4,
.wp-block-post-content h5,
.wp-block-post-content h6 { font-size: var(--wp--preset--font-size--base); }

/* A heading given one of the small preset sizes in the editor (common in
   pages carried over from Kadence, e.g. the contact details on /contact/)
   is below the display face's range, so it gets the body face too. */
:is(h1, h2, h3, h4, h5, h6):is(
	.has-xs-font-size, .has-sm-font-size, .has-base-font-size, .has-lg-font-size,
	.has-small-font-size, .has-medium-font-size, .has-normal-font-size
) {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 700;
	text-transform: none;
	letter-spacing: normal;
	line-height: 1.4;
}

/* --- Forms in page content ------------------------------------------------ */

/* The homepage quote form is styled under .quote-card only, so a Gravity Form
   placed in an ordinary page (the contact form on /contact/) fell back to the
   plugin's defaults: hairline inputs and a grey system button. Same field
   treatment as the quote card, minus the icons; the button is the site's
   standard .btn-red rather than the card's oversized one. Selectors match
   the gravity-theme stylesheet's weight so these win without !important. */
.wp-block-post-content .gform_wrapper { margin-top: 0; }
.wp-block-post-content .gform_wrapper .gfield_label,
.wp-block-post-content .gform_wrapper .gform-field-label {
	font-size: 14px;
	font-weight: 700;
	color: #263035;
}
.wp-block-post-content .gform_wrapper .gfield_required { color: #d70000; }
.wp-block-post-content .gform_wrapper.gravity-theme .gfield input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.wp-block-post-content .gform_wrapper.gravity-theme .gfield textarea,
.wp-block-post-content .gform_wrapper.gravity-theme .gfield select {
	min-height: 52px;
	padding: 13px 14px;
	border: 1px solid #bcc1c5;
	border-radius: 5px;
	background: #fff;
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .06);
	color: #263035;
	font-family: inherit;
	font-size: 16px;
	line-height: 1.4;
	outline: none;
	transition: border-color .2s, box-shadow .2s;
}
.wp-block-post-content .gform_wrapper.gravity-theme .gfield textarea { min-height: 150px; resize: vertical; }
.wp-block-post-content .gform_wrapper.gravity-theme .gfield input:focus,
.wp-block-post-content .gform_wrapper.gravity-theme .gfield textarea:focus,
.wp-block-post-content .gform_wrapper.gravity-theme .gfield select:focus {
	border-color: #397986;
	box-shadow: 0 0 0 2px rgba(57, 121, 134, .15);
}
.wp-block-post-content .gform_wrapper.gravity-theme .gform_footer { margin-top: 8px; padding-top: 8px; }
.wp-block-post-content .gform_wrapper.gravity-theme .gform_footer .gform_button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 0 30px;
	border: 0;
	border-radius: 0;
	background: #d70000;
	color: #fff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: .025em;
	line-height: 1;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color .2s ease, transform .2s ease;
}
.wp-block-post-content .gform_wrapper.gravity-theme .gform_footer .gform_button:hover {
	background: #b90000;
	transform: translateY(-2px);
}
.wp-block-post-content .gform_wrapper .gfield_validation_message,
.wp-block-post-content .gform_wrapper .validation_message { color: #b90000; }

/* Fluent Forms in page content (the Fluent version of the /contact/ form,
   Fluent form 4). Same look and spacing as the Gravity rules above, measured
   from the live Gravity form: 16px bold labels 8px above 52px fields, 17px
   between fields, a 288px message box and a square red button 24px below it.
   One step heavier than Fluent's own stylesheet, so no !important. */
.wp-block-post-content .fluentform { margin-top: 0; }

/* "Contact" title and "* indicates required fields" line above the Fluent
   contact form (added in inc/recaptcha-notice.php). Like the Gravity version,
   they take the page's own h2 and paragraph styles (the h2 size grows with
   screen width: .simple-page-body h2 clamp), so only the asterisk colour is
   set here. */
.wp-block-post-content .dbf-form-heading .dbf-required { color: #c02b0a; }
.wp-block-post-content .fluentform .ff-el-group { margin-bottom: 17px; }
.wp-block-post-content .fluentform .ff-el-group .ff-el-input--label { margin-bottom: 8px; padding: 0; }
.wp-block-post-content .fluentform .ff-el-group .ff-el-input--label label {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.7;
	color: #263035;
}
.wp-block-post-content .fluentform .ff-el-is-required.asterisk-right label::after { color: #d70000; }
.wp-block-post-content .fluentform .ff-el-group .ff-el-form-control {
	min-height: 52px;
	padding: 13px 14px;
	border: 1px solid #bcc1c5;
	border-radius: 5px;
	background: #fff;
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .06);
	color: #263035;
	font-family: inherit;
	font-size: 16px;
	line-height: 1.4;
	outline: none;
	transition: border-color .2s, box-shadow .2s;
}
.wp-block-post-content .fluentform .ff-el-group textarea.ff-el-form-control { height: 288px; min-height: 150px; resize: vertical; }
.wp-block-post-content .fluentform .ff-el-group .ff-el-form-control:focus {
	border-color: #397986;
	box-shadow: 0 0 0 2px rgba(57, 121, 134, .15);
}
.wp-block-post-content .fluentform .ff-el-is-error .ff-el-form-control { border-color: #b90000; }
.wp-block-post-content .fluentform .ff_submit_btn_wrapper { margin: 24px 0 0; }
.wp-block-post-content .fluentform .ff_submit_btn_wrapper .ff-btn-submit:not(.ff_btn_no_style) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 0 30px;
	border: 0;
	border-radius: 0;
	background: #d70000;
	color: #fff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: .025em;
	line-height: 1;
	text-transform: uppercase;
	cursor: pointer;
	opacity: 1;
	transition: background-color .2s ease, transform .2s ease;
}
.wp-block-post-content .fluentform .ff_submit_btn_wrapper .ff-btn-submit:not(.ff_btn_no_style):hover {
	background: #b90000;
	transform: translateY(-2px);
}
.wp-block-post-content .fluentform .ff-el-is-error .text-danger,
.wp-block-post-content .fluentform .error { color: #b90000; }

@media (prefers-reduced-motion: reduce) {
	.wp-block-post-content .gform_wrapper.gravity-theme .gform_footer .gform_button:hover,
	.wp-block-post-content .fluentform .ff_submit_btn_wrapper .ff-btn-submit:not(.ff_btn_no_style):hover { transform: none; }
}

/* ==========================================================================
   Blog listing (theme v0.5.0)

   /blog/, category archives (/furnaces/, /heat-pump/ …) and search all render
   patterns/post-grid.php under a homepage-style section head: eyebrow plus a
   .section-heading H1. Cards borrow the homepage .review-card language: hair
   border, 3px red top rule, white panel, small red uppercase labels.

   Featured images here are mostly product cut-outs on white, many small or
   portrait, so they are fitted whole (contain) in a fixed 4:3 box rather than
   cropped to fill it, which would cut the equipment off.
   ========================================================================== */

.blog-head { padding: 72px 0 36px; }
.blog-head .eyebrow { margin: 0; }
.blog-head .section-heading { margin: 16px 0 0; max-width: 16ch; }
.blog-head .blog-lead {
	max-width: 62ch;
	margin-top: 20px;
	color: #4c565b;
	font-size: 18px;
	line-height: 1.6;
}
.blog-head .blog-lead p { margin: 0; }
/* /resources/ intro: a bold one-line promise above the lead paragraph. */
.blog-head .blog-kicker {
	max-width: 62ch;
	text-wrap: pretty;
	margin: 24px 0 0;
	color: #1e222a;
	font-size: 21px;
	font-weight: 700;
	line-height: 1.35;
}
.blog-head .blog-kicker + .blog-lead { margin-top: 10px; text-wrap: pretty; }
.blog-body { padding-bottom: 96px; }

/* Grid. Matches core's grid selector weight plus one, so the column count
   here wins over the inline layout CSS core generates. */
.post-grid .wp-block-post-template.post-grid-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.post-grid .wp-block-post-template > li { display: flex; margin: 0; }

.post-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	border: 1px solid #d9dfdc;
	border-top: 3px solid #d70000;
	background: #fff;
	transition: transform .2s ease, box-shadow .2s ease;
}
.post-card:hover,
.post-card:focus-within {
	transform: translateY(-3px);
	box-shadow: 0 18px 40px rgba(20, 39, 44, .12);
}

/* The image is taken out of flow so a tall portrait can't stretch the box
   past 4:3 (an aspect-ratio box otherwise grows to fit its content). */
.post-card .post-card-media {
	position: relative;
	margin: 0;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #fff;
	border-bottom: 1px solid #eef2f2;
}
.post-card .post-card-media a {
	position: absolute;
	inset: 18px;
	display: block;
}
/* !important only because core writes object-fit:cover inline on the img. */
.post-card .post-card-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain !important;
}

.post-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 20px 23px 20px;
}

.post-card .post-card-cat {
	margin: 0;
	color: #d70000;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .14em;
	line-height: 1.3;
	text-transform: uppercase;
}
.post-card .post-card-cat a { color: inherit; text-decoration: none; }
.post-card .post-card-cat a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* An H2 for the outline, sized as a card title. 24px is the floor for the
   display face (see the content type scale above). */
.post-card .post-card-title {
	margin: 10px 0 0;
	font-size: 24px;
	line-height: 1.02;
	overflow-wrap: break-word;
}
.post-card .post-card-title a { color: #1e222a; text-decoration: none; transition: color .18s ease; }
.post-card .post-card-title a:hover,
.post-card .post-card-title a:focus-visible { color: #d70000; }

.post-card .post-card-excerpt { margin: 12px 0 0; }
.post-card .post-card-excerpt p {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	color: #3e484c;
	font-size: 15px;
	line-height: 1.58;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
}
.post-card .wp-block-post-excerpt__more-text { display: none; }

.post-card-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 18px;
}
.post-card .post-card-date { margin: 0; color: #707a7d; font-size: 12px; font-weight: 700; }
.post-card .post-card-more {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: #c70000;
	font-size: 13px;
	font-weight: 800;
	text-decoration: none;
	white-space: nowrap;
}
.post-card .post-card-more::after { content: '→'; transition: transform .18s ease; }
.post-card .post-card-more:hover::after { transform: translateX(3px); }

/* Pagination: square tiles in the card border colour, current page red. */
.post-pagination { gap: 8px; margin-top: 52px; flex-wrap: wrap; }
.post-pagination .wp-block-query-pagination-numbers { display: flex; flex-wrap: wrap; gap: 8px; }
.post-pagination .page-numbers,
.post-pagination .wp-block-query-pagination-previous,
.post-pagination .wp-block-query-pagination-next {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 46px;
	height: 46px;
	padding: 0 12px;
	margin: 0;
	border: 1px solid #d9dfdc;
	background: #fff;
	color: #263035;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	transition: border-color .18s ease, color .18s ease;
}
.post-pagination .wp-block-query-pagination-previous,
.post-pagination .wp-block-query-pagination-next {
	padding: 0 18px;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
}
.post-pagination a:hover,
.post-pagination a:focus-visible { border-color: #d70000; color: #d70000; }
.post-pagination .page-numbers.current { border-color: #d70000; background: #d70000; color: #fff; }
.post-pagination .page-numbers.dots { border-color: transparent; background: none; min-width: 20px; padding: 0; }
.post-pagination .wp-block-query-pagination-previous-arrow,
.post-pagination .wp-block-query-pagination-next-arrow { display: none; }

.post-grid-empty { max-width: 60ch; font-size: 18px; color: #4c565b; }

@media (max-width: 960px) {
	.post-grid .wp-block-post-template.post-grid-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
}

@media (max-width: 640px) {
	.blog-head { padding: 48px 0 28px; }
	.blog-body { padding-bottom: 64px; }
	.post-grid .wp-block-post-template.post-grid-list { grid-template-columns: 1fr; }
	.post-pagination .wp-block-query-pagination-previous,
	.post-pagination .wp-block-query-pagination-next { padding: 0 14px; }
}

@media (prefers-reduced-motion: reduce) {
	.post-card,
	.post-card .post-card-more::after { transition: none; }
	.post-card:hover,
	.post-card:focus-within { transform: none; }
}

/* ==========================================================================
   Single blog post (theme v0.6.0)

   One reading column (.post-narrow, 820px, the theme.json contentSize) for
   the head, image, body and footer, then two full-width homepage bands: the
   red .final-cta and a related-posts grid reusing the blog cards.
   ========================================================================== */

.post-narrow {
	width: min(100% - 80px, 820px);
	margin-inline: auto;
}

.post-head { padding-top: 64px; }
.post-head .post-topic { margin: 0; }
.post-head .post-topic a { color: inherit; text-decoration: none; }
.post-head .post-topic a:hover { text-decoration: underline; text-underline-offset: 4px; }
/* A notch below the page-title size: blog titles run long, and at 76px a
   ten-word title fills the first screen on its own. */
.post-head h1.post-head-title {
	margin: 18px 0 0;
	font-size: clamp(40px, 4.6vw, 64px);
	line-height: .94;
}
.post-head .post-head-date {
	margin: 22px 0 0;
	padding-top: 16px;
	border-top: 1px solid #d9dfdc;
	color: #707a7d;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
}

/* Featured images are mostly small product cut-outs, so they sit at natural
   size in a framed panel rather than being stretched across the column. */
.post-hero {
	display: flex;
	justify-content: center;
	margin-top: 32px;
	margin-bottom: 0;
	padding: 28px;
	border: 1px solid #d9dfdc;
	border-top: 3px solid #d70000;
	background: #fff;
}
.post-hero img {
	display: block;
	width: auto !important;
	max-width: 100%;
	height: auto !important;
	max-height: 420px;
	object-fit: contain !important;
}

/* Body copy. Headings come from the content type scale above. */
.post-body { padding-top: 40px; color: #2b3236; font-size: 18px; line-height: 1.7; }
.post-body > :first-child { margin-top: 0; }
.post-body p { margin: 0 0 1.15em; }
.post-body a { color: #c70000; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.post-body a:hover { color: #8f0000; text-decoration-thickness: 2px; }
/* Switched-off links (inc/dead-links.php): broken internal links stay visible
   but go nowhere. A dashed underline tells them apart from working links. */
.post-body .dbf-link-off { color: #c70000; text-decoration: underline dashed; text-underline-offset: 3px; text-decoration-thickness: 1px; cursor: text; }
.post-body ul,
.post-body ol { margin: 0 0 1.3em; padding-left: 1.3em; }
.post-body li { margin: 0 0 .45em; padding-left: .2em; }
.post-body li::marker { color: #d70000; font-weight: 800; }
.post-body strong { color: #1e222a; }
.post-body blockquote {
	margin: 1.6em 0;
	padding: 4px 0 4px 22px;
	border-left: 3px solid #d70000;
	color: #3e484c;
	font-size: 20px;
}
.post-body .wp-block-table { margin: 1.6em 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* Auto layout and a floor width: on a phone the table scrolls sideways inside
   its own box instead of squeezing until words break mid-word. */
.post-body table {
	width: 100%;
	min-width: 560px;
	table-layout: auto !important;
	border-collapse: collapse;
	font-size: 15px;
	line-height: 1.5;
}
/* Core's table block sets word-break: break-word on cells, which splits
   "$20,000" mid-number; one class heavier than its selector. */
.post-body .wp-block-table th,
.post-body .wp-block-table td { overflow-wrap: normal; word-break: normal; }
.post-body th,
.post-body td { padding: 11px 14px; border: 1px solid #d9dfdc; text-align: left; vertical-align: top; }
.post-body th,
.post-body thead td { background: #f2f5f5; color: #1e222a; font-weight: 700; }
.post-body tbody tr:nth-child(even) td { background: #fafbfb; }

/* "Filed under" chips. */
.post-foot { margin-top: 36px; margin-bottom: 72px; padding-top: 22px; border-top: 1px solid #d9dfdc; }
.post-filed { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.post-filed .wp-block-post-terms__prefix {
	margin-right: 6px;
	color: #707a7d;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
}
.post-filed .wp-block-post-terms__separator { display: none; }
.post-filed a {
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	padding: 0 13px;
	border: 1px solid #d9dfdc;
	background: #fff;
	color: #263035;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	transition: border-color .18s ease, color .18s ease;
}
.post-filed a:hover,
.post-filed a:focus-visible { border-color: #d70000; color: #d70000; }

/* Related posts: same surface as the homepage reviews band. */
.post-related {
	padding: 84px 0 92px;
	background: #fff;
	border-bottom: 1px solid #e5e5e5;
}
.post-related-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 40px;
}
.post-related-head .eyebrow { margin: 0; }
.post-related-head .section-heading { margin: 16px 0 0; }
.post-related-all { margin: 0 0 8px; flex: 0 0 auto; }
.post-related-all a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #c70000;
	font-size: 13px;
	font-weight: 800;
	text-decoration: none;
}
.post-related-all a::after { content: '→'; }
.post-related-all a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* Related-card titles are h3s; keep them the card size, not the content h3. */
.post-related .post-card .post-card-title {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: -.022em;
}

@media (max-width: 1180px) {
	.post-narrow { width: min(100% - 54px, 820px); }
}

@media (max-width: 700px) {
	.post-narrow { width: calc(100% - 36px); }
	.post-head { padding-top: 44px; }
	.post-hero { padding: 18px; }
	.post-body { font-size: 17px; }
	.post-foot { margin-bottom: 52px; }
	.post-related { padding: 60px 0 68px; }
	.post-related-head { flex-direction: column; align-items: flex-start; margin-bottom: 28px; }
}

/* Default page template (privacy policy and other plain pages).
   Same section padding and display H1 as the services overview; body text
   held to a readable line length. */
.simple-page-intro .section-heading { margin-top: 0; }
.simple-page-body { max-width: 760px; font-size: 17px; line-height: 1.7; }
.simple-page-body > * + * { margin-top: 1em; }
.simple-page-body h2 {
	font-size: clamp(24px, 2.4vw, 30px);
	margin-top: 1.8em;
	margin-bottom: .4em;
	color: inherit;
}
.simple-page-body ul { padding-left: 1.2em; }
.simple-page-body li + li { margin-top: .35em; }
.simple-page-body a { color: #d70000; text-decoration: underline; text-underline-offset: 2px; }
