/**
 * Territory Location template.
 *
 * Scoped to .t-territory so nothing here can affect the rest of the site.
 * Typography is inherited from the theme (Work Sans / Roboto) on purpose —
 * only colour, spacing and layout are defined here.
 *
 * Mobile-first: the bento grid is a single column by default, becomes a 6-column
 * grid on tablet and the full 12-column composition from 960px up.
 */

/*
 * Palette taken from the compiled theme stylesheet so this page matches the
 * rest of the site:
 *   headings  #336ab2   (theme h1-h6)
 *   body text #000      (theme html)
 *   link hover #011a46
 *   surfaces  #fff      (.uk-section-default)
 *   muted     #e8e8e8   (.uk-section-muted)
 *   card shadow         (.uk-card-default)
 *
 * Headings deliberately carry no colour of their own — they inherit the theme's
 * heading colour, so a palette change in the YOOtheme customiser flows through
 * here too. Only the dark tile overrides it, for contrast.
 */
.t-territory {
	--t-blue: #5aabe0;
	--t-blue-deep: #336ab2;
	--t-blue-dark: #011a46;
	--t-navy: #011a46;
	--t-ink: #000000;
	--t-body: #000000;
	--t-muted: #595959;
	--t-line: #e8e8e8;
	--t-surface: #ffffff;
	--t-star: #e8a93b;
	/* Tints of the brand light blue (#5aabe0) over white, 12% and 25%. */
	--t-blue-tint: #ebf5fb;
	--t-blue-tint-line: #d6eaf7;

	--t-radius: 14px;
	--t-radius-sm: 8px;
	--t-pill: 999px;
	--t-shadow: 0 6px 50px rgba(0, 0, 0, 0.05);
	--t-gap: 16px;

	max-width: 1200px;
	margin-inline: auto;
	color: var(--t-body);
}

.t-territory *,
.t-territory *::before,
.t-territory *::after {
	box-sizing: border-box;
}

.t-territory img {
	max-width: 100%;
	height: auto;
	display: block;
}

.t-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.t-territory a:focus-visible,
.t-territory summary:focus-visible,
.t-territory button:focus-visible,
.t-territory input:focus-visible,
.t-territory textarea:focus-visible,
.t-territory select:focus-visible {
	outline: 3px solid var(--t-blue-deep);
	outline-offset: 2px;
	border-radius: var(--t-radius-sm);
}

/* ---------------------------------------------------------------- HERO ---- */

.t-hero {
	margin-bottom: 24px;
	max-width: 56rem;
}

.t-territory .t-hero__title {
	margin: 0 0 10px;
	font-size: clamp(1.85rem, 1.3rem + 2.4vw, 2.9rem);
	line-height: 1.15;
	letter-spacing: -0.015em;
}

.t-hero__text,
.phone-cta {
	margin: 0;
	font-size: clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
	line-height: 1.6;
	color: var(--t-body);
}

.phone-cta {
	margin-top: 10px !important
}

.phone-cta a {
	font-weight: 600;
}

/* The CTA has two wordings; show the desktop one by default, swap on mobile. */
.phone-cta__lead--mobile {
	display: none;
}

@media (max-width: 639px) {
	.phone-cta__lead--desktop {
		display: none;
	}

	.phone-cta__lead--mobile {
		display: inline;
	}
}

/* ---------------------------------------------------------------- BENTO --- */

.t-bento {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--t-gap);
	margin-bottom: 48px;
}

.t-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 20px;
	margin: 0;
	background: var(--t-surface);
	border: 1px solid var(--t-line);
	border-radius: var(--t-radius);
	box-shadow: var(--t-shadow);
	overflow: hidden;
}

.t-territory .t-tile__title {
	margin: 0 0 12px;
	font-size: 1.15rem;
	line-height: 1.25;
}

.t-tile__intro {
	margin: -6px 0 14px;
	font-size: 0.95rem;
}

/* Image tiles carry no padding — the image is the content. Absolute filling
   keeps them covered whatever height the grid row settles on.
   Scoped with .t-territory so the wider desktop padding on .t-tile cannot
   override it (equal specificity would otherwise let the later rule win). */
.t-territory .t-tile--landmark {
	padding: 0;
	border: 0;
	/* Box-shaped image tiles (previously a wide, short strip). The photo fills
	   the box via object-fit: cover at whatever column width the grid gives it,
	   and align-self keeps the box at its own height so a taller neighbour in the
	   same row can't stretch it out of shape. */
	aspect-ratio: 5 / 3;
	min-height: 0;
	align-self: start;
}

.t-tile--landmark img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.t-landmark__caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 28px 16px 12px;
	color: #fff;
	font-size: 0.85rem;
	line-height: 1.35;
	background: linear-gradient(to top, rgba(1, 26, 70, 0.8), rgba(1, 26, 70, 0));
}

/* Landmark carousel. On tablet/desktop the wrapper and track are display:contents
   so the two figures sit directly in the bento grid (their existing placement is
   unchanged). On mobile it becomes a swipeable, scroll-snapping carousel + dots. */
.t-landmarks,
.t-landmarks__track {
	display: contents;
}

.t-landmarks__dots {
	display: none;
}

/* ----------------------------------------------------------------- VIDEO --- */

/* The additional image tile as a video placeholder: poster + play button. */
.t-tile--video.is-playable {
	cursor: pointer;
}

.t-video__play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(1, 26, 70, 0.28);
	cursor: inherit;
	transition: background-color 0.15s ease;
}

.t-tile--video.is-playable:hover .t-video__play,
.t-tile--video.is-playable:focus-within .t-video__play {
	background: rgba(1, 26, 70, 0.18);
}

/* Circular button with a CSS play triangle. */
.t-video__icon {
	position: relative;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.94);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
	transition: transform 0.15s ease, background-color 0.15s ease;
}

.t-video__icon::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 54%;
	transform: translate(-50%, -50%);
	border-style: solid;
	border-width: 11px 0 11px 18px;
	border-color: transparent transparent transparent var(--t-blue-deep);
}

.t-tile--video.is-playable:hover .t-video__icon,
.t-tile--video.is-playable:focus-within .t-video__icon {
	transform: scale(1.06);
	background: #fff;
}

/* The real player, injected on click, fills the tile. */
.t-video__media {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: cover;
	background: #000;
}

/* -------------------------------------------------------------- ENQUIRY --- */

/* White "form card" matching the landing pages: light surface, blue top
   accent, and room above the top edge for the FREE QUOTE badge. */
.t-tile--enquiry {
	background: var(--t-surface);
	border-color: var(--t-line);
	border-top: 5px solid var(--t-blue);
	color: var(--t-body);
	overflow: visible;
}

/* "FREE QUOTE" badge — pill, overlapping the card's top-right edge. */
.t-tile--enquiry .t-form-badge {
	position: absolute;
	top: -13px;
	right: 24px;
	padding: 5px 13px;
	background: var(--t-blue-deep);
	color: #fff;
	border-radius: var(--t-pill);
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	line-height: 1.4;
	text-transform: uppercase;
	white-space: nowrap;
}

.t-territory .t-tile--enquiry .t-tile__title {
	color: var(--t-ink);
	font-size: 1.45rem;
	font-weight: 800;
}

.t-tile--enquiry .t-tile__intro {
	color: var(--t-muted);
}

/* --------------------------------------------------------------- RATING --- */

.t-tile--reviews {
	background: var(--t-blue-tint);
	align-items: center;
	justify-content: center;
	text-align: center;
}

.t-rating__label {
	margin: 4px 0 0;
	font-size: 1rem;
	font-weight: 400;
	color: var(--t-muted);
}

/* Size lives on the wrapper so the score and the star always match. */
.t-rating {
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 2px;
	margin: 0;
	font-size: 3.5rem;
	line-height: 0.9;
}

.t-rating__star {
	color: var(--t-star);
}

.t-rating__score {
	color: var(--t-ink);
	font-weight: 700;
	letter-spacing: -0.02em;
}

.t-stars {
	display: inline-flex;
	gap: 2px;
	font-size: 1.05rem;
	line-height: 1;
}

.t-star {
	color: #cfcfcf;
}

.t-star.is-on {
	color: var(--t-star);
}

.t-rating__meta {
	margin: 8px 0 0;
	font-size: 0.9rem;
	color: var(--t-muted);
}

.t-rating__link {
	margin-top: 10px;
	align-self: flex-start;
	color: var(--t-blue-deep);
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: underline;
}

.t-reviews-widget {
	margin-top: 12px;
}

/* ----------------------------------------------------------------- TEAM --- */

.t-tile--team {
	justify-content: center;
	background: var(--t-blue-tint);
}

/* Photos left, names and caption beside them. */
.t-team__row {
	display: flex;
	align-items: center;
	gap: 14px;
}

.t-team__photos {
	display: flex;
	gap: 8px;
	flex: 0 0 auto;
	margin: 0;
}

.t-team__photos img {
	width: 60px;
	height: 60px;
	max-width: none;
	flex: 0 0 auto;
	object-fit: cover;
	border-radius: var(--t-radius-sm);
}

.t-team__text {
	min-width: 0;
}

.t-team__names {
	margin: 0;
	color: var(--t-ink);
	font-weight: 700;
	font-size: 0.98rem;
	line-height: 1.3;
}

.t-team__caption {
	margin: 0;
	font-size: 0.88rem;
	font-weight: 400;
	line-height: 1.4;
	color: var(--t-muted);
}

/* Longer team description below the photos/names header. */
.t-team__body {
	margin-top: 14px;
}

.t-team__body p {
	margin: 0 0 10px;
	font-size: 0.92rem;
	line-height: 1.55;
	color: var(--t-body);
}

.t-team__body p:last-child {
	margin-bottom: 0;
}

/* --------------------------------------------------------- BEFORE/AFTER --- */

.t-territory .t-tile--ba {
	padding: 0;
}

/* Side by side on tablet/desktop; stacked (Before above After) on mobile. */
.t-ba__pair {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2px;
	flex: 1 1 auto;
	min-height: 200px;
	background: var(--t-line);
}

.t-ba__item {
	position: relative;
	margin: 0;
	min-width: 0;
	background: var(--t-surface);
}

/* Must out-specify `.t-territory img { height: auto }` above, or the two photos
   render at their own aspect ratios and the pair stops lining up. */
.t-ba__item img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.t-ba__tag {
	position: absolute;
	top: 10px;
	left: 10px;
	padding: 4px 10px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #fff;
	background: rgba(1, 26, 70, 0.82);
	border-radius: var(--t-pill);
}

.t-ba__tag--after {
	background: var(--t-blue-deep);
}

/* Overlaid on the photos, bottom-left, so the pair fills the whole tile.
   The scrim keeps the text legible whatever the photo underneath is doing. */
.t-ba__meta {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 10px;
	padding: 32px 16px 12px;
	background: linear-gradient(to top, rgba(1, 26, 70, 0.85), rgba(1, 26, 70, 0));
	pointer-events: none;
}

.t-ba__label {
	color: #fff;
	font-weight: 700;
	font-size: 0.92rem;
}

.t-ba__service {
	font-size: 0.88rem;
	color: #dbe5f4;
}

/* ------------------------------------------------------------- SERVICES --- */

.t-tile--services {
	background: var(--t-blue-tint);
}

/* Commercial / Domestic groups within the services tile. */
.t-services__group + .t-services__group {
	margin-top: 16px;
}

.t-services__group-title {
	margin: 0 0 8px;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--t-muted);
}

.t-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.t-pills__item {
	margin: 0;
}

.t-pill {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 8px 16px;
	border: 1px solid var(--t-blue);
	border-radius: var(--t-pill);
	background: var(--t-blue);
	color: #fff;
	font-size: 0.92rem;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

a.t-pill:hover,
a.t-pill:focus-visible {
	background: var(--t-blue-deep);
	border-color: var(--t-blue-deep);
	color: #fff;
}

.t-pill--static {
	color: #fff;
}

.t-pill--more {
	background: transparent;
	border-style: dashed;
	border-color: var(--t-blue-deep);
	color: var(--t-blue-deep);
	font-weight: 600;
}

/* "+ more" is a <button> (it reveals the hidden pills inline), so match the
   page font and give it the same fill-on-hover as the linked pills. */
button.t-pill {
	font-family: inherit;
	cursor: pointer;
}

.t-pill--more:hover,
.t-pill--more:focus-visible {
	background: var(--t-blue-deep);
	border-color: var(--t-blue-deep);
	color: #fff;
}

/* -------------------------------------------------- FULL-WIDTH SECTIONS --- */

.t-container {
	width: 100%;
}

.t-territory .t-section__title {
	margin: 0 0 20px;
	font-size: clamp(1.4rem, 1.1rem + 1.3vw, 2rem);
	line-height: 1.2;
}

.t-strip,
.t-faq,
.t-business,
.t-map {
	margin-bottom: 48px;
}

/* --------------------------------------------------------- BUSINESS INFO --- */

.t-business__intro {
	max-width: 80ch;
	margin: 0 0 16px;
	font-size: 1rem;
	line-height: 1.6;
	color: var(--t-body);
}

.t-business__intro p {
	margin: 0 0 10px;
}

.t-business__intro p:last-child {
	margin-bottom: 0;
}

/* Phone/email on the left, address alongside on the right; stacks on mobile. */
.t-business__contact {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 64px;
	align-items: start;
	font-size: 1rem;
	line-height: 1.65;
}

.t-business__line {
	margin: 0 0 4px;
}

.t-business__label {
	font-weight: 700;
	color: var(--t-ink);
	margin-right: 4px;
}

.t-business__line a {
	color: var(--t-blue-deep);
	font-weight: 600;
}

.t-business__address {
	margin: 0;
	font-style: normal;
	line-height: 1.6;
	color: var(--t-body);
}

/* -------------------------------------------------------------- QUOTES ---- */

.t-quotes {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--t-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.t-quote {
	padding: 20px;
	background: var(--t-blue-tint);
	border: 1px solid var(--t-line);
	border-radius: var(--t-radius);
}

.t-quote__text {
	margin: 8px 0 0;
	padding: 0;
	border: 0;
	quotes: none;
}

.t-quote__text p {
	margin: 0;
	color: var(--t-ink);
	font-size: 1.02rem;
	line-height: 1.45;
	font-weight: 600;
}

.t-quote__name {
	margin: 8px 0 0;
	font-size: 0.86rem;
	color: var(--t-muted);
}

/* ----------------------------------------------------------------- FAQ ---- */

.t-faq__list {
	padding: 4px 20px;
	background: var(--t-blue-tint);
	border-radius: var(--t-radius);
}

.t-faq__item {
	border-bottom: 1px solid var(--t-blue-tint-line);
}

.t-faq__item:last-child {
	border-bottom: 0;
}

.t-faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 56px;
	padding: 14px 4px;
	cursor: pointer;
	color: var(--t-ink);
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.4;
	list-style: none;
}

.t-faq__q::-webkit-details-marker {
	display: none;
}

.t-faq__icon {
	position: relative;
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
}

.t-faq__icon::before,
.t-faq__icon::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	background: var(--t-blue-deep);
	transform: translate(-50%, -50%);
	transition: opacity 0.15s ease;
}

.t-faq__icon::before {
	width: 14px;
	height: 2px;
}

.t-faq__icon::after {
	width: 2px;
	height: 14px;
}

.t-faq__item[open] .t-faq__icon::after {
	opacity: 0;
}

.t-faq__a {
	padding: 0 4px 18px;
	font-size: 0.97rem;
	line-height: 1.6;
}

.t-faq__a p {
	margin: 0 0 0.7em;
}

.t-faq__a p:last-child {
	margin-bottom: 0;
}

/* ----------------------------------------------------------------- MAP ---- */

.t-map__frame {
	position: relative;
	overflow: hidden;
	border-radius: var(--t-radius);
	border: 1px solid var(--t-line);
	background: var(--t-blue-tint);
	/* An explicit height, not aspect-ratio + max-height: with a capped height
	   the browser derives the width back from the ratio, and the frame stops
	   filling the container. */
	height: clamp(260px, 38vw, 460px);
}

.t-map__frame iframe,
.t-map__frame img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: cover;
}

.t-map__note {
	margin: 12px 0 0;
	font-size: 0.92rem;
	color: var(--t-muted);
}

/* -------------------------------------------------- WPFORMS INSIDE TILE --- */

.t-tile--enquiry .wpforms-container {
	margin: 0;
}

.t-tile--enquiry .wpforms-field {
	padding: 0 0 12px;
}

.t-tile--enquiry .wpforms-field-label,
.t-tile--enquiry .wpforms-field-sublabel {
	color: var(--t-muted);
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.t-tile--enquiry .wpforms-required-label {
	color: var(--t-blue);
}

.t-tile--enquiry .wpforms-container input[type="text"],
.t-tile--enquiry .wpforms-container input[type="email"],
.t-tile--enquiry .wpforms-container input[type="tel"],
.t-tile--enquiry .wpforms-container input[type="url"],
.t-tile--enquiry .wpforms-container input[type="number"],
.t-tile--enquiry .wpforms-container select,
.t-tile--enquiry .wpforms-container textarea {
	width: 100%;
	max-width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	background: #fff;
	color: var(--t-ink);
	border: 1.5px solid #d0d0d0;
	border-radius: var(--t-radius-sm);
	font-size: 16px; /* stops iOS zooming the page on focus */
	line-height: 1.35;
	box-shadow: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.t-tile--enquiry .wpforms-container input[type="text"]:focus,
.t-tile--enquiry .wpforms-container input[type="email"]:focus,
.t-tile--enquiry .wpforms-container input[type="tel"]:focus,
.t-tile--enquiry .wpforms-container input[type="url"]:focus,
.t-tile--enquiry .wpforms-container input[type="number"]:focus,
.t-tile--enquiry .wpforms-container select:focus,
.t-tile--enquiry .wpforms-container textarea:focus {
	outline: none;
	border-color: var(--t-blue);
	box-shadow: 0 0 0 3px rgba(90, 171, 224, 0.2);
}

.t-tile--enquiry .wpforms-container textarea {
	min-height: 92px;
	resize: vertical;
}

/* The form's layout rows are too narrow to split inside a tile. */
.t-tile--enquiry .wpforms-layout-row {
	display: block;
}

.t-tile--enquiry .wpforms-layout-column {
	width: 100%;
	padding: 0;
}

.t-tile--enquiry .wpforms-container .wpforms-submit-container {
	padding: 4px 0 30px !important;
}

.t-tile--enquiry .wpforms-container button[type="submit"] {
	width: 100%;
    min-height: 48px;
    padding: 16px !important;
    background: var(--t-blue)!important;
    color: #fff !important;
    border: 0 !important;
    border-radius: var(--t-pill);
    font-size: 1rem !important;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(90, 171, 224, 0.3);
    transition: background-color 0.15s ease, transform 0.1s ease;
}

.t-tile--enquiry .wpforms-container button[type="submit"]:hover,
.t-tile--enquiry .wpforms-container button[type="submit"]:focus-visible {
	background: #3f95cc;
	transform: translateY(-1px);
}

.t-tile--enquiry .wpforms-error,
.t-tile--enquiry .wpforms-container label.wpforms-error {
	color: #d63638;
	font-size: 0.82rem;
}

/* Higher-specificity override so the field error text beats WPForms' own red. */
div.wpforms-container-full .wpforms-form label.wpforms-error {
	color: #d63638;
}

.t-tile--enquiry .wpforms-confirmation-container,
.t-tile--enquiry .wpforms-confirmation-container-full {
	margin: 0;
	padding: 14px;
	background: var(--t-blue-tint);
	border: 1px solid var(--t-blue-tint-line);
	border-radius: var(--t-radius-sm);
	color: var(--t-ink);
}

/* ------------------------------------------------------------ RESPONSIVE -- */

/* Mobile: single column in the brief's reading order (form, reviews, team,
   before/after, landmark, landmark, services, then the extra image). Images
   just get a shorter minimum height so the stack isn't dominated by photos. */
@media (max-width: 639px) {
	.t-tile--landmark {
		min-height: 170px;
	}

	/* Before/after stacks: Before above After, each full width, tags kept. */
	.t-ba__pair {
		grid-template-columns: 1fr;
		min-height: 0;
	}

	.t-ba__item {
		aspect-ratio: 3 / 2;
	}

	/* Landmark images become a swipeable carousel. */
	.t-landmarks {
		display: block;
	}

	.t-landmarks__track {
		display: flex;
		gap: var(--t-gap);
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.t-landmarks__track::-webkit-scrollbar {
		display: none;
	}

	.t-landmarks__track > .t-tile--landmark {
		flex: 0 0 100%;
		min-height: 0;
		scroll-snap-align: center;
	}

	.t-landmarks__dots {
		display: flex;
		justify-content: center;
		gap: 8px;
		margin-top: 12px;
	}

	.t-landmarks__dot {
		width: 8px;
		height: 8px;
		padding: 0;
		border: 0;
		border-radius: 50%;
		background: rgba(1, 26, 70, 0.22);
		cursor: pointer;
		transition: transform 0.15s ease, background-color 0.15s ease;
	}

	.t-landmarks__dot.is-active {
		background: var(--t-blue-deep);
		transform: scale(1.2);
	}

	.t-tile--enquiry .wpforms-container .wpforms-submit-container {
		padding: 4px 0 10px !important;
	}
}

@media (min-width: 640px) {
	.t-territory {
		--t-gap: 18px;
	}

	.t-bento {
		grid-template-columns: repeat(6, 1fr);
	}

	.t-tile--enquiry,
	.t-tile--ba,
	.t-tile--services {
		grid-column: span 6;
	}

	.t-tile--reviews,
	.t-tile--team,
	.t-tile--landmark {
		grid-column: span 3;
	}

	.t-quotes {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 960px) {
	.t-territory {
		--t-gap: 20px;
	}

	.t-bento {
		grid-template-columns: repeat(12, 1fr);
		grid-auto-flow: dense;
		/* Rows 1 and 2 (rating, team) shrink to their content; row 3 takes the
		   height the form leaves over, so the landmark photo absorbs it instead
		   of the two text tiles padding themselves out. Later rows are auto. */
		grid-template-rows: min-content min-content 1fr;
	}

	.t-tile {
		padding: 24px;
	}

	/* The photos are the content of this tile, so give them real height —
	   without padding it would otherwise collapse to the pair's minimum. */
	.t-ba__pair {
		min-height: 300px;
	}

	/* Brief order, kept exact via `order` (not DOM order):
	   Row 1: form (3 rows tall) | rating
	   Row 2: form              | team
	   Row 3: form              | before/after
	   Row 4: landmark 1        | landmark 2
	   Row 5: services (8)      | landmark 3 (4)

	   The form is the tallest thing on the page, so the column beside it needs
	   three tiles (rating, team, before/after) to fill that height — the
	   before/after image absorbs whatever height is left over. Landmarks 1 and 2
	   share the next row; Services and the third "additional" landmark image
	   share the last, so the numbered 1–7 reading order never shifts. Each row
	   sums to 12 columns, so dense packing leaves no gaps. */
	.t-tile--enquiry {
		grid-column: span 6;
		grid-row: span 3;
		order: 1;
	}

	.t-tile--reviews {
		grid-column: span 6;
		order: 2;
	}

	.t-tile--team {
		grid-column: span 6;
		order: 3;
	}

	.t-tile--ba {
		grid-column: span 6;
		order: 4;
	}

	.t-tile--landmark-1 {
		grid-column: span 6;
		order: 5;
	}

	.t-tile--landmark-2 {
		grid-column: span 6;
		order: 6;
	}

	.t-tile--services {
		grid-column: span 8;
		order: 7;
	}

	.t-tile--landmark-3 {
		grid-column: span 4;
		order: 8;
		/* Keep this image at its own height so expanding the Services "+ more"
		   list grows only the Services tile, not the image beside it. */
		align-self: start;
	}

	/* Fill the row when the landmark that shares it is missing. */
	.t-tile--ba.is-wide {
		grid-column: span 12;
	}

	.t-tile--services.is-wide {
		grid-column: span 12;
	}

	.t-hero {
		margin-bottom: 32px;
	}

	.t-strip,
	.t-faq,
	.t-business,
	.t-map {
		margin-bottom: 64px;
	}

	/* Desktop: lay each review quote out as stars beside the text. */
	.t-quote {
		display: flex;
		align-items: center;
		gap: 15px;
	}

	.t-quote__text {
		margin: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.t-territory * {
		transition: none !important;
		animation: none !important;
	}
}
