/**
 * Area pages (2026) — tpl-area-2026.php.
 *
 * Only the pieces the area pages have and the homepage does not. Everything
 * else (hero, enquiry card and form, trust band, review cards, steps, place
 * cards, questions, closing panel, button bar) comes from
 * css/homepage-2026.css, which loads first. Same tokens, same breakpoints
 * (768 and 1024 px), mobile first.
 *
 * Paragraph margins use !important, as in css/homepage-2026.css, so they hold
 * against any global paragraph rule a plugin may add.
 *
 * @package K4_Kitchens_New
 * @author  Steve Austen
 * @company The PCGP
 * @version 1.0.0
 */

/* ═══════════════════════════════════════════
   Hero: the headline
   The town is the headline; the gold words after it ("from Tankerton to
   Seasalter") are longer than the homepage's, so they sit on their own
   line at a smaller size instead of wrapping over two more lines.
   ═══════════════════════════════════════════ */
.k4area-page .k4hp-hero__title em {
	display: block;
	margin-top: 0.14em;
	font-size: 0.6em;
	line-height: 1.15;
	letter-spacing: -0.015em;
}

/* ═══════════════════════════════════════════
   Enquiry section: the town's reviews in brief
   ═══════════════════════════════════════════ */

/* Laptops, beside the card (the aside is hidden below 1024 px by the
   homepage stylesheet): a big number and what it means. */
.k4area-stat {
	display: flex;
	align-items: baseline;
	gap: 16px;
	margin-top: 8px !important;
}

.k4area-stat__number {
	flex: none;
	font-size: 4.5rem;
	font-weight: 800;
	font-style: italic;
	line-height: 1;
	letter-spacing: -0.03em;
	/* A little room on the right, so the italic figure is not clipped. */
	padding-right: 0.06em;
	color: var(--k4-gold);
}

.k4area-stat__text {
	max-width: 22em;
	font-size: 1.125rem;
	line-height: 1.45;
	color: #ffffff;
}

.k4area-newest {
	margin-top: 18px !important;
	font-size: 0.9375rem;
	color: rgba(255, 255, 255, 0.82);
}

.k4area-newest strong {
	font-weight: 600;
	color: #ffffff;
}

.k4area-newest span {
	display: block;
	margin-top: 2px;
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.75);
}

.k4hp-enquiry__aside .k4hp-text-link {
	margin-top: 14px;
}

/* Phones and tablets, under the send button: one line. */
.k4area-proof-line {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 18px !important;
	padding-top: 16px;
	border-top: 1px solid var(--k4hp-line);
	font-size: 0.875rem;
	font-weight: 600;
	text-align: center;
	color: var(--k4-ink);
}

.k4area-proof-line .k4-icon {
	flex: none;
	width: 16px;
	height: 16px;
	color: var(--k4-gold);
}

/* ═══════════════════════════════════════════
   Homes and kitchens in the town
   ═══════════════════════════════════════════ */
.k4area-local__grid {
	display: grid;
	gap: 32px;
}

.k4area-local__para {
	margin-top: 14px !important;
	max-width: 40em;
	font-size: 1.0625rem;
	text-wrap: pretty;
}

.k4area-local__copy .k4hp-cta-group {
	margin-top: 26px;
}

/* The facts card: distance, visit, reviews, council. */
.k4area-facts {
	padding: 24px 22px 10px;
	border-radius: var(--k4hp-radius);
	background: var(--k4-cream);
}

.k4hp-page .k4area-facts__title {
	font-size: 1.125rem;
}

.k4area-facts__list {
	margin: 10px 0 0;
}

.k4area-facts__list > div {
	padding: 12px 0 14px;
	border-top: 1px solid var(--k4-sand);
}

.k4area-facts__list > div:first-child {
	border-top: 0;
}

.k4area-facts__list dt {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--k4-gold-deep);
}

.k4area-facts__list dd {
	margin: 3px 0 0;
	font-weight: 600;
	line-height: 1.45;
	color: var(--k4-ink);
}

/* K4's own jobs in the town (only when added in wp-admin). */
.k4area-projects {
	margin-top: 48px;
}

.k4hp-page .k4area-projects__title {
	font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.5rem);
}

.k4area-projects__grid {
	display: grid;
	gap: 18px;
	margin-top: 20px !important;
}

.k4area-project {
	overflow: hidden;
	border-radius: var(--k4hp-radius);
	background: #ffffff;
	box-shadow: 0 1px 0 var(--k4-sand), var(--k4hp-shadow);
}

.k4area-project__image img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.k4area-project__body {
	padding: 18px 20px 22px;
}

.k4hp-page .k4area-project__title {
	font-size: 1.0625rem;
}

.k4area-project__meta {
	margin-top: 4px !important;
	font-size: 0.8125rem;
	color: var(--k4-muted);
}

.k4area-project__body p:not(.k4area-project__meta) {
	margin-top: 8px !important;
	font-size: 0.9375rem;
}

/* ═══════════════════════════════════════════
   Reviews (charcoal section)
   ═══════════════════════════════════════════ */

/* The section intro sits on charcoal here: light text (the homepage's grey
   is for white and cream). */
.k4area-reviews .k4area-reviews__intro {
	color: rgba(255, 255, 255, 0.82);
}

/* ═══════════════════════════════════════════
   Where we work
   ═══════════════════════════════════════════ */

/* White here (the homepage's areas section is cream), so the cream "How it
   works" section below stands apart from it. */
.k4area-places.k4hp-areas {
	background: #ffffff;
}

.k4area-places__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 10px;
	max-width: 980px;
	margin: 0 auto !important;
}

.k4area-places__list li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border: 1px solid var(--k4-sand);
	border-radius: 999px;
	background: var(--k4-cream);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--k4-ink);
}

.k4area-places__list .k4-icon {
	flex: none;
	width: 14px;
	height: 14px;
	color: var(--k4-gold-deep);
}

/* Links to the nearby area pages. */
.k4area-near {
	margin-top: 44px;
	text-align: center;
}

.k4hp-page .k4area-near__title {
	font-size: 1.125rem;
}

.k4area-places .k4area-near__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	max-width: 720px;
	margin: 14px auto 0 !important;
}

.k4area-near__list li {
	display: flex;
	flex: 0 1 220px;
}

.k4area-near .k4hp-area {
	text-align: left;
}

.k4area-near > .k4hp-text-link {
	margin-top: 18px;
}

/* ═══════════════════════════════════════════
   How it works and guide prices (cream, like the homepage's consultation)
   ═══════════════════════════════════════════ */
.k4area-how {
	background: var(--k4-cream);
}

.k4area-how .k4area-steps {
	margin-top: 0 !important;
}

.k4area-prices {
	margin-top: 28px;
	padding: 24px 22px;
	border-radius: var(--k4hp-radius-lg);
	background: #ffffff;
	box-shadow: 0 1px 0 var(--k4-sand);
}

.k4hp-page .k4area-prices__title {
	font-size: 1.25rem;
}

.k4area-prices__list {
	margin-top: 10px !important;
}

.k4area-prices__list li {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 0;
	border-top: 1px solid var(--k4hp-line);
}

.k4area-prices__list li:first-child {
	border-top: 0;
}

.k4area-prices__name {
	font-weight: 600;
	color: var(--k4-ink);
}

.k4area-prices__price {
	font-size: 1.25rem;
	font-weight: 800;
	white-space: nowrap;
	color: var(--k4-ink);
}

.k4area-prices__links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 28px;
	margin-top: 16px;
}

/* ═══════════════════════════════════════════
   Questions: links inside answers
   ═══════════════════════════════════════════ */
.k4area-faq .k4hp-faq__answer p + p {
	margin-top: 10px !important;
}

/* ═══════════════════════════════════════════
   Tablets and up
   ═══════════════════════════════════════════ */
@media (min-width: 768px) {
	.k4area-projects__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.k4area-prices {
		padding: 30px 32px;
	}
}

/* ═══════════════════════════════════════════
   Laptops
   ═══════════════════════════════════════════ */
@media (min-width: 1024px) {
	/* The line under the send button: the aside says it on laptops. */
	.k4area-proof-line {
		display: none;
	}

	.k4area-local__grid {
		grid-template-columns: minmax(0, 1.35fr) minmax(300px, 1fr);
		align-items: start;
		gap: 64px;
	}

	.k4area-facts {
		padding: 30px 30px 14px;
	}

	.k4area-projects__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	/* Prices beside their heading and links. */
	.k4area-prices {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
		column-gap: 56px;
		padding: 34px 40px;
	}

	.k4area-prices__title,
	.k4area-prices .k4hp-note,
	.k4area-prices__links {
		grid-column: 1;
	}

	.k4area-prices__list {
		grid-column: 2;
		grid-row: 1 / span 3;
		margin-top: 0 !important;
	}
}

/* ═══════════════════════════════════════════
   Nearby reviews: short entries under the town's own (charcoal section)
   ═══════════════════════════════════════════ */
.k4area-nearby {
	margin: 8px 0 22px;
	padding-top: 22px;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.k4hp-page .k4area-nearby__title {
	font-size: 1rem;
	color: #ffffff;
}

.k4area-nearby__list {
	display: grid;
	gap: 10px;
	margin-top: 12px !important;
}

.k4area-nearby__list li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.k4area-nearby__score {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 4px;
	min-width: 3.6em;
	font-weight: 800;
	color: #ffffff;
}

.k4area-nearby__score .k4-icon {
	width: 14px;
	height: 14px;
	color: var(--k4-gold);
}

.k4area-nearby__text strong {
	font-weight: 600;
	color: #ffffff;
}

.k4area-nearby__text span {
	display: block;
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.75);
}

@media (min-width: 768px) {
	.k4area-nearby__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 16px;
	}
}
