/*
 * About (T8), Contact (T9) and Thank you (T9 variant) pages, Phase 24. Mobile first. Hero,
 * stats, link cards, steps, quotes, video wall, FAQ, enquiry and the lightbox come from
 * pb-components.css; this file adds what these pages need, in the site's colours (no new ones).
 */

/* ---------- Shared on these pages ---------- */
.pb-about .pb-city-links,
.pb-contact .pb-city-links {
	background: linear-gradient(180deg, #fff 0%, #fbf7f0 100%);
	border-top: 1px solid #f0ebe1;
}
.pb .pb-city-links__text {
	max-width: 760px;
	margin: 0 0 var(--pb-space-4);
	color: var(--pb-color-text-strong);
	line-height: 1.6;
}
.pb-about .pb-city-links__more,
.pb-contact .pb-city-links__more {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 var(--pb-space-6);
	margin: var(--pb-space-4) 0 0;
}

/* ---------- About ---------- */
/* The team photo is a cut-out: shown whole on a cream panel, not cropped. */
.pb-about .pb-hero__media .pb-ratio--hero {
	background: var(--pb-color-cream-tint);
}
.pb-about .pb-hero__media .pb-ratio--hero img {
	object-fit: contain;
	object-position: center bottom;
}
.pb-about-services {
	padding-bottom: var(--pb-section-y-tight);
}
.pb-about .pb-steps {
	background: var(--pb-color-cream-tint);
}
.pb-about-team .pb-ratio img {
	object-fit: cover;
}
.pb-about-more {
	margin-top: calc(-1 * var(--pb-space-5));
	padding-bottom: var(--pb-section-y-tight);
}

/* Recognition: tiles that open large */
.pb .pb-press__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--pb-space-3);
	margin-top: var(--pb-space-5);
}
.pb a.pb-press__item {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	padding: var(--pb-space-2);
	border: 1px solid var(--pb-color-border);
	border-radius: var(--pb-radius-card);
	background: var(--pb-color-surface);
	cursor: zoom-in;
	transition: box-shadow var(--pb-dur) var(--pb-ease);
}
.pb .pb-press__item img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.pb a.pb-press__item:hover,
.pb a.pb-press__item:focus-visible {
	box-shadow: var(--pb-shadow-lift);
}
@media (min-width: 768px) {
	.pb .pb-press__list {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: var(--pb-space-5);
	}
}

/* ---------- Contact ---------- */
.pb-contact-head {
	background: linear-gradient(180deg, var(--pb-color-cream-soft) 0%, var(--pb-color-surface) 100%);
}
.pb .pb-contact-head .pb-h1 {
	margin: var(--pb-space-2) 0 var(--pb-space-3);
}
.pb .pb-contact-head .pb-lead {
	max-width: 720px;
	margin: 0;
}
.pb .pb-contact-head__reply {
	display: flex;
	align-items: center;
	gap: var(--pb-space-2);
	margin: var(--pb-space-3) 0 0;
	color: var(--pb-color-text-strong);
	font-weight: var(--pb-fw-semibold);
}
.pb-contact-head__reply .pb-icon {
	color: var(--pb-color-primary-text);
}
.pb-contact .pb-enquiry {
	padding-top: var(--pb-space-5);
}

/* Contact details card (beside the form) */
.pb-contact-card {
	align-self: start;
	padding: var(--pb-space-5);
	border: 1px solid var(--pb-color-border);
	border-radius: var(--pb-radius-card);
	background: var(--pb-color-surface);
	box-shadow: var(--pb-shadow-soft);
}
.pb .pb-contact-card__title {
	margin: 0 0 var(--pb-space-4);
	font-size: var(--pb-fs-h3);
	font-weight: var(--pb-fw-semibold);
	line-height: var(--pb-lh-tight);
}
.pb .pb-contact-card__list {
	display: grid;
	gap: var(--pb-space-4);
}
.pb-contact-card__row + .pb-contact-card__row {
	padding-top: var(--pb-space-4);
	border-top: 1px solid var(--pb-color-border);
}
.pb .pb-contact-card dt {
	display: flex;
	align-items: center;
	gap: var(--pb-space-2);
	margin: 0 0 4px;
	color: var(--pb-color-text-muted);
	font-size: var(--pb-fs-sm);
	font-weight: var(--pb-fw-semibold);
}
.pb-contact-card dt .pb-icon {
	width: 18px;
	height: 18px;
	color: var(--pb-color-primary-text);
}
.pb .pb-contact-card dd {
	margin: 0;
	color: var(--pb-color-text-strong);
	line-height: 1.55;
}
.pb .pb-contact-card dd > a,
.pb .pb-contact-card a.pb-contact-card__more {
	color: var(--pb-color-text-strong);
	font-weight: var(--pb-fw-semibold);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.pb .pb-contact-card dd > a:hover,
.pb .pb-contact-card a.pb-contact-card__more:hover {
	color: var(--pb-color-primary-text);
}
.pb .pb-contact-card address {
	margin: 0 0 6px;
	font-style: normal;
}
.pb .pb-contact-card a.pb-contact-card__more {
	font-size: var(--pb-fs-sm);
}
.pb-contact-card__hours {
	display: block;
}

/* Map: a cover with the address until the visitor asks for the map */
.pb-map {
	background: var(--pb-color-surface-alt);
}
.pb-map__box {
	position: relative;
	overflow: hidden;
	margin-top: var(--pb-space-5);
	border: 1px solid var(--pb-color-border);
	border-radius: var(--pb-radius-card);
	background: linear-gradient(135deg, var(--pb-color-cream-tint), var(--pb-color-cream));
}
.pb-map__box.is-loaded {
	height: clamp(320px, 45vw, 460px);
}
.pb-map__cover {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--pb-space-2);
	min-width: 0;
	min-height: 300px;
	padding: var(--pb-space-5) var(--pb-space-4);
	text-align: center;
}
.pb-map__cover .pb-actions {
	flex-wrap: wrap;
}
.pb-map__cover > .pb-icon {
	width: 40px;
	height: 40px;
	color: var(--pb-color-primary-text);
}
.pb .pb-map__label {
	max-width: 640px;
	margin: 0;
	color: var(--pb-color-text-strong);
	font-weight: var(--pb-fw-semibold);
	line-height: 1.5;
}
.pb .pb-map__note {
	margin: 0 0 var(--pb-space-2);
	color: var(--pb-color-text-muted);
	font-size: var(--pb-fs-sm);
}
.pb-map__cover .pb-actions {
	justify-content: center;
}
/* The theme styles every <button> in capitals with wide letter spacing: not ours. */
.pb button.pb-btn {
	font-size: 16px;
	letter-spacing: normal;
	line-height: 1.2;
	text-transform: none;
}
@media (min-width: 768px) {
	.pb-map__cover {
		min-height: 360px;
	}
}
.pb-map__box iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
.pb-map__box.is-loaded .pb-map__cover {
	display: none;
}

/* ---------- Thank you ---------- */
.pb-thanks-head {
	background: linear-gradient(180deg, var(--pb-color-cream-soft) 0%, var(--pb-color-surface) 100%);
	text-align: center;
}
.pb .pb-thanks-head__mark {
	display: inline-grid;
	place-items: center;
	width: 64px;
	height: 64px;
	margin: 0 0 var(--pb-space-4);
	border-radius: 50%;
	background: var(--pb-color-primary);
	color: var(--pb-color-on-primary);
}
.pb-thanks-head__mark .pb-icon {
	width: 32px;
	height: 32px;
	stroke-width: 2.4;
}
.pb .pb-thanks-head .pb-lead {
	margin: var(--pb-space-3) auto var(--pb-space-5);
}
.pb-thanks-head .pb-actions {
	justify-content: center;
}
.pb-thanks-head .pb-actions .pb-btn {
	flex: 0 1 auto;
}
.pb .pb-thanks-links__list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--pb-space-3) var(--pb-space-6);
	margin-top: var(--pb-space-3);
}

@media (min-width: 1024px) {
	.pb-contact .pb-enquiry__grid {
		align-items: start;
	}
}
@media (prefers-reduced-motion: reduce) {
	.pb a.pb-press__item {
		transition: none;
	}
}
