/**
 * HBA – Treatments page sections (patterns hba/treatments-*, hba/supporting-techniques,
 * hba/conditions-treated, hba/ready-to-begin). Measurements from the 1920px design
 * (content 1500px), scaling fluidly below. Loaded only on pages that use them.
 */

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

/* ==========================================================================
   Hero (hba/treatments-hero)
   ========================================================================== */
.hba-treat-hero {
	position: relative;
	padding-top: clamp(3rem, 4.3vw, 82px);
	padding-bottom: clamp(3rem, 4.35vw, 83px);
	overflow: hidden;
}
/* Floral side panel (decorative) */
.hba-treat-hero::before {
	content: "";
	position: absolute;
	left: 11px;
	bottom: 0;
	width: 182px;
	height: 466px;
	background: url("../images/treat-floral-panel.webp") center / 100% 100% no-repeat;
	pointer-events: none;
}
@media (max-width: 1699px) {
	.hba-treat-hero::before {
		display: none;
	}
}
.hba-treat-hero .hba-treat-hero__cols {
	position: relative;
	display: grid;
	grid-template-columns: 722fr 740fr;
	gap: clamp(1.5rem, 2vw, 38px);
	align-items: center;
	margin: 0;
}
.hba-treat-hero__cols > .wp-block-column {
	min-width: 0;
}
.hba-treat-hero .hba-treat-hero__body > * {
	margin-top: 0;
	margin-bottom: 0;
}
.hba-treat-hero p.is-style-hba-eyebrow,
.hba-conditions p.is-style-hba-eyebrow {
	margin-bottom: 0;
}
.hba-treat-hero .hba-treat-hero__title {
	margin-top: 3px;
	line-height: 1.05;
}
.hba-treat-hero .wp-block-separator.is-style-hba-accent {
	width: 122px;
	max-width: 122px;
	margin-top: clamp(1rem, 1.9vw, 36px) !important;
	margin-bottom: clamp(1rem, 1.5vw, 28px) !important;
}
.hba-treat-hero__text {
	max-width: 660px;
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.7;
}
.hba-treat-hero .hba-treat-hero__buttons {
	gap: clamp(1rem, 2.3vw, 44px);
	margin-top: clamp(1.5rem, 2.45vw, 47px) !important;
}
.hba-treat-hero__image {
	margin: 0;
}
.hba-treat-hero__image img {
	display: block;
	width: 100%;
	aspect-ratio: 740 / 541;
	object-fit: cover;
}

/* ==========================================================================
   Quick menu cards (hba/treatments-menu)
   ========================================================================== */
.hba-treat-menu {
	padding-top: clamp(2.5rem, 3.7vw, 71px);
	padding-bottom: clamp(2.5rem, 3.8vw, 73px);
}
.hba-treat-menu .hba-treat-menu__grid {
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 20px;
}
.hba-treat-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	min-height: 180px;
	padding: 28px 10px 22px;
	border: 1px solid #ecdfdd;
	border-radius: 8px;
	background: #f9f2f2;
	text-align: center;
	transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.35s ease;
}
.hba-treat-card > * {
	margin: 0;
}
.hba-treat-card__icon img {
	display: block;
	width: auto;
	height: 62px;
	max-width: 80px;
	border-radius: 0;
	object-fit: contain;
}
.hba-treat-card .hba-treat-card__label {
	margin-top: 14px;
	font-family: var(--wp--preset--font-family--cormorant);
	font-size: clamp(19px, calc(4.8px + 1.0vw), 24px);
	font-weight: 500;
	line-height: 1;
	color: #171717;
}
.hba-treat-card__label a {
	color: inherit;
	text-decoration: none;
}
/* whole card clickable */
.hba-treat-card__label a::after {
	content: "";
	position: absolute;
	inset: 0;
}
.hba-treat-card:hover,
.hba-treat-card:focus-within {
	border-color: var(--wp--preset--color--primary-soft);
	background: #fff;
	transform: translateY(-4px);
	box-shadow: 0 14px 30px rgba(102, 0, 51, 0.1);
}
.hba-treat-card:focus-within {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
}
.hba-treat-card__label a:focus-visible {
	outline: none;
}

/* ==========================================================================
   Treatment rows (hba/treatments-list)
   ========================================================================== */
.hba-treat-list {
	border-bottom: 1px solid #ccc;
}
.hba-treat-list > .hba-treatment {
	padding: 52px 0 51px;
	border-top: 1px solid #ccc;
	scroll-margin-top: 130px;
}
.hba-treat-list > .hba-treatment:first-child {
	padding-top: 63px;
}
.hba-treat-list > * {
	margin-block: 0 !important;
}
.hba-treatment .hba-treatment__grid {
	display: grid;
	grid-template-columns: 360fr 889fr minmax(245px, 251fr);
	gap: 0;
	align-items: stretch;
	margin: 0;
}
.hba-treatment__grid > .wp-block-column {
	min-width: 0;
}
.hba-treatment__image {
	margin: 0;
}
.hba-treatment__image img {
	display: block;
	width: 100%;
	aspect-ratio: 360 / 305;
	object-fit: cover;
	border-radius: 10px;
}

.hba-treatment__body {
	padding: 14px 19px 0 29px;
}
/* like the design: long text may run into the row's bottom spacing instead of pushing the row taller */
.hba-treatment .hba-treatment__grid > .hba-treatment__body {
	margin-bottom: -26px !important;
}
@media (max-width: 1299px) {
	.hba-treatment .hba-treatment__grid > .hba-treatment__body {
		margin-bottom: 0 !important;
	}
	.hba-treatment .hba-treatment__label {
		font-size: 19px;
	}
	.hba-treatment__col p {
		font-size: 16px;
	}
}
.hba-treatment__body > * {
	margin-top: 0;
	margin-bottom: 0;
}
.hba-treatment .hba-treatment__head {
	gap: 16px;
	align-items: center;
}
.hba-treatment__badge {
	flex: 0 0 44px;
	margin: 0;
}
.hba-treatment__badge img {
	display: block;
	width: 44px;
	height: 44px;
	border-radius: 0;
}
.hba-treatment .hba-treatment__title {
	margin: 0;
	font-size: clamp(1.5rem, 1.875vw, 36px);
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	color: #000;
}
.hba-treatment .hba-treatment__desc {
	max-width: 572px;
	margin-top: 12px;
	font-size: clamp(14px, calc(3.2px + 0.667vw), 16px);
	line-height: 1.625;
	color: #232323;
}

/* 3 info columns with dividers */
.hba-treatment .hba-treatment__cols {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-top: 26px;
}
.hba-treatment__cols > *,
.hba-treat-choose__options > *,
.hba-techniques-grid > *,
.hba-treat-menu__grid > * {
	margin: 0 !important;
}
.hba-treatment__col {
	padding: 0 20px;
	border-left: 1px solid #ccc;
}
.hba-treatment__col:first-child {
	padding-left: 0;
	border-left: 0;
}
.hba-treatment__col > * {
	margin: 0;
}
.hba-treatment .hba-treatment__label {
	position: relative;
	margin: 0;
	padding-bottom: 14px;
	font-size: clamp(18px, calc(4.4px + 0.917vw), 22px);
	font-weight: 500;
	line-height: 1;
	text-transform: uppercase;
	color: var(--wp--preset--color--primary);
}
.hba-treatment__label::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 44px;
	height: 2px;
	background: var(--wp--preset--color--primary);
}
.hba-treatment__col p {
	max-width: 250px;
	margin-top: 16px;
	font-size: clamp(14px, calc(3.4px + 0.708vw), 17px);
	line-height: 1.3;
	color: #383838;
}
/* Tui Na: techniques list */
.hba-treatment .hba-treatment__techniques {
	margin-top: 26px;
}
.hba-treatment__techniques > * {
	margin: 0;
}
.hba-treatment .hba-techniques {
	display: grid;
	grid-template-columns: repeat(2, 223px);
	margin: 16px 0 0;
	padding-left: 16px;
	font-size: clamp(14px, calc(3.4px + 0.708vw), 17px);
	line-height: 29px;
	color: #383838;
	grid-auto-flow: column;
	grid-template-rows: repeat(3, auto);
}
.hba-techniques li::marker {
	font-size: 0.8em;
}

/* Aside: session lengths + booking */
.hba-treatment__aside {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0;
	padding-left: 29px;
	border-left: 1px solid #ccc;
}
.hba-treatment__aside > * {
	margin: 0;
}
.hba-session {
	position: relative;
	min-height: 43px;
	padding-left: 50px;
	font-size: clamp(16px, 0.94vw, 18px);
	line-height: 1.72;
	color: #6f6f6f;
}
.hba-session + .hba-session {
	margin-top: 15px;
}
.hba-session strong {
	font-weight: 600;
	color: #000;
	white-space: nowrap;
}
.hba-session::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 43px;
	height: 43px;
	margin-top: -21.5px;
	background: url("../icons/session-initial.svg") center / contain no-repeat;
}
.hba-session.is-session-followup::before {
	background-image: url("../icons/session-followup.svg");
}
.hba-treatment .hba-treatment__buttons {
	margin-top: 33px;
}

/* Small buttons (rows + option boxes) */
.hba-button-sm .wp-block-button__link {
	padding: 0.6em 1.5em;
	font-size: clamp(16px, 1.04vw, 20px);
}

/* ==========================================================================
   Not sure which treatment – two options (hba/treatments-choose)
   ========================================================================== */
.hba-treat-choose-section {
	padding-top: clamp(3rem, 6.25vw, 120px);
}
.hba-treat-choose {
	padding: clamp(2rem, 3vw, 56px) clamp(1.25rem, 2.8vw, 53px) clamp(2rem, 3vw, 58px);
	border-radius: var(--wp--custom--radius--card);
}
.hba-treat-choose > * {
	margin-top: 0;
	margin-bottom: 0;
}
.hba-treat-choose .hba-label {
	margin-bottom: 6px;
	font-size: var(--wp--preset--font-size--medium);
}
.hba-treat-choose .hba-treat-choose__title {
	max-width: 1080px;
	margin-left: auto !important;
	margin-right: auto !important;
	font-size: var(--wp--preset--font-size--section);
	line-height: 1.05;
	text-transform: uppercase;
}
.hba-treat-choose__text {
	margin-top: 22px !important;
	font-size: var(--wp--preset--font-size--medium);
}
.hba-treat-choose .wp-block-separator.is-style-hba-accent {
	width: 96px;
	max-width: 96px;
	margin: 24px auto 0 !important;
}
.hba-treat-choose .hba-treat-choose__options {
	display: grid;
	grid-template-columns: 657fr 737fr;
	margin-top: 51px;
}
.hba-option {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	column-gap: 19px;
	align-content: start;
	padding-right: 40px;
}
.hba-option + .hba-option {
	padding: 0 0 0 80px;
	border-left: 1px solid rgba(102, 0, 51, 0.2);
}
.hba-option > * {
	margin: 0 !important;
	grid-column: 2;
}
.hba-option .hba-option__icon {
	grid-column: 1;
	grid-row: 1;
	margin-top: 6px !important;
}
.hba-option__icon img {
	display: block;
	width: 44px;
	height: auto;
	border-radius: 0;
}
.hba-option .hba-option__title {
	font-size: clamp(1.5rem, 1.875vw, 36px);
	font-weight: 500;
	line-height: 1.1;
	text-transform: uppercase;
	color: #000;
}
.hba-option .hba-option__text {
	max-width: 520px;
	margin-top: 16px !important;
	font-size: clamp(14px, calc(3.2px + 0.667vw), 16px);
	line-height: 1.625;
}
.hba-option .hba-option__buttons {
	margin-top: 30px !important;
}
.hba-option .wp-block-button__link {
	padding: 0.7em 1.9em;
	font-size: clamp(15px, 0.94vw, 18px);
}

/* ==========================================================================
   Supporting techniques (hba/supporting-techniques)
   ========================================================================== */
.hba-techniques-section {
	padding-top: clamp(3rem, 6.25vw, 120px);
	padding-bottom: clamp(3rem, 6.3vw, 121px);
}
.hba-techniques-section .hba-techniques-cols {
	display: grid;
	grid-template-columns: 569fr 867fr;
	gap: clamp(1.5rem, 3.3vw, 64px);
	align-items: center;
	margin: 0;
}
.hba-techniques-cols > .wp-block-column {
	min-width: 0;
}
.hba-techniques__image {
	margin: 0;
}
.hba-techniques__image img {
	display: block;
	width: 100%;
	aspect-ratio: 569 / 681;
	object-fit: cover;
	border-radius: 999px 999px 0 0;
}
.hba-techniques__body > * {
	margin-top: 0;
	margin-bottom: 0;
}
.hba-techniques__body .wp-block-separator.is-style-hba-accent {
	width: 96px;
	max-width: 96px;
	margin: 14px 0 26px !important;
}
.hba-techniques__text {
	font-size: var(--wp--preset--font-size--small);
}
.hba-techniques-grid {
	position: relative;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin-top: 57px !important;
}
/* dividers: vertical through the middle, horizontal between rows */
.hba-techniques-grid::before {
	content: "";
	position: absolute;
	top: -2px;
	bottom: 0;
	left: 50%;
	width: 1px;
	background: #ccc;
}
.hba-techniques-grid::after {
	content: "";
	position: absolute;
	left: 17px;
	right: 17px;
	top: 50%;
	height: 1px;
	background: #ccc;
}
.hba-technique {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr);
	column-gap: 24px;
	align-content: start;
	min-height: 142px;
	padding: 6px 16px;
}
.hba-technique > * {
	margin: 0 !important;
	grid-column: 2;
}
.hba-technique .hba-technique__icon {
	grid-column: 1;
	grid-row: 1 / span 2;
	margin-top: 13px !important;
}
.hba-technique__icon img {
	display: block;
	width: 56px;
	height: 56px;
	object-fit: contain;
	border-radius: 0;
}
.hba-technique .hba-technique__title {
	font-size: clamp(1.4rem, 1.67vw, 32px);
	font-weight: 600;
	line-height: 1.25;
	text-transform: none;
}
.hba-technique .hba-technique__text {
	margin-top: 10px !important;
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.5;
}

/* ==========================================================================
   Conditions treated (hba/conditions-treated)
   ========================================================================== */
.hba-conditions {
	position: relative;
	min-height: clamp(560px, 36.5vw, 700px);
	padding-top: clamp(3rem, 4vw, 76px);
	padding-bottom: clamp(3rem, 4.4vw, 84px);
}
/* soft fade from the cream into the clinic photo on the right */
/* The photo's fade into the cream is baked into treat-conditions-fade.webp.
   On laptops the photo starts further left, so add a cream overlay behind the tags. */
@media (min-width: 1100px) and (max-width: 1699px) {
	.hba-conditions::before {
		content: "";
		position: absolute;
		inset: 0;
		background: linear-gradient(90deg, #f6efeb 0%, #f6efeb 52%, rgba(246, 239, 235, 0.88) 62%, rgba(246, 239, 235, 0) 80%);
		pointer-events: none;
	}
}
.hba-conditions__inner {
	position: relative;
	z-index: 1;
}
.hba-conditions .hba-conditions__inner > * {
	margin-top: 0;
	margin-bottom: 0;
}
.hba-conditions .hba-conditions__title {
	font-size: clamp(2.25rem, 3.33vw, 64px);
	line-height: 1;
}
.hba-conditions .hba-conditions__rule {
	width: 672px;
	max-width: 100%;
	height: 0;
	margin: 37px 0 36px !important;
	border: 0;
	border-top: 1px solid #c4bfbc;
	opacity: 1;
}
.hba-conditions .hba-conditions__list {
	display: grid;
	grid-template-columns: repeat(3, max-content);
	gap: 26px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.hba-conditions__list li {
	display: flex;
	align-items: center;
	gap: 10px;
	box-sizing: border-box;
	height: 54px;
	padding: 0 22px 0 16px;
	border: 1px solid #1a1a1a;
	border-radius: 999px;
	background: rgba(246, 239, 235, 0.9);
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1;
	color: #1a1a1a;
	white-space: nowrap;
}
.hba-conditions__list li::before {
	content: "";
	flex: 0 0 20px;
	height: 19px;
	background: url("../icons/check-badge-v2.svg") center / contain no-repeat;
}

/* ==========================================================================
   Ready to begin (hba/ready-to-begin)
   ========================================================================== */
.hba-begin-section {
	padding-top: clamp(3rem, 6.25vw, 120px);
	padding-bottom: clamp(3rem, 6.25vw, 120px);
}
.hba-begin {
	min-height: clamp(320px, 22.7vw, 435px);
	padding: clamp(2rem, 3.4vw, 65px) clamp(1.5rem, 5vw, 96px);
	border-radius: var(--wp--custom--radius--card);
}
.hba-begin > * {
	max-width: 600px;
	margin-top: 0;
	margin-bottom: 0;
}
.hba-begin h2.wp-block-heading {
	line-height: 1.1;
}
.hba-begin .wp-block-separator.is-style-hba-accent {
	width: 96px;
	max-width: 96px;
	margin: 22px 0 24px !important;
}
.hba-begin p:not(.hba-label) {
	font-size: var(--wp--preset--font-size--medium);
}
.hba-begin .wp-block-buttons {
	margin-top: 36px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1299px) {
	.hba-treatment .hba-treatment__grid {
		grid-template-columns: 300fr 680fr;
	}
	.hba-treatment__aside {
		grid-column: 2;
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		gap: 16px 32px;
		margin-top: 24px;
		padding: 20px 0 0;
		border-left: 0;
		border-top: 1px solid #ccc;
		margin-left: 29px;
	}
	.hba-session + .hba-session {
		margin-top: 0;
	}
	.hba-treatment .hba-treatment__buttons {
		margin-top: 0;
		margin-left: auto;
	}
	.hba-treat-menu .hba-treat-menu__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
@media (max-width: 1099px) {
	.hba-treat-hero .hba-treat-hero__cols,
	.hba-techniques-section .hba-techniques-cols,
	.hba-treat-choose .hba-treat-choose__options {
		grid-template-columns: minmax(0, 1fr);
	}
	.hba-treat-hero__image {
		max-width: 680px;
	}
	.hba-techniques__image {
		max-width: 440px;
		margin: 0 auto;
	}
	.hba-option + .hba-option {
		margin-top: 36px;
		padding: 36px 0 0;
		border-left: 0;
		border-top: 1px solid rgba(102, 0, 51, 0.2);
	}
	.hba-option {
		padding-right: 0;
	}
	/* photo sits centred below the tags (unfaded crop of the vase + sign) */
	.hba-conditions {
		min-height: 0;
		background-image: url("../images/treat-conditions-mobile.webp") !important;
		background-size: min(100%, 560px) auto !important;
		background-position: 50% 100% !important;
		padding-bottom: calc(min(93.4vw, 523px) + 1.5rem);
	}
	.hba-conditions .hba-conditions__list {
		grid-template-columns: repeat(2, max-content);
	}
	.hba-begin {
		background-size: auto 60% !important;
		background-position: 100% 100% !important;
		padding-bottom: clamp(10rem, 30vw, 14rem);
	}
}
@media (max-width: 781px) {
	.hba-treatment .hba-treatment__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}
	.hba-treatment__body {
		padding: 0;
	}
	.hba-treatment__aside {
		grid-column: auto;
		margin-left: 0;
		padding-left: 0;
	}
	.hba-treatment .hba-treatment__cols {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}
	.hba-treatment__col {
		padding: 0;
		border-left: 0;
	}
	.hba-treatment__col p {
		max-width: none;
	}
	/* sessions stacked on the left, full-width booking button */
	.hba-treatment .hba-treatment__aside {
		flex-direction: column;
		align-items: stretch;
		gap: 14px;
		margin-top: 8px;
		padding: 20px 0 0;
	}
	.hba-treatment .hba-treatment__buttons {
		margin: 6px 0 0;
	}
	.hba-treatment .hba-treatment__buttons .wp-block-button,
	.hba-treatment .hba-treatment__buttons .wp-block-button__link {
		width: 100%;
	}
	.hba-treatment__image img {
		aspect-ratio: 16 / 10;
	}
	.hba-treatment .hba-techniques {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.hba-treat-menu .hba-treat-menu__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}
	.hba-treat-card {
		min-height: 150px;
		padding: 22px 8px 18px;
	}
	.hba-treat-card .hba-treat-card__label {
		font-size: 20px;
	}
	.hba-techniques-grid {
		grid-template-columns: minmax(0, 1fr);
	}
	.hba-techniques-grid::before {
		display: none;
	}
	.hba-techniques-grid::after {
		display: none;
	}
	.hba-technique + .hba-technique {
		border-top: 1px solid #ccc;
	}
	.hba-technique {
		min-height: 0;
		padding: 16px 0;
	}
	.hba-conditions .hba-conditions__list {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
	}
	.hba-conditions__list li {
		height: 48px;
		font-size: 17px;
	}
	.hba-treat-choose .hba-treat-choose__title {
		font-size: clamp(1.9rem, 8vw, 2.6rem);
	}
	/* Booking options: icon on its own line above the heading, content full width */
	.hba-treat-choose .hba-option {
		grid-template-columns: minmax(0, 1fr);
	}
	.hba-treat-choose .hba-option > * {
		grid-column: 1;
	}
	.hba-treat-choose .hba-option .hba-option__icon {
		grid-row: auto;
		margin: 0 0 14px !important;
	}
	.hba-treat-choose .hba-option .wp-block-button,
	.hba-treat-choose .hba-option .wp-block-button__link {
		width: 100%;
	}
}
