/* ==========================================================================
   Wells Restoration — theme styles
   Tokens and measurements come from the Figma "Wells-Restoration" frame (1440 wide).
   ========================================================================== */

:root {
	--blue: #0064ab;
	--blue-dark: #00518b;
	--blue-mid: #4b9cd5;
	--blue-light: #5faee6;
	--ink: #161616;
	--black: #000;
	--black-2: #050505;
	--grey: #f3f3f3;
	--line: #d9d9d9;
	--text: #5c5c5c;
	--text-on-dark: #c4c4c4;
	--footer-text: #8f8f8f;
	--white: #fff;

	--serif: "Lora", Georgia, "Times New Roman", serif;
	--sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

	--container: 1328px;
	--gutter: 56px;
	--edge: max(var(--gutter), (100vw - var(--container)) / 2);
	--header-h: 116px;
	--section-y: 140px;
	--display: clamp(36px, 2vw + 27px, 56px);
}

@media (max-width: 1024px) {
	:root {
		--gutter: 32px;
		--header-h: 88px;
		--section-y: 96px;
	}
}

@media (max-width: 600px) {
	:root {
		--gutter: 20px;
		--header-h: 72px;
		--section-y: 72px;
	}
}

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

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 24px;
}

body {
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 18px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

img,
svg,
iframe {
	display: block;
	max-width: 100%;
}

img {
	height: auto;
}

a {
	color: inherit;
}

h1,
h2,
h3,
h4,
p,
ul,
figure {
	margin: 0;
}

ul {
	padding: 0;
	list-style: none;
}

button {
	font: inherit;
	color: inherit;
	cursor: pointer;
}

:focus-visible {
	outline: 2px solid var(--blue-light);
	outline-offset: 3px;
}

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

.skip-link {
	position: absolute;
	left: 16px;
	top: -100px;
	z-index: 100;
	padding: 12px 20px;
	background: var(--white);
	color: var(--ink);
	font-weight: 600;
}

.skip-link:focus {
	top: 16px;
}

.container {
	width: min(100% - 2 * var(--gutter), var(--container));
	margin-inline: auto;
}

/* Type ------------------------------------------------------------------- */

.display {
	font-family: var(--serif);
	font-weight: 500;
	font-size: var(--display);
	line-height: 1.2;
	letter-spacing: -0.005em;
	text-wrap: pretty;
}

.eyebrow {
	margin-bottom: 24px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.eyebrow--blue {
	color: var(--blue);
}

.eyebrow--light {
	color: var(--blue-light);
}

.eyebrow--white {
	color: var(--white);
}

.lead {
	color: var(--text);
	font-size: 18px;
	line-height: 1.6;
}

.lead + .lead {
	margin-top: 1em;
}

.lead a {
	color: var(--blue);
	font-weight: 600;
}

.u-underline {
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Buttons ---------------------------------------------------------------- */

.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 16px 16px 16px 24px;
	border: 0;
	font-family: var(--sans);
	font-size: 16px;
	font-weight: 600;
	line-height: 16px;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.2s, color 0.2s;
}

.btn .chevron {
	flex: none;
	transition: transform 0.2s;
}

.btn:hover .chevron,
.btn:focus-visible .chevron {
	transform: translateX(3px);
}

.btn--primary {
	background: var(--blue);
	color: var(--white);
}

.btn--primary:hover {
	background: var(--blue-dark);
}

.btn--white {
	background: var(--white);
	color: var(--blue);
}

.btn--white:hover {
	background: #e8f2fa;
}

.btn--ghost-light {
	background: transparent;
	color: var(--white);
}

.btn--ghost-dark {
	background: transparent;
	color: var(--ink);
}

.btn--ghost-dark .chevron {
	color: var(--blue-mid);
}

.btn--ghost-light:hover span,
.btn--ghost-dark:hover span {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.btn-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 20px;
}

.arrows {
	display: flex;
	gap: 13px;
}

.arrow {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	background: var(--blue);
	color: var(--white);
	transition: background-color 0.2s;
}

.arrow:hover {
	background: var(--blue-dark);
}

.arrow:disabled {
	background: rgba(0, 100, 171, 0.3);
	cursor: default;
}

.chevron.is-left {
	transform: rotate(180deg);
}

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

.site-header {
	position: relative;
	z-index: 50;
	display: flex;
	align-items: center;
	height: var(--header-h);
	padding-right: 39px;
	background: var(--black);
	color: var(--white);
}

.brand {
	display: flex;
	align-items: center;
	gap: 33px;
	height: 100%;
	color: var(--white);
	text-decoration: none;
}

.brand__mark {
	flex: none;
	height: 100%;
	aspect-ratio: 134 / 116;
}

.brand__mark svg {
	width: 100%;
	height: 100%;
}

.brand__text {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.brand__name {
	font-family: var(--serif);
	font-size: 33px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.02em;
	white-space: nowrap;
}

.brand__sub {
	padding-left: 6px;
	color: var(--blue-light);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.5em;
	text-transform: uppercase;
	white-space: nowrap;
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 71px;
	margin-left: auto;
}

.site-nav__list {
	display: flex;
	gap: 66px;
}

.site-nav__list a {
	position: relative;
	font-size: 16px;
	font-weight: 600;
	line-height: 16px;
	text-decoration: none;
}

.site-nav__list a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -8px;
	height: 2px;
	background: var(--blue-light);
	transform: scaleX(0);
	transition: transform 0.2s;
}

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

.nav-toggle {
	display: none;
}

@media (max-width: 1280px) {
	.site-nav {
		gap: 40px;
	}

	.site-nav__list {
		gap: 36px;
	}
}

@media (max-width: 1024px) {
	.site-header {
		padding-right: 0;
	}

	.brand {
		gap: 20px;
	}

	.brand__name {
		font-size: 26px;
	}

	.brand__sub {
		font-size: 10px;
		letter-spacing: 0.4em;
	}

	.nav-toggle {
		display: grid;
		place-items: center;
		width: var(--header-h);
		height: var(--header-h);
		margin-left: auto;
		border: 0;
		background: transparent;
	}

	.nav-toggle__bars,
	.nav-toggle__bars::before,
	.nav-toggle__bars::after {
		display: block;
		width: 26px;
		height: 2px;
		background: var(--white);
		transition: transform 0.2s, opacity 0.2s;
	}

	.nav-toggle__bars {
		position: relative;
	}

	.nav-toggle__bars::before,
	.nav-toggle__bars::after {
		content: "";
		position: absolute;
		left: 0;
	}

	.nav-toggle__bars::before {
		top: -8px;
	}

	.nav-toggle__bars::after {
		top: 8px;
	}

	.nav-open .nav-toggle__bars {
		background: transparent;
	}

	.nav-open .nav-toggle__bars::before {
		transform: translateY(8px) rotate(45deg);
	}

	.nav-open .nav-toggle__bars::after {
		transform: translateY(-8px) rotate(-45deg);
	}

	.site-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 24px;
		padding: 16px var(--gutter) 32px;
		background: var(--black);
		border-top: 1px solid #222;
		visibility: hidden;
		opacity: 0;
		transform: translateY(-8px);
		transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
	}

	.nav-open .site-nav {
		visibility: visible;
		opacity: 1;
		transform: none;
	}

	.site-nav__list {
		flex-direction: column;
		gap: 0;
	}

	.site-nav__list a {
		display: block;
		padding: 16px 0;
		border-bottom: 1px solid #222;
		font-size: 18px;
	}

	.site-nav__list a::after {
		display: none;
	}

	.site-nav .btn {
		justify-content: center;
	}
}

@media (max-width: 600px) {
	.brand {
		gap: 14px;
	}

	.brand__name {
		font-size: 21px;
	}

	.brand__sub {
		padding-left: 2px;
		font-size: 9px;
		letter-spacing: 0.3em;
	}
}

/* Hero (home + interior) ------------------------------------------------- */

.hero {
	display: grid;
	grid-template-columns: 640fr 800fr;
	min-height: 812px;
	background: var(--ink);
	color: var(--white);
}

.hero--page {
	min-height: 600px;
}

.hero__content {
	display: flex;
	align-items: center;
	padding: 96px 56px 96px var(--edge);
}

.hero__inner {
	max-width: 528px;
}

.hero__title {
	max-width: 490px;
	color: var(--white);
}

.hero--page .hero__title {
	max-width: 528px;
}

.hero__text {
	max-width: 440px;
	margin-top: 30px;
	color: var(--text-on-dark);
	font-size: 18px;
	line-height: 1.6;
}

.hero .btn-row {
	margin-top: 60px;
}

.hero__media {
	position: relative;
	overflow: hidden;
	background: #222;
}

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

.slider__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 0.8s ease;
}

.slider__slide.is-active {
	opacity: 1;
}

.arrows--overlay {
	position: absolute;
	left: 25px;
	bottom: 24px;
	z-index: 2;
}

@media (max-width: 1024px) {
	.hero,
	.hero--page {
		grid-template-columns: 1fr;
		min-height: 0;
	}

	.hero__content {
		padding: 72px var(--gutter) 64px;
	}

	.hero__media {
		aspect-ratio: 4 / 3;
	}

	.hero--page .hero__media {
		aspect-ratio: 16 / 9;
	}

	.hero .btn-row {
		margin-top: 40px;
	}
}

@media (max-width: 600px) {
	.eyebrow {
		font-size: 14px;
		letter-spacing: 0.14em;
	}

	.hero__content {
		padding: 56px var(--gutter) 48px;
	}

	.hero__text {
		margin-top: 20px;
		font-size: 17px;
	}

	.hero__media {
		aspect-ratio: 1 / 1;
	}

	.hero--page .hero__media {
		aspect-ratio: 4 / 3;
	}

	.arrows--overlay {
		left: var(--gutter);
		bottom: 20px;
	}
}

/* Stats bar --------------------------------------------------------------- */

.stats {
	padding: 39px 0 38px;
	background: var(--blue);
	color: var(--white);
}

.stats__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px 32px;
	padding-left: 16px;
}

.stat {
	display: flex;
	align-items: center;
	gap: 30px;
}

.stat__icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 80px;
	height: 80px;
	background: linear-gradient(225deg, rgba(75, 156, 213, 0.5) 0%, #4b9cd5 100%);
}

.stat__title {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.6;
	text-transform: uppercase;
}

.stat__text {
	font-size: 16px;
	line-height: 1.2;
}

@media (max-width: 1024px) {
	.stats__grid {
		grid-template-columns: 1fr;
		padding-left: 0;
	}

	.stat {
		gap: 20px;
	}

	.stat__icon {
		width: 64px;
		height: 64px;
	}

	.stat__icon svg {
		width: 40px;
		height: 40px;
	}
}

/* Sections ---------------------------------------------------------------- */

.section {
	padding: var(--section-y) 0;
}

.section--tight {
	padding: 72px 0 var(--section-y);
}

.section--white {
	background: var(--white);
}

.section--grey {
	background: var(--grey);
}

.section__title {
	max-width: 640px;
	color: var(--ink);
}

.section__title--wide {
	max-width: 1119px;
}

.section__title + .lead,
.section__title + .values,
.section__title + .team,
.section__title + .contact-list {
	margin-top: 25px;
}

.section__title + .values,
.section__title + .team,
.section__title + .contact-list {
	margin-top: 56px;
}

.section__lead--wide {
	max-width: 1074px;
}

.lead + .values {
	margin-top: 64px;
}

.split__text .btn-row {
	margin-top: 41px;
}

/* Two-column text + collage */
.split {
	display: grid;
	grid-template-columns: minmax(0, 498fr) minmax(0, 750fr);
	align-items: center;
	gap: 73px;
}

.split .section__title {
	max-width: 498px;
}

.split .lead {
	max-width: 492px;
}

@media (max-width: 1024px) {
	.split {
		grid-template-columns: minmax(0, 1fr);
		gap: 56px;
	}

	.split .section__title,
	.split .lead {
		max-width: 680px;
	}
}

/* Collage */
.collage {
	display: grid;
	grid-template-columns: 356fr 365fr;
	gap: 29px;
}

.collage__col {
	display: flex;
	flex-direction: column;
	gap: 28px;
	padding-top: 52px;
}

.collage__col--offset {
	gap: 31px;
	padding-top: 0;
}

.collage__img {
	width: 100%;
	object-fit: cover;
	box-shadow: 0 40px 40px rgba(0, 0, 0, 0.25);
}

.collage__img--tall {
	aspect-ratio: 356 / 490;
}

.collage__img--short {
	aspect-ratio: 356 / 298;
}

.collage__col--offset .collage__img--short {
	aspect-ratio: 365 / 298;
}

.collage__img--taller {
	aspect-ratio: 365 / 556;
}

@media (max-width: 600px) {
	.collage {
		gap: 14px;
	}

	.collage__col {
		gap: 14px;
		padding-top: 26px;
	}

	.collage__col--offset {
		padding-top: 0;
	}

	.collage__img {
		box-shadow: 0 20px 24px rgba(0, 0, 0, 0.2);
	}
}

/* Service cards + carousel ------------------------------------------------ */

.service-card {
	position: relative;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	aspect-ratio: 385 / 490;
	background: var(--blue);
	color: var(--white);
	text-decoration: none;
	box-shadow: 0 20px 30px rgba(0, 0, 0, 0.15);
	scroll-margin-top: 24px;
}

.service-card__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.service-card::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 100, 171, 0) 42%, var(--blue) 72%);
}

a.service-card:hover .service-card__img {
	transform: scale(1.04);
}

.service-card__body {
	position: relative;
	z-index: 1;
	padding: 0 44px 40px;
}

.service-card__title {
	font-family: var(--serif);
	font-size: 32px;
	font-weight: 600;
	line-height: 1.28;
	text-wrap: balance;
}

.service-card__text {
	max-width: 282px;
	margin-top: 10px;
	font-size: 16px;
	line-height: 1.6;
}

.service-card:target {
	outline: 4px solid var(--blue-light);
	outline-offset: 4px;
}

.carousel {
	margin-top: 77px;
}

.carousel__track {
	display: grid;
	grid-auto-columns: 385px;
	grid-auto-flow: column;
	gap: 31px;
	padding: 0 var(--edge) 50px;
	margin-bottom: -50px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--edge);
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}

.carousel__track::-webkit-scrollbar {
	display: none;
}

.carousel__track > * {
	scroll-snap-align: start;
}

.carousel-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-top: 112px;
}

.services-intro {
	padding-bottom: 115px;
}

@media (max-width: 1024px) {
	.carousel {
		margin-top: 48px;
	}

	.carousel__track {
		grid-auto-columns: 320px;
		gap: 20px;
	}

	.carousel-footer {
		margin-top: 64px;
	}

	.service-card__body {
		padding: 0 28px 28px;
	}

	.service-card__title {
		font-size: 28px;
	}
}

@media (max-width: 600px) {
	.carousel__track {
		grid-auto-columns: 78vw;
		gap: 16px;
	}

	.carousel-footer .arrows {
		display: none;
	}

	.service-card__title {
		font-size: 26px;
	}
}

/* Services grid page */
.service-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 31px;
	margin-top: 77px;
}

.service-card--more {
	background: var(--blue);
}

.service-card--more::after {
	display: none;
}

.service-card__mark {
	position: absolute;
	top: 32px;
	right: -40px;
	width: 120%;
	height: auto;
	pointer-events: none;
}

.service-card--more .btn {
	margin-top: 28px;
}

@media (max-width: 1024px) {
	.service-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
		margin-top: 48px;
	}
}

@media (max-width: 600px) {
	.service-grid {
		grid-template-columns: 1fr;
	}

	.service-grid .service-card {
		aspect-ratio: 4 / 4.4;
	}
}

/* Values / three columns -------------------------------------------------- */

.values {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}

.value {
	padding-top: 28px;
	border-top: 4px solid var(--blue);
}

.value__title {
	margin-bottom: 12px;
	font-family: var(--serif);
	font-size: 28px;
	font-weight: 600;
	line-height: 1.25;
}

.value p {
	color: var(--text);
}

@media (max-width: 800px) {
	.values {
		grid-template-columns: 1fr;
	}
}

/* Team -------------------------------------------------------------------- */

.team {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 31px;
}

.member {
	display: grid;
	grid-template-columns: 220px 1fr;
	background: var(--white);
	box-shadow: 0 20px 30px rgba(0, 0, 0, 0.08);
}

.member__photo {
	position: relative;
	min-height: 280px;
	background: #ddd;
}

.member__photo img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 20%;
}

.member__body {
	padding: 32px;
}

.member__name {
	font-family: var(--serif);
	font-size: 28px;
	font-weight: 600;
	line-height: 1.25;
}

.member__role {
	margin: 6px 0 16px;
	color: var(--blue);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.member__bio {
	color: var(--text);
	font-size: 16px;
}

@media (max-width: 1100px) {
	.team {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.member {
		grid-template-columns: 1fr;
	}

	.member__photo {
		min-height: 0;
		aspect-ratio: 1 / 1;
	}

	.member__body {
		padding: 24px;
	}
}

/* Portfolio --------------------------------------------------------------- */

.portfolio-intro {
	margin-bottom: 48px;
}

.gallery-grid {
	columns: 3 320px;
	column-gap: 20px;
}

.gallery-grid li {
	margin-bottom: 20px;
	break-inside: avoid;
}

.gallery-grid a {
	display: block;
	overflow: hidden;
	background: #ddd;
}

.gallery-grid img {
	width: 100%;
	transition: transform 0.5s ease, opacity 0.2s;
}

.gallery-grid a:hover img {
	transform: scale(1.04);
}

.lightbox {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: grid;
	grid-template-columns: 64px 1fr 64px;
	align-items: center;
	gap: 16px;
	padding: 24px;
	background: rgba(5, 5, 5, 0.94);
}

.lightbox[hidden] {
	display: none;
}

.lightbox__figure {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.lightbox__figure img {
	max-width: 100%;
	max-height: calc(100vh - 120px);
	object-fit: contain;
}

.lightbox__figure figcaption {
	color: var(--text-on-dark);
	font-size: 15px;
	text-align: center;
}

.lightbox__close {
	position: absolute;
	top: 12px;
	right: 16px;
	width: 48px;
	height: 48px;
	border: 0;
	background: transparent;
	color: var(--white);
	font-size: 40px;
	line-height: 1;
}

@media (max-width: 600px) {
	.lightbox {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: 1fr auto;
		padding: 64px 12px 24px;
	}

	.lightbox__figure {
		grid-column: 1 / -1;
		grid-row: 1;
	}

	.lightbox__prev {
		grid-row: 2;
		justify-self: end;
	}

	.lightbox__next {
		grid-row: 2;
	}
}

/* Forms ------------------------------------------------------------------- */

.split--form {
	align-items: start;
}

.form-card {
	padding: 48px;
	background: var(--white);
	box-shadow: 0 20px 30px rgba(0, 0, 0, 0.08);
}

.section--white .form-card {
	background: var(--grey);
	box-shadow: none;
}

.form-card__title {
	margin-bottom: 28px;
	font-family: var(--serif);
	font-size: 32px;
	font-weight: 600;
	line-height: 1.25;
}

.form__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-bottom: 28px;
}

.field--wide {
	grid-column: 1 / -1;
}

.field label {
	display: block;
	margin-bottom: 8px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
}

.field .req {
	color: var(--blue);
}

.field input,
.field select,
.field textarea {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid var(--line);
	border-radius: 0;
	background: var(--white);
	color: var(--ink);
	font: 16px/1.4 var(--sans);
	appearance: none;
	-webkit-appearance: none;
}

.field select {
	padding-right: 44px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath fill='%230064ab' d='M3.67 6.95c0-.24.09-.49.28-.67a.95.95 0 0 1 1.35 0l5.04 5.04 5.04-5.04a.95.95 0 0 1 1.35 1.35l-5.72 5.71a.95.95 0 0 1-1.34 0L3.95 7.63a.95.95 0 0 1-.28-.68Z'/%3E%3C/svg%3E");
	background-position: right 14px center;
	background-repeat: no-repeat;
}

.field input[type="file"] {
	padding: 11px 12px;
	font-size: 15px;
}

.field textarea {
	resize: vertical;
	min-height: 140px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
	outline: 2px solid var(--blue);
	outline-offset: -1px;
	border-color: var(--blue);
}

.form__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.form__notice {
	margin-bottom: 24px;
	padding: 16px 20px;
	font-size: 16px;
}

.form__notice--ok {
	background: #e3f1e6;
	color: #1d5b2a;
}

.form__notice--error {
	background: #fbe7e7;
	color: #8a1f1f;
}

.form__notice a {
	font-weight: 600;
}

@media (max-width: 600px) {
	.form-card {
		padding: 28px 20px;
	}

	.form__grid {
		grid-template-columns: 1fr;
	}
}

/* Contact ----------------------------------------------------------------- */

.contact-list {
	display: grid;
	gap: 32px;
}

.contact-list li {
	display: flex;
	gap: 20px;
}

.contact-list__icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 56px;
	height: 56px;
	background: linear-gradient(225deg, rgba(75, 156, 213, 0.5) 0%, #4b9cd5 100%);
	color: var(--white);
}

.contact-list h3 {
	margin-bottom: 4px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.contact-list p {
	color: var(--text);
	font-size: 17px;
}

.contact-list a {
	color: var(--blue);
	font-weight: 600;
}

.map iframe {
	width: 100%;
	height: 440px;
	border: 0;
	filter: grayscale(0.4);
}

/* Generic page header + content ------------------------------------------ */

.page-header {
	padding: 96px 0 80px;
	background: var(--ink);
	color: var(--white);
}

.page-header--404 {
	padding: 140px 0;
}

.page-header--404 .btn-row {
	margin-top: 40px;
}

.page-header__title {
	max-width: 900px;
}

.entry-content {
	max-width: 780px;
	color: var(--text);
}

.entry-content > * + * {
	margin-top: 1em;
}

.entry-content h2,
.entry-content h3 {
	margin-top: 1.6em;
	color: var(--ink);
	font-family: var(--serif);
	font-weight: 600;
	line-height: 1.25;
}

.entry-content h2 {
	font-size: 30px;
}

.entry-content h3 {
	font-size: 24px;
}

.entry-content a {
	color: var(--blue);
}

.entry-content ul {
	padding-left: 1.2em;
	list-style: disc;
}

.entry + .entry {
	margin-top: 48px;
	padding-top: 48px;
	border-top: 1px solid var(--line);
}

.entry__title {
	font-family: var(--serif);
	font-size: 30px;
	font-weight: 600;
}

.entry__title a {
	text-decoration: none;
}

.entry__meta {
	margin: 4px 0 12px;
	color: var(--footer-text);
	font-size: 14px;
}

/* CTA panel (overlaps the footer) ---------------------------------------- */

.site-footer {
	--cta-band: var(--grey);
	background: linear-gradient(180deg, var(--cta-band) 0, var(--cta-band) 275px, var(--ink) 275px);
	color: var(--white);
}

/* Match the band above the CTA to whatever the last section's background is. */
body:has(.site-main > section.section--white:last-child) .site-footer {
	--cta-band: var(--white);
}

body:has(.site-main > section.map:last-child) .site-footer,
.no-cta .site-footer {
	background: var(--ink);
}

.cta__panel {
	position: relative;
	overflow: hidden;
	min-height: 664px;
	padding: 92px 80px 146px;
	background: var(--blue);
}

.cta__content {
	position: relative;
	z-index: 1;
	max-width: 520px;
}

.cta__title {
	max-width: 370px;
	color: var(--white);
}

.cta__text {
	max-width: 340px;
	margin-top: 26px;
	padding-left: 5px;
	font-size: 18px;
	line-height: 1.6;
}

.cta .btn-row {
	margin-top: 42px;
	gap: 16px 28px;
}

.cta__mark {
	position: absolute;
	top: 76px;
	left: 538px;
	width: 873px;
	max-width: none;
	height: auto;
	pointer-events: none;
}

@media (max-width: 1024px) {
	.site-footer {
		background: linear-gradient(180deg, var(--cta-band) 0, var(--cta-band) 200px, var(--ink) 200px);
	}

	.cta__panel {
		min-height: 0;
		padding: 72px 48px 80px;
	}

	.cta__mark {
		top: auto;
		bottom: -40px;
		left: auto;
		right: -160px;
		width: 620px;
	}
}

@media (max-width: 600px) {
	.cta {
		width: 100%;
	}

	.cta__panel {
		padding: 56px var(--gutter) 64px;
	}

	.cta__mark {
		right: -200px;
		bottom: -60px;
		width: 480px;
		opacity: 0.7;
	}
}

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

.site-footer__main {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 297px 201px 152px;
	padding: 54px 0 96px;
}

.no-cta .site-footer__main,
body:has(.site-main > section.map:last-child) .site-footer__main {
	padding-top: 96px;
}

.brand--footer {
	gap: 27px;
	height: 68px;
}

.brand--footer .brand__mark {
	aspect-ratio: 79 / 68;
}

.brand--footer .brand__mark svg {
	/* the header mark scaled into the footer's smaller square */
	width: 100%;
	height: 100%;
}

.site-footer__tagline {
	margin-top: 23px;
	color: #939393;
	font-size: 14px;
	line-height: 1.6;
}

.social {
	display: flex;
	gap: 13px;
	margin-top: 22px;
}

.social a {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--black-2);
	color: var(--footer-text);
	transition: color 0.2s, background-color 0.2s;
}

.social a:hover {
	background: var(--blue);
	color: var(--white);
}

.site-footer__heading {
	margin: 11px 0 13px;
	color: #fcfcfc;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.8;
}

.site-footer__list {
	display: grid;
	gap: 16px;
	color: var(--footer-text);
	font-size: 14px;
	line-height: 1.2;
}

.site-footer__list a {
	text-decoration: none;
	transition: color 0.2s;
}

.site-footer__list a:hover {
	color: var(--white);
}

.site-footer__list .u-underline {
	text-decoration: underline;
}

.hours-days {
	margin-right: 14px;
}

.site-footer__bar {
	padding: 24px 0;
	background: var(--black-2);
	color: #7f7f7f;
	font-size: 14px;
	line-height: 1.6;
}

@media (max-width: 1100px) {
	.site-footer__main {
		grid-template-columns: repeat(3, auto);
		justify-content: start;
		gap: 48px 64px;
	}

	.site-footer__brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 600px) {
	.site-footer__main {
		grid-template-columns: 1fr 1fr;
		gap: 40px 24px;
		padding-bottom: 64px;
	}

	.site-footer__col--contact {
		grid-column: 1 / -1;
	}
}

/* Motion preferences ------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
