/*
Theme Name: HBA – Heal By Acupuncture
Theme URI: http://localhost/hba
Author: Heal By Acupuncture
Description: Custom block theme for Heal By Acupuncture. All content is edited with the Gutenberg block editor; global styles live in theme.json.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.0
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hba
*/

/*
 * Keep this file small. Colors, fonts, sizes, spacing and element styles
 * belong in theme.json. Add CSS here only for things theme.json cannot express.
 */

/* ==========================================================================
   Type scale: exact at 1920px (the design), a little smaller on laptops,
   unchanged minimums on phones. Overrides the fluid values generated from theme.json.
   ========================================================================== */
:root:root {
	--wp--preset--font-size--small: clamp(15px, calc(3.6px + 0.75vw), 18px);
	--wp--preset--font-size--medium: clamp(15px, calc(4.0px + 0.833vw), 20px);
	--wp--preset--font-size--base: clamp(16px, calc(4.4px + 0.917vw), 22px);
	--wp--preset--font-size--lead: clamp(17px, calc(4.8px + 1.0vw), 24px);
	--wp--preset--font-size--eyebrow: clamp(15px, calc(5.0px + 1.042vw), 25px);
	--wp--preset--font-size--card-title: clamp(22px, calc(5.8px + 1.208vw), 29px);
	--wp--preset--font-size--card-quote: clamp(24px, calc(7.2px + 1.5vw), 36px);
	--wp--preset--font-size--quote: clamp(24px, calc(8.0px + 1.667vw), 40px);
	--wp--preset--font-size--step-title: clamp(28px, calc(8.8px + 1.833vw), 44px);
	--wp--preset--font-size--subheading: clamp(28px, calc(9.6px + 2.0vw), 48px);
	--wp--preset--font-size--section-sm: clamp(34px, calc(12.0px + 2.5vw), 60px);
	--wp--preset--font-size--section: clamp(38px, calc(14.4px + 3.0vw), 72px);
	--wp--preset--font-size--statement: clamp(36px, calc(15.2px + 3.167vw), 76px);
	--wp--preset--font-size--display: clamp(46px, calc(21.0px + 4.375vw), 105px);
}

/* ---------- Block style: Separator "Accent" (short maroon line under headings) ---------- */
.wp-block-separator.is-style-hba-accent {
	width: 72px;
	max-width: 72px;
	border: 0;
	border-top: 2px solid var(--wp--preset--color--primary);
	margin-left: 0;
	margin-right: auto;
	opacity: 1;
}
.has-text-align-center + .wp-block-separator.is-style-hba-accent,
.wp-block-separator.is-style-hba-accent.aligncenter {
	margin-left: auto;
}

/* ---------- Block style: Separator "Dot" (line with a centered dot) ---------- */
.wp-block-separator.is-style-hba-dot {
	position: relative;
	border: 0;
	border-top: 1px solid var(--wp--preset--color--primary);
	opacity: 1;
	overflow: visible;
}
.wp-block-separator.is-style-hba-dot::after {
	content: "";
	position: absolute;
	left: 50%;
	top: -5px;
	width: 9px;
	height: 9px;
	margin-left: -4.5px;
	border-radius: 50%;
	background: var(--wp--preset--color--primary);
}

/* ---------- Block style: Paragraph "Eyebrow" (small label above headings) ---------- */
p.is-style-hba-eyebrow {
	font-family: var(--wp--preset--font-family--inter);
	font-size: var(--wp--preset--font-size--eyebrow);
	font-weight: 500;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	color: var(--wp--preset--color--contrast);
	margin-bottom: var(--wp--preset--spacing--20);
}

/* ---------- Buttons: soft shadow from the design ---------- */
.wp-block-button:not(.is-style-outline) .wp-block-button__link {
	box-shadow: 0 4px 10px rgba(102, 0, 51, 0.22);
}
.wp-block-button__link {
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* ---------- Layout: full-width sections sit flush (they carry their own padding) ---------- */
.wp-site-blocks > * {
	margin-block-start: 0;
}
/* Decorations may bleed past the right edge (e.g. the Contact branch) without causing sideways scroll */
.hba-sections.wp-block-post-content {
	overflow-x: clip;
}
.hba-sections.wp-block-post-content > * {
	margin-block-start: 0;
	margin-block-end: 0;
}

/* ---------- Header ---------- */
/* Sticky header: stick the template-part wrapper (the inner group can only stick inside it) */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 50;
}
.admin-bar .wp-site-blocks > header.wp-block-template-part {
	top: var(--wp-admin--admin-bar--height, 0);
}
/* On phones WordPress's admin bar scrolls away (it isn't fixed), so no offset there */
@media (max-width: 600px) {
	.admin-bar .wp-site-blocks > header.wp-block-template-part {
		top: 0;
	}
}
.hba-site-header__inner {
	gap: var(--wp--preset--spacing--30);
}
.hba-site-header__logo {
	flex-shrink: 0;
}
.hba-site-header__logo img {
	width: clamp(84px, 6.8vw, 130px);
	height: auto;
}
.hba-site-header__cta .wp-block-button__link {
	white-space: nowrap;
}

/* Main menu */
.hba-main-nav {
	--hba-nav-gap: clamp(1.25rem, 2.1vw, 2.5rem);
	gap: var(--hba-nav-gap);
}
.hba-main-nav .wp-block-navigation__container {
	gap: var(--hba-nav-gap);
}
.hba-main-nav .wp-block-navigation-item__content {
	position: relative;
	padding: 0.35em 0;
}
.hba-main-nav .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.25s ease;
}
.hba-main-nav .wp-block-navigation-item__content:hover::after,
.hba-main-nav .current-menu-item > .wp-block-navigation-item__content::after {
	transform: scaleX(1);
}
.hba-main-nav .wp-block-navigation__submenu-icon {
	width: 0.7em;
	height: 0.7em;
	margin-left: 0.35em;
}
/* Filled caret like the design (replaces core's chevron) */
.hba-main-nav .wp-block-navigation__submenu-icon svg {
	display: none;
}
.hba-main-nav .wp-block-navigation__submenu-icon::before {
	content: "";
	display: block;
	width: 0;
	height: 0;
	margin-top: 0.2em;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 6px solid currentColor;
	transition: transform 0.2s ease;
}
.hba-main-nav .has-child:hover > .wp-block-navigation__submenu-icon::before,
.hba-main-nav .wp-block-navigation__submenu-icon[aria-expanded="true"]::before {
	transform: rotate(180deg);
}

/* Dropdown (desktop) */
.hba-main-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container {
	min-width: 290px !important;
	padding: 0.6rem 0;
	border: 0 !important;
	border-radius: 10px;
	background: var(--wp--preset--color--base) !important;
	box-shadow: 0 14px 40px rgba(35, 35, 35, 0.12);
	top: calc(100% + 0.6rem);
}
.hba-main-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container::before {
	/* hover bridge so the menu doesn't close while moving the mouse down */
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -0.8rem;
	height: 0.8rem;
}
.hba-main-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 0.6rem 1.25rem;
	font-size: clamp(14px, calc(3.4px + 0.708vw), 17px);
}
.hba-main-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content::after {
	display: none;
}
.hba-main-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	background: var(--wp--preset--color--cream);
}
/* Treatments dropdown: one line per item, with the homepage service icons */
.hba-main-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container {
	width: max-content !important;
}
.hba-main-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	white-space: nowrap;
}
.hba-main-nav .wp-block-navigation__submenu-container [class*="is-icon-"] > .wp-block-navigation-item__content {
	display: flex;
	align-items: center;
	gap: 14px;
}
.hba-main-nav .wp-block-navigation__submenu-container [class*="is-icon-"] > .wp-block-navigation-item__content::before {
	content: "";
	flex: 0 0 28px;
	height: 28px;
	background-position: center;
	background-size: contain;
	background-repeat: no-repeat;
}
.hba-main-nav .is-icon-fertility > .wp-block-navigation-item__content::before { background-image: url("assets/icons/fertility.svg"); }
.hba-main-nav .is-icon-musculoskeletal > .wp-block-navigation-item__content::before { background-image: url("assets/icons/musculoskeletal.svg"); }
.hba-main-nav .is-icon-mental > .wp-block-navigation-item__content::before { background-image: url("assets/icons/mental.svg"); }
.hba-main-nav .is-icon-facial > .wp-block-navigation-item__content::before { background-image: url("assets/icons/facial.svg"); }
.hba-main-nav .is-icon-auricular > .wp-block-navigation-item__content::before { background-image: url("assets/icons/auricular.svg"); }
.hba-main-nav .is-icon-general > .wp-block-navigation-item__content::before { background-image: url("assets/icons/general.svg"); }

/* Tablet: use the hamburger up to 1099px (core switches at 600px) */
@media (min-width: 600px) and (max-width: 1099px) {
	.hba-site-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
	.hba-site-header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}
}

/* Mobile / tablet: logo left, button + hamburger right */
@media (max-width: 1099px) {
	.hba-site-header__inner .hba-main-nav {
		order: 3;
	}
	.hba-site-header .hba-site-header__inner > .hba-site-header__cta {
		margin-left: auto;
	}
	.hba-main-nav .wp-block-navigation__responsive-container-open svg {
		width: 30px;
		height: 30px;
	}
}
@media (max-width: 480px) {
	.hba-site-header__cta .wp-block-button__link {
		font-size: 14px;
		padding: 0.7em 1em;
	}
}
/* Very small phones (≤360px): keep logo, button and menu icon on one line */
@media (max-width: 360px) {
	.hba-site-header .hba-site-header__inner {
		gap: 10px;
	}
	.hba-site-header__logo img {
		width: 72px;
	}
	.hba-site-header__cta .wp-block-button__link {
		font-size: 13px;
		padding: 0.65em 0.8em;
	}
}

/* Overlay menu (open) */
.hba-main-nav .wp-block-navigation__responsive-container.is-menu-open {
	--navigation-layout-justification-setting: flex-start;
	--navigation-layout-justify: flex-start;
	--navigation-layout-align: flex-start;
	padding: var(--wp--preset--spacing--40) clamp(1.25rem, 5vw, 3rem);
	text-align: left;
}
.hba-main-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
.hba-main-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container,
.hba-main-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item,
.hba-main-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	align-items: flex-start;
}
.hba-main-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: var(--wp--preset--spacing--50);
}
.hba-main-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: 1.1rem;
}
.hba-main-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--cormorant);
	font-size: clamp(24px, calc(6.0px + 1.25vw), 30px);
	font-weight: 500;
}
.hba-main-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	padding: 0.6rem 0 0 1rem !important;
	gap: 0.6rem;
}
.hba-main-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--inter);
	font-size: clamp(14px, calc(3.4px + 0.708vw), 17px);
	font-weight: 400;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.hba-site-footer {
	margin-top: 0;
	font-size: var(--wp--preset--font-size--x-small);
}
.hba-site-footer a {
	color: inherit;
	text-decoration: none;
}
.hba-site-footer a:hover {
	color: var(--wp--preset--color--primary);
}
.hba-footer-cols.wp-block-columns {
	gap: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40);
	padding-bottom: clamp(3rem, 5.7vw, 109px);
}

/* Wordmark: HEAL / BY ACUPUNCTURE */
.hba-footer-wordmark {
	margin: 0;
	line-height: 1;
}
.hba-footer-wordmark a {
	display: inline-flex;
	flex-direction: column;
	color: var(--wp--preset--color--primary);
	font-family: var(--wp--preset--font-family--cormorant);
	text-transform: uppercase;
}
.hba-footer-wordmark__main {
	font-size: clamp(3rem, 4.5vw, 5.4rem);
	font-weight: 500;
	letter-spacing: 0.12em;
	line-height: 0.9;
}
.hba-footer-wordmark__sub {
	font-size: clamp(1.1rem, 1.5vw, 1.8rem);
	font-weight: 500;
	letter-spacing: 0.01em;
	margin-top: 0.15em;
}
.hba-site-footer .wp-block-separator.is-style-hba-accent {
	width: 120px;
	max-width: 120px;
	margin-top: var(--wp--preset--spacing--40);
	margin-bottom: var(--wp--preset--spacing--30);
}
.hba-footer-tagline {
	margin: 0;
	white-space: nowrap;
	font-family: var(--wp--preset--font-family--cormorant);
	font-size: clamp(1.4rem, 1.65vw, 2.1rem);
	font-style: italic;
	font-weight: 500;
	color: var(--wp--preset--color--primary);
	line-height: 1.2;
}

/* Column titles */
.hba-footer-title {
	display: inline-block;
	margin: 0 0 var(--wp--preset--spacing--30);
	padding-bottom: 0.7em;
	border-bottom: 2px solid var(--wp--preset--color--primary);
	min-width: 112px;
	font-size: var(--wp--preset--font-size--lead);
	font-weight: 500;
	text-transform: uppercase;
	color: var(--wp--preset--color--primary);
	line-height: 1.2;
}

/* Visit links */
.hba-footer-links {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: var(--wp--preset--font-size--medium);
}
.hba-footer-links li + li {
	margin-top: 0.75em;
}

/* Connect: social links with labels */
.hba-footer-social.wp-block-social-links {
	gap: 0.75em;
	font-size: var(--wp--preset--font-size--medium);
}
.hba-footer-social .wp-social-link {
	font-size: var(--wp--preset--font-size--medium);
}
.hba-footer-social .wp-block-social-link-anchor {
	padding: 0 !important;
	gap: 0.75em;
}
.hba-footer-social .wp-block-social-link-anchor svg {
	width: 1.35em;
	height: 1.35em;
}
.hba-site-footer .hba-footer-social .wp-social-link .wp-block-social-link-label {
	color: var(--wp--preset--color--contrast);
	font-size: 1em;
}
.hba-footer-social .wp-block-social-link-anchor:hover .wp-block-social-link-label {
	color: var(--wp--preset--color--primary);
}

/* Clinic locations */
.hba-clinics.wp-block-columns {
	gap: 0;
}
.hba-clinic + .hba-clinic {
	border-left: 1px solid var(--wp--preset--color--border-light);
	padding-left: var(--wp--preset--spacing--30);
}
.hba-clinic {
	padding-right: var(--wp--preset--spacing--30);
}
.hba-clinic__name {
	margin: 0 0 0.6em;
	font-family: var(--wp--preset--font-family--cormorant);
	font-size: clamp(1.05rem, 1.1vw, 1.35rem);
	font-weight: 700;
	color: var(--wp--preset--color--primary);
}
.hba-clinic__name a {
	display: inline-flex;
	align-items: center;
	gap: 0.55em;
	color: var(--wp--preset--color--primary);
}
.hba-clinic__name a::before {
	content: "";
	flex-shrink: 0;
	width: 1.5em;
	height: 1.5em;
	border-radius: 50%;
	background-color: rgba(102, 0, 51, 0.08);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23660033' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-6.5-5.6-6.5-11a6.5 6.5 0 0 1 13 0c0 5.4-6.5 11-6.5 11z'/%3E%3Ccircle cx='12' cy='10' r='2.3'/%3E%3C/svg%3E");
	background-size: 62%;
	background-position: center;
	background-repeat: no-repeat;
}
.hba-site-footer .hba-clinic__address {
	margin: 0;
	font-size: clamp(14px, calc(3.0px + 0.625vw), 15px);
	line-height: 1.65;
}

/* Bottom legal bar */
.hba-footer-bottom {
	border-top: 2px solid #b9b4b0;
	padding-top: clamp(1.25rem, 2vw, 38px);
	/* the design leaves the shelf of the background photo visible below the legal bar */
	padding-bottom: clamp(4rem, 12.6vw, 242px);
	font-size: var(--wp--preset--font-size--medium);
}
.hba-footer-legal {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}
.hba-footer-legal a + a {
	margin-left: 1em;
	padding-left: 1em;
	border-left: 1px solid var(--wp--preset--color--border);
}
.hba-footer-copyright {
	margin: 0;
}

/* Footer: tablet */
@media (max-width: 1099px) {
	.hba-site-footer {
		/* soften the vase photo so text stays readable when columns stack */
		box-shadow: inset 0 0 0 100vmax rgba(246, 239, 235, 0.72);
	}
	.hba-footer-cols.wp-block-columns {
		flex-wrap: wrap !important;
	}
	.hba-footer-cols > .wp-block-column {
		flex-basis: calc(50% - var(--wp--preset--spacing--40)) !important;
		flex-grow: 1;
	}
}

/* Footer: mobile */
@media (max-width: 1299px) {
	.hba-footer-tagline {
		white-space: normal;
	}
}
@media (max-width: 599px) {
	.hba-site-footer {
		background-position: 70% 100% !important;
	}
	.hba-footer-cols > .wp-block-column {
		flex-basis: 100% !important;
	}
	.hba-clinics.wp-block-columns {
		flex-wrap: wrap !important;
		gap: var(--wp--preset--spacing--30);
	}
	.hba-clinics > .hba-clinic {
		flex-basis: 100% !important;
		padding: 0;
	}
	.hba-clinic + .hba-clinic {
		border-left: 0;
		padding-left: 0;
	}
	.hba-footer-bottom .wp-block-group {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.75rem;
	}
}

/* ==========================================================================
   Section: Hero (pattern hba/hero)
   ========================================================================== */
.hba-hero {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: clamp(560px, 46.5vw, 890px);
	padding-top: var(--wp--preset--spacing--60);
	padding-bottom: var(--wp--preset--spacing--60);
}

/* Photo: fills the right ~62% and fades into the cream on its left edge */
.hba-hero > .hba-hero__media.wp-block-image {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 62%;
	max-width: none;
	margin: 0 !important;
}
.hba-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 30% center;
	border-radius: 0;
	/* Fades into the cream on the left AND at the top (as in the design) */
	-webkit-mask-image:
		linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.55) 16%, #000 36%),
		linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.6) 12%, #000 26%);
	-webkit-mask-composite: source-in;
	mask-image:
		linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.55) 16%, #000 36%),
		linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.6) 12%, #000 26%);
	mask-composite: intersect;
}

/* Text column */
.hba-hero > .hba-hero__content {
	position: relative;
	z-index: 1;
	width: 100%;
}
.hba-hero__content > * {
	max-width: min(720px, 46vw);
}
.hba-hero__eyebrow {
	margin: 0 0 var(--wp--preset--spacing--20);
	font-size: var(--wp--preset--font-size--eyebrow);
	font-weight: 500;
	color: var(--wp--preset--color--contrast);
}
.hba-hero__title.wp-block-heading {
	margin: 0;
	font-size: var(--wp--preset--font-size--display);
	line-height: 1.12;
}
.hba-hero .wp-block-separator.is-style-hba-accent {
	width: 120px;
	max-width: 120px;
	margin-top: var(--wp--preset--spacing--30);
	margin-bottom: var(--wp--preset--spacing--30);
}
.hba-hero__text {
	margin: 0;
	font-size: var(--wp--preset--font-size--base);
	line-height: 1.65;
}
.hba-hero__buttons {
	margin-top: var(--wp--preset--spacing--40);
	gap: var(--wp--preset--spacing--30);
}

/* Tablet & mobile: photo on top, text below */
@media (max-width: 1099px) {
	.hba-hero {
		min-height: 0;
		padding-top: 0;
	}
	.hba-hero__content > * {
		max-width: 720px;
	}
	.hba-hero > .hba-hero__media.wp-block-image {
		position: relative;
		width: auto;
		height: clamp(280px, 62vw, 560px);
		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-hero__media img {
		object-position: 40% 30%;
		-webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
		-webkit-mask-composite: source-over;
		mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
		mask-composite: add;
	}
}
@media (max-width: 480px) {
	.hba-hero__buttons .wp-block-button {
		flex: 1 1 100%;
	}
	.hba-hero__buttons .wp-block-button__link {
		width: 100%;
	}
}

/* ==========================================================================
   Back to top (functions.php → hba_back_to_top)
   ========================================================================== */
.hba-to-top {
	position: fixed;
	right: calc(clamp(16px, 2.5vw, 32px) + env(safe-area-inset-right, 0px));
	bottom: calc(clamp(16px, 2.5vw, 32px) + env(safe-area-inset-bottom, 0px));
	z-index: 9990;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--wp--preset--color--primary);
	color: #fff;
	box-shadow: 0 8px 24px rgba(102, 0, 51, 0.28);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translate3d(0, 16px, 0) scale(0.9);
	transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1), visibility 0.35s, background-color 0.25s ease;
}
.hba-to-top[hidden] {
	display: none;
}
.hba-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
}
.hba-to-top:hover {
	background: var(--wp--preset--color--primary-dark);
}
.hba-to-top:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 3px;
}
.hba-to-top__ring {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	transform: rotate(-90deg);
}
.hba-to-top__ring circle {
	fill: none;
	stroke: rgba(255, 255, 255, 0.85);
	stroke-width: 2;
	stroke-linecap: round;
	transition: stroke-dashoffset 0.1s linear;
}
.hba-to-top__icon {
	position: relative;
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform 0.25s ease;
}
.hba-to-top:hover .hba-to-top__icon {
	transform: translateY(-2px);
}
@media (prefers-reduced-motion: reduce) {
	.hba-to-top,
	.hba-to-top__icon,
	.hba-to-top__ring circle {
		transition: none;
	}
}

/* Footer: comfortable tap targets on touch screens */
@media (pointer: coarse) {
	.hba-footer-links a,
	.hba-footer-legal a,
	.hba-footer-social .wp-block-social-link-anchor {
		display: inline-block;
		padding-top: 6px;
		padding-bottom: 6px;
	}
	.hba-footer-links li + li {
		margin-top: 0.3em;
	}
}

/* Back to top: slightly smaller on phones */
@media (max-width: 599px) {
	.hba-to-top {
		width: 46px;
		height: 46px;
	}
}
