/* HerCare theme — visual system aligned to approved prototypes (Botanical Calm). */

:root {
	--hercare-arch-radius: 999px 999px 14px 14px;
	--hercare-focus-ring: var(--wp--preset--color--primary);
	--hercare-max: 1280px;
	--hercare-ink-soft: color-mix(in srgb, var(--wp--preset--color--on-surface, #111e17) 72%, transparent);
	--hercare-shadow-soft: 0 14px 40px rgb(36 56 43 / 0.1);
	--hercare-shadow-strong: 0 24px 56px rgb(36 56 43 / 0.16);
}

/* -------------------------------------------------------------------------- */
/* Core resets & WordPress layout interference                                  */
/* -------------------------------------------------------------------------- */

html {
	scroll-behavior: smooth;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body {
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--on-surface, #111e17);
	/* Keep overflow visible so sticky header can pin to the viewport. */
	font-weight: 300;
}

main > * + * {
	margin-block-start: 0;
}

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

/* WP core theme styles pad every group with a background — break editorial rhythm. */
:where(.wp-block-group.has-background),
:where(.wp-block-group.has-background.has-global-padding) {
	padding-top: 0;
	padding-bottom: 0;
}

/* Alignfull sections should bleed edge-to-edge despite root padding.
 * Use 100% + negative margins carefully: 100vw + body padding causes ~90px
 * horizontal overflow on mobile when a vertical scrollbar is present. */
.wp-site-blocks > .alignfull,
.hc-home-page .alignfull,
.hc-pattern-section.alignfull,
.hc-query-section.alignfull {
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	width: 100vw;
	max-width: 100vw;
}

@supports (width: 100dvw) {
	.wp-site-blocks > .alignfull,
	.hc-home-page .alignfull,
	.hc-pattern-section.alignfull,
	.hc-query-section.alignfull {
		margin-left: calc(50% - 50dvw);
		margin-right: calc(50% - 50dvw);
		width: 100dvw;
		max-width: 100dvw;
	}
}

/*
 * Do NOT set overflow-x on html/body/.wp-site-blocks.
 * Any non-visible overflow on ancestors disables position:sticky for the header.
 * Clamp horizontal bleed on the scrolling main column instead.
 */
main,
.hc-home-page,
.hc-content-page,
.hc-service-page {
	overflow-x: clip;
	max-width: 100%;
}

/* Keep inner content within the shell; root padding already exists on body. */
.hc-pattern-section.alignfull,
.hc-query-section.alignfull,
.hc-site-header,
.hc-site-footer {
	padding-left: 0;
	padding-right: 0;
}

/* -------------------------------------------------------------------------- */
/* Font-size class aliases (WP hyphenates h2 → h-2; legacy patterns + new)      */
/* -------------------------------------------------------------------------- */

.has-h1-font-size,
.has-h-1-font-size,
.has-heading-1-font-size {
	font-size: var(--wp--preset--font-size--heading-1, var(--wp--preset--font-size--h-1, 40px)) !important;
	line-height: 1.2 !important;
}

.has-h2-font-size,
.has-h-2-font-size,
.has-heading-2-font-size {
	font-size: var(--wp--preset--font-size--heading-2, var(--wp--preset--font-size--h-2, 32px)) !important;
	line-height: 1.3 !important;
	font-weight: 400 !important;
}

.has-h3-font-size,
.has-h-3-font-size,
.has-heading-3-font-size {
	font-size: var(--wp--preset--font-size--heading-3, var(--wp--preset--font-size--h-3, 26px)) !important;
	line-height: 1.4 !important;
	font-weight: 500 !important;
}

.has-h4-font-size,
.has-h-4-font-size,
.has-heading-4-font-size {
	font-size: var(--wp--preset--font-size--heading-4, var(--wp--preset--font-size--h-4, 21px)) !important;
	line-height: 1.4 !important;
	font-weight: 500 !important;
}

.has-display-font-size {
	font-size: var(--wp--preset--font-size--display, clamp(2.5rem, 8vw, 3.5rem)) !important;
	font-weight: 300 !important;
	line-height: 1.1 !important;
	letter-spacing: -0.02em !important;
}

.has-body-lg-font-size {
	font-size: var(--wp--preset--font-size--body-lg, 18px) !important;
	line-height: 1.75 !important;
	font-weight: 300 !important;
}

.has-eyebrow-font-size,
.hc-pattern-eyebrow {
	font-family: var(--wp--preset--font-family--be-vietnam-pro) !important;
	font-size: var(--wp--preset--font-size--eyebrow, 12px) !important;
	font-weight: 600 !important;
	letter-spacing: 0.18em !important;
	line-height: 1.2 !important;
	text-transform: uppercase !important;
}

/* -------------------------------------------------------------------------- */
/* Signature primitives: arch, grain, diamond                                   */
/* -------------------------------------------------------------------------- */

.has-hercare-arch,
.has-hercare-arch img,
.has-hercare-arch .wp-block-cover__image-background,
.has-hercare-arch .wp-block-post-featured-image img {
	border-radius: var(--hercare-arch-radius);
	overflow: hidden;
}

.has-hercare-grain {
	position: relative;
	isolation: isolate;
}

.has-hercare-grain::before {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	opacity: 0.07;
	background-image:
		url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
	background-size: 180px 180px;
	content: "";
	mix-blend-mode: multiply;
}

.has-hercare-grain > * {
	position: relative;
	z-index: 1;
}

.has-hercare-diamond-divider {
	position: relative;
}

.has-hercare-diamond-divider::before {
	display: block;
	width: min(100%, 720px);
	height: 1px;
	margin: 0 auto var(--wp--preset--spacing--5, 24px);
	background: linear-gradient(90deg, transparent 0%, #dab47a 50%, transparent 100%);
	content: "";
}

.has-hercare-diamond-divider::after {
	display: block;
	width: 7px;
	height: 7px;
	margin: -4px auto var(--wp--preset--spacing--5, 24px);
	background: #dab47a;
	content: "";
	transform: rotate(45deg);
}

/* Standalone diamond divider (matches prototype .diamond-divider). */
.hc-diamond-divider {
	position: relative;
	width: min(100%, 720px);
	height: 1px;
	margin-inline: auto;
	background: linear-gradient(90deg, transparent 0%, #dab47a 50%, transparent 100%);
}

.hc-diamond-divider::after {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 7px;
	height: 7px;
	background: #dab47a;
	content: "";
	transform: translate(-50%, -50%) rotate(45deg);
}

:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 3px solid var(--hercare-focus-ring);
	outline-offset: 3px;
}

/* Material Symbols (optional; graceful if font missing) */
.material-symbols-outlined {
	font-family: "Material Symbols Outlined", sans-serif;
	font-weight: normal;
	font-style: normal;
	font-size: 24px;
	line-height: 1;
	letter-spacing: normal;
	text-transform: none;
	display: inline-block;
	white-space: nowrap;
	word-wrap: normal;
	direction: ltr;
	font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
	-webkit-font-smoothing: antialiased;
}

/* -------------------------------------------------------------------------- */
/* Shell: header / footer                                                       */
/* -------------------------------------------------------------------------- */

.hc-shell-inner {
	max-width: var(--hercare-max);
	margin-inline: auto;
	width: 100%;
	padding-inline: 24px;
}

/*
 * Sticky must live on the OUTER template-part wrapper.
 * Markup is: <header class="wp-block-template-part"><header class="hc-site-header">…
 * Sticky on the inner header alone cannot pin while its parent scrolls away.
 */
.wp-site-blocks > header.wp-block-template-part:has(.hc-site-header),
.wp-site-blocks > .wp-block-template-part:has(.hc-site-header),
header.wp-block-template-part:has(.hc-site-header),
.hc-site-header {
	position: sticky;
	top: 0;
	z-index: 100;
}

.wp-site-blocks > header.wp-block-template-part:has(.hc-site-header),
.wp-site-blocks > .wp-block-template-part:has(.hc-site-header),
header.wp-block-template-part:has(.hc-site-header) {
	background: color-mix(in srgb, var(--wp--preset--color--surface, #edfdf1) 94%, transparent);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.hc-site-header {
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--primary) 10%, transparent);
	background: color-mix(in srgb, var(--wp--preset--color--surface, #edfdf1) 94%, transparent);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

/* Fallback when :has() is unavailable — still pin the inner bar. */
@supports not selector(:has(*)) {
	.hc-site-header {
		position: sticky;
		top: 0;
		z-index: 100;
	}
}

/* Prototype-like full-width shell: brand | links | CTA on one row. */
.hc-site-header > .hc-header-inner,
.hc-site-header .hc-header-inner {
	display: flex !important;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	min-height: 80px;
	gap: clamp(12px, 2vw, 32px);
	padding-block: 8px;
	max-width: min(100%, var(--hercare-max));
	width: 100%;
	margin-inline: auto;
}

.hc-site-header .hc-site-brand {
	margin: 0;
	flex: 0 0 auto;
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: 21px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.hc-site-header .hc-site-brand a {
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}

.hc-primary-navigation {
	flex: 1 1 auto;
	display: flex !important;
	justify-content: center;
	margin: 0;
	font-family: var(--wp--preset--font-family--be-vietnam-pro);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.5;
}

/* Desktop: always show horizontal menu (prototype nav). */
@media (min-width: 782px) {
	.hc-primary-navigation .wp-block-navigation__responsive-container-open {
		display: none !important;
	}

	.hc-primary-navigation .wp-block-navigation__responsive-container {
		position: static !important;
		display: block !important;
		width: auto !important;
		height: auto !important;
		visibility: visible !important;
		opacity: 1 !important;
		overflow: visible !important;
		background: transparent !important;
	}

	.hc-primary-navigation .wp-block-navigation__responsive-container:not(.is-menu-open) {
		display: block !important;
	}

	.hc-primary-navigation .wp-block-navigation__responsive-container-content {
		display: flex !important;
		align-items: center;
		justify-content: center;
		padding: 0 !important;
	}

	.hc-primary-navigation .wp-block-navigation__container {
		display: flex !important;
		flex-wrap: nowrap;
		align-items: center;
		justify-content: center;
		gap: clamp(16px, 2.2vw, 32px);
	}

	.hc-primary-navigation .wp-block-navigation__responsive-dialog,
	.hc-primary-navigation .wp-block-navigation__responsive-close {
		display: contents;
	}

	.hc-primary-navigation .wp-block-navigation__responsive-container-close {
		display: none !important;
	}
}

.hc-primary-navigation .wp-block-navigation-item__content {
	padding-block: 10px;
	color: var(--wp--preset--color--on-surface-variant, #424843);
	text-decoration: none;
	transition: color 200ms ease;
	white-space: nowrap;
}

.hc-primary-navigation .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--secondary, #8e4d2a);
}

.hc-header-cta {
	margin: 0;
	flex: 0 0 auto;
}

.hc-header-cta .wp-block-button__link {
	min-height: 44px;
	padding: 10px 24px;
	border-radius: 999px;
	font-family: var(--wp--preset--font-family--be-vietnam-pro);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
	text-decoration: none;
	box-shadow: none;
	white-space: nowrap;
	transition: opacity 200ms ease, transform 160ms ease, background-color 200ms ease;
}

.hc-header-cta .wp-block-button__link:hover {
	opacity: 0.92;
}

.hc-header-cta .wp-block-button__link:active {
	transform: scale(0.97);
}

.hc-site-footer {
	padding-block: var(--wp--preset--spacing--8, 64px) var(--wp--preset--spacing--5, 24px);
}

.hc-footer-grid {
	display: grid;
	grid-template-columns: 4fr 2fr 2fr 2fr;
	gap: var(--wp--preset--spacing--6, 32px);
	max-width: var(--hercare-max);
	margin-inline: auto;
	padding-inline: 24px;
}

.hc-site-footer :is(a, .wp-block-site-title a) {
	color: inherit;
}

.hc-footer-brand .wp-block-site-title {
	margin: 0;
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: 26px;
}

.hc-footer-social {
	gap: var(--wp--preset--spacing--3, 12px);
}

.hc-footer-social .wp-social-link {
	min-width: 44px;
	min-height: 44px;
	border: 1px solid color-mix(in srgb, currentcolor 28%, transparent);
	border-radius: 999px;
}

.hc-footer-links h2,
.hc-footer-newsletter h2 {
	margin-top: 0;
	font-family: var(--wp--preset--font-family--be-vietnam-pro);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.hc-footer-link-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.hc-footer-link-list li + li {
	margin-top: var(--wp--preset--spacing--2, 8px);
}

.hc-footer-link-list a {
	text-decoration: none;
	opacity: 0.88;
}

.hc-footer-link-list a:hover {
	opacity: 1;
	color: var(--wp--preset--color--accent-strong);
}

.hc-footer-newsletter form,
.hc-footer-newsletter .wp-block-shortcode > * {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--2, 8px);
}

.hc-footer-legal {
	max-width: var(--hercare-max);
	margin: var(--wp--preset--spacing--7, 48px) auto 0;
	padding: var(--wp--preset--spacing--4, 16px) 24px 0;
	border-top: 1px solid color-mix(in srgb, currentcolor 18%, transparent);
	font-family: var(--wp--preset--font-family--be-vietnam-pro);
	line-height: 1.5;
}

/* -------------------------------------------------------------------------- */
/* Buttons                                                                      */
/* -------------------------------------------------------------------------- */

.wp-block-button__link,
.wp-element-button {
	border-radius: 999px;
	font-family: var(--wp--preset--font-family--be-vietnam-pro);
	font-weight: 500;
	letter-spacing: 0.02em;
	text-decoration: none !important;
	transition: opacity 180ms ease, transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.wp-block-button__link:hover {
	opacity: 0.92;
}

.wp-block-button.is-style-outline .wp-block-button__link,
.wp-block-button__link.is-style-outline {
	border: 1.5px solid currentColor;
	background: transparent !important;
}

.hc-pattern-actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--4, 16px);
}

.hc-pattern-actions .wp-block-button__link {
	min-height: 52px;
	padding: 14px 28px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 500;
}

.hc-pattern-actions .wp-block-button:not(.is-style-outline) .wp-block-button__link {
	box-shadow: 0 12px 28px color-mix(in srgb, var(--wp--preset--color--accent-strong) 22%, transparent);
}

/* -------------------------------------------------------------------------- */
/* Shared pattern sections                                                      */
/* -------------------------------------------------------------------------- */

.hc-pattern-section {
	padding-block: clamp(64px, 10vw, 128px);
}

.hc-pattern-container,
.hc-query-container {
	width: min(100%, var(--hercare-max));
	max-width: var(--hercare-max);
	margin-inline: auto;
	padding-inline: 24px;
	box-sizing: border-box;
}

.hc-pattern-grid {
	display: grid !important;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: clamp(32px, 5vw, 64px);
	align-items: center;
}

/* Override WP columns flex when used as editorial grid */
.hc-pattern-grid.wp-block-columns {
	flex-wrap: nowrap;
	display: grid !important;
}

.hc-pattern-grid > .wp-block-column {
	min-width: 0;
	margin: 0 !important;
	flex-basis: auto !important;
	width: auto !important;
	/* Critical: without an explicit span, auto-placement only fills ONE of 12 tracks (~48–100px),
	   which wraps headings into a single-character vertical column (about/consultation bugs). */
	grid-column: span 6;
	max-width: none !important;
}

/* Explicit spans for known editorial pairings */
.hc-pattern-grid > .hc-content-about-story-media,
.hc-pattern-grid > .hc-testimonial-media {
	grid-column: span 5;
}

.hc-pattern-grid > .hc-content-about-story-copy,
.hc-pattern-grid > .hc-testimonial-copy {
	grid-column: span 7;
}

.hc-pattern-grid > .hc-consultation-hero-copy {
	grid-column: span 7;
}

.hc-pattern-grid > .hc-consultation-hero-aside {
	grid-column: span 5;
}

.hc-pattern-grid > .hc-hero-copy,
.hc-pattern-grid > .hc-hero-media-column {
	grid-column: span 6;
}

/* About / content page shells */
.hc-content-about-story,
.hc-content-about-principles,
.hc-content-about-hero {
	padding-block: clamp(48px, 8vw, 96px);
}

.hc-content-about-story .hc-pattern-grid {
	align-items: start;
}

.hc-content-about-story-media img {
	width: 100%;
	height: auto;
	border-radius: var(--hercare-arch-radius, 999px 999px 14px 14px);
	object-fit: cover;
	aspect-ratio: 4 / 5;
}

.hc-content-about-story-copy .has-display-font-size,
.hc-content-about-story-copy h1 {
	max-width: 18ch;
}

.hc-principles-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(20px, 3vw, 32px);
	margin: var(--wp--preset--spacing--6, 32px) 0 0;
	padding: 0;
	list-style: none;
	max-width: none !important;
}

.hc-principles-list li {
	margin: 0;
	padding: clamp(20px, 3vw, 28px);
	border-radius: 20px;
	background: color-mix(in srgb, var(--wp--preset--color--surface-container, #e2f2e6) 55%, transparent);
	color: var(--wp--preset--color--on-surface, #111e17);
	font-size: 16px;
	font-weight: 300;
	line-height: 1.6;
}

.hc-content-about-principles > .wp-block-heading,
.hc-content-about-principles > h2 {
	text-align: center;
	max-width: 22ch;
	margin-inline: auto;
}

.hc-pattern-eyebrow {
	margin-block: 0 var(--wp--preset--spacing--4, 16px);
	color: var(--wp--preset--color--accent-strong);
}

.hc-pattern-section :is(h1, h2, h3, p) {
	margin-top: 0;
}

/* Was 15ch — far too narrow; caused “broken” multi-line display headlines. */
.hc-pattern-section h1 {
	max-width: 18ch;
	margin-bottom: var(--wp--preset--spacing--5, 24px);
}

.hc-pattern-section h2 {
	max-width: 22ch;
	margin-bottom: var(--wp--preset--spacing--5, 24px);
}

.hc-pattern-section > .hc-pattern-container > p:not(.hc-pattern-eyebrow),
.hc-hero-copy > p:not(.hc-pattern-eyebrow),
.hc-testimonial-copy > p:not(.hc-pattern-eyebrow),
.hc-final-cta-inner > p:not(.hc-pattern-eyebrow),
.hc-form-slot-inner > p:not(.hc-pattern-eyebrow) {
	max-width: 36rem;
	margin-bottom: var(--wp--preset--spacing--6, 32px);
	color: var(--wp--preset--color--on-surface-variant, #424843);
	font-size: 18px;
	font-weight: 300;
	line-height: 1.75;
}

/* -------------------------------------------------------------------------- */
/* Hero                                                                         */
/* -------------------------------------------------------------------------- */

.hc-pattern-hero .hc-hero-copy {
	grid-column: span 6;
}

.hc-pattern-hero .hc-hero-media-column {
	grid-column: span 6;
	position: relative;
	/* Anchor for absolute proof card over image (image block layout, not only cover). */
	isolation: isolate;
}

/* Cover OR image figure used as hero media */
.hc-hero-media,
.hc-pattern-hero .hc-hero-media-column > .wp-block-image.hc-hero-media,
.hc-pattern-hero .hc-hero-media-column > figure.hc-hero-media {
	display: block;
	width: 100%;
	max-width: 100%;
	min-height: 0 !important;
	margin: 0 !important;
	aspect-ratio: 4 / 5;
	border-radius: var(--hercare-arch-radius);
	overflow: hidden;
	box-shadow: var(--hercare-shadow-strong);
	line-height: 0;
}

.hc-hero-media .wp-block-cover__image-background,
.hc-hero-media img,
.hc-pattern-hero .hc-hero-media-column > .wp-block-image.hc-hero-media img,
.hc-pattern-hero .hc-hero-media-column > figure.hc-hero-media img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	border-radius: var(--hercare-arch-radius);
	object-fit: cover;
	object-position: center 20%;
}

.hc-hero-media .wp-block-cover__inner-container {
	display: flex;
	align-items: flex-end;
	justify-content: flex-start;
	min-height: 100%;
	padding: 0 !important;
	position: relative;
}

/*
 * Proof chip: overlay bottom-left of media column.
 * Works when proof is a sibling of the image (hybrid seed) OR inside cover.
 */
.hc-hero-proof,
.hc-pattern-hero .hc-hero-media-column > .hc-hero-proof {
	position: absolute !important;
	left: 8%;
	bottom: 8%;
	z-index: 2;
	max-width: 240px;
	width: max-content;
	margin: 0 !important;
	padding: 20px 22px !important;
	border-radius: 14px;
	background: #fff !important;
	box-shadow: var(--hercare-shadow-soft);
}

.hc-hero-media .hc-hero-proof {
	/* When nested inside cover inner container, keep relative flex placement. */
	position: relative !important;
	left: auto;
	bottom: auto;
	margin: 0 0 8% 8% !important;
}

.hc-hero-proof p {
	margin: 0;
}

.hc-hero-proof p:last-child {
	margin-top: 4px;
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: 21px;
	font-weight: 500;
	line-height: 1.25;
}

/* -------------------------------------------------------------------------- */
/* Home: trust / topics                                                         */
/* -------------------------------------------------------------------------- */

.hc-home-page > .hc-home-section {
	margin-block-start: 0;
}

.hc-home-trust {
	padding-block: clamp(28px, 4vw, 48px) !important;
}

.hc-home-trust .hc-pattern-container,
.hc-home-trust-inner {
	text-align: center;
}

.hc-home-trust-inner.is-layout-constrained > .hc-diamond-divider,
.hc-home-trust-inner.is-layout-constrained > .hc-home-trust-list {
	max-width: min(100%, var(--wp--style--global--wide-size, var(--hercare-max, 1280px))) !important;
	width: 100%;
	margin-inline: auto !important;
}

.hc-home-trust-list {
	display: flex !important;
	flex-wrap: nowrap;
	justify-content: space-between;
	align-items: center;
	gap: clamp(8px, 1.6vw, 24px) !important;
	margin: clamp(24px, 3vw, 40px) 0 !important;
	padding: 0;
	opacity: 0.4;
	filter: grayscale(1);
	transition: opacity 320ms ease, filter 320ms ease;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.hc-home-trust-list::-webkit-scrollbar {
	display: none;
}

@media (max-width: 767px) {
	.hc-home-trust-list {
		flex-wrap: wrap;
		justify-content: center;
		row-gap: 12px;
	}
}

.hc-home-trust:hover .hc-home-trust-list,
.hc-home-trust-list:focus-within {
	opacity: 1;
	filter: grayscale(0);
}

.hc-home-trust-mark,
.hc-home-trust-list .wp-block-column p,
.hc-home-trust-list p {
	margin: 0;
	padding-inline: clamp(4px, 0.8vw, 16px);
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: clamp(15px, 1.35vw, 21px);
	font-style: italic;
	font-weight: 400;
	line-height: 1.35;
	color: var(--wp--preset--color--primary);
	white-space: nowrap;
	flex: 0 0 auto;
}

.hc-home-trust-list .wp-block-column {
	min-width: 0;
	margin: 0 !important;
	flex-basis: auto !important;
	width: auto !important;
	flex-grow: 0 !important;
	text-align: center;
}

/* Topics gateway — full wide grid (prototype 6 cards), not content-width 720px */
.hc-home-topics .hc-pattern-container,
.hc-home-page .hc-home-topics .hc-pattern-container {
	text-align: center;
	max-width: min(100%, var(--wp--style--global--wide-size, var(--hercare-max, 1280px))) !important;
	width: 100% !important;
}

/* Beat is-layout-constrained content-size on headings + list */
.hc-home-topics .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
.hc-home-topics .hc-pattern-container.is-layout-constrained > * {
	max-width: 100% !important;
}

.hc-home-topics .hc-pattern-container > h2,
.hc-home-topics .hc-pattern-container > .wp-block-heading {
	margin-inline: auto;
	max-width: 28ch !important;
}

.hc-home-topic-list,
.hc-topic-list {
	display: grid !important;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: clamp(12px, 1.5vw, 20px);
	margin: var(--wp--preset--spacing--7, 48px) 0 0 !important;
	padding: 0 !important;
	list-style: none !important;
	max-width: 100% !important;
	width: 100% !important;
}

.hc-home-topic-list li,
.hc-topic-list li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.hc-home-topic-list a,
.hc-topic-list a {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	min-height: 168px;
	height: 100%;
	padding: 28px 12px;
	border: 0;
	border-radius: 20px;
	background: color-mix(in srgb, var(--wp--preset--color--surface-container, #e2f2e6) 55%, transparent);
	color: var(--wp--preset--color--primary);
	font-family: var(--wp--preset--font-family--be-vietnam-pro);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.35;
	text-align: center;
	text-decoration: none;
	will-change: transform, box-shadow;
	transition:
		background-color 220ms cubic-bezier(0.16, 1, 0.3, 1),
		box-shadow 220ms cubic-bezier(0.16, 1, 0.3, 1),
		transform 220ms cubic-bezier(0.16, 1, 0.3, 1),
		color 220ms ease;
}

/*
 * Icons via ::before so list items stay plain text in the block editor
 * (nested Material Symbols spans caused "invalid content" previously).
 */
.hc-home-topic-list a::before,
.hc-topic-list a::before {
	content: "spa";
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	flex-shrink: 0;
	border-radius: 999px;
	background: #fff;
	color: var(--wp--preset--color--primary);
	font-family: "Material Symbols Outlined", sans-serif;
	font-size: 28px;
	font-weight: normal;
	font-style: normal;
	line-height: 1;
	letter-spacing: normal;
	text-transform: none;
	white-space: nowrap;
	word-wrap: normal;
	direction: ltr;
	-webkit-font-feature-settings: "liga";
	-webkit-font-smoothing: antialiased;
	font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
	transition: background-color 200ms ease, color 200ms ease;
}

.hc-home-topic-list a[href*="noi-tiet"]::before,
.hc-topic-list a[href*="noi-tiet"]::before {
	content: "female";
}

.hc-home-topic-list a[href*="dinh-duong"]::before,
.hc-topic-list a[href*="dinh-duong"]::before {
	content: "nutrition";
}

.hc-home-topic-list a[href*="giac-ngu"]::before,
.hc-topic-list a[href*="giac-ngu"]::before {
	content: "bedtime";
}

.hc-home-topic-list a[href*="can-nang"]::before,
.hc-topic-list a[href*="can-nang"]::before {
	content: "monitoring";
}

.hc-home-topic-list a[href*="lam-dep"]::before,
.hc-topic-list a[href*="lam-dep"]::before {
	content: "spa";
}

.hc-home-topic-list a[href*="tinh-than"]::before,
.hc-home-topic-list a[href*="suc-khoe-tinh-than"]::before,
.hc-topic-list a[href*="tinh-than"]::before {
	content: "psychology";
}

/* Explicit span icons still work if present in content */
.hc-home-topic-list a .hc-topic-icon,
.hc-topic-list a .hc-topic-icon,
.hc-home-topic-list a span[aria-hidden="true"],
.hc-topic-list a span[aria-hidden="true"] {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	border-radius: 999px;
	background: #fff;
	font-family: "Material Symbols Outlined", var(--wp--preset--font-family--be-vietnam-pro);
	font-size: 28px;
	line-height: 1;
	transition: background-color 200ms ease, color 200ms ease;
}

/* Avoid double icons when span is present */
.hc-home-topic-list a:has(.hc-topic-icon)::before,
.hc-home-topic-list a:has(span[aria-hidden="true"])::before,
.hc-topic-list a:has(span[aria-hidden="true"])::before {
	display: none;
}

.hc-home-topic-list a:hover,
.hc-topic-list a:hover,
.hc-home-topic-list a:focus-visible,
.hc-topic-list a:focus-visible {
	background: #fff;
	box-shadow: var(--hercare-shadow-strong);
	transform: translateY(-4px);
	color: var(--wp--preset--color--primary);
}

.hc-home-topic-list a:hover::before,
.hc-topic-list a:hover::before,
.hc-home-topic-list a:hover .hc-topic-icon,
.hc-topic-list a:hover .hc-topic-icon,
.hc-home-topic-list a:hover span[aria-hidden="true"],
.hc-topic-list a:hover span[aria-hidden="true"] {
	background: var(--wp--preset--color--accent-strong);
	color: #fff;
}

/* -------------------------------------------------------------------------- */
/* Query sections & cards                                                       */
/* -------------------------------------------------------------------------- */

.hc-query-section {
	padding-block: clamp(64px, 10vw, 128px);
}

/*
 * WordPress constrained layout caps non-alignwide children at content-size (720px).
 * Query grids must use the wide shell width (1280px) or the 3-col prototype collapses.
 */
.hc-query-container.is-layout-constrained > .wp-block-query,
.hc-query-container.is-layout-constrained > .hc-workshop-query,
.hc-query-container.is-layout-constrained > .hc-expert-query,
.hc-query-container.is-layout-constrained > .hc-article-query,
.hc-query-container.is-layout-constrained > .hc-testimonial-query,
.hc-pattern-container.is-layout-constrained > .wp-block-query {
	max-width: min(100%, var(--wp--style--global--wide-size, var(--hercare-max, 1280px))) !important;
	width: 100%;
	margin-inline: 0 !important;
}

.hc-query-section .wp-block-post-template {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(28px, 3.5vw, 48px) !important;
	margin: var(--wp--preset--spacing--7, 48px) 0 0;
	width: 100%;
	max-width: none !important;
	list-style: none;
	padding: 0;
}

.hc-query-section .wp-block-post-template > li {
	margin: 0;
	min-width: 0;
	width: auto !important;
	max-width: none !important;
}

/* Cards use constrained layout in markup; disable content-size clamp inside cards. */
.hc-expert-card.is-layout-constrained > *,
.hc-workshop-card.is-layout-constrained > *,
.hc-article-card.is-layout-constrained > *,
.hc-testimonial-card.is-layout-constrained > *,
.hc-expert-card-media.is-layout-constrained > *,
.hc-workshop-card-media.is-layout-constrained > *,
.hc-article-card-media.is-layout-constrained > *,
.hc-expert-card-body.is-layout-constrained > *,
.hc-workshop-card-body.is-layout-constrained > *,
.hc-article-card-body.is-layout-constrained > * {
	max-width: none !important;
	margin-inline: 0 !important;
}

.hc-expert-card,
.hc-workshop-card,
.hc-article-card {
	width: 100%;
	max-width: none !important;
}

.hc-query-section > .hc-query-container > h2,
.hc-query-container > h2 {
	margin-bottom: 0;
}

.hc-query-card-action {
	margin-top: auto;
}

.hc-query-card-action .wp-block-button__link,
.hc-query-card-action .wp-block-read-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 18px;
	border-radius: 999px;
	font-family: var(--wp--preset--font-family--be-vietnam-pro);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
}

.hc-query-empty {
	margin: 24px 0 0;
	padding: var(--wp--preset--spacing--6, 32px);
	border: 1px dashed color-mix(in srgb, var(--wp--preset--color--primary) 28%, transparent);
	border-radius: 16px;
	color: var(--wp--preset--color--on-surface-variant, #424843);
}

/* Experts — portrait-led, not admin card boxes */
.hc-home-section--experts .hc-query-section--experts {
	background-color: var(--wp--preset--color--surface-low, #e7f8eb) !important;
}

.hc-expert-card {
	display: flex;
	min-height: 100%;
	flex-direction: column;
	gap: 16px;
	padding: 0 !important;
	border: 0;
	border-radius: 0;
	background: transparent;
}

.hc-expert-card-media {
	position: relative;
	overflow: hidden;
	border-radius: var(--hercare-arch-radius);
	aspect-ratio: 1 / 1;
	background: var(--wp--preset--color--surface-container, #e2f2e6);
	padding: 0 !important;
}

.hc-expert-card-media:empty::after,
.hc-expert-card-media:not(:has(img))::after {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	min-height: 100%;
	color: color-mix(in srgb, var(--wp--preset--color--primary) 40%, transparent);
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: 14px;
	font-style: italic;
	content: "Chân dung chuyên gia";
	background: linear-gradient(160deg, var(--wp--preset--color--surface-container, #e2f2e6), var(--wp--preset--color--tint, #dce7d8));
}

.hc-expert-card-image,
.hc-expert-card-image a,
.hc-expert-card-image img {
	display: block;
	width: 100%;
	height: 100%;
}

.hc-expert-card-image img {
	object-fit: cover;
	transition: transform 700ms ease;
}

.hc-expert-card:hover .hc-expert-card-image img {
	transform: scale(1.05);
}

.hc-expert-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 4px;
	padding: 0 !important;
}

.hc-expert-card-body > * {
	margin-top: 0;
	margin-bottom: 0;
}

.hc-expert-card-role,
.hc-workshop-card-date,
.hc-article-card-category,
.hc-testimonial-card-label {
	margin-bottom: 6px;
	font-family: var(--wp--preset--font-family--be-vietnam-pro);
	font-size: 12px !important;
	font-weight: 600;
	letter-spacing: 0.14em;
	line-height: 1.4;
	text-transform: uppercase;
}

.hc-expert-card h3,
.hc-expert-card .wp-block-post-title {
	margin: 0 0 4px;
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: 26px !important;
	font-weight: 500;
	line-height: 1.3;
}

.hc-expert-card h3 a,
.hc-expert-card .wp-block-post-title a {
	color: inherit;
	text-decoration: none;
}

.hc-expert-card-credentials {
	margin: 0;
	color: var(--wp--preset--color--on-surface-variant, #424843);
	font-size: 15px !important;
	font-weight: 300;
}

/* Soften secondary body content on expert cards for cleaner directory */
.hc-expert-card .wp-block-post-excerpt,
.hc-expert-card .hc-query-card-action {
	display: none;
}

/* Home keeps a calmer 3-up slice without changing archive query patterns. */
.hc-home-section--experts .hc-expert-query .wp-block-post-template > li:nth-child(n + 4),
.hc-home-section--workshops .hc-workshop-query .wp-block-post-template > li:nth-child(n + 4),
.hc-home-section--experts .wp-block-query-pagination,
.hc-home-section--workshops .wp-block-query-pagination {
	display: none;
}

/* Workshops — arch media + clean body */
.hc-home-section--workshops .hc-query-section--workshops {
	background-color: var(--wp--preset--color--base) !important;
}

.hc-workshop-card {
	display: flex;
	min-height: 100%;
	flex-direction: column;
	overflow: visible;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	padding: 0 !important;
}

.hc-workshop-card-media {
	position: relative;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	border-radius: var(--hercare-arch-radius);
	background: var(--wp--preset--color--surface-container, #e2f2e6);
	margin-bottom: 16px;
	padding: 0 !important;
}

.hc-workshop-card-media:not(:has(img)) {
	background: linear-gradient(160deg, var(--wp--preset--color--primary-container, #3a4f41), var(--wp--preset--color--primary));
}

.hc-workshop-card-image,
.hc-workshop-card-image a,
.hc-workshop-card-image img {
	display: block;
	width: 100%;
	height: 100%;
}

.hc-workshop-card-image img {
	object-fit: cover;
	transition: transform 700ms ease;
}

.hc-workshop-card:hover .hc-workshop-card-image img {
	transform: scale(1.04);
}

.hc-workshop-card-status {
	position: absolute;
	top: 16px;
	right: 16px;
	left: auto;
	margin: 0;
	padding: 8px 14px;
	border-radius: 999px;
	background: var(--wp--preset--color--accent-strong);
	color: #fff !important;
	font-family: var(--wp--preset--font-family--be-vietnam-pro);
	font-size: 11px !important;
	font-weight: 700;
	letter-spacing: 0.1em;
	line-height: 1.2;
	text-transform: uppercase;
	box-shadow: 0 8px 18px rgb(36 56 43 / 0.18);
	z-index: 2;
}

.hc-workshop-card-body {
	padding: 4px 2px 0 !important;
	gap: 8px;
}

.hc-workshop-card h3,
.hc-workshop-card .wp-block-post-title {
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: 21px !important;
	font-weight: 500;
	line-height: 1.35;
}

.hc-workshop-card h3 a,
.hc-workshop-card .wp-block-post-title a {
	color: inherit;
	text-decoration: none;
}

.hc-workshop-card-details {
	margin-top: auto;
	margin-bottom: 0;
	padding-top: 16px;
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--primary) 14%, transparent);
}

.hc-workshop-card-details p {
	margin: 0;
	color: var(--wp--preset--color--on-surface-variant, #424843);
	font-size: 14px;
}

.hc-workshop-card-details p + p {
	margin-top: 6px;
}

/* Articles */
.hc-home-section--knowledge .hc-query-section--articles {
	background-color: var(--wp--preset--color--base) !important;
}

.hc-article-card {
	display: flex;
	min-height: 100%;
	flex-direction: column;
	background: transparent;
	padding: 0 !important;
}

.hc-article-card-media {
	position: relative;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	border-radius: 16px;
	background: var(--wp--preset--color--base-deep);
	padding: 0 !important;
}

.hc-article-card-image,
.hc-article-card-image a,
.hc-article-card-image img {
	display: block;
	width: 100%;
	height: 100%;
}

.hc-article-card-image img {
	object-fit: cover;
	transition: transform 700ms ease;
}

.hc-article-card:hover .hc-article-card-image img {
	transform: scale(1.05);
}

.hc-article-card-featured-label {
	position: absolute;
	bottom: 12px;
	left: 12px;
	margin: 0;
	padding: 6px 10px;
	border-radius: 4px;
	background: var(--wp--preset--color--primary);
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1.2;
	text-transform: uppercase;
	z-index: 2;
}

.hc-article-card-body {
	padding-top: 16px !important;
	gap: 8px;
}

.hc-article-card-category a {
	color: var(--wp--preset--color--accent-strong);
	text-decoration: none;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.hc-article-card h3 a,
.hc-article-card .wp-block-post-title a {
	color: inherit;
	text-decoration: none;
	transition: color 180ms ease;
}

.hc-article-card:hover h3 a,
.hc-article-card:hover .wp-block-post-title a {
	color: var(--wp--preset--color--accent-strong);
}

.hc-article-card-meta {
	gap: 12px;
	margin-top: 8px;
	color: var(--wp--preset--color--on-surface-variant, #424843);
}

.hc-article-card-meta p {
	margin: 0;
}

.hc-article-card .hc-query-card-action {
	display: none;
}

.hc-article-card--featured {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: clamp(24px, 4vw, 56px);
	align-items: center;
}

.hc-article-card--featured .hc-article-card-media {
	aspect-ratio: 16 / 10;
}

/* Stories / testimonials on inverse surface */
/* Stories band — primary full-bleed (prototype bg-primary). Do not depend on WP utility classes alone. */
.hc-home-section--stories .hc-home-stories,
.hc-home-page .hc-home-stories,
.hc-home-stories {
	background-color: var(--wp--preset--color--primary) !important;
	background: var(--wp--preset--color--primary) !important;
	color: var(--wp--preset--color--surface) !important;
	padding-block: clamp(48px, 8vw, 96px) !important;
}

.hc-home-stories .hc-pattern-container {
	text-align: center;
}

.hc-home-stories .hc-pattern-container > h2,
.hc-home-stories .hc-pattern-container > .wp-block-heading {
	margin-inline: auto;
	color: var(--wp--preset--color--surface) !important;
	max-width: 24ch;
}

.hc-home-stories .hc-pattern-eyebrow,
.hc-home-stories .has-brass-color {
	color: var(--wp--preset--color--brass, #b08d57) !important;
}

.hc-home-stories .hc-query-section--testimonials {
	padding-block: var(--wp--preset--spacing--6, 32px) 0;
	background: transparent !important;
}

.hc-home-stories .hc-query-container {
	padding-inline: 0;
}

.hc-testimonial-card {
	display: flex;
	flex-direction: column;
	min-height: 100%;
	gap: 20px;
	padding: clamp(28px, 4vw, 40px) !important;
	border: 1px solid color-mix(in srgb, #feaa7f 30%, transparent);
	border-left: 1px solid color-mix(in srgb, #feaa7f 30%, transparent);
	border-radius: 20px;
	background: rgb(237 253 241 / 0.06);
	backdrop-filter: blur(6px);
	text-align: left;
	grid-template-columns: none;
}

.hc-home-stories .hc-testimonial-card {
	color: var(--wp--preset--color--surface);
}

.hc-testimonial-card-media {
	display: none;
}

.hc-home-stories .hc-testimonial-card-quote p,
.hc-testimonial-card-quote p {
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: clamp(1.15rem, 2vw, 1.35rem);
	font-style: italic;
	line-height: 1.55;
	color: inherit;
}

.hc-testimonial-card-person {
	margin: 0;
	font-weight: 500;
	font-family: var(--wp--preset--font-family--be-vietnam-pro);
}

.hc-testimonial-card-role {
	margin: 0;
	opacity: 0.65;
	font-size: 13px;
}

.hc-testimonial-card-label {
	display: none;
}

/*
 * Final CTA on home — soft tint card on cream (prototype: section before footer).
 *
 * Live hybrid content often still has has-primary-background-color (same as footer).
 * Override ANY .hc-pattern-final-cta under .hc-home-page so CTA never merges into footer,
 * even when page content was not reseeded.
 */
.hc-home-page .hc-pattern-final-cta,
.hc-home-page .hc-pattern-final-cta.has-primary-background-color,
.hc-home-page .hc-pattern-final-cta.has-background,
.hc-home-section--final-cta.hc-pattern-final-cta,
.hc-home-section--final-cta .hc-pattern-final-cta {
	/* Beat WP global .has-primary-background-color */
	background: var(--wp--preset--color--base) !important;
	background-color: var(--wp--preset--color--base) !important;
	color: var(--wp--preset--color--primary) !important;
	padding-block: clamp(48px, 8vw, 96px) !important;
	padding-inline: clamp(16px, 4vw, 32px) !important;
	margin-block: 0 !important;
	/* Kill grain overlay that can look like dark wash */
	isolation: auto;
}

.hc-home-page .hc-pattern-final-cta.has-hercare-grain::before,
.hc-home-section--final-cta.hc-pattern-final-cta.has-hercare-grain::before {
	opacity: 0.04;
	/* keep subtle grain on cream, not a dark film */
}

/*
 * Prototype final CTA uses ~max-w-7xl (wide), not content 720px.
 * Outer band is full-bleed cream; inner card spans the wide measure.
 */
.hc-home-page .hc-pattern-final-cta .hc-final-cta-inner,
.hc-home-section--final-cta .hc-final-cta-inner,
.hc-home-section--final-cta.hc-pattern-final-cta .hc-final-cta-inner {
	max-width: min(100%, var(--wp--style--global--wide-size, var(--hercare-max, 1280px))) !important;
	width: 100% !important;
	margin-inline: auto !important;
	padding: clamp(40px, 6vw, 72px) clamp(28px, 5vw, 64px) !important;
	border-radius: 28px;
	background: color-mix(in srgb, var(--wp--preset--color--tint) 40%, var(--wp--preset--color--surface)) !important;
	background-color: color-mix(in srgb, var(--wp--preset--color--tint) 40%, var(--wp--preset--color--surface)) !important;
	text-align: center;
	box-shadow: var(--hercare-shadow-soft, 0 14px 40px rgb(36 56 43 / 0.1));
}

/* Undo generic 720px cap for home final CTA card */
.hc-home-page .hc-final-cta-inner,
.hc-home-section--final-cta .hc-final-cta-inner {
	max-width: min(100%, var(--wp--style--global--wide-size, var(--hercare-max, 1280px))) !important;
}

.hc-home-page .hc-pattern-final-cta .hc-final-cta-inner :is(h2, p, .hc-pattern-eyebrow),
.hc-home-page .hc-pattern-final-cta .hc-final-cta-inner :is(.has-surface-color, .has-brass-color),
.hc-home-section--final-cta .hc-final-cta-inner :is(h2, p, .hc-pattern-eyebrow) {
	color: var(--wp--preset--color--primary) !important;
	margin-inline: auto;
}

.hc-home-page .hc-pattern-final-cta .hc-final-cta-inner .hc-pattern-eyebrow,
.hc-home-page .hc-pattern-final-cta .hc-final-cta-inner .has-brass-color {
	color: var(--wp--preset--color--accent-strong, #a85f3c) !important;
}

.hc-home-page .hc-pattern-final-cta .hc-pattern-actions,
.hc-home-section--final-cta .hc-pattern-actions {
	justify-content: center;
}

/* Non-home final CTA: dark band, light body copy */
body:not(:has(.hc-home-page)) .hc-pattern-final-cta p:not(.hc-pattern-eyebrow),
.hc-service-page .hc-pattern-final-cta p:not(.hc-pattern-eyebrow),
.hc-content-page .hc-pattern-final-cta p:not(.hc-pattern-eyebrow) {
	color: var(--wp--preset--color--surface);
}

/* Footer stays primary; explicit top edge after cream CTA */
.hc-home-page ~ .wp-block-template-part .hc-site-footer,
main.hc-home-page ~ footer .hc-site-footer,
.wp-site-blocks > footer.wp-block-template-part .hc-site-footer {
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--surface) 16%, transparent);
}

/* -------------------------------------------------------------------------- */
/* Detail / service / dashboard (preserved, refined)                            */
/* -------------------------------------------------------------------------- */

.hc-content-expert-specialties,
.hc-content-workshop-speaker,
.hc-content-article-takeaways,
.hc-content-article-author,
.hc-content-related-articles,
.hc-content-expert-related,
.hc-content-expert-workshops,
.hc-content-workshop-overview,
.hc-content-workshop-agenda,
.hc-content-workshop-registration,
.hc-content-related-workshops,
.hc-content-expert-experience,
.hc-content-article-featured,
.hc-service-why-consultation {
	padding-block: clamp(48px, 7vw, 96px);
}

.hc-content-article-pagination {
	margin-top: var(--wp--preset--spacing--7, 48px);
}

.hc-detail-pill-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--3, 12px);
	margin: var(--wp--preset--spacing--6, 32px) 0 0;
	padding: 0;
	list-style: none;
}

.hc-detail-pill-list li {
	margin: 0;
	padding: var(--wp--preset--spacing--4, 16px);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--primary) 14%, transparent);
	border-radius: 16px;
}

.hc-content-article-author {
	padding: clamp(28px, 5vw, 48px);
	border-radius: 20px;
}

.hc-form-slot-inner .wp-block-shortcode {
	margin-top: var(--wp--preset--spacing--6, 32px);
}

.hc-service-page > * + *,
.hc-member-dashboard > * + * {
	margin-block-start: 0;
}

.hc-consultation-hero,
.hc-referral-hero,
.hc-dashboard-welcome,
.hc-service-reassurance,
.hc-referral-proof,
.hc-referral-testimonial,
.hc-referral-benefits {
	padding-block: clamp(64px, 9vw, 120px);
}

.hc-consultation-hero-note,
.hc-dashboard-widget {
	min-height: 100%;
	padding: clamp(24px, 4vw, 40px);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--primary) 14%, transparent);
	border-radius: 20px;
	background: var(--wp--preset--color--surface, #edfdf1);
}

.hc-consultation-hero .has-display-font-size,
.hc-consultation-hero h1 {
	max-width: 14ch;
}

.hc-service-trust {
	padding-block: clamp(28px, 4vw, 40px) !important;
}

.hc-service-trust p {
	max-width: 48ch;
	margin-inline: auto;
}

.hc-service-why-consultation {
	padding-block: clamp(48px, 7vw, 88px);
	text-align: center;
}

.hc-service-why-consultation h2,
.hc-service-why-consultation p {
	max-width: 40ch;
	margin-inline: auto;
}

.hc-service-form-section {
	padding-block: clamp(64px, 9vw, 120px);
}

.hc-service-form-card {
	width: min(100%, 720px) !important;
	max-width: 720px !important;
	margin-inline: auto !important;
	padding: clamp(28px, 5vw, 56px);
	border-radius: 24px;
	background: var(--wp--preset--color--surface);
	box-sizing: border-box;
}

.hc-service-form-card .hc-pattern-eyebrow,
.hc-service-form-card h2,
.hc-service-form-card > p {
	max-width: none;
}

.hc-service-reassurance {
	text-align: center;
}

.hc-service-reassurance h2,
.hc-service-reassurance p {
	max-width: 40ch;
	margin-inline: auto;
}

.hc-service-form-card > :last-child,
.hc-referral-proof > :last-child,
.hc-service-reassurance > :last-child,
.hc-referral-testimonial > :last-child {
	margin-bottom: 0;
}

.hc-service-form-feedback:empty {
	display: none;
}

.hc-referral-benefit-grid,
.hc-dashboard-widget-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--5, 24px);
	padding-block: clamp(32px, 5vw, 72px) clamp(64px, 9vw, 120px);
}

.hc-referral-benefit-grid > .wp-block-column,
.hc-dashboard-widget-grid > .wp-block-group {
	min-width: 0;
	margin: 0;
}

.hc-dashboard-widget-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hc-dashboard-widget-grid > .wp-block-group:last-child {
	grid-column: span 2;
}

.hc-dashboard-widget :is(h2, p) {
	margin-top: 0;
}

.hc-dashboard-widget p:last-child {
	margin-bottom: 0;
}

.hc-pattern-section-heading {
	padding-bottom: var(--wp--preset--spacing--7, 48px);
}

.hc-pattern-testimonial .hc-testimonial-media {
	grid-column: span 5;
}

.hc-pattern-testimonial .hc-testimonial-copy {
	grid-column: span 7;
}

.hc-testimonial-portrait img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

.hc-testimonial-quote {
	margin: 0;
	border-left: 2px solid var(--wp--preset--color--brass);
	padding-left: var(--wp--preset--spacing--5, 24px);
}

.hc-testimonial-quote p {
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	line-height: 1.35;
}

.hc-testimonial-quote cite {
	display: block;
	margin-top: var(--wp--preset--spacing--5, 24px);
	font-family: var(--wp--preset--font-family--be-vietnam-pro);
	font-size: 14px;
	font-style: normal;
}

.hc-form-slot-inner {
	max-width: 720px;
}

/* Default (non-home) final CTA copy width */
.hc-pattern-final-cta:not(.hc-home-page .hc-pattern-final-cta):not(.hc-home-section--final-cta) .hc-final-cta-inner {
	max-width: 720px;
}

.hc-pattern-form-slot {
	overflow: hidden;
}

.hc-plugin-slot--unavailable {
	padding: 20px 24px;
	border: 1px dashed color-mix(in srgb, var(--wp--preset--color--primary) 28%, transparent);
	border-radius: 16px;
	background: color-mix(in srgb, var(--wp--preset--color--surface) 70%, transparent);
	color: var(--wp--preset--color--on-surface-variant, #424843);
}

/* Overflow safety */
.hc-expert-card,
.hc-workshop-card,
.hc-article-card,
.hc-testimonial-card,
.hc-expert-card-body,
.hc-workshop-card-body,
.hc-article-card-body,
.hc-testimonial-card-body {
	min-width: 0;
	overflow-wrap: anywhere;
}

/* -------------------------------------------------------------------------- */
/* Responsive                                                                   */
/* -------------------------------------------------------------------------- */

@media (max-width: 1023px) {
	.hc-query-section .wp-block-post-template {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hc-pattern-grid {
		grid-template-columns: repeat(8, minmax(0, 1fr));
	}

	.hc-pattern-grid > .wp-block-column,
	.hc-pattern-grid > .hc-content-about-story-media,
	.hc-pattern-grid > .hc-content-about-story-copy,
	.hc-pattern-grid > .hc-consultation-hero-copy,
	.hc-pattern-grid > .hc-consultation-hero-aside,
	.hc-pattern-grid > .hc-testimonial-media,
	.hc-pattern-grid > .hc-testimonial-copy,
	.hc-pattern-grid > .hc-hero-copy,
	.hc-pattern-grid > .hc-hero-media-column,
	.hc-pattern-hero .hc-hero-copy,
	.hc-pattern-testimonial .hc-testimonial-media,
	.hc-pattern-hero .hc-hero-media-column,
	.hc-pattern-testimonial .hc-testimonial-copy {
		grid-column: span 8;
	}

	.hc-principles-list {
		grid-template-columns: 1fr;
	}

	.hc-home-topic-list,
	.hc-topic-list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.hc-footer-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 780px) {
	.hc-consultation-hero-copy,
	.hc-consultation-hero-aside {
		grid-column: span 12;
	}

	.hc-referral-benefit-grid,
	.hc-dashboard-widget-grid {
		grid-template-columns: 1fr;
	}

	.hc-dashboard-widget-grid > .wp-block-group:last-child {
		grid-column: auto;
	}
}

@media (max-width: 767px) {
	.hc-query-section,
	.hc-pattern-section {
		padding-block: 64px;
	}

	.hc-query-section .wp-block-post-template {
		grid-template-columns: 1fr;
	}

	.hc-home-topic-list,
	.hc-topic-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hc-pattern-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 32px;
	}

	.hc-pattern-grid > .wp-block-column,
	.hc-pattern-grid > .hc-content-about-story-media,
	.hc-pattern-grid > .hc-content-about-story-copy,
	.hc-pattern-grid > .hc-consultation-hero-copy,
	.hc-pattern-grid > .hc-consultation-hero-aside,
	.hc-pattern-grid > .hc-testimonial-media,
	.hc-pattern-grid > .hc-testimonial-copy,
	.hc-pattern-grid > .hc-hero-copy,
	.hc-pattern-grid > .hc-hero-media-column,
	.hc-pattern-hero .hc-hero-copy,
	.hc-pattern-hero .hc-hero-media-column,
	.hc-pattern-testimonial .hc-testimonial-media,
	.hc-pattern-testimonial .hc-testimonial-copy {
		grid-column: 1 / -1;
	}

	.hc-hero-proof,
	.hc-pattern-hero .hc-hero-media-column > .hc-hero-proof {
		max-width: 190px;
		left: 6%;
		bottom: 6%;
		margin: 0 !important;
		padding: 14px 16px !important;
	}

	.hc-hero-media .hc-hero-proof {
		left: auto;
		bottom: auto;
		margin: 0 0 6% 6% !important;
	}

	.hc-home-trust-list {
		gap: 16px !important;
	}

	.hc-home-trust-list p {
		white-space: normal;
		font-size: 18px;
	}

	.hc-detail-pill-list {
		grid-template-columns: 1fr;
	}

	.hc-article-card--featured {
		grid-template-columns: 1fr;
	}

	.hc-site-header > .hc-header-inner,
	.hc-site-header .hc-header-inner {
		flex-wrap: nowrap;
		gap: 8px;
		padding-block: 10px;
		min-height: 64px;
		max-width: 100%;
		overflow: hidden;
	}

	.hc-site-header .hc-site-brand {
		min-width: 0;
		flex: 1 1 auto;
		font-size: 18px;
	}

	.hc-primary-navigation {
		flex: 0 0 auto;
		justify-content: flex-end;
		margin-left: 0;
	}

	/* Long English CTA overflows 390px with brand + hamburger — hide on small phones. */
	.hc-header-cta {
		display: none !important;
	}

	.hc-primary-navigation .wp-block-navigation__responsive-container-open,
	.hc-primary-navigation .wp-block-navigation__responsive-container-close {
		display: flex !important;
		align-items: center;
		justify-content: center;
		min-width: 44px;
		min-height: 44px;
		padding: 10px;
	}

	.hc-primary-navigation .wp-block-navigation__responsive-container:not(.is-menu-open) {
		display: none !important;
	}

	.hc-primary-navigation .wp-block-navigation__responsive-container.is-menu-open {
		display: block !important;
		background: var(--wp--preset--color--base);
	}

	.hc-primary-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
		display: block !important;
		padding: 48px 24px;
	}

	.hc-primary-navigation .wp-block-navigation__responsive-dialog,
	.hc-primary-navigation .wp-block-navigation__responsive-close {
		display: block;
	}

	.hc-header-cta .wp-block-button__link {
		padding-inline: 16px;
		font-size: 14px;
	}

	/* Query grids collapse on tablet/phone. */
	.hc-query-section .wp-block-post-template {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hc-footer-grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.hc-footer-legal {
		align-items: flex-start;
	}

	.hc-pattern-section h1 {
		max-width: none;
	}
}

/* -------------------------------------------------------------------------- */
/* Motion: scroll reveal, sticky header polish                                  */
/* -------------------------------------------------------------------------- */

.hc-reveal {
	opacity: 0;
	transform: translateY(2rem);
	transition:
		opacity 900ms cubic-bezier(0.16, 1, 0.3, 1),
		transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
	will-change: opacity, transform;
}

.hc-reveal.is-revealed {
	opacity: 1;
	transform: translateY(0);
}

.hc-site-header.hc-header-enhanced,
header.hc-header-enhanced {
	transition:
		box-shadow 220ms ease,
		padding-block 220ms ease,
		backdrop-filter 220ms ease,
		background-color 220ms ease;
}

.hc-site-header.hc-header-enhanced.is-scrolled,
header.hc-header-enhanced.is-scrolled,
.wp-block-template-part.hc-header-enhanced.is-scrolled,
header.wp-block-template-part.is-scrolled {
	box-shadow: 0 10px 30px rgb(36 56 43 / 0.1);
	background: color-mix(in srgb, var(--wp--preset--color--surface, #edfdf1) 97%, #fff);
}

/* Card/image hover lift — reinforce prototype micro-interactions. */
.hc-expert-card,
.hc-workshop-card,
.hc-article-card {
	transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hc-expert-card:hover,
.hc-workshop-card:hover,
.hc-article-card:hover {
	transform: translateY(-2px);
}

.hc-expert-card-image img,
.hc-workshop-card-image img,
.hc-article-card-image img {
	transform: scale(1);
	transform-origin: center center;
}

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

	.hc-reveal {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}

	.hc-home-topic-list a,
	.hc-topic-list a,
	.hc-expert-card,
	.hc-workshop-card,
	.hc-article-card,
	.hc-expert-card-image img,
	.hc-workshop-card-image img,
	.hc-article-card-image img,
	.hc-home-trust-list,
	.hc-site-header.hc-header-enhanced,
	header.hc-header-enhanced {
		transition: none !important;
	}

	.hc-home-topic-list a:hover,
	.hc-topic-list a:hover,
	.hc-expert-card:hover,
	.hc-workshop-card:hover,
	.hc-article-card:hover {
		transform: none !important;
	}

	.hc-expert-card:hover .hc-expert-card-image img,
	.hc-workshop-card:hover .hc-workshop-card-image img,
	.hc-article-card:hover .hc-article-card-image img {
		transform: none !important;
	}
}
