/*
 * Shared design: the "Heritage" look that any site built on this theme
 * keeps (header, footer, page openings, bands, cards, forms, buttons,
 * FAQs, contact page, maps, printing). Colours, fonts and sizes live in
 * theme.json; this file is only for what theme.json can't express.
 *
 * Anything that exists only on the Dales & Shires site (location pages,
 * properties, coverage and county maps, sales figures) is in site.css,
 * which loads straight after this file.
 */

/* Sticky header: the whole header template part stays at the top. */
.kit-site-header {
	position: sticky;
	top: 0;
	z-index: 100;
}
.admin-bar .kit-site-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}
/* Header bar: its contents line up with the page content (1180px wide,
   centred), and it gets slimmer once the page is scrolled (header.js adds
   .is-scrolled). Laptops and up: logo left, menu words and phone button
   right. Phones and tablets (up to 1024px, so iPhones in landscape and
   iPads too): call symbol left, larger logo centred, menu button right,
   opening a full-width drop-down like the old site's. */
.kit-mainbar {
	--kit-content-edge: max(var(--wp--style--root--padding-left, 1.5rem), calc((100% - 1180px) / 2));
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding: 0.85rem var(--kit-content-edge);
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--white);
	border-bottom: 4px solid var(--wp--preset--color--accent);
	transition: padding 0.25s ease;
}
.is-scrolled .kit-mainbar {
	padding-top: 0.45rem;
	padding-bottom: 0.45rem;
}
.kit-logo {
	display: block;
	flex: none;
	line-height: 0;
}
.kit-logo img {
	display: block;
	width: 250px;
	height: auto;
	transition: width 0.25s ease;
}
.is-scrolled .kit-logo img {
	width: 170px;
}
/* A business with no logo: its name as text (kit_site_logo()), white on
   the dark bar and footer. */
.kit-wordmark {
	font-family: var(--wp--preset--font-family--serif);
	font-size: 1.875rem;
	line-height: 1.2;
	color: var(--wp--preset--color--white);
	text-decoration: none;
	white-space: nowrap;
}
.kit-mainbar__right {
	display: flex;
	align-items: center;
	gap: 1.75rem;
}
.kit-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.kit-nav a {
	color: var(--wp--preset--color--white);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
}
.kit-nav a:hover,
.kit-nav a:focus-visible {
	color: var(--wp--preset--color--tint);
	text-decoration: underline;
	text-underline-offset: 0.3em;
}
.kit-header-call,
.kit-menu-toggle {
	display: none;
}
@media (prefers-reduced-motion: reduce) {
	.kit-mainbar,
	.kit-logo img,
	.kit-nav,
	.kit-menu-toggle span,
	.kit-menu-toggle span::before,
	.kit-menu-toggle span::after {
		transition: none !important;
	}
}

/* Phone number in the header: a small outlined "button". */
.kit-header-phone {
	margin: 0;
	white-space: nowrap;
}
.kit-header-phone a,
.kit-header-call {
	--kit-phone-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E");
}
/* A business that would rather not be phoned ('header_button' =>
   'contact'): the symbol is an envelope, linking to the Contact page. */
.kit-header-call.kit-header-call--mail {
	--kit-phone-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-10 6L2 7'/%3E%3C/svg%3E");
}
.kit-header-phone a {
	display: inline-block;
	padding: 0.5rem 0.9rem;
	border: 1px solid var(--wp--preset--color--accent-light);
	border-radius: 2px;
	color: var(--wp--preset--color--white);
	font-weight: 700;
	text-decoration: none;
	letter-spacing: 0.02em;
}
.kit-header-phone a::before,
.kit-header-call::before {
	content: "";
	display: inline-block;
	width: 0.95em;
	height: 0.95em;
	margin-right: 0.45em;
	vertical-align: -0.1em;
	background: currentColor;
	-webkit-mask: var(--kit-phone-icon) center / contain no-repeat;
	mask: var(--kit-phone-icon) center / contain no-repeat;
}
.kit-header-phone a:hover {
	background: var(--wp--preset--color--accent);
	border-color: var(--wp--preset--color--accent);
}

@media (max-width: 1024px) {
	.kit-mainbar {
		display: grid;
		grid-template-columns: 2.75rem 1fr 2.75rem;
		gap: 0.5rem;
	}
	.kit-logo {
		justify-self: center;
	}
	.kit-logo img {
		width: 225px;
	}
	.is-scrolled .kit-logo img {
		width: 170px;
	}
	.kit-header-phone {
		display: none;
	}
	/* The call symbol and the menu button: plain, fine-lined symbols either
	   side, level with the bottom of the logo (the tap area stays large). */
	.kit-mainbar {
		align-items: end;
		padding-bottom: 1.15rem; /* A little more below the logo than above. */
	}
	.is-scrolled .kit-mainbar {
		padding-bottom: 0.6rem;
	}
	.kit-header-call,
	.kit-menu-toggle {
		display: flex;
		align-items: flex-end;
		justify-content: center;
		width: 2.75rem;
		height: 2.75rem;
		padding: 0 0 0.1rem;
		border: 0;
		background: none;
		color: var(--wp--preset--color--white);
		cursor: pointer;
	}
	.kit-header-call {
		--kit-phone-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E");
	}
	/* Symbols start a little larger and shrink with the logo on scroll. */
	.kit-header-call::before {
		width: 1.35rem;
		height: 1.35rem;
		margin: 0;
		transition: width 0.25s ease, height 0.25s ease;
	}
	.is-scrolled .kit-header-call::before {
		width: 1.1rem;
		height: 1.1rem;
	}
	.kit-header-call:hover,
	.kit-menu-toggle:hover {
		color: var(--wp--preset--color--tint);
	}
	.kit-mainbar__right {
		justify-self: end;
	}
	/* Three bars that turn into a cross while the menu is open. */
	.kit-menu-toggle span,
	.kit-menu-toggle span::before,
	.kit-menu-toggle span::after {
		display: block;
		width: 1.4rem;
		height: 1.5px;
		background: currentColor;
		transition: transform 0.25s ease, background-color 0.25s ease, width 0.25s ease;
	}
	.is-scrolled .kit-menu-toggle span,
	.is-scrolled .kit-menu-toggle span::before,
	.is-scrolled .kit-menu-toggle span::after {
		width: 1.15rem;
	}
	.kit-menu-toggle span {
		position: relative;
		margin-bottom: 5px; /* So the bottom bar, not the middle, meets the logo's line. */
	}
	.kit-menu-toggle span::before,
	.kit-menu-toggle span::after {
		content: "";
		position: absolute;
		left: 0;
	}
	.kit-menu-toggle span::before {
		top: -5px;
	}
	.kit-menu-toggle span::after {
		top: 5px;
	}
	.kit-menu-toggle[aria-expanded="true"] span {
		background-color: transparent;
	}
	.kit-menu-toggle[aria-expanded="true"] span::before {
		transform: translateY(5px) rotate(45deg);
	}
	.kit-menu-toggle[aria-expanded="true"] span::after {
		transform: translateY(-5px) rotate(-45deg);
	}
	/* The drop-down: full width, just under the bar, items centred. Hidden
	   only when JavaScript is running (without it, the links stay visible
	   under the bar). */
	.kit-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		margin-top: 4px; /* Below the accent line. */
		background: var(--wp--preset--color--ink);
		border-bottom: 4px solid var(--wp--preset--color--accent);
		box-shadow: 0 12px 24px rgb(0 0 0 / 0.25);
	}
	.kit-js .kit-nav {
		visibility: hidden;
		opacity: 0;
		transform: translateY(-0.5rem);
		transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
	}
	.kit-js .kit-nav.is-open {
		visibility: visible;
		opacity: 1;
		transform: none;
		transition: opacity 0.2s ease, transform 0.2s ease;
	}
	/* Light and calm: the serif heading font, normal weight, sentence
	   case, with short fine rules between the items. */
	.kit-nav ul {
		flex-direction: column;
		align-items: center;
		gap: 0;
		padding: 0.75rem 0 1rem;
		text-align: center;
	}
	.kit-nav li {
		width: min(16rem, 80%);
	}
	.kit-nav li + li {
		border-top: 1px solid rgb(255 255 255 / 0.1);
	}
	.kit-nav a {
		display: block;
		padding: 0.8rem 1rem;
		font-family: var(--wp--preset--font-family--serif);
		font-size: 1.0625rem;
		font-weight: 400;
		letter-spacing: 0.01em;
		text-transform: none;
	}
	.kit-nav a:hover,
	.kit-nav a:focus-visible {
		color: var(--wp--preset--color--tint);
		text-decoration: underline;
		text-decoration-color: var(--wp--preset--color--accent-light);
		text-underline-offset: 0.35em;
	}
}
@media (max-width: 781px) {
	.kit-logo img {
		width: 189px;
	}
	.is-scrolled .kit-logo img {
		width: 125px;
	}
}
@media (max-width: 380px) {
	.kit-logo img {
		width: 162px;
	}
}

/* Small uppercase label above a heading. */
.kit-eyebrow {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent);
}

/* Italic serif sub-heading under the page title. */
.kit-subtitle.wp-block-heading {
	font-style: italic;
	font-weight: 400;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--large);
}

/* Photo in a white mount with a thin border line. */
.kit-framed {
	margin: 0;
	padding: 12px;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
}
.kit-framed img {
	display: block;
	width: 100%;
	height: auto; /* The photo carries its own size; the shape below wins. */
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

/* White card with an accent top edge. */
.kit-card {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-top: 4px solid var(--wp--preset--color--accent);
	padding: clamp(1.25rem, 3vw, 2rem);
}

/* Service cards: photo on top, text below. */
.kit-service-card {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	gap: 0 !important;
}
.kit-service-card > .wp-block-image {
	margin: 0;
}
.kit-service-card > .wp-block-image img {
	display: block;
	width: 100%;
	height: auto; /* The photo carries its own size; the shape below wins. */
	aspect-ratio: 16 / 9;
	object-fit: cover;
}
.kit-service-card__body {
	padding: 1.5rem;
}

/* Big serif figures in the accent band. */
.kit-stat {
	margin: 0;
	font-family: var(--wp--preset--font-family--serif);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 700;
	line-height: 1.2;
}

/* Keep in-page jumps (e.g. #enquiry) clear of the sticky header. */
:target {
	scroll-margin-top: 9rem;
}

/* Key-points band: three separate panels, each with a subtle accent
   gradient, on a slightly darker accent ground. */
.kit-band {
	background-color: var(--wp--custom--accent-dark) !important;
}
.kit-band .wp-block-columns {
	gap: 1rem;
}
.kit-band .wp-block-column {
	padding: clamp(1.25rem, 2.5vw, 1.75rem);
	background: linear-gradient(135deg, var(--wp--custom--accent-soft) 0%, var(--wp--preset--color--accent) 100%);
	border-radius: 3px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.kit-band .wp-block-column > * {
	margin-block: 0.25rem 0;
}
.kit-band .wp-block-column > :first-child {
	margin-top: 0;
}

/* Testimonials: side-by-side cards, modest serif italic. */
.kit-testimonials .wp-block-quote {
	margin: 0;
	height: 100%;
	box-sizing: border-box;
	padding: 1.75rem;
	background: #f3f5ee;
	border: 1px solid #dfe5d3;
	border-top: 4px solid var(--wp--preset--color--accent);
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.6;
}
.kit-testimonials .wp-block-quote p {
	margin: 0;
}
.kit-testimonials .wp-block-quote cite {
	display: block;
	margin-top: 1rem;
	font-family: var(--wp--preset--font-family--sans);
	font-style: normal;
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent);
}

/* Portal and membership logos: small and quiet. */
.kit-affiliations {
	padding: 1.25rem 0;
	border-top: 1px solid var(--wp--preset--color--line);
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.kit-logo-row {
	gap: 1.75rem !important;
	align-items: center;
}
@media (min-width: 782px) {
	.kit-affiliations .kit-logo-row {
		gap: 3rem !important;
	}
}
/* Phones: one logo per line. */
@media (max-width: 781px) {
	.kit-affiliations .kit-logo-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 1rem !important;
	}
}
.kit-logo-row .wp-block-image {
	margin: 0;
}
.kit-logo-row .wp-block-image img {
	height: 30px;
	width: auto;
	display: block;
}

/* Call-to-action line under the recent sales. */
.kit-cta-line {
	margin-top: var(--wp--preset--spacing--50) !important;
	font-family: var(--wp--preset--font-family--serif);
}

/* Homepage hero: a larger heading, now it stands alone. */
.kit-hero-title.wp-block-heading {
	font-size: clamp(1.75rem, 2.8vw, 2.25rem);
	line-height: 1.2;
	font-weight: 700;
	margin-bottom: 0;
}
.kit-hero-sub {
	margin-top: 0.5rem !important;
	font-family: var(--wp--preset--font-family--serif);
	/* Clearly smaller than the title on phones (about 16px against the
	   title's 21px), growing to the full size on larger screens. */
	font-size: clamp(1rem, 0.75rem + 1.1vw, 1.6rem);
	line-height: 1.35;
	color: var(--wp--preset--color--body);
}

/* "What makes us different" tiles. */
.kit-diff-grid {
	gap: 1.25rem !important;
	margin-top: var(--wp--preset--spacing--40) !important;
}
.kit-diff-tile {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 3px;
	padding: 1.5rem;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.kit-diff-tile:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(30, 30, 30, 0.08);
}
.kit-diff-tile > * {
	margin-block: 0.6rem 0;
}
.kit-diff-tile > :first-child {
	margin-top: 0;
}
.kit-diff-tile h3 {
	font-size: 1.125rem;
}
.kit-diff-tile p {
	font-size: 0.975rem;
	line-height: 1.55;
}
.kit-diff-icon {
	margin: 0;
}

/* Faint tint boxes (Where We Cover / Our Service / Price Ranges). */
.kit-soft-box {
	background: var(--wp--preset--color--tint);
	border-radius: 3px;
	padding: clamp(1.25rem, 2.5vw, 1.75rem);
}
.kit-soft-box > :first-child {
	margin-top: 0;
}

/* Stand-in for the coverage map. */
/* Coverage map (assets/images/coverage-map.svg, inlined): counties of
   northern England shaded by how central they are to D&S's coverage. */
.kit-map {
	--kit-map-halo: var(--wp--preset--color--white);
	margin: 0;
}

.kit-soft-box .kit-map {
	margin-block: 1rem;
}

/* A heading with a smaller, bracketed aside on the line below. */
.kit-heading-with-aside.wp-block-heading {
	margin-bottom: 0;
}
.kit-heading-aside {
	margin-top: 0.15rem !important;
	font-family: var(--wp--preset--font-family--serif);
	font-style: italic;
	font-size: 1.125rem;
	color: var(--wp--preset--color--accent);
}

/* Closing "Do we sound like your sort of agent?" band: more breathing room. */
.kit-final-cta {
	padding-top: clamp(3.5rem, 8vw, 6rem) !important;
	padding-bottom: clamp(3.5rem, 8vw, 6rem) !important;
}
.kit-final-cta > .wp-block-columns {
	gap: clamp(2rem, 6vw, 5rem) !important;
}
.kit-final-cta .wp-block-column > * + * {
	margin-top: 1.25rem;
}
.kit-final-cta .wp-block-buttons {
	margin-top: 2rem !important;
}

/* No stray gap between the page content and the footer. */
.wp-site-blocks > footer {
	margin-block-start: 0;
}

/* Homepage main cards: light tint boxes on a white section, so they stand
   apart from the accent band above and the tint section below. */
.kit-main-services .kit-service-card {
	background: #f3f5ee;
	border-color: #dfe5d3;
}

/* ---------- Tablet & in-between screen sizes ---------- */

/* Tablets (portrait): WordPress stacks all columns below 782px. Keep the
   accent key-points band three across, and turn the photo cards into
   wide horizontal cards (photo left, text right) instead of tall stacks. */
@media (min-width: 600px) and (max-width: 781px) {
	.kit-band .wp-block-columns {
		flex-wrap: nowrap !important;
	}
	.kit-band .wp-block-columns > .wp-block-column {
		flex-basis: 0 !important;
		flex-grow: 1;
	}
	.kit-band .kit-stat {
		font-size: 1.35rem;
	}
	.kit-service-card {
		display: flex;
		flex-direction: row;
		align-items: stretch;
	}
	.kit-service-card > .wp-block-image {
		flex: 0 0 40%;
	}
	.kit-service-card > .wp-block-image img {
		height: 100%;
		aspect-ratio: auto;
	}
	.kit-service-card__body {
		flex: 1;
		margin: 0 !important;
	}
}

/* "What makes us different": balanced, centred rows at every width
   (5 / 3+2 / 2+2+1 / 1), never a lonely tile. */
.kit-diff-grid {
	display: flex !important;
	flex-wrap: wrap;
	justify-content: center;
}
.kit-diff-grid > .kit-diff-tile {
	box-sizing: border-box;
	flex: 0 0 100%;
	margin: 0 !important;
}
@media (min-width: 480px) {
	.kit-diff-grid > .kit-diff-tile { flex-basis: calc((100% - 1.25rem) / 2); }
}
@media (min-width: 700px) {
	.kit-diff-grid > .kit-diff-tile { flex-basis: calc((100% - 2.5rem) / 3); }
}
@media (min-width: 1100px) {
	.kit-diff-grid > .kit-diff-tile { flex-basis: calc((100% - 5rem) / 5); }
}

/* Phones: clear separation between the portal logos and the
   "We are members of" group. */
@media (max-width: 781px) {
	.kit-affiliations .wp-block-columns > .wp-block-column + .wp-block-column {
		margin-top: 1.25rem;
		padding-top: 1.5rem;
		border-top: 1px solid var(--wp--preset--color--line);
	}
}

/* ---------- Enquiry form ---------- */
.kit-enquiry__form {
	display: grid;
	gap: 1rem;
}
.kit-enquiry__row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
	gap: 1rem;
}
.kit-enquiry__field {
	display: grid;
	gap: 0.35rem;
}
.kit-enquiry__field label {
	font-size: 0.9375rem;
	font-weight: 600;
}
.kit-enquiry__field input,
.kit-enquiry__field textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 0.7rem 0.85rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 2px;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--body);
	font: inherit;
	font-size: 1rem;
}
.kit-enquiry__field textarea {
	resize: vertical;
	min-height: 7rem;
}
.kit-enquiry__field input:focus,
.kit-enquiry__field textarea:focus {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 1px;
	border-color: var(--wp--preset--color--accent);
}
.kit-enquiry__submit {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.25rem;
}
.kit-enquiry__submit button {
	cursor: pointer;
	border: 0;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--white);
	font-weight: 700;
	font-size: 1.0625rem;
	padding: 0.95rem 1.6rem;
	border-radius: 2px;
}
.kit-enquiry__submit button:hover {
	background: var(--wp--preset--color--ink);
}
.kit-enquiry__privacy {
	margin: 0;
	font-size: 0.875rem;
	color: var(--wp--preset--color--muted);
}
.kit-enquiry__hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.kit-enquiry__notice {
	padding: 1rem 1.25rem;
	border-radius: 2px;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--body);
	border-left: 4px solid var(--wp--preset--color--accent);
}
.kit-enquiry__notice p {
	margin: 0.25rem 0;
}
.kit-enquiry__notice--error {
	border-left-color: #a23b2a;
	margin-bottom: 1rem;
}

/* On the accent closing band: light labels, white button. */
.kit-final-cta .kit-enquiry__field label,
.kit-final-cta .kit-enquiry__privacy {
	color: var(--wp--preset--color--white);
}
.kit-final-cta .kit-enquiry__field input,
.kit-final-cta .kit-enquiry__field textarea {
	border-color: transparent;
}
.kit-final-cta .kit-enquiry__field input:focus,
.kit-final-cta .kit-enquiry__field textarea:focus {
	outline-color: var(--wp--preset--color--white);
}
.kit-final-cta .kit-enquiry__submit button {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--accent);
}
.kit-final-cta .kit-enquiry__submit button:hover {
	background: var(--wp--preset--color--tint);
}

/* ---------- Button hover / keyboard-focus states ----------
   Every button goes dark (ink, white text) on hover, to match the solid
   accent buttons. !important is needed where WordPress's colour classes
   (e.g. has-white-background-color) use !important themselves. */
.wp-block-button__link,
.kit-enquiry__submit button,
.kit-header-phone a {
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover,
.wp-block-button.is-style-outline > .wp-block-button__link:focus-visible,
.kit-final-cta .wp-block-button__link:hover,
.kit-final-cta .wp-block-button__link:focus-visible,
.kit-enquiry__submit button:hover,
.kit-enquiry__submit button:focus-visible,
.kit-final-cta .kit-enquiry__submit button:hover,
.kit-final-cta .kit-enquiry__submit button:focus-visible {
	background-color: var(--wp--preset--color--ink) !important;
	color: var(--wp--preset--color--white) !important;
	border-color: var(--wp--preset--color--ink) !important;
}

/* ---------- About page ---------- */

/* Alternating photo-and-text rows: every other row puts the photo on the
   right (desktop only; on phones the photo always comes first). */
@media (min-width: 782px) {
	.kit-about-row--flip > .wp-block-columns {
		flex-direction: row-reverse;
	}
}
/* Standard page opening on phones and small tablets:
   title, subtitle, the larger intro sentence (if any), photo, then the
   main text and buttons. The text column is
   "unwrapped" (display: contents) so its title lines and the photo column
   can be put in that order. Used by every kit_hero() page plus About and
   the location/probate pages (kit-hero--stack); not the homepage. */
@media (max-width: 781px) {
	.kit-hero--stack > .wp-block-columns {
		display: flex;
		flex-direction: column;
		align-items: stretch !important;
		gap: 1.25rem !important;
	}
	/* Unwrapped items don't share margins, so space them evenly with the
	   gap instead; the subtitle stays close to its title. */
	.kit-hero--stack > .wp-block-columns > .wp-block-column:first-child > * {
		margin-block: 0 !important;
	}
	.kit-hero--stack > .wp-block-columns > .wp-block-column:first-child > .kit-heading-aside,
	.kit-hero--stack > .wp-block-columns > .wp-block-column:first-child > .kit-eyebrow + .kit-hero-title {
		margin-top: -0.75rem !important;
	}
	.kit-hero--stack > .wp-block-columns > .wp-block-column:first-child {
		display: contents;
	}
	.kit-hero--stack > .wp-block-columns > .wp-block-column:first-child > * {
		order: 3;
	}
	.kit-hero--stack > .wp-block-columns > .wp-block-column:first-child > :is(.kit-eyebrow, .kit-hero-title, .kit-heading-aside, .kit-subtitle, p.has-large-font-size) {
		order: 1;
	}
	.kit-hero--stack > .wp-block-columns > .wp-block-column:last-child {
		order: 2;
		margin: 0.5rem 0;
	}
}
.kit-about-row h2.wp-block-heading {
	margin-top: 0;
}

/* Fee band: the fee itself stands out. */
.kit-about-fee__headline {
	font-family: var(--wp--preset--font-family--serif);
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.5;
}

/* Gentle "already on the market?" pointer. */
.kit-callout {
	margin-top: 1.5rem !important;
	padding: 1.25rem 1.5rem;
	background: var(--wp--preset--color--tint);
	border-left: 4px solid var(--wp--preset--color--accent);
}
.kit-callout > * {
	margin-block: 0.4rem 0;
}
.kit-callout > :first-child {
	margin-top: 0;
}

/* Logo strip inside the About "Where We Advertise" section. */
.kit-about-advertise .kit-affiliations {
	margin-top: var(--wp--preset--spacing--50) !important;
}

/* Homepage heading "Dales & Shires – Estate Agents": always one line.
   Its column is a size container, so the font scales with the space the
   heading actually has (full width on phones, the left column on
   desktop). The text is ~15.9em wide; /16.4 leaves a little margin.
   The first font-size is a fallback for browsers without container units. */
.kit-hero .wp-block-column:has(> .kit-hero-title--oneline) {
	container-type: inline-size;
}
.kit-hero-title--oneline.wp-block-heading {
	white-space: nowrap;
	font-size: clamp(1.1rem, 4.6vw, 2.25rem);
	font-size: min(2.25rem, calc(100cqi / 16.4));
}

/* Homepage hero buttons: stacked full-width on phones. */
@media (max-width: 600px) {
	.kit-hero-buttons {
		flex-direction: column;
		align-items: stretch;
	}
	.kit-hero-buttons > .wp-block-button {
		width: 100%;
	}
	.kit-hero-buttons .wp-block-button__link {
		width: 100%;
		box-sizing: border-box;
		text-align: center;
	}
}

/* ---------- Services & other content pages ---------- */

/* Card grids (services hub, good-to-know, case studies). */
.kit-card-grid {
	gap: 1.5rem !important;
	margin-top: var(--wp--preset--spacing--40) !important;
}
.kit-grid-card {
	display: flex;
	flex-direction: column;
	margin: 0 !important;
}
.kit-grid-card > .kit-service-card__body {
	flex: 1;
	margin: 0 !important;
}
.kit-services-grid .kit-service-card {
	background: #f3f5ee;
	border-color: #dfe5d3;
}
.kit-good-to-know .kit-card {
	margin: 0 !important;
}

/* Contact page. */
.kit-contact-card {
	margin-top: 1.5rem !important;
}
.kit-contact-card > * {
	margin-block: 0.6rem 0;
}
.kit-contact-card > :first-child {
	margin-top: 0;
}
.kit-hours table {
	border-collapse: collapse;
	width: 100%;
}
.kit-hours td {
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
	padding: 0.45rem 0;
}
.kit-hours td:last-child {
	text-align: right;
	font-weight: 600;
}
.kit-contact-form {
	padding: clamp(1.5rem, 3vw, 2.5rem);
	border-top: 4px solid var(--wp--preset--color--accent);
}
.kit-contact-form h2 {
	margin-top: 0;
}
/* Contact page: no visible page title; the three boxes'
   headings are the same size; and from tablets up the form box is exactly
   as tall as the two boxes beside it, whichever side is longer (the
   message box, or the opening-times box, takes up the slack). */
.kit-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}
.kit-contact .wp-block-column > .kit-contact-card:first-child {
	margin-top: 0 !important;
}
.kit-contact-card h2,
.kit-contact-form h2 {
	margin-top: 0;
	/* A little smaller than other headings, so "Our contact details" stays
	   on one line in the narrow box on tablets. */
	font-size: clamp(1.25rem, 1.05rem + 0.55vw, 1.5rem);
}
/* Phone number under the email address, not beside it. */
.kit-contact-form .kit-enquiry__row {
	grid-template-columns: 1fr;
}
@media (min-width: 782px) {
	.kit-contact .wp-block-column {
		display: flex;
		flex-direction: column;
	}
	.kit-contact .wp-block-column > .kit-contact-card:last-child,
	.kit-contact-form,
	.kit-contact-form > .kit-enquiry {
		flex: 1;
	}
	.kit-contact-form,
	.kit-contact-form > .kit-enquiry {
		display: flex;
		flex-direction: column;
		box-sizing: border-box;
	}
	.kit-contact-form .kit-enquiry__form {
		flex: 1;
		grid-template-rows: auto auto 1fr auto;
	}
	.kit-contact-form .kit-enquiry__field:has(textarea) {
		grid-template-rows: auto 1fr;
	}
	.kit-contact-form .kit-enquiry__field textarea {
		height: 100%;
	}
}
/* The address, a line at a time, close under its label. */
.kit-contact-card > .kit-contact-address {
	margin-top: 0.15rem;
	line-height: 1.5;
}
/* Under the details and the form: Windsor House (two thirds) with a map
   beside it (one third), the same height; one above the other on phones. */
.kit-contact-place {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: var(--wp--preset--spacing--40);
	margin-top: var(--wp--preset--spacing--50) !important;
}
.kit-contact-place > * {
	box-sizing: border-box;
	min-width: 0;
}
.kit-contact-photo img {
	aspect-ratio: 2 / 1;
	object-position: center 38%;
}
.kit-contact-map {
	display: flex;
}
.kit-contact-map .kit-map-embed {
	height: auto;
	aspect-ratio: auto;
}
@media (max-width: 781px) {
	.kit-contact-place {
		grid-template-columns: 1fr;
	}
	.kit-contact-map .kit-map-embed {
		aspect-ratio: 3 / 2;
	}
}
.kit-contact-photo figcaption {
	margin-top: 0.6rem;
	margin-bottom: 0; /* WordPress gives an image block's caption space below. */
	font-size: 0.875rem;
	color: var(--wp--preset--color--muted);
	text-align: center;
}
@media (max-width: 600px) {
	.kit-contact-photo img {
		aspect-ratio: 3 / 2;
	}
}

/* Card grids stretch to fill the row (no empty columns), and the six
   services cards always make balanced rows: 3 + 3, then 2 + 2 + 2, then 1. */
.kit-card-grid {
	grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)) !important;
}
.kit-services-grid .kit-card-grid {
	grid-template-columns: 1fr !important;
}
@media (min-width: 600px) {
	.kit-services-grid .kit-card-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}
@media (min-width: 960px) {
	.kit-services-grid .kit-card-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
}

/* Olive band on desktop: a little more room for the small text, so each
   panel's description fits on two lines. */
@media (min-width: 1024px) {
	.kit-band .wp-block-column {
		padding-left: 1.25rem;
		padding-right: 1.25rem;
	}
	.kit-band .wp-block-column p:not(.kit-stat) {
		font-size: 1.0625rem;
	}
}

/* Legal pages (privacy, complaints) */
.kit-legal h1 {
	margin-bottom: 0.25rem;
}

.kit-legal-date {
	color: var(--wp--preset--color--muted);
	font-size: 0.9375rem;
}

.kit-legal h2 {
	margin-top: 2.25rem;
	font-size: 1.375rem;
}

.kit-enquiry__privacy a,
footer .has-small-font-size a {
	color: inherit;
}

/* Quiet links: same colour and font as the text
   around them, underlined only on hover/focus. Used for links that exist
   mainly for search engines (nearby places, county town names). */
a.kit-quiet-link,
.kit-quiet-links a {
	color: inherit;
	font: inherit;
	text-decoration: none;
}

a.kit-quiet-link:hover,
a.kit-quiet-link:focus-visible,
.kit-quiet-links a:hover,
.kit-quiet-links a:focus-visible {
	text-decoration: underline;
}

/* ---------- Text-box grids and band headings ---------- */

/* Page title: the same size as other pages' titles, not the default H1. */
.wp-block-post-title.kit-hero-title {
	font-size: clamp(1.75rem, 2.8vw, 2.25rem);
	line-height: 1.2;
	font-weight: 700;
	margin-bottom: 0;
}

/* Even grid of tint text boxes (two across; one on phones). */
.kit-info-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem;
}

.kit-info-box h3 {
	margin: 0 0 0.75rem;
}

.kit-info-box p:last-child {
	margin-bottom: 0;
}

@media (max-width: 781px) {
	.kit-info-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

.kit-buttons-center {
	justify-content: center;
}

.kit-info-box h4 {
	margin: 1.25rem 0 0.5rem;
	font-size: 1.0625rem;
}

/* Grid items line up: no flow-layout gap above the second and later boxes. */
.kit-info-grid > * {
	margin-block: 0 !important;
}

/* Optional heading above the accent band's panels (probate pages). */
.kit-band .kit-band-title {
	margin: 0 0 var(--wp--preset--spacing--30);
	color: var(--wp--preset--color--white);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 400;
	font-style: italic;
}

.kit-band a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* ---------- Footer ----------
   Desktop: logo over the small print on the left; menu over the phone
   number on the right. Phones and small tablets: everything centred, in
   the order logo, menu, phone number, then the small print at the very
   bottom (as on the old site). */
.kit-footer {
	display: grid;
	grid-template-columns: 1fr auto;
	grid-template-areas:
		"logo  nav"
		"small phone";
	align-items: end;
	gap: 1rem 2rem;
}
.kit-footer__logo {
	grid-area: logo;
	justify-self: start;
	line-height: 0;
}
.kit-footer__logo img {
	width: 220px;
	height: auto;
}
.kit-footer__nav {
	grid-area: nav;
}
.kit-footer__nav ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0.5rem 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.kit-footer a {
	color: var(--wp--preset--color--white);
}
.kit-footer__nav a {
	text-decoration: none;
}
.kit-footer__nav a:hover,
.kit-footer__nav a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 0.3em;
}
.kit-footer__phone {
	grid-area: phone;
	margin: 0;
	text-align: right;
	font-size: var(--wp--preset--font-size--large);
	font-weight: 700;
}
.kit-footer__phone a {
	text-decoration: none;
}
.kit-footer__address {
	display: block;
}
.kit-footer__small {
	grid-area: small;
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.7;
}
@media (max-width: 781px) {
	.kit-footer {
		grid-template-columns: 1fr;
		grid-template-areas:
			"logo"
			"nav"
			"phone"
			"small";
		justify-items: center;
		gap: 1.5rem;
		text-align: center;
	}
	.kit-footer__logo {
		justify-self: center;
	}
	.kit-footer__nav ul {
		justify-content: center;
		gap: 0.6rem 1.25rem;
	}
	.kit-footer__phone {
		text-align: center;
	}
	.kit-footer__small {
		margin-top: 0.5rem;
		padding-top: 1.25rem;
		border-top: 1px solid rgb(255 255 255 / 0.12);
		font-size: 0.8125rem;
	}
	.kit-footer__address {
		margin-bottom: 1.7em; /* A blank line after the address on phones. */
	}
}

/* Phones: a little more space between boxes once they stack. The
   recent-sales photos keep their tight two-per-row grid. */
@media (max-width: 781px) {
	.wp-block-columns.wp-block-columns,
	.kit-card-grid.kit-card-grid,
	.kit-info-grid.kit-info-grid,
	.kit-diff-grid.kit-diff-grid {
		row-gap: 1.75rem !important;
	}
	.kit-band .wp-block-columns.wp-block-columns {
		row-gap: 1.5rem !important;
	}
}

/* Phones: 50% more space in the homepage heading: title to the
   line below (8px -> 12px), and that line to the buttons (20px -> 30px). */
@media (max-width: 781px) {
	.kit-hero-title--oneline + .kit-hero-sub {
		margin-top: 0.75rem !important;
	}
	.kit-hero-sub + .kit-hero-buttons {
		margin-top: 1.875rem !important;
	}
	/* Centred under the centred phone logo; the rest of the page
	   stays left-aligned. */
	.kit-hero-title--oneline,
	.kit-hero-title--oneline + .kit-hero-sub {
		text-align: center;
	}
}

/* ---------- OpenStreetMap maps (inc/maps.php) ---------- */
.kit-map-frame {
	margin: 0;
}
.kit-map-embed {
	position: relative;
	isolation: isolate; /* Keep the map's layers under the sticky header. */
	z-index: 0;
	width: 100%;
	aspect-ratio: 2 / 1;
	background: var(--wp--preset--color--tint);
	font: inherit;
}
.kit-map-embed .leaflet-control-attribution {
	font-size: 0.6875rem;
}
.kit-map-marker {
	color: var(--wp--preset--color--accent); /* The pin takes the site's main colour. */
	background: none;
	border: 0;
}

/* No stranded words: headings share their words evenly
   between lines, and paragraphs avoid a single word alone on the last
   line. Browsers without support simply wrap as before. */
h1, h2, h3, h4, h5, h6,
.wp-block-heading {
	text-wrap: balance;
}
p,
li,
figcaption,
blockquote,
.wp-element-caption {
	text-wrap: pretty;
}

/* Enquiry form: slimmer fields. 44px tall: still an
   easy tap target, and 16px text so iPhones don't zoom in on tapping. */
.kit-enquiry__form {
	gap: 0.85rem;
}
.kit-enquiry__field {
	gap: 0.3rem;
}
.kit-enquiry__field input,
.kit-enquiry__field textarea {
	padding: 0.55rem 0.75rem;
	line-height: 1.4;
	font-size: 1rem;
}
.kit-enquiry__field input {
	min-height: 2.75rem;
}
.kit-enquiry__field textarea {
	min-height: 6rem;
}

/* Closing band: both halves ("Do we sound like your sort of agent?" and
   the form) sit in matching, slightly darker panels with the same padding,
   so they read as a pair on desktop and as two clear boxes when stacked on
   phones. */
.kit-final-cta > .wp-block-columns > .wp-block-column {
	padding: clamp(1.25rem, 3vw, 2rem);
	background: var(--wp--custom--accent-dark);
	border-radius: 3px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.kit-final-cta > .wp-block-columns > .wp-block-column > h2 {
	margin-top: 0;
	font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem);
}
.kit-final-cta > .wp-block-columns {
	gap: clamp(1.5rem, 3vw, 2rem) !important;
}
@media (max-width: 781px) {
	.kit-final-cta > .wp-block-columns {
		row-gap: 1.75rem !important;
	}
}

/* Frequently asked questions: compact white rows on the tint section,
   lined up with the page content, each folded until its question is
   clicked or tapped. */
.kit-faq-section {
	padding-top: var(--wp--preset--spacing--50) !important;
	padding-bottom: var(--wp--preset--spacing--50) !important;
}
.kit-faq-section h2 {
	font-size: 1.5rem;
}
.kit-faqs {
	display: grid;
	justify-items: start;
	gap: 0.25rem;
}
.kit-faq {
	box-sizing: border-box;
	width: 100%;
	max-width: 46rem;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 3px;
	font-size: 0.9375rem;
}
.kit-faq summary {
	position: relative;
	display: block;
	padding: 0.4rem 2.25rem 0.4rem 0.85rem;
	cursor: pointer;
	list-style: none;
	font-family: var(--wp--preset--font-family--serif);
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.4;
	color: var(--wp--preset--color--ink);
}
.kit-faq summary::-webkit-details-marker {
	display: none;
}
.kit-faq summary::after {
	content: "+";
	position: absolute;
	right: 0.9rem;
	top: 50%;
	transform: translateY(-50%);
	font-family: var(--wp--preset--font-family--sans);
	font-size: 1.25rem;
	font-weight: 400;
	line-height: 1;
	color: var(--wp--preset--color--accent);
}
.kit-faq[open] summary::after {
	content: "–";
}
.kit-faq summary:hover,
.kit-faq summary:focus-visible {
	color: var(--wp--preset--color--accent);
}
.kit-faq summary:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}
.kit-faq > :not(summary) {
	margin: 0;
	padding: 0 0.85rem 0.75rem;
	line-height: 1.6;
}
.kit-faq-section .kit-cta-line {
	font-size: var(--wp--preset--font-size--medium) !important;
}

/* Small line under a "Request a FREE valuation here:" form heading. */
.kit-final-cta .kit-form-subline {
	margin-top: 0.4rem !important;
	font-size: 0.9375rem;
	line-height: 1.5;
	opacity: 0.9;
}

/* FAQ page: each answer's link on to the page that helps most. */
.kit-faq .kit-faq__more {
	padding-top: 0 !important;
	font-weight: 600;
}

/* "What our clients say" (shared by every page's closing section): a white
   section with pale tint quote boxes. Where the section
   above is also white, it turns paper so the two don't merge. */
.has-white-background-color + .kit-testimonials.has-white-background-color {
	background-color: var(--wp--preset--color--paper) !important;
}

/* "Open all · Close all" above each FAQ list (added by assets/js/faqs.js,
   so they only appear when they work). */
.kit-faq-controls {
	justify-self: start;
	margin: 0 0 0.35rem;
	font-size: 0.875rem;
	color: var(--wp--preset--color--muted);
}
.kit-faq-controls button {
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	font-weight: 600;
	color: var(--wp--preset--color--accent);
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--line);
	text-underline-offset: 0.2em;
	cursor: pointer;
}
.kit-faq-controls button:hover,
.kit-faq-controls button:focus-visible {
	text-decoration-color: currentColor;
}
/* The FAQ list sets its own spacing: remove WordPress's standard gap
   between blocks in a group, which otherwise pushes the questions apart. */
.kit-faqs > * {
	margin-block: 0 !important;
}
.kit-faqs > .kit-faq-controls {
	margin-bottom: 0.35rem !important;
}
.kit-faqs > .kit-faq-controls--bottom {
	margin-top: 0.35rem !important;
	margin-bottom: 0 !important;
}
/* FAQ page: "Have another question?" line under the list. */
.kit-faq-more-questions {
	margin-top: var(--wp--preset--spacing--40) !important;
	font-family: var(--wp--preset--font-family--serif);
	font-size: var(--wp--preset--font-size--medium);
}
.kit-faq-more-questions a {
	white-space: nowrap;
}

/* Printing (Oct 2026). Pages print as they look on screen, colours and
   all, but on white paper, with the logo bar once at the top like a
   letterhead and nothing that only works on a screen. */
.kit-print-only {
	display: none;
}
@media print {
	@page {
		margin: 12mm;
	}
	html {
		font-size: 87.5%; /* Screen sizes are large on paper. */
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}
	body {
		background: var(--wp--preset--color--white) !important;
	}
	.kit-print-only {
		display: block;
	}
	.kit-site-header {
		position: static;
	}
	.kit-mainbar {
		display: flex;
		justify-content: center;
		padding: 0.5rem 0;
	}
	.kit-logo img {
		width: 150px;
	}
	.kit-header-call,
	.kit-mainbar__right,
	.wp-block-buttons,
	.kit-map-frame,
	.skip-link {
		display: none !important;
	}
	h1, h2, h3, h4 {
		break-after: avoid;
	}
	img, figure, .kit-card {
		break-inside: avoid;
	}
}
