/* ==========================================================================
   BLOCK STYLES — theme blocks (tabs, slider, accordion, hero slideshow, map,
   icon, script embed), block style variations (is-style-apex-*), and helpers
   used by the block markup that rebuilds the original pages.
   ========================================================================== */

/* ---------- Page wrapper & generic helpers ---------- */
.apex-page {
	width: 100%;
}

.apex-page .wp-block-image,
.apex-footer .wp-block-image {
	margin: 0;
}

.apex-page .wp-block-image img {
	display: block;
	height: auto;
	max-width: 100%;
}

/* Images that filled their container in the original (object-fit cover) */
.wp-block-image.apex-fill {
	height: 100%;
	width: 100%;
	line-height: 0;
}

.wp-block-image.apex-fill img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wp-block-image.is-style-apex-rounded img {
	border-radius: 15px;
}

.wp-block-image.is-style-apex-cover {
	height: 100%;
}

.wp-block-image.is-style-apex-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Group with an overlay revealed on hover (children: image + .apex-overlay) */
.is-style-apex-hover-overlay {
	position: relative;
	overflow: hidden;
}

.is-style-apex-hover-overlay > .apex-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: var(--gradient-overlay);
	opacity: 0;
	transition: opacity 0.3s ease;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: var(--wp--preset--color--white);
	padding: 2rem;
}

.is-style-apex-hover-overlay > .apex-overlay h4 {
	font-size: 1.5rem;
	font-weight: 600;
	margin-bottom: 1rem;
}

.is-style-apex-hover-overlay > .apex-overlay p {
	font-size: 1rem;
	line-height: 1.6;
	margin: 0;
}

.is-style-apex-hover-overlay > .apex-overlay.apex-overlay--reverse {
	background: var(--gradient-overlay-reverse, var(--gradient-overlay));
}

.is-style-apex-hover-overlay:hover > .apex-overlay,
.is-style-apex-hover-overlay.active > .apex-overlay {
	opacity: 1;
}

.is-style-apex-hover-overlay > .apex-overlay h3,
.is-style-apex-hover-overlay > .apex-overlay h4,
.is-style-apex-hover-overlay > .apex-overlay p {
	color: var(--wp--preset--color--white);
}

/* Cards */
.wp-block-group.is-style-apex-card {
	background: var(--wp--preset--color--white);
	border-radius: 12px;
	box-shadow: 0 4px 12px rgb(from var(--wp--preset--color--brand-700) r g b / 0.08);
}

.wp-block-group.is-style-apex-card-hover {
	background: var(--wp--preset--color--white);
	border-radius: 20px;
	box-shadow: 0 10px 30px rgb(from var(--wp--preset--color--brand-700) r g b / 0.08);
	border: 1px solid var(--wp--preset--color--gray-200);
	overflow: hidden;
	transition: all 0.3s ease;
	position: relative;
}

.wp-block-group.is-style-apex-card-hover:hover {
	transform: translateY(-8px);
	box-shadow: 0 20px 40px rgba(0, 113, 188, 0.15);
}

.wp-block-group.is-style-apex-card-hover > .apex-card-stripe {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
}

.wp-block-group.is-style-apex-card-hover > .apex-card-stripe.apex-card-stripe--reverse {
	background: linear-gradient(90deg, var(--brand-accent), var(--brand-primary));
}

.wp-block-group.is-style-apex-glass {
	background: rgb(from var(--wp--preset--color--brand-700) r g b / 0.3);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgb(from var(--wp--preset--color--white) r g b / 0.2);
	border-radius: 12px;
	box-shadow: 0 8px 32px rgb(from var(--wp--preset--color--brand-700) r g b / 0.2);
}

.wp-block-group.is-style-apex-highlight-box {
	background: var(--wp--preset--color--gray-100);
	border-left: 4px solid var(--brand-primary);
	padding: 1rem 1.5rem;
	margin: 1.5rem 0;
}

/* Badges / chips (Group or Paragraph) */
.is-style-apex-badge,
.is-style-apex-badge-lime {
	display: inline-block;
	width: auto;
	padding: 0.5rem 1rem;
	border-radius: 20px;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.2;
}

.is-style-apex-badge {
	background: var(--brand-primary);
	color: var(--wp--preset--color--white);
}

.is-style-apex-badge-lime {
	background: var(--accent-primary);
	color: var(--wp--preset--color--white);
}

.is-style-apex-chip {
	display: inline-block;
	width: auto;
	background: var(--accent-subtle);
	color: var(--accent-primary);
	padding: 0.5rem 1rem;
	border-radius: 20px;
	font-weight: 600;
	font-size: 0.95rem;
	line-height: 1.3;
}

/* Lists */
.wp-block-list.is-style-apex-plain {
	list-style: none;
	padding-left: 0;
	margin: 0;
}

.wp-block-list.is-style-apex-check,
.wp-block-list.is-style-apex-check-lime {
	list-style: none;
	padding-left: 0;
}

.wp-block-list.is-style-apex-check li,
.wp-block-list.is-style-apex-check-lime li {
	position: relative;
	padding-left: 1.5rem;
	margin-bottom: 0.5rem;
}

.wp-block-list.is-style-apex-check li::before,
.wp-block-list.is-style-apex-check-lime li::before {
	content: '✓';
	position: absolute;
	left: 0;
	font-weight: bold;
	color: var(--brand-primary);
}

.wp-block-list.is-style-apex-check-lime li::before {
	color: var(--accent-primary);
}

/* Paragraph styles */
.is-style-apex-stat {
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 0.25rem;
}

.is-style-apex-stars {
	color: var(--wp--preset--color--star);
	font-size: 2rem;
	line-height: 1;
	letter-spacing: 0.05em;
	margin-bottom: 1.5rem;
}

.is-style-apex-avatar {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: var(--gradient-brand);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--wp--preset--color--white);
	font-weight: 700;
	font-size: 1.25rem;
	margin: 0;
	flex-shrink: 0;
}

.is-style-apex-open-quote {
	font-size: 3rem;
	color: var(--accent-primary);
	line-height: 1;
	margin-bottom: 1rem;
}

/* Quote */
.wp-block-quote.is-style-apex-accent {
	border: none;
	padding-left: 1rem;
	margin: 1.5rem 0;
	font-style: italic;
	color: var(--accent-primary);
}

.wp-block-quote.is-style-apex-accent p {
	color: inherit;
	margin: 0;
}

/* Columns that stack at the original 1100px breakpoint */
@media (max-width: 1100px) {
	.wp-block-columns.is-style-apex-stack-mobile {
		flex-wrap: wrap !important;
	}

	.wp-block-columns.is-style-apex-stack-mobile > .wp-block-column {
		flex-basis: 100% !important;
	}
}

/* ---------- Buttons ---------- */
/* Buttons change colour on hover and nothing else: no underline (foundation.css underlines
   every a:hover, the footer's `.apex-footer a:hover` too), no lift, no shadow. */
.wp-block-button .wp-block-button__link:hover {
	text-decoration: none;
}

.wp-block-button.is-style-apex-primary .wp-block-button__link {
	background: var(--accent-primary);
	color: var(--wp--preset--color--white);
	border: 2px solid var(--accent-primary);
	border-radius: 8px;
	font-weight: 600;
	transition: all 0.3s ease;
}

.wp-block-button.is-style-apex-primary .wp-block-button__link:hover {
	background: var(--accent-hover);
	border-color: var(--accent-hover);
}

.wp-block-button.is-style-apex-dark .wp-block-button__link {
	background: var(--brand-primary);
	color: var(--wp--preset--color--white);
	border: 2px solid var(--brand-primary);
	border-radius: 8px;
	font-weight: 600;
	transition: all 0.3s ease;
}

/* #0d0d0d -> #1a1a1a was too subtle to read as a hover once the lift and shadow were gone */
.wp-block-button.is-style-apex-dark .wp-block-button__link:hover {
	background: var(--accent-primary);
	border-color: var(--accent-primary);
}

.wp-block-button.is-style-apex-dark-lime .wp-block-button__link {
	background: var(--wp--preset--color--brand);
	color: var(--wp--preset--color--white);
	border: 2px solid var(--wp--preset--color--accent);
	border-radius: 8px;
	font-weight: 600;
	transition: all 0.3s ease;
}

.wp-block-button.is-style-apex-dark-lime .wp-block-button__link:hover {
	background: var(--accent-primary);
}

.wp-block-button.is-style-apex-white .wp-block-button__link {
	background: var(--wp--preset--color--white);
	color: var(--brand-primary);
	border: 2px solid var(--wp--preset--color--white);
	border-radius: 8px;
	font-weight: 600;
	transition: all 0.3s ease;
}

.wp-block-button.is-style-apex-white .wp-block-button__link:hover {
	background: var(--accent-primary);
	border-color: var(--accent-primary);
	color: var(--wp--preset--color--white);
}

.wp-block-button.is-style-apex-outline .wp-block-button__link {
	background: transparent;
	color: var(--brand-primary);
	border: 2px solid var(--brand-primary);
	border-radius: 8px;
	font-weight: 600;
	transition: all 0.3s ease;
}

.wp-block-button.is-style-apex-outline .wp-block-button__link:hover {
	background: var(--brand-primary);
	color: var(--wp--preset--color--white);
}

.wp-block-button.is-style-apex-outline-white .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--white);
	border: 2px solid var(--wp--preset--color--white);
	border-radius: 8px;
	font-weight: 600;
	transition: all 0.3s ease;
}

.wp-block-button.is-style-apex-outline-white .wp-block-button__link:hover {
	background: var(--wp--preset--color--white);
	color: var(--brand-primary);
}

.wp-block-button.is-style-apex-ghost-light .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--gray-300);
	border: 1px solid var(--wp--preset--color--gray-300);
	border-radius: 8px;
	padding: 8px 16px;
	font-size: 0.9em;
	font-weight: 600;
}

.wp-block-button.is-style-apex-ghost-light .wp-block-button__link:hover {
	color: var(--wp--preset--color--white);
	border-color: var(--wp--preset--color--white);
}

/* Same 1px border and 8px corners as the ghost button it sits next to in the footer, so both are the same height */
.wp-block-button.is-style-apex-small .wp-block-button__link {
	background: var(--accent-primary);
	color: var(--wp--preset--color--white);
	border: 1px solid var(--accent-primary);
	border-radius: 8px;
	padding: 8px 16px;
	font-size: 0.9em;
	font-weight: 600;
}

.wp-block-button.is-style-apex-small .wp-block-button__link:hover {
	background: var(--accent-hover);
	border-color: var(--accent-hover);
}

/* The original .btn / .btn-primary / .cta-button hover effects for block buttons using those names */
.wp-block-button.btn-primary .wp-block-button__link,
.wp-block-button.cta-button .wp-block-button__link {
	background: var(--accent-primary);
	color: var(--wp--preset--color--white);
}

/* ---------- Details (FAQ) ---------- */
.wp-block-details.is-style-apex-faq {
	background: var(--wp--preset--color--white);
	border-radius: 12px;
	margin-bottom: 1rem;
	box-shadow: 0 2px 10px rgb(from var(--wp--preset--color--brand-700) r g b / 0.05);
	overflow: hidden;
}

.wp-block-details.is-style-apex-faq > summary {
	padding: 1.5rem;
	font-weight: 600;
	color: var(--text-primary);
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	transition: background 0.3s ease;
	list-style: none;
}

.wp-block-details.is-style-apex-faq > summary::-webkit-details-marker {
	display: none;
}

.wp-block-details.is-style-apex-faq > summary::after {
	content: '+';
	font-size: 1.5rem;
	font-weight: 400;
	line-height: 1;
	margin-left: 1rem;
}

.wp-block-details.is-style-apex-faq[open] > summary::after {
	content: '−';
}

.wp-block-details.is-style-apex-faq > summary:hover {
	background: #f8f9fa;
}

.wp-block-details.is-style-apex-faq > :not(summary) {
	padding: 0 1.5rem 1.5rem;
	color: var(--text-secondary);
	line-height: 1.7;
}

.wp-block-details.is-style-apex-faq > p:not(summary) {
	margin-bottom: 0;
}

.wp-block-details.is-style-apex-faq-plus {
	background: var(--wp--preset--color--white);
	margin-bottom: 1rem;
	border-radius: 12px;
}

.wp-block-details.is-style-apex-faq-plus > summary {
	width: 100%;
	padding: 1.5rem;
	background: transparent;
	border: none;
	text-align: left;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--text-primary);
	list-style: none;
}

.wp-block-details.is-style-apex-faq-plus > summary::-webkit-details-marker {
	display: none;
}

.wp-block-details.is-style-apex-faq-plus > summary::after {
	content: '+';
	font-size: 1.5rem;
	font-weight: 400;
	line-height: 1;
	margin-left: 1rem;
}

.wp-block-details.is-style-apex-faq-plus[open] > summary::after {
	content: '−';
}

.wp-block-details.is-style-apex-faq-plus > :not(summary) {
	padding: 0 1.5rem 1.5rem;
	color: var(--wp--preset--color--gray-500);
	line-height: 1.6;
}

.wp-block-details.is-style-apex-faq-plus > p:not(summary) {
	margin-bottom: 0;
}

.wp-block-details.is-style-apex-faq-plus > .wp-block-list {
	padding-left: 3rem;
}

/* ---------- Comparison table ---------- */
.wp-block-table.is-style-apex-comparison {
	background: var(--wp--preset--color--white);
	border-radius: 15px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgb(from var(--wp--preset--color--brand-700) r g b / 0.1);
	margin: 2rem 0 0;
}

.wp-block-table.is-style-apex-comparison table {
	border-collapse: collapse;
	width: 100%;
	border: none;
}

.wp-block-table.is-style-apex-comparison thead th {
	background: var(--brand-primary);
	color: var(--wp--preset--color--white);
	padding: 1.25rem 1rem;
	text-align: center;
	border: none;
	font-weight: 600;
}

.wp-block-table.is-style-apex-comparison thead th:first-child {
	text-align: left;
	padding-left: 2rem;
}

.wp-block-table.is-style-apex-comparison tbody td {
	border: none;
	border-bottom: 1px solid var(--wp--preset--color--gray-200);
	padding: 1.5rem 1rem;
	text-align: center;
	font-size: 1.5rem;
	vertical-align: middle;
}

.wp-block-table.is-style-apex-comparison tbody tr:last-child td {
	border-bottom: none;
}

.wp-block-table.is-style-apex-comparison tbody td:first-child {
	text-align: left;
	font-weight: 600;
	font-size: 1rem;
	color: var(--brand-primary);
	padding-left: 2rem;
	width: 50%;
}

.wp-block-table.is-style-apex-comparison .apex-yes {
	color: var(--wp--preset--color--success);
}

.wp-block-table.is-style-apex-comparison .apex-no {
	color: var(--brand-accent);
}

.wp-block-table.is-style-apex-comparison .apex-warn {
	color: #f59e0b;
}

.wp-block-table.is-style-apex-comparison .apex-col-head {
	font-size: 1rem;
	font-weight: 600;
	color: var(--brand-primary);
}

.wp-block-table.is-style-apex-comparison .apex-col-head--muted {
	color: var(--wp--preset--color--gray-500);
}

@media (max-width: 768px) {
	.wp-block-table.is-style-apex-comparison tbody td {
		padding: 1rem 0.5rem;
		font-size: 1.2rem;
	}

	.wp-block-table.is-style-apex-comparison tbody td:first-child,
	.wp-block-table.is-style-apex-comparison thead th:first-child {
		padding-left: 1rem;
		font-size: 0.85rem;
	}
}

/* ---------- Icon block ---------- */
.apex-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
	vertical-align: middle;
	flex-shrink: 0;
}

.apex-icon--circle {
	border-radius: 50%;
}

/* ---------- Script embed ---------- */
.apex-embed-script {
	width: 100%;
}

/* ---------- Map ---------- */
.apex-map {
	width: 100%;
	max-width: 800px;
	margin: 0 auto;
	background: var(--wp--preset--color--white);
	border-radius: 16px;
	box-shadow: 0 8px 30px rgb(from var(--wp--preset--color--brand-700) r g b / 0.12);
	overflow: hidden;
	position: relative;
	z-index: 1;
}

.apex-map .custom-marker {
	background: transparent;
	border: none;
}

/* ---------- Tabs ---------- */
.apex-tabs__panels > .apex-tab {
	display: none;
}

.apex-tabs__panels > .apex-tab.is-active {
	display: block;
}

.apex-tabs__nav[data-nav-align] {
	display: flex;
}

.apex-tabs[data-nav-align='center'] .apex-tabs__nav {
	justify-content: center;
}

.apex-tabs__btn {
	font-family: inherit;
	cursor: pointer;
}

/* Pill (home service cards, from sections.css .service-tab-*) */
.apex-tabs.is-style-pill,
.apex-tabs:not([class*='is-style-']) {
	margin-top: 1.5rem;
	display: flex;
	flex-direction: column;
}

.apex-tabs.is-style-pill .apex-tabs__nav,
.apex-tabs:not([class*='is-style-']) .apex-tabs__nav {
	display: flex;
	gap: 0.5rem;
	padding: 0.5rem;
	border: 2px solid var(--text-primary);
	border-radius: 50px;
	background: transparent;
	margin-bottom: 1.5rem;
	transition: border-color 0.3s ease;
}

.apex-tabs.is-style-pill .apex-tabs__nav:hover,
.apex-tabs:not([class*='is-style-']) .apex-tabs__nav:hover {
	border-color: var(--accent-primary);
}

.apex-tabs.is-style-pill .apex-tabs__btn,
.apex-tabs:not([class*='is-style-']) .apex-tabs__btn {
	flex: 1;
	padding: 0.75rem 1.5rem;
	border: none;
	border-radius: 50px;
	background: transparent;
	color: var(--text-primary);
	font-size: 0.95rem;
	font-weight: 600;
	transition: all 0.3s ease;
	white-space: nowrap;
	position: relative;
	overflow: hidden;
}

.apex-tabs.is-style-pill .apex-tabs__btn.is-active,
.apex-tabs:not([class*='is-style-']) .apex-tabs__btn.is-active {
	background: var(--accent-primary);
	color: var(--wp--preset--color--white);
	box-shadow: 0 4px 12px rgb(from var(--wp--preset--color--accent) r g b / 0.3);
}

.apex-tabs.is-style-pill .apex-tabs__btn:not(.is-active):hover,
.apex-tabs:not([class*='is-style-']) .apex-tabs__btn:not(.is-active):hover {
	background: var(--accent-subtle);
	color: var(--text-primary);
}

.apex-tabs.is-style-pill .apex-tabs__panels,
.apex-tabs:not([class*='is-style-']) .apex-tabs__panels {
	padding: 1.5rem;
	background: var(--wp--preset--color--white);
	border-radius: 12px;
}

.apex-tabs.is-style-pill .apex-tab > h4,
.apex-tabs:not([class*='is-style-']) .apex-tab > h4 {
	color: var(--text-primary);
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 1rem;
	display: flex;
	align-items: center;
	gap: 8px;
}

@media (max-width: 768px) {
	.apex-tabs.is-style-pill .apex-tabs__nav,
	.apex-tabs:not([class*='is-style-']) .apex-tabs__nav {
		gap: 0.35rem;
		padding: 0.4rem;
	}

	.apex-tabs.is-style-pill .apex-tabs__btn,
	.apex-tabs:not([class*='is-style-']) .apex-tabs__btn {
		padding: 0.6rem 1rem;
		font-size: 0.85rem;
	}

	.apex-tabs.is-style-pill .apex-tabs__panels,
	.apex-tabs:not([class*='is-style-']) .apex-tabs__panels {
		padding: 1rem;
	}
}

@media (max-width: 480px) {
	.apex-tabs.is-style-pill .apex-tabs__nav,
	.apex-tabs:not([class*='is-style-']) .apex-tabs__nav {
		flex-direction: column;
		border-radius: 16px;
	}

	.apex-tabs.is-style-pill .apex-tabs__btn,
	.apex-tabs:not([class*='is-style-']) .apex-tabs__btn {
		border-radius: 12px;
	}
}

/* Underline (about / why-choose .tab-btn) */
/* One row always: tabs shrink and wrap their label inside the tab instead of a tab dropping to a second row */
.apex-tabs.is-style-underline .apex-tabs__nav {
	display: flex;
	gap: 0.25rem;
	margin-bottom: 2rem;
	border-bottom: 2px solid var(--brand-tertiary);
	flex-wrap: nowrap;
}

.apex-tabs.is-style-underline .apex-tabs__btn {
	flex: 0 1 auto;
	padding: 1rem;
	line-height: 1.3;
	background: none;
	border: none;
	border-bottom: 3px solid transparent;
	margin-bottom: -2px;
	color: var(--text-tertiary);
	font-weight: 600;
	font-size: 1rem;
	position: relative;
	transition: all 0.3s ease;
}

.apex-tabs.is-style-underline .apex-tabs__btn.is-active {
	color: var(--text-primary);
	border-bottom-color: var(--brand-primary);
}

.apex-tabs.is-style-underline .apex-tabs__btn:hover {
	color: var(--text-primary);
}

/* Panel headings at least as large as the panel text (18px desktop, 16px phones); the H4 sits inside
   the panel's white card group, not directly in the panel */
.apex-tabs.is-style-underline .apex-tab h4 {
	font-size: 1.25rem !important;
}

@media (max-width: 768px) {
	.apex-tabs.is-style-underline .apex-tab h4 {
		font-size: 1.125rem !important;
	}
}

@media (max-width: 768px) {
	.apex-tabs.is-style-underline .apex-tabs__nav {
		gap: 0.25rem;
	}

	/* Width follows the label, so a long label ("Honest Recommendations") gets more room than a short one */
	.apex-tabs.is-style-underline .apex-tabs__btn {
		flex: 1 1 auto;
		padding: 0.75rem 0.375rem;
		font-size: 0.8rem;
	}
}

/* Equal-width underline (first-visit / city service cards) */
.apex-tabs.is-style-flex-underline .apex-tabs__nav {
	display: flex;
	border-bottom: 2px solid #f1f5f9;
	margin-bottom: 1.5rem;
}

.apex-tabs.is-style-flex-underline .apex-tabs__btn {
	flex: 1;
	padding: 0.75rem 0.5rem;
	line-height: 1.3;
	border: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	background: none;
	color: var(--wp--preset--color--gray-500);
	font-weight: 600;
	font-size: 0.9rem;
	transition: all 0.3s;
}

.apex-tabs.is-style-flex-underline .apex-tabs__btn.is-active {
	color: var(--brand-primary);
	border-bottom-color: var(--brand-primary);
}

.apex-tabs.is-style-flex-underline .apex-tabs__btn:not(.is-active):hover {
	color: var(--brand-primary);
	border-bottom-color: var(--wp--preset--color--gray-300);
}

@media (max-width: 480px) {
	.apex-tabs.is-style-flex-underline .apex-tabs__btn {
		padding: 0.625rem 0.25rem;
		font-size: 0.8rem;
	}
}

.apex-tabs.is-style-flex-underline .apex-tab > ul {
	color: var(--wp--preset--color--gray-500);
	line-height: 1.6;
	margin: 0;
	padding-left: 1rem;
}

/* Outlined pills (patient stories) */
.apex-tabs.is-style-outline-pill .apex-tabs__nav {
	display: flex;
	justify-content: center;
	margin-bottom: 3rem;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.apex-tabs.is-style-outline-pill .apex-tabs__btn {
	padding: 0.75rem 1.5rem;
	border: 2px solid var(--brand-primary);
	background: transparent;
	color: var(--brand-primary);
	border-radius: 25px;
	font-weight: 600;
	font-size: 1rem;
	transition: all 0.3s;
	margin: 0.25rem;
}

.apex-tabs.is-style-outline-pill .apex-tabs__btn.is-active {
	background: var(--brand-primary);
	color: var(--wp--preset--color--white);
}

.apex-tabs.is-style-outline-pill .apex-tabs__btn:not(.is-active):hover {
	background: var(--accent-subtle);
}

.apex-tabs.is-style-outline-pill .apex-tabs__panels {
	position: relative;
	min-height: 500px;
}

@media (max-width: 768px) {
	.apex-tabs.is-style-outline-pill .apex-tabs__panels {
		min-height: 0;
	}
}

/* Phones: keep the three story pills on one row */
@media (max-width: 480px) {
	.apex-tabs.is-style-outline-pill .apex-tabs__nav {
		gap: 0.25rem;
		margin-bottom: 2rem;
	}

	.apex-tabs.is-style-outline-pill .apex-tabs__btn {
		padding: 0.5rem 0.75rem;
		font-size: 0.8rem;
		margin: 0;
	}
}

/* Info (service page .info-tab-*) */
.apex-tabs.is-style-info {
	background: #f8f9fa;
	border-radius: 20px;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--gray-200);
}

.apex-tabs.is-style-info .apex-tabs__nav {
	display: flex;
	background: var(--gradient-hero-main);
}

.apex-tabs.is-style-info .apex-tabs__btn {
	flex: 1;
	padding: 1rem 1.5rem;
	border: none;
	background: transparent;
	color: rgb(from var(--wp--preset--color--white) r g b / 0.8);
	font-size: clamp(0.85rem, 2vw, 1rem);
	font-weight: 600;
	transition: all 0.3s ease;
	position: relative;
	border-right: 1px solid rgb(from var(--wp--preset--color--white) r g b / 0.1);
}

.apex-tabs.is-style-info .apex-tabs__btn:last-child {
	border-right: none;
}

.apex-tabs.is-style-info .apex-tabs__btn.is-active {
	color: var(--wp--preset--color--white);
	background: rgb(from var(--wp--preset--color--white) r g b / 0.1);
}

.apex-tabs.is-style-info .apex-tabs__btn:hover:not(.is-active) {
	background: rgb(from var(--wp--preset--color--white) r g b / 0.05);
	color: var(--wp--preset--color--white);
}

.apex-tabs.is-style-info .apex-tabs__panels {
	padding: 2rem;
	background: var(--wp--preset--color--white);
	min-height: 300px;
}

.apex-tabs.is-style-info .apex-tab.is-active {
	animation: fadeInUp 0.5s ease-out;
}

.apex-tabs.is-style-info .apex-tab > h3 {
	color: var(--brand-primary);
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 1.5rem;
}

/* Science (service page .science-tab-*) */
.apex-tabs.is-style-science {
	background: var(--wp--preset--color--white);
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgb(from var(--wp--preset--color--brand-700) r g b / 0.1);
}

.apex-tabs.is-style-science .apex-tabs__nav {
	display: flex;
	background: var(--gradient-hero-main);
}

.apex-tabs.is-style-science .apex-tabs__btn {
	flex: 1;
	padding: 1rem 1.5rem;
	border: none;
	background: transparent;
	color: rgb(from var(--wp--preset--color--white) r g b / 0.8);
	font-size: clamp(0.85rem, 2vw, 1rem);
	font-weight: 600;
	transition: all 0.3s ease;
	border-right: 1px solid rgb(from var(--wp--preset--color--white) r g b / 0.1);
}

.apex-tabs.is-style-science .apex-tabs__btn:last-child {
	border-right: none;
}

.apex-tabs.is-style-science .apex-tabs__btn.is-active {
	color: var(--wp--preset--color--white);
	background: rgb(from var(--wp--preset--color--white) r g b / 0.1);
}

.apex-tabs.is-style-science .apex-tabs__btn:hover:not(.is-active) {
	background: rgb(from var(--wp--preset--color--white) r g b / 0.05);
	color: var(--wp--preset--color--white);
}

.apex-tabs.is-style-science .apex-tabs__panels {
	padding: 2rem;
	min-height: 400px;
}

.apex-tabs.is-style-science .apex-tab.is-active {
	animation: fadeInUp 0.5s ease-out;
}

@media (max-width: 768px) {
	.apex-tabs.is-style-info .apex-tabs__panels,
	.apex-tabs.is-style-science .apex-tabs__panels {
		padding: 1.5rem;
	}
}

@media (max-width: 480px) {
	.apex-tabs.is-style-info .apex-tabs__nav,
	.apex-tabs.is-style-science .apex-tabs__nav {
		flex-direction: column;
	}

	.apex-tabs.is-style-info .apex-tabs__btn,
	.apex-tabs.is-style-science .apex-tabs__btn {
		border-right: none !important;
		border-bottom: 1px solid rgb(from var(--wp--preset--color--white) r g b / 0.1);
		padding: 0.75rem 1rem;
		font-size: clamp(0.8rem, 2.5vw, 0.95rem);
		text-align: left;
	}

	.apex-tabs.is-style-info .apex-tabs__btn:last-child,
	.apex-tabs.is-style-science .apex-tabs__btn:last-child {
		border-bottom: none;
	}

	.apex-tabs.is-style-info .apex-tabs__panels {
		padding: 1rem;
		min-height: auto;
	}

	.apex-tabs.is-style-science .apex-tabs__panels {
		padding: 1rem;
		min-height: 300px;
	}
}

@keyframes fadeInUp {
	from { opacity: 0; transform: translateY(20px); }
	to { opacity: 1; transform: translateY(0); }
}

/* ---------- Slider ---------- */
.apex-slider {
	position: relative;
}

.apex-slider__viewport {
	overflow: hidden;
	width: 100%;
}

.apex-slider__track {
	display: flex;
	transition: transform 0.5s ease;
	width: 100%;
}

.apex-slider__track > .apex-slide {
	min-width: 100%;
	flex: 0 0 100%;
	box-sizing: border-box;
}

.apex-slider__arrow {
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: inherit;
	transition: all 0.3s ease;
}

.apex-slider__dots {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
}

.apex-slider__dot {
	border: none;
	padding: 0;
	cursor: pointer;
	border-radius: 50%;
	transition: background 0.3s ease;
}

/* Quote box (home reviews) */
.apex-slider.is-style-quote,
.apex-slider:not([class*='is-style-']) {
	background: var(--wp--preset--color--white);
	padding: 3rem 2rem;
	border-radius: 16px;
	box-shadow: 0 4px 12px rgb(from var(--wp--preset--color--brand-700) r g b / 0.08);
}

.apex-slider.is-style-quote .apex-slider__track > .apex-slide,
.apex-slider:not([class*='is-style-']) .apex-slider__track > .apex-slide {
	min-height: 200px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.apex-slider.is-style-quote .apex-slider__arrow,
.apex-slider:not([class*='is-style-']) .apex-slider__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: var(--brand-primary);
	color: var(--wp--preset--color--white);
	border: none;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	font-size: 1.5rem;
	box-shadow: 0 2px 8px rgb(from var(--wp--preset--color--brand-700) r g b / 0.15);
	z-index: 10;
}

.apex-slider.is-style-quote .apex-slider__arrow svg,
.apex-slider:not([class*='is-style-']) .apex-slider__arrow svg {
	display: none;
}

.apex-slider.is-style-quote .apex-slider__arrow:hover,
.apex-slider:not([class*='is-style-']) .apex-slider__arrow:hover {
	background: var(--color-gray-600);
}

.apex-slider.is-style-quote .apex-slider__arrow--prev,
.apex-slider:not([class*='is-style-']) .apex-slider__arrow--prev {
	left: -15px;
}

.apex-slider.is-style-quote .apex-slider__arrow--next,
.apex-slider:not([class*='is-style-']) .apex-slider__arrow--next {
	right: -15px;
}

/* Phones: the -15px offsets put the arrows past the screen edges */
@media (max-width: 768px) {
	.apex-slider.is-style-quote .apex-slider__arrow,
	.apex-slider:not([class*='is-style-']) .apex-slider__arrow {
		width: 40px;
		height: 40px;
		font-size: 1.25rem;
	}

	.apex-slider.is-style-quote .apex-slider__arrow--prev,
	.apex-slider:not([class*='is-style-']) .apex-slider__arrow--prev {
		left: 0;
	}

	.apex-slider.is-style-quote .apex-slider__arrow--next,
	.apex-slider:not([class*='is-style-']) .apex-slider__arrow--next {
		right: 0;
	}
}

.apex-slider.is-style-quote .apex-slider__dots,
.apex-slider:not([class*='is-style-']) .apex-slider__dots {
	margin-top: 2rem;
}

.apex-slider.is-style-quote .apex-slider__dot,
.apex-slider:not([class*='is-style-']) .apex-slider__dot {
	width: 10px;
	height: 10px;
	background: var(--color-gray-300);
}

.apex-slider.is-style-quote .apex-slider__dot.is-active,
.apex-slider:not([class*='is-style-']) .apex-slider__dot.is-active {
	background: var(--brand-primary);
}

/* Cards with controls below (contact testimonials) */
.apex-slider.is-style-card {
	max-width: 1000px;
	margin: 0 auto;
}

.apex-slider.is-style-card .apex-slider__track > .apex-slide {
	padding: 0 1rem;
}

.apex-slider.is-style-card .apex-slider__controls {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 2rem;
	margin-top: 2rem;
}

.apex-slider.is-style-card .apex-slider__arrow {
	background: var(--wp--preset--color--white);
	border: 2px solid var(--accent-primary);
	color: var(--accent-primary);
	width: 50px;
	height: 50px;
	border-radius: 50%;
}

.apex-slider.is-style-card .apex-slider__arrow-text {
	display: none;
}

.apex-slider.is-style-card .apex-slider__arrow:hover {
	background: var(--accent-primary);
	color: var(--wp--preset--color--white);
}

.apex-slider.is-style-card .apex-slider__dot {
	width: 12px;
	height: 12px;
	background: var(--wp--preset--color--gray-300);
}

.apex-slider.is-style-card .apex-slider__dot.is-active {
	background: var(--accent-primary);
}

/* ---------- Footer ---------- */
.apex-footer a {
	color: var(--wp--preset--color--gray-300);
	text-decoration: none;
}

/* Text links turn lime on hover (colour only, like the buttons); the footer buttons keep their own hover */
.apex-footer a:not(.wp-block-button__link):hover {
	color: var(--accent-primary);
	text-decoration: none;
}

.apex-footer .apex-footer-logo img {
	width: 125px;
	height: auto;
	margin-bottom: 15px;
}

.apex-footer .apex-footer-links li {
	margin-bottom: 6px;
	font-size: 0.9em;
}

.apex-footer .apex-footer-links li a {
	color: var(--wp--preset--color--gray-300);
	font-size: 0.9em;
}

.apex-footer .apex-footer-note {
	color: var(--wp--preset--color--gray-400);
	font-size: 0.85em;
}

.apex-footer .apex-footer-social a {
	color: var(--wp--preset--color--gray-300);
}

.apex-footer .apex-footer-bottom a {
	color: var(--wp--preset--color--gray-400);
}

.apex-footer .apex-footer-bottom .apex-sep {
	margin: 0 8px;
}

.apex-footer p {
	margin-bottom: 0;
}

.apex-footer h4 {
	margin-bottom: 15px;
}

@media (max-width: 768px) {
	.apex-footer .apex-footer-grid {
		grid-template-columns: 1fr !important;
		text-align: center;
	}

	.apex-footer .apex-footer-social,
	.apex-footer .apex-footer-buttons {
		justify-content: center;
	}
}

/* ---------- Progress bar (home) ---------- */
.progress-indicator {
	position: fixed;
	top: 0;
	left: 0;
	height: 4px;
	width: 0;
	background: linear-gradient(90deg, var(--brand-primary), var(--accent-primary));
	z-index: 9999;
	transition: width 0.3s ease;
}

.admin-bar .progress-indicator {
	top: 32px;
}

/* ---------- Layout helpers used by generated markup ---------- */
.apex-grid-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: center;
}

.apex-grid-3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
}

.apex-grid-auto-300 {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
}

.apex-grid-auto-250 {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 2rem;
}

.apex-grid-auto-200 {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 2rem;
}

@media (max-width: 1100px) {
	.apex-grid-2 {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
}

@media (max-width: 900px) {
	.apex-grid-3 {
		grid-template-columns: 1fr;
	}
}

.apex-relative {
	position: relative;
}

.apex-abs-fill {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}

.apex-deco-circle {
	position: absolute;
	width: 120px;
	height: 120px;
	border-radius: 50%;
	opacity: 0.1;
	z-index: -1;
	background: linear-gradient(135deg, var(--brand-primary), var(--accent-primary));
}

.apex-deco-circle--tl { top: -20px; left: -20px; }
.apex-deco-circle--tr { top: -20px; right: -20px; }
.apex-deco-circle--bl { bottom: -20px; left: -20px; }
.apex-deco-circle--br { bottom: -20px; right: -20px; }
.apex-deco-circle--reverse { background: linear-gradient(135deg, var(--accent-primary), var(--brand-primary)); }

.apex-row {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.apex-row--between {
	justify-content: space-between;
}

.apex-nowrap {
	white-space: nowrap;
}

.apex-hidden-mobile {
	display: block;
}

@media (max-width: 768px) {
	.apex-hidden-mobile {
		display: none;
	}
}

/* Inline "step" numbers used inside info feature grids */
.apex-step-icon {
	background: var(--brand-accent);
	color: var(--wp--preset--color--white);
	width: 24px;
	height: 24px;
	min-width: 24px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.8rem;
	font-weight: bold;
	flex-shrink: 0;
	margin-right: 0.5rem;
	vertical-align: middle;
}

/* Editor: scoped page CSS relies on the page wrapper class, which is present in the canvas; make body-scoped hero spacing behave */
.editor-styles-wrapper .apex-page {
	margin-top: 0;
}

/* ---------- Utility classes emitted by the generators ---------- */
.apex-text-center, .apex-page .apex-text-center { text-align: center; }
/* Buttons inherit the centring the live site got from text-align (inline-block links). */
.apex-text-center .wp-block-buttons.is-layout-flex:not([class*="is-content-justification-"]) { justify-content: center; }
.apex-text-left { text-align: left; }
.apex-text-left .wp-block-buttons.is-layout-flex:not([class*="is-content-justification-"]) { justify-content: flex-start; }
.apex-text-right { text-align: right; }
.apex-mx-auto { margin-left: auto !important; margin-right: auto !important; }
.apex-inline-block { display: inline-block !important; width: auto; }
.apex-inline-flex { display: inline-flex !important; width: auto; }
.apex-overflow-hidden { overflow: hidden; }
.apex-text-shadow { text-shadow: 2px 2px 4px rgb(from var(--wp--preset--color--brand-700) r g b / 0.3); }
.apex-opacity-95 { opacity: 0.95; }
.apex-opacity-9 { opacity: 0.9; }
.apex-opacity-8 { opacity: 0.8; }
.apex-opacity-1 { opacity: 0.1; }
.apex-page .apex-max-350, .apex-max-350 { max-width: 350px; }
.apex-page .apex-max-500, .apex-max-500 { max-width: 500px; }
.apex-page .apex-max-600, .apex-max-600 { max-width: 600px; }
.apex-page .apex-max-700, .apex-max-700 { max-width: 700px; }
.apex-page .apex-max-800, .apex-max-800 { max-width: 800px; }
.apex-page .apex-max-900, .apex-max-900 { max-width: 900px; }
.apex-page .apex-max-1000, .apex-max-1000 { max-width: 1000px; }
.apex-page .apex-max-1200, .apex-max-1200 { max-width: 1200px; }
.apex-page .apex-max-1400, .apex-max-1400 { max-width: 1400px; }
.apex-page .apex-max-1650, .apex-max-1650 { max-width: 1650px; }
.apex-text-center > .apex-max-350, .apex-text-center > .apex-max-500, .apex-text-center > .apex-max-600, .apex-text-center > .apex-max-700, .apex-text-center > .apex-max-800, .apex-text-center > .apex-max-900 { margin-left: auto; margin-right: auto; }
.apex-pill { display: inline-block; width: auto; border-radius: 50px; font-weight: 700; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.5rem 1.5rem; margin-bottom: 1.5rem; line-height: 1.4; }
.apex-pos-center-70 img { object-position: center 70%; }
.apex-pos-center-40 img { object-position: center 40%; }
.apex-pos-center-85 img { object-position: center 85%; }
.apex-pos-center-top img { object-position: center top; }
.apex-pos-center-30 img { object-position: center 30%; }
.apex-pos-center-20 img { object-position: center 20%; }
.apex-pos-top img { object-position: top; }
.apex-corner-badge { position: absolute; top: 15px; right: 15px; background: var(--accent-primary); color: var(--wp--preset--color--white); padding: 0.5rem 1rem; border-radius: 8px; font-weight: 700; font-size: 0.85rem; z-index: 10; box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3); margin: 0; width: auto; }
.service-card { position: relative; }
.hero-bottom-content > .hero-text-card { width: 100%; }

/* ---------- City / First-visit hero grid (inline-styled on the live site) ---------- */
.apex-hero-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: stretch;
	max-width: 1200px;
	margin: 0 auto;
	padding: 2rem;
	position: relative;
	z-index: 2;
}

.apex-hero-grid > .apex-hero-text {
	color: var(--wp--preset--color--white);
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.apex-hero-grid > .apex-hero-text h1 {
	font-size: clamp(2rem, 4vw, 2.8rem);
	margin-bottom: 1.5rem;
	text-shadow: 2px 2px 4px rgb(from var(--wp--preset--color--brand-700) r g b / 0.3);
	font-weight: 700;
	line-height: 1.2;
	color: var(--wp--preset--color--white);
}

.apex-hero-grid > .apex-hero-text h1 mark {
	color: var(--wp--preset--color--white);
}

.apex-hero-grid > .apex-hero-text > p {
	font-size: 1.1rem;
	margin-bottom: 1.5rem;
	opacity: 0.95;
	line-height: 1.6;
	color: var(--wp--preset--color--white);
}

.apex-hero-grid .hero-images {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	height: 320px;
}

.apex-first-visit .apex-hero-grid .hero-images {
	height: 420px;
}

.apex-hero-img {
	border-radius: 15px;
	overflow: hidden;
	box-shadow: 0 15px 35px rgb(from var(--wp--preset--color--brand-700) r g b / 0.2);
	transition: transform 0.3s ease;
	height: 100%;
}

.apex-hero-img:hover {
	transform: scale(1.02);
}

.apex-hero-img .wp-block-image,
.apex-hero-img .wp-block-image img {
	height: 100%;
	width: 100%;
	object-fit: cover;
}

/* Hero pill. Its parent is a column flexbox, so size it to the text instead of stretching into a bar;
   lime so it reads on the dark hero. */
.office-badge {
	display: inline-block;
	align-self: flex-start;
	width: fit-content;
	background: var(--accent-primary);
	color: var(--brand-primary);
	padding: 0.5rem 1rem;
	border-radius: 20px;
	font-size: 0.875rem;
	font-weight: 600;
	margin-bottom: 1rem;
}

@media (max-width: 1100px) {
	.apex-hero-grid {
		grid-template-columns: 1fr;
		gap: 2rem;
		padding: 1rem;
	}

	.apex-hero-grid .hero-images,
	.apex-first-visit .apex-hero-grid .hero-images {
		height: auto;
	}

	.apex-hero-grid .hero-images > div {
		aspect-ratio: 1 / 1;
	}
}

/* Contact hero grid */
.contact-hero-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: center;
}

.contact-hero-grid .apex-hero-photo img {
	width: 100%;
	max-width: 350px;
	height: auto;
	border-radius: 20px;
	box-shadow: 0 20px 60px rgb(from var(--wp--preset--color--brand-700) r g b / 0.3);
	margin: 0 auto;
	display: block;
}

.contact-hero-grid .apex-hero-photo {
	margin: 0 auto;
}

@media (max-width: 900px) {
	.contact-hero-grid {
		grid-template-columns: 1fr;
	}
}

/* Story-page two-column sections: keep the original 4rem gap and stack at 1100px */
.apex-story .apex-two-col {
	gap: 4rem;
}

/* Service-card media block on city / first-visit cards */
.apex-card-media {
	position: relative;
	overflow: hidden;
	height: 250px;
}

.apex-card-media .wp-block-image,
.apex-card-media .wp-block-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.apex-service-card {
	position: relative;
}

/* Patient story media */
.apex-story-media {
	border-radius: 15px;
	overflow: hidden;
}

.apex-story-media .wp-block-image img {
	width: 100%;
	height: 400px;
	object-fit: cover;
	border-radius: 15px;
	box-shadow: 0 15px 35px rgb(from var(--wp--preset--color--brand-700) r g b / 0.15);
}

/* Testimonial author rows */
.apex-author {
	gap: 1rem;
}

.apex-avatar-dark {
	background: rgb(from var(--wp--preset--color--white) r g b / 0.2);
	width: 50px;
	height: 50px;
	font-size: 1rem;
	font-weight: 600;
}

.apex-stars-sm {
	color: var(--wp--preset--color--star-soft);
	font-size: 1.5rem;
	margin-bottom: 1rem;
}

.apex-badge-rows {
	gap: 1.5rem;
}

.apex-badge-row {
	gap: 0.5rem;
}

.apex-badge-row .apex-icon svg {
	color: var(--accent-primary);
}

.apex-schedule-widget {
	padding: 2rem;
}
.apex-page .is-layout-flex:not(.is-vertical) > p:not([style*="margin-bottom"]) { margin-bottom: 0; }
.apex-page .is-layout-flex.is-nowrap > p { margin-bottom: 0; }

/* Homepage hero buttons follow the original .btn breakpoints */
.hero-text-card .wp-block-buttons {
	justify-content: center;
	gap: 1rem;
	flex-wrap: wrap;
}

@media (max-width: 1024px) {
	.hero-text-card .wp-block-button__link { font-size: 1.1rem !important; padding: 0.875rem 2rem !important; }
}

@media (max-width: 768px) {
	.hero-text-card .wp-block-button__link { font-size: 0.875rem !important; padding: 0.6rem 1rem !important; }
	.hero-text-card .wp-block-buttons { gap: 0.4rem; margin-top: 0.75rem !important; }
}

@media (max-width: 480px) {
	/* at least 14px on phones (was 11.2px) */
	.hero-text-card .wp-block-button__link { font-size: 0.875rem !important; padding: 0.6rem 0.9rem !important; }
}


/* ==========================================================================
   HOVER EFFECTS — reproduce the live site's hover behaviour for elements whose
   class moved from the <a>/<img> onto a block wrapper (apex-h-* classes are
   added by the generators from the original classes and onmouseover handlers).
   ========================================================================== */

/* Card lifts that were inline onmouseover handlers */
.apex-hover-lift-5,
.apex-hover-lift-8,
.apex-hover-scale {
	transition: all 0.3s ease;
}

.apex-hover-lift-5:hover {
	transform: translateY(-5px);
	box-shadow: 0 15px 35px rgb(from var(--wp--preset--color--brand-700) r g b / 0.15);
}

.apex-hover-lift-8:hover {
	transform: translateY(-8px);
	box-shadow: 0 20px 40px rgba(0, 113, 188, 0.15);
}

.apex-hover-scale:hover {
	transform: scale(1.02);
}

/* Button hovers are colour-only and come from the block style (is-style-apex-*, Buttons section
   above). The live site's link underline, lifts, shadows and one-off onmouseover colours
   (apex-h-inline, apex-h-bg-*, apex-h-fill-brand, apex-h-hero-btn-*, apex-h-cta-*) are
   deliberately not reproduced; those classes stay in the markup but add no hover rules. */

/* .btn / .btn-primary / .btn-secondary (home hero, story CTA): shimmer sweep */
.wp-block-button.apex-h-btn .wp-block-button__link {
	position: relative;
	overflow: hidden;
	z-index: 1;
}

/* Paired .btn buttons (home hero: one-line "Schedule Your Appointment" next to the two-line
   "$75 New Patient Special / x-ray included") are the same height, captions centred vertically.
   A grid rather than a wrapping flex row: side by side while they fit, and when they don't they
   stack into one column of equal-sized buttons (flex-wrap sized each row on its own). Column
   flex inside the link keeps the <br> line break of the two-line caption. */
.wp-block-buttons:has(> .wp-block-button.apex-h-btn + .wp-block-button.apex-h-btn) {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), max-content));
	grid-auto-rows: 1fr;
	justify-content: center;
	align-items: stretch;
}

.wp-block-button.apex-h-btn {
	display: flex;
}

.wp-block-button.apex-h-btn .wp-block-button__link {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	text-align: center;
}

.wp-block-button.apex-h-btn .wp-block-button__link::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgb(from var(--wp--preset--color--white) r g b / 0.2), transparent);
	transition: left 0.5s ease;
	z-index: -1;
}

.wp-block-button.apex-h-btn .wp-block-button__link:hover::before {
	left: 100%;
}

/* City page reason cards (.book-button): outline button with a gradient sweep on hover */
.wp-block-button.apex-h-book-button {
	width: 100%;
}

.wp-block-button.apex-h-book-button .wp-block-button__link {
	width: 100%;
	background: transparent;
	color: var(--brand-primary);
	border: 2px solid var(--brand-primary);
	padding: 14px 24px;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
	z-index: 2;
}

.wp-block-button.apex-h-book-button .wp-block-button__link::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: var(--gradient-cta-green-gold);
	transition: left 0.4s ease;
	z-index: -1;
}

.wp-block-button.apex-h-book-button .wp-block-button__link:hover {
	color: var(--wp--preset--color--white);
	background: transparent;
	border-color: var(--brand-primary);
}

.wp-block-button.apex-h-book-button .wp-block-button__link:hover::before {
	left: 0;
}

.wp-block-button.apex-h-book-button.apex-h-popular .wp-block-button__link {
	background: var(--gradient-cta-primary);
	color: var(--wp--preset--color--white);
	border: none;
}

.wp-block-button.apex-h-book-button.apex-h-popular .wp-block-button__link:hover {
	background: var(--gradient-cta-dark-green);
}

/* Slider arrows (inline handlers on the live site) */
.apex-slider.is-style-card .apex-slider__arrow:hover {
	background: var(--accent-primary);
	color: var(--wp--preset--color--white);
}

/* Class-styled white buttons on the live site had no visible border; keep a transparent 2px one so
   they are the same height as the outlined button next to them (they were 4px shorter) */
.wp-block-button.apex-h-hero-btn-primary .wp-block-button__link,
.wp-block-button.apex-h-cta-btn-primary .wp-block-button__link,
.wp-block-button.apex-h-hero-btn-primary .wp-block-button__link:hover,
.wp-block-button.apex-h-cta-btn-primary .wp-block-button__link:hover {
	border-color: transparent;
}

/* Text the live site coloured brand-black / grey on its dark hero-main gradient (First Visit panels,
   1.08:1 contrast): make it readable. Light cards nested inside the gradient keep their colours;
   gradient cards nested in a gradient section are still dark, so they don't count as light. */
.has-hero-main-gradient-background .has-brand-color:not(.has-background):not(.has-hero-main-gradient-background .has-background:not(.has-hero-main-gradient-background) *) {
	color: var(--wp--preset--color--white) !important;
}

.has-hero-main-gradient-background .has-gray-700-color:not(.has-background):not(.has-hero-main-gradient-background .has-background:not(.has-hero-main-gradient-background) *) {
	color: rgb(from var(--wp--preset--color--white) r g b / 0.85) !important;
}

.has-hero-main-gradient-background .has-gray-500-color:not(.has-background):not(.has-hero-main-gradient-background .has-background:not(.has-hero-main-gradient-background) *) {
	color: rgb(from var(--wp--preset--color--white) r g b / 0.7) !important;
}

.wp-block-spacer.apex-card-stripe { height: 4px !important; margin: 0; }
.wp-block-spacer.apex-deco-circle { margin: 0; }
.wp-block-spacer.progress-indicator { height: 4px !important; margin: 0; }
.wp-block-spacer.team-section { height: 0 !important; padding: 0; margin: 0; }

/* ==========================================================================
   Follow-up layout fixes (2026-09-15)
   ========================================================================== */

/* First Visit step cards: subgrid lines the title / text / tab rows up across the cards, so the tab
   rows sit at the same height whatever the length of the text above them.
   Card = stripe + image + body; body = title + text + tabs (exactly three parts; the city cards'
   bodies have a badge too, so they are not included). */
.apex-first-visit .service-cards-grid > .apex-service-card {
	display: grid;
	grid-template-rows: subgrid;
	grid-row: span 5;
	row-gap: 0;
}

.apex-first-visit .service-cards-grid > .apex-service-card > .wp-block-group:last-child {
	display: grid;
	grid-template-rows: subgrid;
	grid-row: span 3;
	row-gap: 0;
	align-content: start;
}

/* A trailing grid margin stacked on the section padding (176px gap on First Visit) */
.service-cards-grid:last-child {
	margin-bottom: 0 !important;
}

/* City pages and First Visit: section content lines up with the 1200px hero, not a 1400px container */
.apex-city .section-container,
.apex-first-visit .section-container {
	max-width: calc(1200px + 2rem);
}

.apex-first-visit .apex-max-1400 {
	max-width: calc(1200px + 4rem);
}

/* City "Why ... Choose Apex" cards: the card stays centred, the check list is left-aligned next to its ✓ */
.apex-city .pricing-card .is-style-apex-check-lime {
	display: inline-block;
	text-align: left;
}

/* One size for section headings on Home and the service pages (they came in 33.7 / 38.2 / 48px) */
.apex-home h2.wp-block-heading.section-title,
.apex-service h2.wp-block-heading.section-title {
	font-size: var(--wp--preset--font-size--giant) !important;
}

/* Home: inner containers stacked their bottom padding on the section's (304px and 176px gaps) */
.apex-home .interactive-offers-section > .section-container,
.apex-home .why-choose-section > .section-container {
	padding-bottom: 0;
}

.apex-home .why-choose-cta {
	margin-bottom: 0;
}

/* Home "Chiropractic Services" cards: each card's tab row ("Treatment | Who It's For | Why Apex")
   couldn't wrap, which made the cards ~490px wide and pushed the third column off-screen at 1280px+.
   Let the cards shrink to their column and the tab labels wrap inside their tab. */
.apex-home .services-grid > * {
	min-width: 0;
}

.apex-home .services-grid .apex-tabs__btn {
	white-space: normal;
	padding-left: 0.35rem;
	padding-right: 0.35rem;
	font-size: 0.85rem;
	line-height: 1.25;
}

@media (max-width: 900px) {
	.apex-home .services-grid .apex-tabs__btn {
		font-size: 0.8rem;
	}
}

@media (max-width: 768px) {
	/* card headings were 16px over 17.6px text (a preset size class uses !important) */
	.apex-home .is-style-apex-card h4,
	.apex-home .trust-statement h4 {
		font-size: 1.25rem !important;
	}
}

@media (max-width: 480px) {
	/* card padding stacked with the grid's and the section's, leaving a ~220px text column */
	.apex-home .value-hero-card {
		padding: 1.25rem;
	}
}

/* Service pages: comparison table sits right under its black header (was a 32px white strip) */
.apex-service .comparison-table > .wp-block-table {
	margin-top: 0 !important;
}

/* Back pain / disc / sports: the white "Get Your … Assessment" button sat on a near-white section,
   left-aligned under centred headings: green and centred instead */
.apex-service .science-ingredients-section .wp-block-buttons {
	justify-content: center;
}

.apex-service .science-ingredients-section .is-style-apex-white .wp-block-button__link {
	background: var(--accent-primary);
	color: var(--wp--preset--color--white);
}

.apex-service .science-ingredients-section .is-style-apex-white .wp-block-button__link:hover {
	background: var(--accent-hover);
	color: var(--wp--preset--color--white);
}

/* Contact: item headings (H4) were 30px under 23px section headings */
.apex-contact .apex-page h4.wp-block-heading {
	font-size: 1.25rem;
}

/* 404: the stacked buttons on phones get one width */
@media (max-width: 600px) {
	.wp-block-buttons.error-links {
		flex-direction: column;
		align-items: center;
	}

	.wp-block-buttons.error-links > .wp-block-button {
		width: min(100%, 17rem);
	}

	.wp-block-buttons.error-links .wp-block-button__link {
		width: 100%;
	}
}

/* ReviewWave review popup: bottom-left (ReviewWave's own "pos":"bottom-left"), shown only once
   the visitor scrolls (or after 12s; apex.js removes .apex-rw-wait) so it does not open over the
   home hero buttons on load. */
.rw-launcher {
	transition: opacity 0.4s ease, visibility 0.4s ease;
}

html.apex-rw-wait .rw-launcher {
	opacity: 0 !important;
	visibility: hidden !important;
	pointer-events: none !important;
}
