/*!
Theme Name: Grandir Theme 2
Theme URI: https://grandirsolutions.com/
Author: Grandir Solutions
Author URI: https://grandirsolutions.com/
Description: A structured, SEO-focused WordPress theme by Grandir Solutions for building lead-generating websites for contractor and home-service companies.
Version: 1.10.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: grandir-theme-2
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.

Grandir Theme 2 is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments
# Grandir layout
# Brand color

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
}

/* Sections
	 ========================================================================== */

/**
 * Remove the margin in all browsers.
 */
body {
	margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
	display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
	font-size: 2em;
	margin: 0.67em 0;
}

/* Grouping content
	 ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
	box-sizing: content-box;
	height: 0;
	overflow: visible;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
	font-family: monospace, monospace;
	font-size: 1em;
}

/* Text-level semantics
	 ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */
a {
	background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
	border-bottom: none;
	text-decoration: underline;
	text-decoration: underline dotted;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
	font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
	font-family: monospace, monospace;
	font-size: 1em;
}

/**
 * Add the correct font size in all browsers.
 */
small {
	font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub {
	bottom: -0.25em;
}

sup {
	top: -0.5em;
}

/* Embedded content
	 ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */
img {
	border-style: none;
}

/* Forms
	 ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
	font-family: inherit;
	font-size: 100%;
	line-height: 1.15;
	margin: 0;
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
	overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
	text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
	-webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
	border-style: none;
	padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
	outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
	padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *		`fieldset` elements in all browsers.
 */
legend {
	box-sizing: border-box;
	color: inherit;
	display: table;
	max-width: 100%;
	padding: 0;
	white-space: normal;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
	vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
	overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
	box-sizing: border-box;
	padding: 0;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
	-webkit-appearance: textfield;
	outline-offset: -2px;
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
	-webkit-appearance: button;
	font: inherit;
}

/* Interactive
	 ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
	display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
	display: list-item;
}

/* Misc
	 ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */
template {
	display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
	display: none;
}

/* Box sizing
--------------------------------------------- */

/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
*::before,
*::after {
	box-sizing: inherit;
}

html {
	box-sizing: border-box;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

/* Typography
--------------------------------------------- */
body,
button,
input,
select,
optgroup,
textarea {
	color: var(--grandir-color-text);
	font-family: var(--grandir-font-body);
	font-size: 1rem;
	line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	clear: both;
	font-family: var(--grandir-font-heading);
}

p {
	margin-bottom: 1.5em;
}

dfn,
cite,
em,
i {
	font-style: italic;
}

blockquote {
	margin: 0 1.5em;
}

address {
	margin: 0 0 1.5em;
}

pre {
	background: #eee;
	font-family: "Courier 10 Pitch", courier, monospace;
	line-height: 1.6;
	margin-bottom: 1.6em;
	max-width: 100%;
	overflow: auto;
	padding: 1.6em;
}

code,
kbd,
tt,
var {
	font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

abbr,
acronym {
	border-bottom: 1px dotted #666;
	cursor: help;
}

mark,
ins {
	background: #fff9c0;
	text-decoration: none;
}

big {
	font-size: 125%;
}

/* Elements
--------------------------------------------- */
body {
	background: #fff;
}

hr {
	background-color: #ccc;
	border: 0;
	height: 1px;
	margin-bottom: 1.5em;
}

ul,
ol {
	margin: 0 0 1.5em 3em;
}

ul {
	list-style: disc;
}

ol {
	list-style: decimal;
}

li > ul,
li > ol {
	margin-bottom: 0;
	margin-left: 1.5em;
}

dt {
	font-weight: 700;
}

dd {
	margin: 0 1.5em 1.5em;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
	max-width: 100%;
}

img {
	height: auto;
	max-width: 100%;
}

figure {
	margin: 1em 0;
}

table {
	margin: 0 0 1.5em;
	width: 100%;
}

/* Links
--------------------------------------------- */
a,
a:visited {
	color: var(--grandir-color-link);
}

a:hover,
a:focus,
a:active {
	color: var(--grandir-color-link);
	text-decoration-thickness: 2px;
}

/* Forms
--------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	border: 1px solid;
	border-color: #ccc #ccc #bbb;
	border-radius: var(--grandir-button-radius);
	background: #e6e6e6;
	color: rgba(0, 0, 0, 0.8);
	line-height: 1;
	padding: 0.6em 1em 0.4em;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	border-color: #ccc #bbb #aaa;
}

button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
	border-color: #aaa #bbb #bbb;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
	color: #666;
	border: 1px solid #ccc;
	padding: 3px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
	color: #111;
}

select {
	border: 1px solid #ccc;
}

textarea {
	width: 100%;
}

/*--------------------------------------------------------------
# Layouts
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/

/* Header and primary navigation
--------------------------------------------- */

/*
 * Three columns with the logo centered at every width. Mobile first:
 * hamburger left, call button (and quote button from 40em) right, menu in a
 * full-screen overlay. The logo steps up from phone to tablet (40em) to
 * desktop (85em) size, and shrinks once the page scrolls. At 85em and up the
 * menu takes the left column and the call button shows its number.
 * Keep the 85em breakpoint in sync with js/navigation.js.
 *
 * The header is fixed. Over a hero photo (body.has-hero-image) it starts
 * see-through, unless the hero text is dark (body.has-hero-dark-text, from
 * the Hero Overlay setting), where white header text can't sit; elsewhere, and once the page scrolls (.is-scrolled, from
 * js/header.js), it's the dark brand color, like the footer, so light logos
 * show. Scrolled, the logo shrinks. The logo follows the footer's rules
 * (grandir_theme_2_site_logo()).
 *
 * Logos are sized by shape, not just height. grandir_theme_2_site_logo()
 * passes the logo's width/height as --grandir-logo-ratio (with a --ratio
 * wrapper class), and the logo's width grows with the ratio raised to
 * --grandir-logo-curve (0 = same height for every shape, 0.5 = same area,
 * 1 = same width). A square logo is the full size; wider ones get wider
 * but shorter, and tall ones top out at the full height. Without a ratio
 * (no stored dimensions) the logo is capped at the size's height.
 * --grandir-logo-scale (Customize → Brand → Logo size, printed by
 * inc/brand.php) scales every logo size, and the header's heights follow.
 *
 * --grandir-header-full is the header's height at the top of the page (the
 * space kept above the content), --grandir-header-scrolled its scrolled
 * height (anchor offsets). js/navigation.js measures the real header bottom
 * into --grandir-header-height, where the mobile menu starts.
 */
:root {
	--grandir-logo-scale: 1;
	--grandir-header-logo: calc(5rem * var(--grandir-logo-scale));
	--grandir-header-logo-scrolled: calc(3rem * var(--grandir-logo-scale));
	--grandir-header-full: calc(var(--grandir-header-logo) + 2rem);
	--grandir-header-scrolled: calc(var(--grandir-header-logo-scrolled) + 2rem);
	--grandir-footer-logo: calc(10rem * var(--grandir-logo-scale));
	--grandir-logo-curve: 0.6;
}

/* Tablet: a mid-size logo. */
@media screen and (min-width: 40em) {

	:root {
		--grandir-header-logo: calc(6.5rem * var(--grandir-logo-scale));
		--grandir-header-logo-scrolled: calc(3.5rem * var(--grandir-logo-scale));
		--grandir-header-full: calc(var(--grandir-header-logo) + 3.5rem);
	}

	.site-header__inner {
		padding-block: 1rem;
	}

	.site-header.is-scrolled .site-header__inner {
		padding-block: 0.5rem;
	}

	.site-branding--backed {
		padding: 0.625rem 1rem;
	}

	.site-header.is-scrolled .site-branding--backed {
		padding: 0.375rem 0.75rem;
	}

	.site-branding .site-title {
		font-size: 1.75rem;
	}
}

/* Desktop: the full-size logo. */
@media screen and (min-width: 85em) {

	:root {
		/* The logo, its white panel's padding (1.25rem) and the header's (2rem). */
		--grandir-header-logo: calc(11rem * var(--grandir-logo-scale));
		--grandir-header-full: calc(var(--grandir-header-logo) + 3.25rem);
	}
}

.site {
	/* Full-width bands and photos (calc(50% - 50vw)) can't cause a sideways scroll; clip keeps sticky and fixed working. */
	overflow-x: clip;
	padding-block-start: var(--grandir-header-full);
	position: relative;
}

.site-header {
	--grandir-color-focus: #fff;
	background: var(--grandir-color-primary-deep);
	border-block-end: 1px solid rgba(255, 255, 255, 0.15);
	color: #fff;
	inset-block-start: 0;
	inset-inline: 0;
	position: fixed;
	z-index: 1000;
}

.admin-bar .site-header {
	top: 32px;
}

@media screen and (max-width: 782px) {

	.admin-bar .site-header {
		top: 46px;
	}
}

@media screen and (max-width: 600px) {

	/* The admin bar scrolls away on small screens, so the header sits on it until then. */
	.admin-bar .site-header {
		position: absolute;
		top: 0;
	}

	.admin-bar .site-header.is-scrolled {
		position: fixed;
	}
}

.site-header__inner {
	align-items: center;
	box-sizing: border-box;
	display: grid;
	gap: 1rem;
	/* The sides never shrink below their buttons; the logo column gives way. */
	grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr);
	margin-inline: auto;
	max-width: calc(var(--grandir-content-width, 72rem) - 2rem + 2 * var(--grandir-gutter, 1rem));
	min-height: var(--grandir-header-full);
	padding: 0.5rem var(--grandir-gutter, 1rem);
}

.site-header.is-scrolled .site-header__inner {
	min-height: var(--grandir-header-scrolled);
}

.site-branding {
	grid-column: 2;
	grid-row: 1;
	justify-self: center;
	min-width: 0;
}

.menu-toggle {
	grid-column: 1;
	grid-row: 1;
	justify-self: start;
}

.site-branding .custom-logo-link,
.site-branding .site-title {
	display: block;
}

.site-branding .custom-logo {
	display: block;
	height: auto;
	max-height: var(--grandir-header-logo);
	width: auto;
	max-width: 100%;
}

/* SVG logos have no fixed pixel size, so give them an explicit height. */
.site-branding .custom-logo[src$=".svg"] {
	height: var(--grandir-header-logo);
}

.site-header.is-scrolled .custom-logo {
	max-height: var(--grandir-header-logo-scrolled);
}

.site-header.is-scrolled .custom-logo[src$=".svg"] {
	height: var(--grandir-header-logo-scrolled);
}

/* Sized by shape (see the comment at the top of this section). */
.site-branding {
	/* Steeper than the footer's: the header's center column has less room for wide logos. */
	--grandir-logo-curve: 0.5;
	--grandir-logo-size: var(--grandir-header-logo);
}

.site-header.is-scrolled .site-branding {
	--grandir-logo-size: var(--grandir-header-logo-scrolled);
}

.site-header .site-branding--ratio .custom-logo[src],
.site-footer .site-footer__logo--ratio .custom-logo[src] {
	height: auto;
	max-height: none;
	max-width: 100%;
	width: min(var(--grandir-logo-size) * pow(var(--grandir-logo-ratio), var(--grandir-logo-curve)), var(--grandir-logo-size) * var(--grandir-logo-ratio));
}

/* Regular (dark) logo on a white panel, when no dark-background logo is set. */
.site-branding--backed {
	background: #fff;
	padding: 0.375rem 0.75rem;
}

.site-branding .site-title {
	color: inherit;
	font-size: 1.25rem;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
}

/* Over a hero photo: see-through, with a fade so white text and links read. */
.has-hero-image .site {
	padding-block-start: 0;
}

.has-hero-image .site-header:not(.is-scrolled) {
	background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
	border-block-end-width: 0;
}

/* Over dark hero text (a light overlay): solid, as when scrolled. */
.has-hero-image.has-hero-dark-text .site-header:not(.is-scrolled) {
	background: var(--grandir-color-primary-deep);
}

/* Solid again while the mobile menu is open under it. */
.nav-open .has-hero-image .site-header:not(.is-scrolled) {
	background: var(--grandir-color-primary-deep);
}

/*
 * The hero runs up under the header; its content starts below it. Together
 * they fill 80% of the screen (svh: steady while phone toolbars slide), with
 * room for the header plus 18rem at least. Longer content makes it taller.
 */
.has-hero-image .site-main > .hero--image {
	min-height: max(80vh, var(--grandir-header-full) + 18rem);
	min-height: max(80svh, var(--grandir-header-full) + 18rem);
	padding-block-start: calc(var(--grandir-header-full) + 3rem);
}

@media (prefers-reduced-motion: no-preference) {

	.site-header,
	.site-header__inner,
	.site-branding .custom-logo {
		transition:
			background-color var(--grandir-motion) var(--grandir-ease),
			height var(--grandir-motion) var(--grandir-ease),
			max-height var(--grandir-motion) var(--grandir-ease),
			min-height var(--grandir-motion) var(--grandir-ease),
			width var(--grandir-motion) var(--grandir-ease);
	}
}

.site-header__actions {
	align-items: center;
	display: flex;
	gap: 0.25rem;
	grid-column: 3;
	grid-row: 1;
	justify-self: end;
}

/*
 * Get a Quote: a white pill that swipes to a white outline on hover, like
 * every button (see "Buttons"). Hidden on phones, where the call icon is the ask.
 */
.site-header__quote {
	border: 2px solid;
	border-radius: var(--grandir-button-radius);
	display: none;
	font-weight: 700;
	padding: 0.5em 1.25em;
	text-align: center;
	text-decoration: none;
}

.site-header .site-header__quote {
	--grandir-btn-fill: #fff;
	--grandir-btn-on-fill: var(--grandir-color-primary-deep);
	--grandir-btn-line: #fff;
}

@media screen and (min-width: 40em) {

	.site-header__quote {
		display: inline-block;
		margin-inline: 0.5rem;
	}
}

.icon {
	display: block;
	flex-shrink: 0;
}

.site-header__call,
.menu-toggle,
.submenu-toggle {
	align-items: center;
	background: none;
	border: 0;
	border-radius: 4px;
	color: inherit;
	cursor: pointer;
	display: inline-flex;
	justify-content: center;
	min-height: 44px;
	min-width: 44px;
	padding: 0;
}

.site-header__call {
	gap: 0.5rem;
	text-decoration: none;
}

/* Mobile: icon only, the number stays available to screen readers. */
.site-header__call-number {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal;
}

/* Hamburger morphs into an X when open. */
/* fill-box: each line turns around its own center, not the icon's. */
.icon-menu path {
	transform-box: fill-box;
	transform-origin: center;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] .icon-menu__top {
	transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .icon-menu__middle {
	opacity: 0;
}

.menu-toggle[aria-expanded="true"] .icon-menu__bottom {
	transform: translateY(-6px) rotate(-45deg);
}

.main-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.main-navigation li {
	position: relative;
}

.main-navigation a {
	color: inherit;
	display: block;
	text-decoration: none;
}

.submenu-toggle .icon {
	transition: transform 0.2s ease;
}

.submenu-toggle[aria-expanded="true"] .icon {
	transform: rotate(180deg);
}

/* Without JS the menu is a plain list under the header bar. */
.no-js .main-navigation {
	grid-column: 1 / -1;
	grid-row: 2;
}

.no-js .menu-toggle,
.no-js .submenu-toggle {
	display: none;
}

/* Mobile overlay */
@media screen and (max-width: 84.9375em) {

	.js .main-navigation {
		background: var(--grandir-color-primary-deep);
		inset: var(--grandir-header-height, 4rem) 0 0 0;
		opacity: 0;
		overflow-y: auto;
		overscroll-behavior: contain;
		padding: 1rem var(--grandir-gutter);
		position: fixed;
		transition: opacity 0.2s ease, visibility 0.2s;
		visibility: hidden;
		z-index: 999;
	}

	.js .main-navigation.is-open {
		opacity: 1;
		visibility: visible;
	}

	html.nav-open {
		overflow: hidden;
	}

	.main-navigation .menu-item {
		align-items: center;
		border-block-end: 1px solid rgba(255, 255, 255, 0.15);
		display: flex;
		flex-wrap: wrap;
	}

	.main-navigation .menu > .menu-item > a {
		flex: 1;
		font-size: 1.25rem;
		padding-block: 0.875rem;
	}

	.main-navigation .sub-menu {
		display: none;
		padding-block-end: 0.5rem;
		padding-inline-start: 1rem;
		width: 100%;
	}

	.main-navigation .menu-item.is-open > .sub-menu {
		display: block;
	}

	.main-navigation .sub-menu .menu-item {
		border: 0;
	}

	.main-navigation .sub-menu a {
		flex: 1;
		padding-block: 0.625rem;
	}
}

/* Desktop: menu left, logo centered, buttons right; inline menu with dropdowns */
@media screen and (min-width: 85em) {

	.site-header__inner {
		gap: 2rem;
		max-width: 100rem;
		padding-inline: 2.5rem;
	}

	.main-navigation {
		grid-column: 1;
		grid-row: 1;
		justify-self: start;
	}

	.site-header__actions {
		gap: 0.75rem;
	}

	.site-header__quote {
		margin-inline: 0;
	}

	.menu-toggle {
		display: none;
	}

	/* Call: an accent pill with the number, swiping to an accent outline like every button. */
	.site-header .site-header__call {
		--grandir-btn-fill: var(--grandir-color-accent);
		--grandir-btn-on-fill: var(--grandir-color-on-accent);
		--grandir-btn-line: var(--grandir-color-accent-on-deep);
		/*rtl:ignore*/
		background: linear-gradient(135deg, transparent calc(50% - 0.5px), var(--grandir-btn-fill) calc(50% + 0.5px)) no-repeat 100% 0 / calc(200% + 6em) 100% border-box;
		border: 2px solid var(--grandir-btn-fill);
		border-radius: var(--grandir-button-radius);
		color: var(--grandir-btn-on-fill);
		font-weight: 700;
		padding: 0.5em 1.25em;
	}

	.site-header .site-header__call:focus-visible,
	.site-header a.site-header__call:hover {
		/*rtl:ignore*/
		background-position: 0 0;
		border-color: var(--grandir-btn-line);
		color: var(--grandir-btn-line);
	}

	.site-header__call-number {
		clip: auto;
		clip-path: none;
		height: auto;
		margin: 0;
		overflow: visible;
		position: static;
		width: auto;
	}

	.main-navigation .menu {
		align-items: center;
		display: flex;
		flex-wrap: wrap;
		gap: 0.25rem;
	}

	.main-navigation .menu > .menu-item {
		align-items: center;
		display: flex;
	}

	.main-navigation .menu > .menu-item > a {
		padding: 0.75rem 0.5rem;
	}

	.main-navigation .menu-item-has-children > a {
		padding-inline-end: 0;
	}

	/*
	 * Dropdowns stay white, with dark text, under the dark bar. They're nudged
	 * sideways to stay on screen (--grandir-dropdown-shift, js/navigation.js),
	 * and a tall one scrolls inside the window instead of running off it.
	 */
	.main-navigation .menu > .menu-item > .sub-menu {
		--grandir-color-focus: #111;
		background: var(--grandir-color-bg);
		border: 1px solid var(--grandir-color-border);
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
		color: var(--grandir-color-text);
		inset-block-start: 100%;
		inset-inline-start: 0;
		max-height: calc(100vh - var(--grandir-header-height, 4rem) - 1rem);
		min-width: 14rem;
		opacity: 0;
		overflow-y: auto;
		overscroll-behavior: contain;
		padding-block: 0.5rem;
		position: absolute;
		transition: opacity 0.15s ease, visibility 0s linear 0.15s;
		translate: var(--grandir-dropdown-shift, 0);
		visibility: hidden;
		z-index: 1001;
	}

	/*
	 * Mouse users open dropdowns by hovering, keyboard users with the chevron
	 * (js/navigation.js), so Tab skips closed dropdowns. Without JS, keyboard
	 * focus opens them.
	 */
	.main-navigation .menu > .menu-item:hover > .sub-menu,
	.no-js .main-navigation .menu > .menu-item:focus-within > .sub-menu,
	.main-navigation .menu > .menu-item.is-open > .sub-menu {
		opacity: 1;

		/* Visible at once, so a quick Tab right after opening lands inside. */
		transition-delay: 0s;
		visibility: visible;
	}

	.main-navigation .sub-menu a {
		padding: 0.5rem 1rem;
	}

	.main-navigation .sub-menu a[href]:hover,
	.main-navigation .sub-menu a[href]:focus {
		background: var(--grandir-color-primary-tint);
	}

	/*
	 * Three levels: the groups stack in one column, with the third level
	 * always listed under its group, so the second-level chevrons aren't
	 * needed. Every second-level item is a bold heading, with or without
	 * items under it, and a line separates each from the one above.
	 */
	.main-navigation .menu-item--grouped > .sub-menu > .menu-item > a {
		font-weight: 700;
	}

	.main-navigation .menu-item--grouped > .sub-menu > .menu-item + .menu-item {
		border-block-start: 1px solid var(--grandir-color-border);
		margin-block-start: 0.25rem;
		padding-block-start: 0.25rem;
	}

	.main-navigation .sub-menu .sub-menu a {
		padding-inline-start: 1.5rem;
	}

	.main-navigation .sub-menu .submenu-toggle {
		display: none;
	}
}

/*
 * Desktop with a mouse: dropdowns open on hover, so mouse clicks pass through
 * the chevron to the menu item, and it needn't be a 44px target. It still
 * works from the keyboard (js/navigation.js). A label's chevron is its only
 * control, so it stays clickable.
 */
@media screen and (min-width: 85em) and (hover: hover) {

	.submenu-toggle {
		min-width: 1.5rem;
	}

	.submenu-toggle:not(.submenu-toggle--label) {
		pointer-events: none;
	}
}

/* Post and comment navigation
--------------------------------------------- */
.site-main .comment-navigation,
.site-main
.posts-navigation,
.site-main
.post-navigation {
	margin: 0 0 1.5em;
}

.comment-navigation .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
	display: flex;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
	flex: 1 0 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
	text-align: end;
	flex: 1 0 50%;
}

/* Posts and pages
--------------------------------------------- */
.sticky {
	display: block;
}

/* Articles only: WordPress also puts the "page" class on <body> for every page. */
article.post,
article.page {
	margin: 0 0 1.5em;
}

.updated:not(.published) {
	display: none;
}

.page-content,
.entry-content,
.entry-summary {
	margin: 1.5em 0 0;
}

.page-links {
	clear: both;
	margin: 0 0 1.5em;
}

/* Comments
--------------------------------------------- */
.comment-content a {
	word-wrap: break-word;
}

.bypostauthor {
	display: block;
}

/* Widgets
--------------------------------------------- */
.widget {
	margin: 0 0 1.5em;
}

.widget select {
	max-width: 100%;
}

/* Media
--------------------------------------------- */
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
	border: none;
	margin-bottom: 0;
	margin-top: 0;
	padding: 0;
}

/* Make sure logo link wraps around logo image. */
.custom-logo-link {
	display: inline-block;
}

/* Captions
--------------------------------------------- */
.wp-caption {
	margin-bottom: 1.5em;
	max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption .wp-caption-text {
	margin: 0.8075em 0;
}

.wp-caption-text {
	text-align: center;
}

/* Galleries
--------------------------------------------- */
.gallery {
	margin-bottom: 1.5em;
	display: grid;
	grid-gap: 1.5em;
}

.gallery-item {
	display: inline-block;
	text-align: center;
	width: 100%;
}

.gallery-columns-2 {
	grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
	grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
	grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
	grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
	grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
	grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
	grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
	grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
	display: block;
}

/*--------------------------------------------------------------
# Plugins
--------------------------------------------------------------*/

/* Jetpack infinite scroll
--------------------------------------------- */

/* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
	display: none;
}

/* Re-display the Theme Footer when Infinite Scroll has reached its end. */
.infinity-end.neverending .site-footer {
	display: block;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

/* Accessibility
--------------------------------------------- */

/* Text meant only for screen readers. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
	outline: 0;
}

/* Alignments
--------------------------------------------- */
.alignleft {

	/*rtl:ignore*/
	float: left;

	/*rtl:ignore*/
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {

	/*rtl:ignore*/
	float: right;

	/*rtl:ignore*/
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}

/*--------------------------------------------------------------
# Grandir layout
Structural styles for the page-type templates. Visual design
(colors, typography, spacing scale) is layered on later.
Uses logical properties so the same rules work in RTL.
--------------------------------------------------------------*/
:root {
	--grandir-content-width: 72rem;
	/* Side spacing at the screen edge; doubles on desktop (below). Centered
	   content keeps a 70rem text area whatever the gutter. */
	--grandir-gutter: 1rem;
	--grandir-text-width: 45rem;
	--grandir-gap: 1.5rem;

	/*
	 * Design tokens. Style with these, never with hardcoded colors or fonts.
	 * Neutrals are fixed. Brand values are overridden from Appearance →
	 * Customize → Brand (inc/brand.php), which derives readable variants:
	 * - on-primary / on-accent: text on a primary / accent background (4.5:1+);
	 * - primary-hover: primary buttons on hover. Darker under white text,
	 *   lighter under dark text, and lighter for a near-black primary
	 *   (on-primary 4.5:1+);
	 * - primary-deep: dark brand background for white text (7:1+);
	 * - primary-tint: light brand background for any text (4.5:1+);
	 * - primary-shade: the light band color, alternating with primary-deep:
	 *   the accent at 25% on white, under the normal text (4.5:1+);
	 * - link: primary as text on bg, surface or tint (4.5:1+);
	 * - accent-ui: accent for borders and icons on bg, surface or tint (3:1+);
	 * - accent-text: accent as text on bg, surface or tint (4.5:1+);
	 * - accent-on-deep: accent for text and icons on primary-deep (the
	 *   footer), or white when the accent is too dark there (4.5:1+);
	 * - accent-on-shade: accent for text and icons on primary-shade (4.5:1+);
	 * - charcoal: charcoal tinted with primary-deep, for the breadcrumb bar
	 *   under the deep header (white text 7:1+, a visible step from deep);
	 * - hero-overlay: the overlay on hero photos, from the Hero Overlay
	 *   setting: brand (default), white, black or none. The tints are strong
	 *   enough for the hero text (4.5:1+) even over the worst part of the
	 *   photo (pure white under the brand and black tints, pure black under
	 *   the white one);
	 * - hero-text, hero-eyebrow: the hero's text and eyebrow h1 on a photo;
	 * - hero-btn-fill, hero-btn-on-fill, hero-btn-line: its buttons;
	 * - hero-text-shadow: none, except with no overlay, where nothing can
	 *   be guaranteed.
	 */
	--grandir-color-text: #404040;
	--grandir-color-text-muted: #595959;
	--grandir-color-bg: #fff;
	--grandir-color-surface: #f5f5f5;
	--grandir-color-border: #d9d9d9;
	--grandir-color-focus: #111;
	--grandir-color-primary: #1f4e79;
	--grandir-color-on-primary: #fff;
	--grandir-color-primary-hover: #1a4267;
	--grandir-color-primary-deep: #1f4e79;
	--grandir-color-primary-tint: #e4eaef;
	--grandir-color-primary-shade: #c7d3de;
	--grandir-color-link: #1f4e79;
	--grandir-color-accent: #1f4e79;
	--grandir-color-on-accent: #fff;
	--grandir-color-accent-ui: #1f4e79;
	--grandir-color-accent-text: #1f4e79;
	--grandir-color-accent-on-deep: #fff;
	--grandir-color-accent-on-shade: #1f4e79;
	--grandir-color-accent-on-primary: #fff;
	--grandir-color-charcoal: #273642;
	--grandir-hero-overlay: rgba(31, 78, 121, 0.75);
	--grandir-hero-text: #fff;
	--grandir-hero-eyebrow: #fff;
	--grandir-hero-btn-fill: #fff;
	--grandir-hero-btn-on-fill: #1f4e79;
	--grandir-hero-btn-line: #fff;
	--grandir-hero-text-shadow: none;

	/* Buttons are pills everywhere: .button, form submits and the header CTAs. */
	--grandir-button-radius: 999px;
	--grandir-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	--grandir-font-heading: var(--grandir-font-body);

	/* Motion: hover and state changes. Only used under prefers-reduced-motion: no-preference. */
	--grandir-motion-fast: 150ms;
	--grandir-motion: 200ms;
	--grandir-motion-swipe: 300ms;
	--grandir-ease: ease-out;
}

@media screen and (min-width: 60em) {

	:root {
		--grandir-gutter: 2rem;
	}
}

/*
 * One focus ring for everything: a dark ring with a white gap, visible on any
 * background. The button selectors outrank normalize's -moz-focusring rule.
 */
:focus-visible,
button:focus-visible,
[type="button"]:focus-visible,
[type="reset"]:focus-visible,
[type="submit"]:focus-visible {
	box-shadow: 0 0 0 2px var(--grandir-color-bg);
	outline: 3px solid var(--grandir-color-focus);
	outline-offset: 2px;
}

/* Keep the footer at the bottom of the screen on short pages. */
.site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;

	/* Stops full-bleed sections causing sideways scroll. clip (unlike hidden) keeps the sticky header working. */
	overflow-x: clip;
}

.site-main {
	flex-grow: 1;
	margin-inline: auto;
	max-width: calc(var(--grandir-content-width) - 2rem + 2 * var(--grandir-gutter));
	padding-block-end: 3rem;
	padding-inline: var(--grandir-gutter);
	width: 100%;
}

/*
 * Sections are spaced by a top margin, which shows as white. Between two
 * sections with their own background (a hero, the breadcrumb bar or a
 * colored band) there's none, so they meet edge to edge and their own
 * padding spaces the content. This holds whichever sections a page leaves
 * out. Keep the list in sync with the bands under "Full-width bands".
 */
.site-main > * + * {
	margin-block-start: 2.5rem;
}

.site-main > :is(.hero, .breadcrumbs, .cta, .home-project, .home-areas, .why-choose, .card-grid-section--dark, .service-includes, .service-financing, .process) + :is(.hero, .breadcrumbs, .cta, .home-project, .home-areas, .why-choose, .card-grid-section--dark, .service-includes, .service-financing, .process),
.site-main--project > .breadcrumbs + .project-details,
:is(.site-main--service, .site-main--area) > :is(.hero, .breadcrumbs, .cta, .why-choose, .service-includes, .service-financing, .process, .service-video, .service-description, .service-project, .service-areas, .related-list, .area-map) + :is(.hero, .breadcrumbs, .cta, .why-choose, .service-includes, .service-financing, .process, .service-video, .service-description, .service-project, .service-areas, .related-list, .area-map) {
	margin-block-start: 0;
}

/* Hero */
.hero {
	padding-block: 3rem;
	text-align: center;
}

.hero__heading {
	margin-block: 0 0.5em;
}

.hero__subheading {
	font-size: 1em;
	margin-block: 0 1em;
	margin-inline: auto;
	max-width: 600px;
}

/*
 * The hero's eyebrow h1 and subheading step up with the tagline: phone
 * 12px / 16px, tablet (40em) 13px / 18px, desktop (85em) 14px / 20px.
 */
.hero__heading.eyebrow {
	font-size: 0.75rem;
}

@media screen and (min-width: 40em) {

	.hero__heading.eyebrow {
		font-size: 0.8125rem;
	}

	.hero__subheading {
		font-size: 1.125em;
	}
}

@media screen and (min-width: 85em) {

	.hero__heading.eyebrow {
		font-size: 0.875rem;
	}

	.hero__subheading {
		font-size: 1.25em;
	}
}

/*
 * Page titles: the <h1> is a small eyebrow (it keeps the SEO heading) and the
 * tagline under it carries the large heading look the h1 used to have.
 */
.eyebrow {
	color: var(--grandir-color-accent-text);
	font-family: var(--grandir-font-body);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.4;
	margin-block: 0 0.5rem;
	text-transform: uppercase;
}

/* Page headers without a hero keep the space the h1 had above it. */
.page-title.eyebrow,
.entry-title.eyebrow {
	margin-block-start: 1.34rem;
}

.hero--image .eyebrow {
	color: var(--grandir-hero-eyebrow);
}

.hero:not(.hero--image) .eyebrow {
	color: var(--grandir-color-accent-on-primary);
}

.tagline {
	font-family: var(--grandir-font-heading);
	font-size: 2em;
	font-weight: 700;
	margin-block: 0 0.67em;
}

/*
 * A display-size line that steps up from phone (2.25em) to tablet (40em,
 * midway) to desktop (85em, 4em), with the header's breakpoints. The space
 * under it, above the subheading or button, steps up with it: 2.5rem, 3rem,
 * then 4rem.
 */
.hero__tagline {
	font-size: 2.25em;
	line-height: 1.25em;
	margin-block: 0 2.5rem;
}

@media screen and (min-width: 40em) {

	.hero__tagline {
		font-size: 3.125em;
		margin-block-end: 3rem;
	}
}

@media screen and (min-width: 85em) {

	.hero__tagline {
		font-size: 4em;
		margin-block-end: 4rem;
	}
}

/* Hero with the Featured Image behind the text, full width of the screen. */
.hero--image {
	align-items: center;
	color: var(--grandir-hero-text);
	display: flex;
	isolation: isolate;
	justify-content: center;
	margin-inline: calc(50% - 50vw);
	min-height: max(18rem, 80vh);
	min-height: max(18rem, 80svh);
	padding-inline: var(--grandir-gutter);
	position: relative;
}

.hero--image::before {
	background: var(--grandir-hero-overlay);
	content: "";
	inset: 0;
	position: absolute;
	z-index: -1;
}

/* With no overlay, a soft shadow in the opposite tone helps the text read. */
.hero--image :is(.hero__heading, .hero__tagline, .hero__subheading) {
	text-shadow: var(--grandir-hero-text-shadow);
}

/* The photo's own clipping box, so the zoom and parallax below never clip the text or spill into the next section. */
.hero__media {
	inset: 0;
	overflow: clip;
	position: absolute;
	z-index: -2;
}

.hero__image {
	height: 100%;
	inset: 0;
	object-fit: cover;
	position: absolute;
	width: 100%;
}

.hero__inner {
	max-width: var(--grandir-content-width);
}

/*
 * Buttons come in two styles, filled (.button--primary) and outline (.button).
 * On hover and keyboard focus each swipes into the other, left to right, with
 * a forward-leaning 45° edge (/): an outline button's fill sweeps in from the
 * left, a filled button's fill slides off to the right.
 *
 * The fill is a hard-edged 135deg gradient on a background twice the button's
 * width plus 6em, slid from 100% (rest) to 0 (hover). The extra 6em keeps the
 * slanted edge fully off the button at both ends for any button up to 6em
 * tall. It's a background, so this works on any color behind the button. The
 * swipe runs left to right in RTL too (rtl:ignore). Each context sets three colors:
 * - --grandir-btn-fill: the fill, and the filled style's border;
 * - --grandir-btn-on-fill: text on the fill;
 * - --grandir-btn-line: the outline style's text and border.
 * The header pills and the WPForms submit button use the same mechanism. The
 * fill is sized and clipped to the border box, so a filled pill has no seam
 * inside its border.
 */
.button,
.site-header__quote,
.lead-form div.wpforms-container-full .wpforms-form button[type="submit"] {
	--grandir-btn-fill: var(--grandir-color-primary);
	--grandir-btn-on-fill: var(--grandir-color-on-primary);
	--grandir-btn-line: var(--grandir-color-link);
}

/* On a photo hero: the overlay's button colors (white on the brand and dark overlays). */
.hero--image .button {
	--grandir-btn-fill: var(--grandir-hero-btn-fill);
	--grandir-btn-on-fill: var(--grandir-hero-btn-on-fill);
	--grandir-btn-line: var(--grandir-hero-btn-line);
}

/* Buttons */
.button {
	border: 2px solid;
	border-radius: var(--grandir-button-radius);
	display: inline-block;
	font-weight: 700;
	padding: 0.75em 1.75em;
	text-decoration: none;
}

/* Outline at rest: the fill waits off the left edge. */
.button,
.button:visited {
	/*rtl:ignore*/
	background: linear-gradient(135deg, var(--grandir-btn-fill) calc(50% - 0.5px), transparent calc(50% + 0.5px)) no-repeat 100% 0 / calc(200% + 6em) 100% border-box;
	border-color: var(--grandir-btn-line);
	color: var(--grandir-btn-line);
}

/* Filled at rest: the fill covers the button, its clear part waiting off the left edge. */
.button--primary,
.button--primary:visited,
.site-header__quote,
.site-header__quote:visited,
.lead-form div.wpforms-container-full .wpforms-form button[type="submit"] {
	/*rtl:ignore*/
	background: linear-gradient(135deg, transparent calc(50% - 0.5px), var(--grandir-btn-fill) calc(50% + 0.5px)) no-repeat 100% 0 / calc(200% + 6em) 100% border-box;
	border-color: var(--grandir-btn-fill);
	color: var(--grandir-btn-on-fill);
}

/* Hover and keyboard focus: the edge slides across, so outline fills in and filled empties out. */
.button:focus-visible {
	/*rtl:ignore*/
	background-position: 0 0;
	border-color: var(--grandir-btn-fill);
	color: var(--grandir-btn-on-fill);
}

.button--primary:focus-visible,
.site-header__quote:focus-visible,
.lead-form div.wpforms-container-full .wpforms-form button[type="submit"]:focus-visible {
	/*rtl:ignore*/
	background-position: 0 0;
	border-color: var(--grandir-btn-line);
	color: var(--grandir-btn-line);
}

@media (hover: hover) {

	.button:hover {
		/*rtl:ignore*/
		background-position: 0 0;
		border-color: var(--grandir-btn-fill);
		color: var(--grandir-btn-on-fill);
	}

	.button--primary:hover,
	.site-header a.site-header__quote:hover,
	.lead-form div.wpforms-container-full .wpforms-form button[type="submit"]:hover {
		/*rtl:ignore*/
		background-position: 0 0;
		border-color: var(--grandir-btn-line);
		color: var(--grandir-btn-line);
	}
}

@media (prefers-reduced-motion: no-preference) {

	.button,
	.site-header__quote,
	.site-header__call,
	.lead-form div.wpforms-container-full .wpforms-form button[type="submit"] {
		/* The text color flips quickly mid-swipe, so it's never a washed-out in-between. */
		transition:
			background-position var(--grandir-motion-swipe) var(--grandir-ease),
			border-color var(--grandir-motion-swipe) var(--grandir-ease),
			color calc(var(--grandir-motion-swipe) / 3) linear calc(var(--grandir-motion-swipe) / 3);
	}
}

.hero__actions,
.cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
}

/*
 * On page load the eyebrow h1 is revealed from the top down, then the
 * tagline, subheading and button (when shown) each fade up a little, one
 * after another, so the centered text reads top to bottom.
 *
 * The photo slowly zooms in and out (24s each way) for as long as the page is
 * open and, where scroll-driven animations are supported, drifts down at
 * 40% of the scroll speed as the hero scrolls away (parallax). The gap that
 * opens above it is always in the part already scrolled off-screen. Both are
 * transforms only, and both are off for reduced motion.
 */
@keyframes grandir-hero-zoom {

	from {
		scale: 1;
	}

	to {
		scale: 1.1;
	}
}

@keyframes grandir-hero-parallax {

	to {
		translate: 0 40vh;
	}
}

@keyframes grandir-hero-up {

	from {
		opacity: 0;
		transform: translateY(1rem);
	}
}

@keyframes grandir-hero-reveal {

	from {
		clip-path: inset(0 0 100% 0);
	}

	to {
		clip-path: inset(0);
	}
}

@media (prefers-reduced-motion: no-preference) {

	.hero__inner > * {
		animation: grandir-hero-up 500ms var(--grandir-ease) both;
	}

	/* backwards, not both: the clip is dropped when the reveal ends. */
	.hero__inner > .hero__heading {
		animation: grandir-hero-reveal 400ms var(--grandir-ease) backwards;
	}

	.hero__inner > .hero__tagline {
		animation-delay: 100ms;
	}

	.hero__inner > .hero__subheading {
		animation-delay: 200ms;
	}

	.hero__inner > .hero__actions {
		animation-delay: 300ms;
	}

	.hero__image {
		animation: grandir-hero-zoom 24s ease-in-out infinite alternate;
		will-change: scale, translate;
	}

	@supports (animation-timeline: scroll()) {

		.hero__image {
			animation:
				grandir-hero-zoom 24s ease-in-out infinite alternate,
				grandir-hero-parallax linear both;
			animation-range: normal, 0 100vh;
			animation-timeline: auto, scroll(root);
		}
	}
}

/* In-page anchors (e.g. "Get a quote" → #quote) land below the fixed header. */
section[id],
#quote {
	scroll-margin-top: calc(var(--grandir-header-scrolled, 4rem) + 1rem);
}

@media (prefers-reduced-motion: no-preference) {

	html {
		scroll-behavior: smooth;
	}
}

/* Home: service cards with a quote button at the bottom */
.card {
	display: flex;
	flex-direction: column;
}

/*
 * The button under the service cards (Home and Services page): accent colored,
 * like the header's phone button, swiping to an accent outline (see "Buttons").
 */
.card-grid-section__cta {
	margin-block: 2rem 0;
	text-align: center;
}

.card-grid-section__cta .button {
	--grandir-btn-fill: var(--grandir-color-accent);
	--grandir-btn-on-fill: var(--grandir-color-on-accent);
	--grandir-btn-line: var(--grandir-color-accent-text);
}

/* On the band the outline uses the accent made for its color. */
.card-grid-section--dark .card-grid-section__cta .button {
	--grandir-btn-line: var(--grandir-band-accent, var(--grandir-color-accent-on-deep));
}

/* The "View all services" link under the button: centered, in the band's text color. */
.card-grid-section--dark .card-grid-section__more {
	margin-block: 1rem 0;
	text-align: center;
}

.card-grid-section--dark .card-grid-section__more a,
.card-grid-section--dark .card-grid-section__more a:visited {
	color: inherit;
	font-weight: 700;
}

/* Home's services band: a centered heading, like Why Choose. */
.card-grid-section--dark .card-grid-section__heading {
	text-align: center;
}

.card-grid-section__intro {
	margin-block-end: 1.5rem;
}

/*
 * Page content on every page (Home's #about, pages, areas, projects, posts):
 * left-aligned text in a box at most 720px wide, centered on the page.
 */
.entry-content {
	margin-inline: auto;
	max-width: 720px;
}

/* Lists sit flush with the text; the bullets and numbers hang in a small indent. */
.entry-content :is(ul, ol) {
	margin-left: 0;
	padding-left: 1.25em;
}

/*
 * Home: featured project, laid out like a Why Choose row: the text in a white
 * box over a taller photo. On phones the photo runs the full screen width and
 * the box overlaps its bottom edge. From 48em, on a 12-column grid, the box
 * (7 columns) sits on the left over a 9-column photo (16:10), overlapping it
 * by 4 columns and centered on it; below 60em the photo runs on to the right
 * edge of the screen. Motion and hover: see "Why Choose motion".
 * .home-project is a size container, so 100cqw is the content width.
 */
.home-project {
	container-type: inline-size;
}

.home-project__box {
	background: var(--grandir-color-bg);
	border: 1px solid var(--grandir-color-border);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	padding: 1.5rem;
	position: relative;
	z-index: 1;
}

.home-project__heading {
	margin-block-start: 0;
}

.home-project__link {
	margin-block-end: 0;
}

/* Phones: the full screen width, at most 22rem tall. */
.home-project__image {
	height: min(22rem, 100vw * 3 / 4);
	margin-inline: calc(50% - 50vw);
	overflow: clip;
	position: relative;
}

/* Dimmed and oversized for the parallax and hover drift, like Why Choose's photos. */
.home-project__img {
	display: block;
	height: 120%;
	inset-block-start: -10%;
	inset-inline-start: -4%;
	max-width: none;
	object-fit: cover;
	opacity: 0.35;
	position: absolute;
	width: 108%;
}

.home-project__item--image .home-project__box {
	margin-block-start: -6rem;
	margin-inline: 1rem;
}

/* Phones: the photo starts at the top of the band. */
@media screen and (max-width: 47.9375em) {

	.home-project:has(> .home-project__item--image) {
		padding-block-start: 0;
	}
}

@media screen and (min-width: 48em) {

	.home-project__item--image {
		align-items: center;
		display: grid;
		grid-template-columns: repeat(12, minmax(0, 1fr));
	}

	.home-project__item--image .home-project__box {
		grid-column: 1 / span 7;
		grid-row: 1;
		margin: 0;
		padding: 2rem;
	}

	.home-project__image {
		grid-column: 4 / -1;
		grid-row: 1;
		height: calc(100cqw * 9 / 12 * 10 / 16);
		margin-inline: 0;
	}
}

@media screen and (min-width: 48em) and (max-width: 59.9375em) {

	.home-project__image {
		margin-inline-end: calc((100cqw - 100vw) / 2);
	}
}

/* Home: service areas */
.areas-list {
	display: grid;
	gap: 0 1.5rem;
	grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.areas-list a {
	display: inline-block;
	padding-block: 0.5rem;
}

/* Area sections (Home and service pages): heading and intro centered over the area buttons. */
.home-areas__heading,
.service-areas__heading {
	text-align: center;
}

/* Home: the band's own padding is the space above the heading, matching the space below the buttons. */
.home-areas__heading {
	margin-block-start: 0;
}

/* Phones: an even 32px all round (more specific than the full-width band rule below). */
@media screen and (max-width: 39.9375em) {

	.site-main > .home-areas {
		padding: 2rem;
	}
}

/* Google reviews: the Trustindex widget between the label and the links */
.reviews__heading {
	margin-block-end: 0.25rem;
}

.reviews__source {
	color: var(--grandir-color-text-muted);
	font-size: 0.875rem;
	margin: 0 0 1.5rem;
}

.reviews__widget {
	min-width: 0;
}

.reviews__more {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 1.5rem;
	margin: 1.5rem 0 0;
}

/* Process steps: number badge above each step */
.process__steps {
	display: grid;
	gap: 2rem;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Each step is a white card at every size, its number in a square in the top-left corner. */
.process__step {
	background: var(--grandir-color-bg);
	border: 1px solid var(--grandir-color-border);
	padding: calc(3rem + 0.5rem) 1.25rem 1.25rem;
	position: relative;
}

/* Tablets: two steps across. Phones get the carousel; desktops show three (below). */
@media screen and (min-width: 48em) and (max-width: 59.9375em) {

	.process__steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/* An odd last step spans the row and centers at one column's width. */
	.process__step:last-child:nth-child(odd) {
		grid-column: 1 / -1;
		justify-self: center;
		width: calc((100% - 2rem) / 2);
	}
}

.process__number {
	align-items: center;
	border: 2px solid currentColor;
	display: inline-flex;
	font-size: 1.25rem;
	font-weight: 700;
	height: 3rem;
	inset-block-start: -1px;
	inset-inline-start: -1px;
	justify-content: center;
	position: absolute;
	width: 3rem;
}

/*
 * Desktops: three steps across. With more than three they're a carousel,
 * three in view (js/carousel.js adds arrows and dots; no autoplay).
 */
@media screen and (min-width: 60em) {

	.process__steps {
		grid-auto-columns: minmax(0, 1fr);
		grid-auto-flow: column;
		grid-template-columns: none;
	}

	.process__steps--carousel-lg {
		grid-auto-columns: calc((100% - 2 * 2rem) / 3);
		overflow-x: auto;
		overscroll-behavior-x: contain;
		padding-block-end: 0.75rem;
		scroll-snap-type: x mandatory;
		scrollbar-color: var(--grandir-color-accent-ui) transparent;
		scrollbar-width: thin;
	}

	.process__steps--carousel-lg > .process__step {
		scroll-snap-align: start;
	}
}

/* The number sits in the corner, so the title starts at the card's top padding. */
.process__title {
	margin-block: 0 0.25rem;
}

.process__text {
	margin: 0;
}

/* What to Expect (service pages): intro, a callout for a paid or qualifying step, quote button */
.process__intro {
	margin: -0.5rem 0 1.5rem;
	max-width: var(--grandir-text-width);
}

.process__callout {
	background: var(--grandir-color-bg);
	border-inline-start: 4px solid var(--grandir-color-accent-ui);
	margin-block-start: 2rem;
	max-width: var(--grandir-text-width);
	padding: 1.25rem 1.5rem;
}

.process__callout-heading {
	margin: 0 0 0.5rem;
}

.process__callout-text > :last-child {
	margin-block-end: 0;
}

.process__cta {
	margin: 1.5rem 0 0;
}

/* Service video: heading, click-to-play YouTube thumbnail and text, centered */
.service-video {
	margin-inline: auto;
	max-width: var(--grandir-text-width);
	text-align: center;
}

.service-video__heading {
	margin-block-start: 0;
}

/*
 * Service video, Why It Matters, What's Included, recent project and process:
 * their contents (heading, player, cards, carousel controls, copy, buttons)
 * fade up into place as each scrolls into view (js/why-choose.js marks them .is-in-view; hidden from
 * the first paint, shown after 3s if the script never runs; none with
 * reduced motion).
 */
@media (prefers-reduced-motion: no-preference) {

	:is(.service-video, .service-matters, .service-includes, .service-project, .process) > * {
		transition:
			opacity 600ms var(--grandir-ease),
			translate 600ms var(--grandir-ease);
	}

	/* The process callout follows the steps a beat later. */
	.process > .process__callout {
		transition-delay: 250ms;
	}

	.js :is(.service-video, .service-matters, .service-includes, .service-project, .process) > :not(.is-in-view) {
		opacity: 0;
		translate: 0 1.5rem;
	}

	.js :is(.service-video, .service-matters, .service-includes, .service-project, .process):not(.is-animated) > * {
		animation: grandir-why-reveal 0s 3s forwards;
	}
}

/*
 * Financing: the terms slide in from the left and the button from the right;
 * once the button wraps under the terms (js/why-choose.js marks the coupon
 * .is-stacked), both fade up instead. Same failsafe and reduced motion rules
 * as above.
 */
@media (prefers-reduced-motion: no-preference) {

	.service-financing__coupon > * {
		transition:
			opacity 700ms var(--grandir-ease),
			translate 700ms var(--grandir-ease);
	}

	.js .service-financing__coupon > :not(.is-in-view) {
		opacity: 0;
		translate: -6rem 0 /*rtl:6rem 0*/;
	}

	.js .service-financing__coupon > .service-financing__action:not(.is-in-view) {
		translate: 6rem 0 /*rtl:-6rem 0*/;
	}

	.js .service-financing__coupon.is-stacked > :not(.is-in-view) {
		translate: 0 1.5rem;
	}

	.js .service-financing:not(.is-animated) .service-financing__coupon > * {
		animation: grandir-why-reveal 0s 3s forwards;
	}
}

/*
 * Service Area (Home and service pages) and related links: the heading and intro fade up, then the
 * links cascade up one after another (js/why-choose.js sets each link's
 * delay). An area's common problem groups cascade the same way. Same
 * failsafe and reduced motion rules as above.
 */
@media (prefers-reduced-motion: no-preference) {

	:is(.home-areas > :not(ul), .home-areas li, .service-areas > :not(ul), .service-areas li, .related-list__heading, .related-list li, .area-problems__group) {
		transition:
			opacity 500ms var(--grandir-ease),
			translate 500ms var(--grandir-ease);
	}

	.js :is(.home-areas > :not(ul), .home-areas li, .service-areas > :not(ul), .service-areas li, .related-list__heading, .related-list li, .area-problems__group):not(.is-in-view) {
		opacity: 0;
		translate: 0 1.5rem;
	}

	.js :is(.home-areas, .service-areas, .related-list):not(.is-animated) :is(.home-areas__heading, .service-areas__heading, .service-areas__intro, li, .related-list__heading),
	.js .area-problems:not(.is-animated) .area-problems__group {
		animation: grandir-why-reveal 0s 3s forwards;
	}
}

/* At most 720px wide, centered (the section itself spans the dark band). */
.service-video__link,
.service-video__iframe {
	aspect-ratio: 16 / 9;
	border: 0;
	display: block;
	margin-inline: auto;
	max-width: 720px;
	width: 100%;
}

.service-video__link {
	background: #000;
	overflow: hidden;
	position: relative;
}

/* hqdefault thumbnails are 4:3 with black bars; cover crops them to 16:9. */
.service-video__thumbnail {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.service-video__play {
	align-items: center;
	background: var(--grandir-color-primary);
	border-radius: 50%;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
	color: var(--grandir-color-on-primary);
	display: flex;
	height: 4rem;
	inset: 0;
	justify-content: center;
	margin: auto;
	position: absolute;
	width: 4rem;
}

.service-video__link:hover .service-video__play,
.service-video__link:focus-visible .service-video__play {
	background: var(--grandir-color-primary-hover);
}

.service-video__text {
	margin-block-start: 1.5rem;
}

.service-video__text > :last-child {
	margin-block-end: 0;
}

@media (prefers-reduced-motion: no-preference) {

	.service-video__play {
		transition: background-color var(--grandir-motion-fast) var(--grandir-ease), transform var(--grandir-motion) var(--grandir-ease);
	}

	.service-video__link:hover .service-video__play,
	.service-video__link:focus-visible .service-video__play {
		transform: scale(1.1);
	}
}

/*
 * Service description: a white card. Without an image, just the text box,
 * centered, 8 of 12 columns on desktops. With one, the text box on the
 * right, 8 of 12 columns on desktops, and the
 * photo flush beside it on the left, filling the rest of the row and matching
 * the text box's height (cropped to fit). On phones the photo sits on top of
 * the text box, 16:10 and at most 240px tall. Motion: see "Why Choose motion"; the photo fades in
 * and drifts inside its frame as it scrolls (parallax). No hover effect.
 * .service-description is a size container, so 100cqw is the content width.
 */
.service-description {
	container-type: inline-size;
}

.service-description__item {
	--grandir-color-focus: #111;
	background: var(--grandir-color-bg);
	border: 1px solid var(--grandir-color-border);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	color: var(--grandir-color-text);
	display: grid;
}

.service-description__body {
	padding: 1.5rem;
}

.service-description__heading {
	margin-block-start: 0;
}

.service-description__text > :last-child {
	margin-block-end: 0;
}

.service-description__media {
	aspect-ratio: 16 / 10;
	max-height: 240px;
	overflow: clip;
	position: relative;
	width: 100%;
}

.service-description__facts {
	border-block-start: 1px solid var(--grandir-color-border);
	display: grid;
	gap: 0.5rem;
	list-style: none;
	margin: 1.5rem 0 0;
	padding: 1.25rem 0 0;
}

/* Oversized for the parallax, like the Why Choose photos; cropped to its frame. */
.service-description__image {
	display: block;
	height: 120%;
	inset-block-start: -10%;
	inset-inline-start: 0;
	max-width: none;
	object-fit: cover;
	position: absolute;
	width: 100%;
}

@media screen and (min-width: 48em) {

	/* Without a photo, the text box alone, centered. */
	.service-description__item:not(.service-description__item--image) {
		margin-inline: auto;
		width: calc(100cqw * 8 / 12);
	}

	/* The photo takes what the text box leaves, and the text box sets the row's height. */
	.service-description__item--image {
		grid-template-columns: minmax(0, 1fr) calc(100cqw * 8 / 12);
	}

	.service-description__media {
		aspect-ratio: auto;
		max-height: none;
	}

	.service-description__body {
		padding: 2rem;
	}
}

/*
 * Why Choose: one row per data point, then the job line and the Google
 * reviews link. Each row is a box with an optional photo (settings.<point>_image)
 * under its edge. On phones the photo runs the full screen width, at most
 * 240px tall, and the box overlaps its bottom edge. From 48em, on a
 * 12-column grid, the box (7 columns) is centered on its photo (9 columns)
 * and overlaps it by 4 columns. Below 60em the photo runs on to its edge of
 * the screen; from 60em it stays within the section's content width. The
 * photo is a wide strip, 35/144 of the rows' width tall (about 3:1);
 * every second row is mirrored.
 * Photos are cropped to fit (object-fit: cover), only the photo is clipped,
 * never text. A point without a photo keeps its box on its side.
 * .why-choose__points is a size container, so 100cqw is the rows' width.
 */
.why-choose__heading {
	margin-block: 0 0.5rem;
	text-align: center;
}

.why-choose__points {
	container-type: inline-size;
	display: grid;
	gap: 1rem;
	list-style: none;
	margin: 1.5rem 0 0;
	padding: 0;
}

.why-choose__box {
	background: var(--grandir-color-bg);
	border: 1px solid var(--grandir-color-border);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding: 1.5rem;
	position: relative;
	z-index: 1;
}

/*
 * Phones: the full screen width, a 3:2 crop at most 240px tall. The height is
 * set directly: an aspect ratio with a max height would narrow the photo.
 */
.why-choose__media {
	height: min(240px, 100vw * 2 / 3);
	margin-inline: calc(50% - 50vw);
	overflow: clip;
	position: relative;
}

/*
 * The photo is dimmed on the dark band, like the hero photo under its
 * overlay, and comes back to full strength when its row is hovered. It's
 * 20% taller and 8% wider than its frame, so the parallax and the hover
 * drift below have room to move without showing an edge.
 */
.why-choose__image {
	display: block;
	height: 120%;
	inset-block-start: -10%;
	inset-inline-start: -4%;
	max-width: none;
	object-fit: cover;
	opacity: 0.35;
	position: absolute;
	width: 108%;
}

/* Phones: the box rises well over the photo's bottom edge, inset from its sides. */
.why-choose__point--has-image .why-choose__box {
	margin-block-start: -6rem;
	margin-inline: 1rem;
}

.why-choose__value {
	color: var(--grandir-color-accent-text);
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.1;
}

.why-choose__value--text {
	font-size: 1.25rem;
}

.why-choose__label {
	color: var(--grandir-color-text-muted);
}

@media screen and (min-width: 48em) {

	.why-choose__points {
		gap: 0.5rem;
	}

	.why-choose__point {
		align-items: center;
		display: grid;
		grid-template-columns: repeat(12, minmax(0, 1fr));
	}

	.why-choose__box,
	.why-choose__media {
		grid-row: 1;
	}

	.why-choose__box {
		grid-column: 1 / span 7;
		padding: 2rem;
	}

	.why-choose__point--has-image .why-choose__box {
		margin: 0;
	}

	.why-choose__value {
		font-size: 2.5rem;
	}

	.why-choose__value--text {
		font-size: 1.5rem;
	}

	/* A wide strip, 9 columns: about 3:1. */
	.why-choose__media {
		grid-column: 4 / -1;
		height: calc(100cqw * 35 / 144);
		margin-inline: 0;
	}

	/* Every second row mirrors: photo left, box right. */
	.why-choose__point:nth-child(even) .why-choose__box {
		grid-column: 6 / -1;
	}

	.why-choose__point:nth-child(even) .why-choose__media {
		grid-column: 1 / span 9;
	}
}

/* Tablets (48em to 60em): each photo runs on to its own edge of the screen, as on phones. */
@media screen and (min-width: 48em) and (max-width: 59.9375em) {

	.why-choose__media {
		margin-inline-end: calc((100cqw - 100vw) / 2);
	}

	.why-choose__point:nth-child(even) .why-choose__media {
		margin-inline: calc((100cqw - 100vw) / 2) 0;
	}
}

/*
 * Why Choose motion.
 * - Parallax: each photo drifts inside its frame as it crosses the screen
 *   (CSS scroll-driven animation; browsers without it keep the photo still).
 * - Hover (mouse): the photo comes back to full strength and drifts 3% inside
 *   its frame toward the middle of the page (transform, so it adds to the
 *   parallax's translate), and the box slides 1rem toward the middle too.
 * - Entrance: the first time a row comes into view, its photo slides in from
 *   its own side (right-hand photos from the right, left-hand ones from the
 *   left; mirrored in RTL) and its box fades in. Rows start hidden from the
 *   first paint (html.js, set in the head), and js/why-choose.js marks each
 *   one .is-in-view as it arrives. If the script never runs (it marks the
 *   list .is-animated when it does), the rows show anyway after 3s.
 * All of it is off for reduced motion, except the hover's opacity change.
 * Home's featured project uses the same motion, as one right-hand row, and
 * the service description as one centered row (js/why-choose.js marks them
 * the same way); their boxes stay put on hover, and the description's photo
 * has no hover effect at all.
 */
@keyframes grandir-why-reveal {

	to {
		opacity: 1;
		translate: none;
	}
}

@keyframes grandir-why-parallax {

	from {
		translate: 0 -8%;
	}

	to {
		translate: 0 8%;
	}
}

@media (hover: hover) {

	:is(.why-choose__point, .home-project__item--image):hover :is(.why-choose__image, .home-project__img) {
		opacity: 1;
	}
}

@media screen and (min-width: 48em) and (hover: hover) and (prefers-reduced-motion: no-preference) {

	/* Toward the middle: right for left-hand boxes, left for right-hand ones (mirrored in RTL). */
	.why-choose__point:hover .why-choose__box {
		translate: 1rem 0 /*rtl:-1rem 0*/;
	}

	.why-choose__point:nth-child(even):hover .why-choose__box {
		translate: -1rem 0 /*rtl:1rem 0*/;
	}

	/* Right-hand photos drift left, left-hand ones right. */
	:is(.why-choose__point, .home-project__item--image):hover :is(.why-choose__image, .home-project__img) {
		transform: translateX(-3%);
	}

	.why-choose__point:nth-child(even):hover .why-choose__image {
		transform: translateX(3%);
	}

}

@media (prefers-reduced-motion: no-preference) {

	.why-choose__image,
	.home-project__img {
		transition:
			opacity 400ms var(--grandir-ease),
			transform 600ms var(--grandir-ease);
	}


	.why-choose__box,
	.home-project__box,
	.service-description__item--image .service-description__body {
		transition:
			opacity 600ms var(--grandir-ease) 150ms,
			translate 300ms var(--grandir-ease);
	}

	.why-choose__media,
	.home-project__image,
	.service-description__media {
		transition:
			opacity 700ms var(--grandir-ease),
			translate 700ms var(--grandir-ease);
	}

	.js :is(.why-choose__point, .home-project__item--image):not(.is-in-view) :is(.why-choose__media, .home-project__image) {
		opacity: 0;
		translate: 6rem 0 /*rtl:-6rem 0*/;
	}

	/* Left-hand photos come in from the left. */
	.js .why-choose__point:nth-child(even):not(.is-in-view) .why-choose__media {
		translate: -6rem 0 /*rtl:6rem 0*/;
	}

	/* The service description's photo fades in. */
	.js .service-description__item--image:not(.is-in-view) .service-description__media {
		opacity: 0;
	}

	.js :is(.why-choose__point, .home-project__item--image, .service-description__item--image):not(.is-in-view) :is(.why-choose__box, .home-project__box, .service-description__body) {
		opacity: 0;
	}

	/* Failsafe: without the script, show the rows after 3s. */
	.js :is(.why-choose__points, .home-project, .service-description):not(.is-animated) :is(.why-choose__media, .why-choose__box, .home-project__image, .home-project__box, .service-description__media, .service-description__body) {
		animation: grandir-why-reveal 0s 3s forwards;
	}

	@supports (animation-timeline: view()) {

		.why-choose__media,
		.home-project__image,
		.service-description__media {
			view-timeline-name: --grandir-why-media;
		}

		.why-choose__image,
		.home-project__img,
		.service-description__image {
			animation: grandir-why-parallax linear both;
			animation-timeline: --grandir-why-media;
		}
	}
}

.why-choose__process {
	font-weight: 700;
	margin-block: 0;
	text-align: center;
}

/*
 * Why It Matters: the heading and local context centered, then the common
 * problems box across the full content width, its bullets in 3 columns on
 * desktops (2 on tablets, 1 on phones). The box styles are shared with the
 * area pages' common problems groups.
 */
.service-matters {
	display: grid;
	gap: 1.5rem;
}

.service-matters__heading {
	margin: 0;
	text-align: center;
}

.service-matters__context {
	margin-inline: auto;
	max-width: var(--grandir-text-width);
	text-align: center;
}

.service-matters__context > :first-child,
.service-matters__problems-heading {
	margin-block-start: 0;
}

.service-matters__context > :last-child {
	margin-block-end: 0;
}

.service-matters__problems,
.area-problems__group {
	background: var(--grandir-color-surface);
	padding: 1.25rem 1.5rem;
}

.service-matters__problems ul,
.area-problems__list {
	margin: 0;
	padding-inline-start: 1.25rem;
}

.service-matters__problems li + li,
.area-problems__list li + li {
	margin-block-start: 0.5rem;
}

.service-matters__problems li::marker,
.area-problems__list li::marker {
	color: var(--grandir-color-accent-ui);
}

/* Bullets in columns: each row's items share a line, with room for the bullets between columns. */
@media screen and (min-width: 40em) {

	.service-matters__problems ul {
		display: grid;
		gap: 0.5rem 2.5rem;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.service-matters__problems li + li {
		margin-block-start: 0;
	}
}

@media screen and (min-width: 60em) {

	.service-matters__problems ul {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* What's Included: sub-service cards on a light band, then a quote button */
.service-includes__heading {
	margin-block-start: 0;
}

/*
 * Cards laid out like the process steps: a carousel on phones (see
 * "Carousels"), 2 across on tablets, 3 on desktops, and a carousel there
 * too with more than 3, three in view.
 */
.service-includes__cards {
	display: grid;
	gap: 0.5rem;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
	list-style: none;
	margin: 1.5rem 0 0;
	padding: 0;
}

@media screen and (min-width: 48em) and (max-width: 59.9375em) {

	.service-includes__cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/* An odd last card spans the row and centers at one column's width. */
	.service-includes__cards > :last-child:nth-child(odd) {
		grid-column: 1 / -1;
		justify-self: center;
		width: calc((100% - 0.5rem) / 2);
	}
}

@media screen and (min-width: 60em) {

	.service-includes__cards {
		grid-auto-columns: minmax(0, 1fr);
		grid-auto-flow: column;
		grid-template-columns: none;
	}

	.service-includes__cards--carousel-lg {
		grid-auto-columns: calc((100% - 2 * 0.5rem) / 3);
		overflow-x: auto;
		overscroll-behavior-x: contain;
		padding-block-end: 0.75rem;
		scroll-snap-type: x mandatory;
		scrollbar-color: var(--grandir-color-accent-ui) transparent;
		scrollbar-width: thin;
	}

	.service-includes__cards--carousel-lg > .card {
		scroll-snap-align: start;
	}
}

.card--include {
	padding-block-start: 1.25rem;
}

/*
 * The photo is the card's background: it fills the top of the card, full
 * width (4:3, cropped from the center), and a gradient fades it to the
 * card's flat white where the text starts, which overlaps its faded lower
 * part. In the flow (not absolutely placed), so a longer text just makes
 * the card taller and nothing is clipped.
 * .card.card--include beats the card children's side padding
 * (".card > :not(.card__image)").
 */
.card.card--include > .card__thumb {
	margin: -1.25rem 0 -18%;
	padding: 0;
	position: relative;
}

.card--include .card__thumb img {
	aspect-ratio: 4 / 3;
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

.card--include .card__thumb::after {
	/* Flat white from 74% down: the text starts at 76% (the -18% margin below the 4:3 photo). */
	background: linear-gradient(rgba(255, 255, 255, 0) 25%, var(--grandir-color-bg) 74%);
	content: "";
	inset: 0;
	position: absolute;
}

/* The text sits over the faded part of the photo. */
.card--include > .card__thumb ~ * {
	position: relative;
}

/* The photo lifts a little on hover (the white fade below covers the gap it leaves). */
@media (prefers-reduced-motion: no-preference) {

	.card--include .card__thumb img {
		transition: translate var(--grandir-motion) var(--grandir-ease);
	}

	.card--include:focus-within .card__thumb img {
		translate: 0 -0.5rem;
	}
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {

	.card--include:hover .card__thumb img {
		translate: 0 -0.5rem;
	}
}

/* No accent edge on these cards: the lifting photo is their hover effect. */
.card.card--include:is(:hover, :focus-within) {
	border-color: var(--grandir-color-border);
	outline: 0;
}

.card--include .card__title {
	margin-block-start: 0;
}

.service-includes__cta {
	margin: 1.5rem 0 0;
}

/* Recent project: before/after photos, the project name and a link to the service's projects */
.service-project {
	text-align: center;
}

.service-project__heading {
	margin-block-start: 0;
}

/* The slider (or the single after photo) at the quote form's width, centered. */
.service-project .compare,
.service-project__image {
	margin-inline: auto;
	max-width: var(--grandir-text-width);
}

.service-project__image img,
.compare__img {
	display: block;
	height: auto;
	width: 100%;
}

.service-project__title {
	margin-block: 1rem 0;
}

.service-project__more {
	margin: 1.5rem 0 0;
}

/* Without JS: before above after, each labelled. */
.compare {
	display: grid;
	gap: 1rem;
	margin: 0;
}

.compare__frame {
	display: grid;
	gap: 1rem;
}

.compare__before,
.compare__after {
	position: relative;
}

.compare__tag {
	background: rgb(0 0 0 / 0.65);
	color: #fff;
	font-size: 0.875rem;
	font-weight: 700;
	inset-block-start: 0.75rem;
	inset-inline-start: 0.75rem;
	padding: 0.2em 0.6em;
	position: absolute;
}

/* With JS: the before photo sits on the after photo, clipped at the divider. */
.compare.is-enhanced .compare__frame {
	--position: 50%;
	aspect-ratio: 3 / 2;
	cursor: ew-resize;
	direction: ltr;
	display: block;
	overflow: hidden;
	position: relative;
	touch-action: pan-y;
	user-select: none;
}

.compare.is-enhanced .compare__before,
.compare.is-enhanced .compare__after {
	height: 100%;
	inset: 0;
	position: absolute;
}

.compare.is-enhanced .compare__before {
	/*rtl:ignore*/
	clip-path: inset(0 calc(100% - var(--position)) 0 0);
	z-index: 1;
}

.compare.is-enhanced .compare__img {
	height: 100%;
	object-fit: cover;
}

.compare.is-enhanced .compare__tag--after {
	inset-inline: auto 0.75rem;
}

.compare.is-enhanced .compare__tag {
	z-index: 2;
}

/* The range input stays focusable for the keyboard but isn't seen; the handle shows its position. */
.compare__range {
	clip-path: inset(50%);
	height: 1px;
	margin: 0;
	overflow: hidden;
	position: absolute;
	width: 1px;
}

.compare__handle {
	background: #fff;
	box-shadow: 0 0 0 1px rgb(0 0 0 / 0.3);
	inset-block: 0;
	/*rtl:ignore*/
	left: var(--position);
	pointer-events: none;
	position: absolute;
	/*rtl:ignore*/
	transform: translateX(-50%);
	width: 3px;
	z-index: 2;
}

.compare__handle::after {
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 1px 4px rgb(0 0 0 / 0.35);
	content: "";
	height: 2.5rem;
	/*rtl:ignore*/
	left: 50%;
	position: absolute;
	top: 50%;
	/*rtl:ignore*/
	transform: translate(-50%, -50%);
	width: 2.5rem;
}

.compare__range:focus-visible + .compare__handle::after {
	outline: 3px solid var(--grandir-color-focus);
	outline-offset: 2px;
}

/* Financing: a coupon-style box on the band, the terms beside a button to the partner */
.service-financing__coupon {
	align-items: center;
	background: var(--grandir-color-bg);
	border: 2px dashed var(--grandir-color-accent-ui);
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 2rem;
	justify-content: space-between;
	padding: 1.5rem;
}

@media screen and (min-width: 48em) {

	.service-financing__coupon {
		padding: 2rem 2.5rem;
	}
}

.service-financing__text {
	max-width: var(--grandir-text-width);
}

.service-financing__heading {
	margin-block: 0 0.5rem;
}

.service-financing__terms {
	font-size: 1.125rem;
	font-weight: 700;
	margin: 0;
}

.service-financing__partner {
	color: var(--grandir-color-text-muted);
	margin: 0.25rem 0 0;
}

.service-financing__action {
	margin: 0;
}

/* Service Area: where the service is offered */
.service-areas__heading {
	margin-block-end: 0.5rem;
}

.service-areas__intro {
	margin: 0 auto 1.25rem;
	max-width: var(--grandir-text-width);
	text-align: center;
}

/* FAQ intro (service pages), centered under the heading. */
.faqs__intro {
	margin: -0.25rem auto 1.25rem;
	max-width: var(--grandir-text-width);
	text-align: center;
}

/*
 * Project pages: Project details is a dark band of white cards right under
 * the breadcrumb bar (Location, Timeline, Services, then the project's own
 * cards); Before and after, the summary and the gallery sit on white.
 */
.project-details__heading,
.project-compare__heading,
.project-gallery__heading {
	margin-block: 0 1.5rem;
	text-align: center;
}

.project-details__items {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
	margin: 0;
}

.project-details__item {
	background: var(--grandir-color-bg);
	border: 1px solid var(--grandir-color-border);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	min-width: 0;
	padding: 1.25rem 1.5rem;
}

.project-details__label {
	color: var(--grandir-color-text-muted);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.project-details__value {
	color: var(--grandir-color-text);
	font-size: 1.125rem;
	font-weight: 700;
	margin: 0;
	overflow-wrap: anywhere;
}

.project-details__services {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Before and after: the slider (or the after photo alone) at the quote form's width, like a service's Recent project. */
.project-compare .compare,
.project-compare__image {
	margin-inline: auto;
	max-width: var(--grandir-text-width);
}

.project-compare__image img {
	display: block;
	height: auto;
	width: 100%;
}

/* The summary lines up with the write-up's column. */
.project-summary {
	font-size: 1.125rem;
	margin-inline: auto;
	max-width: var(--grandir-text-width);
}

/* Gallery: 2 columns on phones, 3 from 768px, each photo cropped to 4:3. */
.project-gallery__grid {
	display: grid;
	gap: 0.5rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

@media screen and (min-width: 48em) {

	.project-gallery__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.project-gallery__figure {
	margin: 0;
}

.project-gallery__link {
	cursor: zoom-in;
	display: block;
	overflow: clip;
}

.project-gallery__img {
	aspect-ratio: 4 / 3;
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {

	.project-gallery__img {
		transition: transform var(--grandir-motion) var(--grandir-ease);
	}

	.project-gallery__link:hover .project-gallery__img,
	.project-gallery__link:focus-visible .project-gallery__img {
		transform: scale(1.04);
	}
}

.project-gallery__caption {
	color: var(--grandir-color-text-muted);
	font-size: 0.9375rem;
	margin-block-start: 0.5rem;
}

/* Lightbox: the photo as large as fits, its caption over the bottom of the photo. */
.lightbox {
	--grandir-color-focus: #fff;
	background: none;
	border: 0;
	color: #fff;
	height: 100%;
	margin: 0;
	max-height: none;
	max-width: none;
	padding: 4rem 1rem;
	touch-action: pinch-zoom;
	width: 100%;
}

.lightbox[open] {
	align-items: center;
	display: flex;
	justify-content: center;
}

.lightbox::backdrop {
	background: rgb(0 0 0 / 0.9);
}

.lightbox__figure {
	margin: 0;
	position: relative;
	width: fit-content;
}

.lightbox__img {
	display: block;
	height: auto;
	max-height: calc(100vh - 8rem);
	max-height: calc(100dvh - 8rem);
	max-width: 100%;
	width: auto;
}

.lightbox__caption {
	background: linear-gradient(transparent, rgb(0 0 0 / 0.8));
	inset-block-end: 0;
	inset-inline: 0;
	padding: 2rem 1rem 0.75rem;
	position: absolute;
	text-align: center;
}

.lightbox__button {
	align-items: center;
	background: rgb(0 0 0 / 0.6);
	border: 1px solid rgb(255 255 255 / 0.5);
	border-radius: 50%;
	color: #fff;
	display: inline-flex;
	height: 3rem;
	justify-content: center;
	padding: 0;
	position: absolute;
	width: 3rem;
	z-index: 1;
}

.lightbox__button:hover {
	background: rgb(0 0 0 / 0.85);
	border-color: #fff;
}

.lightbox__button:focus-visible {
	outline: 3px solid var(--grandir-color-focus);
	outline-offset: 2px;
}

.lightbox__button--close {
	/*rtl:ignore*/
	right: 0.75rem;
	top: 0.75rem;
}

/* Previous on the left and next on the right in every language, matching the arrow keys. */
.lightbox__button--prev,
.lightbox__button--next {
	top: 50%;
	transform: translateY(-50%);
}

.lightbox__button--prev {
	/*rtl:ignore*/
	left: 0.75rem;
}

.lightbox__button--next {
	/*rtl:ignore*/
	right: 0.75rem;
}

.lightbox__button--next svg {
	transform: scaleX(-1);
}

.lightbox__count {
	font-size: 0.9375rem;
	inset-block-end: 1.25rem;
	inset-inline: 0;
	margin: 0;
	position: absolute;
	text-align: center;
}

/* Projects index filters: dropdowns side by side, stacked on phones. */
.project-filters {
	align-items: flex-end;
	display: flex;
	flex-wrap: wrap;
	gap: 1rem var(--grandir-gap);
	margin-block-end: var(--grandir-gap);
}

.project-filters__field {
	display: flex;
	flex: 1 1 14rem;
	flex-direction: column;
	gap: 0.25rem;
	max-width: 20rem;
}

/* Labels use .eyebrow; the field's gap spaces them instead of its margin. */
.project-filters__field .eyebrow {
	margin-block: 0;
}

.project-filters__field select {
	background-color: var(--grandir-color-bg);
	border: 1px solid var(--grandir-color-border);
	color: var(--grandir-color-text);
	padding: 0.625em 0.75em;
	width: 100%;
}

.project-filters__submit {
	background: none;
	color: var(--grandir-color-link);
	cursor: pointer;
}

.project-filters--auto .project-filters__submit {
	display: none;
}

@media screen and (max-width: 37.4375em) {

	.project-filters__field {
		max-width: none;
	}
}

/* Card grid */
.card-grid {
	display: grid;
	gap: var(--grandir-gap);
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
}

.card__image--placeholder {
	aspect-ratio: 4 / 3;
	background: var(--grandir-color-surface);
}

.card__image img {
	aspect-ratio: 4 / 3;
	display: block;
	object-fit: cover;
	width: 100%;
}

.card__title {
	margin-block: 0.75em 0.25em;
}

/*
 * Text-only cards (services and areas): 3 across, with a
 * short last row centered (flex, since a grid can't center a partial row).
 */
.card-grid--no-image {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

.card-grid--no-image > * {
	flex: 0 0 calc((100% - 2 * var(--grandir-gap)) / 3);
}

/* The Services, Areas and Projects pages: the cards closer together (the column widths follow the gap). */
.site-main--archive-service .card-grid,
.site-main--archive-area .card-grid,
.site-main--archive-project .card-grid {
	--grandir-gap: 0.5rem;
}

/*
 * Below the width where 3 cards fit (3 × 14rem + 2 gaps, plus main's 2rem
 * padding), 2 across down to 600px.
 */
@media screen and (max-width: 46.9375em) {

	.card-grid--no-image > * {
		flex-basis: calc((100% - var(--grandir-gap)) / 2);
	}
}

/* Then one column, 340px at most and centered: card photos stay short. */
@media screen and (max-width: 37.4375em) {

	.card-grid--no-image > * {
		flex-basis: 100%;
		max-width: 21.25rem;
	}
}

/* Two cards share the row; a lone card takes half of it (one column on phones). */
@media screen and (min-width: 37.5em) {

	.card-grid--no-image:has(> :nth-child(2):last-child) > * {
		flex-basis: calc((100% - var(--grandir-gap)) / 2);
	}

	.card-grid--no-image > :only-child {
		flex-basis: 50%;
	}
}

.card--no-image {
	padding-block-start: 1.25rem;
}

.card--no-image > .card__title:first-child {
	margin-block-start: 0;
}

/* Cross-link lists */
.related-list__items {
	columns: 3 12rem;
	padding-inline-start: 1.25em;
}

/* Cross-links and area links (Home and service pages): each one is a button-like box with an icon (a chevron, or a pin for areas) that nudges on hover. */
.related-list--buttons .related-list__items,
.areas-list--buttons {
	columns: auto;
	display: grid;
	gap: 0.75rem;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.related-list--buttons .related-list__items a,
.areas-list--buttons a {
	align-items: center;
	background: var(--grandir-color-bg);
	border: 1px solid var(--grandir-color-border);
	color: var(--grandir-color-link);
	display: flex;
	font-weight: 700;
	gap: 1rem;
	height: 100%;
	justify-content: space-between;
	padding: 1rem 1.25rem;
	text-decoration: none;
}

.related-list--buttons .related-list__items a:hover,
.areas-list--buttons a:hover {
	border-color: var(--grandir-color-accent-ui);
}

/* Phones: one area per row, so slimmer buttons keep a long list short. */
@media screen and (max-width: 39.9375em) {

	.areas-list--buttons a {
		font-size: 0.875rem;
		padding-block: 0.5rem;
	}
}

/* The cross-link heading centers over its buttons, like the area sections. */
.related-list--buttons .related-list__heading {
	text-align: center;
}

/*
 * On wider screens the buttons keep a set width and every row centers,
 * including a short last one; phones stack them full width.
 */
@media screen and (min-width: 48em) {

	.related-list--buttons .related-list__items,
	.areas-list--buttons {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
	}

	.related-list--buttons .related-list__items > li,
	.areas-list--buttons > li {
		flex: 0 1 16rem;
	}
}

/* The chevron icon points down; turn it to point right (rtlcss mirrors it for RTL). */
.related-list--buttons .icon-chevron {
	transform: rotate(-90deg);
}

/* Area links get a map pin instead, since they're places. */
.related-list--buttons .icon-chevron,
.areas-list--buttons .icon-pin {
	color: var(--grandir-color-accent-ui);
	flex-shrink: 0;
}

@media (prefers-reduced-motion: no-preference) {

	.related-list--buttons .related-list__items a,
	.areas-list--buttons a {
		transition: border-color var(--grandir-motion-fast) var(--grandir-ease);
	}

	.related-list--buttons .icon-chevron,
	.areas-list--buttons .icon-pin {
		transition: transform var(--grandir-motion) var(--grandir-ease);
	}

	/* translateY runs along the rotated icon, so this nudges it toward where it points. */
	.related-list--buttons .related-list__items a:hover .icon-chevron,
	.related-list--buttons .related-list__items a:focus-visible .icon-chevron {
		transform: rotate(-90deg) translateY(4px);
	}

	/* The pin lifts a little. */
	.areas-list--buttons a:hover .icon-pin,
	.areas-list--buttons a:focus-visible .icon-pin {
		transform: translateY(-3px);
	}
}

/*
 * Area pages: common problems, a list under each service's name in the
 * service page's grey box (see .service-matters__problems). One full-width
 * column up to desktop, then up to 3 across.
 */
.area-problems__intro {
	margin-block-end: 1.25rem;
	max-width: var(--grandir-text-width);
}

.area-problems__intro > :last-child {
	margin-block-end: 0;
}

.area-problems__groups {
	display: grid;
	gap: var(--grandir-gap);
}

@media screen and (min-width: 60em) {

	.area-problems__groups {
		grid-template-columns: repeat(auto-fit, minmax(max(16rem, (100% - 2 * var(--grandir-gap)) / 3), 1fr));
	}
}

.area-problems__service {
	font-size: 1.125rem;
	margin: 0 0 0.75rem;
}

/* Area pages: the map at the quote form's width, like the Contact map. */
.area-map__frame {
	margin-inline: auto;
	max-width: var(--grandir-text-width);
	overflow: hidden;
}

.area-map__frame iframe {
	aspect-ratio: 16 / 9;
	border: 0;
	display: block;
	width: 100%;
}

/* Areas hub map, framed to fit every area (inc/area-map.php) */
.areas-map iframe {
	aspect-ratio: 4 / 3;
	border: 0;
	display: block;
	width: 100%;
}

@media screen and (min-width: 48em) {

	/* Wide, to show a spread of towns. inc/area-map.php frames the map for this shape. */
	.areas-map iframe {
		aspect-ratio: 21 / 9;
	}
}

/* FAQs: at most 720px wide, centered, on every page. */
.faqs {
	margin-inline: auto;
	max-width: 720px;
}

.faqs__heading {
	text-align: center;
}

/* Divider lines in a light tint of the accent (decorative, so no contrast minimum). */
.faq {
	border-block-end: 1px solid color-mix(in srgb, var(--grandir-color-accent-ui) 40%, transparent);
	padding-block: 1em;
}

/* A chevron at the end replaces the default triangle and turns when open. */
.faq__question {
	align-items: center;
	cursor: pointer;
	display: flex;
	font-weight: 700;
	gap: 1rem;
	justify-content: space-between;
	list-style: none;
}

.faq__question::-webkit-details-marker {
	display: none;
}

/* The chevron in the accent color (accent-ui: 3:1 or more on the page background). */
.faq__question::after {
	border-block-end: 2px solid var(--grandir-color-accent-ui);
	border-inline-end: 2px solid var(--grandir-color-accent-ui);
	content: "";
	flex-shrink: 0;
	height: 0.5em;
	margin-inline-end: 0.25em;
	transform: translateY(-25%) rotate(45deg);
	width: 0.5em;
}

/* Contains its paragraphs' margins, so its height is the same while it slides (js/faqs.js) and after. */
.faq__answer {
	display: flow-root;
}

/* While an answer slides shut (js/faqs.js), the chevron already points closed. */
.faq[open]:not(.is-closing) > .faq__question::after {
	transform: translateY(25%) rotate(-135deg);
}

/* Call to action */
.cta {
	padding-block: 3rem;
	text-align: center;
}

/* The form band closes the page: an accent rule sets it apart from the footer, which can be the same color. */
.site-main > .cta:last-child {
	border-block-end: 4px solid var(--grandir-color-accent);
}

.cta__form {
	margin-inline: auto;
	max-width: var(--grandir-text-width);
	text-align: start;
}

/*
 * Desktops: the quote form band's form in two columns. The short fields
 * (name, phone, email, project type) stack on the left and the message
 * field fills the right column at their combined height; the submit button
 * centers under both. Its span is generous (20 rows, no row gap) so it
 * covers however many short fields the form has; the empty rows take no
 * space. WPForms' hidden spam-trap fields stay in the left column.
 */
@media screen and (min-width: 60em) {

	.cta__form {
		max-width: 56rem;
	}

	.cta__form .wpforms-form .wpforms-field-container {
		column-gap: 1.5rem;
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.cta__form .wpforms-form .wpforms-field-container > .wpforms-field {
		grid-column: 1;
	}

	.cta__form div.wpforms-container-full .wpforms-form .wpforms-field-container > .wpforms-field-textarea {
		display: flex;
		flex-direction: column;
		grid-column: 2;
		grid-row: 1 / span 20;
	}

	.cta__form div.wpforms-container-full .wpforms-form .wpforms-field-textarea textarea {
		flex: 1;
		height: auto;
		min-height: 8rem;
	}

	.cta__form div.wpforms-container-full .wpforms-form .wpforms-submit-container {
		text-align: center;
	}
}

/*
 * Breadcrumbs: a full-width bar in brand-tinted charcoal (white text at 7:1
 * or more). On services, areas and projects it sits right under the hero;
 * on the index pages, which have no hero, under the header.
 */
.breadcrumbs {
	--grandir-color-focus: #fff;
	background: var(--grandir-color-charcoal);
	color: #fff;
	font-size: 0.875rem;
	margin-inline: calc(50% - 50vw);
	padding-block: 0.375rem;
	padding-inline: max(var(--grandir-gutter), calc((100vw - var(--grandir-content-width)) / 2 + 1rem));
}

.breadcrumbs a,
.breadcrumbs a:visited,
.breadcrumbs a:hover,
.breadcrumbs a:focus,
.breadcrumbs a:active {
	color: inherit;
}

.breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	margin: 0;
	padding: 0;
}

.breadcrumbs li + li::before {
	content: "\203A";
	padding-inline: 0.5em;
}

/* Opening hours (footer and Contact): one row per day, times aligned. */
.hours {
	column-gap: 1em;
	display: grid;
	grid-template-columns: max-content 1fr;
	margin: 0;
	row-gap: 0.125rem;
}

/* The row wrappers group each day with its times for assistive technology; the grid lays out their cells. */
.hours__row {
	display: contents;
}

.hours__day {
	font-weight: 600;
}

.hours__time {
	margin: 0;
}

.hours__note,
.site-footer__detail .hours__note {
	margin-block: 0.5rem 0;
}

/* Contact */
.contact {
	display: grid;
	gap: var(--grandir-gap);
}

/* The section gap under the hero (article.page would otherwise zero it). */
.site-main > .contact {
	margin-block-start: 2.5rem;
}

@media screen and (min-width: 48em) {

	/* Form (60%) beside the hours and map (40%); with neither, the form takes the full width. */
	.contact--has-details {
		gap: calc(var(--grandir-gap) * 2);
		grid-template-columns: 3fr 2fr;
	}

	/* The map fills the column below the hours, down to the bottom of the form. */
	.contact__details {
		display: flex;
		flex-direction: column;
	}

	/*
	 * The Hours heading's letters line up with the top of the form card:
	 * text-box trims the space above the capitals (Chrome, Edge, Safari;
	 * other browsers leave it a few pixels lower).
	 */
	.contact__details > h2:first-child {
		margin-block-start: 0;
		text-box: trim-start cap alphabetic;
	}

	/* Flex items' margins don't collapse: keep the heading-to-hours space as it was. */
	.contact__hours {
		margin-block-start: 0;
	}

	.contact__map {
		flex: 1;
		min-height: 18rem;
		position: relative;
	}

	.contact__map iframe {
		aspect-ratio: auto;
		height: 100%;
		inset: 0;
		position: absolute;
	}
}

.contact__map iframe {
	aspect-ratio: 16 / 9;
	border: 0;
	display: block;
	width: 100%;
}

/* Utility pages */
.site-main--utility {
	max-width: var(--grandir-text-width);
}

.utility__updated {
	font-size: 0.875em;
}

/* Footer
 * Mobile: everything stacked. 48em+: business details beside quick links,
 * and the bottom bar in one row.
 */
.site-footer {
	background: var(--grandir-color-primary-deep);
	color: #fff;
}

.site-footer__inner,
.site-footer__bottom-inner {
	margin-inline: auto;
	max-width: calc(var(--grandir-content-width) - 2rem + 2 * var(--grandir-gutter));
	padding-inline: var(--grandir-gutter);
}

.site-footer__inner {
	display: grid;
	gap: 2rem;
	padding-block: 2.5rem;
}

.site-footer__logo {
	/* Steep, so wide logos stay about 16rem by 4rem while square ones are large. */
	--grandir-logo-curve: 0.35;
	--grandir-logo-size: var(--grandir-footer-logo);
	display: inline-block;
	margin-block-end: 1rem;
}

.site-footer__logo .custom-logo {
	display: block;
	height: auto;
	max-height: 4rem;
	width: auto;
	max-width: 100%;
}

.site-footer__logo .custom-logo[src$=".svg"] {
	height: 4rem;
}

.site-footer .site-title {
	color: inherit;
	font-size: 1.25rem;
	font-weight: 700;
	text-decoration: none;
}

.site-footer__name {
	font-weight: 700;
	margin-block: 0 0.75rem;
}

.site-footer__detail {
	align-items: flex-start;
	display: flex;
	gap: 0.625rem;
	margin-block-end: 0.75rem;
}

.site-footer__detail .icon {
	height: 1.25rem;
	margin-block-start: 0.15em;
	width: 1.25rem;
}

.site-footer__detail address,
.site-footer__detail p {
	font-style: normal;
	margin: 0;
}

.site-footer__heading {
	font-size: 1rem;
	margin-block: 0 0.75rem;
}

.site-footer__links,
.site-footer__social,
.site-footer__legal {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-footer__links a {
	color: inherit;
	display: inline-block;
	padding-block: 0.5rem;
}

.site-footer__bottom {
	border-block-start: 1px solid rgba(255, 255, 255, 0.25);
	font-size: 0.875rem;
}

.site-footer__bottom-inner {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding-block: 1.25rem;
}

.site-footer__license,
.site-footer__copyright {
	margin: 0;
}

.site-footer__social {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
}

.site-footer__social a {
	align-items: center;
	color: inherit;
	display: inline-flex;
	justify-content: center;
	min-height: 44px;
	min-width: 44px;
}

.site-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1rem;
	margin-block-end: 0.5rem;
}

.site-footer__legal a {
	color: inherit;
	display: inline-block;
	padding-block: 0.25rem;
}

@media screen and (min-width: 48em) {

	.site-footer__inner {
		grid-template-columns: 2fr 1fr;
	}

	.site-footer__links {
		columns: 2;
	}

	.site-footer__bottom-inner {
		align-items: center;
		flex-direction: row;
		flex-wrap: wrap;
	}

	.site-footer__social {
		margin-inline-start: auto;
	}

	.site-info {
		flex-basis: 100%;
	}
}

/*
 * Balanced line breaks: text-wrap: pretty avoids a lone word on the last
 * line. It's inherited, so containers cover the paragraphs and list items
 * inside them. Browsers without it wrap as before.
 */

/* Page titles */
.eyebrow,
.tagline,
/* Hero */
.hero__heading,
.hero__subheading,
/* The button under the service cards */
.card-grid-section__cta .button,
/* Service areas */
.home-areas__heading,
.service-areas__heading,
/* FAQs */
.faqs__heading,
.faq__question,
.faq__answer,
/* Process */
.process__heading,
.process__title,
.process__callout-heading,
.process__intro,
.process__text,
.process__callout-text,
/* Home: featured project; page content on every page */
.home-project__heading,
.home-project__summary,
.entry-content,
/* Service pages: financing */
.service-financing__heading,
.service-financing__text,
.service-financing__coupon,
.service-financing__partner,
.service-financing__terms,
/* Service pages: video */
.service-video__heading,
.service-video__text,
/* Service pages: description */
.service-description__heading,
.service-description__text,
/* Service pages: why choose */
.why-choose__heading,
.why-choose__box,
/* Service pages: why it matters */
.service-matters__heading,
.service-matters__context,
.service-matters__problems,
/* Service pages: what's included */
.service-includes__heading,
.card--include .card__title,
.card--include .card__excerpt {
	text-wrap: pretty;
}

/*
 * Taglines are short display lines, so they're balanced instead: every line
 * about the same length, which never leaves one word alone on the last line
 * (pretty doesn't guarantee that, and isn't in every browser).
 */
.tagline {
	text-wrap: balance;
}

/*--------------------------------------------------------------
# Brand color
Where the brand colors become backgrounds. Every pairing here uses a
derived token from inc/brand.php, so it meets WCAG AA for any brand.
Forms always sit in a white card (WPForms styles its own labels).
--------------------------------------------------------------*/

/*
 * A page that ends with a band meets the footer directly; otherwise main's
 * bottom padding keeps the last content off the footer.
 */
.site-main:has(> :is(.hero:not(.hero--image), .cta, .home-project, .home-areas, .why-choose, .card-grid-section--dark, .service-includes, .service-financing, .process):last-child) {
	padding-block-end: 0;
}

/*
 * Full-width bands, content realigned to the page width. A band added here
 * also goes in the list that removes the gap between bands (".site-main > * + *").
 */
.hero:not(.hero--image),
.cta,
.home-project,
.home-areas,
.why-choose,
.card-grid-section--dark,
.project-details,
.service-includes,
.service-financing,
.process {
	margin-inline: calc(50% - 50vw);
	max-width: none;
	padding-block: 3rem;
	padding-inline: max(var(--grandir-gutter), calc((100vw - var(--grandir-content-width)) / 2 + 1rem));
}

/*
 * More brand bands: deep with white text, unless their position makes them
 * light (below). Panels inside them (cards, steps, the coupon) stay white
 * with the normal text colors.
 */
.home-project,
.home-areas,
.service-includes,
.service-financing,
.process {
	--grandir-color-focus: #fff;
	background: var(--grandir-color-primary-deep);
	color: #fff;
}

/*
 * Service pages: the video, description, recent project, service area and
 * other services sections are bands too, full width. On deep they have white
 * text, white buttons and white text links. Area pages share them: the other
 * areas, recent project and map are bands there.
 */
:is(.site-main--service, .site-main--area) > :is(.service-video, .service-description, .service-project, .service-areas, .related-list, .area-map) {
	--grandir-color-focus: #fff;
	color: #fff;
	margin-inline: calc(50% - 50vw);
	max-width: none;
	padding-block: 3rem;
	padding-inline: max(var(--grandir-gutter), calc((100vw - var(--grandir-content-width)) / 2 + 1rem));
}

:is(.site-main--service, .site-main--area) > :is(.service-video, .service-description, .service-project, .service-areas, .related-list, .area-map) .button {
	--grandir-btn-fill: var(--grandir-band-btn-fill, #fff);
	--grandir-btn-on-fill: var(--grandir-band-btn-on-fill, var(--grandir-color-primary-deep));
	--grandir-btn-line: var(--grandir-band-btn-line, #fff);
}

:is(.site-main--service, .site-main--area) > :is(.service-video, .service-project) a:not(.button),
:is(.site-main--service, .site-main--area) > :is(.service-video, .service-project) a:not(.button):visited {
	color: inherit;
}

/* White panels inside the bands keep the normal text, link and focus colors. */
.process__step,
.process__callout,
.service-financing__coupon,
.home-project__box,
.card:not(.card--bg) {
	--grandir-color-focus: #111;
	color: var(--grandir-color-text);
}

/* Buttons right on a band: white on deep, the brand pair on light; inside a white panel they keep the brand pair. */
:is(.home-project, .home-areas, .service-includes, .service-financing, .process) .button {
	--grandir-btn-fill: var(--grandir-band-btn-fill, #fff);
	--grandir-btn-on-fill: var(--grandir-band-btn-on-fill, var(--grandir-color-primary-deep));
	--grandir-btn-line: var(--grandir-band-btn-line, #fff);
}

:is(.home-project, .home-areas, .service-includes, .service-financing, .process) :is(.process__step, .process__callout, .service-financing__coupon, .home-project__box, .card) .button {
	--grandir-btn-fill: var(--grandir-color-primary);
	--grandir-btn-on-fill: var(--grandir-color-on-primary);
	--grandir-btn-line: var(--grandir-color-link);
}

/*
 * Bands alternate deep and light (primary-shade) by position, so two that
 * meet never share a color, whichever optional sections a page leaves out:
 * in each run of bands the 1st, 3rd and 5th are deep, the 2nd, 4th and 6th
 * light. The quote form band (.cta) takes part, so it always differs from
 * the band above it. Service and area pages add their own bands (only
 * Why It Matters, or the page content and Common Problems, plus Reviews and
 * FAQs stay white there), so they get their own list, and the first list
 * skips them: the two count positions differently.
 *
 * A light band switches to the normal text color, and sets --grandir-band-*
 * for the buttons, accents and carousel dots on it (deep is the fallback).
 * A band also matches the rules for every position before its own, so each
 * deep rule resets all of that too, not just the background.
 */
.site-main:not(.site-main--service, .site-main--area) > :is(.why-choose, .card-grid-section--dark, .home-project, .home-areas, .service-includes, .service-financing, .process, .cta) {
	--grandir-color-focus: #fff;
	--grandir-band-btn-fill: initial;
	--grandir-band-btn-on-fill: initial;
	--grandir-band-btn-line: initial;
	--grandir-band-accent: initial;
	--grandir-band-dot: initial;
	background: var(--grandir-color-primary-deep);
	color: #fff;
}

.site-main:not(.site-main--service, .site-main--area) > :is(.why-choose, .card-grid-section--dark, .home-project, .home-areas, .service-includes, .service-financing, .process, .cta) + :is(.why-choose, .card-grid-section--dark, .home-project, .home-areas, .service-includes, .service-financing, .process, .cta) {
	--grandir-color-focus: #111;
	--grandir-band-btn-fill: var(--grandir-color-primary);
	--grandir-band-btn-on-fill: var(--grandir-color-on-primary);
	--grandir-band-btn-line: var(--grandir-color-link);
	--grandir-band-accent: var(--grandir-color-accent-on-shade);
	--grandir-band-dot: var(--grandir-color-text-muted);
	background: var(--grandir-color-primary-shade);
	color: var(--grandir-color-text);
}

.site-main:not(.site-main--service, .site-main--area) > :is(.why-choose, .card-grid-section--dark, .home-project, .home-areas, .service-includes, .service-financing, .process, .cta) + :is(.why-choose, .card-grid-section--dark, .home-project, .home-areas, .service-includes, .service-financing, .process, .cta) + :is(.why-choose, .card-grid-section--dark, .home-project, .home-areas, .service-includes, .service-financing, .process, .cta) {
	--grandir-color-focus: #fff;
	--grandir-band-btn-fill: initial;
	--grandir-band-btn-on-fill: initial;
	--grandir-band-btn-line: initial;
	--grandir-band-accent: initial;
	--grandir-band-dot: initial;
	background: var(--grandir-color-primary-deep);
	color: #fff;
}

.site-main:not(.site-main--service, .site-main--area) > :is(.why-choose, .card-grid-section--dark, .home-project, .home-areas, .service-includes, .service-financing, .process, .cta) + :is(.why-choose, .card-grid-section--dark, .home-project, .home-areas, .service-includes, .service-financing, .process, .cta) + :is(.why-choose, .card-grid-section--dark, .home-project, .home-areas, .service-includes, .service-financing, .process, .cta) + :is(.why-choose, .card-grid-section--dark, .home-project, .home-areas, .service-includes, .service-financing, .process, .cta) {
	--grandir-color-focus: #111;
	--grandir-band-btn-fill: var(--grandir-color-primary);
	--grandir-band-btn-on-fill: var(--grandir-color-on-primary);
	--grandir-band-btn-line: var(--grandir-color-link);
	--grandir-band-accent: var(--grandir-color-accent-on-shade);
	--grandir-band-dot: var(--grandir-color-text-muted);
	background: var(--grandir-color-primary-shade);
	color: var(--grandir-color-text);
}

.site-main:not(.site-main--service, .site-main--area) > :is(.why-choose, .card-grid-section--dark, .home-project, .home-areas, .service-includes, .service-financing, .process, .cta) + :is(.why-choose, .card-grid-section--dark, .home-project, .home-areas, .service-includes, .service-financing, .process, .cta) + :is(.why-choose, .card-grid-section--dark, .home-project, .home-areas, .service-includes, .service-financing, .process, .cta) + :is(.why-choose, .card-grid-section--dark, .home-project, .home-areas, .service-includes, .service-financing, .process, .cta) + :is(.why-choose, .card-grid-section--dark, .home-project, .home-areas, .service-includes, .service-financing, .process, .cta) {
	--grandir-color-focus: #fff;
	--grandir-band-btn-fill: initial;
	--grandir-band-btn-on-fill: initial;
	--grandir-band-btn-line: initial;
	--grandir-band-accent: initial;
	--grandir-band-dot: initial;
	background: var(--grandir-color-primary-deep);
	color: #fff;
}

.site-main:not(.site-main--service, .site-main--area) > :is(.why-choose, .card-grid-section--dark, .home-project, .home-areas, .service-includes, .service-financing, .process, .cta) + :is(.why-choose, .card-grid-section--dark, .home-project, .home-areas, .service-includes, .service-financing, .process, .cta) + :is(.why-choose, .card-grid-section--dark, .home-project, .home-areas, .service-includes, .service-financing, .process, .cta) + :is(.why-choose, .card-grid-section--dark, .home-project, .home-areas, .service-includes, .service-financing, .process, .cta) + :is(.why-choose, .card-grid-section--dark, .home-project, .home-areas, .service-includes, .service-financing, .process, .cta) + :is(.why-choose, .card-grid-section--dark, .home-project, .home-areas, .service-includes, .service-financing, .process, .cta) {
	--grandir-color-focus: #111;
	--grandir-band-btn-fill: var(--grandir-color-primary);
	--grandir-band-btn-on-fill: var(--grandir-color-on-primary);
	--grandir-band-btn-line: var(--grandir-color-link);
	--grandir-band-accent: var(--grandir-color-accent-on-shade);
	--grandir-band-dot: var(--grandir-color-text-muted);
	background: var(--grandir-color-primary-shade);
	color: var(--grandir-color-text);
}

:is(.site-main--service, .site-main--area) > :is(.why-choose, .card-grid-section--dark, .home-project, .home-areas, .service-includes, .service-financing, .process, .cta, .service-video, .service-description, .service-project, .service-areas, .related-list, .area-map) {
	--grandir-color-focus: #fff;
	--grandir-band-btn-fill: initial;
	--grandir-band-btn-on-fill: initial;
	--grandir-band-btn-line: initial;
	--grandir-band-accent: initial;
	--grandir-band-dot: initial;
	background: var(--grandir-color-primary-deep);
	color: #fff;
}

:is(.site-main--service, .site-main--area) > :is(.why-choose, .card-grid-section--dark, .home-project, .home-areas, .service-includes, .service-financing, .process, .cta, .service-video, .service-description, .service-project, .service-areas, .related-list, .area-map) + :is(.why-choose, .card-grid-section--dark, .home-project, .home-areas, .service-includes, .service-financing, .process, .cta, .service-video, .service-description, .service-project, .service-areas, .related-list, .area-map) {
	--grandir-color-focus: #111;
	--grandir-band-btn-fill: var(--grandir-color-primary);
	--grandir-band-btn-on-fill: var(--grandir-color-on-primary);
	--grandir-band-btn-line: var(--grandir-color-link);
	--grandir-band-accent: var(--grandir-color-accent-on-shade);
	--grandir-band-dot: var(--grandir-color-text-muted);
	background: var(--grandir-color-primary-shade);
	color: var(--grandir-color-text);
}

:is(.site-main--service, .site-main--area) > :is(.why-choose, .card-grid-section--dark, .home-project, .home-areas, .service-includes, .service-financing, .process, .cta, .service-video, .service-description, .service-project, .service-areas, .related-list, .area-map) + :is(.why-choose, .card-grid-section--dark, .home-project, .home-areas, .service-includes, .service-financing, .process, .cta, .service-video, .service-description, .service-project, .service-areas, .related-list, .area-map) + :is(.why-choose, .card-grid-section--dark, .home-project, .home-areas, .service-includes, .service-financing, .process, .cta, .service-video, .service-description, .service-project, .service-areas, .related-list, .area-map) {
	--grandir-color-focus: #fff;
	--grandir-band-btn-fill: initial;
	--grandir-band-btn-on-fill: initial;
	--grandir-band-btn-line: initial;
	--grandir-band-accent: initial;
	--grandir-band-dot: initial;
	background: var(--grandir-color-primary-deep);
	color: #fff;
}

:is(.site-main--service, .site-main--area) > :is(.why-choose, .card-grid-section--dark, .home-project, .home-areas, .service-includes, .service-financing, .process, .cta, .service-video, .service-description, .service-project, .service-areas, .related-list, .area-map) + :is(.why-choose, .card-grid-section--dark, .home-project, .home-areas, .service-includes, .service-financing, .process, .cta, .service-video, .service-description, .service-project, .service-areas, .related-list, .area-map) + :is(.why-choose, .card-grid-section--dark, .home-project, .home-areas, .service-includes, .service-financing, .process, .cta, .service-video, .service-description, .service-project, .service-areas, .related-list, .area-map) + :is(.why-choose, .card-grid-section--dark, .home-project, .home-areas, .service-includes, .service-financing, .process, .cta, .service-video, .service-description, .service-project, .service-areas, .related-list, .area-map) {
	--grandir-color-focus: #111;
	--grandir-band-btn-fill: var(--grandir-color-primary);
	--grandir-band-btn-on-fill: var(--grandir-color-on-primary);
	--grandir-band-btn-line: var(--grandir-color-link);
	--grandir-band-accent: var(--grandir-color-accent-on-shade);
	--grandir-band-dot: var(--grandir-color-text-muted);
	background: var(--grandir-color-primary-shade);
	color: var(--grandir-color-text);
}

:is(.site-main--service, .site-main--area) > :is(.why-choose, .card-grid-section--dark, .home-project, .home-areas, .service-includes, .service-financing, .process, .cta, .service-video, .service-description, .service-project, .service-areas, .related-list, .area-map) + :is(.why-choose, .card-grid-section--dark, .home-project, .home-areas, .service-includes, .service-financing, .process, .cta, .service-video, .service-description, .service-project, .service-areas, .related-list, .area-map) + :is(.why-choose, .card-grid-section--dark, .home-project, .home-areas, .service-includes, .service-financing, .process, .cta, .service-video, .service-description, .service-project, .service-areas, .related-list, .area-map) + :is(.why-choose, .card-grid-section--dark, .home-project, .home-areas, .service-includes, .service-financing, .process, .cta, .service-video, .service-description, .service-project, .service-areas, .related-list, .area-map) + :is(.why-choose, .card-grid-section--dark, .home-project, .home-areas, .service-includes, .service-financing, .process, .cta, .service-video, .service-description, .service-project, .service-areas, .related-list, .area-map) {
	--grandir-color-focus: #fff;
	--grandir-band-btn-fill: initial;
	--grandir-band-btn-on-fill: initial;
	--grandir-band-btn-line: initial;
	--grandir-band-accent: initial;
	--grandir-band-dot: initial;
	background: var(--grandir-color-primary-deep);
	color: #fff;
}

:is(.site-main--service, .site-main--area) > :is(.why-choose, .card-grid-section--dark, .home-project, .home-areas, .service-includes, .service-financing, .process, .cta, .service-video, .service-description, .service-project, .service-areas, .related-list, .area-map) + :is(.why-choose, .card-grid-section--dark, .home-project, .home-areas, .service-includes, .service-financing, .process, .cta, .service-video, .service-description, .service-project, .service-areas, .related-list, .area-map) + :is(.why-choose, .card-grid-section--dark, .home-project, .home-areas, .service-includes, .service-financing, .process, .cta, .service-video, .service-description, .service-project, .service-areas, .related-list, .area-map) + :is(.why-choose, .card-grid-section--dark, .home-project, .home-areas, .service-includes, .service-financing, .process, .cta, .service-video, .service-description, .service-project, .service-areas, .related-list, .area-map) + :is(.why-choose, .card-grid-section--dark, .home-project, .home-areas, .service-includes, .service-financing, .process, .cta, .service-video, .service-description, .service-project, .service-areas, .related-list, .area-map) + :is(.why-choose, .card-grid-section--dark, .home-project, .home-areas, .service-includes, .service-financing, .process, .cta, .service-video, .service-description, .service-project, .service-areas, .related-list, .area-map) {
	--grandir-color-focus: #111;
	--grandir-band-btn-fill: var(--grandir-color-primary);
	--grandir-band-btn-on-fill: var(--grandir-color-on-primary);
	--grandir-band-btn-line: var(--grandir-color-link);
	--grandir-band-accent: var(--grandir-color-accent-on-shade);
	--grandir-band-dot: var(--grandir-color-text-muted);
	background: var(--grandir-color-primary-shade);
	color: var(--grandir-color-text);
}

/* Project pages: the details band is deep, like Why Choose; its cards stay white. */
.project-details {
	--grandir-color-focus: #fff;
	background: var(--grandir-color-primary-deep);
	color: #fff;
}

.project-details__item {
	--grandir-color-focus: #111;
	color: var(--grandir-color-text);
}

/* Solid brand band: a plain hero (no photo). */
.hero:not(.hero--image) {
	--grandir-color-focus: currentColor;
	background: var(--grandir-color-primary);
	color: var(--grandir-color-on-primary);
}

/* The quote form band: a dark band with white text (its color alternates, below). */
.cta {
	--grandir-color-focus: #fff;
	background: var(--grandir-color-primary-deep);
	color: #fff;
}

/*
 * Dark brand bands, like the header and footer: Why Choose and Home's
 * services. White text on them; Why Choose's boxes stay white with the
 * normal dark text.
 */
.why-choose,
.card-grid-section--dark {
	--grandir-color-focus: #fff;
	background: var(--grandir-color-primary-deep);
	color: #fff;
}

.why-choose__box {
	--grandir-color-focus: #111;
	color: var(--grandir-color-text);
}

/* Buttons on a primary background: the same pair, inverted. */
.hero:not(.hero--image) .button {
	--grandir-btn-fill: var(--grandir-color-on-primary);
	--grandir-btn-on-fill: var(--grandir-color-primary);
	--grandir-btn-line: var(--grandir-color-on-primary);
}

/* The quote form band's buttons: inverted on deep, the brand pair on light. */
.cta__actions .button {
	--grandir-btn-fill: var(--grandir-band-btn-fill, var(--grandir-color-on-primary));
	--grandir-btn-on-fill: var(--grandir-band-btn-on-fill, var(--grandir-color-primary));
	--grandir-btn-line: var(--grandir-band-btn-line, var(--grandir-color-on-primary));
}

/* Form card on any band, and on the Contact page. */
.cta__form,
.contact__form {
	--grandir-color-focus: #111;
	background: var(--grandir-color-bg);
	border-block-start: 4px solid var(--grandir-color-primary);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	color: var(--grandir-color-text);
	padding: 1.5rem;
	text-align: start;
}

/*
 * WPForms lead form (the CTA band and Contact). Brand colors go in
 * through WPForms' own variables, which it defines on :root. Field borders
 * keep WPForms' darker default, because --grandir-color-border is too faint
 * to mark an input.
 */
.lead-form {
	--wpforms-button-background-color: var(--grandir-color-primary);
	--wpforms-button-border-color: var(--grandir-color-primary);
	--wpforms-button-text-color: var(--grandir-color-on-primary);
	--wpforms-button-border-radius: var(--grandir-button-radius);
	--wpforms-field-border-radius: 0;
	--wpforms-container-border-radius: 0;
	--wpforms-field-text-color: var(--grandir-color-text);
	--wpforms-label-color: var(--grandir-color-text);
	--wpforms-label-sublabel-color: var(--grandir-color-text-muted);
}

/* The card already spaces the form. */
.lead-form div.wpforms-container-full:not(:empty) {
	margin: 0;
}

/* Every field spans the card, not WPForms' 60% "medium" size. */
.lead-form div.wpforms-container .wpforms-form .wpforms-field .wpforms-field-medium {
	max-width: 100%;
}

.lead-form div.wpforms-container-full .wpforms-form button[type="submit"] {
	border: 2px solid;
	font-weight: 700;
}

/* WPForms sets outline: none on focus. Bring back the theme's one ring. */
.lead-form div.wpforms-container-full .wpforms-form :is(input, select, textarea, button):focus-visible {
	box-shadow: 0 0 0 2px var(--grandir-color-bg);
	outline: 3px solid var(--grandir-color-focus);
	outline-offset: 2px;
}

/*
 * Floating labels: the label rests inside its field like a placeholder, and
 * moves up onto the top border when the field is focused or filled. "Filled"
 * is :not(:placeholder-shown), so inc/lead-form.php gives each field a blank
 * placeholder. Leave the builder's placeholders empty. Browsers without
 * :has() keep the label above the field.
 */
@supports selector(:has(*)) {

	.lead-form div.wpforms-container-full .wpforms-field .wpforms-field-label {
		background: var(--grandir-color-bg);
		color: var(--grandir-color-text-muted);
		font-weight: 400;
		left: calc(var(--wpforms-field-size-padding-h) - 3px);
		margin: 0;
		max-width: calc(100% - 2 * var(--wpforms-field-size-padding-h));
		overflow: hidden;
		padding-inline: 4px;
		pointer-events: none;
		position: absolute;
		text-overflow: ellipsis;
		top: calc(15px + (var(--wpforms-field-size-input-height) - var(--wpforms-label-size-line-height)) / 2);
		transform-origin: left center;
		white-space: nowrap;
		z-index: 1;
	}

	/* Focused, filled, or a dropdown (which always shows a choice). */
	.lead-form div.wpforms-container-full .wpforms-field:is(:has(:focus), :has(:is(input, textarea):not(:placeholder-shown)), :has(select)) .wpforms-field-label {
		color: var(--grandir-color-text);
		font-weight: 700;
		transform: translateY(calc(var(--wpforms-field-size-input-height) / -2)) scale(0.8);
	}

	.lead-form div.wpforms-container-full .wpforms-field:has(:focus) .wpforms-field-label {
		color: var(--grandir-color-link);
	}
}

@media (prefers-reduced-motion: no-preference) {

	.lead-form div.wpforms-container-full .wpforms-field .wpforms-field-label {
		transition: transform 150ms ease, color 150ms ease;
	}
}

/* Header call link: white on the dark header (link colors are for light backgrounds). */
.site-header__call {
	color: inherit;
}

/* Process: filled accent numbers. */
.process__number {
	background: var(--grandir-color-accent);
	border-color: var(--grandir-color-accent);
	color: var(--grandir-color-on-accent);
}

/*
 * Carousels (js/carousel.js): process steps and What's Included on phones.
 * The list is a swipe carousel
 * of white cards, the next one peeking in, bleeding to the screen edges. The
 * script adds the controls and mouse drag. Without JS, mouse users get a thin
 * scrollbar instead, so it still moves; touch never shows it since swiping
 * works there.
 */
@media screen and (max-width: 47.9375em) {

	.process__steps,
	.service-includes__cards {
		gap: 1rem;
		grid-auto-columns: 85%;
		grid-auto-flow: column;
		grid-template-columns: none;
		margin-inline: -1rem;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		padding-block-end: 0.75rem;
		padding-inline: 1rem;
		scroll-padding-inline: 1rem;
		scroll-snap-type: x mandatory;
		scrollbar-color: var(--grandir-color-accent-ui) transparent;
		scrollbar-width: thin;
	}

	.process__step,
	.service-includes__cards > .card {
		scroll-snap-align: start;
	}

	/* What's Included's cards sit closer together than the steps. */
	.service-includes__cards {
		gap: 0.5rem;
	}
}

/* Touch swipes, so it never needs the scrollbar. */
@media (hover: none) {

	[data-carousel] {
		scrollbar-width: none;
	}

	.process__steps,
	.service-includes__cards {
		padding-block-end: 0;
	}

	[data-carousel]::-webkit-scrollbar {
		display: none;
	}
}

/* With the script running, the arrows and drag replace the scrollbar. */
[data-carousel].is-enhanced {
	padding-block-end: 0;
	scrollbar-width: none;
}

[data-carousel].is-enhanced::-webkit-scrollbar {
	display: none;
}

@media (prefers-reduced-motion: no-preference) {

	[data-carousel] {
		scroll-behavior: smooth;
	}
}

/* Mouse drag: snapping pauses while dragging and while settling on a card. */
[data-carousel].is-draggable {
	cursor: grab;
}

[data-carousel].is-dragging,
[data-carousel].is-settling {
	scroll-snap-type: none;
}

[data-carousel].is-dragging {
	cursor: grabbing;
	scroll-behavior: auto;
	user-select: none;
}

/* Controls: shown by the script only while the list scrolls sideways. */
.carousel__nav {
	align-items: center;
	display: flex;
	gap: 0.5rem;
	justify-content: center;
	margin-block-start: 1rem;
}

.carousel__nav[hidden] {
	display: none;
}

.carousel__dots {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

.carousel__dot,
.carousel__arrow {
	align-items: center;
	background: none;
	border: 0;
	display: inline-flex;
	justify-content: center;
	padding: 0;
}

.carousel__dot {
	height: 2rem;
	width: 2rem;
}

/* Hollow dots, the current one filled: shape and color both mark it. */
.carousel__dot::before {
	border: 2px solid var(--grandir-color-text-muted);
	border-radius: 50%;
	box-sizing: border-box;
	content: "";
	height: 0.875rem;
	width: 0.875rem;
}

.carousel__dot[aria-current]::before {
	background: var(--grandir-color-accent-ui);
	border-color: var(--grandir-color-accent-ui);
}

/* Prev/next arrows: mouse and trackpad only; touch swipes. */
.carousel__arrow {
	background: var(--grandir-color-bg);
	border: 1px solid var(--grandir-color-border);
	border-radius: 50%;
	color: var(--grandir-color-accent-ui);
	display: none;
	flex-shrink: 0;
	height: 2.5rem;
	width: 2.5rem;
}

.carousel__arrow svg {
	height: 1.25rem;
	width: 1.25rem;
}

.carousel__arrow--next svg,
[dir="rtl"] .carousel__arrow--prev svg {
	transform: scaleX(-1);
}

[dir="rtl"] .carousel__arrow--next svg {
	transform: none;
}

.carousel__arrow:hover,
.carousel__arrow:focus {
	border-color: var(--grandir-color-border);
}

.carousel__arrow:not([aria-disabled="true"]):hover {
	border-color: var(--grandir-color-accent-ui);
}

.carousel__arrow[aria-disabled="true"] {
	cursor: default;
	opacity: 0.4;
}

@media (hover: hover) and (pointer: fine) {

	.carousel__arrow {
		display: inline-flex;
	}
}

/* Pause/Play (autoplaying carousels): shaped like the arrows, on every device. */
.carousel__pause {
	align-items: center;
	background: var(--grandir-color-bg);
	border: 1px solid var(--grandir-color-border);
	border-radius: 50%;
	color: var(--grandir-color-accent-ui);
	display: inline-flex;
	flex-shrink: 0;
	height: 2.5rem;
	justify-content: center;
	margin-inline-end: 0.5rem;
	padding: 0;
	width: 2.5rem;
}

.carousel__pause svg {
	height: 1.125rem;
	width: 1.125rem;
}

.carousel__pause .carousel__icon-play,
.carousel__pause.is-paused .carousel__icon-pause {
	display: none;
}

.carousel__pause.is-paused .carousel__icon-play {
	display: block;
}

.carousel__pause:hover {
	border-color: var(--grandir-color-accent-ui);
}

/*
 * Home's services carousel: one card centered, the rest to either side, each
 * smaller and dimmer the further it is from the middle. The row runs to the
 * screen edges; its side padding lets the first and last cards center. The
 * scaling follows each card's own position in the row (a scroll-driven
 * animation, no script), and so does the stacking: the cards overlap a
 * little, each one tucked behind its neighbor nearer the middle. Browsers
 * without it show the cards at one size, side by side.
 * Its vertical padding keeps the cards' shadow and accent edge in view.
 */
.card-grid.card-grid--carousel {
	--carousel-card: min(78vw, 32rem);
	display: flex;
	flex-wrap: nowrap;
	gap: 1.5rem;
	justify-content: flex-start;
	margin-inline: calc(50% - 50vw);
	overflow-x: auto;
	overscroll-behavior-x: contain;

	/* Extra room below for the centered card's shadow (the row clips vertically). */
	padding: 1rem calc(50vw - var(--carousel-card) / 2) 3.5rem;
	scroll-snap-type: x mandatory;
}

.card-grid.card-grid--carousel > * {
	flex: 0 0 var(--carousel-card);
	max-width: none;
	scroll-snap-align: center;
}

@keyframes grandir-carousel-depth {

	0%,
	100% {
		filter: grayscale(1) drop-shadow(0 0 0 rgba(0, 0, 0, 0));
		opacity: 0.6;
		scale: 0.7;
		z-index: 1;
	}

	/*
	 * The centered card is in full color with a deep shadow; the others turn
	 * gray as they move away (filters, so the hover ring's box-shadow still applies).
	 */
	50% {
		filter: grayscale(0) drop-shadow(0 1.5rem 1.5rem rgba(0, 0, 0, 0.9));
		opacity: 1;
		scale: 1;
		z-index: 10;
	}
}

@supports (animation-timeline: view()) {

	.card-grid.card-grid--carousel {
		gap: 0;
	}

	.card-grid--carousel > .card {
		animation: grandir-carousel-depth linear both;
		animation-timeline: view(inline);
		margin-inline: calc(var(--carousel-card) * -0.08);
	}

	/* The row's ends still let the first and last cards center. */
	.card-grid--carousel > .card:first-child {
		margin-inline-start: 0;
	}

	.card-grid--carousel > .card:last-child {
		margin-inline-end: 0;
	}
}

/* Controls on the bands: light dots on deep, the normal ones on light. */
:is(.card-grid-section--dark, .process, .service-includes) .carousel__dot::before {
	border-color: var(--grandir-band-dot, rgba(255, 255, 255, 0.75));
}

:is(.card-grid-section--dark, .process, .service-includes) .carousel__dot[aria-current]::before {
	background: var(--grandir-band-accent, var(--grandir-color-accent-on-deep));
	border-color: var(--grandir-band-accent, var(--grandir-color-accent-on-deep));
}

/* Cards: white panels, also readable on tinted bands. */
.card {
	background: var(--grandir-color-bg);
	border: 1px solid var(--grandir-color-border);
	overflow: hidden;
	padding-block-end: 1rem;
}

.card > :not(.card__image) {
	padding-inline: 1rem;
}

.card__title a {
	color: var(--grandir-color-link);
}

/*
 * Service cards (Home and Services page): the service's hero photo as a band
 * at the top with the white title over its bottom edge, then the excerpt and
 * the quote button on the white card. On desktop with a mouse the excerpt
 * moves onto the photo, above the title, and shows on hover or keyboard focus
 * (below). The title and excerpt share .card__overlay, which is
 * display: contents everywhere else, so they lay out as before. The whole
 * card is the link: the title link's ::after covers the card (its only
 * positioned box), so there's still one link, named by the title.
 */
.card__overlay {
	display: contents;
}

/* Black cards with white text, so the excerpt below the photo (touch screens) reads on any band. */
.card--bg {
	--grandir-color-focus: #fff;
	background: #000;
	border-color: #333;
	color: #fff;
	display: grid;
	grid-template-rows: auto 1fr;
	padding-block: 0;
	position: relative;
}

.card--bg .card__title a::after {
	content: "";
	inset: 0;
	position: absolute;
	z-index: 1;
}

/* Grows with a title taller than the band; cropped from the center. */
.card > .card__bg {
	align-self: stretch;
	aspect-ratio: 16 / 10;
	display: block;
	grid-area: 1 / 1;
	height: auto;
	object-fit: cover;
	padding: 0;
	width: 100%;
}

/*
 * The title sits on its own dark fade over the photo: the text always has at
 * least 60% black behind it, about 5.7:1 for white text even over pure white.
 */
.card--bg .card__title {
	--grandir-color-focus: #fff;
	align-self: end;
	background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.6) 3rem);
	font-size: 2em;
	grid-area: 1 / 1;
	line-height: 1.15em;
	margin: 0;
	padding: 3rem 1rem 0.75rem;
}

.card--bg .card__title a {
	color: #fff;
	text-decoration: none;
}

/* Without a photo the title sits on the black card, still white. */
.card--bg:not(:has(> .card__bg)) .card__title {
	background: none;
	padding-block-start: 1.25rem;
}

.card--bg .card__excerpt {
	margin-block: 1rem;

	/* Inside .card__overlay it isn't a direct child of the card, so it brings its own side padding. */
	padding-inline: 1rem;
}

/*
 * Desktop with a mouse: the excerpt waits, transparent, at the top of the
 * card on a 75% black panel, and fades in on hover or keyboard focus while
 * the photo dims (a filter on the photo, so nothing else needs
 * positioning). It's
 * only transparent, never removed or clipped: it keeps its space (revealing
 * it moves nothing; a long one makes the band taller), screen readers read
 * it, and search engines index it. Touch screens keep it below the photo.
 */
@media (hover: hover) and (pointer: fine) {

	/* The card is just the photo band here, filling the card's height in a row of taller cards. */
	.card--bg:has(> .card__bg) {
		grid-template-rows: 1fr;
	}

	/*
	 * Above the photo, which the hover filter puts in its own layer. A grid
	 * item takes z-index without being positioned, so the card stays the
	 * title link's containing block.
	 */
	/* Title at the bottom, excerpt pinned to the top. */
	.card--bg:has(> .card__bg) .card__overlay {
		align-self: stretch;
		display: flex;
		flex-direction: column-reverse;
		grid-area: 1 / 1;
		justify-content: space-between;
		padding-inline: 0;
		z-index: 1;
	}

	/* Full width: in this column align-self is horizontal, and the grid's "end" would shrink it. */
	.card--bg:has(> .card__bg) .card__title {
		align-self: stretch;
	}

	.card--bg:has(> .card__bg) .card__excerpt {
		background: rgba(0, 0, 0, 0.75);
		color: #fff;
		margin: 0;
		opacity: 0;
		padding: 1rem;
	}

	.card--bg:has(> .card__bg):is(:hover, :focus-within) .card__excerpt {
		opacity: 1;
	}

	/* The photo dims to 40% brightness: white text over it stays readable (about 5.9:1 even over white). */
	.card--bg:has(> .card__bg):is(:hover, :focus-within) > .card__bg {
		filter: brightness(0.4);
	}
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {

	.card--bg:has(> .card__bg) .card__excerpt {
		transition: opacity 250ms var(--grandir-ease);
	}

	.card--bg:has(> .card__bg) > .card__bg {
		transition: filter 250ms var(--grandir-ease);
	}
}

/* Dark brand footer. */
.site-footer {
	--grandir-color-focus: #fff;
}

.site-footer a,
.site-footer a:visited {
	color: inherit;
}

/* Regular (dark) logo on a white panel, when no dark-background logo is set. */
.site-footer__logo--backed {
	background: #fff;
	display: inline-block;
	padding: 0.75rem 1rem;
}

/*--------------------------------------------------------------
# Hover polish
Small, brand-colored feedback on things people can click. Hover styles
only apply on devices that can hover, so a tap never leaves a card
lifted. Keyboard focus gets the same effect. Movement stays at 1–2px
and only runs without prefers-reduced-motion. Colors still change there.
--------------------------------------------------------------*/

/* The card photos zoom inside their own frame. */
.card__image {
	display: block;
	overflow: hidden;
}

/* "View all": an arrow that nudges on hover. */
.card-grid-section__more a::after {
	content: "\2192";
	content: "\2192" / "";
	display: inline-block;
	margin-inline-start: 0.35em;
}

/* Header phone icon: a short ring on hover. */
@keyframes grandir-ring {

	0%,
	100% {
		transform: rotate(0);
	}

	20% {
		transform: rotate(-14deg);
	}

	40% {
		transform: rotate(12deg);
	}

	60% {
		transform: rotate(-8deg);
	}

	80% {
		transform: rotate(4deg);
	}
}

/* Desktop nav: a brand bar under the link, always shown on the current page. */
@media screen and (min-width: 85em) {

	.main-navigation .menu > .menu-item > a {
		position: relative;
	}

	.main-navigation .menu > .menu-item > a::after {
		background: var(--grandir-color-accent-on-deep);
		content: "";
		height: 2px;
		inset-block-end: 0.35rem;
		inset-inline: 0.5rem;
		position: absolute;
		transform: scaleX(0);
	}

	.main-navigation .menu-item-has-children > a::after {
		inset-inline-end: 0;
	}

	.main-navigation .menu > .menu-item > a:focus-visible::after,
	.main-navigation .menu > .current-menu-item > a::after,
	.main-navigation .menu > .current-menu-ancestor > a::after {
		transform: scaleX(1);
	}
}

/* Keyboard focus: the same effects as hover (buttons: see "Buttons"). */
.card-grid-section__more a:focus-visible::after {
	transform: translateX(3px);
}

.faq__question:focus-visible .faq__question-text {
	translate: 4px 0 /*rtl:-4px 0*/;
}

.site-footer__social a:focus-visible {
	color: var(--grandir-color-accent-on-deep);
	transform: translateY(-2px);
}

.card:focus-within {
	border-color: var(--grandir-color-accent-ui);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);

	/*
	 * A 1px accent outline just inside the 1px border: a 2px accent edge, with
	 * no change in size. Inside, so a carousel's scroll box can't clip it, and
	 * an outline paints over the card's photo.
	 */
	outline: 1px solid var(--grandir-color-accent-ui);
	outline-offset: -2px;
}

@media (hover: hover) {

	/* Cards: a 2px accent edge (border plus a 1px inner outline) and a soft shadow; the photo zooms. */
	.card:hover {
		border-color: var(--grandir-color-accent-ui);
		box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
		outline: 1px solid var(--grandir-color-accent-ui);
		outline-offset: -2px;
	}

	.card:hover .card__image img {
		transform: scale(1.04);
	}

	/* Text links turn the accent color. The nav has its own bar instead. */
	a:hover {
		color: var(--grandir-color-accent-text);
	}

	/* The dark header: the nav has its own bar, the call link its ring animation. */
	.site-header a:hover {
		color: inherit;
	}

	/* accent-text is only checked on light backgrounds. */
	.hero a:not(.button):hover,
	.cta a:not(.button):hover {
		color: inherit;
	}

	.site-footer a:hover {
		color: var(--grandir-color-accent-on-deep);
	}

	.card-grid-section--dark .card-grid-section__more a:hover {
		color: var(--grandir-band-accent, var(--grandir-color-accent-on-deep));
	}

	/* Footer social icons lift and turn the accent color. */
	.site-footer__social a:hover {
		color: var(--grandir-color-accent-on-deep);
		transform: translateY(-2px);
	}

	/* Arrow links nudge forward. */
	.card-grid-section__more a:hover::after {
		transform: translateX(3px);
	}

	/* Form fields: the border darkens a little before focus takes over. */
	.lead-form div.wpforms-container-full .wpforms-form :is(input, select, textarea):hover:not(:focus) {
		border-color: var(--grandir-color-text-muted);
	}

	.faq__question:hover {
		color: var(--grandir-color-link);
	}

	/* The question slides right a little; the chevron stays put. */
	.faq__question:hover .faq__question-text {
		translate: 4px 0 /*rtl:-4px 0*/;
	}
}

@media screen and (min-width: 85em) and (hover: hover) {

	.main-navigation .menu > .menu-item > a:hover::after {
		transform: scaleX(1);
	}

	/* Dropdown items: a brand tint, and the text slides in slightly. */
	.main-navigation .sub-menu a:hover {
		padding-inline-start: calc(1rem + 3px);
	}
}

@media (prefers-reduced-motion: no-preference) {

	.card {
		transition:
			border-color var(--grandir-motion) var(--grandir-ease),
			box-shadow var(--grandir-motion) var(--grandir-ease);
	}

	.card__image img {
		transition: transform 400ms var(--grandir-ease);
	}

	a {
		transition: color var(--grandir-motion-fast) var(--grandir-ease);
	}

	.main-navigation .menu > .menu-item > a::after {
		transition: transform var(--grandir-motion) var(--grandir-ease);
	}

	.main-navigation .sub-menu a {
		transition:
			background-color var(--grandir-motion-fast) var(--grandir-ease),
			padding var(--grandir-motion-fast) var(--grandir-ease);
	}

	.faq__question {
		transition: color var(--grandir-motion-fast) var(--grandir-ease);
	}

	.faq__question-text {
		transition: translate var(--grandir-motion-fast) var(--grandir-ease);
	}

	/* Turns in step with the answer's 300ms slide (js/faqs.js). */
	.faq__question::after {
		transition: transform 300ms var(--grandir-ease);
	}

	.card-grid-section__more a::after {
		transition: transform var(--grandir-motion-fast) var(--grandir-ease);
	}

	.site-footer__social a {
		transition:
			color var(--grandir-motion-fast) var(--grandir-ease),
			transform var(--grandir-motion-fast) var(--grandir-ease);
	}

	.lead-form div.wpforms-container-full .wpforms-form :is(input, select, textarea) {
		transition:
			border-color var(--grandir-motion-fast) var(--grandir-ease),
			box-shadow var(--grandir-motion-fast) var(--grandir-ease);
	}
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {

	.site-header__call:hover .icon-phone {
		animation: grandir-ring 500ms var(--grandir-ease);
	}
}
