/*
 * healgaya — component styles (mobile first).
 *
 * Design tokens live in theme.json and are used here as CSS custom properties
 * (--wp--preset--color--*, --wp--preset--spacing--*, --wp--custom--radius--*).
 * Breakpoints: 600px (large phone / small tablet), 782px (columns side by side),
 * 1024px (desktop navigation).
 *
 * Contents
 * 1.  Icons
 * 2.  Base
 * 3.  Header
 * 4.  Mobile call / booking bar
 * 5.  Text styles (kicker, eyebrow, links, icon text)
 * 6.  Buttons
 * 7.  Sections and layout helpers
 * 8.  Hero
 * 9.  Cards (service, card style, plans)
 * 10. Media, steps, values
 * 11. Panel and checklist
 * 12. Reviews
 * 13. Call to action
 * 14. Page hero
 * 15. Contact and booking
 * 16. Blog, single post, search, pagination
 * 17. Footer
 * 18. Motion
 */

/* ------------------------------------------------------------------ *
 * 1. Icons — stroke icons as CSS masks, coloured with currentColor.
 * ------------------------------------------------------------------ */

:root {
	--hg-icon-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 2 .7 2.8a2 2 0 0 1-.5 2.1L8 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.5c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.8 2.1Z'/%3E%3C/svg%3E");
	--hg-icon-clock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
	--hg-icon-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 5-8 12-8 12S4 15 4 10a8 8 0 1 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E");
	--hg-icon-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E");
	--hg-icon-spark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3-1.2 4.2a5 5 0 0 1-3.6 3.6L3 12l4.2 1.2a5 5 0 0 1 3.6 3.6L12 21l1.2-4.2a5 5 0 0 1 3.6-3.6L21 12l-4.2-1.2a5 5 0 0 1-3.6-3.6L12 3Z'/%3E%3C/svg%3E");
	--hg-icon-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E");
	--hg-icon-calendar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18'/%3E%3C/svg%3E");
	--hg-icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4L19 6'/%3E%3C/svg%3E");
	--hg-icon-check-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4L19 6'/%3E%3C/svg%3E");
	--hg-topbar-h: 2.125rem;
	--hg-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ------------------------------------------------------------------ *
 * 2. Base
 * ------------------------------------------------------------------ */

html {
	scroll-behavior: smooth;
	scroll-padding-top: 6rem;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	overflow-x: clip;
	overflow-wrap: break-word;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* Thai has no spaces between words: balance headings so no line ends with a lone syllable. */
:where(h1, h2, h3, h4, .wp-block-post-title, .wp-block-query-title) {
	text-wrap: balance;
}

:where(p, li, blockquote) {
	text-wrap: pretty;
}

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

::selection {
	background: var(--wp--preset--color--line);
	color: var(--wp--preset--color--contrast);
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 3px;
}

:where(.wp-block-group, .wp-block-column) > p:last-child {
	margin-block-end: 0;
}

/* Figures used as icons or decoration carry no default margin. */
.hg-card__icon,
.hg-float__icon,
.hg-value__icon,
.hg-contact-row__icon,
.hg-hero__image,
.hg-arch {
	margin: 0;
}

.hg-card__icon img,
.hg-float__icon img,
.hg-value__icon img,
.hg-contact-row__icon img {
	display: block;
}

/* ------------------------------------------------------------------ *
 * 3. Header — topbar scrolls away, the white bar stays (sticky).
 * ------------------------------------------------------------------ */

.hg-site-header {
	position: sticky;
	top: calc(var(--wp-admin--admin-bar--height, 0px) - var(--hg-topbar-h));
	z-index: 100;
}

@media (max-width: 600px) {
	/* The admin bar is not fixed on small screens. */
	.admin-bar .hg-site-header {
		top: calc(-1 * var(--hg-topbar-h));
	}
}

.hg-topbar {
	min-height: var(--hg-topbar-h);
	box-sizing: border-box;
}

.hg-topbar p {
	margin: 0;
	line-height: 1.5;
	white-space: nowrap;
}

.hg-topbar a {
	text-decoration: none;
}

.hg-topbar .hg-topbar__note {
	display: none;
}

.hg-topbar .hg-topbar__meta {
	flex: 1 1 auto;
	justify-content: space-between;
}

@media (min-width: 900px) {
	.hg-topbar .hg-topbar__note {
		display: block;
	}

	.hg-topbar .hg-topbar__meta {
		flex: 0 1 auto;
		justify-content: flex-end;
	}
}

.hg-navbar {
	border-bottom: 1px solid rgb(10 61 44 / 0.08);
	box-shadow: var(--wp--preset--shadow--soft);
}

/* Brand: logo + "HEAL GAYA / CLINIC" */
.hg-brand .wp-block-site-logo,
.hg-brand .wp-block-site-title,
.hg-brand__sub {
	margin: 0;
}

.wp-block-site-logo img.hg-logo-fallback {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #183f2a;
	object-fit: contain;
}

.hg-brand .wp-block-site-title {
	font-size: 1.0625rem;
	white-space: nowrap;
}

.hg-brand__sub {
	color: var(--wp--preset--color--gold-text);
	font-family: var(--wp--preset--font-family--display);
	font-size: 0.625rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	line-height: 1;
	text-transform: uppercase;
}

@media (min-width: 600px) {
	.hg-brand .wp-block-site-title {
		font-size: 1.25rem;
	}
}

/* Navigation */
.hg-nav .wp-block-navigation-item__content {
	position: relative;
	padding-block: 0.5rem;
	color: var(--wp--preset--color--muted);
	transition: color 0.2s;
}

.hg-nav .wp-block-navigation-item__content:hover,
.hg-nav .wp-block-navigation-item__content[aria-current="page"] {
	color: var(--wp--preset--color--primary);
}

@media (min-width: 1024px) {
	.hg-nav .wp-block-navigation-item__content::after {
		content: "";
		position: absolute;
		right: 50%;
		bottom: 0;
		left: 50%;
		height: 2px;
		background: var(--wp--preset--color--accent);
		transition: left 0.2s, right 0.2s;
	}

	.hg-nav .wp-block-navigation-item__content:hover::after,
	.hg-nav .wp-block-navigation-item__content[aria-current="page"]::after {
		right: 0;
		left: 0;
	}
}

/* Hamburger button: 44px tap target. */
.hg-nav .wp-block-navigation__responsive-container-open {
	width: 2.75rem;
	height: 2.75rem;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--wp--preset--color--mist);
	color: var(--wp--preset--color--contrast);
}

/* Keep the hamburger up to 1024px (core switches at 600px). */
@media (min-width: 600px) and (max-width: 1023.98px) {
	.hg-nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.hg-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
}

/* Mobile overlay menu */
.hg-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: 1.25rem clamp(1rem, 4vw, 1.5rem);
}

.hg-nav .wp-block-navigation__responsive-container-close {
	width: 2.75rem;
	height: 2.75rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hg-nav .is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 3.5rem;
}

.hg-nav .is-menu-open .wp-block-navigation__container {
	width: 100%;
	gap: 0;
}

.hg-nav .is-menu-open .wp-block-navigation-item {
	width: 100%;
	border-bottom: 1px solid var(--wp--preset--color--hairline);
}

.hg-nav .is-menu-open .wp-block-navigation-item__content {
	display: block;
	width: 100%;
	padding-block: 0.875rem;
	font-size: 1.125rem;
}

/* Header CTA: hidden on phones (the bottom bar takes over). */
.hg-navbar .hg-navbar__cta {
	display: none;
}

.hg-navbar__cta .wp-block-button__link {
	min-height: 2.75rem;
	padding: 0.625rem 1.25rem;
	font-size: var(--wp--preset--font-size--small);
	box-shadow: 0 8px 20px rgb(20 92 67 / 0.14);
	white-space: nowrap;
}

@media (min-width: 600px) {
	.hg-navbar .hg-navbar__cta {
		display: flex;
	}
}

/* ------------------------------------------------------------------ *
 * 4. Mobile call / booking bar
 * ------------------------------------------------------------------ */

.hg-mobile-cta-part {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 90;
}

.hg-mobile-cta {
	padding: 0.625rem clamp(1rem, 4vw, 1.25rem) calc(0.625rem + env(safe-area-inset-bottom));
	border-top: 1px solid var(--wp--preset--color--hairline);
	box-shadow: 0 -8px 24px rgb(10 61 44 / 0.1);
}

.hg-mobile-cta .wp-block-buttons {
	gap: 0.625rem;
}

.hg-mobile-cta .wp-block-button {
	flex: 1 1 0;
}

.hg-mobile-cta .wp-block-button__link {
	width: 100%;
	min-height: 3rem;
	padding-inline: 0.75rem;
	box-shadow: none;
}

@media (max-width: 599.98px) {
	body .wp-site-blocks {
		padding-bottom: calc(4.5rem + env(safe-area-inset-bottom));
	}
}

@media (min-width: 600px) {
	.hg-mobile-cta-part {
		display: none;
	}
}

/* ------------------------------------------------------------------ *
 * 5. Text styles
 * ------------------------------------------------------------------ */

.hg-center {
	text-align: center;
}

.is-style-kicker {
	color: var(--wp--preset--color--accent);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1.5;
}

.is-style-kicker + :is(h1, h2, h3, .wp-block-post-title, .wp-block-query-title) {
	margin-block-start: 0.5rem;
}

.is-style-kicker a {
	color: inherit;
	text-decoration: none;
}

.is-style-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.4375rem 0.875rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--pill);
	background: rgb(255 255 255 / 0.55);
	color: var(--wp--preset--color--accent);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1.5;
}

.is-style-eyebrow.hg-eyebrow-light {
	border-color: rgb(255 255 255 / 0.2);
	background: rgb(255 255 255 / 0.06);
	color: var(--wp--preset--color--mint);
}

.is-style-link-arrow a {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	padding-block: 0.5rem;
	color: var(--wp--preset--color--accent);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	text-decoration: none;
}

.is-style-link-arrow a::after {
	content: "";
	width: 1.0625rem;
	height: 1.0625rem;
	background: currentColor;
	-webkit-mask: var(--hg-icon-arrow) center / contain no-repeat;
	mask: var(--hg-icon-arrow) center / contain no-repeat;
	transition: translate 0.2s;
}

.is-style-link-arrow a:hover::after {
	translate: 3px 0;
}

/* Text with a leading icon: add "hg-ico hg-ico--phone" to a paragraph. */
.hg-ico {
	display: flex;
	align-items: flex-start;
	gap: 0.4375rem;
}

.is-style-eyebrow.hg-ico {
	display: inline-flex;
	align-items: center;
}

.hg-ico::before {
	content: "";
	flex: none;
	width: 1.15em;
	height: 1.15em;
	margin-top: calc((1lh - 1.15em) / 2);
	background: currentColor;
	-webkit-mask: var(--hg-icon) center / contain no-repeat;
	mask: var(--hg-icon) center / contain no-repeat;
}

.is-style-eyebrow.hg-ico::before {
	margin-top: 0;
}

.hg-ico--phone,
.hg-btn-ico--phone { --hg-icon: var(--hg-icon-phone); }
.hg-ico--clock { --hg-icon: var(--hg-icon-clock); }
.hg-ico--pin { --hg-icon: var(--hg-icon-pin); }
.hg-ico--mail { --hg-icon: var(--hg-icon-mail); }
.hg-ico--spark { --hg-icon: var(--hg-icon-spark); }
.hg-btn-ico--calendar { --hg-icon: var(--hg-icon-calendar); }

/* ------------------------------------------------------------------ *
 * 6. Buttons
 * ------------------------------------------------------------------ */

.wp-block-button__link,
.wp-element-button {
	min-height: 3rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	text-align: center;
	transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s, border-color 0.2s, color 0.2s;
}

.wp-block-button__link:hover {
	transform: translateY(-2px);
}

.is-style-arrow .wp-block-button__link::after {
	content: "";
	flex: none;
	width: 1.1875rem;
	height: 1.1875rem;
	background: currentColor;
	-webkit-mask: var(--hg-icon-arrow) center / contain no-repeat;
	mask: var(--hg-icon-arrow) center / contain no-repeat;
}

.hg-btn-ico .wp-block-button__link::before {
	content: "";
	flex: none;
	width: 1.1875rem;
	height: 1.1875rem;
	background: currentColor;
	-webkit-mask: var(--hg-icon) center / contain no-repeat;
	mask: var(--hg-icon) center / contain no-repeat;
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	border-color: var(--wp--preset--color--primary);
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--primary);
}

.wp-block-button.is-style-cream > .wp-block-button__link {
	border-color: var(--wp--preset--color--cream);
	background: var(--wp--preset--color--cream);
	color: var(--wp--preset--color--contrast);
	box-shadow: none;
}

.wp-block-button.is-style-cream > .wp-block-button__link:hover {
	border-color: var(--wp--preset--color--surface);
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
}

/* Full-width buttons on phones. */
@media (max-width: 599.98px) {
	.hg-hero__actions.wp-block-buttons,
	.hg-cta__actions.wp-block-buttons {
		flex-direction: column;
		align-items: stretch;
		width: 100%;
	}

	.hg-hero__actions .wp-block-button,
	.hg-cta__actions .wp-block-button,
	.hg-hero__actions .wp-block-button__link,
	.hg-cta__actions .wp-block-button__link {
		width: 100%;
	}
}

/* ------------------------------------------------------------------ *
 * 7. Sections and layout helpers
 * ------------------------------------------------------------------ */

/* Full-width sections sit flush against each other. */
.hg-main > .alignfull + .alignfull,
.hg-landing > .alignfull + .alignfull,
.hg-landing > .alignfull:first-child {
	margin-block-start: 0;
}

.hg-landing > .alignfull:last-child {
	margin-block-end: 0;
}

.hg-split-head p {
	max-width: 32rem;
}

.hg-note {
	max-width: 40rem;
	margin-inline: auto;
}

/* ------------------------------------------------------------------ *
 * 8. Hero
 * ------------------------------------------------------------------ */

.hg-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
}

.hg-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	opacity: 0.18;
	background-image: radial-gradient(var(--wp--preset--color--accent) 0.7px, transparent 0.7px);
	background-size: 17px 17px;
	-webkit-mask-image: linear-gradient(to right, transparent, #000);
	mask-image: linear-gradient(to right, transparent, #000);
}

.hg-hero::after {
	content: "";
	position: absolute;
	top: -19rem;
	right: 12%;
	z-index: -1;
	width: 32.5rem;
	height: 32.5rem;
	border: 1px solid rgb(184 150 77 / 0.35);
	border-radius: 50%;
}

.hg-hero__title {
	margin-block: 1.25rem;
	letter-spacing: -0.03em;
	line-height: 1.25;
}

.hg-hero__title mark {
	padding: 0;
}

.hg-hero__lead {
	max-width: 37rem;
	font-weight: 300;
	line-height: 1.9;
}

.hg-hero__actions {
	margin-block-start: 2rem;
}

.wp-block-group.hg-stats {
	gap: 1rem;
	margin-block-start: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgb(20 92 67 / 0.14);
}

.hg-stat p {
	margin: 0;
}

.hg-stat__num {
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.3125rem, 1rem + 1.2vw, 1.5625rem);
	font-variant-numeric: tabular-nums;
	font-weight: 800;
	line-height: 1.2;
}

.hg-stat__label {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--x-small);
	line-height: 1.4;
}

.hg-hero__visual {
	position: relative;
	padding: 0.5rem 0.25rem 1rem;
}

.hg-hero__image {
	position: relative;
}

.hg-hero__image img {
	display: block;
	width: 100%;
	height: clamp(22rem, 62vw, 32rem);
	object-fit: cover;
	object-position: 54% center;
	border-radius: 46% 46% 22% 46%;
	box-shadow: var(--wp--preset--shadow--deep);
}

.hg-hero__image::after {
	content: "";
	position: absolute;
	inset: -0.75rem 0.75rem 0.5rem 0.875rem;
	z-index: -1;
	border: 1px solid rgb(184 150 77 / 0.55);
	border-radius: 48% 44% 20% 48%;
}

.hg-float {
	position: absolute;
	z-index: 2;
	max-width: 15rem;
	padding: 0.75rem 0.9375rem;
	border: 1px solid rgb(255 255 255 / 0.9);
	border-radius: var(--wp--custom--radius--md);
	background: rgb(255 255 255 / 0.95);
	box-shadow: var(--wp--preset--shadow--card);
}

.hg-float--top {
	top: 2rem;
	left: -0.25rem;
}

.hg-float--bottom {
	right: -0.25rem;
	bottom: 1.75rem;
}

.hg-float__icon img {
	width: 2.25rem;
	height: 2.25rem;
}

.hg-float--bottom .hg-float__icon img {
	width: 1.5rem;
	height: 1.5rem;
}

.hg-float p {
	margin: 0;
	line-height: 1.4;
}

.hg-float__title {
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
}

.hg-float__text {
	color: var(--wp--preset--color--muted);
	font-size: 0.75rem;
}

@media (min-width: 782px) {
	.hg-hero__visual {
		padding: 0.75rem 0 1.25rem 1.625rem;
	}

	.hg-float--top {
		top: 3.875rem;
		left: -1.875rem;
	}

	.hg-float--bottom {
		right: -0.5rem;
		bottom: 2.3rem;
	}

	.wp-block-group.hg-stats {
		gap: 3rem;
		justify-content: flex-start;
	}
}

@media (min-width: 1280px) {
	.hg-float--bottom {
		right: -1.375rem;
	}
}

/* ------------------------------------------------------------------ *
 * 9. Cards
 * ------------------------------------------------------------------ */

.hg-card__num {
	position: absolute;
	top: 1.75rem;
	right: 1.5rem;
	margin: 0;
	color: var(--wp--preset--color--muted);
	font-family: var(--wp--preset--font-family--display);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	line-height: 1;
	opacity: 0.8;
}

.hg-card__icon img {
	width: 3rem;
	height: 3rem;
}

:is(.hg-service-card, .is-style-card) > :is(h2, h3) {
	margin-block-start: 1.5rem;
}

:is(.hg-service-card, .is-style-card) > :is(h2, h3) + p {
	margin-block-start: 0.625rem;
}

/* Reusable "card" group style */
.is-style-card {
	position: relative;
	padding: 1.75rem 1.375rem;
	border: 1px solid var(--wp--preset--color--hairline);
	border-radius: var(--wp--custom--radius--lg);
	background: var(--wp--preset--color--surface);
}

@media (min-width: 600px) {
	.is-style-card {
		padding: 2.125rem 1.875rem;
	}
}

/* Service cards: grid lines that work at any column count. */
.hg-service-grid > .hg-service-card {
	position: relative;
	margin: 0 -1px -1px 0;
	padding: 1.875rem 1.5625rem;
	border: 1px solid var(--wp--preset--color--hairline);
	transition: background-color 0.25s, transform 0.25s;
}

.hg-service-grid > .hg-service-card:hover {
	z-index: 2;
	background: var(--wp--preset--color--mist);
	transform: translateY(-5px);
}

.hg-service-card .is-style-link-arrow {
	margin-block-start: 0.75rem;
}

/* Programs */
.hg-plan-grid.is-layout-grid {
	align-items: center;
}

.hg-plan {
	position: relative;
	padding: 2.125rem 1.5rem;
	border: 1px solid var(--wp--preset--color--hairline);
	border-radius: var(--wp--custom--radius--lg);
	background: var(--wp--preset--color--surface);
}

.hg-plan > * {
	margin-block: 0;
}

.hg-plan > h2 {
	margin-block-start: 0.625rem;
}

.hg-plan__text {
	margin-block-start: 0.5rem !important;
	color: var(--wp--preset--color--muted);
	line-height: 1.7;
}

.hg-plan__tag {
	color: var(--wp--preset--color--gold-text);
	font-family: var(--wp--preset--font-family--display);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.15em;
}

.hg-plan__badge {
	position: absolute;
	top: 0.9375rem;
	right: 1.125rem;
	padding: 0.25rem 0.75rem;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--cream);
	color: var(--wp--preset--color--contrast);
	font-size: 0.75rem;
	font-weight: 600;
}

.hg-plan__sessions {
	margin-block-start: 1.5rem !important;
	color: var(--wp--preset--color--contrast);
	font-size: 2.125rem;
	font-weight: 700;
	line-height: 1.2;
}

.hg-plan__unit {
	color: var(--wp--preset--color--muted);
}

.hg-plan .hg-card__list {
	margin-block-start: 1.5rem;
}

.hg-plan__actions {
	margin-block-start: 1.5rem !important;
}

.hg-plan--featured {
	border-color: var(--wp--preset--color--primary);
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--surface);
	box-shadow: 0 22px 45px rgb(10 61 44 / 0.18);
}

.hg-plan--featured h2,
.hg-plan--featured .hg-plan__sessions {
	color: var(--wp--preset--color--surface);
}

.hg-plan--featured .hg-plan__text,
.hg-plan--featured .hg-plan__unit,
.hg-plan--featured .hg-card__list li {
	color: var(--wp--preset--color--fog);
}

.hg-plan--featured .hg-plan__tag {
	color: var(--wp--preset--color--gold-soft);
}

.hg-plan--featured .hg-card__list {
	border-color: rgb(255 255 255 / 0.18);
}

.hg-plan--featured .hg-card__list li::before {
	background: var(--wp--preset--color--gold-soft);
}

@media (min-width: 600px) {
	.hg-plan {
		padding: 2.375rem 2rem;
	}

	.hg-plan__text {
		min-height: 3.4em;
	}
}

@media (min-width: 1024px) {
	.hg-plan--featured {
		padding-block: 3.1875rem;
	}
}

/* ------------------------------------------------------------------ *
 * 10. Media, steps, values
 * ------------------------------------------------------------------ */

.hg-media {
	position: relative;
}

.hg-arch img {
	display: block;
	width: 100%;
	height: clamp(26rem, 70vw, 35.625rem);
	object-fit: cover;
	border-radius: 48% 48% 10px 10px;
}

.hg-media__caption.wp-block-group {
	position: absolute;
	right: 1.25rem;
	bottom: 1.25rem;
	left: 1.25rem;
	margin: 0;
	padding: 1rem 1.25rem;
	border-radius: 12px;
	background: rgb(10 61 44 / 0.88);
	color: var(--wp--preset--color--surface);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.hg-media__caption p {
	margin: 0;
}

.hg-media__title {
	font-weight: 700;
}

.hg-media__text {
	color: var(--wp--preset--color--mint);
	font-size: var(--wp--preset--font-size--x-small);
}

/* Numbered steps */
.wp-block-group.hg-steps {
	margin-block-start: 2rem;
	counter-reset: hg-step;
}

.hg-step {
	position: relative;
	min-height: 4.5rem;
	padding: 1.0625rem 0 1.0625rem 3.5rem;
	border-bottom: 1px solid #d6e2d8;
}

.hg-step::before {
	content: counter(hg-step);
	counter-increment: hg-step;
	position: absolute;
	top: 1.0625rem;
	left: 0;
	width: 2.3125rem;
	height: 2.3125rem;
	display: grid;
	place-items: center;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 50%;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--accent);
	font-family: var(--wp--preset--font-family--display);
	font-size: 0.75rem;
	font-weight: 700;
}

.hg-step > * {
	margin-block: 0;
}

.hg-step > * + * {
	margin-block-start: 0.25rem;
}

/* Values (about) */
.wp-block-group.hg-values {
	margin-block: 1.75rem;
}

.hg-value {
	padding-block: 0.75rem;
}

.hg-value__icon img {
	width: 2.125rem;
	height: 2.125rem;
}

.hg-value p {
	margin: 0;
}

.hg-value__title {
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
}

/* ------------------------------------------------------------------ *
 * 11. Panel and checklist
 * ------------------------------------------------------------------ */

.hg-panel {
	padding: 2rem 1.5rem;
	border-radius: var(--wp--custom--radius--xl);
}

@media (min-width: 782px) {
	.hg-panel {
		padding: 2.9375rem 3.125rem;
	}
}

.hg-panel h2 {
	margin-block-start: 0.625rem;
	line-height: 1.4;
}

.is-style-checklist {
	display: grid;
	gap: 0.8125rem;
	padding-left: 0;
	list-style: none;
}

.is-style-checklist li {
	position: relative;
	padding-left: 2.375rem;
	color: var(--wp--preset--color--ink);
	line-height: 1.6;
}

.is-style-checklist li::before {
	content: "";
	position: absolute;
	top: calc((1lh - 1.6875rem) / 2);
	left: 0;
	width: 1.6875rem;
	height: 1.6875rem;
	border-radius: 50%;
	background: var(--wp--preset--color--accent) var(--hg-icon-check-white) center / 1rem no-repeat;
}

/* Compact checks inside cards */
.hg-card__list {
	gap: 0.5rem;
	margin-block-start: 1.5rem;
	padding-top: 1.125rem;
	border-top: 1px solid #e2e8e1;
}

.hg-card__list li {
	padding-left: 1.625rem;
	color: #48655a;
}

.hg-card__list li::before {
	top: calc((1lh - 1rem) / 2);
	width: 1rem;
	height: 1rem;
	border-radius: 0;
	background: var(--wp--preset--color--accent);
	-webkit-mask: var(--hg-icon-check) center / contain no-repeat;
	mask: var(--hg-icon-check) center / contain no-repeat;
}

/* ------------------------------------------------------------------ *
 * 12. Reviews
 * ------------------------------------------------------------------ */

.hg-reviews h2 {
	font-weight: 500;
}

.hg-rating p {
	margin: 0;
}

.hg-rating__score {
	color: var(--wp--preset--color--surface);
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(2.5rem, 2rem + 2vw, 2.9375rem);
	font-weight: 700;
	line-height: 1;
}

/* Stars are drawn by CSS; the paragraph text ("คะแนน 5 จาก 5") is read by screen readers. */
.hg-stars {
	margin: 0;
	font-size: 0;
	line-height: 1;
}

.hg-stars::before {
	content: "★★★★★";
	content: "★★★★★" / "";
	color: #d4b56c;
	font-size: 0.875rem;
	letter-spacing: 0.16em;
}

.hg-review {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 1.75rem 1.5rem;
	border: 1px solid rgb(255 255 255 / 0.12);
	border-radius: 16px;
	background: rgb(255 255 255 / 0.045);
}

.hg-review::before {
	content: "\201C";
	position: absolute;
	top: 0.9375rem;
	right: 1.625rem;
	color: rgb(255 255 255 / 0.12);
	font: 700 3.625rem/1 Georgia, serif;
}

.hg-review .hg-review__quote {
	margin: 1.25rem 0 1.5rem;
	padding: 0;
	border: 0;
}

.hg-review__quote p {
	color: #d5e2dc;
	font-size: 0.9375rem;
	font-weight: 300;
	line-height: 1.9;
}

.hg-reviewer.wp-block-group {
	margin-block-start: auto;
	padding-top: 1.1875rem;
	border-top: 1px solid rgb(255 255 255 / 0.1);
}

.hg-reviewer p {
	margin: 0;
}

.hg-avatar {
	flex: none;
	width: 2.375rem;
	height: 2.375rem;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--wp--preset--color--cream);
	color: var(--wp--preset--color--contrast);
	font-weight: 700;
}

.hg-reviewer__name {
	color: var(--wp--preset--color--surface);
	font-weight: 600;
}

@media (min-width: 600px) {
	.hg-review {
		padding: 1.875rem;
	}
}

/* ------------------------------------------------------------------ *
 * 13. Call to action
 * ------------------------------------------------------------------ */

.hg-cta {
	padding: 2.25rem 1.5rem;
	border-radius: var(--wp--custom--radius--xl);
	box-shadow: 0 20px 45px rgb(10 61 44 / 0.15);
}

.hg-cta__copy h2 {
	margin-block: 1rem 0.25rem;
}

.hg-cta__copy > * + * {
	margin-block-start: 0.75rem;
}

@media (min-width: 782px) {
	.hg-cta {
		padding: 3rem 3.5rem;
	}
}

/* ------------------------------------------------------------------ *
 * 14. Page hero
 * ------------------------------------------------------------------ */

.hg-page-hero__title {
	margin-block: 0.8125rem 0.875rem;
	letter-spacing: -0.03em;
}

.hg-page-hero__lead {
	max-width: 39.375rem;
	margin-inline: auto;
	font-weight: 300;
	line-height: 1.8;
}

.hg-post-hero .hg-page-hero__title {
	font-size: var(--wp--preset--font-size--huge);
}

.hg-post-meta {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--x-small);
}

.hg-post-meta .wp-block-post-author-name::before {
	content: "·";
	margin-right: 0.5rem;
}

/* ------------------------------------------------------------------ *
 * 15. Contact and booking
 * ------------------------------------------------------------------ */

.hg-contact-card {
	padding: 1.75rem 1.375rem;
	border-radius: 20px;
}

.hg-contact-card h2 {
	margin-block-start: 0;
}

.hg-contact-card > p {
	line-height: 1.75;
}

.hg-contact-card > .hg-contact-row {
	margin-block-start: 0;
	padding-block: 1.1875rem;
	border-top: 1px solid rgb(255 255 255 / 0.16);
}

.hg-contact-card > p + .hg-contact-row {
	margin-block-start: 1.25rem;
}

.hg-contact-row__icon img {
	width: 2.5rem;
	height: 2.5rem;
}

.hg-contact-row__body {
	min-width: 0;
}

.hg-contact-row__body p {
	margin: 0;
}

.hg-contact-row__value {
	font-weight: 600;
	line-height: 1.55;
	overflow-wrap: anywhere;
}

.hg-contact-row__value a {
	text-decoration: none;
}

.hg-contact-row__value a:hover {
	text-decoration: underline;
}

@media (min-width: 600px) {
	.hg-contact-card {
		padding: 2.4375rem;
	}
}

.hg-booking h2 {
	margin-block-start: 0;
}

.hg-form-note {
	text-align: center;
}

.hg-form-notice {
	padding: 1rem 1.25rem;
	border: 1px dashed var(--wp--preset--color--gold);
	border-radius: 12px;
	background: var(--wp--preset--color--cream);
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--small);
}

.hg-form-fallback {
	padding: 1.5rem;
	border-radius: var(--wp--custom--radius--md);
	background: var(--wp--preset--color--mist);
	text-align: center;
}

.hg-form-fallback .wp-element-button {
	text-decoration: none;
}

/* ------------------------------------------------------------------ *
 * 16. Blog, single post, search, pagination
 * ------------------------------------------------------------------ */

.hg-post-card {
	height: 100%;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--hairline);
	border-radius: var(--wp--custom--radius--lg);
	background: var(--wp--preset--color--surface);
	transition: transform 0.25s, box-shadow 0.25s;
}

.hg-post-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--wp--preset--shadow--card);
}

.hg-post-card > * {
	margin-block: 0;
}

.hg-post-card__image {
	margin: 0;
}

.hg-post-card__image img {
	display: block;
	width: 100%;
}

.hg-post-card__body {
	padding: 1.25rem 1.375rem 1.5rem;
}

.hg-post-card .wp-block-post-title {
	margin-block: 0;
	line-height: 1.45;
}

.hg-post-card .wp-block-post-excerpt {
	margin-block-start: 0.5rem;
}

.hg-post-card .wp-block-post-excerpt__excerpt {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.wp-block-post-excerpt__more-link {
	display: inline-block;
	padding-block: 0.5rem;
	color: var(--wp--preset--color--accent);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	text-decoration: none;
}

.hg-pagination {
	gap: 0.5rem;
	margin-block-start: var(--wp--preset--spacing--60);
}

.hg-pagination a,
.hg-pagination .page-numbers {
	min-width: 2.75rem;
	min-height: 2.75rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 0.875rem;
	border-radius: var(--wp--custom--radius--pill);
	text-decoration: none;
}

.hg-pagination .page-numbers.current {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--surface);
}

.hg-entry__image img {
	border-radius: var(--wp--custom--radius--lg);
}

.hg-entry .wp-block-post-content a {
	text-underline-offset: 0.2em;
}

.hg-tags a {
	display: inline-block;
	margin: 0.25rem 0.25rem 0 0;
	padding: 0.25rem 0.75rem;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--mist);
	font-size: var(--wp--preset--font-size--x-small);
	text-decoration: none;
}

.hg-tags .wp-block-post-terms__separator {
	display: none;
}

.hg-post-nav {
	padding-top: 1.5rem;
	border-top: 1px solid var(--wp--preset--color--hairline);
}

.hg-post-nav a {
	font-weight: 600;
	text-decoration: none;
}

.hg-search {
	max-width: 32rem;
	margin-inline: auto;
}

.wp-block-search__input {
	min-height: 3rem;
	padding: 0 1.25rem;
	border: 1px solid var(--wp--preset--color--hairline);
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--surface);
	font-size: 1rem;
}

.wp-block-search__button {
	margin-left: 0.5rem;
}

.hg-404 .wp-block-buttons {
	margin-block-start: 2rem;
}

/* ------------------------------------------------------------------ *
 * 17. Footer
 * ------------------------------------------------------------------ */

.wp-block-group.hg-footer__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2.25rem 1.5rem;
}

.hg-footer__grid > .wp-block-group {
	margin-block-start: 0;
}

.hg-footer__brand,
.hg-footer__contact {
	grid-column: 1 / -1;
}

@media (min-width: 900px) {
	.wp-block-group.hg-footer__grid {
		grid-template-columns: 1.5fr 1fr 1.15fr 1fr;
		gap: 3.125rem;
	}

	.hg-footer__brand,
	.hg-footer__contact {
		grid-column: auto;
	}
}

.hg-footer .wp-block-site-title a {
	color: var(--wp--preset--color--surface);
}

.hg-footer .hg-brand__sub {
	color: var(--wp--preset--color--gold-soft);
}

.hg-footer__brand > p {
	font-size: var(--wp--preset--font-size--x-small);
	line-height: 2;
}

.hg-footer .hg-footer__title {
	margin-block: 0 1.125rem;
	font-weight: 600;
}

.hg-footer__nav .wp-block-navigation-item__content {
	padding-block: 0.25rem;
	color: var(--wp--preset--color--fog);
}

.hg-footer__nav .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--surface);
}

.hg-footer__links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.hg-footer__links li {
	padding-block: 0.25rem;
}

.hg-footer__links li + li {
	margin-top: 0.375rem;
}

.hg-footer a {
	text-decoration: none;
}

.hg-footer a:hover {
	text-decoration: underline;
}

.hg-footer__contact > .hg-ico {
	margin-block: 0 0.625rem;
}

.hg-footer__bottom.wp-block-group {
	margin-block-start: var(--wp--preset--spacing--60);
	padding-top: 1.25rem;
	border-top: 1px solid rgb(255 255 255 / 0.1);
}

.hg-footer__bottom p {
	margin: 0;
}

/* ------------------------------------------------------------------ *
 * 18. Motion
 * ------------------------------------------------------------------ */

.hg-motion .hg-reveal {
	opacity: 0;
	translate: 0 28px;
	transition:
		opacity 0.75s var(--hg-ease) var(--hg-reveal-delay, 0s),
		translate 0.75s var(--hg-ease) var(--hg-reveal-delay, 0s);
}

.hg-motion .hg-reveal.is-visible {
	opacity: 1;
	translate: 0 0;
}

.hg-hero__copy {
	animation: hg-fade-up 0.85s var(--hg-ease) both;
}

.hg-hero__visual {
	animation: hg-fade-up 0.95s 0.12s var(--hg-ease) both;
}

@keyframes hg-fade-up {
	from {
		opacity: 0;
		translate: 0 24px;
	}

	to {
		opacity: 1;
		translate: 0 0;
	}
}

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

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	.wp-block-button__link:hover,
	.hg-service-grid > .hg-service-card:hover,
	.hg-post-card:hover {
		transform: none;
	}
}
