/* ==========================================================================
   Santharpana — block styles
   Shared by the front end and the block editor canvas so editors see the
   real design while they write. Colours/fonts come from CSS variables set by
   the Customizer (see santharpana_css_variables()).
   ========================================================================== */

:root {
	--sp-plum: #4f1b3f;
	--sp-plum-deep: #2a0f22;
	--sp-blush: #e7c6b3;
	--sp-sage: #7d8767;
	--sp-sand: #efe4da;
	--sp-cream: #faf6f1;
	--sp-ink: #2b2228;
	--sp-font-heading: "Cormorant Garamond", Georgia, serif;
	--sp-font-body: Montserrat, system-ui, sans-serif;
	--sp-base-size: 16px;
	--sp-header-text: #fff;
	--sp-logo-w: 104px;

	--sp-gutter: clamp(1.25rem, 4vw, 3rem);
	--sp-content: 1180px;
	--sp-wide: 1400px;
	--sp-section-y: clamp(4.5rem, 9vw, 8.5rem);
	--sp-radius: 2px;
	--sp-ease: cubic-bezier(.22, .61, .36, 1);
	--sp-ease-out: cubic-bezier(.16, 1, .3, 1);
	--sp-line: color-mix(in srgb, var(--sp-ink) 14%, transparent);
	--sp-muted: color-mix(in srgb, var(--sp-ink) 72%, var(--sp-cream));
	interpolate-size: allow-keywords;
}

/* ---------- Sections ---------- */
.sp-section {
	padding: var(--sp-section-y) var(--sp-gutter);
	position: relative;
}
.sp-section.has-background { padding: var(--sp-section-y) var(--sp-gutter); }
.sp-section + .sp-section:not(.has-background) { padding-top: calc(var(--sp-section-y) * .55); }
.sp-section > .wp-block-heading + .sp-intro,
.sp-section > .sp-intro { max-width: 640px; color: var(--sp-muted); }
.sp-section > .sp-intro + *,
.sp-section > .wp-block-heading + .alignwide { margin-top: clamp(2.5rem, 5vw, 4rem); }

/* Dark surfaces: anything the editor gives a dark background. */
:is(.has-plum-background-color, .has-plum-deep-background-color, .has-ink-background-color, .has-sage-background-color, .wp-block-cover:not(.is-light)) {
	--sp-on-dark: 1;
	--sp-line: rgba(255, 255, 255, .16);
	--sp-muted: rgba(250, 246, 241, .78);
	color: var(--sp-cream);
}
:is(.sp-theme, .editor-styles-wrapper) :is(.has-plum-background-color, .has-plum-deep-background-color, .has-ink-background-color, .has-sage-background-color, .wp-block-cover:not(.is-light)) :is(h1, h2, h3, h4, h5, h6) { color: inherit; }
:is(.has-plum-background-color, .has-plum-deep-background-color, .has-ink-background-color, .has-sage-background-color, .wp-block-cover:not(.is-light)) a:not(.wp-block-button__link) { color: inherit; }

/* ---------- Text styles ---------- */
.is-style-sp-eyebrow,
.sp-eyebrow {
	display: flex;
	align-items: center;
	gap: 1rem;
	font-family: var(--sp-font-body);
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .32em;
	text-transform: uppercase;
	color: var(--sp-plum);
	margin-bottom: 1.1rem;
	line-height: 1.5;
}
.is-style-sp-eyebrow::before,
.sp-eyebrow::before {
	content: "";
	width: 2.75rem;
	height: 1px;
	background: currentColor;
	opacity: .55;
	flex: none;
}
.is-style-sp-eyebrow.has-text-align-center { justify-content: center; }
.is-style-sp-eyebrow.has-text-align-center::after {
	content: "";
	width: 2.75rem;
	height: 1px;
	background: currentColor;
	opacity: .55;
	flex: none;
}
:is(.has-plum-background-color, .has-plum-deep-background-color, .has-ink-background-color, .wp-block-cover:not(.is-light), .sp-hero, .sp-banner) .is-style-sp-eyebrow,
:is(.has-plum-background-color, .has-plum-deep-background-color, .has-ink-background-color, .wp-block-cover:not(.is-light), .sp-hero, .sp-banner) .sp-eyebrow { color: var(--sp-blush); }

.is-style-sp-lead {
	font-family: var(--sp-font-heading);
	font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem);
	line-height: 1.5;
	color: var(--sp-plum-deep);
}
:is(.has-plum-background-color, .has-plum-deep-background-color, .wp-block-cover:not(.is-light)) .is-style-sp-lead { color: inherit; }

.wp-block-heading em,
.sp-hero__title em { font-style: italic; color: var(--sp-plum); font-weight: 400; }
:is(.has-plum-background-color, .has-plum-deep-background-color, .has-ink-background-color, .wp-block-cover:not(.is-light)) .wp-block-heading em { color: var(--sp-blush); }

.is-style-sp-ornament::after {
	content: "";
	display: block;
	width: 64px;
	height: 36px;
	margin-top: 1.1rem;
	background-color: var(--sp-plum);
	opacity: .55;
	-webkit-mask: url(../images/lotus-dark.png) center / contain no-repeat;
	mask: url(../images/lotus-dark.png) center / contain no-repeat;
}
.is-style-sp-ornament.has-text-align-center::after { margin-inline: auto; }
:is(.has-plum-background-color, .has-plum-deep-background-color, .has-ink-background-color, .wp-block-cover:not(.is-light)) .is-style-sp-ornament::after { background-color: var(--sp-blush); opacity: .8; }

.sp-number {
	font-family: var(--sp-font-heading);
	font-style: italic;
	font-size: 1.15rem;
	letter-spacing: .08em;
	color: var(--sp-sage);
	margin: 0 0 .75rem;
}
.sp-big {
	font-family: var(--sp-font-heading);
	font-size: clamp(1.9rem, 1.5rem + 1vw, 2.5rem);
	line-height: 1.1;
	color: var(--sp-plum);
	margin: .25rem 0 1rem;
}
.sp-link-arrow a,
.is-style-sp-arrow .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: .75rem;
	font-family: var(--sp-font-body);
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .24em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--sp-plum);
}
.sp-link-arrow a::after,
.is-style-sp-arrow .wp-block-button__link::after {
	content: "";
	width: 2.25rem;
	height: 10px;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 10'%3E%3Cpath d='M0 5h34M30 1l4 4-4 4' fill='none' stroke='black' stroke-width='1.2'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 10'%3E%3Cpath d='M0 5h34M30 1l4 4-4 4' fill='none' stroke='black' stroke-width='1.2'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform .5s var(--sp-ease-out);
}
:is(.sp-theme, .editor-styles-wrapper) .sp-link-arrow a { text-decoration: none !important; }
.sp-link-arrow a:hover::after,
.sp-link-arrow a:focus-visible::after,
.is-style-sp-arrow .wp-block-button__link:hover::after { transform: translateX(.5rem); }

/* ---------- Buttons ----------
   Prefixed with :is(.sp-theme, .editor-styles-wrapper) so these win over Astra's own button CSS,
   including its hover colours, without !important. */
:is(.sp-theme, .editor-styles-wrapper) .wp-block-button__link,
.sp-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .7rem;
	overflow: hidden;
	isolation: isolate;
	padding: 1.1rem 2.4rem 1.05rem;
	border: 1px solid var(--sp-plum);
	border-radius: var(--sp-radius);
	background-color: var(--sp-plum);
	color: var(--sp-cream);
	font-family: var(--sp-font-body);
	font-size: .72rem;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: .22em;
	text-transform: uppercase;
	text-decoration: none;
	box-shadow: none;
	transition: color .5s var(--sp-ease-out), border-color .5s var(--sp-ease-out), background-color .5s var(--sp-ease-out);
}
:is(.sp-theme, .editor-styles-wrapper) .wp-block-button__link::before,
.sp-btn::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--sp-plum-deep);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform .6s var(--sp-ease-out);
}
:is(.sp-theme, .editor-styles-wrapper) .wp-block-button__link:is(:hover, :focus-visible)::before,
.sp-btn:is(:hover, :focus-visible)::before { transform: scaleX(1); transform-origin: left; }
:is(.sp-theme, .editor-styles-wrapper) .wp-block-button__link:is(:hover, :focus, :focus-visible) { background-color: var(--sp-plum); border-color: var(--sp-plum-deep); color: var(--sp-cream); }
.sp-btn .sp-icon { width: 18px; height: 18px; }

/* Outline */
:is(.sp-theme, .editor-styles-wrapper) .is-style-outline > .wp-block-button__link { background-color: transparent; color: var(--sp-plum); border-color: currentColor; }
:is(.sp-theme, .editor-styles-wrapper) .is-style-outline > .wp-block-button__link::before { background: var(--sp-plum); }
:is(.sp-theme, .editor-styles-wrapper) .is-style-outline > .wp-block-button__link:is(:hover, :focus, :focus-visible) { background-color: transparent; color: var(--sp-cream); border-color: var(--sp-plum); }

/* Blush */
:is(.sp-theme, .editor-styles-wrapper) .is-style-sp-blush > .wp-block-button__link { background-color: var(--sp-blush); border-color: var(--sp-blush); color: var(--sp-plum-deep); }
:is(.sp-theme, .editor-styles-wrapper) .is-style-sp-blush > .wp-block-button__link::before { background: var(--sp-cream); }
:is(.sp-theme, .editor-styles-wrapper) .is-style-sp-blush > .wp-block-button__link:is(:hover, :focus, :focus-visible) { background-color: var(--sp-blush); color: var(--sp-plum-deep); border-color: var(--sp-cream); }

/* Arrow text link */
:is(.sp-theme, .editor-styles-wrapper) .is-style-sp-arrow > .wp-block-button__link,
:is(.sp-theme, .editor-styles-wrapper) .is-style-sp-arrow > .wp-block-button__link:is(:hover, :focus, :focus-visible) { background: none; border: 0; padding: .5rem 0; }
:is(.sp-theme, .editor-styles-wrapper) .is-style-sp-arrow > .wp-block-button__link { color: var(--sp-plum); }
:is(.sp-theme, .editor-styles-wrapper) .is-style-sp-arrow > .wp-block-button__link::before { display: none; }
:is(.sp-theme, .editor-styles-wrapper) .is-style-sp-arrow > .wp-block-button__link:is(:hover, :focus, :focus-visible) { color: var(--sp-plum-deep); }

/* Buttons on dark backgrounds */
:is(.sp-theme, .editor-styles-wrapper) :is(.has-plum-background-color, .has-plum-deep-background-color, .has-ink-background-color, .has-sage-background-color, .wp-block-cover:not(.is-light)) .wp-block-button:not(.is-style-outline):not(.is-style-sp-arrow) > .wp-block-button__link,
:is(.sp-theme, .editor-styles-wrapper) :is(.has-plum-background-color, .has-plum-deep-background-color, .has-ink-background-color, .has-sage-background-color, .wp-block-cover:not(.is-light)) .wp-block-button:not(.is-style-outline):not(.is-style-sp-arrow) > .wp-block-button__link:is(:hover, :focus, :focus-visible) { background-color: var(--sp-blush); border-color: var(--sp-blush); color: var(--sp-plum-deep); }
:is(.sp-theme, .editor-styles-wrapper) :is(.has-plum-background-color, .has-plum-deep-background-color, .has-ink-background-color, .has-sage-background-color, .wp-block-cover:not(.is-light)) .wp-block-button:not(.is-style-outline):not(.is-style-sp-arrow) > .wp-block-button__link::before { background: var(--sp-cream); }
:is(.sp-theme, .editor-styles-wrapper) :is(.has-plum-background-color, .has-plum-deep-background-color, .has-ink-background-color, .has-sage-background-color, .wp-block-cover:not(.is-light)) .is-style-outline > .wp-block-button__link { color: var(--sp-cream); border-color: rgba(250, 246, 241, .55); }
:is(.sp-theme, .editor-styles-wrapper) :is(.has-plum-background-color, .has-plum-deep-background-color, .has-ink-background-color, .has-sage-background-color, .wp-block-cover:not(.is-light)) .is-style-outline > .wp-block-button__link::before { background: var(--sp-cream); }
:is(.sp-theme, .editor-styles-wrapper) :is(.has-plum-background-color, .has-plum-deep-background-color, .has-ink-background-color, .has-sage-background-color, .wp-block-cover:not(.is-light)) .is-style-outline > .wp-block-button__link:is(:hover, :focus, :focus-visible) { color: var(--sp-plum-deep); border-color: var(--sp-cream); }
:is(.sp-theme, .editor-styles-wrapper) :is(.has-plum-background-color, .has-plum-deep-background-color, .wp-block-cover:not(.is-light)) .is-style-sp-arrow > .wp-block-button__link,
:is(.has-plum-background-color, .has-plum-deep-background-color, .wp-block-cover:not(.is-light)) .sp-link-arrow a { color: var(--sp-blush); }

/* Astra's outline-button rule (.wp-block-buttons .wp-block-button.is-style-outline .wp-block-button__link.wp-element-button)
   sets its own size, weight, padding, border width and colours. Match its selector so the theme's button wins. */
:is(.sp-theme, .editor-styles-wrapper) .wp-block-buttons .wp-block-button.is-style-outline > .wp-block-button__link.wp-element-button {
	padding: 1.1rem 2.4rem 1.05rem;
	border-width: 1px;
	font-family: var(--sp-font-body);
	font-size: .72rem;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: .22em;
	background-color: transparent;
	color: var(--sp-plum);
	border-color: currentColor;
}
:is(.sp-theme, .editor-styles-wrapper) .wp-block-buttons .wp-block-button.is-style-outline > .wp-block-button__link.wp-element-button:is(:hover, :focus, :focus-visible) { background-color: transparent; color: var(--sp-cream); border-color: var(--sp-plum); }
:is(.sp-theme, .editor-styles-wrapper) :is(.has-plum-background-color, .has-plum-deep-background-color, .has-ink-background-color, .has-sage-background-color, .wp-block-cover:not(.is-light)) .wp-block-buttons .wp-block-button.is-style-outline > .wp-block-button__link.wp-element-button { color: var(--sp-cream); border-color: rgba(250, 246, 241, .55); }
:is(.sp-theme, .editor-styles-wrapper) :is(.has-plum-background-color, .has-plum-deep-background-color, .has-ink-background-color, .has-sage-background-color, .wp-block-cover:not(.is-light)) .wp-block-buttons .wp-block-button.is-style-outline > .wp-block-button__link.wp-element-button:is(:hover, :focus, :focus-visible) { color: var(--sp-plum-deep); border-color: var(--sp-cream); }

.wp-block-buttons { gap: 1rem; margin-top: 2.25rem; }

/* ---------- Images ---------- */
.wp-block-image { margin-bottom: 0; }
.wp-block-image img { display: block; width: 100%; height: auto; }
.is-style-sp-arch img { border-radius: 1000px 1000px var(--sp-radius) var(--sp-radius); }
.is-style-sp-arch { border-radius: 1000px 1000px var(--sp-radius) var(--sp-radius); overflow: hidden; }
.is-style-sp-rounded,
.is-style-sp-rounded img { border-radius: 20px; overflow: hidden; }
.is-style-sp-frame { position: relative; padding: 0 1.25rem 1.25rem 0; }
.is-style-sp-frame::before {
	content: "";
	position: absolute;
	inset: 1.25rem 0 0 1.25rem;
	border: 1px solid var(--sp-blush);
	z-index: 0;
}
.is-style-sp-frame img { position: relative; z-index: 1; }

/* Overlapping image stack (Welcome pattern) */
.sp-media-stack { position: relative; padding: 0 16% 14% 0 !important; }
.sp-media-stack > .wp-block-image:first-child { margin: 0; }
.wp-block-column.sp-media-stack > .sp-media-stack__small {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 46%;
	margin: 0;
	border: 10px solid var(--sp-cream);
	border-radius: 24px;
	box-shadow: 0 30px 60px -30px rgba(42, 15, 34, .45);
}
.has-sand-background-color .sp-media-stack__small { border-color: var(--sp-sand); }

/* ---------- Columns & splits ---------- */
.wp-block-columns.sp-split { gap: clamp(2.5rem, 7vw, 7rem); margin-bottom: 0; }
.wp-block-columns.sp-cards { gap: clamp(1.25rem, 2.5vw, 2rem); }
.sp-sticky { align-self: flex-start; }
@media (min-width: 782px) {
	.sp-sticky { position: sticky; top: calc(var(--sp-header-total, 90px) + 2rem); }
}

/* ---------- Cards ---------- */
.is-style-sp-card {
	background: var(--sp-cream);
	padding: clamp(1.75rem, 3vw, 2.75rem) !important;
	border: 1px solid color-mix(in srgb, var(--sp-plum) 9%, transparent);
	border-radius: var(--sp-radius);
	transition: transform .6s var(--sp-ease-out), box-shadow .6s var(--sp-ease-out);
}
:not(.has-sand-background-color) > .is-style-sp-card,
.sp-section:not(.has-background) .is-style-sp-card { background: #fff; }
.is-style-sp-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -35px rgba(42, 15, 34, .35); }
.is-style-sp-card > .wp-block-heading { font-size: clamp(1.4rem, 1.2rem + .5vw, 1.7rem); margin-bottom: .6rem; }
.is-style-sp-card > p:last-child { margin-bottom: 0; }

/* Grid */
.wp-block-group.sp-grid { gap: clamp(2rem, 3vw, 2.75rem) clamp(1.25rem, 2.5vw, 2.25rem); }
@media (min-width: 1000px) {
	.wp-block-group.sp-grid--treatments { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.wp-block-group.sp-grid--values { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Treatment cards */
.sp-treatment-card > * { margin-top: 0; margin-bottom: 0; }
.sp-treatment-card__media { overflow: hidden; border-radius: var(--sp-radius); margin-bottom: 1.5rem !important; }
.sp-treatment-card__media img { transition: transform 1.4s var(--sp-ease-out); }
.sp-treatment-card:hover .sp-treatment-card__media img { transform: scale(1.06); }
.sp-treatment-card__meta {
	font-size: .7rem;
	font-weight: 600;
	letter-spacing: .26em;
	text-transform: uppercase;
	color: var(--sp-sage);
	margin-bottom: .5rem !important;
}
.sp-treatment-card__title { font-size: clamp(1.45rem, 1.25rem + .5vw, 1.75rem) !important; line-height: 1.2; margin-bottom: .75rem !important; }
/* No underline on the card title: Astra and core underline content links, so this is forced. Hover tints the title instead. */
:is(.sp-theme, .editor-styles-wrapper) .sp-treatment-card__title a { color: inherit; text-decoration: none !important; box-shadow: none; background: none; transition: color .4s var(--sp-ease-out); }
:is(.sp-theme, .editor-styles-wrapper) .sp-treatment-card:hover .sp-treatment-card__title a,
:is(.sp-theme, .editor-styles-wrapper) .sp-treatment-card__title a:focus-visible { color: var(--sp-plum); }
.sp-treatment-card > p:not([class]) { color: var(--sp-muted); font-size: .95rem; margin-bottom: 1.1rem !important; }

/* Featured panel */
.wp-block-columns.sp-featured {
	gap: 0;
	padding: 0 !important;
	margin-top: clamp(3rem, 6vw, 5rem);
	overflow: hidden;
	border-radius: var(--sp-radius);
}
.sp-featured__media { align-self: stretch !important; }
.sp-featured__media .wp-block-image,
.sp-featured__media img { height: 100%; }
.sp-featured__media img { min-height: 320px; }
.sp-featured__body { padding: clamp(2rem, 5vw, 4.5rem) !important; }
.sp-featured__body .wp-block-heading { margin: .25rem 0 1rem; }

/* Stats */
.sp-stats.sp-section { padding-block: 0 clamp(4rem, 7vw, 6rem) !important; }
.sp-stats__row { padding-block: clamp(2.5rem, 4vw, 3.5rem) !important; border-block: 1px solid color-mix(in srgb, var(--sp-plum) 14%, transparent); }
.sp-stats__row { gap: 0 !important; margin-block: 0; }
.sp-stats__row > .wp-block-column { text-align: center; padding: .5rem 1.5rem; }
.sp-stats__row > .wp-block-column + .wp-block-column { border-left: 1px solid color-mix(in srgb, var(--sp-plum) 16%, transparent); }
.sp-stat__num {
	font-family: var(--sp-font-heading);
	font-size: clamp(2.6rem, 2rem + 2vw, 3.75rem);
	line-height: 1;
	color: var(--sp-plum);
	margin: 0 0 .65rem;
	font-variant-numeric: lining-nums;
}
.sp-stat__label {
	font-size: .7rem;
	font-weight: 600;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--sp-muted);
	margin: 0;
}
@media (max-width: 781px) {
	.sp-stats__row { display: grid !important; grid-template-columns: 1fr 1fr; row-gap: 2.5rem !important; }
	.sp-stats__row > .wp-block-column + .wp-block-column { border-left: 0; }
}

/* Steps */
.sp-steps { display: flex; flex-direction: column; }
.wp-block-group.sp-step {
	display: grid;
	grid-template-columns: 4.5rem 1fr;
	column-gap: 1rem;
	padding: 2rem 0;
	border-top: 1px solid var(--sp-line);
}
.wp-block-group.sp-step:last-child { border-bottom: 1px solid var(--sp-line); }
.sp-step > * { grid-column: 2; margin: 0 !important; }
.sp-step > .sp-number { grid-column: 1; grid-row: 1 / span 2; font-size: 1.6rem; color: var(--sp-blush); line-height: 1; padding-top: .2rem; }
.has-sand-background-color .sp-step > .sp-number,
.sp-section:not(.has-background) .sp-step > .sp-number { color: color-mix(in srgb, var(--sp-plum) 55%, var(--sp-blush)); }
.sp-step > .wp-block-heading { font-size: clamp(1.35rem, 1.2rem + .4vw, 1.6rem); margin-bottom: .5rem !important; }
.sp-step > p:not(.sp-number) { color: var(--sp-muted); }

/* ---------- Marquee ---------- */
.sp-marquee { overflow: hidden; padding: 1.5rem 0 !important; margin: 0 !important; }
.sp-marquee__text {
	margin: 0;
	white-space: nowrap;
	font-family: var(--sp-font-heading);
	font-style: italic;
	font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.4rem);
	line-height: 1.2;
	text-align: center;
}
.sp-marquee__track { display: inline-flex; gap: 0; will-change: transform; }
.sp-marquee__track > span { padding-right: 1.25em; }

/* ---------- Gallery ---------- */
.wp-block-gallery.sp-gallery { --wp--style--unstable-gallery-gap: clamp(.75rem, 1.5vw, 1.25rem); gap: var(--wp--style--unstable-gallery-gap) !important; }
.wp-block-gallery.sp-gallery .wp-block-image { overflow: hidden; border-radius: var(--sp-radius); aspect-ratio: 1; }
.wp-block-gallery.sp-gallery .wp-block-image img { height: 100%; object-fit: cover; transition: transform 1.4s var(--sp-ease-out); }
.wp-block-gallery.sp-gallery .wp-block-image:hover img { transform: scale(1.06); }

/* ---------- Testimonials ---------- */
.sp-quotes { gap: clamp(1.25rem, 2.5vw, 2rem) !important; margin-top: clamp(2.5rem, 5vw, 4rem); }
.wp-block-quote.is-style-sp-testimonial {
	position: relative;
	height: 100%;
	margin: 0;
	padding: 3.5rem 2.25rem 2.25rem;
	border: 1px solid var(--sp-line);
	border-radius: var(--sp-radius);
	background: #fff;
	display: flex;
	flex-direction: column;
	transition: background-color .6s var(--sp-ease-out), transform .6s var(--sp-ease-out);
}
.wp-block-quote.is-style-sp-testimonial:hover { transform: translateY(-4px); }
:is(.has-plum-background-color, .has-plum-deep-background-color, .has-ink-background-color) .wp-block-quote.is-style-sp-testimonial { background: rgba(255, 255, 255, .03); border-color: rgba(255, 255, 255, .14); }
:is(.has-plum-background-color, .has-plum-deep-background-color, .has-ink-background-color) .wp-block-quote.is-style-sp-testimonial:hover { background: rgba(255, 255, 255, .06); }
.wp-block-quote.is-style-sp-testimonial::before {
	content: "“";
	position: absolute;
	top: .6rem;
	left: 2rem;
	font-family: var(--sp-font-heading);
	font-size: 5rem;
	line-height: 1;
	color: var(--sp-blush);
	opacity: .7;
}
.wp-block-quote.is-style-sp-testimonial p {
	font-family: var(--sp-font-heading);
	font-style: italic;
	font-size: clamp(1.2rem, 1.05rem + .4vw, 1.4rem);
	line-height: 1.55;
	margin: 0 0 1.75rem;
	flex: 1;
}
.wp-block-quote.is-style-sp-testimonial cite {
	font-style: normal;
	font-size: .7rem;
	font-weight: 600;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--sp-plum);
}
:is(.has-plum-background-color, .has-plum-deep-background-color, .has-ink-background-color) .wp-block-quote.is-style-sp-testimonial cite { color: var(--sp-blush); }
.wp-block-quote.is-style-sp-testimonial cite::before { content: "— "; }
/* Astra gives blockquotes its own grey text and a thick left border; set the card's colours explicitly. */
:is(.sp-theme, .editor-styles-wrapper) .wp-block-quote.is-style-sp-testimonial { border-left-width: 1px; border-left-color: var(--sp-line); color: var(--sp-ink); }
:is(.sp-theme, .editor-styles-wrapper) .wp-block-quote.is-style-sp-testimonial p { color: var(--sp-ink) !important; }
:is(.sp-theme, .editor-styles-wrapper) :is(.has-plum-background-color, .has-plum-deep-background-color, .has-ink-background-color) .wp-block-quote.is-style-sp-testimonial { border-color: rgba(255, 255, 255, .14); color: var(--sp-cream); }
:is(.sp-theme, .editor-styles-wrapper) :is(.has-plum-background-color, .has-plum-deep-background-color, .has-ink-background-color) .wp-block-quote.is-style-sp-testimonial p { color: rgba(250, 246, 241, .92) !important; }
.sp-testimonials .wp-block-buttons { margin-top: clamp(2.5rem, 5vw, 3.5rem); }

/* ---------- Lists ---------- */
.wp-block-list.is-style-sp-check { list-style: none; padding-left: 0; margin: 1.75rem 0; }
.wp-block-list.is-style-sp-check li {
	position: relative;
	padding: .6rem 0 .6rem 2.25rem;
	border-bottom: 1px solid var(--sp-line);
}
.wp-block-list.is-style-sp-check li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 1.05rem;
	width: 1.1rem;
	height: .6rem;
	border-left: 1.5px solid var(--sp-sage);
	border-bottom: 1.5px solid var(--sp-sage);
	transform: rotate(-45deg);
}

/* ---------- Separator ---------- */
.wp-block-separator.is-style-sp-lotus {
	border: 0 !important;
	height: 36px;
	max-width: 100%;
	opacity: 1;
	background:
		url(../images/lotus-dark.png) center / auto 32px no-repeat,
		linear-gradient(var(--sp-blush), var(--sp-blush)) left center / calc(50% - 56px) 1px no-repeat,
		linear-gradient(var(--sp-blush), var(--sp-blush)) right center / calc(50% - 56px) 1px no-repeat;
}

/* ---------- FAQ (Details) ---------- */
.wp-block-details {
	border-bottom: 1px solid var(--sp-line);
	padding: 0;
	margin-block: 0 !important;
}
.wp-block-details:first-of-type { border-top: 1px solid var(--sp-line); margin-top: clamp(2rem, 4vw, 3rem) !important; }
.wp-block-details > summary {
	position: relative;
	list-style: none;
	cursor: pointer;
	padding: 1.5rem 3rem 1.5rem 0;
	font-family: var(--sp-font-heading);
	font-size: clamp(1.2rem, 1.05rem + .45vw, 1.45rem);
	font-weight: 500;
	line-height: 1.35;
	color: var(--sp-plum-deep);
	transition: color .3s;
}
.wp-block-details > summary::-webkit-details-marker { display: none; }
.wp-block-details > summary:hover { color: var(--sp-plum); }
.wp-block-details > summary::before,
.wp-block-details > summary::after {
	content: "";
	position: absolute;
	right: .25rem;
	top: 50%;
	width: 16px;
	height: 1.5px;
	background: var(--sp-plum);
	transition: transform .5s var(--sp-ease-out);
}
.wp-block-details > summary::after { transform: rotate(90deg); }
.wp-block-details[open] > summary::after { transform: rotate(0deg); }
.wp-block-details > :not(summary) { color: var(--sp-muted); margin: 0 0 1.5rem; max-width: 62ch; }
.wp-block-details::details-content {
	height: 0;
	overflow: clip;
	transition: height .5s var(--sp-ease-out), content-visibility .5s allow-discrete;
}
.wp-block-details[open]::details-content { height: auto; }

/* ---------- Cover CTA ---------- */
.wp-block-cover.sp-cover-cta { padding: var(--sp-section-y) var(--sp-gutter); }
.wp-block-cover.sp-cover-cta .wp-block-heading { color: #fff; margin-bottom: 1rem; }
.wp-block-cover.sp-cover-cta .sp-intro { max-width: 600px; margin-inline: auto; color: rgba(255, 255, 255, .85); }
/* Astra greys every paragraph inside a Cover (body .wp-block-cover:not(.has-text-color.has-link-color) p).
   On dark covers, paragraphs follow the cover's light text unless a colour was picked in the editor. */
:is(body.sp-theme, .editor-styles-wrapper) .wp-block-cover:not(.is-light) p:not(.has-text-color) { color: inherit; }
:is(body.sp-theme, .editor-styles-wrapper) .wp-block-cover:not(.is-light) p.is-style-sp-eyebrow:not(.has-text-color) { color: var(--sp-blush); }
:is(body.sp-theme, .editor-styles-wrapper) .wp-block-cover.sp-cover-cta p.sp-intro:not(.has-text-color) { color: rgba(255, 255, 255, .85); }

/* ---------- Map ---------- */
.sp-map { margin-top: clamp(2.5rem, 5vw, 4rem) !important; overflow: hidden; border-radius: var(--sp-radius); line-height: 0; }
.sp-map iframe { width: 100%; height: clamp(320px, 40vw, 460px); border: 0; filter: grayscale(.35) sepia(.12) contrast(1.02); }

/* ---------- Contact ---------- */
.sp-contact-item { border-top: 1px solid var(--sp-line); padding: 1.35rem 0 .35rem; margin-top: 0 !important; }
.sp-contact-item:last-child { border-bottom: 1px solid var(--sp-line); padding-bottom: 1.35rem; }
.sp-contact-item > .wp-block-heading { font-family: var(--sp-font-body); font-size: .7rem !important; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--sp-sage); margin: 0 0 .4rem; }
.sp-contact-item > p { font-family: var(--sp-font-heading); font-size: 1.35rem; line-height: 1.45; margin: 0; }
.sp-contact-item a { color: var(--sp-plum-deep); text-decoration: none; }
.sp-contact-item a:hover { color: var(--sp-plum); text-decoration: underline; text-underline-offset: .2em; }
/* Astra's heading font and content-link underline otherwise win here. */
:is(.sp-theme, .editor-styles-wrapper) .sp-contact-item > .wp-block-heading { font-family: var(--sp-font-body) !important; letter-spacing: .24em !important; line-height: 1.4; }
:is(.sp-theme, .editor-styles-wrapper) .sp-contact-item a:not(:hover):not(:focus-visible) { text-decoration: none !important; }
.sp-form-card > .wp-block-heading { margin-bottom: .75rem; }
.sp-form-note { font-size: .85rem; color: var(--sp-muted); margin-top: 1.25rem; }

/* ---------- Booking form ---------- */
.sp-booking-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1.5rem; margin-top: 1.75rem; }
.sp-booking-form .sp-field { grid-column: 1 / -1; display: flex; flex-direction: column; gap: .4rem; }
.sp-booking-form .sp-field--half { grid-column: auto; }
.sp-booking-form label { font-size: .68rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--sp-muted); }
.sp-booking-form input,
.sp-booking-form select,
.sp-booking-form textarea {
	width: 100%;
	padding: .75rem 0;
	border: 0;
	border-bottom: 1px solid color-mix(in srgb, var(--sp-ink) 25%, transparent);
	border-radius: 0;
	background: transparent;
	color: var(--sp-ink);
	font: inherit;
	font-size: 1rem;
	box-shadow: none;
	transition: border-color .3s;
}
.sp-booking-form select { appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234f1b3f' stroke-width='1.3'/%3E%3C/svg%3E") right .25rem center / 12px no-repeat; padding-right: 1.5rem; }
/* Astra fixes most fields at 40px tall (but not time), which clips the select text and misaligns date/time.
   Give every one-line field the same explicit height. */
:is(.sp-theme, .editor-styles-wrapper) .sp-booking-form :is(input, select) {
	height: 3rem;
	min-height: 3rem;
	padding-top: .625rem;
	padding-bottom: .625rem;
	line-height: 1.5;
	vertical-align: top;
}
:is(.sp-theme, .editor-styles-wrapper) .sp-booking-form textarea { height: auto; line-height: 1.6; }
.sp-booking-form :is(input[type="date"], input[type="time"]) { -webkit-appearance: none; appearance: none; display: block; text-align: left; }
.sp-booking-form :is(input[type="date"], input[type="time"])::-webkit-date-and-time-value { text-align: left; margin: 0; }
.sp-booking-form :is(input[type="date"], input[type="time"])::-webkit-datetime-edit { padding: 0; }
.sp-booking-form :is(input[type="date"], input[type="time"])::-webkit-calendar-picker-indicator { opacity: .7; cursor: pointer; }
.sp-booking-form input:focus,
.sp-booking-form select:focus,
.sp-booking-form textarea:focus { outline: none; border-bottom-color: var(--sp-plum); }
.sp-booking-form .sp-btn { grid-column: 1 / -1; width: 100%; margin-top: .75rem; padding-block: 1.25rem; }
.sp-form-error { grid-column: 1 / -1; color: #a1283c; font-size: .85rem; margin: 0; }
@media (max-width: 560px) { .sp-booking-form .sp-field--half { grid-column: 1 / -1; } }

/* ---------- Mobile column stacking ---------- */
@media (max-width: 781px) {
	.wp-block-columns.sp-split > .wp-block-column { flex-basis: 100% !important; }
	.sp-media-stack { margin-bottom: 1rem; }
	.wp-block-columns.sp-featured { flex-direction: column; }
}
