/*
 * NH Ross: brand values and client-only styles, measured on the old Cornerstone site
 * (docs/transition-map.md). Loads after the core site.css and the layout CSS (inc/assets.php).
 * Colors and fonts are Site Settings (site-settings.json); this file holds what Site Settings
 * can't: the buttons' gradients and offset shadows, the header, the footer and the nhr-* layouts'
 * shared pieces.
 *
 * Contents: 1. Tokens  2. Base  3. Buttons  4. Header  5. Mobile menu  6. Footer  7. Shared pieces
 */

/* 1. Tokens ------------------------------------------------------------- */
:root {
	--nhr-red: var(--fm-color-primary);
	--nhr-red-bright: #dc3033;
	--nhr-red-dark: #971b1e;
	--nhr-red-shadow: #7d0f12;
	--nhr-yellow: var(--fm-color-secondary);
	--nhr-gold: #ffc700;
	--nhr-gold-shadow: #b58f02;
	--nhr-ink: var(--fm-color-dark);
	--nhr-gray: #404041;
	--nhr-light: var(--fm-color-light);
	--nhr-blue: #5874ba;
	--nhr-ice: #bfe6ff;
	--nhr-grad-red: linear-gradient(var(--nhr-red) 0%, var(--nhr-red-bright) 100%);
	--nhr-grad-yellow: linear-gradient(var(--nhr-yellow) 14%, var(--nhr-gold) 100%);
	--nhr-wrap: min(88%, 1200px);
	--nhr-shadow-card: 0 8px 30px rgb(8 8 39 / .1);
	--nhr-ease: cubic-bezier(.4, 0, .2, 1);

	--fmc-accent: var(--nhr-yellow);
	--fmc-heading-weight: 700;
	--fmc-body-lh: 1.8;
	--fmc-eyebrow-color: var(--nhr-red);
}

/* 2. Base ----------------------------------------------------------------- */
body { color: var(--nhr-gray); font-size: 1rem; line-height: 1.8; }
h1, h2, h3, h4, h5, h6 { color: var(--nhr-ink); font-family: var(--fm-font-heading); text-wrap: balance; }
.nhr-wrap { width: var(--nhr-wrap); margin-inline: auto; }

/* 3. Buttons: gradient faces with a 4px offset shadow; flat on hover (the old site's). ---------- */
.fm-btn[class] {
	min-width: 200px; min-height: 53px; padding: 18.5px 18px; gap: 8px;
	font-family: var(--fm-font-body); font-size: 1rem; font-weight: 700; line-height: 1;
	border-radius: 5.6px; transition: background-color .3s var(--nhr-ease), color .3s var(--nhr-ease), box-shadow .3s var(--nhr-ease), border-color .3s var(--nhr-ease);
}
.fm-btn.fm-btn--v1 { background: var(--nhr-grad-yellow) var(--nhr-yellow); color: var(--nhr-ink); box-shadow: 4px 4px 0 var(--nhr-gold-shadow); }
.fm-btn.fm-btn--v2 { background: var(--nhr-grad-red) var(--nhr-red); color: #fff; box-shadow: 4px 4px 0 var(--nhr-red-shadow); }
.fm-btn.fm-btn--v1:is(:hover, :focus-visible) { background: var(--nhr-gold-shadow); color: #fff; box-shadow: none; }
.fm-btn.fm-btn--v2:is(:hover, :focus-visible) { background: var(--nhr-red-shadow); color: #fff; box-shadow: none; }
.fm-btn.fm-btn--v3, .fm-btn.fm-btn--v4 { min-height: 56px; padding-block: 17px; border: 3px solid; border-radius: 10px; background: transparent; box-shadow: none; }
.fm-btn.fm-btn--v3 { border-color: #fff; color: #fff; }
.fm-btn.fm-btn--v3:is(:hover, :focus-visible) { background: #fff; color: var(--nhr-red); }
.fm-btn.fm-btn--v4 { border-color: var(--nhr-ink); color: var(--nhr-ink); }
.fm-btn.fm-btn--v4:is(:hover, :focus-visible) { background: var(--nhr-ink); color: var(--nhr-yellow); }
/* Phones: a label longer than the screen (Winter Electric Offer's "Schedule Your $29 Electrical Safety
   Inspection") wraps inside the button instead of pushing the page sideways. */
@media (max-width: 767px) { .fm-btn[class] { max-width: 100%; white-space: normal; text-align: center; } }
.fm-btn:focus-visible { outline: 3px solid var(--nhr-ink); outline-offset: 3px; }
.fm-btn--v3:focus-visible { outline-color: #fff; }
.fm-btn__icon { width: 20px; height: 20px; }
/* Phones: the old buttons are 48px tall with 4.9px corners (53px / 5.6px from 768px up). */
@media (max-width: 767px) { .fm-btn[class] { min-height: 48px; padding-block: 17px; border-radius: 4.9px; } }
@media (prefers-reduced-motion: reduce) { .fm-btn[class] { transition: none; } }

/* 4. Header (template-parts/client-header.php) ------------------------------ */
.nhr-header { position: relative; z-index: 50; background: none; box-shadow: none; }
/* Desktop: the header sticks once the 70px red strip has scrolled away, as the old site's (its fixed header is the
   145px white row and the 90px bar); the logo shrinks to 250px while scrolled (is-stuck, assets/js/client.js). */
@media (min-width: 1081px) {
	.nhr-header { position: sticky; top: -70px; }
	.admin-bar .nhr-header { top: calc(var(--wp-admin--admin-bar--height, 32px) - 70px); }
	.nhr-header.is-stuck .nhr-header__logo img { width: 250px; }
	.nhr-header.is-stuck .nhr-header__logo.fm-header__logo { margin-top: 6px; }
}
.nhr-header__wrap { width: min(calc(100% - 80px), 1200px); margin-inline: auto; }
.nhr-header__top { position: relative; z-index: 1; height: 70px; background: var(--nhr-red); box-shadow: 0 3px 25px rgb(0 0 0 / .15); }
.nhr-header__top-inner { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; height: 100%; }
.nhr-header__tagline { grid-column: 1; justify-self: center; display: flex; align-items: center; gap: 8px; margin: 0; color: #fff; text-decoration: none; }
.nhr-header__tagline span { width: 153px; font-family: var(--fm-font-heading); font-size: 14.4px; font-weight: 700; line-height: 1.4; letter-spacing: .05em; text-transform: uppercase; }
.nhr-header__tagline img { width: 32px; height: 32px; }
.nhr-header__rating { grid-column: 3; justify-self: center; display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.nhr-header__g { width: 40px; height: 40px; filter: brightness(0) invert(1); } /* White, as the old header's G. */
.nhr-header__rating-text { display: grid; gap: 9px; font-weight: 700; }
.nhr-header__stars { display: flex; align-items: center; gap: 5px; font-size: 1rem; line-height: 1; }
.nhr-stars { position: relative; display: inline-grid; }
.nhr-stars__row { grid-area: 1 / 1; display: flex; gap: 2px; color: rgb(255 255 255 / .35); }
.nhr-stars__row--on { color: var(--nhr-yellow); clip-path: inset(0 calc(100% - var(--nhr-fill, 100%)) 0 0); }
.nhr-header__stars svg { width: 16px; height: 16px; }
.nhr-header__count { font-size: 1rem; line-height: 1; }
.nhr-header__rating:is(:hover, :focus-visible) .nhr-header__count { text-decoration: underline; }

.nhr-header__main { position: relative; z-index: 2; background: #fff; padding: 10px 0 5px; }
.nhr-header__main-inner { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: start; gap: 0; min-height: 130px; }
.nhr-header .fm-logo { max-height: none; }
.nhr-header .fm-header__logo { margin: 0; }
.nhr-header__side { display: grid; justify-items: center; align-content: start; }
.nhr-header__side--left { gap: 15px; }
.nhr-header__side--right { gap: 10px; padding-top: 15px; }
.nhr-header__brand { position: relative; display: grid; justify-items: center; }
/* The white oval reaching into the red bar behind the logo. */
.nhr-header__brand::before { content: ""; position: absolute; z-index: -1; top: -62px; left: 50%; width: 350px; height: 135px; border-radius: 50%; background: #fff; transform: translateX(-50%); }
.nhr-header__logo.fm-header__logo { display: block; margin: -16px 0 0; }
.nhr-header__logo img { width: 300px; height: auto; aspect-ratio: 300 / 84; }
.nhr-header__slogan { margin: 10px 0 0; font-family: var(--fm-font-heading); font-size: 20px; font-weight: 900; line-height: 28px; color: var(--nhr-red); text-align: center; white-space: nowrap; }

.nhr-call { display: inline-grid; justify-items: center; align-content: center; gap: 2px; width: 220px; min-height: 63px; padding: 9px 13px; border-radius: 5.6px; background: var(--nhr-grad-red); box-shadow: 4px 4px 0 var(--nhr-red-shadow); color: #fff; text-decoration: none; transition: background-color .3s var(--nhr-ease), box-shadow .3s var(--nhr-ease); }
.nhr-call:is(:hover, :focus-visible) { background: var(--nhr-red-shadow); box-shadow: none; color: #fff; }
.nhr-call__number { display: flex; align-items: center; gap: 8px; font-family: var(--fm-font-heading); font-size: 1rem; font-weight: 700; line-height: 22.4px; }
.nhr-call__number img { width: 19px; height: 18px; }
.nhr-call__note { font-size: 11.2px; font-weight: 700; font-style: italic; line-height: 20px; text-transform: uppercase; color: var(--nhr-yellow); }
.nhr-header__util.fm-btn[class] { width: 220px; min-height: 42px; padding: 10px 14px; font-family: var(--fm-font-heading); }
.nhr-header__util.fm-btn--v2[class], .nhr-header__schedule.fm-btn[class] { width: 200px; min-width: 200px; min-height: 40px; padding: 12px; font-size: 14.4px; }
.nhr-header__util.fm-btn--v1 { color: var(--nhr-gray); }
/* Solid colours under the gradients so the hover fades from them (no see-through flash). */
.nhr-header__toggle { display: none; }

.nhr-header__bar { position: relative; z-index: 1; }
.nhr-header__bar-inner { position: relative; display: flex; align-items: center; height: 90px; padding: 20px 0; }
/* The bar runs edge to edge with rounded bottom corners, as the old site at every width. */
.nhr-header__bar { background: var(--nhr-ink); border-radius: 0 0 16px 16px; box-shadow: 0 3px 25px rgb(0 0 0 / .15); }
.nhr-header__bar-actions { display: none; }
.nhr-nav { flex: 1; }
.nhr-nav__logo, .nhr-nav__cta { display: none; }

@media (min-width: 1081px) {
	.nhr-nav .fm-nav__list { justify-content: space-between; gap: 0; padding: 0 2px 0 27px; }
	.nhr-nav .fm-nav__list > li > a { display: flex; align-items: center; gap: 4px; padding: 17px 0; border-radius: 0; color: #fff; font-family: var(--fm-font-body); font-size: 1rem; font-weight: 700; line-height: 1; text-transform: uppercase; text-decoration: none; }
	.nhr-nav .fm-nav__list > .menu-item-has-children > a::after { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 8l8 8 8-8' fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 8l8 8 8-8' fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
	.nhr-nav .fm-nav__list > li:is(:hover, :focus-within) > a, .nhr-nav .fm-nav__list > li > a:is(:hover, :focus-visible), .nhr-nav .fm-nav__list > .current-menu-item > a, .nhr-nav .fm-nav__list > .current-menu-ancestor > a { color: var(--nhr-yellow); text-decoration: none; }
	.nhr-nav .fm-nav__list .sub-menu { top: calc(100% + 18px); left: -25px; min-width: 224px; width: 224px; padding: 8px; border-radius: 10px; background: var(--nhr-ink); box-shadow: 0 2.4px 32px rgb(0 0 0 / .15); }
	.nhr-nav .fm-nav__list > li:nth-last-child(-n+2) > .sub-menu { left: auto; right: -25px; }
	.nhr-nav .fm-nav__list .sub-menu::before { content: ""; position: absolute; inset: -18px 0 auto; height: 18px; }
	.nhr-nav .fm-nav__list .sub-menu a { padding: 9px 17px; border-radius: 6px; color: #fff; font-size: 15px; font-weight: 500; line-height: 17px; text-decoration: none; text-transform: none; }
	.nhr-nav .fm-nav__list .sub-menu a:is(:hover, :focus-visible), .nhr-nav .fm-nav__list .sub-menu .current-menu-item > a { color: var(--nhr-yellow); text-decoration: none; }
}

/* 5. Below 1080px: logo, caption and toggle; call and schedule in the dark bar; the menu is a panel. */
@media (max-width: 1080px) {
	.nhr-header__wrap { width: calc(100% - 40px); }
	.nhr-header__top { height: 55px; }
	.nhr-header__top-inner { grid-template-columns: 1fr auto; }
	.nhr-header__tagline { justify-self: start; gap: 7px; }
	.nhr-header__tagline span { width: 114px; font-size: 12.6px; line-height: 1.4; text-transform: capitalize; }
	.nhr-header__tagline img { width: 25px; height: 25px; }
	.nhr-header__rating { grid-column: 2; }
	.nhr-header__g { display: none; }
	.nhr-header__rating-text { gap: 4px; }
	.nhr-header__stars { font-size: 12.6px; }
	.nhr-header__stars svg { width: 13px; height: 13px; }
	.nhr-header__count { font-size: 11.2px; }

	.nhr-header__main-inner { grid-template-columns: 1fr auto; align-items: center; min-height: 104px; }
	.nhr-header__side, .nhr-header__brand::before { display: none; }
	.nhr-header__brand { justify-items: start; }
	.nhr-header__logo.fm-header__logo { margin: 10px 0 0; }
	.nhr-header__logo img { width: 200px; }
	.nhr-header__slogan { margin-top: 11px; font-size: 12.6px; line-height: 17.6px; }
	.nhr-header__toggle.fm-nav-toggle { display: inline-grid; place-items: center; width: 42px; height: 42px; color: #000; }
	.nhr-header__toggle svg { width: 32px; height: 32px; }

	.nhr-header__bar-inner { height: 75px; padding: 10px 0; }
	.nhr-header__bar { border-radius: 0; }
	.nhr-header__bar-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; }
	.nhr-header__bar-actions .nhr-call { width: 172px; min-height: 55px; padding: 8px 12px; }
	.nhr-call--bar .nhr-call__number { font-size: 14px; line-height: 19.6px; }
	.nhr-call--bar .nhr-call__note { font-size: 9.8px; line-height: 17.6px; }
	.nhr-header__schedule--bar.fm-btn[class] { width: 158px; min-width: 0; min-height: 55px; font-size: 14px; }

	/* The panel: white, from the right, over everything; the toggle (now a close X) stays on top. */
	.nhr-nav.fm-nav { position: fixed; z-index: 90; inset: 0 0 0 auto; width: min(100%, 390px); max-height: none; padding: 20px 30px 40px 38px; overflow-y: auto; background: #fff; box-shadow: -10px 0 40px rgb(0 0 0 / .25); }
	.nhr-nav.fm-nav:not(.is-open) { display: none; }
	/* Open: the dark bar (holding the panel) rises above the other bars; the page dims under the header. */
	body:has(.nhr-nav.is-open) .nhr-header__bar { z-index: 5; }
	body:has(.nhr-nav.is-open) .nhr-header__main { z-index: 6; }
	body:has(.nhr-nav.is-open) .nhr-header__main > * > :not(.nhr-header__toggle) { visibility: hidden; }
	body:has(.nhr-nav.is-open) .nhr-header__main { background: transparent; pointer-events: none; }
	body:has(.nhr-nav.is-open) .nhr-header__toggle { pointer-events: auto; }
	body:has(.nhr-nav.is-open) .nhr-header__toggle { position: fixed; z-index: 95; top: 8px; right: 8px; }
	body:has(.nhr-nav.is-open)::after { content: ""; position: fixed; z-index: 40; inset: 0; background: rgb(0 0 0 / .6); }
	.nhr-nav__logo { display: block; width: 165px; margin: 4px auto 10px; }
	.nhr-nav .fm-nav__list { gap: 14px; }
	.nhr-nav .fm-nav__list > li { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); }
	.nhr-nav .fm-nav__list > li > a { display: flex; align-items: center; min-height: 48px; padding: 12px 64px 12px 25px; border: 0; border-radius: 6px; background: var(--nhr-grad-red); box-shadow: 4px 4px 0 var(--nhr-red-shadow); color: #fff; font-family: var(--fm-font-heading); font-size: 1rem; font-weight: 700; line-height: 1.3; text-decoration: none; }
	.nhr-nav .fmc-sub-toggle { position: absolute; top: 10px; right: 25px; display: grid; place-items: center; width: 32px; height: 28px; padding: 0; border: 0; border-radius: 4px; background: #000; color: #fff; cursor: pointer; }
	.nhr-nav .fmc-sub-toggle svg { width: 20px; height: 20px; transition: transform .2s; }
	.nhr-nav .is-sub-open > .fmc-sub-toggle svg { transform: rotate(180deg); }
	.nhr-nav .fm-nav__list .sub-menu { display: none; margin: 8px 0 0; padding: 4px 0 4px 12px; background: none; }
	.nhr-nav .is-sub-open > .sub-menu { display: block; }
	.nhr-nav .fm-nav__list .sub-menu a { padding: 8px 10px; border: 0; color: var(--nhr-ink); font-size: 15px; font-weight: 500; line-height: 1.4; text-decoration: none; }
	.nhr-nav .fm-nav__list .sub-menu .current-menu-item > a { color: var(--nhr-red); }
	.nhr-nav__cta { display: grid; gap: 14px; margin-top: 14px; }
	.nhr-nav__cta .fm-btn[class] { width: 100%; min-height: 48px; }
}

/* 6. Footer (template-parts/client-footer.php) ------------------------------ */
.nhr-footer { margin: 0; padding: 0; background: none; color: #fff; }
.nhr-footer a { color: inherit; }
.nhr-footer li + li { margin-top: 0; }
.nhr-footer__wrap { width: min(calc(100% - 80px), 1200px); margin-inline: auto; }
.nhr-footer__contact { border-radius: 10px 10px 0 0; background: var(--nhr-ink); }
.nhr-footer__contact-inner { display: flex; justify-content: space-between; gap: 30px; min-height: 115px; padding: 30px; }
.nhr-footer__item { display: flex; align-items: center; gap: 16px; margin: 0; font-family: var(--fm-font-heading); font-size: 19.2px; font-weight: 700; line-height: 1.2; color: #fff; text-decoration: none; }
.nhr-footer__item img { width: 55px; height: 55px; flex: none; }
.nhr-footer__item small { display: block; font-size: 1rem; }
a.nhr-footer__item:is(:hover, :focus-visible) span { text-decoration: underline; }
.nhr-footer__main { padding: 50px 0 30px; background: url("../img/footer-pattern.png") center / cover, var(--nhr-grad-red); }
.nhr-footer__grid { display: grid; grid-template-columns: minmax(0, 336px) minmax(0, 225px) minmax(0, 225px) minmax(0, 275px); justify-content: space-between; gap: 40px; width: min(calc(100% - 100px), 1180px); }
.nhr-footer__logo { display: block; width: 300px; }
.nhr-footer__about { margin: 16px 0 0; font-size: 14.4px; line-height: 23.04px; }
.nhr-footer__license { margin-top: 26px; }
.nhr-footer__license p { margin: 0; font-size: 14.4px; line-height: 23.04px; }
.nhr-footer__title[class] { margin: 0 0 5px; font-family: var(--fm-font-heading); font-size: 18.72px; font-weight: 700; line-height: 26.2px; letter-spacing: .936px; text-transform: uppercase; color: var(--nhr-yellow); }
.nhr-footer__menu .nhr-footer__title { margin-bottom: 37px; }
.nhr-footer__list { display: flex; flex-direction: column; gap: 25px; margin: 0; padding: 0; list-style: none; }
.nhr-footer__list li { line-height: 14.4px; }
.nhr-footer__item span { max-width: 240px; }
.nhr-footer__list a { display: block; font-size: 14.4px; font-weight: 700; line-height: 14.4px; letter-spacing: 1.44px; text-transform: uppercase; text-decoration: none; }
.nhr-footer__list a:is(:hover, :focus-visible) { color: var(--nhr-yellow); }
.nhr-footer__actions { display: grid; justify-items: center; align-content: start; gap: 20px; }
.nhr-footer__buttons { display: grid; gap: 20px; }
.nhr-footer__buttons .fm-btn--v3[class] { min-height: 48px; padding-block: 13px; }
.nhr-footer__social { display: flex; gap: 17px; margin: 3px 0 0; padding: 0; list-style: none; }
.nhr-footer__social a { display: grid; place-items: center; width: 26px; height: 26px; color: #fff; }
.nhr-footer__social svg { width: 26px; height: 26px; }
.nhr-footer__social a:is(:hover, :focus-visible) { color: var(--nhr-yellow); }
.nhr-footer__badge { display: block; width: 275px; }
.nhr-footer__badge img { width: 100%; height: auto; }
/* Narrow desktops (980–1199px): the logo, social links and badge fit their columns. */
@media (min-width: 980px) and (max-width: 1199px) { .nhr-footer__logo { max-width: 100%; } .nhr-footer__logo img { width: 100%; height: auto; } .nhr-footer__actions { min-width: 0; } .nhr-footer__social { gap: 10px; } .nhr-footer__badge { width: 100%; max-width: 275px; } .nhr-footer__buttons .fm-btn[class] { min-width: 0; } }
.nhr-footer__legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 30px; width: min(calc(100% - 100px), 1180px); margin-top: 30px; padding-top: 30px; border-top: 2px solid rgb(255 255 255 / .25); }
.nhr-footer__legal p { margin: 0; font-size: 1rem; line-height: 22.4px; }
.nhr-footer__legal-links { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.nhr-footer__legal-links li + li { margin-left: 16px; padding-left: 16px; border-left: 1px solid rgb(255 255 255 / .6); }
.nhr-footer__legal-links a { font-family: var(--fm-font-heading); font-weight: 700; line-height: 22.4px; text-decoration: none; }
.nhr-footer__legal-links a:is(:hover, :focus-visible) { text-decoration: underline; }
.nhr-footer__credit { width: 100%; font-size: 14px; opacity: .8; }

/* Tablets (the old footer at 768–979; four columns from 980px): the phone and address in the bar; the logo and text
   beside the license, schedule button, social links and badge (centered); the two menus under them. */
@media (min-width: 768px) and (max-width: 979px) {
	.nhr-footer__contact-inner { justify-content: space-around; min-height: 105px; padding: 25px 0; }
	.nhr-footer__contact-inner > :nth-child(3) { display: none; }
	.nhr-footer__item { font-size: 16.8px; }
	.nhr-footer__item img { width: 45px; height: 45px; }
	.nhr-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "logo license" "about actions" "links services"; gap: 0 40px; width: calc(100% - 60px); }
	.nhr-footer__brand { display: contents; }
	.nhr-footer__logo { grid-area: logo; }
	.nhr-footer__about { grid-area: about; margin-top: 20px; }
	.nhr-footer__license { grid-area: license; margin: 0; text-align: center; }
	.nhr-footer__actions { grid-area: actions; margin-top: 20px; }
	.nhr-footer__actions .fm-btn--v3 { display: none; }
	.nhr-footer__menu { margin-top: 70px; }
	.nhr-footer__menu:nth-of-type(1) { grid-area: links; }
	.nhr-footer__menu:nth-of-type(2) { grid-area: services; }
	.nhr-footer__legal { width: calc(100% - 60px); }
}
/* Phones: no contact bar (the old site hid it), one centered column, type at 87.5%. */
@media (max-width: 767px) {
	.nhr-footer__contact { display: none; }
	.nhr-footer__main { border-radius: 10px 10px 0 0; }
	.nhr-footer__grid { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 37px; width: calc(100% - 60px); text-align: center; }
	.nhr-footer__brand, .nhr-footer__menu, .nhr-footer__actions { width: 100%; }
	.nhr-footer__logo { margin-inline: auto; }
	.nhr-footer__about { font-size: 12.6px; line-height: 20.16px; }
	.nhr-footer__license p { font-size: 12.6px; line-height: 20.16px; }
	.nhr-footer__title[class] { font-size: 16.38px; line-height: 23px; letter-spacing: .819px; }
	.nhr-footer__menu .nhr-footer__title { margin-bottom: 33px; }
	.nhr-footer__list { align-items: center; }
	.nhr-footer__list li { line-height: 12.6px; }
	.nhr-footer__list a { font-size: 12.6px; line-height: 12.6px; letter-spacing: 1.26px; }
	.nhr-footer__actions { justify-items: center; gap: 20px; }
	.nhr-footer__buttons .fm-btn[class] { min-height: 48px; font-size: 14px; }
	.nhr-footer__buttons .fm-btn--v3[class] { min-height: 44px; }
	.nhr-footer__badge { width: 100%; max-width: 330px; }
	.nhr-footer__legal { flex-direction: column; align-items: center; width: calc(100% - 60px); text-align: center; }
	.nhr-footer__legal p { font-size: 14px; line-height: 19.6px; }
}

/* 7. Shared pieces for the nhr-* layouts ------------------------------------- */
.nhr-eyebrow { margin: 0; font-family: var(--fm-font-heading); font-size: 18px; font-weight: 900; line-height: 25.2px; letter-spacing: 2px; text-transform: uppercase; color: var(--nhr-red); }
.nhr-title { margin: 0; font-family: var(--fm-font-heading); font-size: 48px; font-weight: 800; line-height: 1.4; color: var(--nhr-ink); }
.nhr-center { text-align: center; }
.nhr-actions { display: flex; flex-wrap: wrap; gap: 20px; }
/* Phones: the old site keeps 35px section titles and 18px eyebrows (measured on every page at 390). */
@media (max-width: 979px) { .nhr-title { font-size: 35px; } .nhr-eyebrow { font-size: 18px; } } /* Tablets too: the old site at 768. */

/* 8. Section backgrounds (images here because layout CSS is inlined) ------------------- */
@media (max-width: 767px) { html { font-size: 14px; } } /* The old site's root size under 768px; rem-based type follows it. */
.nhr-split--curve, .nhr-call-cta, .nhr-check, .nhr-rgrid, .nhr-price-cards { position: relative; background: #e6e7e8 url("../img/gray-bg.webp") center / cover; }
.nhr-split--curve::after { content: ""; position: absolute; inset: auto 0 -1px; height: 56px; background: #fff; clip-path: ellipse(62% 100% at 50% 100%); }
.nhr-call-cta::before { content: ""; position: absolute; inset: -1px 0 auto; height: 52px; background: #fff; clip-path: ellipse(70% 100% at 38% 0); }
.nhr-why__panel { background: url("../img/red-dots.webp") center / cover, linear-gradient(var(--nhr-red) 0%, var(--nhr-red-bright) 100%); }
.nhr-coupon--card, .nhr-coupon--grid { background: #231f20 url("../img/Mask-group-3.webp") center / 100% 100% no-repeat; }
.nhr-coupon--hero { background: #231f20 url("../img/hero-coupon.webp") center / cover no-repeat; }
.nhr-coupons__deco--top { background-image: url("../img/Group-262.png"); }
.nhr-coupons__deco--bottom { background-image: url("../img/Group-261.png"); }
.nhr-anchor { background: url("../img/icons-pattern.webp") center / cover, var(--nhr-grad-yellow); }
.nhr-reviews, .nhr-band { background: #dadada url("../img/lines-bg.webp") center / cover; }
.nhr-reviews::before, .nhr-band::before { content: none; }
.nhr-areas { background: var(--nhr-ink) url("../img/areas-map-bg.webp") center / cover no-repeat; }
@media (max-width: 767px) { .nhr-areas { background-position: left center; background-size: auto 100%; } }

/* 1:1 with the old site: its headings and copy wrap where the browser puts them (no balancing). */
:is(.nhr-header, .nhr-footer, [class*="fm-section--nhr-"]) :is(h1, h2, h3, h4, p, li) { text-wrap: wrap; }
.nhr-page-hero, .nhr-club-hero, .nhr-offer-hero, .nhr-photo-hero { background: var(--nhr-red) url("../img/page-hero-bg.webp") center / cover no-repeat; }
.nhr-coupon--side { background: #231f20 url("../img/sidebar-coupon.webp") center / 100% 100% no-repeat; }
.nhr-svc__call { background: url("../img/Asset-2-5.png") center / cover no-repeat, var(--nhr-grad-yellow); }
.nhr-faq__box { background: var(--nhr-ink) url("../img/faq-bg.webp") center / cover no-repeat; }
.nhr-why--service .nhr-why__panel { background: url("../img/why-dots.webp") right center / cover no-repeat, var(--nhr-grad-red); }
.nhr-values { background: #e6e7e8 url("../img/values-bg.webp") center / cover; }
.nhr-find__box { background: url("../img/find-service-bg.webp") right center / cover no-repeat, var(--nhr-grad-red); }
.nhr-faq--split .nhr-faq__box { background: var(--nhr-ink) url("../img/faq-split-bg.webp") right center / cover no-repeat; }
.nhr-contact__box, .nhr-signup__box { background: url("../img/why-dots.webp") center / cover no-repeat, var(--nhr-grad-red); }

/* Shared by several nhr-* layouts: the outlined Click to Call button and the compact Gravity Form (labels for
   screen readers only, 40px gray fields, a small yellow Submit). */
.nhr-svc__call-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 220px; min-height: 52px; margin-top: 24px; border: 2px solid var(--fm-color-dark); border-radius: 5.6px; box-shadow: 0 4px 8px rgb(0 0 0 / .15); color: var(--fm-color-dark); font-weight: 700; line-height: 1; text-decoration: none; transition: background-color .3s, color .3s; }
.nhr-svc__call-btn svg { width: 20px; height: 20px; }
.nhr-svc__call-btn:is(:hover, :focus-visible) { background: var(--fm-color-dark); color: var(--fm-color-secondary); }
.nhr-svc__form .gform_wrapper .gfield_label, .nhr-svc__form .gform_wrapper .gform-field-label--type-sub { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nhr-svc__form .gform_wrapper .gform_fields { row-gap: 20px; }
/* Measured on the old service pages at 1280 and 390 (px, not rem: the root font drops to 14px on phones and the old form
   didn't shrink): 14px fields with 20px side padding, a 130px message box, the Opt-In label 14px bold, 20px rounded gray
   checks with 14px labels 12px away, a 14px submit (12px × 48px padding, 10px corners; full width on phones). */
.nhr-svc__form .gform_wrapper .gfield--type-checkbox .gfield_label { position: static; width: auto; height: auto; margin: 0 0 12px; padding: 0; clip: auto; font-size: 14px; font-weight: 700; line-height: 20px; color: var(--fm-color-dark); }
.nhr-svc__form .gform_wrapper .gfield_checkbox { display: grid; gap: 12px; }
.nhr-svc__form .gform_wrapper .gfield_checkbox .gchoice { display: flex; align-items: center; gap: 12px; }
.nhr-svc__form .gform_wrapper .gfield_checkbox input[type=checkbox] { appearance: none; display: grid; place-content: center; flex: none; width: 20px; height: 20px; margin: 0; border: 0; border-radius: 8px; background: #eef0f6; cursor: pointer; }
.nhr-svc__form .gform_wrapper .gfield_checkbox input[type=checkbox]::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--fm-color-primary); transform: scale(0); transition: transform .15s; }
.nhr-svc__form .gform_wrapper .gfield_checkbox input[type=checkbox]:checked::before { transform: scale(1); }
.nhr-svc__form .gform_wrapper .gfield_checkbox input[type=checkbox]:focus-visible { outline: 2px solid var(--fm-color-dark); outline-offset: 2px; }
.nhr-svc__form .gform_wrapper .gfield_checkbox label { margin: 0; font-size: 14px; line-height: 20px; color: #112337; }
.nhr-svc__form .gform_wrapper .gfield_description, .nhr-svc__form .gform_wrapper .fm-gf-terms { font-size: 11px; line-height: 1.6; }
.nhr-svc__form .gform_wrapper .gform_footer :is(input[type="submit"], button) { min-width: 0; min-height: 0; padding: 12px 48px; border: 0; border-radius: 10px; background: linear-gradient(var(--fm-color-secondary) 0%, #ffc801 100%); box-shadow: 4px 4px 0 #b58f02; color: var(--fm-color-dark); font-size: 14px; font-weight: 700; line-height: 16.8px; text-transform: uppercase; cursor: pointer; }
.nhr-svc__form .gform_wrapper { --gf-ctrl-bg-color: #eef0f6; --gf-ctrl-bg-color-hover: #eef0f6; --gf-ctrl-bg-color-focus: #fff; --gf-ctrl-border-color: transparent; --gf-ctrl-radius: 8px; --gf-ctrl-size: 40px; --gf-ctrl-font-size: 14px; --gf-ctrl-btn-bg-color-primary: #fbe013; --gf-ctrl-btn-bg-color-hover-primary: #b58f02; --gf-ctrl-btn-color-primary: #fff; --gf-ctrl-btn-radius: 10px; --gf-ctrl-btn-font-size: 14px; --gf-ctrl-btn-padding-x: 48px; }

.nhr-svc__form .gform_wrapper.gform_wrapper :is(input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]), select) { min-height: 40px; height: 40px; padding: 0 20px; border: 0; border-radius: 8px; background: #eef0f6; font-size: 14px; }
/* Above the core's .gform_wrapper :is(input:not()…, textarea) rule (0,5,1). */
.nhr-svc__form .gform_wrapper.gform_wrapper.gform_wrapper.gform_wrapper.gform_wrapper textarea { min-height: 130px; height: 130px; padding: 12px; border: 0; border-radius: 8px; background: #eef0f6; font-size: 14px; }
@media (max-width: 767px) {
	.nhr-svc__form .gform_wrapper .gform_footer :is(input[type="submit"], button) { width: 100%; padding: 10.5px 42px; }
}
/* The Contact block's form (old Global Block "Contact"): 14px fields, a 130px message box, 20px round checks. */
.nhr-contact__form .gform_wrapper.gform_wrapper :is(input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]), select) { font-size: .875rem; }
.nhr-contact__form .gform_wrapper.gform_wrapper textarea { min-height: 130px; height: 130px; font-size: .875rem; line-height: 1.5; }
.nhr-contact__form .gform_wrapper .gfield--type-checkbox .gfield_label { margin-bottom: 12px; line-height: 1.43; }
.nhr-contact__form .gform_wrapper .gfield_checkbox { display: grid; gap: 12px; }
.nhr-contact__form .gform_wrapper .gfield_checkbox .gchoice { display: flex; align-items: center; gap: 12px; line-height: 1; }
.nhr-contact__form .gform_wrapper .gfield_checkbox input[type=checkbox] { appearance: none; display: grid; place-content: center; flex: none; width: 20px; height: 20px; margin: 0; border: 0; border-radius: 50%; background: #eef0f6; cursor: pointer; }
.nhr-contact__form .gform_wrapper .gfield_checkbox input[type=checkbox]::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--fm-color-primary); transform: scale(0); transition: transform .15s; }
.nhr-contact__form .gform_wrapper .gfield_checkbox input[type=checkbox]:checked::before { transform: scale(1); }
.nhr-contact__form .gform_wrapper .gfield_checkbox input[type=checkbox]:focus-visible { outline: 2px solid var(--fm-color-dark); outline-offset: 2px; }
.nhr-contact__form .gform_wrapper .gfield_checkbox label { font-size: .875rem; line-height: 1.43; }
/* A field set to Hidden Label stays hidden (screen readers still read it), over the Opt-In label rule above. */
.gform_wrapper .gfield.hidden_label > .gfield_label[class] { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nhr-contact__form .gform_wrapper.gform_wrapper :is(input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]), select) { height: 40px; }
.nhr-contact__form .gform_wrapper textarea { display: block; }
.nhr-contact__form .gform_wrapper .gfield--type-captcha { position: absolute; }
.nhr-contact__form .gform_wrapper .gfield--type-html small { font-family: var(--fm-font-body); font-size: .8333rem; line-height: 22.4px; }
.nhr-contact__form .gform_wrapper .gfield--type-html p { margin: 0 0 16px; }
/* Space above the Contact block as the old pages have it: 165px under the page hero, 100px under a gray band. */
.fm-section--nhr-page-hero + .fm-section--nhr-contact .nhr-contact { padding-top: 165px; }
.fm-section--nhr-checklist + .fm-section--nhr-contact .nhr-contact { padding-top: 100px; }
/* Phones (the old pages at 390): under the page hero it stays 165px (Contact Us); 100px under the check list (Guarantee). */
@media (max-width: 767px) { .fm-section--nhr-checklist + .fm-section--nhr-contact .nhr-contact { padding-top: 100px; } }
.fm-section:is(.fm-section--nhr-intro, .fm-section--nhr-faq) + .fm-section--nhr-contact .nhr-contact { padding-top: 100px; }
/* Financing: the loans headline sits 31px under the intro text, as on the old page. */
.fm-section--nhr-intro + .fm-section--nhr-loans .nhr-loans { padding-top: 31px; }
/* Phones: the old page runs the intro and the loans together (the title 28px under the text). */
@media (max-width: 767px) { .fm-section--nhr-intro:has(+ .fm-section--nhr-loans) .nhr-intro { padding-bottom: 28px; } .fm-section--nhr-intro + .fm-section--nhr-loans .nhr-loans { padding-top: 0; } }
.nhr-contact__form .gform_wrapper .gform_footer { margin-top: 24px; }
.nhr-contact__form .gform_wrapper .gform_footer :is(input[type="submit"], button) { height: 41px; min-height: 41px; padding: 12px 48px; line-height: 17px; }
/* YouTube play mark on video posters (Videos, Benefits Band). */
.nhr-yt-icon { position: absolute; top: 50%; left: 50%; width: 68px; height: 48px; border-radius: 12px; background: #f00; transform: translate(-50%, -50%); }
.nhr-yt-icon::after { content: ""; position: absolute; top: 50%; left: 50%; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; transform: translate(-40%, -50%); }
/* HVAC Pricing: the "60 Second System Survey" buttons (to #survey) are the old site's blue, not a Site Settings style. */
.fm-btn[class][href$="#survey"] { min-width: 258px; min-height: 53px; border-color: #5874ba; background: #5874ba; box-shadow: 3px 3px 0 #6c91ee; color: #fff; }
.fm-btn[class][href$="#survey"]:is(:hover, :focus-visible) { background: #3f5a9c; box-shadow: none; color: #fff; }
@media (max-width: 767px) { .fm-btn[class][href$="#survey"] { min-height: 48px; } }
/* Campaign pages: the offer and centered call-to-action sections sit on the gray background; the red call pill
   (number over "24/7 live answering") is shared by the offer card and the dark band. */
.nhr-offer, .nhr-cta-center, .nhr-videos--band { background: #e6e7e8 url("../img/gray-bg.webp") center / cover; }
.nhr-call-pill { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-width: 220px; min-height: 63px; padding: 6px 20px; border-radius: 5.6px; background: linear-gradient(var(--fm-color-primary) 0%, #dc3033 100%); box-shadow: 4px 4px 0 #7d0f12; color: #fff; text-decoration: none; }
.nhr-call-pill svg { width: 20px; height: 20px; flex: none; }
.nhr-call-pill span { display: grid; font-family: var(--fm-font-heading); font-weight: 700; line-height: 1.4; text-align: center; }
.nhr-call-pill small { font-family: var(--fm-font-body); font-size: .7rem; line-height: 1.8; text-transform: uppercase; color: var(--fm-color-secondary); }
.nhr-call-pill:is(:hover, :focus-visible) { box-shadow: none; }
/* Phones: 55px, as on the old campaign pages at 390. */
@media (max-width: 767px) { .nhr-call-pill { min-height: 55px; } }

/* ---------------------------------------------------------------- Blog (template-parts/client-home.php,
   client-single.php), measured on the old blog: six cards a page, 349px, 40px apart, 10px corners, a 196px
   picture with a yellow tag; round page numbers; posts with a 718px column beside 359px Recent News. */
.nhr-blog { padding: 77px 0 100px; }
.nhr-blog__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 349fr)); justify-content: space-between; gap: 40px; margin: 0; padding: 0; list-style: none; }
.nhr-blog__card { position: relative; display: flex; flex-direction: column; overflow: hidden; min-height: 353px; border-radius: 10px; background: #fff; box-shadow: 0 8px 30px rgb(8 8 39 / .1); }
.nhr-blog__media { display: block; height: 196px; overflow: hidden; }
.nhr-blog__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nhr-blog__tag { position: absolute; top: 148px; left: 0; min-width: 76px; padding: 13px 20px 12px; border-radius: 10px 10px 0 0; background: linear-gradient(var(--fm-color-secondary) 14%, #ffc700 100%); font-family: var(--fm-font-heading); font-weight: 700; line-height: 1.4; color: var(--fm-color-dark); }
.nhr-blog__body { display: flex; flex-direction: column; flex: 1; padding: 20px; }
.nhr-blog__title { margin: 0; font-size: 1rem; font-weight: 700; line-height: 1.4; }
.nhr-blog__title a { color: var(--fm-color-dark); text-decoration: none; }
.nhr-blog__title a:is(:hover, :focus-visible) { color: var(--fm-color-primary); }
.nhr-blog__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 20px; line-height: 1.8; color: #000; }
.nhr-blog__more { display: inline-flex; align-items: center; gap: 16px; font-family: var(--fm-font-heading); font-weight: 700; color: var(--fm-color-primary); text-decoration: none; }
.nhr-blog__arrow { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--fm-color-primary); color: #fff; }
.nhr-blog__arrow svg { width: 16px; height: 16px; }
.nhr-blog__more:is(:hover, :focus-visible) { text-decoration: underline; }
.nhr-blog .navigation { margin-top: 85px; }
.nhr-blog .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.nhr-blog .page-numbers { display: grid; place-items: center; min-width: 48px; height: 48px; padding: 0 12px; border-radius: 1600px; background: rgb(0 0 0 / .075); color: var(--fm-color-dark); font-weight: 700; text-decoration: none; }
.nhr-blog .page-numbers.current { background: rgb(0 0 0 / .3); }
.nhr-blog a.page-numbers:is(:hover, :focus-visible) { background: var(--fm-color-primary); color: #fff; }
.nhr-post { padding: 100px 0; }
.nhr-post__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.nhr-post__bar > .fm-btn[class] { min-width: 200px; min-height: 53px; }
.nhr-post__nav { display: flex; gap: 10px; }
.nhr-post__nav a { display: grid; place-items: center; min-width: 107px; min-height: 48px; padding: 0 14px; border-radius: 5px; background: var(--fm-color-primary); box-shadow: 2px 2px 0 2px #7d0f12; font-family: var(--fm-font-heading); font-weight: 700; line-height: 1; color: #fff; text-decoration: none; }
.nhr-post__nav a:is(:hover, :focus-visible) { box-shadow: none; background: #7d0f12; }
.nhr-post__inner { display: grid; grid-template-columns: minmax(0, 718fr) minmax(0, 359fr); justify-content: space-between; gap: 49px; align-items: start; margin-top: 75px; }
.nhr-post__img { display: block; width: 600px; max-width: 100%; height: auto; border-radius: 0; }
.nhr-post__title { margin: 32px 0 0; font-size: 2.5rem; font-weight: 700; line-height: 1.4; color: var(--fm-color-dark); }
.nhr-post__date { margin: 16px 0 0; font-family: var(--fm-font-heading); font-size: 1.2rem; font-weight: 900; line-height: 1.4; text-transform: uppercase; color: var(--fm-color-primary); }
.nhr-post__content { margin-top: 48px; line-height: 1.8; color: #404041; }
.nhr-post__content > :first-child { margin-top: 0; }
.nhr-post__content p { margin: 0 0 16px; }
.nhr-post__content h2 { margin: 27.5px 0 4.4px; font-size: 1.375rem; font-weight: 700; line-height: 1.2; color: var(--fm-color-dark); }
.nhr-post__content h3 { margin: 22.5px 0 3.6px; font-size: 1.125rem; font-weight: 700; line-height: 1.3; color: var(--fm-color-dark); }
.nhr-post__content :is(ul, ol) { margin: 0 0 34.4px; padding-left: 26.48px; }
.nhr-post__content a { color: var(--fm-color-primary); }
.nhr-post__content img { max-width: 100%; height: auto; }
.nhr-post__side-title { margin: 0; font-size: 1.8rem; font-weight: 700; line-height: 1.4; color: var(--fm-color-dark); }
.nhr-post__recent { display: grid; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.nhr-post__recent a { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; align-items: start; padding: 20px; border-radius: 12px; background: var(--fm-color-primary); box-shadow: 4px 4px 0 #7d0f12; color: #fff; text-decoration: none; }
.nhr-post__recent img { width: 96px; height: 100px; object-fit: cover; }
.nhr-post__recent span { display: grid; }
.nhr-post__recent-title { font-family: var(--fm-font-heading); font-weight: 700; line-height: 1.4; }
.nhr-post__recent time { margin-top: 6px; font-family: var(--fm-font-heading); font-size: .7rem; font-weight: 700; line-height: 1.4; }
.nhr-post__recent a:is(:hover, :focus-visible) .nhr-post__recent-title { text-decoration: underline; }
@media (max-width: 979px) { .nhr-blog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } } /* Posts keep the sidebar beside them down to 768, as the old posts. */
@media (min-width: 768px) and (max-width: 1199px) { .nhr-post__inner { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } } /* Two to one, as the old posts at 768 and 1080. */
@media (max-width: 767px) { .nhr-post__inner { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767px) { .nhr-blog { padding: 50px 0 75px; } .nhr-blog__grid { grid-template-columns: minmax(0, 1fr); } .nhr-post { padding: 50px 0 75px; } .nhr-post__inner { margin-top: 40px; } .nhr-post__title { font-size: 2rem; } }
.nhr-post { margin-top: -16px; }
.nhr-post__img { height: 400px; object-fit: cover; }
/* Phones (the old posts at 390): 100px down, the picture 400px tall 70px under the buttons, a 35px title, 22px headings. */
@media (max-width: 767px) { .nhr-post[class] { padding-top: 100px; } .nhr-post__inner[class] { margin-top: 70px; } .nhr-post__title[class] { font-size: 35px; } .nhr-post__content h2 { font-size: 22px; } }

/* ---------------------------------------------------------------- Page hero (layouts/nhr-page-hero): here, not in the
   layout's style.css, so the blog listing and search results (not built from sections) get it too. */
/* NH Ross Page Hero: measured on the old service pages (313px band under the header, title 56px/900,
   breadcrumbs 19.2px with yellow round separators). */
.fm-section--nhr-page-hero { margin-top: -16px; padding: 0; }
.nhr-page-hero { min-height: 313px; padding: 80px 0 50px; color: #fff; }
.nhr-page-hero__title { margin: 0; font-size: 3.5rem; font-weight: 900; line-height: 1.4; color: #fff; }
.nhr-page-hero__line { display: block; width: 235px; height: auto; margin-top: 6px; }
.nhr-page-hero__crumbs { margin-top: 24px; font-family: var(--fm-font-heading); font-size: 1.2rem; line-height: 1.3; text-transform: capitalize; }
.nhr-page-hero__crumbs :is(ol, ul) { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0; padding: 0; list-style: none; }
.nhr-page-hero__crumbs li { display: flex; align-items: center; gap: 12px; margin: 0; }
/* The arrow ends each crumb (as on the old site), so a wrapped crumb starts its line with its text. */
.nhr-page-hero__crumbs li:not(:last-child)::after { content: ""; width: 26px; height: 26px; border-radius: 50%; background: var(--fm-color-secondary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 7l5 5-5 5' fill='none' stroke='%23231f20' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.nhr-page-hero__crumbs a { color: #fff; text-decoration: none; }
.nhr-page-hero__crumbs a:is(:hover, :focus-visible) { text-decoration: underline; }
.nhr-page-hero__crumbs li:last-child, .nhr-page-hero__crumbs [aria-current] { font-weight: 700; }
.nhr-page-hero__crumbs :is(.fm-breadcrumbs__separator, .aioseo-breadcrumb-separator) { display: none; }
/* Phones (the old hero at 390: 80px above and below, the line 4px under the title, the crumbs 19px under it, full size). */
@media (max-width: 767px) {
	.nhr-page-hero { min-height: 0; padding: 80px 0; }
	.nhr-page-hero__title { font-size: 2.5rem; }
	.nhr-page-hero__line { margin-top: 4px; }
	.nhr-page-hero__crumbs { margin-top: 19px; }
	.nhr-page-hero__crumbs :is(ol, ul) { row-gap: 0; }
	.blog .nhr-page-hero__title { font-size: 50px; } /* The old blog listing's title stays large on phones. */
}
.nhr-blog .page-numbers svg { width: 16px; height: 16px; }
/* Search results: the site's 1126px column. */
:is(.search-results, .search-no-results) .fm-container { width: min(88%, 1200px); max-width: none; margin-inline: auto; padding-inline: 0; }
.nhr-footer--landing { padding: 24px 0; background: var(--fm-color-dark); }

/* ---------------------------------------------------------------- Legal pages (the parent's Content layout, used only by the
   Privacy Policy and Terms & Conditions here): the old pages' full-width text, 100px above and below, 16px / 28.8px body,
   27.4px headings 48px above. */
.fm-section--content[class] { padding: 100px 0; }
.fm-section--content .fm-measure { width: var(--nhr-wrap); max-width: none; margin-inline: auto; padding-inline: 0; }
.fm-section--content .fm-prose { color: #000; font-size: 1rem; line-height: 1.8; }
.fm-section--content .fm-prose :is(p, ul, ol) { margin: 0 0 16px; }
.fm-section--content .fm-prose li { margin: 0 0 6px; }
.fm-section--content .fm-prose li > ul { margin: 6px 0 0; }
.fm-section--content .fm-prose h2 { margin: 48px 0 14px; font-family: var(--fm-font-heading); font-size: 27.4px; font-weight: 700; line-height: 1.4; color: var(--fm-color-dark); text-wrap: balance; }
.fm-section--content .fm-prose h3 { margin: 30px 0 10px; font-family: var(--fm-font-heading); font-size: 20px; font-weight: 700; line-height: 1.4; color: var(--fm-color-dark); }
.fm-section--content .fm-prose > :first-child { margin-top: 0; }
.fm-section--content .fm-prose a { color: var(--fm-color-primary); text-decoration: underline; overflow-wrap: anywhere; }
@media (max-width: 767px) { .fm-section--content[class] { padding: 70px 0; } .fm-section--content .fm-prose h2 { font-size: 24px; } }

/* Form buttons (Submit, Next, Previous) look like the site's yellow button (.fm-btn--v1): dark text, same type, corners, shadow
   and hover (team, 2026-11-12). Each form keeps its own size. */
.gform_wrapper :is(.gform_footer, .gform_page_footer) :is(input[type="submit"], input[type="button"], button)[class] {
	border: 0; border-radius: 5.6px; background: var(--nhr-grad-yellow) var(--nhr-yellow); box-shadow: 4px 4px 0 var(--nhr-gold-shadow);
	color: var(--nhr-ink); font-family: var(--fm-font-button, inherit); font-size: 16px; font-weight: 700; line-height: 1; text-transform: none;
	text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, box-shadow .2s;
}
.gform_wrapper :is(.gform_footer, .gform_page_footer) :is(input[type="submit"], input[type="button"], button)[class]:is(:hover, :focus-visible) {
	background: var(--nhr-gold-shadow); box-shadow: none; color: #fff;
}
.gform_wrapper :is(.gform_footer, .gform_page_footer) :is(input[type="submit"], input[type="button"], button)[class]:focus-visible { outline: 3px solid var(--nhr-ink); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .gform_wrapper :is(.gform_footer, .gform_page_footer) :is(input, button)[class] { transition: none; } }

/* Phone swoosh (offer call to action, call band, HVAC Pricing): the white line under the number is a mask, so on hover anywhere on the
   phone group (number, line, 24/7 line) or focus of the number it fills yellow from left to right and the phone icon rings
   (team, 2026-11-12). */
.nhr-callgroup { display: grid; justify-items: center; justify-self: stretch; }
.nhr-swoosh { display: block; width: 248px; height: 20px; background: linear-gradient(90deg, var(--nhr-yellow) 50%, #fff 50%) 100% 0 / 200% 100% no-repeat; -webkit-mask: url("../img/Layer_2-1.png") center / 100% 100% no-repeat; mask: url("../img/Layer_2-1.png") center / 100% 100% no-repeat; transition: background-position .45s ease-out; }
.nhr-callgroup:is(:hover, :focus-within) .nhr-swoosh, .nhr-band__phone:is(:hover, :focus-visible) .nhr-swoosh { background-position: 0 0; }
/* The call band's line (Layer_2.png, 252 x 16). */
.nhr-swoosh--band { height: auto; aspect-ratio: 252 / 16; -webkit-mask-image: url("../img/Layer_2.png"); mask-image: url("../img/Layer_2.png"); }
.nhr-offer-cta__phone img { transition: transform .3s; }
.nhr-callgroup:is(:hover, :focus-within) .nhr-offer-cta__phone img, .nhr-band__phone:is(:hover, :focus-visible) > img { animation: nhr-ring .6s ease-in-out; }
@keyframes nhr-ring { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-14deg); } 40% { transform: rotate(12deg); } 60% { transform: rotate(-8deg); } 80% { transform: rotate(5deg); } }
@media (prefers-reduced-motion: reduce) { .nhr-swoosh { transition: none; } .nhr-callgroup:is(:hover, :focus-within) .nhr-offer-cta__phone img, .nhr-band__phone:is(:hover, :focus-visible) > img { animation: none; } }

/* Coupon cards: a vector curve along the bottom (it keeps its shape at any card size and stays sharp) over the red, so the
   offer text sits on clean red and the expiry on black (team, 2026-11-12; was Mask-group-3.webp stretched to the card). */
.nhr-coupon--card, .nhr-coupon--grid {
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 150' preserveAspectRatio='none'%3E%3Cpath d='M0 80C150 76 290 50 400 4V32C290 66 150 84 0 88Z' fill='%23fbe013'/%3E%3Cpath d='M0 88C150 84 290 66 400 32V150H0Z' fill='%23231f20'/%3E%3C/svg%3E") left bottom / 100% min(150px, 42%) no-repeat, linear-gradient(#a8191c, #d42a2d 85%);
}
