/**
 * HBA – Acupuncture page styles (patterns hba/acu-*). Measured from the
 * 1920px design (content area 1500px); values scale fluidly below that.
 * Loaded only on pages that use these patterns. The request form card in
 * hba/acu-ready uses the form styles in book.css.
 */

/* Shared type ------------------------------------------------------------ */
.hba-sections .hba-acu-hero p.hba-label,
.hba-sections [class*="hba-acu-"] p.is-style-hba-eyebrow {
	margin-bottom: 0;
	line-height: 1.2;
}
[class*="hba-acu-"] .hba-acu-title {
	font-size: clamp(36px, calc(12.8px + 2.667vw), 64px);
	line-height: 1.094;
}
.hba-acu-text {
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.7;
	letter-spacing: -0.0025em;
	color: #232323;
}
.hba-acu-text + .hba-acu-text {
	margin-top: 0 !important;
}
[class*="hba-acu-"] .wp-block-separator.is-style-hba-accent {
	width: 97px;
	max-width: 97px;
}
.hba-acu-rule.wp-block-separator {
	width: 100%;
	max-width: 1500px;
	margin-left: auto !important;
	margin-right: auto !important;
	border: 0;
	border-top: 1px solid rgba(0, 0, 0, 0.2);
	opacity: 1;
}
.hba-acu-rule--strong.wp-block-separator {
	border-top: 2px solid rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   Hero (hba/acu-hero)
   ========================================================================== */
.hba-acu-hero {
	position: relative;
	padding-top: clamp(2.5rem, 2.97vw, 57px);
	padding-bottom: clamp(2.5rem, 2.97vw, 57px);
	background: #f7f1ef;
}
.hba-acu-hero::before {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 10.42vw;
	max-width: 200px;
	aspect-ratio: 200 / 513;
	background: url("../images/acu-floral.webp") left bottom / contain no-repeat;
	pointer-events: none;
}
.hba-acu-hero > * {
	position: relative;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}
.hba-acu-hero .hba-acu-hero__cols {
	display: grid;
	grid-template-columns: minmax(0, 870fr) minmax(0, 610fr);
	gap: clamp(1.25rem, 1.05vw, 20px);
	align-items: start;
	margin: 0;
}
.hba-acu-hero__cols > .wp-block-column {
	min-width: 0;
}
.hba-acu-hero__body {
	margin-top: -6px !important;
}
.hba-acu-hero__body > * {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}
.hba-sections .hba-acu-hero p.hba-label {
	font-weight: 400;
	color: #000;
}
.hba-acu-hero .hba-acu-hero__title {
	margin-top: -5px !important;
	font-size: clamp(44px, calc(19px + 3.958vw), 95px);
	line-height: 0.95;
}
.hba-acu-hero .hba-acu-hero__body > .wp-block-separator {
	width: 127px;
	max-width: 127px;
	margin-top: clamp(1rem, 1.8vw, 35px) !important;
}
.hba-acu-hero .hba-acu-hero__body > .wp-block-separator + .hba-acu-text {
	margin-top: clamp(0.6rem, 0.57vw, 11px) !important;
}
.hba-acu-hero .hba-acu-hero__body > .hba-acu-hero__buttons {
	margin-top: clamp(1.25rem, 1.35vw, 26px) !important;
}
.hba-acu-hero__image {
	margin: 0;
}
.hba-acu-hero__image img {
	display: block;
	width: 100%;
	aspect-ratio: 610 / 726;
	object-fit: cover;
	border-radius: 20px;
}

/* ==========================================================================
   Image + text rows (hba/acu-treatment, hba/acu-your-treatment)
   ========================================================================== */
.hba-acu-split--treatment {
	padding-top: clamp(3rem, 3.23vw, 62px);
	padding-bottom: clamp(3rem, 4.8vw, 92px);
}
.hba-acu-split--yours {
	padding-top: 0;
	padding-bottom: clamp(3rem, 5.5vw, 106px);
}
.hba-acu-split > * {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}
.hba-acu-split .hba-acu-split__cols {
	display: grid;
	gap: clamp(1.5rem, 2.1vw, 40px);
	align-items: center;
	margin: 0;
}
.hba-acu-split--treatment .hba-acu-split__cols {
	grid-template-columns: minmax(0, 745fr) minmax(0, 718fr);
}
.hba-acu-split--yours .hba-acu-split__cols {
	grid-template-columns: minmax(0, 780fr) minmax(0, 655fr);
	gap: clamp(1.5rem, 3.4vw, 65px);
}
.hba-acu-split__cols > .wp-block-column {
	min-width: 0;
}
.hba-acu-split__body > * {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}
.hba-acu-split__body .hba-acu-title {
	margin-top: clamp(0.5rem, 0.9vw, 17px) !important;
}
.hba-acu-split__body > .wp-block-separator {
	margin-top: clamp(1rem, 1.67vw, 32px) !important;
}
.hba-acu-split__body > .wp-block-separator + .hba-acu-text {
	margin-top: clamp(1rem, 1.35vw, 26px) !important;
}
.hba-acu-split__image {
	margin: 0;
}
.hba-acu-split__image img {
	display: block;
	width: 100%;
	object-fit: cover;
}
.hba-acu-split--treatment .hba-acu-split__image img {
	aspect-ratio: 745 / 565;
	border-radius: 16px;
}
.hba-acu-split--yours .hba-acu-split__image img {
	aspect-ratio: 655 / 657;
	border-radius: 10px;
}

/* ==========================================================================
   Traditional Chinese Medicine (hba/acu-tcm)
   ========================================================================== */
.hba-acu-tcm {
	padding-top: clamp(3rem, 3.7vw, 71px);
	padding-bottom: clamp(3rem, 2.9vw, 55px);
}
.hba-acu-tcm > * {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}
.hba-acu-tcm .hba-acu-tcm__cols {
	display: grid;
	grid-template-columns: minmax(0, 808fr) minmax(0, 597fr);
	gap: clamp(1.5rem, 4.95vw, 95px);
	align-items: end;
	margin: 0;
}
.hba-acu-tcm__cols > .wp-block-column {
	min-width: 0;
}
.hba-acu-tcm__body > * {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}
.hba-acu-tcm__body .hba-acu-title {
	margin-top: clamp(0.4rem, 0.42vw, 8px) !important;
}
.hba-acu-tcm__body > .wp-block-separator {
	margin-top: clamp(1rem, 1.05vw, 20px) !important;
}
.hba-acu-tcm__body > .wp-block-separator + .hba-acu-text {
	margin-top: clamp(0.75rem, 0.78vw, 15px) !important;
}
.hba-acu-tcm .hba-acu-logos {
	gap: 20px 46px;
	margin-top: clamp(1.25rem, 1.15vw, 22px) !important;
}
.hba-acu-logos > * {
	margin: 0 !important;
}
.hba-acu-logos img {
	display: block;
	height: auto;
	border-radius: 0;
}
.hba-acu-logos .is-doctify img { width: clamp(96px, 7.14vw, 137px); }
.hba-acu-logos .is-psa img { width: clamp(90px, 6.25vw, 120px); }
.hba-acu-logos .is-bac img { width: clamp(120px, 9.1vw, 175px); }
.hba-acu-logos .is-city img { width: clamp(125px, 9.4vw, 181px); }
.hba-acu-tcm__image {
	margin: 0;
}
.hba-acu-tcm__image img {
	display: block;
	width: 100%;
	aspect-ratio: 597 / 614;
	object-fit: cover;
	border-radius: 999px 999px 0 0;
}

/* ==========================================================================
   Supporting techniques (hba/acu-techniques)
   ========================================================================== */
.hba-acu-tech {
	padding-top: clamp(3.5rem, 4.5vw, 86px);
	padding-bottom: clamp(3.5rem, 5.5vw, 105px);
}
.hba-acu-tech > * {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}
.hba-acu-tech .hba-acu-title {
	margin-top: clamp(0.25rem, 0.2vw, 4px) !important;
}
.hba-acu-tech > .wp-block-separator.is-style-hba-accent {
	margin-top: clamp(1rem, 1.5vw, 29px) !important;
	margin-left: max(0px, (100% - 1500px) / 2) !important;
}
.hba-acu-tech > .hba-acu-tech__intro {
	box-sizing: border-box;
	padding-right: max(0px, 100% - 1210px);
	margin-top: clamp(1.25rem, 1.5vw, 29px) !important;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.61;
	color: #232323;
}
.hba-acu-tech > .hba-acu-rule {
	margin-top: clamp(1.25rem, 1.45vw, 28px) !important;
}
.hba-acu-tech > .hba-acu-rule + .hba-tech-card {
	margin-top: clamp(2.5rem, 3.7vw, 70px) !important;
}
.hba-acu-tech > .hba-tech-card + .hba-tech-card {
	margin-top: clamp(1.5rem, 2.03vw, 39px) !important;
}

/* One technique card */
.hba-tech-card {
	display: grid;
	grid-template-columns: minmax(0, 478fr) minmax(0, 915fr);
	gap: clamp(1.5rem, 1.93vw, 37px);
	padding: clamp(1.25rem, 1.93vw, 37px) clamp(1.25rem, 1.72vw, 33px);
	border: 1px solid #e4e4e4;
	border-radius: 12px;
	background: #f6efeb;
	box-shadow: 0 6px 24px rgba(35, 35, 35, 0.06);
}
.hba-tech-card > * {
	margin: 0 !important;
	min-width: 0;
}
.hba-tech-card.is-reversed {
	grid-template-columns: minmax(0, 915fr) minmax(0, 478fr);
}
.hba-tech-card.is-reversed > .hba-tech-card__image {
	order: 2;
}
.hba-tech-card__image {
	position: relative;
	min-height: 320px;
}
.hba-tech-card__image img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 10px;
}
.hba-tech-card__body > * {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}
.hba-tech-card .hba-tech-card__title {
	margin-top: -4px !important;
	font-size: clamp(32px, calc(11.2px + 2.333vw), 56px);
	font-weight: 500;
	line-height: 1;
	text-transform: uppercase;
	color: #000;
}
.hba-tech-card__text {
	margin-top: clamp(0.75rem, 0.75vw, 14px) !important;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.61;
	color: #232323;
}
.hba-tech-card .hba-tech-card__cols {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0 58px;
	margin-top: clamp(1rem, 1.05vw, 20px) !important;
}
.hba-tech-card.has-wide-first .hba-tech-card__cols {
	grid-template-columns: minmax(0, 330fr) minmax(0, 256fr) minmax(0, 264fr);
	column-gap: 34px;
}
.hba-tech-card.has-wide-first .hba-tech-card__cols > .wp-block-column + .wp-block-column::before {
	left: -17px;
}
.hba-tech-card__cols > .wp-block-column {
	position: relative;
	min-width: 0;
}
.hba-tech-card__cols > .wp-block-column + .wp-block-column::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: -29px;
	border-left: 1px solid rgba(0, 0, 0, 0.2);
}
.hba-tech-card__cols > .wp-block-column > * {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}
.hba-tech-card .hba-tech-card__head {
	position: relative;
	padding-bottom: 16px;
	font-size: clamp(19px, calc(4.8px + 1vw), 24px);
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	color: var(--wp--preset--color--primary);
}
.hba-tech-card__head::after {
	content: "";
	position: absolute;
	left: -1.5px;
	bottom: 0;
	width: 74.5px;
	height: 3px;
	border-radius: 2px;
	background: var(--wp--preset--color--primary);
}
.hba-tech-card__cols > .wp-block-column > .hba-check-list,
.hba-check-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 20px !important;
	padding: 0;
	list-style: none;
}
.hba-check-list li {
	position: relative;
	margin: 0;
	padding-left: 28.5px;
	font-size: clamp(15px, calc(3.6px + 0.75vw), 18px);
	line-height: 1.17;
	color: #383838;
}
.hba-check-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.05em;
	width: 19.5px;
	height: 17px;
	background: url("../icons/acu-check.svg") left center / contain no-repeat;
}
.hba-check-list strong {
	font-weight: 600;
	color: #000;
}

/* ==========================================================================
   Ready to begin + request form (hba/acu-ready)
   ========================================================================== */
.hba-acu-ready {
	padding-top: 0;
	padding-bottom: clamp(4rem, 6.25vw, 120px);
}
.hba-acu-ready > * {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}
.hba-acu-ready .hba-acu-ready__cols {
	display: grid;
	grid-template-columns: minmax(0, 759fr) minmax(0, 702fr);
	gap: clamp(1.5rem, 2.03vw, 39px);
	align-items: start;
	max-width: 1500px;
	margin: clamp(3rem, 5.47vw, 105px) auto 0 !important;
}
.hba-acu-ready__cols > .wp-block-column {
	min-width: 0;
}
.hba-acu-ready__body > * {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}
.hba-acu-ready .hba-acu-ready__title {
	margin-top: -20px !important;
	font-size: clamp(34px, calc(10.4px + 2.167vw), 52px);
	line-height: 1.2;
}
.hba-acu-ready__text {
	margin-top: 4px !important;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.72;
	color: #232323;
}
.hba-acu-ready .hba-acu-ready__buttons {
	gap: 20px 43px;
	margin-top: 19px !important;
}
.hba-acu-ready__note {
	margin-top: 20px !important;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.72;
	color: #232323;
}
.hba-acu-ready__note a {
	color: var(--wp--preset--color--primary);
	text-underline-offset: 3px;
}
.hba-acu-ready__image {
	margin-top: 23px !important;
}
.hba-acu-ready__image img {
	display: block;
	width: 100%;
	aspect-ratio: 759 / 424;
	object-fit: cover;
	border-radius: 10px;
}

/* Buttons with an arrow after the label */
.hba-button-arrow .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
}
.hba-button-arrow .wp-block-button__link::after {
	content: "";
	flex: 0 0 21px;
	height: 14px;
	background: url("../icons/acu-arrow-white.svg") center / contain no-repeat;
	transition: transform 0.3s ease;
}
.hba-button-arrow.is-style-outline .wp-block-button__link::after {
	background-image: url("../icons/acu-arrow.svg");
}
.hba-button-arrow .wp-block-button__link:hover::after,
.hba-button-arrow .wp-block-button__link:focus-visible::after {
	transform: translateX(4px);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1399px) {
	.hba-acu-hero::before {
		display: none;
	}
}

@media (max-width: 1099px) {
	.hba-tech-card,
	.hba-tech-card.is-reversed {
		grid-template-columns: minmax(0, 1fr);
	}
	.hba-tech-card.is-reversed > .hba-tech-card__image {
		order: 0;
	}
	.hba-tech-card__image {
		min-height: 0;
	}
	.hba-tech-card__image img {
		position: static;
		aspect-ratio: 16 / 10;
		max-height: 460px;
	}
	.hba-acu-ready .hba-acu-ready__cols {
		grid-template-columns: minmax(0, 1fr);
		gap: 3rem;
	}
	.hba-acu-ready__form {
		max-width: 760px;
	}
}

@media (max-width: 899px) {
	.hba-acu-hero .hba-acu-hero__cols,
	.hba-acu-split--treatment .hba-acu-split__cols,
	.hba-acu-split--yours .hba-acu-split__cols,
	.hba-acu-tcm .hba-acu-tcm__cols {
		grid-template-columns: minmax(0, 1fr);
		gap: 2.25rem;
	}
	.hba-acu-hero__media,
	.hba-acu-tcm__media {
		width: min(100%, 560px);
	}
	.hba-acu-hero__image img {
		aspect-ratio: 4 / 4.2;
	}
	.hba-acu-split--yours .hba-acu-split__media {
		order: -1;
	}
	.hba-acu-split--treatment .hba-acu-split__cols,
	.hba-acu-split--yours .hba-acu-split__cols {
		align-items: start;
	}
	.hba-tech-card .hba-tech-card__cols,
	.hba-tech-card.has-wide-first .hba-tech-card__cols {
		grid-template-columns: minmax(0, 1fr);
		gap: 26px;
	}
	.hba-tech-card__cols > .wp-block-column + .wp-block-column::before {
		display: none;
	}
	.hba-tech-card__cols > .wp-block-column + .wp-block-column {
		padding-top: 24px;
		border-top: 1px solid rgba(0, 0, 0, 0.12);
	}
}

@media (max-width: 781px) {
	.hba-acu-text {
		font-size: 17px;
		line-height: 1.65;
	}
	.hba-acu-tcm .hba-acu-logos {
		gap: 18px 28px;
	}
	.hba-acu-ready .hba-acu-ready__buttons,
	.hba-acu-ready .hba-acu-ready__buttons .wp-block-button {
		width: 100%;
	}
	.hba-acu-ready .hba-acu-ready__buttons .wp-block-button__link {
		width: 100%;
		justify-content: center;
	}
	.hba-tech-card {
		gap: 1.25rem;
		padding: 16px 16px 22px;
	}
}

/* Mobile: a little breathing room between the "Acupuncture" label and the heading */
@media (max-width: 781px) {
	.hba-acu-hero .hba-acu-hero__title {
		margin-top: 12px !important;
	}
}

/* Stacked layout: hero photo first, above the text */
@media (max-width: 899px) {
	.hba-acu-hero .hba-acu-hero__media {
		order: -1;
	}
	.hba-acu-hero .hba-acu-hero__body {
		margin-top: 0 !important;
	}
}
