/* ==================================================================
   Single Program template (single-program.php)
   Design-faithful port of ProgramLevel.jsx / PageKit.jsx.
   Everything is scoped under .fv-pl. Tokens come from colors_and_type.css.
   ================================================================== */

.fv-pl { background: var(--bg-page); }
.fv-pl * { box-sizing: border-box; }

/* ---------------- Hero ---------------- */
.fv-pl-hero { position: relative; overflow: hidden; color: #fff; }
/* `.fv-pl-hero img` (the element selector) is load-bearing: Elementor's
   frontend.min.css sets `.elementor img{height:auto}` at (0,1,1), which out-ranks a
   plain `.fv-pl-hero-bg` (0,1,0) on the Elementor-built topic singles. The image then
   fell back to its natural aspect ratio, taller than the hero on wide screens, but
   SHORTER on narrow ones, leaving a strip of bare overlay under the photo and making
   object-fit:cover moot (a box that isn't the hero's size has nothing to cover).
   At (0,2,1) this wins everywhere, so height:100% holds at every breakpoint. */
.fv-pl-hero img.fv-pl-hero-bg {
	position: absolute; inset: 0; width: 100%; height: 100%;
	object-fit: cover; object-position: center; z-index: 0;
}
.fv-pl-hero-overlay {
	position: absolute; inset: 0; z-index: 1;
	background: linear-gradient(120deg, rgba(15,38,60,0.90) 0%, rgba(20,48,74,0.74) 55%, rgba(28,58,86,0.46) 100%);
}
/* Navy fallback so the hero never renders as bare text when no featured image */
.fv-pl-hero:not(:has(.fv-pl-hero-bg)) { background: var(--navy-800); }
/* Faint white fox-mark watermark (design: InteriorHero photo variant, PageKit.jsx).
   z-index 1 ties with .fv-pl-hero-overlay and wins on source order (the mark is
   printed after the overlay), so it reads over the gradient exactly as the design
   stacks it, while .fv-pl-hero-inner's z-index 2 keeps the title and breadcrumb
   above it. The negative offsets bleed off the corner; .fv-pl-hero clips them. */
.fv-pl-hero-mark {
	position: absolute; z-index: 1;
	width: 360px; height: auto;
	top: -70px; right: -40px;
	opacity: 0.08;
	transform: rotate(-8deg);
	pointer-events: none;
	user-select: none;
}
.fv-pl-hero-inner {
	position: relative; z-index: 2;
	max-width: 1200px; margin: 0 auto; padding: 70px 28px 84px;
}
.fv-pl-crumbs {
	display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
	margin-bottom: 26px; font-size: 13.5px; font-weight: 500;
}
.fv-pl-hero .fv-pl-crumbs a,
.fv-pl-hero .fv-pl-crumbs a:link,
.fv-pl-hero .fv-pl-crumbs a:visited { color: rgba(255,255,255,0.78); text-decoration: none; }
.fv-pl-hero .fv-pl-crumbs a:hover { color: #fff; }
.fv-pl-hero .fv-pl-crumbs [aria-current="page"] { color: #fff; }
.fv-pl-chev { color: rgba(255,255,255,0.5); flex: none; }
.fv-pl-title {
	margin: 0; max-width: 880px;
	font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em;
	font-size: clamp(40px, 4.8vw, 60px); line-height: 1.05;
}
.fv-pl-accent { color: var(--honey-300); }
/* size/line-height come from .fv-lead (design system); only colour + rhythm here */
.fv-pl-lead { margin: 22px 0 0; max-width: 620px; }
/* Hero H1 width, matches the design's 880px title measure (mental-health.html) */
.fv-mh-hero-title { max-width: 880px; }
/* Hero text is white over the photo/navy, scoped so nothing else can dim it */
.fv-pl-hero .fv-pl-title { color: #fff; }
.fv-pl-hero .fv-pl-title .fv-pl-accent { color: var(--honey-300); }
.fv-pl-hero .fv-pl-lead { color: #fff; }

/* ---------------- Body: intro + schedule | aside ---------------- */
/* Keep this a single-class selector: the responsive block below re-targets
   `.fv-pl-grid`, and a `.fv-pl-body > .fv-pl-grid` compound (0,2,0) would
   out-specify it and pin the desktop columns at every width. */
.fv-pl-grid {
	max-width: 1200px; margin: 0 auto; padding: 80px 28px;
	display: grid; grid-template-columns: 1.6fr 1fr; gap: 56px; align-items: start;
}

/* Prose (not defined in colors_and_type.css, ported from the design page.css) */
.fv-pl-prose { font-family: var(--font-body); font-size: 17.5px; line-height: 1.75; color: var(--ink-700); }
.fv-pl-prose p { margin: 0 0 20px; }
.fv-pl-prose p:last-child { margin-bottom: 0; }
.fv-pl-prose strong { color: var(--ink-900); font-weight: 700; }
.fv-pl-prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.fv-pl-prose h2, .fv-pl-prose h3 { font-family: var(--font-display); color: var(--ink-900); letter-spacing: -0.02em; margin: 38px 0 14px; }
.fv-pl-prose h3 { font-size: 27px; font-weight: 700; }
.fv-pl-prose ul, .fv-pl-prose ol { margin: 0 0 22px; padding-left: 22px; }
.fv-pl-prose li { margin: 0 0 8px; }

.fv-pl-block-title { margin: 0 0 20px; }
.fv-pl-schedule { margin-top: 38px; }
.fv-pl-sched-list { display: flex; flex-direction: column; gap: 12px; }
.fv-pl-sched-row {
	display: flex; gap: 18px; align-items: center;
	background: #fff; border: 1px solid var(--border);
	border-radius: var(--radius-md); padding: 16px 20px;
}
.fv-pl-sched-k {
	flex: none; min-width: 90px;
	font-family: var(--font-display); font-weight: 700; color: var(--navy-700); font-size: 16px;
}
.fv-pl-sched-sep { width: 1px; align-self: stretch; background: var(--divider); flex: none; }
.fv-pl-sched-v { color: var(--ink-700); }

/* ---------------- Aside, the sticky CTA lives here ---------------- */
.fv-pl-aside {
	align-self: stretch;            /* span the full row height so the CTA can travel */
	display: flex; flex-direction: column; gap: 18px;
}

/* "Ready to talk?", sticky on scroll, staying above the checklist below it */
.fv-pl-cta {
	position: sticky; top: 100px; z-index: 2;
	background: var(--navy-800); color: #fff;
	border-radius: var(--radius-xl); padding: 32px 30px; overflow: hidden;
}
.fv-pl-cta::before {
	content: ''; position: absolute; inset: 0;
	background: radial-gradient(120% 120% at 100% 0%, rgba(123,165,147,0.34), transparent 55%);
}
.fv-pl-cta-inner { position: relative; }
/* Scoped under .fv-pl-cta so these beat the single-class .fv-h4/.fv-body dark colour */
.fv-pl-cta .fv-pl-cta-title { color: #fff; margin: 0 0 8px; }
.fv-pl-cta .fv-pl-cta-text { color: var(--navy-100); font-size: 15px; line-height: 1.6; margin: 0 0 22px; }
.fv-pl-cta .fv-pl-cta-tel { color: #fff; }
.fv-pl-cta-btns { display: flex; flex-direction: column; gap: 11px; }
.fv-pl-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 13px 20px; border-radius: var(--radius-pill);
	font-family: var(--font-body); font-size: 15px; font-weight: 600;
	text-decoration: none; cursor: pointer; border: 1px solid transparent;
	transition: transform var(--dur-base) var(--ease-standard), background var(--dur-base) var(--ease-standard);
}
.fv-pl-btn:hover { transform: translateY(-1px); }
.fv-pl-btn--solid { background: #fff; color: var(--navy-800); }
.fv-pl-btn--solid:hover { background: var(--navy-50); }
.fv-pl-btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.42); }
.fv-pl-btn--outline:hover { background: rgba(255,255,255,0.08); }
/* Keep the inverse buttons white even against the theme's global link colour */
.fv-pl-cta .fv-pl-btn--solid { color: var(--navy-800); }
.fv-pl-cta .fv-pl-btn--outline,
.fv-pl-cta .fv-pl-btn--outline:link,
.fv-pl-cta .fv-pl-btn--outline:visited { color: #fff; }
.fv-pl-cta-tel {
	display: flex; align-items: center; gap: 9px; margin-top: 22px;
	color: #fff; text-decoration: none; font-weight: 600; font-size: 16px;
}
.fv-pl-cta-tel svg { color: var(--sage-300); }

/* Suitability checklist card */
.fv-pl-checklist {
	background: #fff; border: 1px solid var(--border);
	border-radius: var(--radius-lg); padding: 32px 30px; box-shadow: var(--shadow-sm);
}
.fv-pl-checklist-title { margin: 0 0 18px; }
.fv-pl-checklist-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.fv-pl-checklist-item { display: flex; gap: 12px; align-items: flex-start; }
.fv-pl-checklist-item span:last-child { color: var(--ink-700); }
.fv-pl-check {
	flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%;
	background: var(--sage-100); color: var(--sage-700);
	display: flex; align-items: center; justify-content: center;
}

/* Utility: balanced heading wrap (Elementor heading widgets via CSS class) */
.fv-balance, .fv-balance .elementor-heading-title { text-wrap: balance; }
/* Utility: kill the widget bottom margin (beats the kit's --kit-widget-spacing calc) */
.fv-mb0.elementor-widget { margin-bottom: 0 !important; }
/* Utility: design arch image top (SplitFeature arch), two-axis ellipse the
   Elementor border-radius control can't express */
.fv-arch-img img { border-radius: 50% 50% 14px 14px / 30% 30% 14px 14px !important; }

/* ---------------- Shared section heading (centered, dash eyebrow) ---------------- */
.fv-pl-heading { text-align: center; margin-bottom: 54px; }
/* Kit-proof: the Elementor kit styles bare h2/h3 (navy, 600, 1.2em) with higher
   specificity than .fv-h2/.fv-h4, re-assert the design tokens for this section. */
.fv-pl-heading .fv-pl-heading-title {
	color: var(--fg-1);
	font-size: var(--text-4xl);
	font-weight: 700;
	line-height: var(--leading-tight);
	letter-spacing: -0.024em;
	text-wrap: balance;
}
/* Sub-line under section titles, design Heading sub = .fv-lead (21px, fg-2) */
.fv-pl-heading .fv-pl-sub {
	font-family: var(--font-body);
	font-size: var(--text-lg);
	line-height: var(--leading-relaxed);
	color: var(--fg-2);
}
.fv-pl-eyebrow {
	display: inline-flex; align-items: center; gap: 12px;
	font-family: var(--font-body); font-size: 13px; font-weight: 700;
	letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage-700);
}
.fv-pl-eyebrow::before, .fv-pl-eyebrow::after {
	content: ''; width: 28px; height: 1.5px; background: var(--sage-500);
}
.fv-pl-heading-title { margin: 20px 0 0; }
.fv-pl-sub { margin: 18px auto 0; max-width: 640px; }

/* ---------------- What's included ---------------- */
.fv-pl-incl { background: var(--cream); }
.fv-pl-incl-inner { max-width: 1200px; margin: 0 auto; padding: 96px 28px; }
.fv-pl-incl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.fv-pl-incl-card {
	background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
	padding: 30px 26px; box-shadow: var(--shadow-xs);
	transition: transform var(--dur-base) var(--ease-standard), box-shadow var(--dur-base) var(--ease-standard), border-color var(--dur-base) var(--ease-standard);
}
.fv-pl-incl-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--sage-200); }
.fv-pl-incl-icon {
	width: 52px; height: 52px; margin-bottom: 18px; border-radius: 50%;
	background: var(--sage-100); color: var(--sage-700);
	display: flex; align-items: center; justify-content: center;
}
.fv-pl-incl-icon svg { width: 24px; height: 24px; }
.fv-pl-incl-title { margin: 0 0 9px; font-size: 20px; }
.fv-pl-incl-desc { margin: 0; color: var(--ink-600); }

/* ---------------- Levels of care ---------------- */
.fv-pl-levels { background: var(--sage-mist); position: relative; overflow: hidden; }
/* Faint fox-mark watermark (design: Watermark tone=sage, bottom-left) */
.fv-pl-levels-mark {
	position: absolute;
	width: 420px;
	height: auto;
	bottom: -90px;
	left: -110px;
	opacity: 0.06;
	transform: rotate(10deg);
	pointer-events: none;
	user-select: none;
	z-index: 0;
}
.fv-pl-levels-inner { max-width: 1200px; margin: 0 auto; padding: 96px 28px; position: relative; z-index: 1; }
.fv-pl-levels-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.fv-pl-level-card {
	display: flex; flex-direction: column; text-decoration: none;
	background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
	padding: 28px; box-shadow: var(--shadow-sm);
	transition: transform var(--dur-base) var(--ease-standard), box-shadow var(--dur-base) var(--ease-standard);
}
a.fv-pl-level-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.fv-pl-level-card.is-current { border-color: var(--sage-400); box-shadow: 0 0 0 1px var(--sage-400), var(--shadow-sm); cursor: default; }
.fv-pl-level-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.fv-pl-level-icon {
	width: 48px; height: 48px; border-radius: 14px; background: var(--navy-50);
	color: var(--navy-700); display: flex; align-items: center; justify-content: center;
}
.fv-pl-level-icon svg { width: 23px; height: 23px; }
.fv-pl-level-tag {
	font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
	color: var(--clay-600); background: var(--clay-50); padding: 5px 11px; border-radius: var(--radius-pill);
}
/* Kit-proof (see .fv-pl-heading-title): bare-h3 kit rule must not restyle these */
.fv-pl-levels .fv-pl-level-name,
.fv-pl-grid .fv-pl-level-name {
	margin: 0 0 10px;
	font-size: 21px;
	color: var(--fg-1);
	font-weight: 700;
	line-height: var(--leading-snug);
}
.fv-pl-level-desc { margin: 0 0 16px; color: var(--ink-600); flex: 1; }
.fv-pl-level-hrs {
	display: flex; align-items: center; gap: 8px; padding-top: 14px;
	border-top: 1px solid var(--divider);
	font-size: 13.5px; font-weight: 600; color: var(--sage-700);
}
.fv-pl-level-hrs svg { color: var(--sage-600); }

/* ---------------- Contact band (pre-footer) ---------------- */
.fv-pl-contact { position: relative; overflow: hidden; background: var(--navy-900); }
.fv-pl-contact-overlay {
	position: absolute; inset: 0;
	background: linear-gradient(115deg, rgba(15,40,64,0.94) 0%, rgba(20,52,82,0.86) 48%, rgba(34,66,52,0.72) 100%);
}
.fv-pl-contact-inner { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 92px 28px; }
.fv-pl-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.fv-pl-eyebrow--light { color: var(--sage-200); }
.fv-pl-eyebrow--light::before, .fv-pl-eyebrow--light::after { background: var(--sage-300); }
.fv-pl-contact .fv-pl-contact-title { margin: 18px 0 16px; color: #fff; }
.fv-pl-contact .fv-pl-contact-text { margin: 0 0 26px; color: var(--navy-100); }
.fv-pl-contact-rows { display: flex; flex-direction: column; gap: 16px; }
.fv-pl-contact-row { display: flex; align-items: center; gap: 14px; }
.fv-pl-contact-ico {
	flex: none; width: 46px; height: 46px; border-radius: 50%;
	background: rgba(255,255,255,0.14); color: #fff;
	display: flex; align-items: center; justify-content: center;
}
.fv-pl-contact-label { font-size: 13px; color: var(--navy-200); }
.fv-pl-contact-value { font-size: 16.5px; font-weight: 600; color: #fff; }
.fv-pl-contact-card {
	background: #fff; border-radius: var(--radius-xl);
	padding: 38px 36px; box-shadow: var(--shadow-xl);
}
.fv-pl-contact-card-title { margin: 0 0 8px; }
.fv-pl-contact-card-text { margin: 0 0 22px; color: var(--ink-600); }
.fv-pl-contact-card-btns { display: flex; flex-direction: column; gap: 11px; }
.fv-pl-btn--navy { background: var(--navy-800); color: #fff; }
.fv-pl-btn--navy:hover { background: var(--navy-900); }
.fv-pl-btn--ghost { background: transparent; color: var(--navy-800); border-color: var(--border-strong); }
.fv-pl-btn--ghost:hover { background: var(--navy-50); }

/* ---------------- Responsive ---------------- */
@media (max-width: 980px) {
	/* minmax(0,…), not a bare 1fr: a 1fr track floors at the content's min-content
	   width, which the schedule rows push to ~343px, wider than the padding box on
	   a ≤360px screen, so the row escaped the gutter and scrolled the page. */
	.fv-pl-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 56px; padding-bottom: 56px; }
	.fv-pl-aside { align-self: auto; }
	/* `relative`, NOT `static`: un-sticking is the only goal, but the ::before glow
	   above is `absolute; inset:0` and needs this card as its containing block.
	   Under `static` there is no positioned ancestor at all here, so the glow sized
	   to the initial containing block, a full-viewport wash that `overflow:hidden`
	   can't clip (an abspos box is only clipped by ancestors in its containing
	   block chain). top/z-index MUST be reset with it: `top:100px; z-index:2` above
	   are inert under `static` but live under `relative`, which would drop the card
	   100px onto the At a Glance card and paint it over the top. */
	.fv-pl-cta { position: relative; top: auto; z-index: auto; }  /* no sticky on stacked mobile layout */
	.fv-pl-incl-grid, .fv-pl-levels-grid { grid-template-columns: 1fr 1fr; }
	.fv-pl-contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 600px) {
	.fv-pl-hero-inner { padding: 54px 20px 64px; }
	/* 40px matches the Elementor topic-detail section's mobile step (condition.css),
	   so program and condition/therapy/substance share one vertical rhythm. */
	.fv-pl-grid { padding: 40px 20px; }
	.fv-pl-incl-inner, .fv-pl-levels-inner, .fv-pl-contact-inner { padding: 64px 20px; }
	.fv-pl-incl-grid, .fv-pl-levels-grid { grid-template-columns: 1fr; }
	.fv-pl-contact-card { padding: 30px 24px; }
}
