/**
 * Sapphire Pools — shared stylesheet for all "sp-*" ACF blocks.
 *
 * Single file for every new block built from the Figma "Service Page"
 * design (Hero → FAQ), enqueued globally in functions.php
 * (sapphire_pools_enqueue_block_styles). Do not create a per-block
 * block.css for these blocks — add new rules to this file instead, under
 * the matching "== Block: ... ==" section below.
 *
 * Design tokens (colors / type / radii) are pulled straight from the
 * Figma file's variables (Figma MCP get_variable_defs) and cross-checked
 * against the per-node fallbacks in the generated design context, since
 * a couple of variable names resolve to different actual colors
 * depending on which background they sit on in the file.
 */

/* ==========================================================================
   Tokens
   ========================================================================== */

:root {
	--sp-cream: #fffaef;
	--sp-black: #0c0c0c;
	--sp-dark: #1f2124;
	--sp-white: #ffffff;
	--sp-gold: #cbac56;
	--sp-gold-tint: rgba(203, 172, 86, 0.13);
	--sp-muted: #8d8d8d;
	--sp-border: #efe5c9;
	--sp-border-dark: rgba(255, 250, 239, 0.16);

	--sp-font-title: 'PP Editorial Old', 'Playfair Display', Georgia, 'Times New Roman', serif;
	--sp-font-body: 'Cairo', -apple-system, BlinkMacSystemFont, sans-serif;

	--sp-h1: 400 96px/1.125 var(--sp-font-title);
	--sp-h1-mob: 400 56px/1.25 var(--sp-font-title);
	--sp-h2: 400 48px/1.25 var(--sp-font-title);
	--sp-h3: 400 32px/1.25 var(--sp-font-title);
	--sp-h4: 700 24px/1.25 var(--sp-font-body);
	--sp-h5: 600 20px/1.25 var(--sp-font-body);
	--sp-text: 400 16px/1.5 var(--sp-font-body);
	--sp-xs-text: 600 12px/1 var(--sp-font-body);
	--sp-btn-text: 700 16px/1 var(--sp-font-body);

	--sp-radius-xxl: 32px;
	--sp-radius-md: 24px;
	--sp-radius-lg: 16px;
	--sp-radius-full: 9999px;

	--sp-container-max: 1560px;
	--sp-container-pad: clamp(16px, 4vw, 64px);
	--sp-section-pad-y: clamp(32px, 6vw, 64px);
}

/* ==========================================================================
   Base / shared
   ========================================================================== */

.page-template-template-sp-service header > .she-header-yes {
	background-color: rgb(0, 0, 0) !important;
	position: fixed !important;
	top: 0;
	width: 100%;
}
.page-template-template-sp-service.admin-bar header > .she-header-yes {
	top: 46px;
}


.sp-block {
	box-sizing: border-box;
}

.sp-block *,
.sp-block *::before,
.sp-block *::after {
	box-sizing: inherit;
}

.sp-container {
	width: 100%;
	max-width: var(--sp-container-max);
	margin-inline: auto;
	padding-inline: var(--sp-container-pad);
}

.sp-section {
	padding-block: var(--sp-section-pad-y);
}

.sp-section--cream {
	background: var(--sp-cream);
}

.sp-section--dark {
	background: var(--sp-black);
	color: var(--sp-cream);
}

.sp-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font: var(--sp-xs-text);
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--sp-gold);
}

.sp-title {
	font: var(--sp-h2);
	margin: 0;
	color: var(--sp-black);
}

.sp-section--dark .sp-title {
	color: var(--sp-white);
}

.sp-subtitle {
	font: var(--sp-text);
	color: var(--sp-dark);
	margin: 16px 0 0;
	max-width: 56ch;
}

.sp-section--dark .sp-subtitle {
	color: var(--sp-cream);
}

.sp-icon {
	display: block;
	flex-shrink: 0;
}

/* Buttons */

.sp-btn {
	appearance: none;
	border: none;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	flex: 0 0 auto;
	gap: 8px;
	padding: 16px 24px;
	border-radius: var(--sp-radius-full);
	font: var(--sp-btn-text);
	text-transform: capitalize;
	text-decoration: none;
	transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
	white-space: nowrap;
}

.sp-btn:hover {
	background-color: #CBAC56;
	border-color: #CBAC56;
	color: #FFFAEF;
}

.sp-btn .sp-icon {
	width: 20px;
	height: 20px;
}

.sp-btn--primary {
	background: var(--sp-black);
	color: var(--sp-gold);
}

.sp-btn--outline {
	background: transparent;
	color: var(--sp-cream);
	border: 1px solid var(--sp-cream);
	padding: 15px 23px;
}

.sp-btn--outline-dark {
	background: transparent;
	color: var(--sp-black);
	border: 1px solid var(--sp-black);
	padding: 15px 23px;
}

.sp-btn--block {
	width: 100%;
	align-self: stretch;
}

/* Checkmark / benefit list, reused by Intro + WhySapphire */

.sp-check-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 16px;
}

.sp-check-list__item {
	display: flex;
	align-items: flex-start;
	gap: 16px;
}

.sp-check-list__bullet {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: var(--sp-radius-full);
	background: var(--sp-gold-tint);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--sp-gold);
}

.sp-check-list__bullet .sp-icon {
	width: 24px;
	height: 24px;
}

.sp-check-list__custom-icon {
	width: 24px;
	height: 24px;
	-o-object-fit: contain;
	object-fit: contain;
	display: block;
}

.sp-check-list__title {
	font: 600 20px/1.25 var(--sp-font-body);
	color: var(--sp-black);
	margin: 0 0 2px;
}

.sp-section--dark .sp-check-list__title,
.sp-check-list__title--on-dark {
	color: var(--sp-white);
}

.sp-check-list__text {
	font: var(--sp-text);
	color: var(--sp-dark);
	margin: 0;
}

.sp-section--dark .sp-check-list__text {
	color: var(--sp-cream);
}

/* Star ratings row, reused by Hero + WhySapphire — see the full
   .sp-ratings / .sp-rating* rule set under "Shared: ratings row
   partial" further down (kept together with the other cross-block
   partials rather than duplicated here). */

.sp-rating__score-row {
	display: flex;
	align-items: center;
	gap: 8px;
}

.sp-rating__score {
	font: 700 16px/1 var(--sp-font-body);
	color: var(--sp-gold);
}

.sp-rating__stars {
	display: flex;
	gap: 4px;
}

.sp-rating__stars .sp-icon {
	width: 16px;
	height: 16px;
	color: var(--sp-gold);
}

.sp-rating__source {
	font: 700 12px/1 var(--sp-font-body);
	color: var(--sp-cream);
	margin: 4px 0 0;
}

.sp-section--cream .sp-rating__source,
.sp-rating__source--on-light {
	color: var(--sp-dark);
}

/* Photo placeholder (used whenever an ACF image field is empty) */

.sp-placeholder {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 160px;
	background: repeating-linear-gradient(
		135deg,
		var(--sp-border) 0,
		var(--sp-border) 10px,
		#f4ecd6 10px,
		#f4ecd6 20px
	);
	color: var(--sp-dark);
	border-radius: inherit;
}

.sp-placeholder__label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	border-radius: var(--sp-radius-full);
	background: var(--sp-cream);
	font: 600 13px/1 var(--sp-font-body);
	color: var(--sp-dark);
	box-shadow: 0 1px 2px rgba(12, 12, 12, 0.12);
}

.sp-placeholder__label .sp-icon {
	width: 14px;
	height: 14px;
	color: var(--sp-gold);
}

/* ==========================================================================
   Block: Hero (sp-hero)
   ========================================================================== */

.sp-hero {
	background: var(--sp-cream);
	padding: 16px;
}

.sp-hero__stage {
	position: relative;
	min-height: clamp(560px, 58vw, 760px);
	border-radius: var(--sp-radius-xxl);
	overflow: hidden;
	background: var(--sp-dark);
	display: flex;
}

.sp-hero__bg-media {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sp-hero__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(12, 12, 12, 0.45) 0%, rgba(12, 12, 12, 0.15) 35%, rgba(12, 12, 12, 0.55) 100%);
	background: linear-gradient(0deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.5) 100%);
}

.sp-hero__content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	gap: 64px;
	align-items: flex-start;
	padding-top: clamp(20px, 8vw, 40px);
}

.sp-hero__left {
	flex: 1 1 420px;
	display: flex;
	flex-direction: column;
	gap: 64px;
	color: var(--sp-cream);
}

.sp-hero__right {
	flex: 1 1 380px;
	max-width: 560px;
	width: 100%;
	margin-left: auto;
	display: flex;
	flex-direction: column;
}

/* Breadcrumbs — rendered via yoast_breadcrumb() (same wrapper markup/
   classes as single.php & archive.php: #breadcrumbs.hero-breadcrumbs),
   with an extra .sp-hero__breadcrumbs class to recolor for the dark
   hero background instead of the light-on-cream blog styling. */

.sp-hero__breadcrumbs {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	flex: 1 1 100%;
	max-width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	white-space: nowrap;
	scrollbar-width: none;
	-ms-overflow-style: none;
	color: var(--sp-muted);
	font: 700 16px/1 var(--sp-font-body);
}

.sp-hero__breadcrumbs::-webkit-scrollbar {
	display: none;
}

.sp-hero__breadcrumbs span {
	white-space: nowrap;
}

.sp-hero__breadcrumbs span > span {
	display: inline-block;
	padding: 0 8px;
}

.sp-hero__breadcrumbs span > span:first-child {
	padding-left: 0;
}

.sp-hero__breadcrumbs a {
	color: var(--sp-cream);
	font-weight: 700;
	text-decoration: none;
}

.sp-hero__breadcrumbs a:hover {
	text-decoration: underline;
}

.sp-hero__breadcrumbs .breadcrumb_last {
	color: var(--sp-cream);
}

.sp-hero__texts {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.sp-hero__heading {
	font: 400 clamp(32px, 4.5vw, 56px) / 1.2 var(--sp-font-title);
	color: var(--sp-white);
	margin: 0;
}

.sp-hero__subheading {
	font: 600 20px/1.4 var(--sp-font-body);
	color: var(--sp-cream);
	margin: 0;
	max-width: 46ch;
}

.sp-hero__form-card {
	background: var(--sp-white);
	border-radius: var(--sp-radius-md);
	padding: 24px;
	box-shadow: 0 24px 48px rgba(12, 12, 12, 0.28);
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: 16px;
}

.sp-hero__form-shortcode {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.sp-hero__form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.sp-hero__license {
	display: inline-flex;
	align-self: flex-start;
	align-items: center;
	gap: 4px;
	padding: 6px 12px;
	border-radius: var(--sp-radius-full);
	background: var(--sp-gold-tint);
	border: 1px solid var(--sp-gold);
	font: 600 12px/1 var(--sp-font-body);
	color: var(--sp-gold);
}

.sp-hero__license .sp-icon {
	width: 14px;
	height: 14px;
}

.sp-hero__form-row {
	display: flex;
	gap: 12px;
}

.sp-hero__field {
	flex: 1;
	display: block;
	position: relative;
	min-width: 0;
}

.sp-hero__field input,
.sp-hero__field select,
.sp-hero__field textarea {
	width: 100%;
	font: 400 16px/1.5 var(--sp-font-body);
	color: var(--sp-dark);
	background: var(--sp-white);
	border: 1px solid var(--sp-dark);
	border-radius: 6px;
	padding: 12px 14px;
}

.sp-hero__field select {
	appearance: none;
	padding-right: 40px;
	color: var(--sp-muted);
}

.sp-hero__field textarea {
	resize: vertical;
	min-height: 96px;
}

.sp-hero__field input::placeholder,
.sp-hero__field textarea::placeholder {
	color: var(--sp-muted);
}

.sp-hero__field-chevron {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	width: 20px;
	height: 20px;
	color: var(--sp-dark);
	pointer-events: none;
}

/* Form-plugin field classes — the Hero form is now whatever your form
   plugin's shortcode outputs (form_shortcode field), so it can't be
   styled through .sp-hero__field anymore. Add these class names to the
   matching field in your plugin's field settings (Gravity Forms/WPForms:
   "CSS Class Name" / "Additional CSS Classes"; CF7: add class:sp-form-input
   directly in the tag, e.g. [text* your-name class:sp-form-input]) to
   match the Figma field styling:
   - sp-form-input   → text/email/tel/number fields
   - sp-form-select  → the service dropdown
   - sp-form-textarea → the message box
   - sp-form-row     → wrap two fields (e.g. Name + Phone) to sit side by
                        side on desktop and stack on mobile, if your
                        plugin supports a field-group/row wrapper class
   - sp-btn sp-btn--primary sp-btn--block → the submit button, OR
     sp-form-submit if your plugin won't accept multiple classes cleanly */

.sp-hero__form-shortcode .sp-form-row {
	display: flex;
	gap: 12px;
	width: 100%;
}

.sp-hero__form-shortcode .sp-form-row > * {
	flex: 1;
	min-width: 0;
}

.sp-hero__form-shortcode input.sp-form-input,
.sp-hero__form-shortcode select.sp-form-select,
.sp-hero__form-shortcode textarea.sp-form-textarea,
.sp-hero__form-shortcode .sp-form-input,
.sp-hero__form-shortcode .sp-form-select,
.sp-hero__form-shortcode .sp-form-textarea {
	display: block;
	width: 100%;
	font: 400 16px/1.5 var(--sp-font-body);
	color: var(--sp-dark);
	background: var(--sp-white);
	border: 1px solid var(--sp-dark);
	border-radius: var(--sp-radius-lg);
	padding: 12px 16px;
}

.sp-hero__form-shortcode .sp-form-input::placeholder,
.sp-hero__form-shortcode .sp-form-textarea::placeholder {
	color: var(--sp-muted);
}

.sp-hero__form-shortcode select.sp-form-select,
.sp-hero__form-shortcode .sp-form-select {
	appearance: none;
	color: var(--sp-muted);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231F2124' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9.5L12 15.5L18 9.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 44px;
}

.sp-hero__form-shortcode textarea.sp-form-textarea,
.sp-hero__form-shortcode .sp-form-textarea {
	resize: vertical;
	min-height: 96px;
}

.sp-hero__form-shortcode .sp-form-submit,
.sp-hero__form-shortcode button[type="submit"],
.sp-hero__form-shortcode input[type="submit"] {
	appearance: none;
	border: none;
	cursor: pointer;
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: center;
	background: var(--sp-black);
	color: var(--sp-gold);
	font: var(--sp-btn-text);
	border-radius: var(--sp-radius-lg);
	padding: 16px 24px;
}

@media (max-width: 640px) {
	.sp-hero__form-shortcode .sp-form-row {
		flex-direction: column;
	}
}

.sp-hero__disclaimer {
	text-align: center;
	font: 400 14px/1.5 var(--sp-font-body);
	color: var(--sp-muted);
	margin: 0;
}

.sp-hero__stats {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	background: var(--sp-cream);
	border-radius: var(--sp-radius-xxl) var(--sp-radius-xxl) 0 0;
	padding: 32px;
	margin-top: auto;
}

/* Bottom-corner "flare" — smoothly widens the cream stats card into the
   cream page/section background around it instead of ending in a sharp
   90° corner. Two fixed decorative SVGs supplied to match the Figma
   mobile "corners" detail (109:10970). */

.sp-hero__stats::before,
.sp-hero__stats::after {
	content: '';
	position: absolute;
	bottom: 0;
	width: 40px;
	height: 40px;
	background-repeat: no-repeat;
	background-size: 100% 100%;
	pointer-events: none;
}

.sp-hero__stats::before {
	left: -40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40' fill='none'%3E%3Cpath d='M40 0C40 0 40 20 30 30C20 40 0 40 0 40H40V0Z' fill='%23FFFAEF'/%3E%3C/svg%3E");
}

.sp-hero__stats::after {
	right: -40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40' fill='none'%3E%3Cpath d='M0 0C0 0 0 20 10 30C20 40 40 40 40 40H0V0Z' fill='%23FFFAEF'/%3E%3C/svg%3E");
}

.sp-hero__stat {
	flex: 1 1 120px;
	text-align: center;
}

.sp-hero__stat-value {
	font: 400 40px/1.25 var(--sp-font-title);
	color: var(--sp-gold);
	margin: 0 0 4px;
}

.sp-hero__stat-label {
	font: 400 16px/1.5 var(--sp-font-body);
	color: var(--sp-dark);
	margin: 0;
}

@media (max-width: 640px) {
	.sp-hero__form-row {
		flex-direction: column;
	}
}

/* ==========================================================================
   Block: Intro (sp-intro)
   ========================================================================== */

.sp-intro__grid {
	display: flex;
	flex-wrap: wrap;
	gap: 64px;
	align-items: stretch;
}

.sp-intro__text {
	flex: 1 1 420px;
	max-width: 640px;
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.sp-intro__body {
	margin-bottom: 32px;
}
.sp-intro__body p {
	font: var(--sp-text);
	color: var(--sp-dark);
	margin: 0 0 12px;
}

.sp-intro__body p:last-child {
	margin-bottom: 0;
}

.sp-intro__card {
	flex: 1 1 420px;
	max-width: 672px;
	background: var(--sp-white);
	color: var(--sp-black);
	border-radius: var(--sp-radius-xxl);
	padding: 32px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.sp-intro__card-head {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.sp-intro__card-title {
	display: flex;
	align-items: baseline;
	gap: 16px;
	font: 400 32px/1.25 var(--sp-font-title);
	color: var(--sp-black);
	margin: 0;
}

.sp-intro__card-icon {
	width: 24px;
	height: 24px;
	color: var(--sp-gold);
	flex-shrink: 0;
}

.sp-intro__card-subtitle {
	font: 600 20px/1.25 var(--sp-font-body);
	color: var(--sp-dark);
	margin: 0;
}

.sp-intro__divider {
	height: 1px;
	background: var(--sp-border);
}

.sp-intro__features {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.sp-intro__feature {
	display: flex;
	align-items: flex-start;
	gap: 16px;
}

.sp-intro__feature-desc {
	display: block;
}

@media (max-width: 640px) {
	.sp-intro__features {
		grid-template-columns: 1fr;
	}
}

.sp-title--center {
	text-align: center;
	max-width: 720px;
	margin-inline: auto;
}

/* ==========================================================================
   Block: Our Process (sp-process)
   ========================================================================== */

.sp-process__inner {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.sp-process__steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 24px 32px;
	margin-bottom: 32px;
}

.sp-process__step {
	flex: 1 1 220px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.sp-process__step-head {
	display: flex;
	align-items: center;
	gap: 32px;
}

.sp-process__step-title {
	font: 400 32px/1.25 var(--sp-font-title);
	color: var(--sp-black);
	white-space: nowrap;
}

.sp-process__step-line {
	flex: 1;
	height: 2px;
	background: var(--sp-gold);
	display: flex;
	align-items: center;
	justify-content: flex-end;
	min-width: 32px;
}

.sp-process__step-arrow {
	width: 32px;
	height: 24px;
	color: var(--sp-gold);
	background: transparent;
	margin-right: -4px;
}

.sp-process__step-desc {
	font: 600 20px/1.25 var(--sp-font-body);
	color: var(--sp-dark);
	margin: 0;
}

@media (max-width: 900px) {
	.sp-process__step-line {
		display: none;
	}
}

/* ==========================================================================
   Block: Materials (sp-materials)
   ========================================================================== */

.sp-materials__inner {
	display: flex;
	flex-direction: column;
	gap: 64px;
	align-items: center;
}

.sp-materials__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	width: 100%;
}

.sp-materials__card {
	background: var(--sp-white);
	border-radius: var(--sp-radius-lg);
	padding: 8px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.sp-materials__card-text {
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.sp-materials__card-title {
	font: 400 32px/1.25 var(--sp-font-title);
	color: var(--sp-black);
	margin: 0;
}

.sp-materials__card-desc {
	font: 600 20px/1.4 var(--sp-font-body);
	color: var(--sp-dark);
	margin: 0;
}

.sp-materials__card-photo {
	height: 160px;
	border-radius: 8px;
	overflow: hidden;
}

.sp-materials__card-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

@media (max-width: 900px) {
	.sp-materials__grid {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   Block: Why Sapphire (sp-why)
   ========================================================================== */

.sp-why__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	gap: 64px;
	align-items: end;
}

.sp-why__col {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.sp-why__col--wide {
	justify-content: flex-end;
	height: 100%;
}

.sp-why__benefit .sp-check-list__bullet {
	width: 40px;
	height: 40px;
}

.sp-why__divider {
	height: 1px;
	background: var(--sp-border);
	margin: 32px 0;
}

.sp-why__review {
	margin: 0;
	position: relative;
}

.sp-why__review-text {
	margin: 0 0 16px;
	position: relative;
}

.sp-why__review-text p {
	font: 600 20px/1.4 var(--sp-font-body);
	color: var(--sp-dark);
	margin: 0;
	max-width: 60ch;
}

.sp-why__review-quote-icon {
	float: right;
	width: 56px;
	height: 46px;
	color: var(--sp-gold-tint);
	margin-left: 16px;
}

.sp-why__review-author {
	display: flex;
	align-items: center;
	gap: 16px;
}

.sp-why__review-name {
	font: 700 24px/1.25 var(--sp-font-body);
	color: var(--sp-black);
}

.sp-why__review-location {
	font: var(--sp-text);
	color: var(--sp-muted);
}

@media (max-width: 900px) {
	.sp-why__grid {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   Shared: ratings row partial (partials/sp-ratings.php)
   ========================================================================== */

.sp-ratings {
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
}

.sp-rating {
	display: flex;
	align-items: center;
	gap: 12px;
}

.sp-rating__icon {
	width: 32px;
	height: 32px;
	color: var(--sp-cream);
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--sp-radius-full);
	padding: 0;
}
.sp-why .sp-rating__icon {
	color: var(--sp-black);
}

.sp-rating__icon .sp-icon {
	width: 32px;
	height: 32px;
}

/* ==========================================================================
   Block: Service Areas (sp-areas)
   ========================================================================== */

.sp-areas__inner {
	display: flex;
	flex-direction: column;
	gap: 64px;
}

.sp-areas__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 40px 64px;
}

.sp-areas__item {
	min-width: 0;
}

.sp-areas__dropdown-head,
.sp-areas__cta-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	list-style: none;
	cursor: pointer;
}

.sp-areas__dropdown-head::-webkit-details-marker {
	display: none;
}

.sp-areas__region {
	font: 400 32px/1.25 var(--sp-font-title);
	color: var(--sp-dark);
}

.sp-areas__chevron {
	width: 24px;
	height: 24px;
	color: var(--sp-dark);
	flex-shrink: 0;
}

.sp-areas__chevron--open {
	display: none;
}

.sp-areas__dropdown[open] > .sp-areas__dropdown-head .sp-areas__chevron--open {
	display: block;
}

.sp-areas__dropdown[open] > .sp-areas__dropdown-head .sp-areas__chevron--closed {
	display: none;
}

.sp-areas__divider {
	height: 1px;
	background: var(--sp-border);
	margin-top: 8px;
}

.sp-areas__divider--gold {
	background: var(--sp-gold);
}

.sp-areas__cities {
	list-style: disc;
	margin: 16px 0 0;
	padding-left: 20px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	font: 600 20px/1.25 var(--sp-font-body);
	color: var(--sp-dark);
}

.sp-btn--small {
	padding: 8px 16px;
	font-size: 14px;
}

.sp-areas__map {
	width: 100%;
	height: 560px;
	border-radius: var(--sp-radius-lg);
	overflow: hidden;
}

.sp-areas__map iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

@media (max-width: 900px) {
	.sp-areas__grid {
		grid-template-columns: 1fr;
	}

	.sp-areas__map {
		height: 360px;
	}
}

/* ==========================================================================
   Block: Portfolio / Before-After (sp-portfolio)
   ========================================================================== */

.sp-portfolio__inner {
	display: flex;
	flex-direction: column;
	gap: 64px;
	align-items: center;
}

.sp-portfolio__slider {
	position: relative;
	width: 100%;
	height: 560px;
	border-radius: var(--sp-radius-lg);
	overflow: hidden;
	touch-action: none;
	user-select: none;
}

.sp-portfolio__image {
	position: absolute;
	inset: 0;
}

.sp-portfolio__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	pointer-events: none;
}

.sp-portfolio__handle {
	position: absolute;
	top: 0;
	bottom: 0;
	transform: translateX(-50%);
	width: 8px;
	background: var(--sp-cream);
	border: none;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: ew-resize;
}

.sp-portfolio__handle::before {
	content: '';
	position: absolute;
	width: 48px;
	height: 48px;
	border-radius: var(--sp-radius-full);
	background: var(--sp-black);
}

.sp-portfolio__handle .sp-icon {
	position: relative;
	color: var(--sp-gold);
	width: 24px;
	height: 24px;
}

@media (max-width: 480px) {
	.sp-portfolio__slider {
		height: 400px;
	}
}

/* ==========================================================================
   Block: CTA Banner (sp-cta)
   ========================================================================== */

.sp-cta__card {
	position: relative;
	border: 1px solid var(--sp-gold);
	border-radius: var(--sp-radius-lg);
	padding: clamp(24px, 4vw, 56px);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	background:
		radial-gradient(circle at 85% 30%, rgba(203, 172, 86, 0.08), transparent 45%),
		radial-gradient(circle at 95% 80%, rgba(203, 172, 86, 0.08), transparent 40%),
		var(--sp-cream);
}

.sp-cta__text {
	flex: 1 1 320px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.sp-cta__heading {
	font: 400 clamp(28px, 4vw, 48px) / 1.25 var(--sp-font-title);
	color: var(--sp-black);
	margin: 0;
}

.sp-cta__heading em {
	font-style: italic;
}

.sp-cta__subheading {
	font: var(--sp-text);
	color: var(--sp-dark);
	margin: 0;
}

/* ==========================================================================
   Block: Related Services (sp-related)
   ========================================================================== */

.sp-related__inner {
	display: flex;
	flex-direction: column;
	gap: 64px;
}

.sp-related__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}

.sp-related__title {
	margin: 0;
}

.sp-related__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
}

.sp-related__card {
	background: var(--sp-white);
	border-radius: var(--sp-radius-lg);
	padding: 8px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.sp-related__card-head {
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-height: 144px;
}

.sp-related__card-title {
	display: flex;
	align-items: baseline;
	gap: 16px;
	font: 400 32px/1.25 var(--sp-font-title);
	color: var(--sp-black);
	margin: 0;
}

.sp-related__card-title a,
.sp-related__card-title span {
	color: inherit;
	text-decoration: none;
}

.sp-related__card-icon {
	width: 24px;
	height: 24px;
	color: var(--sp-gold);
	flex-shrink: 0;
}

.sp-related__card-icon--custom {
	-o-object-fit: contain;
	object-fit: contain;
	align-self: center;
}

.sp-related__card-subtitle {
	font: 600 20px/1.25 var(--sp-font-body);
	color: var(--sp-dark);
	margin: 0;
}

.sp-related__divider {
	height: 1px;
	background: var(--sp-border);
}

.sp-related__subservices {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sp-related__subservice {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px;
	font: 700 16px var(--sp-font-body);
	text-transform: capitalize;
	color: var(--sp-dark);
	text-decoration: none;
}

.sp-related__subservice-icon {
	width: 24px;
	height: 24px;
	color: var(--sp-dark);
}

@media (max-width: 900px) {
	.sp-related__grid {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   Block: FAQ (sp-faq)
   ========================================================================== */

.sp-faq__inner {
	display: flex;
	gap: 64px;
	align-items: flex-start;
	flex-wrap: wrap;
}

.sp-faq__title {
	flex: 1 1 320px;
	max-width: 420px;
	margin: 0;
}

.sp-faq__list {
	flex: 2 1 600px;
	column-count: 2;
	column-gap: 8px;
}

.sp-faq__item {
	break-inside: avoid;
	background: var(--sp-white);
	border-radius: var(--sp-radius-lg);
	padding: 8px;
	margin-bottom: 8px;
	display: block;
}

.sp-faq__item-head {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	cursor: pointer;
	list-style: none;
}

.sp-faq__item-head::-webkit-details-marker {
	display: none;
}

.sp-faq__item-question {
	flex: 1;
	font: 600 20px/1.25 var(--sp-font-body);
	color: var(--sp-black);
}

.sp-faq__item-toggle {
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	border: 1px solid var(--sp-dark);
	border-radius: var(--sp-radius-full);
	display: flex;
	align-items: center;
	justify-content: center;
}

.sp-faq__chevron {
	width: 24px;
	height: 24px;
	color: var(--sp-dark);
}

.sp-faq__chevron--open {
	display: none;
}

.sp-faq__item[open] .sp-faq__chevron--open {
	display: block;
}

.sp-faq__item[open] .sp-faq__chevron--closed {
	display: none;
}

.sp-faq__item-answer {
	margin: 0;
	padding: 0 16px 16px 16px;
	font: var(--sp-text);
	color: var(--sp-dark);
}

@media (max-width: 900px) {
	.sp-faq__list {
		column-count: 1;
	}
}

/* Shared: chevron-based accordion/dropdown open-state swap used by
   Service Areas and FAQ both rely on the [open] > summary structure
   above; kept block-local since each has its own header markup. */

/* ==========================================================================
   Page template (template-sp-service.php)
   ========================================================================== */

.sp-page-main {
	background: var(--sp-cream);
	padding-top: 80px;
}

body.admin-bar .sp-page-main {
	padding-top: 112px;
}


@media (max-width: 640px) {
	.sp-page-main {
		padding-top: 60px;
	}
	.sp-hero {
		padding: 0;
	}
	.sp-hero__stage {
		border-radius: 0;
	}

	.sp-intro__card {
		padding: 24px;
	}

	/* Hero stats: row of 3 → stacked list, matching the mobile Figma
	   frame (109:10979 "Background") where each Benefit is full-width. */
	.sp-hero__stats {
		flex-direction: column;
		gap: 32px;
		padding: 32px 24px;
	}

	/* Shrink the bottom-corner flare so it doesn't need as much clear
	   space beside the card on narrow viewports. */
	.sp-hero__stats::before,
	.sp-hero__stats::after {
		width: 24px;
		height: 24px;
	}
	.sp-hero__stats::before {
		left: -24px;
	}
	.sp-hero__stats::after {
		right: -24px;
	}

	.sp-hero__form-card {
		padding: 16px;
	}

	.sp-materials__inner,
	.sp-portfolio__inner,
	.sp-areas__inner,
	.sp-process__inner,
	.sp-related__inner,
	.sp-why__grid,
	.sp-intro__grid {
		gap: 32px;
	}

	.sp-faq__inner {
		gap: 32px;
	}

	.sp-cta__card {
		flex-direction: column;
		align-items: flex-start;
		text-align: left;
	}

	.sp-related__head {
		align-items: flex-start;
	}
}