/*
 * Serenite Massage child theme: aesthetic pass (1.2.0)
 *
 * Load last, after tokens.css and components.css.
 * Scoped to the body class WordPress already prints for this child theme,
 * so it works whether or not the .sm-page / .sm-wide body classes are present.
 * Minimum font weight 400 throughout.
 */

/* ---------- 1. Page canvas: let block content use the full design width ---------- */

.wp-child-theme-serenite-massage.page .site-main__inner {
	max-width: none;
	padding: 0 0 104px;
}

.wp-child-theme-serenite-massage.page .entry__content {
	max-width: none;
	font-family: var(--sm-font-body);
	font-size: 17px;
	line-height: 1.75;
	color: var(--sm-text);
}

.wp-child-theme-serenite-massage.page .entry__content :where(p) {
	margin: 0;
}

/* Vertical rhythm inside every group and column */
.wp-child-theme-serenite-massage .entry__content .wp-block-group > * + *,
.wp-child-theme-serenite-massage .entry__content .wp-block-column > * + * {
	margin-block-start: 16px;
}

.wp-child-theme-serenite-massage .entry__content .wp-block-group > h1 + *,
.wp-child-theme-serenite-massage .entry__content .wp-block-group > h2 + *,
.wp-child-theme-serenite-massage .entry__content .wp-block-column > h1 + *,
.wp-child-theme-serenite-massage .entry__content .wp-block-column > h2 + * {
	margin-block-start: 20px;
}

.wp-child-theme-serenite-massage .entry__content .wp-block-group > .wp-block-buttons,
.wp-child-theme-serenite-massage .entry__content .wp-block-column > .wp-block-buttons {
	margin-block-start: 32px;
}

.wp-child-theme-serenite-massage .entry__content .wp-block-columns {
	gap: 24px;
	margin: 0;
}

.wp-child-theme-serenite-massage .entry__content .wp-block-group > .wp-block-columns {
	margin-block-start: 40px;
}

.wp-child-theme-serenite-massage .entry__content .wp-block-columns + .wp-block-columns {
	margin-block-start: 24px;
}

/* ---------- 2. Type scale ---------- */

.wp-child-theme-serenite-massage .entry__content h1,
.wp-child-theme-serenite-massage .entry__content h2,
.wp-child-theme-serenite-massage .entry__content h3 {
	font-family: var(--sm-font-display);
	color: var(--sm-heading);
	letter-spacing: 0;
	margin: 0;
	text-wrap: balance;
}

.wp-child-theme-serenite-massage .entry__content h1 {
	font-size: clamp(2.5rem, 1.6rem + 3vw, 4rem);
	line-height: 1.05;
	font-weight: 500;
}

.wp-child-theme-serenite-massage .entry__content h2 {
	font-size: clamp(2rem, 1.55rem + 1.5vw, 2.75rem);
	line-height: 1.1;
	font-weight: 500;
}

.wp-child-theme-serenite-massage .entry__content h3 {
	font-size: clamp(1.375rem, 1.25rem + 0.4vw, 1.625rem);
	line-height: 1.2;
	font-weight: 600;
}

.wp-child-theme-serenite-massage .entry__content .sm-eyebrow {
	font-family: var(--sm-font-body);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--sm-eyebrow);
}

.wp-child-theme-serenite-massage .entry__content .sm-lead {
	font-size: 19px;
	line-height: 1.65;
	color: var(--sm-muted);
	max-width: 34em;
}

.wp-child-theme-serenite-massage .entry__content .sm-note {
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--sm-muted);
}

/* Links in running text */
.wp-child-theme-serenite-massage .entry__content a:not(.wp-block-button__link) {
	color: var(--sm-primary);
	text-decoration: underline;
	text-decoration-color: var(--sm-line);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

.wp-child-theme-serenite-massage .entry__content a:not(.wp-block-button__link):hover {
	color: var(--sm-primary-hover);
	text-decoration-color: currentColor;
}

/* Lists */
.wp-child-theme-serenite-massage .entry__content .wp-block-group ul.wp-block-list {
	padding-left: 1.2em;
	margin-block-end: 0;
}

.wp-child-theme-serenite-massage .entry__content ul.wp-block-list li {
	margin: 0;
}

.wp-child-theme-serenite-massage .entry__content ul.wp-block-list li + li {
	margin-top: 8px;
}

/* ---------- 3. Buttons (fixes dark text on dark green) ---------- */

.wp-child-theme-serenite-massage .entry__content .wp-block-buttons {
	gap: 12px;
}

.wp-child-theme-serenite-massage .entry__content .wp-block-button .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 28px;
	border: 1px solid var(--sm-primary);
	border-radius: 999px;
	background: var(--sm-primary);
	color: #FFFFFF;
	font-family: var(--sm-font-body);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.3;
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.wp-child-theme-serenite-massage .entry__content .wp-block-button .wp-block-button__link:hover,
.wp-child-theme-serenite-massage .entry__content .wp-block-button .wp-block-button__link:focus-visible {
	background: var(--sm-primary-hover);
	border-color: var(--sm-primary-hover);
	color: #FFFFFF;
}

.wp-child-theme-serenite-massage .entry__content .wp-block-button .wp-block-button__link:focus-visible {
	outline: 3px solid var(--sm-primary);
	outline-offset: 3px;
}

/* Secondary: white pill, green text */
.wp-child-theme-serenite-massage .entry__content .wp-block-button.sm-btn--secondary .wp-block-button__link,
.wp-child-theme-serenite-massage .entry__content .wp-block-button.sm-bw--secondary .wp-block-button__link {
	background: #FFFFFF;
	border-color: var(--sm-line);
	color: var(--sm-primary);
}

.wp-child-theme-serenite-massage .entry__content .wp-block-button.sm-btn--secondary .wp-block-button__link:hover,
.wp-child-theme-serenite-massage .entry__content .wp-block-button.sm-bw--secondary .wp-block-button__link:hover {
	background: var(--sm-leaf);
	border-color: var(--sm-leaf);
	color: var(--sm-primary-hover);
}

/* Outline: transparent, green text */
.wp-child-theme-serenite-massage .entry__content .wp-block-button.is-style-outline .wp-block-button__link,
.wp-child-theme-serenite-massage .entry__content .wp-block-button.sm-bw--outline .wp-block-button__link {
	background: transparent;
	border-color: var(--sm-field);
	color: var(--sm-primary);
}

.wp-child-theme-serenite-massage .entry__content .wp-block-button.is-style-outline .wp-block-button__link:hover,
.wp-child-theme-serenite-massage .entry__content .wp-block-button.sm-bw--outline .wp-block-button__link:hover {
	background: var(--sm-tint);
	color: var(--sm-primary-hover);
}

.wp-child-theme-serenite-massage .entry__content .wp-block-button.wp-block-button__width-100 {
	width: 100%;
}

.wp-child-theme-serenite-massage .entry__content .wp-block-button.wp-block-button__width-100 .wp-block-button__link {
	width: 100%;
}

/* ---------- 4. Sections and panels ---------- */

.wp-child-theme-serenite-massage .entry__content > .sm-section {
	padding: 104px 40px 0;
	margin: 0 auto;
	box-sizing: border-box;
}

/* Full-width tinted panel at page level */
.wp-child-theme-serenite-massage .entry__content > .sm-panel {
	position: relative;
	overflow: hidden;
	margin: 104px 24px 0;
	padding: 88px 40px;
	border-radius: var(--sm-radius-panel);
	background: var(--sm-tint);
}

/* The hero sits close under the header */
.wp-child-theme-serenite-massage .entry__content > .sm-panel.sm-hero {
	margin-top: 8px;
	padding-top: 104px;
	padding-bottom: 112px;
}

.wp-child-theme-serenite-massage .entry__content > .sm-panel > * {
	position: relative;
}

/* Panels inside a section become soft boxes */
.wp-child-theme-serenite-massage .entry__content .sm-section .sm-panel {
	margin: 0;
	padding: 36px;
	border-radius: var(--sm-radius-card);
	background: var(--sm-tint);
	height: 100%;
	box-sizing: border-box;
}

/* Vine motif */
.wp-child-theme-serenite-massage .entry__content .sm-hero > svg.sm-vine {
	position: absolute;
	left: -140px;
	top: -60px;
	width: 640px;
	height: 640px;
	max-width: none;
	margin: 0;
	pointer-events: none;
}

.wp-child-theme-serenite-massage .entry__content .sm-hero > svg.sm-vine + * {
	margin-block-start: 0;
}

/* ---------- 5. Cards ---------- */

.wp-child-theme-serenite-massage .entry__content .sm-card {
	position: relative;
	height: 100%;
	box-sizing: border-box;
	padding: 32px;
	border-radius: var(--sm-radius-card);
	background: var(--sm-tint);
	transition: background-color 0.2s ease;
}

.wp-child-theme-serenite-massage .entry__content .sm-card > * + * {
	margin-block-start: 10px;
}

.wp-child-theme-serenite-massage .entry__content .sm-card p {
	color: var(--sm-muted);
}

.wp-child-theme-serenite-massage .entry__content .sm-card--plain {
	background: #FFFFFF;
	border: 1px solid var(--sm-leaf);
}

.wp-child-theme-serenite-massage .entry__content .sm-section .sm-card--plain + .sm-card--plain,
.wp-child-theme-serenite-massage .entry__content .wp-block-column > .sm-card + .sm-card {
	margin-block-start: 20px;
	height: auto;
}

/* Whole card clickable when its title is a link */
.wp-child-theme-serenite-massage .entry__content .sm-card h3 a {
	color: inherit;
	text-decoration: none;
}

.wp-child-theme-serenite-massage .entry__content .sm-card h3 a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.wp-child-theme-serenite-massage .entry__content .sm-card:has(h3 a):hover {
	background: var(--sm-leaf);
}

.wp-child-theme-serenite-massage .entry__content .sm-card:has(h3 a:focus-visible) {
	outline: 3px solid var(--sm-primary);
	outline-offset: 3px;
}

/* Small image at the top of a card */
.wp-child-theme-serenite-massage .entry__content .sm-card__image {
	margin: 0 0 8px;
}

.wp-child-theme-serenite-massage .entry__content .sm-card__image img {
	display: block;
	width: 100%;
	height: 150px;
	object-fit: cover;
	border-radius: 20px;
}

/* Chips */
.wp-child-theme-serenite-massage .entry__content .sm-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-block-start: 16px;
}

.wp-child-theme-serenite-massage .entry__content .sm-chip {
	display: inline-block;
	padding: 5px 14px;
	border-radius: 999px;
	background: #FFFFFF;
	color: var(--sm-text);
	font-size: 14.5px;
	line-height: 1.5;
}

.wp-child-theme-serenite-massage .entry__content .sm-card--plain .sm-chip {
	background: var(--sm-tint);
}

/* ---------- 6. Photos ---------- */

.wp-child-theme-serenite-massage .entry__content figure.sm-photo,
.wp-child-theme-serenite-massage .entry__content .wp-block-group.sm-photo {
	margin: 0;
	height: 420px;
	overflow: hidden;
	border-radius: var(--sm-radius-card);
	background: var(--sm-leaf);
}

.wp-child-theme-serenite-massage .entry__content figure.sm-photo--oval,
.wp-child-theme-serenite-massage .entry__content .wp-block-group.sm-photo--oval,
.wp-child-theme-serenite-massage .entry__content figure.sm-arch {
	height: 500px;
	border-radius: 260px;
	border: 12px solid #FFFFFF;
	box-sizing: border-box;
}

.wp-child-theme-serenite-massage .entry__content figure.sm-photo img,
.wp-child-theme-serenite-massage .entry__content figure.sm-arch img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wp-child-theme-serenite-massage .entry__content .wp-block-group.sm-photo {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--sm-muted);
	font-size: 15px;
}

/* ---------- 7. Memberships ---------- */

.wp-child-theme-serenite-massage .entry__content > .sm-logos {
	margin: 56px auto 0;
	padding: 0 24px;
}

.wp-child-theme-serenite-massage .entry__content .sm-logos {
	gap: 24px;
	align-items: center;
}

.wp-child-theme-serenite-massage .entry__content .sm-logos figure {
	margin: 0;
}

.wp-child-theme-serenite-massage .entry__content .sm-logos img {
	width: 88px;
	height: auto;
}

.wp-child-theme-serenite-massage .entry__content .sm-memberships {
	margin: 16px auto 0;
	padding: 0 24px;
	font-size: 15px;
	color: var(--sm-eyebrow);
}

/* ---------- 8. Numbered steps ---------- */

.wp-child-theme-serenite-massage .entry__content ol.sm-steps {
	list-style: none;
	counter-reset: sm-step;
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 24px 0 0;
	padding: 0;
}

.wp-child-theme-serenite-massage .entry__content ol.sm-steps li {
	counter-increment: sm-step;
	position: relative;
	margin: 0;
	padding: 24px 28px 24px 84px;
	border-radius: 24px;
	background: var(--sm-tint);
	color: var(--sm-muted);
}

.wp-child-theme-serenite-massage .entry__content ol.sm-steps li::before {
	content: counter(sm-step);
	position: absolute;
	left: 24px;
	top: 22px;
	width: 40px;
	height: 40px;
	border-radius: 999px;
	background: #FFFFFF;
	color: var(--sm-primary);
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wp-child-theme-serenite-massage .entry__content ol.sm-steps strong {
	color: var(--sm-text);
	font-weight: 600;
}

/* ---------- 9. Small screens ---------- */

@media (max-width: 47.99em) {
	.wp-child-theme-serenite-massage .entry__content > .sm-section {
		padding: 64px 20px 0;
	}

	.wp-child-theme-serenite-massage .entry__content > .sm-panel {
		margin: 64px 12px 0;
		padding: 56px 20px;
		border-radius: 32px;
	}

	.wp-child-theme-serenite-massage .entry__content > .sm-panel.sm-hero {
		margin-top: 4px;
		padding: 56px 20px 64px;
	}

	.wp-child-theme-serenite-massage .entry__content .sm-section .sm-panel,
	.wp-child-theme-serenite-massage .entry__content .sm-card {
		padding: 28px;
	}

	.wp-child-theme-serenite-massage .entry__content figure.sm-photo,
	.wp-child-theme-serenite-massage .entry__content .wp-block-group.sm-photo {
		height: 288px;
	}

	.wp-child-theme-serenite-massage .entry__content figure.sm-photo--oval,
	.wp-child-theme-serenite-massage .entry__content figure.sm-arch {
		height: 360px;
		border-radius: 180px;
	}

	.wp-child-theme-serenite-massage .entry__content .sm-hero > svg.sm-vine {
		width: 420px;
		height: 420px;
		left: -160px;
	}

	.wp-child-theme-serenite-massage .entry__content ol.sm-steps li {
		padding: 20px 20px 20px 72px;
	}

	.wp-child-theme-serenite-massage .entry__content ol.sm-steps li::before {
		left: 18px;
		top: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wp-child-theme-serenite-massage .entry__content .wp-block-button .wp-block-button__link,
	.wp-child-theme-serenite-massage .entry__content .sm-card {
		transition: none;
	}
}
/*--------------- Correction ---------------*/
/* 1.2.1: only stretch a card or panel when it is alone in its column */
.wp-child-theme-serenite-massage .entry__content .sm-card,
.wp-child-theme-serenite-massage .entry__content .sm-section .sm-panel {
	height: auto;
}

.wp-child-theme-serenite-massage .entry__content .wp-block-column > .sm-card:only-child,
.wp-child-theme-serenite-massage .entry__content .wp-block-column > .sm-panel:only-child {
	height: 100%;
}

/* 1.2.2: footer weight */
.wp-child-theme-serenite-massage .site-footer .widget h3.wp-block-heading {
	font-family: var(--sm-font-body);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.04em;
	color: var(--sm-heading);
	margin: 0 0 10px;
}

.wp-child-theme-serenite-massage .site-footer__title a {
	color: var(--sm-heading);
	text-decoration: none;
}

.wp-child-theme-serenite-massage .site-footer__title a:hover,
.wp-child-theme-serenite-massage .site-footer__title a:focus-visible {
	text-decoration: underline;
}