/* Serene Skin Studio: theme details that theme.json cannot express. */
:root {
	--serene-error: #9a3b2e;
	--serene-line: var(--wp--preset--color--sand);
}

/* ---------- Base ---------- */
h1, h2, h3, h4, .wp-block-heading { text-wrap: balance; }
p { text-wrap: pretty; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
	outline: 2px solid var(--wp--preset--color--gold);
	outline-offset: 3px;
}
::selection { background: var(--wp--preset--color--sand); color: var(--wp--preset--color--forest); }
.has-forest-background-color a:not(.wp-element-button), .has-pine-background-color a:not(.wp-element-button) { color: var(--wp--preset--color--ivory); }

/* ---------- Header ---------- */
.wp-site-blocks > header.wp-block-template-part { position: sticky; top: 0; z-index: 100; }
body.admin-bar .wp-site-blocks > header.wp-block-template-part { top: var(--wp-admin--admin-bar--height, 32px); }
.serene-header { border-bottom: 1px solid var(--serene-line); }
.serene-header .wp-block-image { margin: 0; }
.serene-header .wp-block-image img { display: block; height: auto; }
.serene-header .wp-block-navigation a { text-decoration: none; }
.serene-header .wp-block-navigation a:hover,
.serene-header .wp-block-navigation .current-menu-item > a { text-decoration: underline; text-decoration-color: var(--wp--preset--color--gold); text-underline-offset: 0.4em; }
.serene-header .wp-block-button__link { padding: 0.8rem 1.3rem; }
.serene-header__actions { gap: var(--wp--preset--spacing--30); }
@media (max-width: 600px) {
	.serene-header .wp-block-image img { width: 132px !important; }
	.serene-header .wp-block-buttons { display: none; }
}
.wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--ivory); padding: 1.5rem; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { font-family: var(--wp--preset--font-family--fraunces); font-size: 1.75rem; font-weight: 300; }

/* ---------- Block styles ---------- */
.wp-block-image img[style*="aspect-ratio"] { width: 100%; height: auto; }
.wp-block-image:has(img[style*="aspect-ratio"]) { width: 100%; }

.is-style-eyebrow {
	font-size: 0.75rem !important;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	line-height: 1.4;
}
.is-style-eyebrow:not(.has-text-color) { color: var(--wp--preset--color--gold-dark); }
.wp-block-image.is-style-arch img,
.wp-block-post-featured-image.is-style-arch img { border-radius: 999px 999px 0 0; }
.serene-hero-image { position: relative; }
.serene-hero-image::after {
	content: "";
	position: absolute;
	inset: 22px -22px -22px 22px;
	border: 1px solid var(--wp--preset--color--gold);
	border-radius: 999px 999px 0 0;
	pointer-events: none;
	z-index: -1;
}
.wp-block-separator.is-style-calm {
	width: 64px;
	max-width: 64px;
	height: 1px;
	border: 0;
	background: var(--wp--preset--color--gold);
	margin-left: 0;
	opacity: 1;
}
.has-text-align-center + .wp-block-separator.is-style-calm,
.serene-quote-section .wp-block-separator.is-style-calm { margin-inline: auto; }
.wp-block-separator.is-style-wide { border: 0; height: 1px; background: var(--serene-line); opacity: 1; }
.serene-footer .wp-block-separator.is-style-wide { background: var(--wp--preset--color--pine); }
.wp-block-group.is-style-card { border: 1px solid var(--serene-line); border-radius: 2px; }
.wp-block-list.is-style-dots { list-style: none; padding-left: 0; }
.wp-block-list.is-style-dots li { position: relative; padding-left: 1.25rem; margin-bottom: 0.4rem; }
.wp-block-list.is-style-dots li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 6px; height: 6px; border-radius: 50%; background: var(--wp--preset--color--gold); }

/* Outline buttons */
.wp-block-button.is-style-outline > .wp-block-button__link {
	border: 1px solid currentColor;
	background: transparent;
	color: var(--wp--preset--color--forest);
	padding: calc(1rem - 1px) calc(1.75rem - 1px);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--forest); color: var(--wp--preset--color--ivory); }
.has-forest-background-color .wp-block-button__link.has-ivory-background-color:hover { background: var(--wp--preset--color--sand) !important; }

/* Arrow links */
.serene-arrow-link a { text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--wp--preset--color--gold); padding-bottom: 2px; }
.serene-arrow-link a::after { content: " \2192"; }

/* ---------- Sections ---------- */
.serene-hero h1 { margin-top: 0.4rem; }
.serene-quote {
	font-family: var(--wp--preset--font-family--fraunces);
	font-style: italic;
	font-weight: 300;
	font-size: clamp(2rem, 4.6vw, 3.6rem);
	line-height: 1.15;
	color: var(--wp--preset--color--forest);
	max-width: 18ch;
	margin-inline: auto !important;
	text-wrap: balance;
}
.serene-step-number { font-family: var(--wp--preset--font-family--fraunces); font-weight: 300; font-size: 3rem; line-height: 1; margin-bottom: 0.75rem; }
.serene-signature { font-family: var(--wp--preset--font-family--fraunces); font-style: italic; font-size: 1.35rem; color: var(--wp--preset--color--forest); }
@media (min-width: 782px) {
	.serene-offset { margin-top: var(--wp--preset--spacing--50); }
	.serene-treatment.is-reversed { flex-direction: row; }
}
@media (max-width: 781px) {
	.serene-treatment.is-reversed { flex-direction: column-reverse; }
	.serene-hero-image::after { inset: 14px -10px -14px 10px; }
}
.serene-treatment { margin-block: var(--wp--preset--spacing--40) !important; }

/* ---------- Tables (prices and hours) ---------- */
.wp-block-table.is-style-price-list { margin: 0 0 var(--wp--preset--spacing--40); }
.wp-block-table.is-style-price-list table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.wp-block-table.is-style-price-list td, .wp-block-table.is-style-price-list th { border: 0; border-bottom: 1px solid var(--serene-line); padding: 0.7rem 0; vertical-align: baseline; }
.wp-block-table.is-style-price-list td:first-child { width: 62%; padding-right: 1rem; }
.wp-block-table.is-style-price-list td:nth-child(2) { width: 20%; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--wp--preset--color--pine); }
.wp-block-table.is-style-price-list td:last-child { text-align: right; font-weight: 500; color: var(--wp--preset--color--forest); }
.serene-hours td:first-child { width: 50% !important; }
.serene-hours td:last-child { font-weight: 400 !important; }
.serene-price-heading { margin-bottom: 0.25rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--wp--preset--color--gold); }
.serene-footer .wp-block-table.is-style-price-list td { border-bottom-color: var(--wp--preset--color--pine); color: var(--wp--preset--color--sand); padding: 0.35rem 0; font-size: 0.875rem; text-transform: none; letter-spacing: 0; }
.serene-footer .wp-block-table.is-style-price-list { margin: 0; }

/* ---------- FAQ ---------- */
.wp-block-details summary { cursor: pointer; list-style: none; font-family: var(--wp--preset--font-family--fraunces); font-size: 1.3rem; color: var(--wp--preset--color--forest); display: flex; justify-content: space-between; gap: 1rem; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; color: var(--wp--preset--color--gold-dark); font-family: var(--wp--preset--font-family--hanken); font-weight: 300; font-size: 1.6rem; line-height: 1; }
.wp-block-details[open] summary::after { content: "\2212"; }
.wp-block-details > p { margin-top: 0.75rem; max-width: 62ch; }

/* ---------- Footer ---------- */
.serene-footer p { margin-block: 0.5rem; }
.serene-footer__bottom p { margin: 0; }

/* ---------- Forms ---------- */
.serene-form-wrap { margin-top: var(--wp--preset--spacing--30); }
.serene-form__grid { display: grid; gap: 1.1rem 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 600px) { .serene-form__grid { grid-template-columns: 1fr 1fr; } .serene-field.is-wide { grid-column: 1 / -1; } }
.serene-field { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.serene-field label, .serene-field legend { font-size: 0.875rem; font-weight: 500; color: var(--wp--preset--color--forest); }
.serene-field fieldset { border: 0; padding: 0; margin: 0; }
.serene-req { color: var(--wp--preset--color--gold-dark); }
.serene-field input[type="text"], .serene-field input[type="email"], .serene-field input[type="tel"], .serene-field input[type="date"], .serene-field select, .serene-field textarea {
	width: 100%;
	box-sizing: border-box;
	font: inherit;
	font-size: 1rem;
	color: var(--wp--preset--color--ink);
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--sage);
	border-radius: 2px;
	padding: 0.75rem 0.85rem;
	min-height: 48px;
}
.serene-field textarea { min-height: 120px; resize: vertical; }
.serene-choices { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 0.35rem; }
.serene-choice { display: flex; align-items: flex-start; gap: 0.6rem; font-weight: 400 !important; color: var(--wp--preset--color--ink) !important; font-size: 0.9375rem !important; }
.serene-choice input { width: 20px; height: 20px; margin-top: 0.15rem; accent-color: var(--wp--preset--color--forest); flex: none; }
.serene-error { margin: 0; font-size: 0.8125rem; color: var(--serene-error); min-height: 0; }
.serene-error:empty { display: none; }
.serene-field.has-error input, .serene-field.has-error select, .serene-field.has-error textarea { border-color: var(--serene-error); border-width: 2px; }
.serene-form__footer { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.5rem; }
.serene-form__footer button { border: 0; cursor: pointer; }
.serene-form__footer button:disabled { opacity: 0.7; cursor: progress; }
.serene-form__note { margin: 0; font-size: 0.8125rem; color: var(--wp--preset--color--pine); }
.serene-notice, .serene-form__summary { padding: 1rem 1.25rem; margin-bottom: 1.25rem; border-left: 3px solid; background: var(--wp--preset--color--white); }
.serene-notice.is-success { border-color: var(--wp--preset--color--forest); color: var(--wp--preset--color--forest); }
.serene-notice.is-error, .serene-form__summary { border-color: var(--serene-error); color: var(--serene-error); }
.serene-notice ul, .serene-form__summary ul { margin: 0.5rem 0 0; padding-left: 1.2rem; }
.serene-notice a, .serene-form__summary a { color: inherit; }
.serene-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }

/* ---------- Fixes after visual review ---------- */
.wp-site-blocks > footer.wp-block-template-part, .wp-site-blocks > main, .wp-site-blocks > .wp-block-group { margin-block-start: 0; }
.serene-hours td:last-child { white-space: nowrap; text-transform: none !important; letter-spacing: 0 !important; font-size: 0.875rem !important; }
.serene-hours td:nth-child(2) { text-transform: none; letter-spacing: 0; font-size: 0.875rem; width: auto; }
.serene-lede { max-width: 40rem; }
