/*
 * Surveys hub page — template-surveys.php.
 * Enqueued on that template only.
 * All values use existing design tokens — no new variables.
 */

/*--------------------------------------------------------------
# Page header
--------------------------------------------------------------*/

.surveys-header {
	padding: var(--space-9) var(--space-5) var(--space-7);
	text-align: center;
	background-color: var(--bone);
}

.surveys-header__inner {
	max-width: var(--prose-max);
	margin-inline: auto;
}

.surveys-header .page-eyebrow {
	display: block;
	font-size: var(--text-xs);
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--mute);
	margin-bottom: var(--space-3);
}

.surveys-title {
	font-family: 'Fraunces', Georgia, serif;
	font-size: clamp(var(--text-2xl), 5vw, var(--text-3xl));
	font-weight: 700;
	line-height: 1.1;
	color: var(--ink);
	margin: 0 0 var(--space-3);
}

.surveys-dek {
	font-family: 'Fraunces', Georgia, serif;
	font-size: clamp(var(--text-lg), 2.5vw, var(--text-xl));
	font-weight: 400;
	font-style: italic;
	color: var(--mute);
	line-height: 1.4;
	margin: 0 0 var(--space-5);
}

.surveys-rule {
	width: 60px;
	height: 2px;
	background-color: var(--gold);
	border: none;
	margin: 0 auto var(--space-6);
}

.surveys-intro {
	font-size: var(--text-lg);
	line-height: 1.6;
	color: var(--ink);
	text-align: left;
}

.surveys-intro p {
	margin: 0 0 var(--space-4);
}

.surveys-intro p:last-child {
	margin-bottom: 0;
}

/*--------------------------------------------------------------
# Service blocks
# Each block is full-width for background colour, inner constrained
--------------------------------------------------------------*/

.survey-block {
	padding: var(--space-8) var(--space-5);
}

.survey-block--bone {
	background-color: var(--bone);
}

.survey-block--paper {
	background-color: var(--paper);
	border-top: 1px solid var(--rule);
	border-bottom: 1px solid var(--rule);
}

.survey-block__inner {
	max-width: var(--prose-max);
	margin-inline: auto;
}

/* Level badge — "Level 2", "Level 3", "Valuation" */
.survey-level {
	display: inline-block;
	font-family: 'Inter', sans-serif;
	font-size: var(--text-xs);
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wine);
	border: 1px solid var(--wine);
	border-radius: 3px;
	padding: 3px 10px;
	margin-bottom: var(--space-3);
}

.survey-block h2 {
	font-family: 'Fraunces', Georgia, serif;
	font-size: clamp(var(--text-xl), 3vw, var(--text-2xl));
	font-weight: 700;
	line-height: 1.2;
	color: var(--ink);
	margin: 0 0 var(--space-3);
}

/* Intro tagline — "For most buyers, on most homes..." */
.survey-tagline {
	font-size: var(--text-base);
	font-style: italic;
	color: var(--mute);
	line-height: 1.5;
	margin: 0 0 var(--space-5);
	padding-bottom: var(--space-4);
	border-bottom: 1px solid var(--rule);
}

.survey-block p {
	font-size: var(--text-base);
	line-height: 1.6;
	color: var(--ink);
	margin: 0 0 var(--space-4);
}

.survey-block p:last-of-type {
	margin-bottom: 0;
}

/* CTA wrapper within a block */
.survey-block__cta {
	margin-top: var(--space-5);
	padding-top: var(--space-5);
	border-top: 1px solid var(--rule);
}

/*--------------------------------------------------------------
# Scan list — RICS Valuations
# Tight spacing — this is a reference list, not narrative text
--------------------------------------------------------------*/

.survey-scan-list {
	list-style: none;
	margin: var(--space-4) 0;
	padding: 0;
}

.survey-scan-list li {
	font-size: var(--text-sm);
	line-height: 1.45;
	color: var(--ink);
	padding: var(--space-2) 0 var(--space-2) var(--space-4);
	border-bottom: 1px solid var(--rule);
	position: relative;
}

.survey-scan-list li:first-child {
	border-top: 1px solid var(--rule);
}

.survey-scan-list li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background-color: var(--gold);
}

.survey-scan-list li strong {
	font-weight: 600;
	color: var(--ink);
}

/*--------------------------------------------------------------
# "Why use Bailey Bird & Warren" — closing section
--------------------------------------------------------------*/

.surveys-why {
	background-color: var(--bone);
	padding: var(--space-8) var(--space-5);
}

.surveys-why__card {
	max-width: var(--prose-max);
	margin-inline: auto;
	background-color: var(--paper);
	border-left: 4px solid var(--wine);
	padding: var(--space-6);
}

.surveys-why__card .section-eyebrow {
	display: block;
	font-size: var(--text-xs);
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wine);
	margin-bottom: var(--space-3);
}

.surveys-why__card h2 {
	font-family: 'Fraunces', Georgia, serif;
	font-size: clamp(var(--text-xl), 3vw, var(--text-2xl));
	font-weight: 700;
	line-height: 1.2;
	color: var(--ink);
	margin: 0 0 var(--space-5);
}

.surveys-why__card p {
	font-size: var(--text-lg);
	line-height: 1.6;
	color: var(--ink);
	margin: 0 0 var(--space-4);
}

.surveys-why__card p:last-of-type {
	margin-bottom: 0;
}

.surveys-why__cta {
	margin-top: var(--space-5);
	padding-top: var(--space-5);
	border-top: 1px solid var(--rule);
}

/*--------------------------------------------------------------
# Sub-page skeleton (template-survey-sub.php)
--------------------------------------------------------------*/

.survey-sub-header {
	background-color: var(--bone);
	padding: var(--space-8) var(--space-5) var(--space-7);
	border-bottom: 1px solid var(--rule);
}

.survey-sub-header__inner {
	max-width: var(--prose-max);
	margin-inline: auto;
}

.survey-sub-header .back-link {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	font-size: var(--text-sm);
	color: var(--wine);
	text-decoration: none;
	margin-bottom: var(--space-4);
}

.survey-sub-header .back-link:hover {
	color: var(--wine-dark);
	text-decoration: underline;
}

.survey-sub-header h1 {
	font-family: 'Fraunces', Georgia, serif;
	font-size: clamp(var(--text-2xl), 4vw, var(--text-3xl));
	margin: 0 0 var(--space-3);
}

.survey-sub-header .survey-level {
	margin-bottom: var(--space-3);
}

.survey-sub-content {
	padding: var(--space-8) var(--space-5);
}

.survey-sub-content__inner {
	max-width: var(--prose-max);
	margin-inline: auto;
}

.survey-sub-placeholder {
	background-color: var(--paper);
	border: 2px dashed var(--rule);
	padding: var(--space-6);
	text-align: center;
}

.survey-sub-placeholder p {
	font-size: var(--text-base);
	color: var(--mute);
	margin: 0 0 var(--space-3);
}

.survey-sub-placeholder p:last-child {
	margin-bottom: 0;
}

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/

@media ( max-width: 700px ) {
	.surveys-header {
		padding: var(--space-7) var(--space-4) var(--space-6);
	}

	.survey-block {
		padding: var(--space-7) var(--space-4);
	}

	.surveys-why {
		padding: var(--space-7) var(--space-4);
	}

	.surveys-why__card {
		padding: var(--space-5) var(--space-4);
	}

	.survey-sub-header {
		padding: var(--space-7) var(--space-4) var(--space-5);
	}

	.survey-sub-content {
		padding: var(--space-7) var(--space-4);
	}
}
