/**
 * Mitchell Chiropractic — front page.
 *
 * Everything theme.json cannot express: resetting the inherited commercial-theme
 * button/nav chrome, the header rule-on-scroll, the mobile overlay menu, the
 * hero spine + its one draw-in animation, the waitlist form and its states, and
 * the focus ring required by the quality floor.
 *
 * Tokens come from theme.json presets: --wp--preset--color--*,
 * --wp--preset--font-family--*, --wp--preset--spacing--*, --wp--custom--*.
 */

/* ================================================================== *
 * Primitives
 * ================================================================== */

.screen-reader-text,
.mitchell-waitlist__hp {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* Keyboard focus — a 2px Ink outline, 2px offset, never removed. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible,
.wp-element-button:focus-visible,
.wp-block-navigation-item__content:focus-visible {
	outline: 2px solid var(--wp--preset--color--ink);
	outline-offset: 2px;
	border-radius: 0;
}

.mitchell-band a:focus-visible,
.mitchell-band button:focus-visible,
.mitchell-band input:focus-visible,
.mitchell-band .wp-element-button:focus-visible {
	outline-color: var(--wp--preset--color--bone);
}

/* Measure cap for body copy. */
.mitchell-hero__support,
.mitchell-hero__reassure,
.mitchell-service__desc,
.mitchell-prose {
	max-width: var(--wp--custom--measure, 68ch);
	margin-inline: 0;
}

/* Constrained layout centres its children with !important; keep prose left. */
.mitchell-prose {
	margin-inline: 0 !important;
}

/* ================================================================== *
 * Reset inherited chrome from the base theme's style.css
 * (lime arrow discs on buttons, underline animations on nav links)
 * ================================================================== */

.mitchell-main .wp-block-button__link,
.mitchell-hdr .wp-block-button__link,
.mitchell-ftr .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 0;
	padding: 1rem 1.75rem;
	border-radius: 0;
	background-color: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--bone);
	font-family: var(--wp--preset--font-family--jost);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--ink);
	transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
	transform: none;
}

.mitchell-main .wp-block-button__link::after,
.mitchell-hdr .wp-block-button__link::after,
.mitchell-ftr .wp-block-button__link::after,
.mitchell-band .wp-block-button__link::after {
	content: none !important;
	display: none !important;
}

.mitchell-main .wp-block-button__link:hover,
.mitchell-hdr .wp-block-button__link:hover,
.mitchell-ftr .wp-block-button__link:hover,
.mitchell-main .wp-block-button__link:focus-visible,
.mitchell-hdr .wp-block-button__link:focus-visible {
	background-color: var(--wp--preset--color--bone);
	color: var(--wp--preset--color--ink);
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--ink);
	transform: none;
}

.mitchell-nav .wp-block-navigation-item__content::after {
	display: none !important;
}

/* ================================================================== *
 * Header
 * ================================================================== */

:root {
	--mitchell-header-h: clamp(72px, 7vw, 88px);
	/* The one deliberate spot of colour: form outcomes only. */
	--mitchell-success: #2f6d4a;
	--mitchell-error: #b3392f;
	--mitchell-success-on-dark: #7cc79a;
	--mitchell-error-on-dark: #e28b81;
}

/* Fixed so the header never scrolls away (an ancestor's overflow:clip
   would break position:sticky here). */
.mitchell-hdr {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	background: transparent;
	border-bottom: 1px solid transparent;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.mitchell-hdr.is-stuck {
	background: var(--wp--preset--color--bone);
	border-bottom-color: var(--wp--preset--color--rule);
}

/* Clear the fixed header, and keep anchor jumps below it. */
.mitchell-main {
	padding-top: var(--mitchell-header-h);
}

html {
	scroll-padding-top: calc(var(--mitchell-header-h) + 0.5rem);
}

.mitchell-hdr__in {
	max-width: 1140px;
	margin-inline: auto;
	padding-inline: var(--wp--custom--gutter, clamp(1.5rem, 5vw, 5rem));
}

/* Pull the logo lockup a little tighter to the edge on wider screens. */
@media (min-width: 600px) {
	.mitchell-hdr__in {
		padding-left: clamp(1rem, 3vw, 2.5rem);
	}
}

/* Logo lockup */
.mitchell-logo {
	display: inline-flex;
	flex-direction: column;
	gap: 0.34rem;
	text-decoration: none;
	color: var(--wp--preset--color--ink);
	line-height: 1;
}

.mitchell-logo__name {
	font-family: var(--wp--preset--font-family--playfair-display);
	font-weight: 500;
	font-size: 1.35rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	padding-bottom: 0.3rem;
	padding-right: 0.22em;
	border-bottom: 1px solid var(--wp--preset--color--rule);
}

.mitchell-logo__sub {
	font-family: var(--wp--preset--font-family--jost);
	font-size: 0.62rem;
	font-weight: 400;
	letter-spacing: 0.36em;
	text-transform: uppercase;
	color: var(--wp--preset--color--slate);
	padding-right: 0.36em;
}

.mitchell-logo:hover .mitchell-logo__name {
	border-bottom-color: var(--wp--preset--color--ink);
}

/* Nav */
.mitchell-hdr__right {
	gap: clamp(1rem, 2.4vw, 1.75rem);
}

.mitchell-nav .wp-block-navigation-item__content {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.mitchell-nav .wp-block-navigation-item__content:hover,
.mitchell-nav .wp-block-navigation-item__content:focus {
	text-decoration: underline;
	text-underline-offset: 0.25em;
}

/* The standalone button / phone are desktop-only; their nav links are overlay-only. */
.mitchell-hdr .mitchell-hdr__cta,
.mitchell-hdr__phone {
	display: none;
}

.mitchell-nav .mitchell-nav__cta,
.mitchell-nav .mitchell-nav__phone {
	display: none;
}

.mitchell-hdr__phone {
	align-items: center;
	gap: 0.42rem;
	text-decoration: none;
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--jost);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 500;
	white-space: nowrap;
}

.mitchell-hdr__phone:hover {
	text-decoration: underline;
	text-underline-offset: 0.22em;
}

.mitchell-hdr__phone-icon {
	flex: none;
}

@media (min-width: 600px) {
	.mitchell-hdr .mitchell-hdr__cta {
		display: flex;
	}
}

@media (min-width: 900px) {
	.mitchell-hdr__phone {
		display: inline-flex;
	}
}

/* Mobile overlay menu */
.mitchell-nav .wp-block-navigation__responsive-container.is-menu-open {
	background-color: var(--wp--preset--color--bone);
	padding: clamp(3rem, 12vw, 6rem) var(--wp--custom--gutter, clamp(1.5rem, 5vw, 5rem));
	justify-content: flex-start;
	align-items: flex-start;
}

.mitchell-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	width: 100%;
	align-items: flex-start;
}

.mitchell-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: 1.5rem;
	align-items: flex-start;
	text-align: left;
}

.mitchell-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--playfair-display);
	font-size: 1.75rem;
	font-weight: 400;
}

.mitchell-nav .wp-block-navigation__responsive-container.is-menu-open .mitchell-nav__phone {
	display: block;
}

.mitchell-nav .wp-block-navigation__responsive-container.is-menu-open .mitchell-nav__phone .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--jost);
	font-size: var(--wp--preset--font-size--md);
	font-weight: 500;
}

.mitchell-nav .wp-block-navigation__responsive-container.is-menu-open .mitchell-nav__cta {
	display: block;
	margin-top: 0.75rem;
}

.mitchell-nav .wp-block-navigation__responsive-container.is-menu-open .mitchell-nav__cta .wp-block-navigation-item__content {
	display: inline-block;
	font-family: var(--wp--preset--font-family--jost);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	border: 1px solid var(--wp--preset--color--ink);
	padding: 0.85rem 1.5rem;
}

/* ================================================================== *
 * Motion — on-load hero reveal + on-scroll section reveal
 * ================================================================== */

@media (prefers-reduced-motion: no-preference) {
	/* Hero: headline wipes up, the rest rises in a short stagger.
	   Hidden state lives in the keyframes so a no-animation fallback stays visible. */
	.mitchell-hero__title {
		animation: mitchell-hero-title 0.95s cubic-bezier(0.22, 0.61, 0.36, 1) 0.1s both;
	}

	.mitchell-hero__support {
		animation: mitchell-rise 0.75s cubic-bezier(0.22, 0.61, 0.36, 1) 0.28s both;
	}
	.mitchell-hero .mitchell-waitlist {
		animation: mitchell-rise 0.75s cubic-bezier(0.22, 0.61, 0.36, 1) 0.4s both;
	}
	.mitchell-hero__reassure {
		animation: mitchell-rise 0.75s cubic-bezier(0.22, 0.61, 0.36, 1) 0.5s both;
	}

	/* Sections fade + rise as they enter the viewport (JS adds .is-visible). */
	.mitchell-js .mitchell-main > section:not(.mitchell-hero),
	.mitchell-js .mitchell-ftr {
		opacity: 0;
		transform: translateY(30px);
		transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
	}

	.mitchell-js .mitchell-main > section.is-visible,
	.mitchell-js .mitchell-ftr.is-visible {
		opacity: 1;
		transform: none;
	}
}

@keyframes mitchell-rise {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes mitchell-hero-title {
	from {
		opacity: 0;
		transform: translateY(20px);
		clip-path: inset(0 0 100% 0);
	}
	to {
		opacity: 1;
		transform: none;
		clip-path: inset(0 0 -18% 0);
	}
}

/* ================================================================== *
 * Hero
 * ================================================================== */

.mitchell-hero__grid {
	align-items: center;
}

.mitchell-hero__title {
	max-width: 15ch;
}

.mitchell-hero__figure {
	display: flex;
	justify-content: center;
}

.mitchell-spine {
	position: relative;
	margin: 0 auto;
	width: 100%;
	max-width: 300px;
	height: clamp(440px, 58vh, 580px);
	color: var(--wp--preset--color--ink);
}

.mitchell-spine::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 44%;
	width: clamp(180px, 82%, 250px);
	aspect-ratio: 1;
	transform: translate(-44%, -50%);
	background: var(--wp--preset--color--mist);
	border-radius: 50%;
	z-index: 0;
}

.mitchell-spine__art {
	position: absolute;
	left: 50%;
	top: -12%; /* bleed past the top of its container */
	transform: translateX(-52%);
	z-index: 1;
	display: block;
	height: 124%;
	aspect-ratio: 509 / 2593; /* the line-art's intrinsic ratio */
	background-color: currentColor;
	-webkit-mask: var(--mitchell-spine-src) center / contain no-repeat;
	mask: var(--mitchell-spine-src) center / contain no-repeat;
}

@media (prefers-reduced-motion: no-preference) {
	.mitchell-spine__art {
		animation: mitchell-spine-draw 1.4s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
	}

	@keyframes mitchell-spine-draw {
		from {
			clip-path: inset(0 0 100% 0);
		}
		to {
			clip-path: inset(0 0 0 0);
		}
	}
}

@media (max-width: 781px) {
	.mitchell-hero__figure {
		order: -1;
	}
	.mitchell-spine {
		max-width: 230px;
		height: clamp(380px, 56vw, 460px);
	}
}

/* ================================================================== *
 * Our approach to care
 * ================================================================== */

.mitchell-welcome__grid {
	align-items: stretch;
}

.mitchell-welcome__body .mitchell-prose {
	max-width: var(--wp--custom--measure, 68ch);
	margin-inline: 0 !important;
}

.mitchell-welcome__figure {
	position: relative;
	isolation: isolate;
}

/* --- looping image slideshow --- */
.mitchell-slideshow {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 420px;
	margin-inline: auto;
	aspect-ratio: 5 / 6;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--rule);
	background: var(--wp--preset--color--mist);
}

.mitchell-slideshow__frame {
	position: absolute;
	inset: 0;
	background-image: var(--img);
	background-size: cover;
	background-position: center 22%;
	background-repeat: no-repeat;
	opacity: 0;
}

.mitchell-slideshow__frame:first-child {
	opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
	.mitchell-slideshow__frame {
		animation: mitchell-slide-cycle 18s linear infinite;
	}
	.mitchell-slideshow__frame:nth-child(1) { animation-delay: 0s; }
	.mitchell-slideshow__frame:nth-child(2) { animation-delay: -6s; }
	.mitchell-slideshow__frame:nth-child(3) { animation-delay: -12s; }
}

@keyframes mitchell-slide-cycle {
	0%, 100% { opacity: 0; }
	4%       { opacity: 1; }
	30%      { opacity: 1; }
	38%      { opacity: 0; }
}

/* --- floating circle backdrop --- */
.mitchell-welcome__deco {
	position: absolute;
	inset: -6% clamp(-40px, -9%, -12px);
	z-index: 0;
	pointer-events: none;
}

.mitchell-welcome__deco span {
	position: absolute;
	display: block;
	border-radius: 50%;
	background: var(--wp--preset--color--mist);
}

.mitchell-welcome__deco span.is-ring {
	background: transparent;
	border: 1px solid var(--wp--preset--color--rule);
}

@media (prefers-reduced-motion: no-preference) {
	.mitchell-welcome__deco span {
		animation: mitchell-drift var(--dur, 12s) ease-in-out infinite;
		animation-delay: var(--delay, 0s);
	}
}

@keyframes mitchell-drift {
	0%, 100% { transform: translate(0, 0); }
	50%      { transform: translate(var(--dx, 6px), var(--dy, -14px)); }
}

@media (min-width: 782px) {
	.mitchell-welcome__figure {
		align-self: stretch;
	}
	.mitchell-slideshow {
		height: 100%;
		aspect-ratio: auto;
		min-height: 440px;
		max-width: 440px;
		margin: 0 0 0 auto;
	}
}

@media (max-width: 781px) {
	.mitchell-slideshow {
		max-width: 480px;
		aspect-ratio: 4 / 3;
	}
	.mitchell-welcome__deco {
		inset: -3% 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mitchell-slideshow__frame { animation: none; }
	.mitchell-welcome__deco { display: none; }
}

/* Lead line under a section heading. */
.mitchell-lead {
	max-width: 54ch;
	margin-inline: 0 !important;
}

/* ================================================================== *
 * What we do — the two adjustment approaches
 * ================================================================== */

.mitchell-approach {
	display: grid;
	grid-template-columns: 1fr;
}

.mitchell-approach__item {
	border-top: 1px solid var(--wp--preset--color--rule);
	padding-block: clamp(1.5rem, 3vw, 2.5rem);
}

.mitchell-approach__name {
	margin: 0 0 0.7rem;
	font-family: var(--wp--preset--font-family--playfair-display);
	font-weight: 400;
	font-size: var(--wp--preset--font-size--lg);
	line-height: 1.2;
}

.mitchell-approach__desc {
	margin: 0;
	max-width: 44ch;
	font-size: var(--wp--preset--font-size--md);
	line-height: 1.6;
	color: var(--wp--preset--color--slate);
}

@media (min-width: 720px) {
	.mitchell-approach {
		grid-template-columns: 1fr 1fr;
	}
	.mitchell-approach__item:first-child {
		padding-right: clamp(2rem, 4vw, 3.5rem);
	}
	.mitchell-approach__item:last-child {
		border-left: 1px solid var(--wp--preset--color--rule);
		padding-left: clamp(2rem, 4vw, 3.5rem);
	}
}

/* ================================================================== *
 * Our Services — image cards
 * ================================================================== */

.mitchell-svc-cards {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: clamp(0.75rem, 1.6vw, 1.25rem);
	grid-template-columns: 1fr;
}

@media (min-width: 620px) {
	.mitchell-svc-cards {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1000px) {
	.mitchell-svc-cards {
		grid-template-columns: repeat(3, 1fr);
	}
}

.mitchell-svc-cards__item {
	margin: 0;
}

.mitchell-svc-card {
	position: relative;
	display: block;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--rule);
	background: var(--wp--preset--color--slate);
	color: var(--wp--preset--color--bone);
	text-decoration: none;
}

.mitchell-svc-card__media {
	position: absolute;
	inset: 0;
	background-image: var(--img);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	transition: transform 0.5s var(--wp--custom--ease, ease);
}

/* Legibility wash — and the hover fill inversion (card goes Ink). */
.mitchell-svc-card::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(17, 17, 16, 0.78), rgba(17, 17, 16, 0.12) 55%, rgba(17, 17, 16, 0.04));
	transition: background-color 0.4s ease, opacity 0.4s ease;
}

.mitchell-svc-card__body {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: clamp(1rem, 2.4vw, 1.5rem);
	/* keep the title sitting low by default */
	padding-bottom: clamp(1.25rem, 3vw, 2rem);
}

.mitchell-svc-card__name {
	font-family: var(--wp--preset--font-family--playfair-display);
	font-weight: 400;
	font-size: var(--wp--preset--font-size--lg);
	line-height: 1.15;
}

/* Collapsible drawer: 0fr -> 1fr on hover pushes the title up as it opens. */
.mitchell-svc-card__reveal {
	display: grid;
	grid-template-rows: minmax(0, 0fr);
	transition: grid-template-rows 0.45s var(--wp--custom--ease, ease);
}

.mitchell-svc-card:hover .mitchell-svc-card__reveal,
.mitchell-svc-card:focus-visible .mitchell-svc-card__reveal,
.mitchell-svc-card:focus-within .mitchell-svc-card__reveal {
	grid-template-rows: minmax(0, 1fr);
}

.mitchell-svc-card__reveal-inner {
	min-height: 0;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.85rem;
	padding-top: 0.85rem;
}

.mitchell-svc-card__desc {
	margin: 0;
	font-size: var(--wp--preset--font-size--sm);
	line-height: 1.5;
	color: rgba(250, 248, 244, 0.92);
	opacity: 0;
	transition: opacity 0.35s var(--wp--custom--ease, ease) 0.08s;
}

.mitchell-svc-card__more {
	margin: 0;
	padding: 0.55rem 1.05rem;
	border: 1px solid var(--wp--preset--color--bone);
	font-family: var(--wp--preset--font-family--jost);
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--wp--preset--color--bone);
	opacity: 0;
	transition: opacity 0.35s var(--wp--custom--ease, ease) 0.14s, background-color 0.2s ease, color 0.2s ease;
}

.mitchell-svc-card:hover .mitchell-svc-card__desc,
.mitchell-svc-card:focus-visible .mitchell-svc-card__desc,
.mitchell-svc-card:focus-within .mitchell-svc-card__desc,
.mitchell-svc-card:hover .mitchell-svc-card__more,
.mitchell-svc-card:focus-visible .mitchell-svc-card__more,
.mitchell-svc-card:focus-within .mitchell-svc-card__more {
	opacity: 1;
}

/* The button fills on its own when the card is hovered. */
.mitchell-svc-card:hover .mitchell-svc-card__more,
.mitchell-svc-card:focus-visible .mitchell-svc-card__more,
.mitchell-svc-card:focus-within .mitchell-svc-card__more {
	background-color: var(--wp--preset--color--bone);
	color: var(--wp--preset--color--ink);
}

.mitchell-svc-card:hover .mitchell-svc-card__media,
.mitchell-svc-card:focus-visible .mitchell-svc-card__media,
.mitchell-svc-card:focus-within .mitchell-svc-card__media {
	transform: scale(1.05);
}

.mitchell-svc-card:hover::after,
.mitchell-svc-card:focus-visible::after,
.mitchell-svc-card:focus-within::after {
	background: var(--wp--preset--color--ink);
	opacity: 0.92;
}

/* Touch / narrow screens: no hover, and there's room — keep the drawer open. */
@media (max-width: 620px) {
	.mitchell-svc-card__reveal {
		grid-template-rows: minmax(0, 1fr);
	}
	.mitchell-svc-card__desc,
	.mitchell-svc-card__more {
		opacity: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mitchell-svc-card__media,
	.mitchell-svc-card__desc,
	.mitchell-svc-card__more,
	.mitchell-svc-card__reveal {
		transition: none;
	}
	.mitchell-svc-card:hover .mitchell-svc-card__media,
	.mitchell-svc-card:focus-visible .mitchell-svc-card__media,
	.mitchell-svc-card:focus-within .mitchell-svc-card__media {
		transform: none;
	}
}

.mitchell-svc-card:focus-visible {
	outline: 2px solid var(--wp--preset--color--ink);
	outline-offset: 2px;
}

/* ================================================================== *
 * Location / address
 * ================================================================== */

.mitchell-address {
	font-style: normal;
	display: grid;
	gap: 0.35rem;
	font-size: var(--wp--preset--font-size--md);
}

.mitchell-address__name {
	font-family: var(--wp--preset--font-family--playfair-display);
}

.mitchell-address__line {
	color: var(--wp--preset--color--slate);
}

/* ================================================================== *
 * Book an appointment
 * ================================================================== */

.mitchell-book__cta {
	margin-top: var(--wp--preset--spacing--40);
}

.mitchell-anim {
	position: relative;
	margin: 0;
	width: 100%;
	max-width: 460px;
	margin-inline: 0 0 0 auto;
}

/* Mist disc behind the frame — echoes the hero spine circle. */
.mitchell-anim::before {
	content: "";
	position: absolute;
	left: -13%;
	top: -15%;
	width: 66%;
	aspect-ratio: 1;
	background: var(--wp--preset--color--mist);
	border-radius: 50%;
	z-index: 0;
}

.mitchell-anim__video {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	background: var(--wp--preset--color--mist);
	border: 1px solid var(--wp--preset--color--rule);
	filter: grayscale(1) contrast(1.1);
}

.mitchell-anim__caption {
	position: relative;
	z-index: 1;
	margin-top: 0.8rem;
	font-family: var(--wp--preset--font-family--playfair-display);
	font-size: var(--wp--preset--font-size--sm);
	font-style: italic;
	color: var(--wp--preset--color--slate);
}

@media (max-width: 781px) {
	.mitchell-anim {
		max-width: 520px;
		margin-inline: 0;
	}
	.mitchell-anim::before {
		left: -6%;
		width: 54%;
	}
}

/* --- "Book by phone" popup --- */
.mitchell-modal {
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--ink);
	max-width: min(26rem, calc(100vw - 2.5rem));
}

.mitchell-modal::backdrop {
	background: rgba(17, 17, 16, 0.55);
}

.mitchell-modal__inner {
	position: relative;
	background: var(--wp--preset--color--card);
	border: 1px solid var(--wp--preset--color--rule);
	padding: clamp(1.75rem, 5vw, 2.5rem);
	text-align: center;
}

.mitchell-modal__close {
	position: absolute;
	top: 0.85rem;
	right: 0.85rem;
	width: 2rem;
	height: 2rem;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--wp--preset--color--rule);
	background: transparent;
	color: var(--wp--preset--color--ink);
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.mitchell-modal__close:hover,
.mitchell-modal__close:focus-visible {
	background: var(--wp--preset--color--ink);
	border-color: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--bone);
}

.mitchell-modal__title {
	margin: 0 0 0.75rem;
	font-family: var(--wp--preset--font-family--playfair-display);
	font-weight: 400;
	font-size: var(--wp--preset--font-size--lg);
}

.mitchell-modal__text {
	margin: 0 0 1.5rem;
	font-size: var(--wp--preset--font-size--base);
	color: var(--wp--preset--color--slate);
	line-height: 1.6;
}

.mitchell-modal__phone {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	width: 100%;
	box-sizing: border-box;
	border: 1px solid var(--wp--preset--color--ink);
	padding: 0.95rem 1.5rem;
	margin-bottom: 1.5rem;
	font-family: var(--wp--preset--font-family--jost);
	font-weight: 500;
	font-size: var(--wp--preset--font-size--md);
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.mitchell-modal__phone:hover,
.mitchell-modal__phone:focus-visible {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--bone);
}

.mitchell-modal__alt {
	margin: 0;
	font-size: var(--wp--preset--font-size--sm);
	color: var(--wp--preset--color--slate);
}

.mitchell-modal__alt-link {
	color: var(--wp--preset--color--ink);
}

@media (prefers-reduced-motion: no-preference) {
	.mitchell-modal[open] {
		animation: mitchell-modal-in 0.25s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
	}
	.mitchell-modal[open]::backdrop {
		animation: mitchell-modal-backdrop-in 0.25s ease forwards;
	}
}

@keyframes mitchell-modal-in {
	from {
		opacity: 0;
		transform: translateY(10px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes mitchell-modal-backdrop-in {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

/* ================================================================== *
 * Have questions + our location (equal-height columns)
 * ================================================================== */

.mitchell-contact__grid {
	align-items: stretch;
}

/* form column sets the height; the map column matches it */
.mitchell-contact__form-col {
	align-self: flex-start;
}

.mitchell-contact__title {
	margin: 0 0 var(--wp--preset--spacing--40);
}

.mitchell-contact__address {
	margin-bottom: var(--wp--preset--spacing--40);
	font-size: var(--wp--preset--font-size--base);
}

/* --- form --- */
.mitchell-contact-form {
	max-width: 34rem;
}

.mitchell-contact-form__hp {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.mitchell-contact-form__fields {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.mitchell-field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	margin: 0;
}

.mitchell-field label {
	font-size: var(--wp--preset--font-size--sm);
	color: var(--wp--preset--color--slate);
	letter-spacing: 0.01em;
}

.mitchell-field input,
.mitchell-field textarea {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid var(--wp--preset--color--rule);
	border-radius: 0;
	background: var(--wp--preset--color--card);
	padding: 0.8rem 0.9rem;
	font-family: var(--wp--preset--font-family--jost);
	font-size: var(--wp--preset--font-size--base);
	color: var(--wp--preset--color--ink);
}

.mitchell-field textarea {
	min-height: 7.5rem;
	resize: vertical;
}

.mitchell-field input:focus,
.mitchell-field textarea:focus {
	outline: 2px solid var(--wp--preset--color--ink);
	outline-offset: -1px;
}

.mitchell-field-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

@media (min-width: 520px) {
	.mitchell-field-row {
		grid-template-columns: 1fr 1fr;
	}
}

.mitchell-contact-form__submit {
	align-self: flex-start;
	margin-top: 0.25rem;
	border: 1px solid var(--wp--preset--color--ink);
	border-radius: 0;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--bone);
	padding: 0.9rem 1.75rem;
	font-family: var(--wp--preset--font-family--jost);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.mitchell-contact-form__submit:hover,
.mitchell-contact-form__submit:focus-visible {
	background: var(--wp--preset--color--bone);
	color: var(--wp--preset--color--ink);
}

.mitchell-contact-form.is-sending .mitchell-contact-form__submit {
	opacity: 0.6;
	cursor: progress;
}

.mitchell-contact-form__message {
	margin: 1rem 0 0;
	font-size: var(--wp--preset--font-size--sm);
	color: var(--wp--preset--color--slate);
}

.mitchell-contact-form__message:empty {
	display: none;
}

.mitchell-contact-form__message.is-success,
.mitchell-contact-form__message.is-error {
	font-weight: 500;
}

.mitchell-contact-form__message.is-success {
	color: var(--mitchell-success);
}

.mitchell-contact-form__message.is-error {
	color: var(--mitchell-error);
}

.mitchell-contact-form.is-error .mitchell-field input:invalid,
.mitchell-contact-form.is-error .mitchell-field textarea:invalid {
	border-width: 2px;
	border-color: var(--mitchell-error);
}

/* --- map --- */
.mitchell-map {
	margin-top: 0.5rem;
	border: 1px solid var(--wp--preset--color--rule);
	line-height: 0;
}

.mitchell-map iframe {
	display: block;
	width: 100%;
	height: clamp(300px, 42vh, 400px);
	border: 0;
}

@media (min-width: 782px) {
	.mitchell-contact__map-col {
		align-self: stretch;
		display: flex;
		flex-direction: column;
	}
	/* map fills the leftover space so its bottom lines up with the form's */
	.mitchell-map {
		flex: 1;
		display: flex;
		min-height: 300px;
	}
	.mitchell-map iframe {
		height: 100%;
	}
}

/* ================================================================== *
 * Waitlist band (the one inverted section)
 * ================================================================== */

.mitchell-band {
	text-align: center;
}

.mitchell-band :is(h1, h2, h3, h4) {
	color: var(--wp--preset--color--bone);
}

.mitchell-band .mitchell-waitlist {
	margin-inline: auto;
}

.mitchell-band .mitchell-waitlist__row {
	margin-inline: auto;
	border-color: var(--wp--preset--color--bone);
	background: transparent;
}

.mitchell-band .mitchell-waitlist__input {
	color: var(--wp--preset--color--bone);
}

.mitchell-band .mitchell-waitlist__input::placeholder {
	color: rgba(250, 248, 244, 0.55);
}

.mitchell-band .mitchell-waitlist__submit {
	background: var(--wp--preset--color--bone);
	color: var(--wp--preset--color--ink);
}

.mitchell-band .mitchell-waitlist__submit:hover,
.mitchell-band .mitchell-waitlist__submit:focus-visible {
	background: transparent;
	color: var(--wp--preset--color--bone);
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--bone);
}

.mitchell-band .mitchell-waitlist__message {
	color: rgba(250, 248, 244, 0.72);
}

.mitchell-band .mitchell-waitlist__message.is-success {
	color: var(--mitchell-success-on-dark);
}

.mitchell-band .mitchell-waitlist__message.is-error {
	color: var(--mitchell-error-on-dark);
}

/* ================================================================== *
 * Waitlist form (shared by both instances)
 * ================================================================== */

.mitchell-waitlist {
	width: 100%;
	max-width: 30rem;
}

.mitchell-waitlist,
.mitchell-waitlist *,
.mitchell-waitlist *::before,
.mitchell-waitlist *::after {
	box-sizing: border-box;
}

.mitchell-waitlist__row {
	display: flex;
	flex-wrap: wrap;
	border: 1px solid var(--wp--preset--color--rule);
	background: var(--wp--preset--color--card);
}

.mitchell-waitlist__input {
	max-width: 100%;
}

.mitchell-waitlist__input {
	flex: 1 1 12rem;
	min-width: 0;
	border: 0;
	background: transparent;
	padding: 0.95rem 1rem;
	font-family: var(--wp--preset--font-family--jost);
	font-size: var(--wp--preset--font-size--base);
	color: var(--wp--preset--color--ink);
}

.mitchell-waitlist__input:focus {
	outline: 2px solid var(--wp--preset--color--ink);
	outline-offset: -2px;
}

.mitchell-band .mitchell-waitlist__input:focus {
	outline-color: var(--wp--preset--color--bone);
}

.mitchell-waitlist__submit {
	flex: 0 0 auto;
	border: 0;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--bone);
	padding: 0.95rem 1.5rem;
	font-family: var(--wp--preset--font-family--jost);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.mitchell-waitlist__submit:hover,
.mitchell-waitlist__submit:focus-visible {
	background: var(--wp--preset--color--bone);
	color: var(--wp--preset--color--ink);
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--ink);
}

.mitchell-waitlist.is-sending .mitchell-waitlist__submit {
	opacity: 0.6;
	cursor: progress;
}

/* State: error — rule thickens, message gains weight. */
.mitchell-waitlist.is-error .mitchell-waitlist__row {
	border-width: 2px;
	border-color: var(--mitchell-error);
}

.mitchell-band .mitchell-waitlist.is-error .mitchell-waitlist__row {
	border-color: var(--mitchell-error-on-dark);
}

.mitchell-waitlist__message {
	margin: 0.65rem 0 0;
	min-height: 1.4em;
	font-size: var(--wp--preset--font-size--sm);
	color: var(--wp--preset--color--slate);
}

.mitchell-waitlist__message.is-success {
	color: var(--mitchell-success);
	font-weight: 500;
}

.mitchell-waitlist__message.is-error {
	color: var(--mitchell-error);
	font-weight: 500;
}

/* ================================================================== *
 * Footer — on bone, the same colour the header takes once scrolled
 * ================================================================== */

.mitchell-ftr {
	background: var(--wp--preset--color--bone);
	color: var(--wp--preset--color--ink);
}

.mitchell-ftr__grid {
	display: grid;
	gap: clamp(2rem, 5vw, 3.5rem);
	grid-template-columns: 1fr;
}

@media (min-width: 680px) {
	.mitchell-ftr__grid {
		grid-template-columns: 1.5fr 1fr 1fr;
	}
}

.mitchell-ftr__col {
	min-width: 0;
}

.mitchell-ftr__name {
	margin: 0 0 0.5rem;
	font-family: var(--wp--preset--font-family--playfair-display);
	font-size: var(--wp--preset--font-size--md);
}

.mitchell-ftr__blurb {
	margin: 0 0 1.75rem;
	max-width: 34ch;
	font-size: var(--wp--preset--font-size--sm);
	color: var(--wp--preset--color--slate);
	line-height: 1.6;
}

.mitchell-ftr__label {
	margin: 0 0 0.75rem;
	font-family: var(--wp--preset--font-family--jost);
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--slate);
}

.mitchell-ftr__social {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
}

.mitchell-ftr__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--wp--preset--color--rule);
	color: var(--wp--preset--color--ink);
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.mitchell-ftr__social a:hover,
.mitchell-ftr__social a:focus-visible {
	background: var(--wp--preset--color--ink);
	border-color: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--bone);
}

.mitchell-ftr__addr {
	margin: 0;
	font-style: normal;
	font-size: var(--wp--preset--font-size--sm);
	color: var(--wp--preset--color--slate);
	line-height: 1.8;
}

.mitchell-ftr__contact {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.45rem;
	font-size: var(--wp--preset--font-size--sm);
}

.mitchell-ftr__contact a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	overflow-wrap: anywhere;
}

.mitchell-ftr__contact a:hover,
.mitchell-ftr__contact a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 0.22em;
}

.mitchell-ftr__bar {
	margin-top: clamp(2.5rem, 5vw, 4rem);
	padding-top: 1.5rem;
	border-top: 1px solid var(--wp--preset--color--rule);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1.5rem;
}

.mitchell-ftr__legal {
	margin: 0;
	font-size: 0.8rem;
	color: var(--wp--preset--color--slate);
}

.mitchell-ftr__links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
	font-size: 0.8rem;
}

.mitchell-ftr__links a {
	color: var(--wp--preset--color--slate);
	text-decoration: none;
}

.mitchell-ftr__links a:hover,
.mitchell-ftr__links a:focus-visible {
	color: var(--wp--preset--color--ink);
	text-decoration: underline;
	text-underline-offset: 0.22em;
}

/* ================================================================== *
 * Small screens
 * ================================================================== */

@media (max-width: 560px) {
	.mitchell-logo__name {
		font-size: 1.15rem;
		letter-spacing: 0.18em;
	}
	.mitchell-waitlist__row {
		flex-direction: column;
	}
	/* In a column flex row, flex-basis maps to height — reset it. */
	.mitchell-waitlist__input {
		flex: 0 0 auto;
		width: 100%;
	}
	.mitchell-waitlist__submit {
		width: 100%;
	}
}

/* ==========================================================================
 * Legal pages (Privacy Policy, Terms of Use)
 * ================================================================== */

.mitchell-legal__intro h1 {
	margin: 0;
	border-bottom: 1px solid var(--wp--preset--color--rule);
	padding-bottom: clamp(20px, 2.4vw, 32px);
}

.mitchell-legal__content h2 {
	margin-top: clamp(40px, 4.5vw, 64px);
	margin-bottom: 0.6em;
}

.mitchell-legal__content h3 {
	margin-top: clamp(28px, 3vw, 40px);
	margin-bottom: 0.5em;
}

.mitchell-legal__content p,
.mitchell-legal__content ul {
	color: var(--wp--preset--color--slate);
	line-height: 1.7;
}

.mitchell-legal__content p {
	margin: 0 0 1.1em;
}

.mitchell-legal__content ul {
	margin: 0 0 1.1em;
	padding-left: 1.3em;
}

.mitchell-legal__content li {
	margin-bottom: 0.5em;
}

.mitchell-legal__content li:last-child {
	margin-bottom: 0;
}
