/*
Theme Name: Mei Therapy
Theme URI: https://meitherapy.co.in/
Author: Mei Therapy
Description: A custom theme for Mei Therapy, Chennai: acupuncture, cupping, gua sha, Dorn therapy and yoga therapy. On activation it creates all pages with SEO titles, descriptions and a menu.
Version: 1.0.0
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mei-therapy
*/

/* ---------- Tokens ---------- */
:root {
	--paper: #f1f5f0;
	--card: #fbfcf8;
	--tint: #e5ede6;
	--ink: #14271f;
	--muted: #4f635b;
	--line: #d2ddd5;
	--line-strong: #b5c6bb;
	--jade: #1f4a40;
	--jade-text: #1f4a40;
	--link: #1d5c4d;
	--on-jade: #f1f5ec;
	--on-jade-muted: #bad0c5;
	--footer: #11291f;
	--marigold: #e0a526;
	--on-marigold: #1b1405;
	--dot: #c9d7cd;
	--shadow: 0 18px 40px -22px rgba(20, 39, 31, 0.35);

	--font-display: "Marcellus", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
	--font-body: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;

	--header-h: 72px;
	--gutter: clamp(20px, 5vw, 48px);
	--measure: 68ch;
	color-scheme: light;
	box-sizing: border-box;
	padding-top: env(safe-area-inset-top, 0px);
	padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--paper: #0f1b17;
		--card: #152520;
		--tint: #13231e;
		--ink: #e4ece6;
		--muted: #a2b5ac;
		--line: #263a31;
		--line-strong: #3a5446;
		--jade: #163a31;
		--jade-text: #9fd6c2;
		--link: #9fd6c2;
		--on-jade: #eef3ea;
		--on-jade-muted: #b3cabf;
		--footer: #0a1612;
		--marigold: #e8b243;
		--dot: #2c4237;
		--shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.7);
		color-scheme: dark;
	}
}

:root[data-theme="dark"] {
	--paper: #0f1b17;
	--card: #152520;
	--tint: #13231e;
	--ink: #e4ece6;
	--muted: #a2b5ac;
	--line: #263a31;
	--line-strong: #3a5446;
	--jade: #163a31;
	--jade-text: #9fd6c2;
	--link: #9fd6c2;
	--on-jade: #eef3ea;
	--on-jade-muted: #b3cabf;
	--footer: #0a1612;
	--marigold: #e8b243;
	--dot: #2c4237;
	--shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.7);
	color-scheme: dark;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
	box-sizing: inherit;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 16px);
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1.125rem;
	line-height: 1.65;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
}

h1,
h2,
h3 {
	font-family: var(--font-display);
	font-weight: 400;
	color: var(--ink);
	margin: 0;
	text-wrap: balance;
}

h1 {
	font-size: clamp(2.35rem, 1.5rem + 3.4vw, 4.1rem);
	line-height: 1.06;
	letter-spacing: -0.01em;
}

h2 {
	font-size: clamp(1.85rem, 1.35rem + 1.9vw, 2.75rem);
	line-height: 1.12;
}

h3 {
	font-size: 1.45rem;
	line-height: 1.2;
}

p {
	margin: 0 0 1em;
	text-wrap: pretty;
}

a {
	color: var(--link);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:hover {
	text-decoration-thickness: 2px;
}

:focus-visible {
	outline: 3px solid var(--marigold);
	outline-offset: 3px;
	border-radius: 4px;
}

.visually-hidden,
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: 12px;
	top: -100px;
	z-index: 100;
	background: var(--ink);
	color: var(--paper);
	padding: 10px 16px;
	border-radius: 8px;
}

.skip-link:focus {
	top: 12px;
}

.wrap {
	width: 100%;
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.section {
	padding-block: clamp(64px, 9vw, 112px);
}

.section-head {
	max-width: 46rem;
	margin-bottom: clamp(28px, 4vw, 48px);
}

.section-head h2 {
	margin-bottom: 16px;
}

.section-head p {
	color: var(--muted);
	margin: 0;
}

/* A row of kolam dots, used as the divider throughout. */
.dot-rule,
.therapy,
.concern,
.faq-list details,
.entry-content .wp-block-details,
.post-item {
	background-image: radial-gradient(circle, var(--dot) 2px, transparent 2.6px);
	background-size: 16px 6px;
	background-repeat: repeat-x;
	background-position: 0 0;
}

/* ---------- Buttons ---------- */
.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 50px;
	padding: 0 24px;
	border-radius: 999px;
	border: 1.5px solid transparent;
	font: 600 1rem/1.2 var(--font-body);
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn .glyph {
	width: 20px;
	height: 20px;
	flex: none;
}

.btn-accent {
	background: var(--marigold);
	color: var(--on-marigold);
}

.btn-accent:hover {
	background: #f0b93c;
}

.btn-primary {
	background: var(--jade);
	color: var(--on-jade);
}

.btn-primary:hover {
	background: #173a32;
}

.btn-ghost {
	border-color: var(--line-strong);
	color: var(--ink);
}

.btn-ghost:hover {
	border-color: var(--jade-text);
}

.on-dark .btn-ghost {
	border-color: rgba(241, 245, 236, 0.45);
	color: var(--on-jade);
}

.on-dark .btn-ghost:hover {
	border-color: var(--on-jade);
}

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: env(safe-area-inset-top, 0px);
	z-index: 40;
	background: color-mix(in srgb, var(--paper) 92%, transparent);
	-webkit-backdrop-filter: saturate(140%) blur(10px);
	backdrop-filter: saturate(140%) blur(10px);
	border-bottom: 1px solid var(--line);
}

body::before {
	content: "";
	position: fixed;
	inset: 0 0 auto;
	height: env(safe-area-inset-top, 0px);
	z-index: 41;
	background: var(--paper);
}

@media (min-width: 783px) {
	.admin-bar .site-header {
		top: 32px;
	}
}

@media (min-width: 601px) and (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}
}

.header-inner {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: var(--header-h);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: var(--ink);
	margin-right: auto;
}

.brand-mark {
	width: 38px;
	height: auto;
	flex: none;
}

.brand-mark path {
	fill: none;
	stroke: var(--jade-text);
	stroke-width: 1.5;
}

.brand-mark circle {
	fill: var(--marigold);
}

.brand-text {
	display: flex;
	flex-direction: column;
	line-height: 1;
}

.brand-name {
	font-family: var(--font-display);
	font-size: 1.45rem;
}

.brand-place {
	font-size: 0.8rem;
	color: var(--muted);
	letter-spacing: 0.06em;
	margin-top: 4px;
}

.brand-logo {
	max-height: 52px;
	width: auto;
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 20px;
}

.site-nav .menu,
.site-nav .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav .menu {
	display: flex;
	align-items: center;
	gap: 4px;
}

.site-nav .menu > li {
	position: relative;
}

.site-nav .menu a {
	display: block;
	padding: 10px 12px;
	color: var(--ink);
	text-decoration: none;
	font-weight: 500;
	font-size: 1rem;
	border-radius: 8px;
}

.site-nav .menu a:hover,
.site-nav .current-menu-item > a {
	color: var(--jade-text);
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-decoration-color: var(--marigold);
}

.site-nav .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 7px;
	height: 7px;
	margin-left: 8px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: translateY(-3px) rotate(45deg);
}

.site-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 230px;
	padding: 8px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 14px;
	box-shadow: var(--shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.site-nav li:hover > .sub-menu,
.site-nav li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.site-nav .sub-menu a {
	padding: 10px 14px;
}

.site-nav .sub-menu a:hover {
	background: var(--tint);
	text-decoration: none;
}

.header-cta {
	min-height: 44px;
	padding: 0 18px;
	font-size: 0.95rem;
}

.nav-toggle {
	display: none;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 0 14px;
	border: 1.5px solid var(--line-strong);
	border-radius: 999px;
	background: transparent;
	color: var(--ink);
	font: 600 0.95rem var(--font-body);
	cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
	display: block;
	width: 16px;
	height: 1.5px;
	background: currentColor;
	position: relative;
	transition: transform 0.2s ease, background-color 0.2s ease;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.nav-toggle-bars::before {
	top: -5px;
}

.nav-toggle-bars::after {
	top: 5px;
}

.nav-open .nav-toggle-bars {
	background: transparent;
}

.nav-open .nav-toggle-bars::before {
	transform: translateY(5px) rotate(45deg);
}

.nav-open .nav-toggle-bars::after {
	transform: translateY(-5px) rotate(-45deg);
}

@media (max-width: 1040px) {
	.nav-toggle {
		display: inline-flex;
	}

	.site-nav {
		display: none;
		position: fixed;
		left: 0;
		right: 0;
		top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
		bottom: 0;
		overflow-y: auto;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 16px var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px));
		background: var(--paper);
		border-top: 1px solid var(--line);
	}

	.nav-open .site-nav {
		display: flex;
	}

	.admin-bar .site-nav {
		top: calc(var(--header-h) + 46px);
	}

	.site-nav .menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.site-nav .menu > li {
		border-bottom: 1px solid var(--line);
	}

	.site-nav .menu a {
		padding: 14px 0;
		font-size: 1.1rem;
	}

	.site-nav .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		background: none;
		border: 0;
		box-shadow: none;
		padding: 0 0 10px 16px;
		min-width: 0;
	}

	.site-nav .sub-menu a {
		padding: 9px 0;
		font-size: 1rem;
		color: var(--muted);
	}

	.site-nav .menu-item-has-children > a::after {
		display: none;
	}

	.header-cta {
		margin-top: 24px;
		min-height: 52px;
	}

	.nav-open {
		overflow: hidden;
	}
}

@media (min-width: 783px) and (max-width: 1040px) {
	.admin-bar .site-nav {
		top: calc(var(--header-h) + 32px);
	}
}

/* ---------- Hero ---------- */
.hero {
	background: var(--jade);
	color: var(--on-jade);
	padding-block: clamp(56px, 8vw, 112px);
	overflow: hidden;
}

.hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: clamp(32px, 6vw, 96px);
	align-items: center;
}

.hero h1 {
	color: var(--on-jade);
	max-width: 18ch;
}

.hero-lead {
	font-size: clamp(1.15rem, 1rem + 0.5vw, 1.35rem);
	line-height: 1.55;
	color: var(--on-jade-muted);
	max-width: 36rem;
	margin: 24px 0 0;
}

.hero-note {
	margin: 20px 0 0;
	font-size: 0.98rem;
	color: var(--on-jade-muted);
}

.hero-note a {
	color: var(--on-jade);
}

.hero-art {
	justify-self: end;
	width: 100%;
	max-width: 440px;
	margin: 0;
}

.kolam {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}

.kolam-line {
	fill: none;
	stroke: var(--on-jade);
	stroke-width: 2.6;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
	animation: kolam-draw 4.2s cubic-bezier(0.5, 0.05, 0.3, 1) 1s forwards;
}

.kolam-dots circle {
	fill: var(--marigold);
	opacity: 0;
	animation: kolam-dot 0.4s ease-out forwards;
	animation-delay: calc(var(--i) * 32ms);
}

@keyframes kolam-draw {
	to {
		stroke-dashoffset: 0;
	}
}

@keyframes kolam-dot {
	from {
		opacity: 0;
		transform: scale(0.2);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.kolam-dots circle {
	transform-box: fill-box;
	transform-origin: center;
}

@media (max-width: 860px) {
	.hero-grid {
		grid-template-columns: 1fr;
	}

	.hero-art {
		justify-self: start;
		max-width: 300px;
		order: -1;
	}
}

@media (max-width: 520px) {
	.hero-art {
		max-width: 220px;
	}

	.hero .actions .btn {
		width: 100%;
	}
}

/* ---------- Therapies ---------- */
.therapy-list {
	list-style: none;
	margin: 0;
	padding: 0;
	background-image: radial-gradient(circle, var(--dot) 2px, transparent 2.6px);
	background-size: 16px 6px;
	background-repeat: repeat-x;
	background-position: 0 100%;
}

.therapy {
	position: relative;
	display: grid;
	grid-template-columns: 52px minmax(0, 14rem) minmax(0, 1fr) auto;
	grid-template-areas:
		"icon name desc more"
		"icon name tags more";
	column-gap: clamp(16px, 3vw, 40px);
	row-gap: 10px;
	padding: 34px 0 30px;
	align-items: start;
}

.therapy:last-child {
	padding-bottom: 34px;
}

.therapy-icon {
	grid-area: icon;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--tint);
	color: var(--jade-text);
}

.icon {
	width: 32px;
	height: 32px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.therapy-name {
	grid-area: name;
	font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem);
	padding-top: 6px;
}

.therapy-name a {
	color: var(--ink);
	text-decoration: none;
}

.therapy-name a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.therapy-desc {
	grid-area: desc;
	margin: 6px 0 0;
	max-width: 40rem;
}

.therapy-tags {
	grid-area: tags;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
}

.therapy-tags span:not(.visually-hidden) {
	font-size: 0.86rem;
	line-height: 1;
	padding: 7px 12px;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	color: var(--muted);
}

.therapy-more {
	grid-area: more;
	align-self: center;
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--link);
	text-decoration: underline;
	text-decoration-color: var(--marigold);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.3em;
	white-space: nowrap;
}

.therapy:hover .therapy-name a,
.therapy:focus-within .therapy-name a {
	color: var(--jade-text);
}

.therapy:hover .therapy-icon {
	background: var(--jade);
	color: var(--on-jade);
}

.therapy:focus-within {
	outline: 3px solid var(--marigold);
	outline-offset: 6px;
	border-radius: 6px;
}

.therapy-name a:focus-visible {
	outline: none;
}

@media (max-width: 900px) {
	.therapy {
		grid-template-columns: 52px minmax(0, 1fr);
		grid-template-areas:
			"icon name"
			"desc desc"
			"tags tags"
			"more more";
	}

	.therapy-more {
		justify-self: start;
		margin-top: 6px;
	}
}

/* ---------- Visit steps ---------- */
.visit {
	background: var(--card);
	border-block: 1px solid var(--line);
}

.visit-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: clamp(32px, 6vw, 96px);
	align-items: start;
}

.visit-intro h2 {
	margin-bottom: 16px;
}

.visit-intro p {
	color: var(--muted);
	max-width: 30rem;
}

.steps {
	list-style: none;
	counter-reset: step;
	margin: 0;
	padding: 0;
}

.steps li {
	counter-increment: step;
	position: relative;
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr);
	column-gap: 20px;
	padding-bottom: 32px;
}

.steps li:last-child {
	padding-bottom: 0;
}

.steps li::before {
	content: counter(step);
	grid-row: span 2;
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	border: 1.5px solid var(--marigold);
	font-family: var(--font-display);
	font-size: 1.6rem;
	color: var(--jade-text);
	background: var(--card);
	position: relative;
	z-index: 1;
}

.steps li:not(:last-child)::after {
	content: "";
	position: absolute;
	left: 27px;
	top: 60px;
	bottom: 4px;
	width: 3px;
	background-image: radial-gradient(circle, var(--dot) 1.6px, transparent 2px);
	background-size: 3px 12px;
	background-repeat: repeat-y;
}

.steps h3 {
	font-size: 1.35rem;
	padding-top: 12px;
	margin-bottom: 6px;
}

.steps p {
	margin: 0;
	color: var(--muted);
}

@media (max-width: 860px) {
	.visit-grid {
		grid-template-columns: 1fr;
	}
}

/* ---------- Concerns ---------- */
.concerns {
	background: var(--tint);
}

.concern-list {
	margin: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: clamp(24px, 5vw, 72px);
}

.concern {
	display: grid;
	gap: 10px;
	padding: 22px 0 24px;
	background-image: radial-gradient(circle, var(--line-strong) 2px, transparent 2.6px);
}

.concern dt {
	font-family: var(--font-display);
	font-size: 1.3rem;
	line-height: 1.25;
}

.concern dd {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.concern dd a {
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1;
	padding: 9px 14px;
	border-radius: 999px;
	background: var(--card);
	border: 1px solid var(--line);
	color: var(--jade-text);
	text-decoration: none;
}

.concern dd a:hover {
	border-color: var(--jade-text);
}

@media (max-width: 760px) {
	.concern-list {
		grid-template-columns: 1fr;
	}
}

/* ---------- FAQ ---------- */
.faq-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	gap: clamp(28px, 6vw, 96px);
	align-items: start;
}

.faq-list details,
.entry-content .wp-block-details {
	padding: 4px 0;
}

.faq-list summary,
.entry-content .wp-block-details summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	padding: 20px 0;
	font-weight: 600;
	font-size: 1.1rem;
	line-height: 1.4;
}

.faq-list summary::-webkit-details-marker,
.entry-content .wp-block-details summary::-webkit-details-marker {
	display: none;
}

.faq-list summary::after,
.entry-content .wp-block-details summary::after {
	content: "";
	flex: none;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 1.5px solid var(--line-strong);
	background:
		linear-gradient(currentColor, currentColor) center / 10px 1.5px no-repeat,
		linear-gradient(currentColor, currentColor) center / 1.5px 10px no-repeat;
	color: var(--jade-text);
	transition: transform 0.2s ease;
}

.faq-list details[open] summary::after,
.entry-content .wp-block-details[open] summary::after {
	transform: rotate(45deg);
}

.faq-list details p,
.entry-content .wp-block-details p {
	margin: 0 0 22px;
	color: var(--muted);
	max-width: var(--measure);
}

@media (max-width: 860px) {
	.faq-grid {
		grid-template-columns: 1fr;
	}
}

/* ---------- Booking band ---------- */
.band {
	background: var(--jade);
	color: var(--on-jade);
	padding-block: clamp(64px, 9vw, 112px);
}

.band-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	gap: clamp(28px, 6vw, 96px);
	align-items: start;
}

.band h2 {
	color: var(--on-jade);
	margin-bottom: 16px;
}

.band-lead {
	color: var(--on-jade-muted);
	max-width: 26rem;
}

.band-phone {
	display: inline-block;
	font-family: var(--font-display);
	font-size: clamp(2.2rem, 1.3rem + 3.6vw, 4.2rem);
	line-height: 1;
	color: var(--on-jade);
	text-decoration: none;
	letter-spacing: 0.01em;
}

.band-phone:hover {
	text-decoration: underline;
	text-decoration-color: var(--marigold);
	text-decoration-thickness: 3px;
	text-underline-offset: 0.14em;
}

.band .actions {
	margin-top: 24px;
}

.band-details,
.contact-dl {
	display: grid;
	gap: 14px;
	margin: 32px 0 0;
}

.band-details div,
.contact-dl div {
	display: grid;
	grid-template-columns: 7rem minmax(0, 1fr);
	gap: 16px;
}

.band-details dt {
	color: var(--on-jade-muted);
}

.band-details dd,
.contact-dl dd {
	margin: 0;
}

.band-details a {
	color: var(--on-jade);
}

@media (max-width: 860px) {
	.band-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.band-details div,
	.contact-dl div {
		grid-template-columns: 1fr;
		gap: 2px;
	}

	.band .actions .btn {
		width: 100%;
	}
}

/* ---------- Inner pages ---------- */
.page-hero {
	background: var(--tint);
	padding-block: clamp(40px, 6vw, 84px);
	border-bottom: 1px solid var(--line);
}

.page-hero-inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 40px;
	align-items: center;
}

.page-hero h1 {
	max-width: 20ch;
}

.page-lead {
	font-size: clamp(1.12rem, 1rem + 0.4vw, 1.3rem);
	line-height: 1.55;
	color: var(--muted);
	max-width: 40rem;
	margin: 20px 0 0;
}

.page-hero-icon {
	display: grid;
	place-items: center;
	width: clamp(110px, 14vw, 168px);
	height: clamp(110px, 14vw, 168px);
	border-radius: 50%;
	background: var(--jade);
	color: var(--on-jade);
}

.page-hero-icon .icon {
	width: 58%;
	height: 58%;
	stroke-width: 1.3;
}

@media (max-width: 700px) {
	.page-hero-inner {
		grid-template-columns: 1fr;
	}

	.page-hero-icon {
		display: none;
	}
}

.crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 0.92rem;
	color: var(--muted);
	margin-bottom: 18px;
}

.crumbs a {
	color: var(--muted);
}

.post-meta {
	color: var(--muted);
	font-size: 0.95rem;
	margin: 14px 0 0;
}

.page-body {
	padding-block: clamp(48px, 7vw, 88px);
}

.page-body.with-aside {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: clamp(40px, 6vw, 88px);
	align-items: start;
}

.entry {
	min-width: 0;
}

.entry-image {
	margin: 0 0 32px;
}

.entry-image img {
	border-radius: 18px;
	display: block;
}

.book-card {
	position: sticky;
	top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 24px);
	display: grid;
	gap: 12px;
	padding: 28px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 18px;
}

.admin-bar .book-card {
	top: calc(var(--header-h) + 56px);
}

.book-card h2 {
	font-size: 1.6rem;
}

.book-card p {
	margin: 0;
	color: var(--muted);
	font-size: 1rem;
}

.book-card .btn {
	margin-top: 8px;
}

.book-card-phone {
	font-family: var(--font-display);
	font-size: 1.55rem;
	color: var(--ink);
	text-decoration: none;
	margin-top: 8px;
}

.book-card-email {
	font-size: 0.98rem;
	overflow-wrap: anywhere;
}

.book-card .book-card-place {
	padding-top: 12px;
	border-top: 1px solid var(--line);
	font-size: 0.95rem;
}

@media (max-width: 960px) {
	.page-body.with-aside {
		grid-template-columns: 1fr;
	}

	.book-card {
		position: static;
	}
}

/* Block content */
.entry-content {
	max-width: var(--measure);
}

.entry-content > * + * {
	margin-top: 0;
}

.entry-content .mei-lead {
	font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.4rem);
	line-height: 1.55;
	margin-bottom: 1.2em;
}

.entry-content h2 {
	font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem);
	margin: 2em 0 0.6em;
}

.entry-content h3 {
	margin: 1.6em 0 0.5em;
}

.entry-content ul,
.entry-content ol {
	list-style: none;
	padding: 0;
	margin: 0 0 1.4em;
}

.entry-content ul li {
	position: relative;
	padding-left: 1.6em;
	margin-bottom: 0.55em;
}

.entry-content ul li::before {
	content: "";
	position: absolute;
	left: 0.2em;
	top: 0.6em;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--marigold);
}

.entry-content ol {
	counter-reset: item;
}

.entry-content ol li {
	counter-increment: item;
	position: relative;
	padding-left: 2.6em;
	margin-bottom: 0.9em;
}

.entry-content ol li::before {
	content: counter(item);
	position: absolute;
	left: 0;
	top: 0.1em;
	display: grid;
	place-items: center;
	width: 1.7em;
	height: 1.7em;
	border-radius: 50%;
	border: 1.5px solid var(--marigold);
	font-family: var(--font-display);
	font-size: 0.95em;
	line-height: 1;
	color: var(--jade-text);
}

.entry-content .mei-note {
	background: var(--tint);
	border-left: 4px solid var(--marigold);
	border-radius: 0 14px 14px 0;
	padding: 20px 24px;
	margin: 0 0 1.4em;
}

.entry-content .mei-note p {
	margin: 0;
}

.entry-content img {
	border-radius: 14px;
}

.entry-content blockquote {
	margin: 1.6em 0;
	padding-left: 1.2em;
	border-left: 3px solid var(--marigold);
	font-family: var(--font-display);
	font-size: 1.3rem;
}

/* Related therapies */
.related {
	padding-top: 0;
}

.related h2 {
	font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
	margin-bottom: 24px;
}

.related-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 12px;
}

.related-list a {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px 18px 14px 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--card);
	color: var(--ink);
	text-decoration: none;
	font-weight: 600;
	line-height: 1.3;
}

.related-list a:hover {
	border-color: var(--jade-text);
}

.related-list .therapy-icon {
	width: 44px;
	height: 44px;
	flex: none;
}

.related-list .icon {
	width: 26px;
	height: 26px;
}

/* ---------- Contact page ---------- */
.contact-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	gap: clamp(40px, 6vw, 96px);
	padding-block: clamp(48px, 7vw, 88px);
	align-items: start;
}

.contact-phone {
	font-family: var(--font-display);
	font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem);
	line-height: 1;
	color: var(--ink);
	text-decoration: none;
}

.contact-details .actions {
	margin-top: 20px;
}

.contact-dl dt {
	color: var(--muted);
}

.contact-dl a {
	overflow-wrap: anywhere;
}

@media (max-width: 860px) {
	.contact-grid {
		grid-template-columns: 1fr;
	}
}

/* Form */
.mei-form {
	display: grid;
	gap: 18px;
	margin-top: 24px;
}

.field {
	display: grid;
	gap: 6px;
}

.field-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

@media (max-width: 600px) {
	.field-row {
		grid-template-columns: 1fr;
	}
}

.field label {
	font-weight: 600;
	font-size: 0.98rem;
}

.field .opt {
	font-weight: 400;
	color: var(--muted);
}

.field input,
.field select,
.field textarea {
	width: 100%;
	min-height: 50px;
	padding: 12px 14px;
	font: inherit;
	font-size: 1rem;
	color: var(--ink);
	background: var(--card);
	border: 1.5px solid var(--line-strong);
	border-radius: 12px;
}

.field textarea {
	min-height: 140px;
	resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
	outline: 3px solid color-mix(in srgb, var(--marigold) 55%, transparent);
	outline-offset: 1px;
	border-color: var(--jade-text);
}

.mei-form .btn {
	justify-self: start;
	min-width: 200px;
}

.field.hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.form-msg {
	padding: 16px 20px;
	border-radius: 12px;
	font-weight: 500;
}

.form-msg.ok {
	background: var(--tint);
	border-left: 4px solid var(--jade-text);
}

.form-msg.err {
	background: color-mix(in srgb, #c2410c 12%, var(--card));
	border-left: 4px solid #c2410c;
}

/* ---------- Articles ---------- */
.post-list {
	list-style: none;
	margin: 0;
	padding: 0;
	max-width: 48rem;
}

.post-item {
	padding: 28px 0;
}

.post-item h2 {
	font-size: 1.7rem;
}

.post-item h2 a {
	color: var(--ink);
	text-decoration: none;
}

.post-item h2 a:hover {
	color: var(--jade-text);
}

.post-item .post-meta {
	margin: 8px 0 10px;
}

.post-item p:last-child {
	margin: 0;
	color: var(--muted);
}

.empty {
	color: var(--muted);
	max-width: 40rem;
}

.nav-links {
	display: flex;
	gap: 10px;
	margin-top: 32px;
}

.nav-links .page-numbers {
	display: grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--line);
	border-radius: 999px;
	text-decoration: none;
	color: var(--ink);
}

.nav-links .current {
	background: var(--jade);
	color: var(--on-jade);
	border-color: var(--jade);
}

/* ---------- Footer ---------- */
.site-footer {
	background: var(--footer);
	color: var(--on-jade-muted);
	padding-top: clamp(56px, 7vw, 88px);
	font-size: 1rem;
}

.footer-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
	gap: 40px;
}

.brand.on-dark {
	color: var(--on-jade);
	margin-bottom: 16px;
}

.brand.on-dark .brand-mark path {
	stroke: var(--on-jade);
}

.brand.on-dark .brand-place {
	color: var(--on-jade-muted);
}

.footer-brand p {
	max-width: 22rem;
}

.footer-title {
	font-size: 1.2rem;
	color: var(--on-jade);
	margin-bottom: 14px;
}

.site-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 8px;
}

.site-footer a {
	color: var(--on-jade-muted);
	text-decoration: none;
	overflow-wrap: anywhere;
}

.site-footer a:hover {
	color: var(--on-jade);
	text-decoration: underline;
}

.site-footer .social {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 16px;
}

.footer-base {
	margin-top: 56px;
	padding-block: 24px 32px;
	border-top: 1px solid rgba(241, 245, 236, 0.14);
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px 40px;
	font-size: 0.9rem;
}

.footer-base p {
	margin: 0;
}

.disclaimer {
	max-width: 46rem;
}

@media (max-width: 900px) {
	.footer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.footer-brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 520px) {
	.footer-grid {
		grid-template-columns: 1fr;
	}
}

/* ---------- Mobile booking bar ---------- */
.mobile-bar {
	display: none;
}

@media (max-width: 760px) {
	body {
		padding-bottom: 78px;
	}

	.mobile-bar {
		display: grid;
		grid-template-columns: 1fr 1.3fr;
		gap: 10px;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 45;
		padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
		background: var(--paper);
		border-top: 1px solid var(--line);
	}

	.mobile-bar a {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		min-height: 50px;
		border-radius: 999px;
		border: 1.5px solid var(--line-strong);
		color: var(--ink);
		font-weight: 600;
		text-decoration: none;
	}

	.mobile-bar .wa {
		background: var(--marigold);
		border-color: var(--marigold);
		color: var(--on-marigold);
	}

	.mobile-bar .glyph {
		width: 20px;
		height: 20px;
	}

	.nav-open .mobile-bar {
		display: none;
	}
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.kolam-line {
		animation: none;
		stroke-dashoffset: 0;
	}

	.kolam-dots circle {
		animation: none;
		opacity: 1;
	}

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
	}
}

/* ---------- Print ---------- */
@media print {
	.site-header,
	.mobile-bar,
	.band,
	.related,
	.book-card {
		display: none;
	}
}
