/* =================================================================
   c-theme.css — Continuum Care landing page design system
   All styles scoped to .c-theme or use unique class names.
   No global resets. No Bootstrap/Tabler class redefinitions.
   Conflicting names remapped:
     .container -> .c-wrap
     .btn       -> .c-btn
     .btn-primary / .btn-secondary -> .c-btn--primary / .c-btn--secondary
     .lead      -> .c-lead
     .section   -> .c-section
   ================================================================= */

/* --- Fonts (Roboto & Playfair loaded by header.cfm; Lora for trust stats) --- */
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@600;700&display=swap');

/* c-theme pages sit inside Tabler's standard .container-xl so the header,
   nav, and content all line up at the same left edge as the rest of the
   site. The hero gradient breaks out via a pseudo-element below. */

/* Force a vertical scrollbar so the centered container width is identical
   on every page. Without this, short pages (sign in, sometimes catalog
   before AJAX content arrives) have no scrollbar, gain ~17px of viewport
   width, and the centered content visibly shifts right on wide desktops
   compared to longer pages that do have a scrollbar. */
html { overflow-y: scroll; }

/* Allow the hero's full-bleed pseudo-element to extend past container-xl
   without creating a horizontal scrollbar. overflow-x: clip behaves like
   hidden but doesn't establish a scroll container, so sticky positioning
   elsewhere on the page still works. */
body { overflow-x: clip; }

/* Pages that include a c-theme block don't want top spacing above the
   hero — it should sit flush with the navbar. Suppress both Tabler's
   .page-body top margin and the .container-xl py-4 top padding. */
.page-body:has(.c-theme) { margin-top: 0 !important; padding-top: 0 !important; }
.container-xl:has(.c-theme) { padding-top: 0 !important; }

/* --- Theme wrapper (all design tokens live here, not :root) ------ */
.c-theme {
	/* palette */
	--c-paper: #faf6ee;
	--c-paper-deep: #f3edde;
	--c-surface: #fff;
	--c-ink: #1f2937;
	--c-ink-soft: #4b5563;
	--c-muted: #6b6353;
	--c-teal: #3b8acb;
	--c-teal-deep: #163a56;
	--c-teal-pale: #e2efef;
	--c-terracotta: #d87a47;
	--c-terracotta-deep: #c46733;
	--c-terracotta-pale: #fbe9dc;
	--c-gold: #c8985d;
	--c-gold-pale: #efe2c9;
	--c-green-pale: #edf7db;
	--c-border: #ece6d6;

	/* typography */
	--font-sans: "Roboto", "Avenir", system-ui, -apple-system, "Segoe UI", helvetica, arial, sans-serif;
	--font-serif: "Playfair Display", georgia, "Times New Roman", times, serif;
	--fs-h1: 2rem;
	--fs-h2: 1.625rem;
	--fs-h3: 1.25rem;
	--fs-h4: 1.125rem;
	--fs-body: 1rem;
	--fs-small: .875rem;
	--lh-tight: 1.2;
	--lh-normal: 1.5;
	--lh-loose: 1.75;

	/* spacing */
	--space-1: .25rem;
	--space-2: .5rem;
	--space-3: .75rem;
	--space-4: 1rem;
	--space-5: 1.5rem;
	--space-6: 2rem;
	--space-7: 2.5rem;
	--space-8: 3rem;
	--space-9: 4rem;
	--space-10: 5rem;

	/* radii & shadows */
	--c-radius: 14px;
	--c-radius-lg: 22px;
	--c-shadow: 0 18px 40px rgb(31 41 55 / 8%);
	--c-shadow-lg: 0 28px 80px rgb(14 92 92 / 14%);

	/* layout */
	--gutter: 0.75rem;
	--transition-fast: .15s ease;

	background: var(--c-paper);
	color: var(--c-ink);
	font-family: var(--font-sans);
	font-size: var(--fs-body);
	line-height: var(--lh-normal);
}

/* Responsive token overrides */
@media (min-width: 48rem) {
	.c-theme {
		--fs-h1: 2.5rem;
		--fs-h2: 2rem;
		--fs-h3: 1.375rem;
		--fs-h4: 1.25rem;
		--gutter: 1.25rem;
	}
}
@media (min-width: 80rem) {
	.c-theme {
		--fs-h1: 3.25rem;
		--fs-h2: 2.25rem;
		--gutter: var(--space-7);
	}
}

/* --- Scoped resets (only inside .c-theme) ------------------------ */
.c-theme h1, .c-theme h2, .c-theme h3, .c-theme h4,
.c-theme p, .c-theme blockquote, .c-theme figure {
	margin: 0;
}
.c-theme ul[role=list],
.c-theme ol[role=list] {
	list-style: none;
	padding: 0;
	margin: 0;
}

/* --- Typography -------------------------------------------------- */
.c-theme h1, .c-theme h2, .c-theme h3, .c-theme h4 {
	color: var(--c-ink);
	font-family: var(--font-serif);
	line-height: var(--lh-tight);
	font-weight: 600;
}
.c-theme h1 { font-size: var(--fs-h1); }
.c-theme h2 { font-size: var(--fs-h2); }
.c-theme h3 { font-size: var(--fs-h3); }
.c-theme h4 { font-size: var(--fs-h4); }
.c-theme p  { color: var(--c-ink-soft); line-height: var(--lh-loose); }
.c-theme a:not(.btn)  { color: inherit; }

/* --- Layout helpers ---------------------------------------------- */
.c-wrap {
	max-width: 80rem;
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.c-section {
	padding-block: var(--space-8);
}
@media (min-width: 48rem) {
	.c-section { padding-block: var(--space-10); }
}

/* --- Shared component classes ------------------------------------ */
.eyebrow {
	text-transform: uppercase;
	letter-spacing: .14em;
	font-size: .75rem;
	font-weight: 700;
	color: var(--c-teal);
	margin-block-end: var(--space-3);
}
.eyebrow-light { color: var(--c-gold) !important; }

.section-head {
	max-width: 48rem;
	margin-block-end: var(--space-7);
}
.section-sub {
	margin-block-start: var(--space-3);
	font-size: 1rem;
	max-width: 40rem;
}

.c-lead {
	margin-block-start: var(--space-4);
	font-size: 1.0625rem;
	max-width: 36rem;
}

.cta-row {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-3);
	margin-block-start: var(--space-5);
}

/* Buttons use the site's existing Bootstrap/Tabler .btn styles */

/* =================================================================
   SECTIONS
   ================================================================= */

/* --- Hero -------------------------------------------------------- */
.hero {
	padding-block: var(--space-9) var(--space-8);
	position: relative;
	isolation: isolate; /* contain the ::before's z-index: -1 to this hero */
}
/* Full-bleed gradient. The pseudo-element extends past .container-xl to
   the viewport edges using a negative-margin technique. body's
   overflow-x: clip prevents the overflow from causing horizontal scroll. */
.hero::before {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	left: calc(50% - 50vw);
	right: calc(50% - 50vw);
	background:
		radial-gradient(circle at 0% 0%, var(--c-terracotta-pale), transparent 45%),
		radial-gradient(circle at 100% 10%, var(--c-teal-pale), transparent 50%),
		var(--c-paper);
	z-index: -1;
	pointer-events: none;
}
.hero-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-7);
	align-items: start;
}
.hero-copy h1 {
	font-size: clamp(2.25rem, 6vw, 3.5rem);
	letter-spacing: -.01em;
}
.hero-copy h1 em {
	font-style: italic;
	color: var(--c-teal);
	position: relative;
	white-space: nowrap;
}
.hero-copy h1 em::after {
	content: "";
	position: absolute;
	inset-block-end: .06em;
	inset-inline-start: 0;
	inline-size: 100%;
	block-size: .18em;
	background: var(--c-terracotta);
	opacity: .35;
	z-index: -1;
}
.hero-aside {
	padding-block-start: var(--space-2);
}
.hero-pull {
	font-family: var(--font-serif);
	font-style: italic;
	font-size: 1.375rem;
	color: var(--c-ink);
	line-height: var(--lh-normal);
	margin-block-end: var(--space-5);
}

/* Who-cards (hero sidebar) */
.who-cards {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}
.who-card {
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-inline-start: 4px solid var(--c-teal);
	border-radius: var(--c-radius);
	padding: var(--space-4) var(--space-5);
	box-shadow: var(--c-shadow);
}
.who-label {
	text-transform: uppercase;
	letter-spacing: .1em;
	font-size: .6875rem;
	font-weight: 800;
	color: var(--c-teal);
	margin-block-end: 4px;
}
.who-copy {
	font-size: .875rem;
	color: var(--c-ink-soft);
}

/* Sections whose background color differs from the body (#faf6ee) need a
   full-bleed pseudo-element so the color extends past container-xl to the
   viewport edges. Sections with .c-paper backgrounds (.audience, .steps,
   .final-cta) already appear full-bleed because the body is the same
   color. */
.trust, .problem, .benefits {
	position: relative;
	isolation: isolate;
}
.trust::before, .problem::before, .benefits::before {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	left: calc(50% - 50vw);
	right: calc(50% - 50vw);
	z-index: -1;
	pointer-events: none;
}
.trust::before    { background: var(--c-teal); }
.problem::before  { background: var(--c-teal-deep); }
.benefits::before { background: var(--c-paper-deep); }

/* --- Trust strip ------------------------------------------------- */
.trust {
	background: var(--c-teal);
	color: #fff;
	padding-block: var(--space-7);
}
.trust-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-5);
	text-align: center;
}
.trust-stat {
	font-family: "Lora", georgia, "Times New Roman", times, serif;
	font-size: 2.75rem;
	font-weight: 700;
	color: #ffd97a;
	line-height: 1;
}
.trust-label {
	color: #ffffffeb;
	font-size: .875rem;
	margin-block-start: var(--space-2);
	line-height: var(--lh-normal);
}
.trust p {
	color: #fff;
}

/* --- Audience ---------------------------------------------------- */
.audience {
	background: var(--c-paper);
}
.aud-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-5);
}
.aud-card {
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: var(--c-radius);
	padding: var(--space-7);
	box-shadow: var(--c-shadow);
	display: flex;
	flex-direction: column;
	transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.aud-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--c-shadow-lg);
}
.aud-label {
	text-transform: uppercase;
	letter-spacing: .12em;
	font-size: .6875rem;
	font-weight: 800;
	color: var(--c-terracotta);
	margin-block-end: var(--space-2);
}
.aud-card h3 {
	font-size: 1.375rem;
	margin-block-end: var(--space-3);
}
.aud-copy {
	color: var(--c-ink-soft);
	font-size: .9375rem;
	margin-block-end: var(--space-5);
	flex: 1;
}
.aud-cta {
	align-self: flex-start;
	color: var(--c-teal);
	font-weight: 700;
	text-decoration: none;
	font-size: .9375rem;
}
.aud-cta:hover {
	color: var(--c-teal-deep);
	text-decoration: underline;
}

/* --- Problem / Focus --------------------------------------------- */
.problem {
	background: var(--c-teal-deep);
	padding-block: var(--space-9);
}
.problem-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-8);
}
.c-theme .problem h2 {
	color: #fff;
	font-size: clamp(1.625rem, 3.5vw, 2.125rem);
}
.problem p {
	color: #f0f0f0;
}
.problem-sub {
	color: #fffc;
	margin-block-start: var(--space-3);
	font-size: 1rem;
}
.insight {
	margin-block-start: var(--space-5);
	border-inline-start: 4px solid var(--c-gold);
	padding: var(--space-4) var(--space-5);
	border-radius: 0 var(--c-radius) var(--c-radius) 0;
	background: #ffffff0f;
	font-family: var(--font-serif);
	font-style: italic;
	color: #ffffffd9;
	line-height: var(--lh-normal);
}
.focus-cards {
	margin-block-start: var(--space-5);
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}
.focus-cards li {
	border-block-end: 1px solid rgb(255 255 255 / 12%);
	padding-block-end: var(--space-3);
}
.focus-cards li:last-child {
	border-block-end: 0;
}
.focus-label {
	text-transform: uppercase;
	letter-spacing: .1em;
	font-size: .6875rem;
	font-weight: 800;
	color: #ffd97a;
	margin-block-end: 4px;
}
.focus-copy {
	color: #ffffffd9;
	font-size: .9375rem;
}

/* --- Benefits ---------------------------------------------------- */
.benefits {
	background: var(--c-paper-deep);
}
.benefit-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-4);
}
.benefit {
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: var(--c-radius);
	padding: var(--space-6);
	box-shadow: var(--c-shadow);
}
.benefit-tag {
	display: inline-block;
	text-transform: uppercase;
	letter-spacing: .08em;
	font-size: .6875rem;
	font-weight: 700;
	background: var(--c-green-pale);
	color: #006624;
	padding: 4px 10px;
	border-radius: 6px;
	margin-block-end: var(--space-4);
}
.benefit h4 {
	font-size: 1.125rem;
	margin-block-end: var(--space-2);
}
.benefit p {
	font-size: .9375rem;
}

/* --- Steps ------------------------------------------------------- */
.steps {
	background: var(--c-paper);
}
.step-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-5);
}
.step-card {
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: var(--c-radius);
	padding: var(--space-6);
}
.step-num {
	font-family: var(--font-serif);
	color: var(--c-terracotta);
	font-weight: 700;
	font-size: 1.5rem;
	margin-block-end: var(--space-2);
}
.step-card h3 {
	font-size: 1.25rem;
	margin-block-end: var(--space-2);
}
.step-card p {
	font-size: .9375rem;
}

/* --- Final CTA --------------------------------------------------- */
.final-cta {
	background: var(--c-paper);
	padding-block: var(--space-9);
}
.final-card {
	background: var(--c-teal);
	color: #fff;
	padding: var(--space-9);
	border-radius: var(--c-radius-lg);
	text-align: center;
	box-shadow: var(--c-shadow-lg);
}
.final-card .eyebrow {
	color: #fff;
}
.final-card h2 {
	color: #fff;
	font-size: clamp(1.875rem, 4.5vw, 2.75rem);
	margin-block-end: var(--space-3);
}
.final-card p {
	color: #ffffffd9;
	max-width: 36rem;
	margin-inline: auto;
}
.final-card .cta-row {
	justify-content: center;
	margin-block-start: var(--space-5);
}

/* =================================================================
   RESPONSIVE LAYOUTS
   ================================================================= */
@media (min-width: 48rem) {
	.trust-row     { grid-template-columns: repeat(3, 1fr); }
	.aud-grid      { grid-template-columns: repeat(2, 1fr); }
	.problem-grid  { grid-template-columns: 1fr 1fr; gap: var(--space-9); }
	.benefit-grid  { grid-template-columns: repeat(2, 1fr); }
	.benefit-wide  { grid-column: 1 / -1; }
	.step-grid     { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 64rem) {
	.hero-grid    { grid-template-columns: 1.3fr 1fr; gap: var(--space-9); }
	.benefit-grid { grid-template-columns: repeat(3, 1fr); }
	.benefit-wide { grid-column: 2 / 4; }
}
