/* Versora Health HC — design system (Tonal Bands, mockup 2b) */

:root {
	--vh-navy: #132b4d;
	--vh-ink: #1c2b3a;
	--vh-body: #3d4a56;
	--vh-muted: #5b6b78;
	--vh-teal: #0e93a0;          /* decorative: dots, path line */
	--vh-teal-strong: #0b7a85;   /* text/buttons — 5:1 contrast with white */
	--vh-teal-dark: #086872;
	--vh-aqua: #f2f8f8;
	--vh-border: #dde6e6;
	--vh-footer-text: #c3cedb;
	--vh-max: 1180px;
	--vh-path-x: max(28px, calc((100% - var(--vh-max)) / 2 + 64px));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--vh-teal-strong); }
a:hover { color: var(--vh-teal-dark); }
:focus-visible { outline: 3px solid var(--vh-teal); outline-offset: 2px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--vh-navy); color: #fff;
	padding: 10px 16px; border-radius: 5px; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Header ---------- */
.wp-site-blocks > .wp-block-template-part:first-child { position: sticky; top: 0; z-index: 50; }
.admin-bar .wp-site-blocks > .wp-block-template-part:first-child { top: 32px; }
@media (max-width: 782px) { .admin-bar .wp-site-blocks > .wp-block-template-part:first-child { top: 46px; } }

.site-header { background: #fff; border-bottom: 1px solid var(--vh-border); }
.site-header__inner {
	max-width: var(--vh-max); margin: 0 auto; padding: 14px 56px;
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.site-header__logo { display: block; flex-shrink: 0; }
.site-header__logo img { display: block; height: 34px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 34px; }
.site-nav a:not(.btn) { color: var(--vh-ink); text-decoration: none; font-size: 15px; white-space: nowrap; }
.site-nav a:not(.btn):hover { color: var(--vh-teal-strong); text-decoration: underline; text-underline-offset: 4px; }
.nav-toggle {
	display: none; width: 44px; height: 44px; padding: 0; background: none; border: 1px solid var(--vh-border);
	border-radius: 5px; cursor: pointer; position: relative;
}
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
	position: absolute; left: 11px; width: 20px; height: 2px; background: var(--vh-navy); content: '';
}
.nav-toggle__bar { top: 20px; }
.nav-toggle__bar::before { top: -6px; left: 0; }
.nav-toggle__bar::after { top: 6px; left: 0; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-block; background: var(--vh-teal-strong); color: #fff; padding: 14px 28px; border: 0;
	border-radius: 5px; text-decoration: none; font: 700 14px/1.2 inherit; font-family: inherit;
	letter-spacing: .03em; cursor: pointer;
}
.btn:hover { background: var(--vh-teal-dark); color: #fff; }
.btn--small { padding: 10px 20px; font-size: 14px; font-weight: 600; letter-spacing: 0; white-space: nowrap; }

/* ---------- Hero ---------- */
.hero { background: #fff; }
.hero__inner {
	max-width: var(--vh-max); margin: 0 auto; padding: 88px 64px 96px;
	display: flex; align-items: center; gap: 64px;
}
.hero__copy { max-width: 760px; }
.hero h1 { font-size: 44px; line-height: 1.2; margin: 0 0 22px; }
.hero p { font-size: 18px; line-height: 1.6; max-width: 640px; margin: 0 0 32px; }

/* ---------- Bands + path motif ---------- */
.bands { position: relative; }
.bands::before {
	content: ''; position: absolute; z-index: 1; left: var(--vh-path-x); top: -56px; bottom: 0; width: 3px;
	background: repeating-linear-gradient(to bottom, var(--vh-teal) 0 8px, transparent 8px 16px);
}
.band--aqua { background: var(--vh-aqua); }
.band--white { background: #fff; }
.band__inner { max-width: var(--vh-max); margin: 0 auto; padding: 80px 64px 80px 90px; }
.band h2 { font-size: 28px; margin: 0 0 28px; }
.band__intro { margin: -18px 0 26px; }
.band__inner > p { max-width: 760px; margin: 0 0 18px; }
.band__inner > p:last-child { margin-bottom: 0; }

.bullets { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px 40px; color: var(--vh-ink); font-size: 16px; line-height: 1.5; }
.bullets--2 { grid-template-columns: 1fr 1fr; max-width: 820px; }
.bullets--1 { max-width: 640px; gap: 10px; }
.bullets li { display: flex; gap: 10px; }
.bullets__dot { flex-shrink: 0; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--vh-teal); }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; max-width: 760px; display: flex; flex-direction: column; gap: 26px; }
.steps li { display: flex; gap: 18px; counter-increment: step; }
.steps__n {
	flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--vh-teal-strong); color: #fff;
	display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.steps__n::before { content: counter(step); }
.steps p { margin: 0; font-size: 16px; line-height: 1.6; }
.steps strong { color: var(--vh-ink); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; margin-top: 44px; align-items: start; }
.contact__form { max-width: 520px; }
.contact form { display: flex; flex-direction: column; gap: 14px; }
.field-row { display: flex; gap: 14px; }
.field { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 13px; color: var(--vh-muted); }
.field input, .field select, .field textarea {
	width: 100%; border: 1px solid #b9c7c7; border-radius: 5px; padding: 10px 12px; font: 15px/1.4 inherit;
	font-family: inherit; color: var(--vh-ink); background: #fff;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--vh-teal-strong); outline: 2px solid var(--vh-teal); outline-offset: 0; }
.field-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 13px; color: var(--vh-muted); margin: 0; }
.contact .btn { align-self: flex-start; padding: 13px 30px; }
.form-notice { border-radius: 5px; padding: 16px 18px; font-size: 15px; line-height: 1.5; margin-bottom: 16px; }
.form-notice--ok { background: #e8f6f1; border: 1px solid #9fd5c3; color: #12503f; }
.form-notice--error { background: #fdeeee; border: 1px solid #e7b3b3; color: #7a1f1f; }
.contact__status { background: var(--vh-aqua); border-radius: 6px; padding: 26px; }
.contact__status h3 { font-size: 16px; margin: 0 0 12px; }
.contact__status p { font-size: 14px; line-height: 1.6; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--vh-navy); color: var(--vh-footer-text); font-size: 14px; }
.site-footer__inner {
	max-width: var(--vh-max); margin: 0 auto; padding: 36px 64px;
	display: flex; justify-content: space-between; align-items: flex-start; gap: 24px;
}
.site-footer__logo { display: block; height: 32px; width: auto; margin-bottom: 14px; }
.site-footer address { font-style: normal; line-height: 1.6; }
.site-footer a { color: var(--vh-footer-text); text-decoration: none; }
.site-footer a:hover { color: #4fc3cf; text-decoration: underline; }
.site-footer__meta { display: flex; gap: 20px; align-items: center; }
.site-footer__meta nav { display: flex; gap: 20px; }

/* ---------- Generic pages (Privacy) ---------- */
.vh-page { padding: 64px 24px 80px; }
.vh-page h1 { font-size: 36px; margin: 0 0 24px; }
.vh-page h2 { font-size: 22px; margin: 32px 0 8px; }
.vh-page p { margin: 0 0 14px; }

/* ---------- Tablet ---------- */
@media (max-width: 960px) {
	.site-header__inner, .hero__inner, .band__inner, .site-footer__inner { padding-left: 32px; padding-right: 32px; }
	.band__inner { padding-left: 64px; }
	.hero__inner { gap: 32px; padding-top: 72px; padding-bottom: 72px; }
	.hero h1 { font-size: 38px; }
	.site-nav { gap: 20px; }
	.contact { grid-template-columns: 1fr; }
	.contact__form { max-width: none; }
}

/* ---------- Collapsed nav ---------- */
@media (max-width: 900px) {
	.nav-toggle { display: block; }
	.site-header__inner { padding: 10px 20px; position: relative; }
	.site-nav {
		display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column;
		align-items: stretch; gap: 0; padding: 8px 20px 20px; border-bottom: 1px solid var(--vh-border);
	}
	.site-nav.is-open { display: flex; }
	.site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--vh-border); font-size: 16px; }
	.site-nav .btn { margin-top: 16px; text-align: center; }
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
	:root { --vh-path-x: 14px; }
	.hero__inner { padding: 48px 20px 56px 40px; }
	.hero h1 { font-size: 32px; }
	.band__inner { padding: 56px 20px 56px 40px; }
	.band h2 { font-size: 24px; }
	.bullets--2 { grid-template-columns: 1fr; }
	.field-row { flex-direction: column; }
	.site-footer__inner { flex-direction: column; padding: 32px 20px; }
	.site-footer__meta { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
	* { animation: none !important; transition: none !important; }
}

/* ---------- Contact Form 7 integration ---------- */
.contact .wpcf7 form { display: flex; flex-direction: column; gap: 14px; }
.contact .wpcf7-form-control-wrap { display: block; }
.contact .wpcf7-submit { align-self: flex-start; padding: 13px 30px; border: 0; font-family: inherit; }
.contact .wpcf7-not-valid { border-color: #b3261e; }
.contact .wpcf7-not-valid-tip { color: #b3261e; font-size: 13px; margin-top: 4px; display: block; }
.contact .wpcf7 form .wpcf7-response-output { margin: 0; border-radius: 5px; padding: 16px 18px; font-size: 15px; line-height: 1.5; border: 1px solid #e7b3b3; background: #fdeeee; color: #7a1f1f; }
.contact .wpcf7 form.sent .wpcf7-response-output { border-color: #9fd5c3; background: #e8f6f1; color: #12503f; }
.contact .wpcf7-spinner { margin: 0 0 0 12px; }
.contact .screen-reader-response { position: absolute; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); height: 1px; width: 1px; margin: -1px; padding: 0; border: 0; }
.contact .wpcf7 form .wpcf7-response-output:empty,
.contact .wpcf7 form.init .wpcf7-response-output { display: none; }
.contact .hidden-fields-container { display: none; border: 0; margin: 0; padding: 0; }

/* Anchor target for the Contact buttons: land on the form, clear of the sticky header. */
#contact-form { scroll-margin-top: 16px; }

/* Keep each list item / paragraph / form row on one page or column (fixes items splitting across pages). */
.steps li, .bullets li, .band__inner > p, .contact__status, .field-row, .field { break-inside: avoid; page-break-inside: avoid; }
.band h2, .band__intro { break-after: avoid; page-break-after: avoid; }

@media print {
	.wp-site-blocks > .wp-block-template-part:first-child { position: static; }
	.nav-toggle, .site-nav, .skip-link { display: none !important; }
	.bands::before { display: none; }
	.band { break-inside: auto; }
	.steps li, .bullets li { display: flex; break-inside: avoid; page-break-inside: avoid; }
	* { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
