/* ==========================================================================
   Veerhealth Care — main stylesheet
   1. Tokens   2. Base   3. Layout   4. Type   5. Buttons   6. Header
   7. Mobile menu   8. Page hero   9. Cards & shared bits   10. Footer
   ========================================================================== */

/* 1. Tokens — colours sampled from the Veerhealth logo
   ------------------------------------------------------------------------ */
:root {
	--ink: #14283A;          /* text, dark buttons */
	--ink-2: #2D4256;        /* body copy */
	--muted: #4A5D70;        /* captions (passes 4.5:1 on paper) */
	--red: #C1313A;          /* logo red — accent */
	--red-deep: #8E1F27;
	--blue: #1F7AB3;         /* logo blue — secondary */
	--soft-blue: #EAF2FA;
	--soft-red: #F8E6E6;
	--paper: #F7F8FB;        /* page background */
	--white: #FFFFFF;
	--line: #DFE6EE;
	--line-2: #CBD7E3;

	--grad-soft: linear-gradient(213deg, #EAF2FA 45%, #F8E6E6 100%);
	--grad-soft-2: linear-gradient(213deg, #D4E5F6 0%, #F8E6E6 100%);
	--grad-deep: linear-gradient(225deg, #14283A 35%, #8E1F27 100%);
	--grad-title: linear-gradient(90deg, #C1313A 0%, #14283A 62%);

	--radius: 20px;
	--radius-md: 16px;
	--radius-sm: 12px;
	--shadow-bar: 0 4px 24px 4px rgba(20, 40, 58, 0.10);
	--shadow-lift: 0 16px 34px rgba(20, 40, 58, 0.14);

	--wrap: 1300px;
	--gutter: 24px;
	--sans: 'DM Sans', system-ui, sans-serif;
	--serif: 'Instrument Serif', Georgia, serif;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* 2. Base
   ------------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	padding-top: 16px;
	background: var(--paper);
	color: var(--ink);
	font: 400 17px/1.6 var(--sans);
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}
img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s; }
a:hover { color: var(--red); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.v-icon { display: inline-block; flex-shrink: 0; }

.v-skip {
	position: absolute; left: 16px; top: -60px; z-index: 100;
	background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 10px;
}
.v-skip:focus { top: 16px; color: var(--white); }

/* 3. Layout
   ------------------------------------------------------------------------ */
.v-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.v-wrap-wide { max-width: calc(var(--wrap) + 32px); margin: 0 auto; padding: 0 16px; }
.v-section { padding: 110px 0 0; }
.v-section--flush { padding-top: 20px; }
.v-section:last-child { padding-bottom: 0; }
.v-split { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 44px; }
.v-split > :first-child { max-width: 700px; }
.v-split > p { max-width: 380px; }
.v-grid { display: grid; gap: 16px; }
.v-grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.v-grid--3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.v-grid--4 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

/* 4. Type
   ------------------------------------------------------------------------ */
.v-eyebrow {
	margin: 0 0 18px; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--red);
}
.v-h1, .v-h2, .v-h3 { margin: 0; font-weight: 300; letter-spacing: -0.025em; }
.v-h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1.04; }
.v-h2 { font-size: clamp(30px, 3.8vw, 52px); line-height: 1.08; }
.v-h3 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; letter-spacing: -0.01em; }
.v-gradient-text {
	background: var(--grad-title);
	-webkit-background-clip: text; background-clip: text;
	-webkit-text-fill-color: transparent; color: var(--ink);
}
.v-serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; color: var(--red); }
.v-lead { font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 560px; }
.v-muted { color: var(--muted); }

.v-prose { font-size: 17px; line-height: 1.7; color: var(--ink-2); max-width: 820px; }
.v-prose > * + * { margin-top: 1.1em; }
.v-prose h2, .v-prose h3 { color: var(--ink); font-weight: 400; letter-spacing: -0.01em; margin-top: 1.8em; }
.v-prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.v-prose ul { list-style: disc; padding-left: 1.2em; }
.v-prose ol { list-style: decimal; padding-left: 1.2em; }
.v-prose img { border-radius: var(--radius-md); }

/* 5. Buttons — pill with three dots that split on hover
   ------------------------------------------------------------------------ */
.v-btn {
	position: relative; display: inline-flex; align-items: center;
	height: 56px; padding: 0 58px 0 26px; border-radius: 999px; border: 1px solid transparent;
	font-size: 17px; line-height: 1; cursor: pointer; white-space: nowrap;
	transition: background .3s, color .3s, border-color .3s;
}
.v-btn--dark { background: var(--ink); color: var(--white); }
.v-btn--dark:hover { background: #0C1B29; color: var(--white); }
.v-btn--light { background: var(--white); color: var(--ink); box-shadow: 0 6px 20px rgba(20, 40, 58, .08); }
.v-btn--light:hover { color: var(--ink); }
.v-btn--outline { background: transparent; color: var(--ink); border-color: var(--line-2); }
.v-btn--outline:hover { background: var(--white); color: var(--ink); }
.v-btn__dot {
	position: absolute; right: 28px; top: 50%;
	width: 6px; height: 6px; margin-top: -3px; border-radius: 50%;
	background: var(--red); transition: transform .3s var(--ease);
}
.v-btn--dark .v-btn__dot { background: #F2B8BC; }
.v-btn:hover .d1 { transform: translateY(-6px); }
.v-btn:hover .d2 { transform: translateY(6px); }
.v-btn:hover .d3 { transform: translateX(10px); transition-delay: .12s; }

.v-link-arrow {
	display: inline-flex; align-items: center; gap: 10px; padding: 12px 0;
	font-size: 17px; border-bottom: 1px solid rgba(20, 40, 58, .25);
}
.v-link-arrow .v-icon { transition: transform .3s var(--ease); }
.v-link-arrow:hover .v-icon { transform: translateX(4px); }

.v-tag {
	display: inline-flex; align-items: center; height: 32px; padding: 0 14px;
	border-radius: 999px; background: var(--soft-blue); color: var(--blue); font-size: 14px;
}

/* 6. Header — floating bar that hides on scroll down
   ------------------------------------------------------------------------ */
.v-header {
	position: sticky; top: 12px; z-index: 50; padding: 0 16px;
	transition: transform .35s var(--ease);
}
.v-header.is-hidden { transform: translateY(-140%); }
.admin-bar .v-header { top: 44px; }
.v-header__bar {
	max-width: var(--wrap); margin: 0 auto; min-height: 76px;
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
	padding: 0 12px 0 20px; background: var(--white);
	border-radius: 14px; box-shadow: var(--shadow-bar);
}
.site-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.v-header__logo .site-logo__img { height: 40px; width: auto; }

.v-header__nav { height: 76px; }
.v-menu { display: flex; align-items: center; gap: 34px; height: 100%; font-size: 16px; }
.v-menu > li { position: relative; height: 100%; display: flex; align-items: center; }
.v-menu > li > a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 0; }
/* soft red glow under the active / hovered item */
.v-menu > li::after {
	content: ''; position: absolute; left: 50%; bottom: 0; width: 120px; height: 26px;
	transform: translateX(-50%); pointer-events: none; opacity: 0; transition: opacity .3s;
	background: radial-gradient(60% 100% at 50% 100%, rgba(193, 49, 58, .35), rgba(193, 49, 58, 0));
}
.v-menu > li:hover::after,
.v-menu > .current-menu-item::after,
.v-menu > .current-menu-ancestor::after,
.v-menu > .current_page_item::after { opacity: 1; }
.v-menu > .current-menu-item > a,
.v-menu > .current_page_item > a { color: var(--red); }

/* dropdowns */
.v-menu .sub-menu {
	position: absolute; top: calc(100% - 8px); left: -16px; min-width: 240px; padding: 10px;
	background: rgba(255, 255, 255, .95); border: 1px solid var(--white); border-radius: 18px;
	box-shadow: 0 14px 44px rgba(20, 40, 58, .16);
	-webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
	opacity: 0; visibility: hidden; transform: translateY(8px) scale(.98);
	transition: opacity .25s, transform .25s, visibility .25s;
}
.v-menu li:hover > .sub-menu,
.v-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.v-menu .sub-menu a { display: block; padding: 11px 14px; border-radius: 11px; font-size: 15px; }
.v-menu .sub-menu a:hover { background: var(--soft-blue); color: var(--ink); }

.v-header__actions { display: flex; align-items: center; gap: 10px; }
.v-header__actions .v-btn { height: 50px; padding: 0 50px 0 24px; font-size: 16px; }
.v-header__actions .v-btn__dot { right: 24px; }
.v-header__toggle {
	display: none; align-items: center; justify-content: center;
	width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line);
	background: var(--paper); cursor: pointer;
}
.v-header__toggle-close { display: none; }
.v-header__toggle[aria-expanded="true"] .v-header__toggle-open { display: none; }
.v-header__toggle[aria-expanded="true"] .v-header__toggle-close { display: inline-flex; }

/* 7. Mobile menu
   ------------------------------------------------------------------------ */
.v-mobile {
	max-width: var(--wrap); margin: 8px auto 0; padding: 12px 24px 24px;
	background: var(--white); border-radius: 14px; box-shadow: var(--shadow-bar);
	max-height: calc(100vh - 120px); overflow-y: auto;
}
.v-mobile[hidden] { display: none; }
.v-mobile__menu > li { border-bottom: 1px solid var(--line); }
.v-mobile__menu a { display: flex; align-items: center; justify-content: space-between; min-height: 56px; font-size: 18px; }
.v-mobile__menu .sub-menu { padding: 0 0 12px 14px; }
.v-mobile__menu .sub-menu a { min-height: 44px; font-size: 16px; color: var(--muted); }
.v-mobile__menu .v-icon { display: none; }
.v-mobile__contact { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; font-size: 16px; }
.v-mobile__contact a { display: inline-flex; align-items: center; gap: 10px; }
.v-mobile__contact .v-icon { color: var(--red); }

@media (max-width: 1080px) {
	.v-header__nav { display: none; }
	.v-header__toggle { display: inline-flex; }
}
@media (max-width: 560px) {
	.v-header__actions .v-btn { display: none; }
	.v-header__logo .site-logo__img { height: 32px; }
}

/* 8. Page hero (inner pages)
   ------------------------------------------------------------------------ */
.v-page-hero {
	position: relative; overflow: hidden; border-radius: var(--radius);
	background: var(--grad-soft); padding: 140px 56px 64px;
}
.v-page-hero::before {          /* concentric rings, like the reference site */
	content: ''; position: absolute; right: -260px; top: -380px; width: 900px; height: 900px;
	border-radius: 50%; pointer-events: none; opacity: .7;
	background:
		radial-gradient(circle, transparent 239px, #fff 240px, #fff 241px, transparent 242px),
		radial-gradient(circle, transparent 329px, #fff 330px, #fff 331px, transparent 332px),
		radial-gradient(circle, transparent 419px, #fff 420px, #fff 421px, transparent 422px);
}
.v-page-hero__inner { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 22px; max-width: 820px; }
.v-page-hero--center { text-align: center; }
.v-page-hero--center .v-page-hero__inner { margin: 0 auto; align-items: center; }
.v-page-hero--deep { background: var(--grad-deep); color: var(--white); }
.v-page-hero--deep .v-eyebrow { color: #F2B8BC; }
.v-page-hero--deep .v-lead { color: rgba(255, 255, 255, .82); }
@media (max-width: 640px) { .v-page-hero { padding: 120px 22px 40px; } }

/* 9. Cards & shared bits (used by later page templates)
   ------------------------------------------------------------------------ */
.v-panel { border-radius: var(--radius); padding: 64px 48px; }
.v-panel--soft { background: var(--grad-soft); }
.v-panel--deep { background: var(--grad-deep); color: var(--white); }
.v-panel--white { background: var(--white); }
@media (max-width: 640px) { .v-panel { padding: 36px 20px; } }

.v-card { background: var(--white); border-radius: var(--radius-md); overflow: hidden; display: flex; flex-direction: column; }
.v-card__media { display: block; aspect-ratio: 1.4; overflow: hidden; border-radius: var(--radius-md); background: var(--soft-blue); }
.v-card__media img { width: 100%; height: 100%; object-fit: cover; }
.v-card__body { padding: 24px 26px 30px; display: flex; flex-direction: column; gap: 14px; flex-grow: 1; }
.v-card__title { margin: 0; font-size: 24px; font-weight: 400; letter-spacing: -0.01em; line-height: 1.25; }
.v-card__body p { color: var(--ink-2); font-size: 16px; line-height: 1.55; }

.v-lift { transition: transform .3s var(--ease), box-shadow .3s; }
.v-lift:hover { transform: translate(2px, -3px); box-shadow: var(--shadow-lift); }

.v-outline-card {
	border: 1px solid var(--line-2); border-radius: var(--radius); padding: 24px;
	transition: box-shadow .3s, background .3s;
}
.v-outline-card:hover { box-shadow: inset 0 0 0 5px var(--soft-blue); background: var(--white); }

.v-glass {
	background: rgba(255, 255, 255, .6); border: 1px solid #E2E9F1; border-radius: var(--radius);
	-webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}

.v-post-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* fold-out rows (FAQ, quality policy) */
.v-fold { background: var(--white); border-radius: var(--radius-md); padding: 0 26px; position: relative; overflow: hidden; }
.v-fold + .v-fold { margin-top: 10px; }
.v-fold summary {
	position: relative; display: flex; justify-content: space-between; align-items: center; gap: 16px;
	min-height: 74px; font-size: 19px; cursor: pointer; list-style: none;
}
.v-fold summary::-webkit-details-marker { display: none; }
.v-fold summary .v-icon { transition: transform .3s; }
.v-fold[open] summary .v-icon { transform: rotate(180deg); }
.v-fold__body { position: relative; padding: 0 0 24px; color: var(--ink-2); font-size: 16px; line-height: 1.6; }

/* 10. Footer
   ------------------------------------------------------------------------ */
.v-footer { margin-top: 110px; padding: 0 0 40px; }
.v-footer__top {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 48px 56px;
	padding-bottom: 56px; border-bottom: 1px solid var(--line);
}
.v-footer__brand { flex: 1 1 300px; max-width: 380px; display: flex; flex-direction: column; gap: 22px; }
.v-footer__logo .site-logo__img { height: 46px; width: auto; }
.v-footer__tagline { font-size: 22px; font-weight: 300; line-height: 1.35; }
.v-footer__contact { display: flex; flex-direction: column; gap: 12px; font-size: 15px; color: var(--ink-2); }
.v-footer__contact li, .v-footer__contact a { display: flex; align-items: flex-start; gap: 10px; }
.v-footer__contact .v-icon { color: var(--red); margin-top: 4px; }
.v-footer__col { flex: 0 1 160px; }
.v-footer__title { margin-bottom: 18px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.v-footer__list { display: flex; flex-direction: column; gap: 14px; font-size: 16px; }
.v-footer__bottom {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
	padding-top: 28px; font-size: 14px; color: var(--muted);
}

/* 11. Cursor glow — add data-glow to any section with position context
   Two blurred blobs in the logo colours trail the pointer (fine pointers only).
   ------------------------------------------------------------------------ */
[data-glow] { position: relative; isolation: isolate; }
.v-glow {
	position: absolute; inset: 0; z-index: 0; overflow: hidden;
	border-radius: inherit; pointer-events: none;
}
.v-glow span {
	position: absolute; left: 0; top: 0; border-radius: 50%;
	opacity: 0; transition: opacity .6s ease; will-change: transform;
}
.v-glow__a { width: 240px; height: 240px; background: rgba(230, 120, 140, .45); filter: blur(55px); }
.v-glow__b { width: 300px; height: 300px; background: rgba(90, 175, 230, .38); filter: blur(65px); }
[data-glow].is-glowing .v-glow span { opacity: 1; }

/* 12. Scroll timeline ("Our story")
   Desktop: the section pins while the line draws and milestones light up in order.
   Phones / reduced motion: a vertical timeline that fills as you scroll past.
   ------------------------------------------------------------------------ */
.v-tl { position: relative; }
.v-tl__stage { position: relative; overflow: hidden; padding: 110px 0 40px; }
.v-tl.is-pinned { height: calc(100vh + var(--n, 5) * 55vh); }
.v-tl.is-pinned .v-tl__stage {
	position: sticky; top: 0; height: 100vh; padding: 0;
	display: flex; align-items: center;
}
.v-tl__inner { position: relative; z-index: 2; width: 100%; }
.v-tl__head { max-width: 760px; margin-bottom: 72px; }

/* giant rolling year in the background */
.v-tl__bigyear {
	position: absolute; right: -1vw; bottom: -3.5vw; z-index: 1; pointer-events: none;
	font-size: clamp(150px, 25vw, 400px); font-weight: 300; line-height: .8; letter-spacing: -0.05em;
	font-variant-numeric: tabular-nums; color: transparent;
	-webkit-text-stroke: 1.5px rgba(20, 40, 58, .11);
	transform: translate3d(calc(var(--mx, 0) * -48px), calc(var(--my, 0) * -28px), 0);
	transition: transform .7s var(--ease);
}

.v-tl__rail { position: relative; }
.v-tl__line {
	position: absolute; left: 10px; right: 0; top: 9px; height: 1px;
	background: repeating-linear-gradient(90deg, rgba(20, 40, 58, .35) 0 4px, transparent 4px 8px);
}
.v-tl__fill {
	position: absolute; left: 0; top: -1px; height: 3px; width: var(--fill, 0px);
	border-radius: 3px; background: linear-gradient(90deg, var(--blue), var(--red));
	box-shadow: 0 0 14px rgba(193, 49, 58, .35);
}
.v-tl__track {
	position: relative; display: grid; gap: 24px;
	grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr));
}
.v-tl__item { position: relative; padding-top: 46px; display: flex; flex-direction: column; gap: 14px; }
.v-tl__dot {
	position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%;
	background: var(--paper); border: 2px solid var(--line-2);
	transition: background .4s, border-color .4s, transform .4s var(--ease);
}
.v-tl__dot::after {
	content: ''; position: absolute; inset: -2px; border-radius: 50%;
	border: 2px solid var(--red); opacity: 0;
}
.v-tl__year {
	font-size: clamp(36px, 3.6vw, 52px); font-weight: 300; line-height: 1; letter-spacing: -0.02em;
	transition: color .4s;
}
.v-tl__text { max-width: 240px; font-size: 16px; line-height: 1.55; color: var(--ink-2); }

/* states — only applied once the script is running, so content is never hidden without JS */
.v-tl.is-ready .v-tl__year,
.v-tl.is-ready .v-tl__text {
	opacity: .16; transform: translateY(22px);
	transition: opacity .6s ease, transform .8s var(--ease), color .4s;
}
.v-tl.is-ready .v-tl__text { transition-delay: .08s; }
.v-tl.is-ready .v-tl__item.is-on .v-tl__year,
.v-tl.is-ready .v-tl__item.is-on .v-tl__text { opacity: 1; transform: none; }
.v-tl__item.is-on .v-tl__dot { background: var(--ink); border-color: var(--ink); }
.v-tl__item.is-current .v-tl__dot { background: var(--red); border-color: var(--red); transform: scale(1.15); }
.v-tl__item.is-current .v-tl__dot::after { animation: v-pulse 1.8s ease-out infinite; }
.v-tl__item.is-current .v-tl__year { color: var(--red); }

@keyframes v-pulse {
	0%   { transform: scale(1);   opacity: .7; }
	100% { transform: scale(2.6); opacity: 0; }
}

/* phones & tablets: vertical */
@media (max-width: 900px) {
	.v-tl__head { margin-bottom: 48px; }
	.v-tl__track { grid-template-columns: 1fr; gap: 40px; }
	.v-tl__item { padding: 0 0 0 48px; }
	.v-tl__line {
		left: 9px; right: auto; top: 10px; bottom: 10px; width: 1px; height: auto;
		background: repeating-linear-gradient(180deg, rgba(20, 40, 58, .35) 0 4px, transparent 4px 8px);
	}
	.v-tl__fill {
		left: -1px; top: 0; width: 3px; height: var(--fill, 0px);
		background: linear-gradient(180deg, var(--blue), var(--red));
	}
	.v-tl__text { max-width: none; }
	.v-tl__bigyear { right: auto; left: 50%; bottom: auto; top: 40px; font-size: 34vw; opacity: .8;
		transform: translateX(-50%); }
}

/* the timeline breaks out of narrow page content when used as a shortcode */
.v-prose .v-tl { width: 100vw; margin-left: calc(50% - 50vw); color: var(--ink); line-height: 1.6; }
.v-prose .v-tl a { color: inherit; text-decoration: none; }
.v-prose .v-tl ol { list-style: none; padding-left: 0; margin: 0; }
.v-prose .v-tl h2 { margin: 0; font-weight: 300; letter-spacing: -0.025em; line-height: 1.08; }
.v-prose .v-tl p { margin: 0; }
.v-prose .v-tl .v-eyebrow { margin-bottom: 18px; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
