/**
 * About page (page-about.php).
 * Loaded on the About page only, after the home files it reuses:
 * home-hero.css (gutter token, hero text and buttons), home-reviews.css,
 * home-faq.css, home-visit.css and home-motion.css.
 * Fonts and heading sizes come from style.css.
 *
 * Section rhythm: charcoal hero, white story, grey "how we work", charcoal
 * credentials, white reviews, grey location, white FAQ, charcoal visit band.
 */

.vac-about {
	--vac-about-grey: color-mix(in srgb, var(--color-dark) 4%, var(--color-white));
	--vac-about-space: clamp(4rem, 9vw, 7rem);
	--vac-about-line: color-mix(in srgb, var(--color-dark) 12%, transparent);
}

/* ------------------------------------------------------------------ */
/* Shared                                                              */
/* ------------------------------------------------------------------ */

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

.vac-about__heading {
	max-width: 24ch;
	margin: 0 auto;
	text-align: center;
}

.vac-about__intro {
	max-width: 40rem;
	margin: 1rem auto 0;
	line-height: 1.6;
	text-align: center;
	text-wrap: pretty;
}

/* Links inside running text: same red underline as the home page text links. */
.vac-about-story__body a,
.vac-about-work__text a,
.vac-about-where__contact a,
.vac-about-where__directions,
.vac-about-glance__specialties a {
	color: var(--color-dark);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: var(--color-red);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.25em;
}

.vac-about-story__body a:hover,
.vac-about-work__text a:hover,
.vac-about-where__contact a:hover,
.vac-about-where__directions:hover,
.vac-about-glance__specialties a:hover {
	color: var(--color-red);
}

.vac-about a:focus-visible {
	outline: 3px solid var(--color-dark);
	outline-offset: 3px;
}

/* Visually hidden text that screen readers still announce. */
.vac-about__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* ------------------------------------------------------------------ */
/* 1. Hero: plain charcoal, text left, framed shop photo right         */
/* ------------------------------------------------------------------ */

/* Compact: sized by its content, not the screen. The fixed header sits over the top padding. */
.vac-about-hero {
	padding-block: calc(var(--vac-header-height, 6rem) + clamp(1.5rem, 4vw, 3rem)) clamp(2.5rem, 6vw, 4.5rem);
	background: var(--color-dark);
	color: var(--color-white);
}

/* The H1 shares its row with the photo, so it tops out a step below the home H1. */
.vac-about-hero .vac-hero__title {
	font-size: clamp(2.25rem, 1.25rem + 2vw, 3rem);
}

.vac-about-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: center;
}

/* Breadcrumb: Home / About. */
.vac-about-hero__crumbs {
	margin-bottom: 1rem;
	font-size: 0.9375rem;
	font-weight: 500;
}

.vac-about-hero__crumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.vac-about-hero__crumbs li + li::before {
	content: "/";
	margin-inline: 0.6rem;
	color: color-mix(in srgb, var(--color-white) 60%, transparent);
}

.vac-about-hero__crumbs a {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	color: color-mix(in srgb, var(--color-white) 88%, transparent);
	text-decoration: underline;
	text-decoration-color: color-mix(in srgb, var(--color-white) 45%, transparent);
	text-underline-offset: 0.25em;
}

.vac-about-hero__crumbs a:hover {
	color: var(--color-white);
	text-decoration-color: var(--color-red);
}

.vac-about-hero__crumbs a[aria-current="page"] {
	color: var(--color-white);
	font-weight: 650;
	text-decoration: none;
}

.vac-about .vac-about-hero a:focus-visible {
	outline-color: var(--color-white);
}

/* Breadcrumb joins the hero entrance (home-hero.css); push the rest back one step. */
.vac-about-hero .vac-hero__title {
	animation-delay: 0.06s;
}

.vac-about-hero .vac-hero__lead {
	animation-delay: 0.12s;
}

.vac-about-hero .vac-hero__actions {
	animation-delay: 0.18s;
}

/*
 * Framed photo card, sized to the hero's right column. --photo-max caps
 * the display width; the current file is 320px wide, so it is shown up to
 * 1.5x. For a sharper photo later, swap the file, its width/height
 * attributes and this one value. The width/height attributes reserve the
 * space, so nothing shifts.
 */
.vac-about-hero__photo {
	--photo-max: 480px;
	--photo-pad: 0.5rem;

	justify-self: end;
	width: min(100%, calc(var(--photo-max) + 2 * var(--photo-pad) + 2px));
	margin: 0;
	animation: vac-hero-rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.24s both;
	padding: var(--photo-pad);
	border: 1px solid color-mix(in srgb, var(--color-white) 22%, transparent);
	border-radius: 6px;
	background: color-mix(in srgb, var(--color-white) 6%, transparent);
	box-shadow: 0 24px 48px -20px color-mix(in srgb, var(--color-dark) 90%, transparent);
}

.vac-about-hero__photo img {
	width: 100%;
	max-width: var(--photo-max);
	height: auto;
	border-radius: 3px;
}

.vac-about-hero__photo figcaption {
	margin: 0.6rem 0.25rem 0.15rem;
	font-size: 0.875rem;
	line-height: 1.4;
	color: color-mix(in srgb, var(--color-white) 80%, transparent);
}

/* Tablets and phones: text first, then the photo, both left aligned. */
@media (max-width: 1023px) {
	.vac-about-hero__inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.vac-about-hero__photo {
		justify-self: start;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vac-about-hero__photo {
		animation: none;
	}
}

@media (max-width: 767px) {
	.vac-about-hero {
		padding-block: calc(var(--vac-header-height, 5.25rem) + 1.5rem) 2.5rem;
	}

	/* home-hero.css pulls the inner block up over the photo on phones; not here. */
	.vac-about-hero .vac-hero__inner {
		margin-top: 0;
	}
}

/* ------------------------------------------------------------------ */
/* 2. Our story: text left, "at a glance" card right                   */
/* ------------------------------------------------------------------ */

.vac-about-story {
	padding-block: var(--vac-about-space);
	background: var(--color-white);
	color: var(--color-dark);
}

.vac-about-story__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
	gap: clamp(2.5rem, 6vw, 5rem);
	align-items: start;
}

.vac-about-story__heading {
	max-width: 20ch;
	margin: 0;
}

.vac-about-story__body {
	max-width: 60ch;
}

.vac-about-story__body p {
	margin: 1.25rem 0 0;
	font-size: 1.0625rem;
	line-height: 1.7;
}

.vac-about-glance {
	position: relative;
	padding: clamp(1.5rem, 2.6vw, 2.25rem);
	border: 1px solid color-mix(in srgb, var(--color-dark) 10%, transparent);
	border-radius: 3px;
	background: var(--color-white);
	box-shadow:
		0 1px 2px color-mix(in srgb, var(--color-dark) 4%, transparent),
		0 22px 44px -18px color-mix(in srgb, var(--color-dark) 14%, transparent);
}

/* Same short red top accent as the review cards. */
.vac-about-glance::before {
	content: "";
	position: absolute;
	top: -1px;
	left: clamp(1.5rem, 2.6vw, 2.25rem);
	width: 40px;
	height: 3px;
	background: var(--color-red);
}

.vac-about-glance__title {
	margin: 0;
	font-family: var(--font-heading);
	font-size: 1.25rem;
	font-weight: 700;
}

.vac-about-glance__list {
	margin: 1rem 0 0;
}

.vac-about-glance__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 0.85rem;
	border-bottom: 1px solid var(--vac-about-line);
}

.vac-about-glance__row:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.vac-about-glance__row dt {
	flex: none;
	color: color-mix(in srgb, var(--color-dark) 72%, transparent);
}

.vac-about-glance__row dd {
	margin: 0;
	text-align: right;
	line-height: 1.4;
}

.vac-about-glance__row strong {
	font-family: var(--font-heading);
	font-size: 1.25rem;
	font-weight: 800;
}

.vac-about-glance__stars {
	display: inline-flex;
	gap: 0.1rem;
	margin-left: 0.35rem;
	vertical-align: -0.1em;
	color: var(--color-red);
}

.vac-about-glance__row--stack {
	flex-direction: column;
	align-items: stretch;
	gap: 0.5rem;
}

.vac-about-glance__row--stack dd {
	text-align: left;
}

.vac-about-glance__specialties {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.vac-about-glance__specialties a {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
}

@media (max-width: 1023px) {
	.vac-about-story__inner {
		grid-template-columns: minmax(0, 1fr);
	}

	/* Stacked, the heading spans the page, so it is centered like the other sections. */
	.vac-about-story__heading {
		max-width: 24ch;
		margin-inline: auto;
		text-align: center;
	}

	.vac-about-story__body,
	.vac-about-glance {
		width: 100%;
		max-width: 40rem;
		margin-inline: auto;
	}
}

@media (max-width: 419px) {
	.vac-about-glance__specialties {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ------------------------------------------------------------------ */
/* 3. How we work: four cards on light grey                            */
/* ------------------------------------------------------------------ */

.vac-about-work {
	padding-block: var(--vac-about-space);
	background: var(--vac-about-grey);
	color: var(--color-dark);
}

.vac-about-work__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(1rem, 2vw, 1.5rem);
	margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
	padding: 0;
	list-style: none;
}

.vac-about-work__item {
	padding: clamp(1.5rem, 2.4vw, 2rem);
	border: 1px solid color-mix(in srgb, var(--color-dark) 8%, transparent);
	border-radius: 3px;
	background: var(--color-white);
}

.vac-about-work__icon {
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	border-radius: 3px;
	background: color-mix(in srgb, var(--color-red) 9%, var(--color-white));
	color: var(--color-red);
}

.vac-about-work__title {
	margin: 1.25rem 0 0;
	font-family: var(--font-heading);
	font-size: 1.25rem;
	font-weight: 700;
}

.vac-about-work__text {
	margin: 0.6rem 0 0;
	line-height: 1.6;
}

@media (max-width: 1099px) {
	.vac-about-work__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 639px) {
	.vac-about-work__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ------------------------------------------------------------------ */
/* 4. Credentials: six cards on charcoal                               */
/* ------------------------------------------------------------------ */

.vac-about-creds {
	padding-block: var(--vac-about-space);
	background: var(--color-dark);
	color: var(--color-white);
}

.vac-about-creds__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1rem, 2vw, 1.5rem);
	margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
	padding: 0;
	list-style: none;
}

.vac-about-creds__card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: clamp(1.5rem, 2.4vw, 2rem);
	border: 1px solid color-mix(in srgb, var(--color-white) 16%, transparent);
	border-radius: 3px;
	background: color-mix(in srgb, var(--color-white) 4%, transparent);
}

.vac-about-creds__icon {
	display: block;
	flex: none;
	color: var(--color-red);
}

.vac-about-creds__title {
	margin: 1rem 0 0;
	font-family: var(--font-heading);
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--color-white);
}

.vac-about-creds__text {
	margin: 0.6rem 0 1.25rem;
	line-height: 1.6;
	color: color-mix(in srgb, var(--color-white) 88%, transparent);
}

/* Glossary line sits at the bottom of every card, so the cards line up. */
.vac-about-creds__term {
	margin: auto 0 0;
	padding-top: 1rem;
	border-top: 1px solid color-mix(in srgb, var(--color-white) 14%, transparent);
	font-size: 0.9375rem;
	line-height: 1.5;
	color: color-mix(in srgb, var(--color-white) 80%, transparent);
}

.vac-about-creds__term strong {
	color: var(--color-white);
}

.vac-about-creds__link {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	min-height: 2.75rem;
	margin-top: 0.5rem;
	font-weight: 600;
	color: var(--color-white);
	text-decoration: underline;
	text-decoration-color: var(--color-red);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.3em;
}

.vac-about-creds__link:hover {
	color: var(--color-white);
	text-decoration-color: var(--color-white);
}

.vac-about .vac-about-creds__link:focus-visible {
	outline-color: var(--color-white);
}

@media (max-width: 1099px) {
	.vac-about-creds__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 639px) {
	.vac-about-creds__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ------------------------------------------------------------------ */
/* 5. Reviews and 7. FAQ: home sections, which expect a divider line   */
/* above them. Here they follow a coloured section, so they get full   */
/* padding instead.                                                    */
/* ------------------------------------------------------------------ */

.vac-about .vac-reviews,
.vac-about .vac-faq {
	padding-block: var(--vac-about-space);
}

.vac-about .vac-reviews__inner,
.vac-about .vac-faq__inner {
	padding-top: 0;
	border-top: 0;
}

/* ------------------------------------------------------------------ */
/* 6. Where we are: contact details and cities, click-to-load map      */
/* ------------------------------------------------------------------ */

.vac-about-where {
	padding-block: var(--vac-about-space);
	background: var(--vac-about-grey);
	color: var(--color-dark);
}

.vac-about-where__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(2rem, 5vw, 4rem);
	align-items: stretch;
	margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.vac-about-where__details {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2rem clamp(1.5rem, 3vw, 2.5rem);
	align-content: start;
}

.vac-about-where__cities {
	grid-column: 1 / -1;
}

.vac-about-where__title {
	margin: 0 0 0.75rem;
	font-family: var(--font-heading);
	font-size: 1.125rem;
	font-weight: 700;
}

.vac-about-where__address {
	font-style: normal;
	line-height: 1.6;
}

.vac-about-where__contact {
	margin: 0.5rem 0 0;
	padding: 0;
	list-style: none;
}

.vac-about-where__contact li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 0.35rem;
}

.vac-about-where__contact a {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	overflow-wrap: anywhere;
}

.vac-about-where__hours-row {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 0.55rem;
	border-bottom: 1px solid var(--vac-about-line);
}

.vac-about-where__hours-row:first-child {
	padding-top: 0;
}

.vac-about-where__hours-row dt {
	font-weight: 600;
}

.vac-about-where__hours-row dd {
	margin: 0;
	text-align: right;
}

.vac-about-where__city-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.vac-about-where__city-list li {
	padding: 0.4rem 0.85rem;
	border: 1px solid color-mix(in srgb, var(--color-dark) 15%, transparent);
	border-radius: 3px;
	background: var(--color-white);
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.4;
}

/* Map, then the address and directions link under it. */
.vac-about-where__location {
	align-self: start;
	min-width: 0;
}

/* Fixed 4:3 box reserves the space before the lazy embed loads: no layout shift. */
.vac-about-map {
	position: relative;
	aspect-ratio: 4 / 3;
	border-radius: 3px;
	background: color-mix(in srgb, var(--color-dark) 8%, var(--color-white));
	overflow: hidden;
}

.vac-about-map iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.vac-about-where__location .vac-about-where__address {
	margin-top: 1rem;
}

.vac-about-where__directions {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
}

@media (max-width: 1023px) {
	.vac-about-where__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 639px) {
	.vac-about-where__details {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ------------------------------------------------------------------ */
/* Hover polish: same tokens and rules as home-motion.css              */
/* ------------------------------------------------------------------ */

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
	.vac-about-work__item,
	.vac-about-creds__card {
		transition:
			transform var(--vac-motion-hover) var(--vac-motion-ease),
			box-shadow var(--vac-motion-hover) var(--vac-motion-ease);
	}

	.vac-about-work__item:hover {
		transform: translateY(var(--vac-motion-lift));
		box-shadow: 0 22px 40px -24px color-mix(in srgb, var(--color-dark) 40%, transparent);
	}

	.vac-about-creds__card:hover {
		transform: translateY(var(--vac-motion-lift));
	}

	/* The home page accent: a thin red line drawing in from the left. */
	.vac-about-creds__card::before {
		content: "";
		position: absolute;
		top: -1px;
		left: -1px;
		right: -1px;
		height: 2px;
		background: var(--color-red);
		transform: scaleX(0);
		transform-origin: left;
		transition: transform 0.5s var(--vac-motion-ease);
	}

	.vac-about-creds__card:hover::before {
		transform: scaleX(1);
	}

	.vac-about-hero__crumbs a,
	.vac-about-creds__link,
	.vac-about-story__body a,
	.vac-about-work__text a,
	.vac-about-where__contact a,
	.vac-about-where__directions,
	.vac-about-glance__specialties a {
		transition:
			color var(--vac-motion-color) ease,
			text-decoration-color var(--vac-motion-color) ease;
	}
}
