/**
 * HBA – Contact page sections (patterns hba/contact-hero, hba/contact-methods,
 * hba/clinic-locations, hba/ready-to-book, hba/discovery-call).
 * Measurements from the 1920px design (content 1500px), scaling fluidly below.
 */

/* ==========================================================================
   Hero (hba/contact-hero)
   ========================================================================== */
.hba-contact-hero {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: clamp(380px, 27.4vw, 526px);
	padding-top: clamp(2.5rem, 4vw, 60px);
	padding-bottom: clamp(2.5rem, 4vw, 60px);
	background: #eddfd7;
}
.hba-contact-hero > .hba-contact-hero__media.wp-block-image {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 57.14%;
	max-width: none;
	margin: 0 !important;
}
.hba-contact-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: right center;
	border-radius: 0;
}
.hba-contact-hero > .hba-contact-hero__content {
	position: relative;
	z-index: 1;
	width: 100%;
}
.hba-contact-hero .hba-contact-hero__content > * {
	margin-top: 0;
	margin-bottom: 0;
	max-width: min(700px, 42vw);
}
.hba-contact-hero p.is-style-hba-eyebrow {
	margin-bottom: 0;
}
.hba-contact-hero .hba-contact-hero__title {
	margin-top: 4px;
	line-height: 1;
}
.hba-contact-hero .wp-block-separator.is-style-hba-accent {
	width: 122px;
	max-width: 122px;
	margin-top: clamp(1rem, 1.7vw, 33px) !important;
}
.hba-contact-hero__text {
	margin-top: clamp(1rem, 1.65vw, 32px) !important;
	font-size: var(--wp--preset--font-size--medium);
	color: #242424;
}

/* ==========================================================================
   Ways to reach out (hba/contact-methods)
   ========================================================================== */
.hba-contact-methods {
	padding-top: clamp(3.5rem, 5.6vw, 107px);
}
.hba-contact-methods > * {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}
.hba-contact-methods p.is-style-hba-eyebrow {
	margin-bottom: 4px !important;
}
.hba-contact-methods h2.wp-block-heading {
	line-height: 1;
}
.wp-block-separator.is-style-hba-accent.hba-accent-dark {
	width: 96px;
	max-width: 96px;
	border-top-color: #232323;
}
.hba-contact-methods .wp-block-separator.is-style-hba-accent {
	margin-top: clamp(1.25rem, 2.2vw, 42px) !important;
}
.hba-contact-methods__text {
	margin-top: clamp(1rem, 1.45vw, 28px) !important;
	font-size: var(--wp--preset--font-size--base);
	color: #242424;
}
.hba-contact-methods .hba-contact-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 35px;
	margin-top: clamp(1.5rem, 1.4vw, 27px) !important;
}
.hba-contact-cards > * {
	margin: 0 !important;
}
.hba-contact-card {
	position: relative;
	display: grid;
	grid-template-columns: 66px minmax(0, 1fr);
	column-gap: 24px;
	align-content: center;
	min-height: 131px;
	padding: 20px 24px 20px 31px;
	border: 1.5px solid #ece0e6;
	border-radius: 8px;
	background: #fff;
	transition: border-color 0.3s ease, box-shadow 0.35s ease, transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.hba-contact-card > * {
	margin: 0 !important;
	grid-column: 2;
}
.hba-contact-card .hba-contact-card__icon {
	grid-column: 1;
	grid-row: 1 / span 2;
	align-self: center;
}
.hba-contact-card__icon img {
	display: block;
	width: 66px;
	height: 66px;
	border-radius: 0;
}
.hba-contact-card .hba-contact-card__label {
	align-self: end;
	font-family: var(--wp--preset--font-family--cormorant);
	font-size: clamp(19px, calc(4.48px + 0.933vw), 22.4px);
	font-weight: 500;
	line-height: 1.2;
	color: var(--wp--preset--color--primary);
}
.hba-contact-card .hba-contact-card__value {
	align-self: start;
	margin-top: 12px !important;
	font-size: clamp(15px, calc(3.48px + 0.725vw), 17.4px);
	line-height: 1.3;
	overflow-wrap: anywhere;
}
.hba-contact-card__value a {
	color: #111;
	text-decoration: none;
}
/* whole card clickable */
.hba-contact-card__value a::after {
	content: "";
	position: absolute;
	inset: 0;
}
.hba-contact-card:hover,
.hba-contact-card:focus-within {
	border-color: var(--wp--preset--color--primary-soft);
	box-shadow: 0 12px 28px rgba(102, 0, 51, 0.08);
	transform: translateY(-3px);
}
.hba-contact-card:hover .hba-contact-card__value a {
	color: var(--wp--preset--color--primary);
}

/* ==========================================================================
   Clinic locations (hba/clinic-locations)
   ========================================================================== */
.hba-clinics-section {
	padding-top: clamp(3rem, 3.6vw, 70px);
	padding-bottom: clamp(3.5rem, 5.3vw, 101px);
}
.hba-clinics-section > * {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}
.hba-clinics-section .hba-gradient-rule {
	width: min(740px, 70%);
	height: 2px;
	margin: 0 auto clamp(3rem, 3.4vw, 64px) !important;
	border: 0;
	background: linear-gradient(90deg, #e0ccd6 0%, #660033 20%, #660033 80%, #e0ccd6 100%);
	opacity: 1;
}
.hba-clinics-section p.is-style-hba-eyebrow {
	margin-bottom: 4px !important;
}
.hba-clinics-section .hba-clinics-section__title {
	font-size: clamp(2.25rem, calc(12.8px + 2.667vw), 64px);
	line-height: 1;
}
.hba-clinics-section__text {
	margin-top: clamp(1rem, 1.3vw, 25px) !important;
	font-size: var(--wp--preset--font-size--small);
}
.hba-clinics-section .hba-clinic-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 44px;
	margin-top: clamp(1.75rem, 2.5vw, 48px) !important;
}
.hba-clinic-cards > * {
	margin: 0 !important;
}
.hba-clinic-card {
	display: grid;
	grid-template-columns: 262fr 466fr;
	min-height: 300px;
	overflow: hidden;
	border: 1px solid #ccc;
	border-radius: 10px;
	background: #fff;
}
.hba-clinic-card > * {
	margin: 0 !important;
}
.hba-clinic-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 300px;
	object-fit: cover;
	border-radius: 0;
}
.hba-clinic-card .hba-clinic-card__body {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	column-gap: 16px;
	align-content: center;
	padding: 20px 33px 20px 24px;
}
.hba-clinic-card__body::before {
	content: "";
	grid-column: 1;
	grid-row: 1;
	width: 44px;
	height: 44px;
	margin-top: 4px;
	background: url("../icons/contact-pin.svg") center / contain no-repeat;
}
.hba-clinic-card__body > * {
	margin: 0 !important;
	grid-column: 2;
}
.hba-clinic-card .hba-clinic-card__name {
	grid-row: 1;
	align-self: center;
	font-size: clamp(1.5rem, calc(7.2px + 1.5vw), 36px);
	font-weight: 600;
	line-height: 1.05;
	text-transform: none;
}
.hba-clinic-card .hba-clinic-card__address {
	margin-top: 10px !important;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.56;
	color: #242424;
}
.hba-clinic-card .hba-clinic-card__buttons {
	grid-column: 1 / -1;
	gap: 14px;
	margin-top: 18px !important;
	padding-top: 24px;
	border-top: 1px solid #ccc;
}
.hba-clinic-card__buttons .wp-block-button {
	flex: 1 1 0;
}
.hba-clinic-card__buttons .wp-block-button__link {
	width: 100%;
	padding: 0.65em 0.8em;
	white-space: nowrap;
}
/* "View Location": soft pink button with an external-link icon */
.hba-button-soft .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 1px solid var(--wp--preset--color--primary);
	background: #f0e6eb;
	color: var(--wp--preset--color--primary);
	font-size: clamp(14px, calc(3.2px + 0.667vw), 16px);
	box-shadow: none !important;
}
.hba-button-soft .wp-block-button__link::after {
	content: "";
	flex: 0 0 14px;
	height: 14px;
	background: url("../icons/contact-external.svg") center / contain no-repeat;
}
.hba-button-soft .wp-block-button__link:hover {
	background: #fff;
	color: var(--wp--preset--color--primary);
}

/* Availability note pill with calendar badge */
.hba-clinics-section .hba-note {
	position: relative;
	width: fit-content;
	max-width: calc(100% - 50px);
	margin: clamp(2.5rem, 2.9vw, 56px) auto 0 !important;
	padding: 12px 24px 12px 30px;
	border: 1px solid var(--wp--preset--color--primary);
	border-radius: 999px;
	background: #fff;
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.3;
	color: #242424;
	text-transform: capitalize;
}
.hba-clinics-section .hba-note::before {
	content: "";
	position: absolute;
	left: -45px;
	top: 50%;
	width: 59px;
	height: 59px;
	margin-top: -29.5px;
	background: url("../icons/contact-calendar.svg") center / contain no-repeat;
}

/* ==========================================================================
   Ready to book – maroon band (hba/ready-to-book)
   ========================================================================== */
.hba-book-band {
	position: relative;
	z-index: 2;
	padding-top: clamp(3rem, 3.75vw, 72px);
	padding-bottom: clamp(3rem, 3.8vw, 73px);
	color: #fff;
	scroll-margin-top: 90px;
}
/* dried-flower branch drifting down into the next section (decorative) */
.hba-book-band::after {
	content: "";
	position: absolute;
	left: 63.44%;
	top: 16px;
	width: 805px;
	height: 882px;
	background: url("../images/contact-branch.webp") left top / contain no-repeat;
	pointer-events: none;
}
.hba-book-band .hba-book-band__cols {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 783fr 717fr;
	gap: 0;
	align-items: center;
	margin: 0;
}
.hba-book-band__cols > .wp-block-column {
	min-width: 0;
}
.hba-book-band__cols .wp-block-column > * {
	margin-top: 0;
	margin-bottom: 0;
}
.hba-book-band .hba-book-band__label {
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 500;
	text-transform: uppercase;
	color: #fff;
}
.hba-book-band .hba-book-band__title {
	margin-top: 10px;
	line-height: 1;
	color: #fff;
}
.hba-book-band .hba-book-band__text {
	margin-top: 18px;
	max-width: 690px;
	font-size: clamp(20px, calc(7.2px + 1.5vw), 36px);
	line-height: 1.69;
	color: #fff;
}
.hba-book-band__action {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}
.hba-button-white .wp-block-button__link {
	min-width: 255px;
	padding: 0.95em 1.6em;
	background: #fff;
	color: var(--wp--preset--color--primary);
	text-align: center;
	box-shadow: none !important;
}
.hba-button-white .wp-block-button__link:hover {
	background: var(--wp--preset--color--cream);
	color: var(--wp--preset--color--primary);
}
.hba-book-band .hba-book-band__note {
	width: 255px;
	margin-top: 16px;
	font-size: 16px;
	text-align: center;
	color: #fff;
}

/* ==========================================================================
   Discovery call (hba/discovery-call)
   ========================================================================== */
.hba-discovery {
	position: relative;
	z-index: 1;
	padding-top: clamp(3rem, 3.75vw, 72px);
	padding-bottom: clamp(3.5rem, 4.4vw, 85px);
}
.hba-discovery > * {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}
.hba-discovery h2.wp-block-heading {
	margin-top: 8px !important;
	line-height: 1;
}
.hba-discovery .wp-block-separator.is-style-hba-accent {
	width: 96px;
	max-width: 96px;
	margin-top: clamp(1.25rem, 1.8vw, 34px) !important;
}
.hba-discovery .hba-discovery__text {
	max-width: 980px;
	margin: clamp(0.9rem, 0.95vw, 18px) auto 0 !important;
	font-size: clamp(20px, calc(7.2px + 1.5vw), 36px);
	line-height: 1.69;
	color: #242424;
}
.hba-discovery .wp-block-buttons {
	margin-top: clamp(1.5rem, 1.9vw, 36px) !important;
}
.hba-button-call .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	min-width: 340px;
	justify-content: center;
}
.hba-button-call .wp-block-button__link::before {
	content: "";
	flex: 0 0 26px;
	height: 26px;
	background: url("../icons/contact-call-btn.svg") center / contain no-repeat;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1299px) {
	.hba-clinics-section .hba-clinic-cards {
		grid-template-columns: minmax(0, 1fr);
		max-width: 760px;
		margin-left: auto !important;
		margin-right: auto !important;
	}
}
@media (max-width: 1099px) {
	.hba-contact-hero {
		min-height: 0;
		padding-top: 0;
	}
	.hba-contact-hero > .hba-contact-hero__media.wp-block-image {
		position: relative;
		width: auto;
		height: clamp(240px, 50vw, 460px);
		margin-left: calc(var(--wp--style--root--padding-left) * -1) !important;
		margin-right: calc(var(--wp--style--root--padding-right) * -1) !important;
		margin-bottom: var(--wp--preset--spacing--30) !important;
	}
	.hba-contact-hero .hba-contact-hero__content > * {
		max-width: 700px;
	}
	.hba-contact-methods .hba-contact-cards {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
		max-width: 560px;
		margin-left: auto !important;
		margin-right: auto !important;
	}
	.hba-book-band .hba-book-band__cols {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
	}
	.hba-book-band::after {
		left: auto;
		right: -120px;
		top: auto;
		bottom: -140px;
		width: 320px;
		height: 350px;
		opacity: 0.55;
	}
}
@media (max-width: 599px) {
	.hba-clinic-card {
		grid-template-columns: minmax(0, 1fr);
	}
	.hba-clinic-card__image img {
		min-height: 0;
		aspect-ratio: 16 / 10;
	}
	.hba-clinic-card .hba-clinic-card__body {
		padding: 20px;
	}
	.hba-clinic-card .hba-clinic-card__buttons {
		flex-direction: column;
	}
	.hba-clinic-card__buttons .wp-block-button {
		width: 100%;
	}
	.hba-clinics-section .hba-note {
		padding-left: 36px;
		margin-left: 40px !important;
		margin-right: 0 !important;
	}
	.hba-button-call .wp-block-button__link,
	.hba-button-white .wp-block-button__link {
		min-width: 0;
		width: 100%;
	}
	.hba-book-band__action,
	.hba-book-band__action .wp-block-buttons,
	.hba-book-band__action .wp-block-button {
		width: 100%;
	}
	.hba-book-band .hba-book-band__note {
		width: 100%;
	}
	.hba-contact-card {
		grid-template-columns: 52px minmax(0, 1fr);
		column-gap: 16px;
		padding: 18px;
		min-height: 0;
	}
	.hba-contact-card__icon img {
		width: 52px;
		height: 52px;
	}
}

/* Mobile: centre the hero text block */
@media (max-width: 781px) {
	.hba-contact-hero .hba-contact-hero__content {
		text-align: center;
	}
	.hba-contact-hero .hba-contact-hero__content > * {
		margin-left: auto !important;
		margin-right: auto !important;
	}
	.hba-contact-hero .wp-block-separator.is-style-hba-accent {
		margin-left: auto !important;
		margin-right: auto !important;
	}
}
