/*
 * Sérénité Massage components. Class names start with sm-. Pages built from
 * these parts are wrapped in <div class="sm-page">, which also switches the
 * page to the wide layout. Minimum font weight is 400.
 */

/* Wide page layout --------------------------------------------------- */

.sm-wide .site-main__inner {
	max-width: none;
	padding-left: 0;
	padding-right: 0;
	padding-top: 0;
	padding-bottom: 0;
}

.sm-wide .entry__content {
	font-size: 1.0625rem;
	line-height: 1.75;
	max-width: none;
}

.sm-page {
	color: var(--sm-text);
	font-family: var(--sm-font-body);
	font-size: 1.0625rem;
	line-height: 1.75;
}

.sm-page h1,
.sm-page h2,
.sm-page h3 {
	color: var(--sm-heading);
	font-family: var(--sm-font-display);
	font-weight: 500;
	margin: 0;
}

.sm-page h1 { font-size: clamp(2.5rem, 1.6rem + 3vw, 4.25rem); line-height: 1.05; }
.sm-page h2 { font-size: clamp(2rem, 1.4rem + 2vw, 3.125rem); line-height: 1.1; }
.sm-page h3 { font-size: 1.75rem; font-weight: 600; line-height: 1.2; }
.sm-page p { margin: 0; }
.sm-page a { color: var(--sm-primary); }
.sm-page a:hover { color: var(--sm-primary-hover); }

.sm-page :focus-visible,
.sm-header-cta:focus-visible {
	outline: 3px solid var(--sm-primary);
	outline-offset: 2px;
}

/* Layout helpers ----------------------------------------------------- */

.sm-section {
	margin: 0 auto;
	max-width: var(--sm-measure);
	padding: 6.5rem 2.5rem 0;
}

.sm-section--last { padding-bottom: 6.5rem; }
.sm-section--center { text-align: center; }

.sm-stack { display: flex; flex-direction: column; gap: 1.25rem; }
.sm-stack--center { align-items: center; text-align: center; }

.sm-grid {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 18.75rem), 1fr));
}

.sm-split {
	align-items: center;
	display: grid;
	gap: 3.5rem;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 18.75rem), 1fr));
}

.sm-main-aside {
	display: flex;
	flex-wrap: wrap;
	gap: 4rem;
}

.sm-main-aside > :first-child { flex: 2 1 32.5rem; min-width: 0; }
.sm-main-aside > :last-child { flex: 1 1 18.75rem; min-width: 0; }

/* Panel and vine ----------------------------------------------------- */

.sm-panel {
	background: var(--sm-tint);
	border-radius: var(--sm-radius-panel);
	margin: 0.5rem 1.5rem 0;
	overflow: hidden;
	position: relative;
}

.sm-panel--band { margin-top: 6.5rem; }

.sm-panel__inner {
	margin: 0 auto;
	max-width: var(--sm-measure);
	padding: 5.5rem 2.5rem;
	position: relative;
}

.sm-vine {
	height: 40rem;
	left: -8.75rem;
	pointer-events: none;
	position: absolute;
	top: -3.75rem;
	width: 40rem;
}

.sm-vine--right { left: auto; right: -11rem; top: -7rem; width: 35rem; height: 35rem; }

/* Type --------------------------------------------------------------- */

.sm-eyebrow {
	color: var(--sm-eyebrow);
	font-size: 0.875rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.sm-lead { color: var(--sm-muted); font-size: 1.125rem; max-width: 30rem; }
.sm-muted { color: var(--sm-muted); }
.sm-small { color: var(--sm-muted); font-size: 0.875rem; }

/* Buttons and chips -------------------------------------------------- */

.sm-btn {
	align-items: center;
	border: 1px solid transparent;
	border-radius: 999px;
	display: inline-flex;
	font-family: var(--sm-font-body);
	font-size: 1rem;
	font-weight: 500;
	justify-content: center;
	line-height: 1.3;
	min-height: 44px;
	padding: 0.95rem 1.9rem;
	text-decoration: none;
}

.sm-btn--primary,
.sm-page a.sm-btn--primary { background: var(--sm-primary); border-color: var(--sm-primary); color: #fff; }
.sm-btn--primary:hover,
.sm-page a.sm-btn--primary:hover { background: var(--sm-primary-hover); border-color: var(--sm-primary-hover); color: #fff; }

.sm-btn--secondary,
.sm-page a.sm-btn--secondary { background: #fff; border-color: #fff; color: #24524a; }
.sm-btn--secondary:hover,
.sm-page a.sm-btn--secondary:hover { background: var(--sm-leaf); border-color: var(--sm-leaf); color: var(--sm-primary-hover); }

.sm-btn--outline,
.sm-page a.sm-btn--outline { background: transparent; border-color: var(--sm-field); color: #24524a; }
.sm-btn--outline:hover,
.sm-page a.sm-btn--outline:hover { background: var(--sm-tint); color: var(--sm-primary-hover); }

.sm-actions { display: flex; flex-wrap: wrap; gap: 0.875rem; }

.sm-chips { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.sm-chip { background: #fff; border-radius: 999px; font-size: 0.9375rem; padding: 0.5rem 1.125rem; }

.sm-header-cta { font-size: 0.9375rem; margin-left: 1rem; min-height: 44px; padding: 0.8rem 1.6rem; text-decoration: none; }
.site-header .sm-header-cta,
.site-header .sm-header-cta:hover { color: #fff; }

/* Cards -------------------------------------------------------------- */

.sm-card {
	background: var(--sm-tint);
	border-radius: var(--sm-radius-card);
	color: var(--sm-text);
	display: flex;
	flex-direction: column;
	gap: 0.625rem;
	padding: 2.25rem;
	text-decoration: none;
}

.sm-page a.sm-card { color: var(--sm-text); }
.sm-page a.sm-card:hover { background: var(--sm-leaf); color: var(--sm-text); }
.sm-card__title { color: var(--sm-heading); font-family: var(--sm-font-display); font-size: 1.75rem; font-weight: 600; line-height: 1.2; }
.sm-card__text { color: var(--sm-muted); }

.sm-card--plain { background: #fff; border: 1px solid var(--sm-leaf); padding: 2rem; }
.sm-card--plain h2,
.sm-card--plain h3 { font-size: 1.875rem; font-weight: 500; }
.sm-card--tint { background: var(--sm-tint); }

/* Photos ------------------------------------------------------------- */

.sm-arch,
.sm-photo {
	background: var(--sm-leaf);
	box-sizing: border-box;
	color: var(--sm-muted);
	display: flex;
	font-size: 0.9375rem;
	justify-content: center;
	align-items: center;
	overflow: hidden;
}

.sm-arch { border: 12px solid #fff; border-radius: 260px; height: 31.25rem; }
.sm-photo { border-radius: var(--sm-radius-card); height: 26.25rem; }
.sm-arch img,
.sm-photo img { height: 100%; object-fit: cover; width: 100%; }

/* Memberships -------------------------------------------------------- */

.sm-badges {
	color: var(--sm-eyebrow);
	display: flex;
	flex-wrap: wrap;
	font-size: 0.9375rem;
	gap: 0.75rem 2.5rem;
	justify-content: center;
	list-style: none;
	margin: 0;
	padding: 3rem 2.5rem 0;
}

.sm-badges li { margin: 0; }
.sm-badges li + li::before { content: "\00b7"; margin-right: 2.5rem; }

/* Steps and FAQ ------------------------------------------------------ */

.sm-steps { counter-reset: sm-step; display: flex; flex-direction: column; gap: 1rem; list-style: none; margin: 0; padding: 0; }

.sm-steps li {
	background: var(--sm-tint);
	border-radius: var(--sm-radius-card);
	counter-increment: sm-step;
	display: flex;
	gap: 1.25rem;
	margin: 0;
	padding: 1.75rem 2rem;
}

.sm-steps li::before {
	align-items: center;
	background: #fff;
	border-radius: 999px;
	color: var(--sm-primary);
	content: counter(sm-step);
	display: flex;
	flex: 0 0 2.5rem;
	font-weight: 600;
	height: 2.5rem;
	justify-content: center;
	width: 2.5rem;
}

.sm-steps strong { display: block; font-weight: 600; }

.sm-faq { display: flex; flex-direction: column; gap: 0.75rem; }
.sm-faq details { background: var(--sm-tint); border-radius: 24px; padding: 1.375rem 1.75rem; }
.sm-faq summary { cursor: pointer; font-weight: 600; }
.sm-faq details > :not(summary) { color: var(--sm-muted); margin-top: 0.75rem; }

/* Breadcrumb --------------------------------------------------------- */

.sm-breadcrumb {
	color: var(--sm-muted);
	display: flex;
	flex-wrap: wrap;
	font-size: 0.875rem;
	gap: 0.5rem;
	margin: 0 auto;
	max-width: var(--sm-measure);
	padding: 0.5rem 2.5rem 1rem;
}

/* Forms: wrap the form from the site's form plugin in <div class="sm-form"> */

.sm-form {
	background: var(--sm-tint);
	border-radius: var(--sm-radius-card);
	padding: 2.5rem;
}

.sm-form label,
.sm-form legend { display: block; font-size: 0.9375rem; font-weight: 500; margin-bottom: 0.375rem; }

.sm-form input[type="text"],
.sm-form input[type="email"],
.sm-form input[type="tel"],
.sm-form select,
.sm-form textarea {
	background: #fff;
	border: 1px solid var(--sm-field);
	border-radius: 16px;
	box-sizing: border-box;
	color: var(--sm-text);
	font: inherit;
	padding: 0.875rem 1.125rem;
	width: 100%;
}

.sm-form input:focus,
.sm-form select:focus,
.sm-form textarea:focus { outline: 3px solid var(--sm-primary); outline-offset: 1px; }

.sm-form button,
.sm-form input[type="submit"] {
	background: var(--sm-primary);
	border: 0;
	border-radius: 999px;
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-weight: 500;
	min-height: 44px;
	padding: 1rem 2rem;
}

.sm-form button:hover,
.sm-form input[type="submit"]:hover { background: var(--sm-primary-hover); }

/* Site chrome from the parent theme --------------------------------- */

body { background: var(--sm-ground); }

.site-header { background: var(--sm-ground); }

.site-footer--columns { background: var(--sm-ground); border-top: 1px solid var(--sm-leaf); }

.site-footer--columns .site-footer__brand::before {
	background: url("../images/logo-roundel.png") center / contain no-repeat;
	content: "";
	display: block;
	height: 56px;
	margin-bottom: 0.75rem;
	width: 56px;
}

.site-footer--columns .site-footer__column h2,
.site-footer--columns .site-footer__column .widget__title {
	font-family: var(--sm-font-body);
	font-size: 0.9375rem;
	font-weight: 600;
}

.site-footer--columns .site-footer__column p { margin: 0 0 0.375rem; }

/* Small screens ------------------------------------------------------ */

@media (max-width: 47.99em) {
	.sm-section { padding: 4rem 1.25rem 0; }
	.sm-section--last { padding-bottom: 4rem; }
	.sm-panel { border-radius: 32px; margin: 0.5rem 0.75rem 0; }
	.sm-panel__inner { padding: 3.5rem 1.25rem; }
	.sm-badges { padding: 2rem 1.25rem 0; }
	.sm-badges li + li::before { display: none; }
	.sm-arch { border-radius: 160px; height: 22rem; }
	.sm-photo { height: 18rem; }
	.sm-form { padding: 1.5rem; }
	.sm-card { padding: 1.75rem; }
	.sm-breadcrumb { padding: 0.5rem 1.25rem 1rem; }
	.sm-header-cta { margin-left: 0.5rem; padding: 0.7rem 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
	.sm-btn,
	.sm-card { transition: none; }
}

/* Cards are whole-card links, so no underline on their text. */
.sm-page a.sm-card,
.sm-page a.sm-card:hover,
.sm-page a.sm-card span { text-decoration: none; }

.sm-page a.sm-card:focus-visible { outline: 3px solid var(--sm-primary); outline-offset: 3px; }

/* Block editor parts (1.1.0) ----------------------------------------- */

.sm-page .wp-block-button .wp-block-button__link {
	border: 1px solid transparent;
	border-radius: 999px;
	font-family: var(--sm-font-body);
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.3;
	min-height: 44px;
	padding: 0.95rem 1.9rem;
	text-decoration: none;
}

.sm-page .sm-bw--primary .wp-block-button__link { background: var(--sm-primary); border-color: var(--sm-primary); color: #fff; }
.sm-page .sm-bw--primary .wp-block-button__link:hover { background: var(--sm-primary-hover); border-color: var(--sm-primary-hover); color: #fff; }
.sm-page .sm-bw--secondary .wp-block-button__link { background: #fff; border-color: #fff; color: #24524a; }
.sm-page .sm-bw--secondary .wp-block-button__link:hover { background: var(--sm-leaf); border-color: var(--sm-leaf); color: var(--sm-primary-hover); }
.sm-page .sm-bw--outline .wp-block-button__link { background: transparent; border-color: var(--sm-field); color: #24524a; }
.sm-page .sm-bw--outline .wp-block-button__link:hover { background: var(--sm-tint); color: var(--sm-primary-hover); }

.sm-page .wp-block-buttons { gap: 0.875rem; }
.sm-actions--center { justify-content: center; margin-top: 2rem; }

.sm-page .wp-block-group > .wp-block-heading,
.sm-page .wp-block-group > p { margin-block: 0; }
.sm-page .wp-block-group.sm-stack { display: grid; gap: 1.25rem; }
.sm-page ul.sm-badges { list-style: none; padding-left: 0; }

.sm-section > .sm-grid { margin-top: 3rem; }
.sm-grid--roomy { gap: 3rem; }
.sm-h2--small { font-size: 2.125rem; }

/* A card whose title is a link: the link covers the whole card. */
.sm-card { position: relative; }
.sm-card__title a,
.sm-card__title a:hover { color: inherit; text-decoration: none; }
.sm-card__title a::after { border-radius: inherit; content: ""; inset: 0; position: absolute; }
.sm-card:has(.sm-card__title a):hover { background: var(--sm-leaf); }
.sm-card__title a:focus-visible { outline: none; }
.sm-card__title a:focus-visible::after { outline: 3px solid var(--sm-primary); outline-offset: 3px; }

.sm-photo > p,
.sm-arch > p { margin: 0; padding: 1rem; text-align: center; }
