/**
 * Limbionics modern healthcare polish for Uncode.
 * Overrides Uncode defaults with higher-specificity selectors rather than
 * !important, and never targets UserWay or WPBakery editing chrome.
 */

:root {
	--limbionics-primary: #2ba6d3;
	--limbionics-blue: #0082c1;
	--limbionics-yellow: #ffd110;
	--limbionics-ink: #111827;
	--limbionics-charcoal: #171717;
	--limbionics-muted: #4a5568;
	--limbionics-border: #cbd5e1;
	--limbionics-soft: #f7f7f7;
	--limbionics-white: #ffffff;
	--limbionics-footer: #1c2128;
	--limbionics-footer-link: #e2e8f0;
	--limbionics-radius-sm: 8px;
	--limbionics-radius-md: 12px;
	--limbionics-shadow: 0 1px 3px rgba(16, 24, 40, 0.07), 0 1px 2px rgba(16, 24, 40, 0.05);
	--limbionics-shadow-hover: 0 8px 20px rgba(16, 24, 40, 0.12);
	--limbionics-focus: #0082c1;
}

/* -------------------------------------------------------------------------
   Typography & readability
   ------------------------------------------------------------------------- */

html {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

body {
	line-height: 1.65;
	color: var(--limbionics-charcoal);
}

.style-light,
.style-light p:not([class*="text-color"]),
.style-light li:not([class*="text-color"]),
.style-light figcaption,
.style-light .t-entry-excerpt,
.style-light .t-entry-text,
.style-light .uncode_text_column:not([class*="text-color"]),
body .text-muted,
body .caption,
body figcaption {
	color: var(--limbionics-muted);
}

/* Upgrade known low-contrast greys on light backgrounds. */
.style-light [style*="color:#858585"],
.style-light [style*="color: #858585"],
.style-light [style*="color:#808080"],
.style-light [style*="color: #808080"],
.style-light [style*="color:#888"],
.style-light [style*="color: #888"] {
	color: var(--limbionics-muted);
}

h1, h2, h3, h4, h5, h6,
.style-light h1,
.style-light h2,
.style-light h3,
.style-light h4,
.style-light h5,
.style-light h6 {
	letter-spacing: -0.02em;
	line-height: 1.25;
	color: var(--limbionics-charcoal);
}

h1, .h1 { margin-bottom: 0.6em; }
h2, .h2 { margin-bottom: 0.55em; }
h3, .h3,
h4, .h4 { margin-bottom: 0.5em; }

/* Keep light type in dark Uncode sections. */
.style-dark h1,
.style-dark h2,
.style-dark h3,
.style-dark h4,
.style-dark h5,
.style-dark h6,
.style-dark p,
.style-dark li,
.style-spec.style-dark h1,
.style-spec.style-dark h2,
.style-spec.style-dark h3,
.style-spec.style-dark p {
	color: inherit;
}

/* -------------------------------------------------------------------------
   Buttons & CTAs
   ------------------------------------------------------------------------- */

body .btn,
body a.btn,
body button.btn,
body input[type="submit"],
body input[type="button"],
body .cta-button,
body .both-cta-button,
body .nf-form-cont input[type="submit"],
body .nf-form-cont .nf-element[type="button"],
body .limbionics-ce-submit,
body .menu-cta-button > a,
body li.menu-cta-button > a {
	border-radius: var(--limbionics-radius-sm);
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1.3;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

body .btn:hover,
body a.btn:hover,
body .cta-button:hover,
body .both-cta-button:hover,
body .limbionics-ce-submit:hover,
body .menu-cta-button > a:hover,
body li.menu-cta-button > a:hover {
	transform: translateY(-1px);
	box-shadow: var(--limbionics-shadow-hover);
}

body .btn.btn-color-173519,
body .btn.cta-button,
body .btn.both-cta-button,
body a.cta-button,
body a.both-cta-button,
body .cta-button.btn-color-173519,
body .both-cta-button.btn-color-173519 {
	background-color: var(--limbionics-yellow);
	background-image: none;
	border-color: var(--limbionics-yellow);
	color: var(--limbionics-ink);
}

body .btn.btn-color-173519:hover,
body .btn.cta-button:hover,
body .btn.both-cta-button:hover,
body a.cta-button:hover,
body a.both-cta-button:hover {
	background-color: #f5c400;
	border-color: #f5c400;
	color: var(--limbionics-ink);
}

body .btn.btn-flat:not(.btn-color-173519):not(.cta-button):not(.both-cta-button),
body a.btn.btn-custom,
body .limbionics-ce-submit {
	background-color: var(--limbionics-blue);
	border-color: var(--limbionics-blue);
	color: var(--limbionics-white);
}

body .btn.btn-flat:not(.btn-color-173519):not(.cta-button):not(.both-cta-button):hover,
body .limbionics-ce-submit:hover {
	background-color: #006ba0;
	border-color: #006ba0;
	color: var(--limbionics-white);
}

/* Primary cyan used as a filled control. */
body .btn[class*="2ba6d3"],
body a.btn.style-color-pry {
	background-color: var(--limbionics-primary);
	border-color: var(--limbionics-primary);
	color: var(--limbionics-white);
}

body li.menu-cta-button > a,
body .menu-cta-button > a {
	color: var(--limbionics-ink);
	background-color: var(--limbionics-yellow);
	border-color: var(--limbionics-yellow);
	padding-left: 1rem;
	padding-right: 1rem;
}

/* -------------------------------------------------------------------------
   Cards, media blocks, clinic locations
   ------------------------------------------------------------------------- */

body .tmb:not(footer.site-footer .tmb),
body .wpsl-store-location,
body #wpsl-stores > li,
body .wpsl-list li,
body .un-icon-box,
body .icon-box:not(.icon-inline):not(.social-icon) {
	border-radius: var(--limbionics-radius-md);
	border: 1px solid #e5e7eb;
	box-shadow: var(--limbionics-shadow);
	background-color: var(--limbionics-white);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

body .tmb:not(footer.site-footer .tmb) {
	overflow: hidden;
}

body .tmb:not(footer.site-footer .tmb):hover,
body .wpsl-store-location:hover,
body #wpsl-stores > li:hover,
body .wpsl-list li:hover {
	transform: translateY(-2px);
	box-shadow: var(--limbionics-shadow-hover);
	border-color: #d0d7de;
}

body #wpsl-stores > li,
body .wpsl-store-location,
body .wpsl-list li {
	padding: 1rem 1.15rem;
	margin-bottom: 0.85rem;
}

/* Card-like text columns inside light grids — not every footer/text module. */
body .isotope-container .uncode_text_column,
body .row-container.style-light .uncol.style-light .uncell:has(.uncode_text_column) {
	border-radius: var(--limbionics-radius-md);
}

body .grid-container .tmb,
body .isotope-item .tmb {
	padding: 0;
}

/* :has() is supported in modern browsers; Uncode layouts stay intact if ignored. */

/* -------------------------------------------------------------------------
   Forms — Ninja Forms and the CE course form
   ------------------------------------------------------------------------- */

body input[type="text"],
body input[type="email"],
body input[type="tel"],
body input[type="url"],
body input[type="search"],
body input[type="number"],
body input[type="date"],
body input[type="password"],
body textarea,
body select,
body .nf-form-cont .nf-element,
body .nf-form-cont input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="hidden"]),
body .nf-form-cont textarea,
body .nf-form-cont select,
body .limbionics-ce-field input[type="text"],
body .limbionics-ce-field input[type="email"],
body .limbionics-ce-form input[type="text"],
body .limbionics-ce-form input[type="email"] {
	border: 1px solid var(--limbionics-border);
	border-radius: var(--limbionics-radius-sm);
	min-height: 44px;
	padding: 0.6rem 0.75rem;
	background-color: var(--limbionics-white);
	color: var(--limbionics-charcoal);
	box-shadow: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body textarea,
body .nf-form-cont textarea {
	min-height: 8rem;
}

body .nf-form-cont .nf-field-label,
body .nf-form-cont label,
body .limbionics-ce-field label {
	display: block;
	margin-bottom: 0.4rem;
	color: var(--limbionics-charcoal);
}

body input:focus,
body textarea:focus,
body select:focus,
body .nf-form-cont .nf-element:focus,
body .limbionics-ce-field input:focus,
body .limbionics-ce-form input:focus {
	border-color: var(--limbionics-blue);
	box-shadow: 0 0 0 3px rgba(0, 130, 193, 0.2);
	outline: 3px solid var(--limbionics-focus);
	outline-offset: 2px;
}

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */

/* Beat Uncode color-class and inner wrapper backgrounds (they often use !important).
   Scoped to footer.site-footer so page dividers outside the footer stay untouched.
   Buttons and inputs are not listed, so their own styles remain. */
footer.site-footer,
footer#colophon.site-footer,
footer.site-footer .row-container,
footer.site-footer .row-parent,
footer.site-footer .row-inner,
footer.site-footer .wpb_row,
footer.site-footer .wpb_column,
footer.site-footer .pos-top,
footer.site-footer .uncol,
footer.site-footer .uncoltable,
footer.site-footer .uncell,
footer.site-footer .uncont,
footer.site-footer .background-wrapper,
footer.site-footer .background-inner,
footer.site-footer .footer-text,
footer.site-footer .vc_row,
footer.site-footer .vc_row.footer-text,
footer.site-footer .row-container.footer-text,
footer.site-footer .footer-text .row-parent,
footer.site-footer .footer-text .row-container,
footer.site-footer .footer-last,
footer.site-footer .style-dark-bg,
footer.site-footer .style-color-757066-bg,
footer.site-footer .footer-text.style-color-757066-bg,
footer.site-footer [class*="style-color-"][class*="-bg"] {
	background-color: #1c2128 !important;
}

/* Footer logo / media must stay transparent so white wordmarks remain visible. */
footer.site-footer .tmb,
footer.site-footer .t-inside,
footer.site-footer .t-entry-visual,
footer.site-footer .t-entry-visual-tc,
footer.site-footer .uncode-single-media,
footer.site-footer .uncode-single-media-wrapper,
footer.site-footer .single-wrapper,
footer.site-footer img {
	background: transparent !important;
	box-shadow: none !important;
	border: 0 !important;
	border-radius: 0 !important;
}

footer.site-footer .footer-text,
footer.site-footer .vc_row.footer-text,
footer.site-footer .row-container.footer-text,
footer.site-footer .style-color-757066-bg.footer-text {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

footer.site-footer,
footer.site-footer p,
footer.site-footer li,
footer.site-footer .footer-text,
footer.site-footer .footer-text p,
footer.site-footer .footer-text span,
footer.site-footer .footer-text .uncol,
footer.site-footer .footer-text .style-light,
footer.site-footer .footer-text .style-dark,
footer.site-footer .site-info,
footer.site-footer .style-light,
footer.site-footer .style-light p,
footer.site-footer .style-dark,
footer.site-footer .style-dark p {
	color: #e2e8f0;
}

footer.site-footer a,
footer.site-footer .site-info a,
footer.site-footer .style-light a,
footer.site-footer .style-dark a,
footer.site-footer .footer-text a,
footer.site-footer .footer-text a:link,
footer.site-footer .footer-text a:visited {
	color: #ffffff;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
	transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

footer.site-footer a:hover,
footer.site-footer a:focus-visible,
footer.site-footer .footer-text a:hover,
footer.site-footer .footer-text a:focus-visible,
footer.site-footer .site-info a:hover {
	color: #ffffff;
	text-decoration-thickness: 2px;
}

footer.site-footer .social-icon a,
footer.site-footer .social-icon i {
	color: var(--limbionics-footer-link);
}

footer.site-footer .social-icon a:hover,
footer.site-footer .social-icon a:hover i {
	color: var(--limbionics-white);
}

footer.site-footer .vc_row.footer-text .row-inner,
footer.site-footer .footer-text.row-container .row-inner {
	align-items: center;
}

footer.site-footer .footer-text p {
	margin-bottom: 0;
}

@media (min-width: 768px) {
	footer.site-footer .vc_row.footer-text .wpb_row.row-inner,
	footer.site-footer .row-container.footer-text .wpb_row.row-inner {
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	footer.site-footer .footer-last .row-parent {
		display: flex;
		align-items: center;
		justify-content: space-between;
	}
}

@media (max-width: 767px) {
	footer.site-footer .footer-text,
	footer.site-footer .footer-text p,
	footer.site-footer .footer-text .uncol,
	footer.site-footer .site-info,
	footer.site-footer .footer-last .text-right,
	footer.site-footer .footer-last .text-left {
		text-align: center;
	}

	footer.site-footer .footer-last .social-icon {
		display: inline-block;
	}

	footer.site-footer .vc_row.footer-text .wpb_column,
	footer.site-footer .row-container.footer-text .wpb_column {
		margin-bottom: 0.75rem;
	}
}

/* -------------------------------------------------------------------------
   Focus & motion (WCAG 2.1 AA)
   ------------------------------------------------------------------------- */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[role="button"]:focus-visible,
[tabindex]:focus-visible,
body .btn:focus-visible,
body .cta-button:focus-visible,
body .menu-container a:focus-visible,
body .menu-smart a:focus-visible,
body .limbionics-ce-submit:focus-visible,
body .nf-form-cont input:focus-visible,
body .nf-form-cont button:focus-visible {
	outline: 3px solid var(--limbionics-focus);
	outline-offset: 2px;
}

/* Leave UserWay's own focus treatment alone. */
#userwayAccessibilityWidget :focus-visible,
#uw-main :focus-visible,
#uw-overlay :focus-visible,
.uwy :focus-visible,
[class*="userway"] :focus-visible,
[id*="userway"] :focus-visible {
	outline: revert;
	outline-offset: revert;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	body .btn:hover,
	body a.btn:hover,
	body .cta-button:hover,
	body .tmb:hover,
	body .wpsl-store-location:hover,
	body #wpsl-stores > li:hover {
		transform: none;
	}
}

/* -------------------------------------------------------------------------
   Responsive mobile polish
   ------------------------------------------------------------------------- */

html {
	overflow-x: clip;
	max-width: 100%;
}

body {
	max-width: 100%;
}

img,
video,
iframe,
svg {
	max-width: 100%;
}

@media (max-width: 767px) {
	body {
		font-size: 16px;
		line-height: 1.65;
	}

	body .row-container .row-parent,
	body .single-block-padding {
		padding-left: 1.1rem;
		padding-right: 1.1rem;
	}

	body .btn,
	body a.btn,
	body .cta-button,
	body .both-cta-button {
		min-height: 44px;
		padding-top: 0.7rem;
		padding-bottom: 0.7rem;
	}
}
