/* Reusable components. See doc 06. */

/* Icon */
.ads-icon {
	width: 1.5em;
	height: 1.5em;
	flex-shrink: 0;
}

/* Button */
.ads-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--ads-space-2);
	min-height: 3rem;
	padding: var(--ads-space-3) var(--ads-space-5);
	font-family: var(--ads-font-body);
	font-size: .9375rem;
	font-weight: 600;
	line-height: var(--ads-lh-tight);
	text-align: center;
	text-decoration: none;
	background: transparent;
	border: 2px solid transparent;
	border-radius: var(--ads-radius);
	transition: background-color var(--ads-transition), border-color var(--ads-transition), color var(--ads-transition), transform var(--ads-transition);
}

.ads-btn .ads-icon {
	width: 1.25em;
	height: 1.25em;
}

.ads-btn--primary {
	color: var(--ads-color-navy);
	background: var(--ads-color-gold);
	border-color: var(--ads-color-gold);
}

.ads-btn--primary:hover {
	background: var(--ads-color-gold-light);
	border-color: var(--ads-color-gold-light);
	transform: translateY(-2px);
}

.ads-btn--outline {
	color: var(--ads-ctx-outline);
	border-color: var(--ads-ctx-outline);
}

.ads-btn--outline:hover {
	color: var(--ads-color-navy);
	background: var(--ads-color-navy-soft);
}

.ads-btn--link {
	min-height: 2.75rem;
	padding: 0;
	color: var(--ads-ctx-link);
	border-width: 0 0 2px;
	border-radius: 0;
}

.ads-btn--link:hover {
	border-bottom-color: var(--ads-color-gold);
}

.ads-btn:disabled {
	color: var(--ads-color-text-muted);
	background: var(--ads-color-border);
	border-color: var(--ads-color-border);
	cursor: not-allowed;
	transform: none;
}

/* Section heading */
.ads-heading {
	margin-bottom: var(--ads-space-7);
}

.ads-heading__title::after {
	content: "";
	display: block;
	width: 60px;
	height: 3px;
	margin-top: var(--ads-space-4);
	background: var(--ads-color-gold);
}

.ads-heading--center {
	text-align: center;
}

.ads-heading--center .ads-heading__title::after {
	margin-inline: auto;
}

.ads-heading--center p {
	margin-inline: auto;
}

.ads-heading--light {
	--ads-ctx-heading: var(--ads-color-bg);
	--ads-ctx-muted: var(--ads-color-bg);
	--ads-ctx-eyebrow: var(--ads-color-gold);
}

/* Card base: white surface that stays readable on any section */
.ads-card {
	padding: var(--ads-space-5);
	color: var(--ads-color-text);
	background: var(--ads-color-bg);
	border: 1px solid var(--ads-color-border);
	border-radius: var(--ads-radius);
	box-shadow: var(--ads-shadow-sm);
}

/* Trade card */
.ads-trade-card,
.ads-team-card {
	transition: box-shadow var(--ads-transition), transform var(--ads-transition);
}

.ads-trade-card:hover,
.ads-team-card:hover {
	box-shadow: var(--ads-shadow);
	transform: translateY(-4px);
}

/* The navy fill rises from the bottom on hover, and the link covers the whole card. */
.ads-trade-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: var(--ads-space-6);
	overflow: hidden;
	isolation: isolate;
	background-image: linear-gradient(var(--ads-color-navy), var(--ads-color-navy));
	background-repeat: no-repeat;
	background-position: bottom;
	background-size: 100% 0;
	transition: background-size var(--ads-transition), border-color var(--ads-transition), box-shadow var(--ads-transition), transform var(--ads-transition);
}

.ads-trade-card:hover,
.ads-trade-card:focus-within {
	--ads-ctx-heading: var(--ads-color-bg);
	--ads-ctx-link: var(--ads-color-bg);
	--ads-ctx-focus: var(--ads-color-gold);
	background-size: 100% 100%;
	border-color: var(--ads-color-navy);
}

.ads-trade-card__mark {
	position: absolute;
	top: -2.5rem;
	right: -2.5rem;
	z-index: -1;
	width: 11rem;
	height: 11rem;
	color: var(--ads-color-navy);
	stroke-width: 1;
	opacity: .06;
	transition: color var(--ads-transition), opacity var(--ads-transition), transform var(--ads-transition);
}

.ads-trade-card:hover .ads-trade-card__mark,
.ads-trade-card:focus-within .ads-trade-card__mark {
	color: var(--ads-color-gold);
	opacity: .3;
	transform: rotate(-8deg) scale(1.08);
}

.ads-trade-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 4.5rem;
	height: 4.5rem;
	color: var(--ads-color-gold);
	background: var(--ads-color-navy);
	border-radius: var(--ads-radius-lg) 0;
	transition: background-color var(--ads-transition), color var(--ads-transition);
}

.ads-trade-card__icon .ads-icon {
	width: 2.25rem;
	height: 2.25rem;
	stroke-width: 1.75;
}

.ads-trade-card:hover .ads-trade-card__icon,
.ads-trade-card:focus-within .ads-trade-card__icon {
	color: var(--ads-color-navy);
	background: var(--ads-color-gold);
}

.ads-trade-card__title {
	margin-top: var(--ads-space-5);
	font-family: var(--ads-font-heading);
	font-weight: 700;
	transition: color var(--ads-transition);
}

.ads-trade-card__text {
	flex-grow: 1;
	margin-top: var(--ads-space-3);
	transition: color var(--ads-transition);
}

.ads-trade-card:hover .ads-trade-card__text,
.ads-trade-card:focus-within .ads-trade-card__text {
	color: var(--ads-color-bg);
}

.ads-trade-card .ads-btn--link {
	align-self: stretch;
	justify-content: space-between;
	margin-top: var(--ads-space-5);
	padding-top: var(--ads-space-3);
	border-width: 1px 0 0;
	border-top-color: var(--ads-color-border);
}

.ads-trade-card:hover .ads-btn--link,
.ads-trade-card:focus-within .ads-btn--link {
	border-top-color: color-mix(in srgb, var(--ads-color-bg) 25%, transparent);
}

.ads-trade-card .ads-btn--link::after {
	position: absolute;
	inset: 0;
	content: "";
}

.ads-trade-card .ads-btn--link .ads-icon {
	transition: color var(--ads-transition), transform var(--ads-transition);
}

.ads-trade-card:hover .ads-btn--link .ads-icon,
.ads-trade-card:focus-within .ads-btn--link .ads-icon {
	color: var(--ads-color-gold);
	transform: translateX(4px);
}

/* With a photo: a white panel overlaps the bottom of the picture, and the fill moves to the panel. */
.ads-trade-card__body {
	display: contents;
}

.ads-trade-card--photo {
	align-items: stretch;
	padding: 0;
	overflow: visible;
	background: none;
	border: 0;
	box-shadow: none;
}

.ads-trade-card--photo:hover {
	box-shadow: none;
}

.ads-trade-card__photo {
	position: relative;
	z-index: -1;
	/* Taller on phones, where the white panel covers more of a narrow picture. */
	height: clamp(16rem, 72vw, 20rem);
	overflow: hidden;
	background: var(--ads-color-navy);
	border-radius: var(--ads-radius-lg);
}

.ads-trade-card__photo::after {
	position: absolute;
	inset: 0;
	content: "";
	background: color-mix(in srgb, var(--ads-color-navy) 15%, transparent);
}

.ads-trade-card__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 30%;
	transition: transform var(--ads-transition);
}

.ads-trade-card:hover .ads-trade-card__photo img,
.ads-trade-card:focus-within .ads-trade-card__photo img {
	transform: scale(1.05);
}

.ads-trade-card--photo .ads-trade-card__body {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	align-items: flex-start;
	margin: calc(var(--ads-space-7) * -1) var(--ads-space-3) 0;
	padding: 0 var(--ads-space-5) var(--ads-space-4);
	background-color: var(--ads-color-bg);
	background-image: linear-gradient(var(--ads-color-navy), var(--ads-color-navy));
	background-repeat: no-repeat;
	background-position: bottom;
	background-size: 100% 0;
	border-radius: var(--ads-radius-lg);
	box-shadow: var(--ads-shadow);
	transition: background-size var(--ads-transition), box-shadow var(--ads-transition);
}

.ads-trade-card--photo:hover .ads-trade-card__body,
.ads-trade-card--photo:focus-within .ads-trade-card__body {
	background-size: 100% 100%;
	box-shadow: var(--ads-shadow-lg);
}

/* The icon tile sits across the top edge of the panel. */
.ads-trade-card--photo .ads-trade-card__icon {
	width: 3.5rem;
	height: 3.5rem;
	margin-top: -1.75rem;
}

.ads-trade-card--photo .ads-trade-card__icon .ads-icon {
	width: 1.75rem;
	height: 1.75rem;
}

.ads-trade-card--photo .ads-trade-card__title {
	margin-top: var(--ads-space-4);
}

/* About visual: a photo or a drawing of a home, with the experience badge. Used on Home and About. */
.ads-about-visual {
	position: relative;
}

/* A blueprint: faint grid lines behind the drawing of the home. */
.ads-about-visual__panel {
	display: flex;
	flex-direction: column;
	gap: var(--ads-space-5);
	height: 100%;
	padding: var(--ads-space-6) var(--ads-space-5) var(--ads-space-8);
	overflow: hidden;
	background-color: var(--ads-color-navy);
	background-image:
		linear-gradient(color-mix(in srgb, var(--ads-color-bg) 5%, transparent) 1px, transparent 1px),
		linear-gradient(90deg, color-mix(in srgb, var(--ads-color-bg) 5%, transparent) 1px, transparent 1px);
	background-size: 2rem 2rem;
	border-radius: var(--ads-radius-lg);
	box-shadow: var(--ads-shadow-lg);
}

.ads-about-visual__panel--photo {
	padding: 0;
}

.ads-about-visual__image {
	display: block;
	width: 100%;
	height: 100%;
	min-height: clamp(20rem, 90vw, 24rem);
	object-fit: cover;
}

.ads-about-visual__tagline {
	max-width: none;
	font-family: var(--ads-font-heading);
	font-size: var(--ads-fs-h3);
	font-weight: 600;
	line-height: var(--ads-lh-tight);
	color: var(--ads-color-gold);
	text-align: center;
}

.ads-about-visual__drawing {
	position: relative;
	width: 100%;
	max-width: 52rem;
	margin: auto;
	aspect-ratio: 640 / 400;
}

.ads-about-visual__house {
	display: block;
	width: 100%;
	height: 100%;
	color: var(--ads-color-bg);
	fill: none;
	stroke: color-mix(in srgb, currentColor 55%, transparent);
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ads-about-visual__wire {
	stroke: var(--ads-color-gold);
	stroke-dasharray: 6 6;
}

.ads-about-visual__fixture {
	stroke: var(--ads-color-gold);
}

.ads-about-visual__trades {
	padding: 0;
	list-style: none;
}

.ads-about-visual__trade {
	position: absolute;
	display: flex;
	align-items: center;
	gap: var(--ads-space-1);
	padding: var(--ads-space-1) var(--ads-space-3) var(--ads-space-1) var(--ads-space-2);
	font-size: var(--ads-fs-small);
	font-weight: 600;
	line-height: var(--ads-lh-tight);
	color: var(--ads-color-bg);
	white-space: nowrap;
	background: var(--ads-color-navy-dark);
	border: 1px solid var(--ads-color-gold);
	border-radius: var(--ads-radius-lg);
	transform: translate(-50%, -50%);
}

.ads-about-visual__trade .ads-icon {
	width: 1.125rem;
	height: 1.125rem;
	color: var(--ads-color-gold);
}

.ads-about-visual__trade--electrical {
	top: 78%;
	left: 24%;
}

.ads-about-visual__trade--plumbing {
	top: 66%;
	left: 71%;
}

.ads-about-visual__trade--hvac {
	top: 35%;
	left: 50%;
}

.ads-about-visual__badge {
	position: absolute;
	bottom: calc(var(--ads-space-5) * -1);
	left: calc(var(--ads-space-3) * -1);
	display: grid;
	gap: var(--ads-space-1);
	width: 10.5rem;
	max-width: none;
	padding: var(--ads-space-4) var(--ads-space-5);
	font-size: var(--ads-fs-small);
	line-height: var(--ads-lh-tight);
	color: var(--ads-color-text-muted);
	background: var(--ads-color-bg);
	border-radius: var(--ads-radius-lg);
	box-shadow: var(--ads-shadow-lg);
}

.ads-about-visual__number {
	font-family: var(--ads-font-heading);
	font-size: var(--ads-fs-h2);
	font-weight: 700;
	font-variant-numeric: lining-nums;
	line-height: 1;
	color: var(--ads-color-navy);
}

@media (min-width: 1920px) {
	.ads-about-visual__tagline {
		font-size: var(--ads-fs-h2);
	}
}

/* The labels stay apart on the narrowest phones. */
@media (max-width: 359px) {
	.ads-about-visual__trade {
		padding: 2px var(--ads-space-2) 2px var(--ads-space-1);
		font-size: .6875rem;
	}

	.ads-about-visual__trade .ads-icon {
		width: .875rem;
		height: .875rem;
	}
}

/* Three Trades */
.ads-trades__grid {
	display: grid;
	gap: var(--ads-space-5);
}

@media (min-width: 1024px) {
	.ads-trades__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Why Choose Us: edge to edge, with the text lined up to the page container. */
.ads-why {
	display: grid;
	padding-block: 0;
}

.ads-why__panel {
	position: relative;
	isolation: isolate;
	padding: var(--ads-section-py) var(--ads-gutter);
	overflow: hidden;
}

.ads-why__panel::after {
	position: absolute;
	inset: 0;
	z-index: -1;
	content: "";
	background: color-mix(in srgb, var(--ads-color-bg) 6%, transparent);
	mask: url("../images/trade-pattern.svg") 0 0 / 30rem 30rem;
}

.ads-why__panel > .ads-reveal {
	max-width: 46rem;
}

.ads-why .ads-heading {
	margin-bottom: var(--ads-space-5);
}

.ads-why .ads-heading__title {
	text-wrap: balance;
}

.ads-why .ads-btn {
	margin-top: var(--ads-space-6);
}

.ads-why__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
	gap: var(--ads-space-5) var(--ads-space-6);
	margin-top: var(--ads-space-6);
	padding: 0;
	list-style: none;
}

.ads-why__item {
	display: flex;
	gap: var(--ads-space-4);
}

.ads-why__item .ads-icon {
	width: 2.25rem;
	height: 2.25rem;
	color: var(--ads-color-gold);
	stroke-width: 1.5;
}

.ads-why__title {
	font-family: var(--ads-font-heading);
	font-size: var(--ads-fs-h4);
	font-weight: 700;
}

.ads-why__text {
	margin-top: var(--ads-space-1);
	font-size: var(--ads-fs-small);
}

/* On phones the callout sits just under the picture; from 1024px it floats over it. */
.ads-why__media {
	position: relative;
	padding-bottom: var(--ads-space-6);
	background: var(--ads-color-bg);
}

.ads-why__image,
.ads-why__trades {
	display: block;
	width: 100%;
	height: 18rem;
}

.ads-why__image {
	height: clamp(20rem, 85vw, 26rem);
	object-fit: cover;
	object-position: center 35%;
}

/* Until a photo is saved: the three trades as blocks of colour. */
.ads-why__trades {
	display: grid;
	grid-template-rows: repeat(2, minmax(0, 1fr));
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ads-why__tile {
	display: flex;
	flex-direction: column;
	gap: var(--ads-space-2);
	align-items: flex-start;
	padding: var(--ads-space-5);
	font-family: var(--ads-font-heading);
	font-size: var(--ads-fs-h3);
	font-weight: 700;
	line-height: var(--ads-lh-tight);
	color: var(--ads-color-navy);
	background: var(--ads-color-navy-soft);
}

.ads-why__tile:nth-child(2) {
	grid-row: span 2;
	color: var(--ads-color-gold);
	background: var(--ads-color-navy-dark);
}

.ads-why__tile:nth-child(3) {
	background: var(--ads-color-bg-alt);
}

.ads-why__tile .ads-icon {
	width: clamp(3.5rem, 8vw, 7rem);
	height: clamp(3.5rem, 8vw, 7rem);
	stroke-width: .75;
}

.ads-why__callout {
	position: relative;
	max-width: 30rem;
	margin: calc(var(--ads-space-6) * -1) var(--ads-gutter) 0;
	padding: var(--ads-space-5);
	font-family: var(--ads-font-heading);
	font-size: var(--ads-fs-h4);
	font-weight: 600;
	line-height: 1.4;
	color: var(--ads-color-navy);
	background: var(--ads-color-gold);
	border-radius: var(--ads-radius);
	box-shadow: var(--ads-shadow-lg);
}

.ads-why--compact .ads-why__media {
	padding-bottom: 0;
}

@media (min-width: 768px) {
	.ads-trade-card__photo {
		height: clamp(12rem, 20vw, 26rem);
	}
}

@media (min-width: 1024px) {
	.ads-why {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.ads-why__panel {
		padding-left: max(var(--ads-gutter), calc((100vw - var(--ads-container)) / 2 + var(--ads-gutter)));
	}

	.ads-why__media {
		padding-bottom: 0;
	}

	.ads-why__image,
	.ads-why__trades {
		position: absolute;
		inset: 0;
		height: 100%;
	}

	.ads-why__callout {
		position: absolute;
		bottom: var(--ads-space-6);
		left: var(--ads-space-6);
		width: calc(100% - var(--ads-space-6) * 2);
		margin: 0;
	}
}

/* Texas map: used on Home and Service Area. */
.ads-texas-map {
	position: relative;
	width: 100%;
	max-width: 44rem;
	margin-inline: auto;
	aspect-ratio: 564 / 532;
}

.ads-texas-map__svg {
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.ads-texas-map__state {
	fill: var(--ads-color-navy);
	stroke: var(--ads-color-navy);
	stroke-width: 6;
	stroke-linejoin: round;
}

.ads-texas-map__state-grid {
	stroke: none;
}

.ads-texas-map__svg pattern path {
	fill: none;
	stroke: color-mix(in srgb, var(--ads-color-bg) 7%, transparent);
	stroke-width: 1;
}

.ads-texas-map__route {
	stroke: var(--ads-color-gold);
	stroke-width: 1.5;
	stroke-dasharray: 5 6;
	stroke-linecap: round;
	transition: opacity var(--ads-transition), stroke-width var(--ads-transition);
}

.ads-texas-map__pin {
	position: absolute;
	width: .75rem;
	height: .75rem;
	background: var(--ads-color-gold);
	border: 2px solid var(--ads-color-bg);
	border-radius: 50%;
	transform: translate(-50%, -50%);
	transition: opacity var(--ads-transition), box-shadow var(--ads-transition), transform var(--ads-transition);
}

/* A larger, invisible area around each pin, so it is easy to point at or tap. */
.ads-texas-map__pin::before {
	position: absolute;
	inset: -0.875rem;
	content: "";
	border-radius: 50%;
}

.ads-texas-map__pin--hq {
	width: 1.125rem;
	height: 1.125rem;
}

/* A slow ring around the headquarters. */
.ads-texas-map__pin--hq::after {
	position: absolute;
	inset: -2px;
	content: "";
	border: 2px solid var(--ads-color-gold);
	border-radius: 50%;
	animation: ads-texas-map-ring 2.4s ease-out infinite;
}

@keyframes ads-texas-map-ring {
	to {
		opacity: 0;
		transform: scale(2.6);
	}
}

/* On phones the list beside the map names the cities. */
.ads-texas-map__label {
	position: absolute;
	display: none;
	padding: var(--ads-space-1) var(--ads-space-2);
	font-size: var(--ads-fs-small);
	font-weight: 600;
	line-height: var(--ads-lh-tight);
	color: var(--ads-color-bg);
	white-space: nowrap;
	background: var(--ads-color-navy-dark);
	border: 1px solid color-mix(in srgb, var(--ads-color-bg) 25%, transparent);
	border-radius: var(--ads-radius);
}

.ads-texas-map__pin--above .ads-texas-map__label {
	bottom: calc(100% + var(--ads-space-1));
	left: 50%;
	transform: translateX(-50%);
}

.ads-texas-map__pin--below .ads-texas-map__label {
	top: calc(100% + var(--ads-space-1));
	left: 50%;
	transform: translateX(-50%);
}

.ads-texas-map__pin--left .ads-texas-map__label {
	top: 50%;
	right: calc(100% + var(--ads-space-1));
	transform: translateY(-50%);
}

.ads-texas-map__pin--right .ads-texas-map__label {
	top: 50%;
	left: calc(100% + var(--ads-space-1));
	transform: translateY(-50%);
}

.ads-texas-map__pin--hq .ads-texas-map__label {
	color: var(--ads-color-navy);
	background: var(--ads-color-gold);
	border-color: var(--ads-color-gold);
}

@media (min-width: 480px) {
	.ads-texas-map__label {
		display: block;
	}
}

/* One city lit up from its card or pin (adsInitAreaMaps() in main.js); the others step back, except the headquarters, where every line starts. */
.ads-area--active .ads-texas-map__pin:not(.is-active, .ads-texas-map__pin--hq),
.ads-area--active .ads-texas-map__route:not(.is-active) {
	opacity: .35;
}

.ads-texas-map__pin.is-active {
	z-index: 2;
	box-shadow: 0 0 0 .375rem color-mix(in srgb, var(--ads-color-gold) 35%, transparent);
	transform: translate(-50%, -50%) scale(1.35);
}

.ads-texas-map__pin.is-active .ads-texas-map__label {
	display: block;
	color: var(--ads-color-navy);
	background: var(--ads-color-gold);
	border-color: var(--ads-color-gold);
}

.ads-texas-map__route.is-active {
	stroke-width: 3;
	stroke-dasharray: none;
}

.ads-city {
	transition: border-color var(--ads-transition), box-shadow var(--ads-transition), transform var(--ads-transition);
}

.ads-city.is-active {
	border-color: var(--ads-color-gold);
	box-shadow: var(--ads-shadow);
	transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
	.ads-texas-map__pin--hq::after {
		animation: none;
	}

	.ads-texas-map__pin,
	.ads-texas-map__route,
	.ads-city {
		transition: none;
	}

	.ads-city.is-active {
		transform: none;
	}
}

/* Commitment */
.ads-commitment {
	display: flex;
	gap: var(--ads-space-4);
}

.ads-commitment > .ads-icon {
	color: var(--ads-color-gold);
}

.ads-commitment__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3.25rem;
	height: 3.25rem;
	flex-shrink: 0;
	color: var(--ads-color-navy);
	background: var(--ads-color-gold);
	border-radius: var(--ads-radius-lg) 0;
	transition: background-color var(--ads-transition), color var(--ads-transition);
}

.ads-commitment__icon .ads-icon {
	width: 1.5rem;
	height: 1.5rem;
}

/* The section background: a glow behind the heading, a fading blueprint grid and a street of homes. */
.ads-commitments {
	position: relative;
	padding-bottom: calc(var(--ads-section-py) + var(--ads-space-9));
	overflow: hidden;
	isolation: isolate;
	background: radial-gradient(ellipse 70% 24rem at 50% 0, color-mix(in srgb, var(--ads-color-bg) 9%, transparent), transparent), var(--ads-color-navy-dark);
}

.ads-commitments::before {
	position: absolute;
	inset: 0;
	z-index: -1;
	content: "";
	background-image:
		linear-gradient(color-mix(in srgb, var(--ads-color-bg) 5%, transparent) 1px, transparent 1px),
		linear-gradient(90deg, color-mix(in srgb, var(--ads-color-bg) 5%, transparent) 1px, transparent 1px);
	background-size: 3rem 3rem;
	mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.ads-commitments::after {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: -1;
	height: 10rem;
	content: "";
	background: color-mix(in srgb, var(--ads-color-gold) 35%, transparent);
	mask: url("../images/street-of-homes.svg") left bottom / auto 100% repeat-x;
}

/* Commitments grid: leftover items center on the last row. */
.ads-commitments__grid {
	--ads-commitments-columns: 1;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--ads-space-4);
}

/* The gold fill rises from the bottom on hover, as on the trade cards. */
.ads-commitments__grid .ads-commitment {
	width: calc((100% - (var(--ads-commitments-columns) - 1) * var(--ads-space-4)) / var(--ads-commitments-columns));
	padding: var(--ads-space-5);
	background-color: var(--ads-color-navy);
	background-image: linear-gradient(var(--ads-color-gold), var(--ads-color-gold));
	background-repeat: no-repeat;
	background-position: bottom;
	background-size: 100% 0;
	border: 1px solid color-mix(in srgb, var(--ads-color-bg) 14%, transparent);
	border-radius: var(--ads-radius-lg);
	box-shadow: var(--ads-shadow);
	transition: background-size var(--ads-transition), border-color var(--ads-transition), color var(--ads-transition), transform var(--ads-transition);
}

.ads-commitments__grid .ads-commitment:hover {
	--ads-ctx-heading: var(--ads-color-navy);
	color: var(--ads-color-navy);
	background-size: 100% 100%;
	border-color: var(--ads-color-gold);
	transform: translateY(-4px);
}

.ads-commitments__grid .ads-commitment:hover .ads-commitment__icon {
	color: var(--ads-color-gold);
	background: var(--ads-color-navy);
}

.ads-commitment__title {
	margin-top: 0;
}

.ads-commitments__grid .ads-commitment__title {
	font-family: var(--ads-font-heading);
	font-weight: 700;
	transition: color var(--ads-transition);
}

.ads-commitment__text {
	margin-top: var(--ads-space-1);
}

.ads-commitments__grid .ads-commitment__text {
	margin-top: var(--ads-space-2);
	color: inherit;
	transition: color var(--ads-transition);
}

/* Team card: the card is a container, so its layout follows its own width, wherever it sits. */
.ads-team-card {
	padding: 0;
	overflow: hidden;
	container-type: inline-size;
	border-radius: var(--ads-radius-lg);
}

/* When stacked, the picture keeps its height and the body takes any spare room, so a row lines up. */
.ads-team-card__inner {
	display: grid;
	grid-template-rows: auto 1fr;
	height: 100%;
}

.ads-team-card__media {
	position: relative;
	min-height: 16rem;
	overflow: hidden;
	background: var(--ads-color-navy);
}

/* Photos are usually portraits, so the crop keeps the top of the picture, where the face is. */
.ads-team-card__photo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	transition: transform var(--ads-transition);
}

.ads-team-card:hover .ads-team-card__photo {
	transform: scale(1.04);
}

/* Until a photo is saved: large initials over the tool pattern. */
.ads-team-card__avatar {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--ads-font-heading);
	font-size: 5rem;
	font-weight: 700;
	font-variant-numeric: lining-nums;
	color: var(--ads-color-gold);
}

.ads-team-card__avatar::before {
	position: absolute;
	inset: 0;
	content: "";
	background: color-mix(in srgb, var(--ads-color-bg) 6%, transparent);
	mask: url("../images/trade-pattern.svg") 0 0 / 20rem 20rem;
}

.ads-team-card__years {
	position: absolute;
	bottom: var(--ads-space-4);
	left: var(--ads-space-4);
	max-width: calc(100% - var(--ads-space-6));
	padding: var(--ads-space-1) var(--ads-space-3);
	font-size: var(--ads-fs-small);
	font-weight: 700;
	line-height: var(--ads-lh-tight);
	color: var(--ads-color-navy);
	background: var(--ads-color-gold);
	border-radius: var(--ads-radius-sm);
}

.ads-team-card__body {
	padding: var(--ads-space-5);
}

.ads-team-card__name {
	font-family: var(--ads-font-heading);
	font-weight: 700;
}

.ads-team-card__role {
	margin-top: var(--ads-space-1);
	font-size: var(--ads-fs-small);
	font-weight: 600;
	color: var(--ads-color-navy);
}

.ads-team-card__role::after {
	display: block;
	width: 2.5rem;
	height: 2px;
	margin-top: var(--ads-space-3);
	content: "";
	background: var(--ads-color-gold);
}

.ads-team-card__bio {
	margin-top: var(--ads-space-3);
}

@container (min-width: 36rem) {
	.ads-team-card__inner {
		grid-template-rows: none;
		grid-template-columns: minmax(12rem, 2fr) minmax(0, 3fr);
	}

	.ads-team-card__media {
		min-height: 100%;
	}

	.ads-team-card__body {
		padding: var(--ads-space-6);
	}
}

/* License badge */
.ads-license {
	display: flex;
	align-items: center;
	gap: var(--ads-space-4);
}

.ads-license > .ads-icon {
	color: var(--ads-color-navy);
}

.ads-license > div {
	min-width: 0;
}

.ads-license__title {
	font-weight: 600;
	line-height: var(--ads-lh-tight);
	color: var(--ads-color-navy);
}

.ads-license__number {
	margin-top: var(--ads-space-1);
	font-size: var(--ads-fs-small);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	overflow-wrap: anywhere;
}

/* Service list */
.ads-service-list {
	display: grid;
	gap: var(--ads-space-3) var(--ads-space-6);
	padding: 0;
	list-style: none;
}

.ads-service-list__item {
	display: flex;
	gap: var(--ads-space-3);
}

.ads-service-list__item .ads-icon {
	width: 1.25em;
	height: 1.25em;
	margin-top: .2em;
	color: var(--ads-color-gold);
}

/* Service section: a picture beside the trade's text, with a gold block peeking out behind the picture. */
.ads-service-section__inner {
	display: grid;
	gap: var(--ads-space-6);
}

.ads-service-section__media {
	position: relative;
	isolation: isolate;
	min-height: 16rem;
	margin: 0 0 var(--ads-space-3) var(--ads-space-3);
}

.ads-service-section__media::before {
	position: absolute;
	right: var(--ads-space-6);
	bottom: calc(var(--ads-space-3) * -1);
	left: calc(var(--ads-space-3) * -1);
	z-index: -1;
	height: 60%;
	content: "";
	background: var(--ads-color-gold);
	border-radius: var(--ads-radius-lg);
}

.ads-service-section__image,
.ads-service-section__panel {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border-radius: var(--ads-radius-lg);
	box-shadow: var(--ads-shadow);
}

.ads-service-section__image {
	object-fit: cover;
}

/* Until a picture is saved: the trade's icon, large, over the tool pattern. */
.ads-service-section__panel {
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	color: var(--ads-color-gold);
	background: var(--ads-color-navy);
}

.ads-service-section__panel::before {
	position: absolute;
	inset: 0;
	content: "";
	background: color-mix(in srgb, var(--ads-color-bg) 6%, transparent);
	mask: url("../images/trade-pattern.svg") 0 0 / 20rem 20rem;
}

.ads-service-section__panel .ads-icon {
	position: relative;
	width: 7rem;
	height: 7rem;
	stroke-width: .75;
}

.ads-service-section__content {
	container-type: inline-size;
}

.ads-service-section__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3.25rem;
	height: 3.25rem;
	color: var(--ads-color-gold);
	background: var(--ads-color-navy);
	border-radius: var(--ads-radius-lg) 0;
}

.ads-service-section__title {
	margin-top: var(--ads-space-4);
}

.ads-service-section__text {
	margin-top: var(--ads-space-3);
}

/* Each service is its own tile with a gold check badge. Tiles in a row share a height, so long items wrap
   inside their tile instead of crowding the next column. */
.ads-service-section .ads-service-list {
	grid-template-columns: minmax(0, 1fr);
	gap: var(--ads-space-3);
	align-items: stretch;
	margin-top: var(--ads-space-5);
}

.ads-service-section .ads-service-list__item {
	gap: var(--ads-space-3);
	align-items: center;
	padding: var(--ads-space-3) var(--ads-space-4);
	font-weight: 500;
	line-height: 1.45;
	color: var(--ads-color-navy);
	background: var(--ads-color-bg);
	border: 1px solid var(--ads-color-border);
	border-radius: var(--ads-radius);
	box-shadow: var(--ads-shadow-sm);
	transition: border-color var(--ads-transition), box-shadow var(--ads-transition), transform var(--ads-transition);
}

.ads-service-section .ads-service-list__item:hover {
	border-color: var(--ads-color-gold);
	box-shadow: var(--ads-shadow);
	transform: translateY(-2px);
}

.ads-service-section .ads-service-list__item .ads-icon {
	flex-shrink: 0;
	width: 1.75rem;
	height: 1.75rem;
	margin-top: 0;
	padding: .375rem;
	color: var(--ads-color-navy);
	background: var(--ads-color-gold);
	border-radius: 50%;
}

@media (prefers-reduced-motion: reduce) {
	.ads-service-section .ads-service-list__item {
		transition: none;
	}

	.ads-service-section .ads-service-list__item:hover {
		transform: none;
	}
}

.ads-service-section .ads-note {
	margin-top: var(--ads-space-5);
}

.ads-service-section .ads-btn {
	margin-top: var(--ads-space-5);
}

/* The list's columns follow the room the text has, not the screen. */
@container (min-width: 36rem) {
	.ads-service-section .ads-service-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Between these widths the picture is stacked and full width, so it needs more height. */
@media (min-width: 768px) and (max-width: 1023px) {
	.ads-service-section__media {
		min-height: 24rem;
	}
}

@media (min-width: 1024px) {
	.ads-service-section__inner {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: var(--ads-space-7);
		align-items: stretch;
	}

	.ads-service-section--flip .ads-service-section__media {
		order: 1;
		margin: 0 var(--ads-space-3) var(--ads-space-3) 0;
	}

	.ads-service-section--flip .ads-service-section__media::before {
		right: calc(var(--ads-space-3) * -1);
		left: var(--ads-space-6);
	}
}

@media (min-width: 1280px) {
	.ads-service-section__inner {
		grid-template-columns: minmax(0, 1fr) minmax(0, 44rem);
		gap: var(--ads-space-8);
	}

	.ads-service-section--flip .ads-service-section__inner {
		grid-template-columns: minmax(0, 44rem) minmax(0, 1fr);
	}
}

@media (min-width: 1920px) {
	.ads-service-section__panel .ads-icon {
		width: 11rem;
		height: 11rem;
	}
}

/* Exclusion note */
.ads-note {
	padding: var(--ads-space-4) var(--ads-space-5);
	font-style: italic;
	color: var(--ads-color-text);
	background: var(--ads-color-navy-soft);
	border-left: 4px solid var(--ads-color-gold);
	border-radius: var(--ads-radius-sm);
}

/* City */
.ads-city-list {
	display: grid;
	gap: var(--ads-space-4);
	padding: 0;
	list-style: none;
}

.ads-city {
	display: flex;
	align-items: center;
	gap: var(--ads-space-3);
	padding: var(--ads-space-4);
	font-weight: 600;
	color: var(--ads-color-navy);
}

.ads-city--hq {
	border-color: var(--ads-color-gold);
}

.ads-city__text {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--ads-space-1) var(--ads-space-3);
	min-width: 0;
}

.ads-city__label {
	padding: 0 var(--ads-space-2);
	font-size: var(--ads-fs-eyebrow);
	color: var(--ads-color-navy);
	background: var(--ads-color-navy-soft);
	border-radius: var(--ads-radius-sm);
}

/* CTA band: a gold band, so it stands apart from the navy footer below it. */
.ads-cta-band {
	--ads-ctx-heading: var(--ads-color-navy);
	--ads-ctx-focus: var(--ads-color-navy);
	position: relative;
	padding-block: var(--ads-space-6);
	overflow: hidden;
	isolation: isolate;
	color: var(--ads-color-navy);
	background: var(--ads-color-gold);
}

/* The tool pattern from Why Choose Us, smaller so whole icons fit in the band. */
.ads-cta-band::after {
	position: absolute;
	inset: 0;
	z-index: -1;
	content: "";
	background: color-mix(in srgb, var(--ads-color-navy) 12%, transparent);
	mask: url("../images/trade-pattern.svg") 0 50% / 16rem 16rem;
}

.ads-cta-band__inner {
	display: flex;
	flex-direction: column;
	gap: var(--ads-space-4);
	align-items: center;
	max-width: 76rem;
	text-align: center;
}

.ads-cta-band__title {
	font-size: clamp(1.5rem, 1.15rem + 1.2vw, 2.25rem);
}

.ads-cta-band__text {
	margin-top: var(--ads-space-1);
	color: inherit;
}

.ads-cta-band .ads-btn {
	flex-shrink: 0;
	padding-inline: var(--ads-space-6);
	color: var(--ads-color-bg);
	background: var(--ads-color-navy);
	border-color: var(--ads-color-navy);
}

.ads-cta-band .ads-btn:hover {
	background: var(--ads-color-navy-dark);
	border-color: var(--ads-color-navy-dark);
}

/* Form field */
.ads-field + .ads-field {
	margin-top: var(--ads-space-5);
}

.ads-field__label {
	display: block;
	margin-bottom: var(--ads-space-2);
	font-size: var(--ads-fs-small);
	font-weight: 600;
	color: var(--ads-color-navy);
}

.ads-field__input {
	display: block;
	width: 100%;
	min-height: 3rem;
	padding: var(--ads-space-2) var(--ads-space-4);
	font-size: 1rem;
	color: var(--ads-color-text);
	background: var(--ads-color-bg);
	border: 1px solid var(--ads-color-text-muted);
	border-radius: var(--ads-radius-sm);
}

/* The border itself turns solid, with a soft glow, so a focused field has one clean edge. */
.ads-field__input:focus {
	outline: 2px solid var(--ads-ctx-focus);
	outline-offset: -2px;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--ads-ctx-focus) 20%, transparent);
}

.ads-field--error .ads-field__input:focus {
	outline-color: var(--ads-color-error);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--ads-color-error) 20%, transparent);
}

textarea.ads-field__input {
	min-height: 9rem;
	resize: vertical;
}

.ads-field__error {
	margin-top: var(--ads-space-2);
	font-size: var(--ads-fs-small);
	font-weight: 500;
	color: var(--ads-color-error);
}

.ads-field--error .ads-field__input {
	border-color: var(--ads-color-error);
	border-width: 2px;
}

.ads-field--checkbox .ads-field__label {
	display: flex;
	align-items: center;
	gap: var(--ads-space-3);
	min-height: 2.75rem;
	margin-bottom: 0;
	font-weight: 500;
}

.ads-field__checkbox {
	width: 1.5rem;
	height: 1.5rem;
	flex-shrink: 0;
	accent-color: var(--ads-color-navy);
}

/* Alert */
.ads-alert {
	display: flex;
	gap: var(--ads-space-3);
	padding: var(--ads-space-4) var(--ads-space-5);
	font-weight: 500;
	background: var(--ads-color-bg);
	border: 1px solid var(--ads-color-border);
	border-left-width: 4px;
	border-radius: var(--ads-radius-sm);
}

.ads-alert--success {
	color: var(--ads-color-success);
	border-left-color: var(--ads-color-success);
}

.ads-alert--error {
	color: var(--ads-color-error);
	border-left-color: var(--ads-color-error);
}

/* Top bar */
.ads-topbar {
	--ads-ctx-link: var(--ads-color-bg);
	--ads-ctx-focus: var(--ads-color-gold);
	display: none;
	padding-block: var(--ads-space-3);
	font-size: var(--ads-fs-small);
	line-height: var(--ads-lh-tight);
	color: var(--ads-color-bg);
	background: var(--ads-color-navy-dark);
}

.ads-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--ads-space-5);
}

.ads-topbar__details {
	display: flex;
	flex-wrap: wrap;
	gap: var(--ads-space-1) var(--ads-space-5);
	margin-left: auto;
	padding: 0;
	list-style: none;
}

.ads-topbar__item {
	display: flex;
	align-items: center;
	gap: var(--ads-space-2);
}

.ads-topbar__item a {
	text-decoration: none;
}

.ads-topbar__item a:hover {
	text-decoration: underline;
	text-decoration-color: var(--ads-color-gold);
}

.ads-topbar__item .ads-icon {
	width: 1.25em;
	height: 1.25em;
	color: var(--ads-color-gold);
}

.ads-topbar__note {
	display: none;
	flex-shrink: 0;
	max-width: none;
	font-weight: 500;
}

/* Header */
.ads-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--ads-color-bg);
	border-bottom: 1px solid var(--ads-color-border);
	transition: box-shadow var(--ads-transition);
}

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

.ads-header--stuck {
	box-shadow: var(--ads-shadow);
}

.ads-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--ads-space-5);
	padding-block: var(--ads-space-3);
}

.ads-header__logo {
	min-width: 0;
}

.ads-header__logo .custom-logo-link {
	display: block;
}

.ads-header__logo img {
	width: 15rem;
	height: auto;
}

.ads-nav,
.ads-header__cta {
	display: none;
}

.ads-nav {
	margin-left: auto;
}

.ads-nav__list {
	display: flex;
	gap: clamp(1.25rem, 2vw, 2.5rem);
	padding: 0;
	list-style: none;
}

.ads-nav__list a {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 2.75rem;
	font-weight: 500;
	color: var(--ads-color-navy);
	text-decoration: none;
	white-space: nowrap;
}

.ads-nav__list a::after {
	content: "";
	position: absolute;
	right: 20%;
	bottom: var(--ads-space-1);
	left: 20%;
	height: 2px;
	background: var(--ads-color-gold);
	transform: scaleX(0);
	transition: transform var(--ads-transition);
}

.ads-nav__list a:hover::after,
.ads-nav__list .current-menu-item > a::after {
	transform: scaleX(1);
}

.ads-nav__list .current-menu-item > a {
	font-weight: 600;
}

.ads-header__cta {
	margin-left: auto;
}

.ads-header__cta .ads-btn {
	white-space: nowrap;
}

/* Reveal: use on a wrapper, not on a card, so the card keeps its own hover transition */
.ads-reveal {
	transition: opacity .6s ease, transform .6s ease;
}

.ads-reveal--hidden {
	opacity: 0;
	transform: translateY(var(--ads-space-5));
}

@media print {
	.ads-reveal--hidden {
		opacity: 1;
		transform: none;
	}
}

/* Page hero */
.ads-page-hero {
	position: relative;
	isolation: isolate;
	padding-block: clamp(3rem, 2rem + 4vw, 5rem);
}

.ads-page-hero__image {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

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

/* Deeper navy behind the title and a soft lift on the right, so a hero without a photo still has depth.
   Gold mixed into navy turns muddy, so the lift is a touch of white. */
.ads-page-hero:not(.ads-page-hero--has-image) {
	background: radial-gradient(ellipse 50% 140% at 100% 40%, color-mix(in srgb, var(--ads-color-bg) 8%, transparent), transparent 70%), linear-gradient(to right, var(--ads-color-navy-dark), var(--ads-color-navy));
}

/* The trade pattern, faded out towards the title so the heading stays clean. */
.ads-page-hero::after {
	position: absolute;
	inset: 0;
	z-index: -1;
	content: "";
	background: color-mix(in srgb, var(--ads-color-bg) 7%, transparent);
	mask: url("../images/trade-pattern.svg") 0 0 / 22rem 22rem, linear-gradient(to right, transparent 10%, var(--ads-color-navy) 65%);
	mask-composite: intersect;
}

/* Plain pages: the text on a card, beside an "On this page" menu on wide screens. Lines stay short enough to read. */
.ads-page-content__layout {
	display: grid;
	gap: var(--ads-space-5);
	align-items: start;
	max-width: 56rem;
	margin-inline: auto;
}

.ads-prose {
	padding: var(--ads-space-5);
	background: var(--ads-color-bg);
	border-radius: var(--ads-radius-lg);
	box-shadow: var(--ads-shadow-sm);
}

.ads-page-menu {
	padding: var(--ads-space-5);
	background: var(--ads-color-bg);
	border-radius: var(--ads-radius-lg);
	box-shadow: var(--ads-shadow-sm);
}

.ads-page-menu__title {
	font-size: var(--ads-fs-eyebrow);
	font-weight: 700;
	letter-spacing: var(--ads-ls-caps);
	text-transform: uppercase;
	color: var(--ads-color-navy);
}

.ads-page-menu__list {
	display: grid;
	gap: var(--ads-space-1);
	margin-top: var(--ads-space-3);
	padding: 0;
	list-style: none;
	counter-reset: ads-page-menu;
}

.ads-page-menu__list li {
	counter-increment: ads-page-menu;
}

.ads-page-menu__list a {
	display: flex;
	gap: var(--ads-space-3);
	align-items: baseline;
	min-height: 2.75rem;
	padding: var(--ads-space-2) var(--ads-space-3);
	font-size: var(--ads-fs-small);
	font-weight: 500;
	color: var(--ads-color-text);
	text-decoration: none;
	border-radius: var(--ads-radius-sm);
	transition: background-color var(--ads-transition), color var(--ads-transition);
}

.ads-page-menu__list a::before {
	min-width: 1.5rem;
	font-weight: 700;
	color: var(--ads-color-navy);
	content: counter(ads-page-menu, decimal-leading-zero);
}

.ads-page-menu__list a:hover {
	color: var(--ads-color-navy);
	background: color-mix(in srgb, var(--ads-color-gold) 18%, transparent);
}

@media (min-width: 768px) {
	.ads-prose {
		padding: var(--ads-space-7);
	}

	.ads-page-menu__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: var(--ads-space-4);
	}
}

@media (min-width: 1024px) {
	.ads-page-content__layout--menu {
		grid-template-columns: 17rem minmax(0, 56rem);
		gap: var(--ads-space-6);
		justify-content: center;
		max-width: none;
	}

	.ads-page-content__layout--menu .ads-page-menu {
		position: sticky;
		top: 6rem;
	}

	.admin-bar .ads-page-content__layout--menu .ads-page-menu {
		top: 8rem;
	}

	.ads-page-content__layout--menu .ads-page-menu__list {
		grid-template-columns: 1fr;
	}
}

/* The card is wide enough here that 18 px text keeps lines under about 90 characters. */
@media (min-width: 1280px) {
	.ads-page-content .ads-prose {
		font-size: 1.125rem;
	}
}

/* Big screens: slightly larger text in wider columns, so the page fills more of the screen and lines stay readable. */
@media (min-width: 1920px) {
	.ads-page-content__layout--menu {
		grid-template-columns: 20rem minmax(0, 60rem);
		gap: var(--ads-space-7);
	}

	.ads-page-content .ads-prose {
		padding: var(--ads-space-8);
		font-size: 1.1875rem;
	}

	.ads-page-menu__list a {
		font-size: 1rem;
	}
}

.ads-prose p {
	max-width: none;
}

.ads-prose :is(p, ul, ol) + :is(p, ul, ol) {
	margin-top: var(--ads-space-4);
}

.ads-prose h2 {
	padding-bottom: var(--ads-space-3);
	font-size: var(--ads-fs-h3);
	border-bottom: 1px solid var(--ads-color-border);
}

.ads-prose * + h2 {
	margin-top: var(--ads-space-7);
}

.ads-prose h3 {
	font-size: var(--ads-fs-h4);
}

.ads-prose :is(ul, ol) {
	padding-left: var(--ads-space-5);
}

.ads-prose li + li {
	margin-top: var(--ads-space-2);
}

.ads-prose li::marker {
	color: var(--ads-color-gold);
}

.ads-prose ol li::marker {
	font-weight: 700;
	color: var(--ads-color-navy);
}

.ads-prose strong {
	font-weight: 600;
	color: var(--ads-color-navy);
}

.ads-prose a {
	overflow-wrap: anywhere;
}

/* Breadcrumb */
.ads-breadcrumb__list {
	display: flex;
	flex-wrap: wrap;
	padding: 0;
	font-size: var(--ads-fs-small);
	list-style: none;
}

.ads-breadcrumb__item + .ads-breadcrumb__item::before {
	content: "/";
	margin-inline: var(--ads-space-2);
}

/* Footer */
.ads-footer {
	padding-top: var(--ads-section-py);
	font-size: .9375rem;
	background: linear-gradient(135deg, var(--ads-color-navy-dark), var(--ads-color-navy));
}

.ads-footer__columns {
	display: grid;
	gap: var(--ads-space-7) var(--ads-space-6);
}

.ads-footer__logo {
	width: 18rem;
	max-width: 100%;
	height: auto;
}

.ads-footer__tagline {
	margin-top: var(--ads-space-4);
	font-size: var(--ads-fs-small);
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--ads-color-gold);
}

.ads-footer__about {
	margin-top: var(--ads-space-3);
}

.ads-footer__brand .ads-btn {
	margin-top: var(--ads-space-5);
}

.ads-footer__title {
	margin-bottom: var(--ads-space-5);
	font-family: var(--ads-font-body);
	font-size: var(--ads-fs-h4);
	font-weight: 600;
}

.ads-footer__title::after {
	content: "";
	display: block;
	width: 2.5rem;
	height: 2px;
	margin-top: var(--ads-space-3);
	background: var(--ads-color-gold);
}

.ads-footer__list,
.ads-footer__licenses,
.ads-footer__contact {
	padding: 0;
	list-style: none;
}

.ads-footer__list a {
	display: flex;
	align-items: center;
	gap: var(--ads-space-2);
	min-height: 2.75rem;
	text-decoration: none;
	color: var(--ads-color-bg);
	transition: color var(--ads-transition);
}

.ads-footer__list a:hover {
	color: var(--ads-color-gold);
}

.ads-footer__list .ads-icon {
	width: 1em;
	height: 1em;
	color: var(--ads-color-gold);
}

.ads-footer__licenses,
.ads-footer__contact {
	display: grid;
	gap: var(--ads-space-4);
}

.ads-footer__contact {
	font-size: var(--ads-fs-small);
}

.ads-footer__license {
	display: flex;
	gap: var(--ads-space-3);
}

.ads-footer__license > .ads-icon {
	width: 1.25em;
	height: 1.25em;
	margin-top: .2em;
	color: var(--ads-color-gold);
}

.ads-footer__number {
	display: block;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: var(--ads-color-gold);
	overflow-wrap: anywhere;
}

.ads-footer__contact-item {
	display: flex;
	gap: var(--ads-space-3);
}

.ads-footer__contact-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	flex-shrink: 0;
	font-size: .875rem;
	color: var(--ads-color-gold);
	background: color-mix(in srgb, var(--ads-color-bg) 10%, transparent);
	border-radius: 50%;
}

.ads-footer__label {
	display: block;
	font-weight: 600;
}

.ads-footer__contact a {
	overflow-wrap: anywhere;
	text-decoration: none;
}

/* Plain until hover or keyboard focus, then white with a gold underline. */
.ads-footer__contact a:hover,
.ads-footer__contact a:focus-visible {
	color: var(--ads-color-bg);
	text-decoration: underline;
	text-decoration-color: var(--ads-color-gold);
	text-underline-offset: .25em;
}

.ads-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--ads-space-1) var(--ads-space-4);
	margin-top: var(--ads-space-7);
	padding-block: var(--ads-space-5);
	text-align: center;
	border-top: 1px solid color-mix(in srgb, var(--ads-color-bg) 20%, transparent);
}

.ads-footer__company {
	font-weight: 600;
	color: var(--ads-color-gold);
}

/* Hamburger */
.ads-menu-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	flex-shrink: 0;
	padding: 0;
	font-size: 1.25rem;
	color: var(--ads-color-navy);
	background: transparent;
	border: 0;
}

.ads-menu-toggle[hidden] {
	display: none;
}

/* Mobile menu */
.ads-menu-open {
	overflow: hidden;
}

/* Above the WordPress admin bar, whose items wrap onto a second row with a long site name. */
.ads-mobile-menu {
	--ads-ctx-link: var(--ads-color-bg);
	--ads-ctx-focus: var(--ads-color-gold);
	position: fixed;
	inset: 0;
	z-index: 100000;
	visibility: hidden;
	transition: visibility 0s linear .25s;
}

.ads-mobile-menu--open {
	visibility: visible;
	transition-delay: 0s;
}

.ads-mobile-menu__backdrop {
	position: absolute;
	inset: 0;
	background: var(--ads-color-navy-dark);
	opacity: 0;
	transition: opacity var(--ads-transition);
}

.ads-mobile-menu--open .ads-mobile-menu__backdrop {
	opacity: .6;
}

.ads-mobile-menu__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	gap: var(--ads-space-5);
	width: min(100%, 24rem);
	padding: var(--ads-space-4) var(--ads-gutter) var(--ads-space-6);
	overflow-y: auto;
	color: var(--ads-color-bg);
	background: var(--ads-color-navy);
	transform: translateX(100%);
	transition: transform var(--ads-transition);
}

.ads-mobile-menu--open .ads-mobile-menu__panel {
	transform: none;
}

/* Logo on the left, close button on the right; the button comes first in the page for focus. */
.ads-mobile-menu__top {
	display: flex;
	flex-direction: row-reverse;
	gap: var(--ads-space-4);
	align-items: center;
	justify-content: space-between;
}

.ads-mobile-menu__logo {
	display: block;
	min-width: 0;
}

.ads-mobile-menu__logo img {
	width: 100%;
	max-width: 13rem;
	height: auto;
}

.ads-mobile-menu__close {
	display: flex;
	align-items: center;
	justify-content: center;
	align-self: flex-end;
	width: 2.75rem;
	height: 2.75rem;
	flex-shrink: 0;
	padding: 0;
	font-size: 1.25rem;
	color: var(--ads-color-bg);
	background: transparent;
	border: 0;
}

.ads-mobile-menu__list {
	padding: 0;
	list-style: none;
}

.ads-mobile-menu__list a {
	display: flex;
	align-items: center;
	min-height: 3rem;
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid var(--ads-color-text-muted);
}

.ads-mobile-menu__list .current-menu-item > a {
	color: var(--ads-color-gold);
}

@media (max-width: 782px) {
	.admin-bar .ads-header {
		top: 46px;
	}
}

/* The admin bar scrolls away with the page at this width. */
@media (max-width: 600px) {
	.admin-bar .ads-header {
		top: 0;
	}
}

@media (min-width: 768px) {
	.ads-footer__columns {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ads-header__logo {
		flex-shrink: 0;
	}

	.ads-header__logo img {
		width: auto;
		height: 3rem;
	}

	.ads-header--stuck .ads-header__logo img {
		height: 2.75rem;
	}
}

@media (min-width: 1024px) {
	.ads-header__cta {
		display: block;
	}

}

@media (min-width: 1280px) {
	.ads-footer__columns {
		grid-template-columns: minmax(0, 1.25fr) minmax(0, .7fr) minmax(0, 1fr) minmax(max-content, 1.15fr);
	}

	.ads-nav {
		display: block;
	}

	.ads-header__cta {
		margin-left: 0;
	}

	.ads-menu-toggle,
	.ads-mobile-menu {
		display: none;
	}
}

/* Between these widths the trade cards are one column and full width, so the photo needs more height. */
@media (min-width: 768px) and (max-width: 1023px) {
	.ads-trade-card__photo {
		height: 20rem;
	}
}

@media (min-width: 768px) {
	.ads-cta-band__inner {
		flex-direction: row;
		gap: var(--ads-space-6);
		justify-content: space-between;
		text-align: left;
	}

	.ads-commitments__grid {
		--ads-commitments-columns: 2;
	}

	.ads-commitments__grid .ads-commitment {
		flex-direction: column;
		padding: var(--ads-space-6);
	}
}

@media (min-width: 1024px) {
	.ads-commitments__grid {
		--ads-commitments-columns: 3;
	}
}

@media (min-width: 1920px) {
	.ads-commitments__grid {
		--ads-commitments-columns: 5;
	}
}

/* Service Area teaser */
.ads-area__footer {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--ads-space-5);
	margin-top: var(--ads-space-6);
	text-align: center;
}

.ads-area__suffix {
	font-size: 1.1875rem;
	color: var(--ads-color-text-muted);
}

@media (min-width: 480px) {
	.ads-city-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 768px) {
	.ads-service-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ads-city-list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.ads-topbar {
		display: block;
	}
}

@media (min-width: 1920px) {
	.ads-city-list {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.ads-topbar__note {
		display: block;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ads-btn--primary:hover,
	.ads-trade-card:hover,
	.ads-team-card:hover,
	.ads-team-card:hover .ads-team-card__photo,
	.ads-trade-card:hover .ads-trade-card__mark,
	.ads-trade-card:focus-within .ads-trade-card__mark,
	.ads-trade-card:hover .ads-trade-card__photo img,
	.ads-trade-card:focus-within .ads-trade-card__photo img,
	.ads-trade-card:hover .ads-btn--link .ads-icon,
	.ads-trade-card:focus-within .ads-btn--link .ads-icon,
	.ads-commitments__grid .ads-commitment:hover {
		transform: none;
	}

	.ads-mobile-menu,
	.ads-mobile-menu__panel {
		transition: none;
	}
}
