/* ==========================================================================
   Medical Clarity Advisors — site stylesheet (professional pass, v2)
   One file, mobile-first, zero JavaScript anywhere on the site.

   Type:  Fraunces (display) — warm, credible headings.
          Atkinson Hyperlegible (body) — designed by the Braille Institute for
          maximum legibility; the brand promise ("clarity") as a typeface.
   Signature: the dawn-horizon gradient — used in exactly two places
          (under the sticky header, above the footer) plus a small sand tick
          above card headings. Everything else stays quiet.
   ========================================================================== */

:root {
	--navy:      #142433;
	--ink:       #1D2D3A;
	--ink-soft:  #506270;
	--paper:     #F7F6F2;
	--card:      #FFFFFF;
	--line:      #E5E4DC;
	--line-soft: #EDECE5;
	--blue:      #0B5CAB;
	--blue-deep: #08457F;
	--sky-tint:  #EAF1F8;
	--sand:      #D9A441;
	--sage:      #4F7355;
	--alert:     #71222A;
	--todo:      #FFF3BF;

	--font-display: "Fraunces", Georgia, "Times New Roman", serif;
	--font-body: "Atkinson Hyperlegible", -apple-system, "Segoe UI", Roboto, sans-serif;

	--horizon: linear-gradient(90deg, #D9A441 0%, #E8C98B 32%, #A9C6E3 68%, #4C7FB8 100%);
	--shadow-card: 0 1px 2px rgba(20, 36, 51, 0.05), 0 12px 32px -20px rgba(20, 36, 51, 0.18);
	--shadow-lift: 0 2px 4px rgba(20, 36, 51, 0.06), 0 20px 44px -20px rgba(20, 36, 51, 0.26);
}

/* ---- Base ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	overflow-x: clip;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1.0625rem;          /* 17px — generous base for older readers */
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
svg { display: block; }

h1, h2, h3 {
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -0.012em;
	margin: 0 0 0.55em;
	color: var(--ink);
	text-wrap: balance;
}

h1 { font-size: clamp(2.25rem, 4.2vw + 0.9rem, 3.5rem); }
h2 { font-size: clamp(1.6rem, 2.4vw + 0.6rem, 2.25rem); }
h3 { font-size: 1.17rem; letter-spacing: 0; }

p { margin: 0 0 1em; }

a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-deep); }

:focus-visible {
	outline: 3px solid var(--blue);
	outline-offset: 2px;
	border-radius: 3px;
}

.wrap {
	max-width: 70rem;
	margin-inline: auto;
	padding-inline: clamp(1.25rem, 4vw, 2rem);
}

.section { padding-block: clamp(3rem, 7vw, 5.25rem); }
.section + .section { padding-top: 0; }

.eyebrow {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--blue-deep);
	margin-bottom: 1rem;
}
.eyebrow::before {
	content: "";
	width: 1.7rem;
	height: 3px;
	border-radius: 2px;
	background: var(--sand);
}

.lede {
	font-size: 1.18rem;
	line-height: 1.6;
	color: var(--ink-soft);
	max-width: 54ch;
}

.more-link { margin-top: 1.7rem; font-weight: 700; }
.more-link a { text-decoration: none; }
.more-link a:hover { text-decoration: underline; }

/* The signature: a thin desert-dawn horizon */
.horizon { height: 3px; background: var(--horizon); }

/* ---- Emergency banner (every page, non-dismissable) ---------------------- */

.emergency {
	margin: 0;
	padding: 0.45rem 1rem;
	background: var(--alert);
	color: #fff;
	font-size: 0.85rem;
	letter-spacing: 0.01em;
	text-align: center;
}
.emergency a { color: #fff; font-weight: 700; }

/* ---- Header / nav (sticky; no JS: nav wraps below brand on small screens) - */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--card);
	box-shadow: 0 1px 0 var(--line-soft), 0 12px 28px -22px rgba(20, 36, 51, 0.28);
}

.site-header-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem 1.75rem;
	padding-block: 0.85rem;
}

.brand {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	text-decoration: none;
	color: var(--ink);
	margin-right: auto;
}
.brand-mark { flex: none; }
.brand-name {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.18rem;
	line-height: 1.1;
	letter-spacing: -0.01em;
}

.site-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.1rem 1.35rem;
	font-size: 0.93rem;
	font-weight: 700;
}
.site-nav a {
	color: var(--ink-soft);
	text-decoration: none;
	padding: 0.35rem 0;
	border-bottom: 2px solid transparent;
	transition: color 140ms ease;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] {
	color: var(--ink);
	border-bottom-color: var(--sand);
}

/* ---- Buttons -------------------------------------------------------------- */

.btn {
	display: inline-block;
	padding: 0.78rem 1.5rem;
	border-radius: 10px;
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none;
	border: 1.5px solid transparent;
	transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease, color 140ms ease;
}
.btn-primary {
	background: var(--blue);
	color: #fff;
	box-shadow: 0 1px 2px rgba(11, 92, 171, 0.3), 0 10px 22px -12px rgba(11, 92, 171, 0.55);
}
.btn-primary:hover {
	background: var(--blue-deep);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 2px 4px rgba(8, 69, 127, 0.3), 0 14px 26px -12px rgba(8, 69, 127, 0.6);
}
.btn-ghost {
	border-color: var(--blue);
	color: var(--blue);
	background: transparent;
}
.btn-ghost:hover { background: var(--sky-tint); color: var(--blue-deep); }

.btn-visit { white-space: nowrap; padding: 0.62rem 1.25rem; font-size: 0.95rem; }

/* ---- Hero ------------------------------------------------------------------ */

.page-home main {
	background: linear-gradient(180deg, #FCFBF8 0%, var(--paper) 34rem);
}

.hero {
	padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 6vw, 4.5rem);
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.9fr);
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: center;
}
.hero h1 { max-width: 20ch; }
.hero .lede { font-size: 1.2rem; }

.cta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
	margin-top: 1.8rem;
}

.trust-list {
	list-style: none;
	margin: 2.4rem 0 0;
	padding: 1.1rem 0 0;
	border-top: 1px solid var(--line);
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem 1.7rem;
	font-size: 0.94rem;
	font-weight: 700;
	color: var(--ink-soft);
}
.trust-list li::before {
	content: "\2713\0020";
	color: var(--sage);
}

/* ---- Visit preview (decorative product mock in the home hero) --------------- */

.visit-preview {
	position: relative;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 18px;
	box-shadow: var(--shadow-lift);
	padding: 0.9rem;
	max-width: 26rem;
	justify-self: end;
	width: 100%;
}
.visit-preview::before {
	content: "";
	position: absolute;
	inset: auto -1rem -1rem auto;
	width: 9rem;
	height: 9rem;
	border-radius: 50%;
	background: radial-gradient(circle at 30% 30%, #F0DDB4, rgba(240, 221, 180, 0));
	z-index: -1;
}

.vp-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.15rem 0.35rem 0.75rem;
}
.vp-dots { display: flex; gap: 5px; }
.vp-dots i {
	width: 9px; height: 9px;
	border-radius: 50%;
	background: var(--line);
}
.vp-secure {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--sage);
}
.vp-secure svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.vp-stage {
	background: linear-gradient(165deg, #F4E4C2 0%, #D9E4F0 78%);
	border-radius: 12px;
	padding: 2.1rem 1.25rem 1.7rem;
	text-align: center;
}
.vp-avatar {
	width: 74px;
	height: 74px;
	margin: 0 auto 0.9rem;
	border-radius: 50%;
	background: var(--card);
	display: grid;
	place-items: center;
	box-shadow: 0 4px 14px -6px rgba(20, 36, 51, 0.35);
}
.vp-avatar img { width: 42px; height: 42px; }
.vp-status {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.08rem;
	color: var(--navy);
	margin: 0 0 0.3rem;
}
.vp-timer {
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--ink-soft);
	background: rgba(255, 255, 255, 0.65);
	border-radius: 99px;
	padding: 0.25rem 0.8rem;
	display: inline-block;
}

.vp-quote {
	margin: 0.9rem 0.35rem;
	background: var(--sky-tint);
	border-radius: 12px 12px 12px 3px;
	padding: 0.8rem 1rem;
	font-size: 0.94rem;
	color: var(--ink);
}

.vp-controls {
	display: flex;
	justify-content: center;
	gap: 0.8rem;
	padding: 0.35rem 0 0.45rem;
}
.vp-ctl {
	width: 42px; height: 42px;
	border-radius: 50%;
	border: 1px solid var(--line);
	display: grid;
	place-items: center;
	color: var(--ink-soft);
}
.vp-ctl svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vp-ctl-chat { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ---- Cards ------------------------------------------------------------------ */

.cards {
	display: grid;
	gap: 1.2rem;
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
	margin-top: 2rem;
}
.card {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 1.6rem 1.5rem 1.35rem;
	box-shadow: var(--shadow-card);
	transition: transform 160ms ease, box-shadow 160ms ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.card h3 { margin-bottom: 0.45em; }
.card h3::before {
	content: "";
	display: block;
	width: 1.7rem;
	height: 3px;
	border-radius: 2px;
	background: var(--sand);
	margin-bottom: 0.85rem;
}
.card p { color: var(--ink-soft); font-size: 0.96rem; margin-bottom: 0.4em; }
.card .price {
	display: block;
	margin-top: 0.8rem;
	padding-top: 0.8rem;
	border-top: 1px solid var(--line-soft);
	font-weight: 700;
	color: var(--ink);
}

/* ---- Steps (how a visit works — a real sequence, hence numbers) ------------- */

.steps {
	list-style: none;
	counter-reset: step;
	margin: 2.2rem 0 0;
	padding: 0;
	display: grid;
	gap: 1.9rem;
	max-width: 44rem;
}
.steps > li {
	counter-increment: step;
	position: relative;
	padding-left: 4.3rem;
	min-height: 3.1rem;
}
.steps > li::before {
	content: counter(step);
	position: absolute;
	left: 0;
	top: 0;
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	background: var(--navy);
	color: #fff;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.3rem;
	display: grid;
	place-items: center;
	box-shadow: 0 6px 14px -8px rgba(20, 36, 51, 0.5);
}
.steps > li:not(:last-child)::after {
	content: "";
	position: absolute;
	left: calc(1.5rem - 1px);
	top: 3.3rem;
	bottom: -1.7rem;
	width: 2px;
	background: var(--line);
}
.steps h3 { margin-bottom: 0.25em; }
.steps p { color: var(--ink-soft); margin-bottom: 0; }

/* ---- Doctors ----------------------------------------------------------------- */

.doctors-grid {
	display: grid;
	gap: 1.4rem;
	grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
	margin-top: 2rem;
}
.doctor {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: var(--shadow-card);
}
.doctor .photo,
.doctor img {
	aspect-ratio: 4 / 3;
	width: 100%;
	object-fit: cover;
}
.doctor .photo {
	display: grid;
	place-items: center;
	background: linear-gradient(160deg, #F4E4C2 0%, #C9DCEF 100%);
	color: var(--navy);
	font-family: var(--font-display);
	font-size: 1.05rem;
	font-weight: 600;
}
.doctor .doctor-body { padding: 1.3rem 1.4rem 1.4rem; }
.doctor h3 { margin-bottom: 0.15em; }
.doctor .credentials {
	color: var(--blue-deep);
	font-size: 0.88rem;
	font-weight: 700;
	margin-bottom: 0.8em;
}
.doctor p { color: var(--ink-soft); font-size: 0.96rem; }

/* ---- FAQ (native <details> — keyboard accessible, zero JS) ------------------- */

.faq-list { max-width: 48rem; margin-top: 1.8rem; }
.faq-list details {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 0.35rem 1.3rem;
	margin-bottom: 0.7rem;
	box-shadow: var(--shadow-card);
}
.faq-list summary {
	cursor: pointer;
	font-weight: 700;
	font-size: 1.03rem;
	padding: 0.85rem 2.2rem 0.85rem 0;
	position: relative;
	list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
	content: "+";
	position: absolute;
	right: 0.1rem;
	top: 50%;
	transform: translateY(-50%);
	font-family: var(--font-display);
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--blue);
	line-height: 1;
}
.faq-list details[open] summary::after { content: "\2013"; }
.faq-list summary:hover { color: var(--blue-deep); }
.faq-list details[open] summary { color: var(--blue-deep); }
.faq-list details > div { padding: 0 0.1rem 1.05rem; color: var(--ink-soft); }
.faq-list details > div p { margin-bottom: 0; }

/* ---- Call-to-action band ------------------------------------------------------ */

.cta-band {
	background: var(--navy);
	color: #C7D5E2;
	text-align: center;
	padding-block: clamp(3rem, 7vw, 4.75rem);
	position: relative;
}
.cta-band::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 3px;
	background: var(--horizon);
}
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 46rem; margin-inline: auto; }
.cta-band .cta-row { justify-content: center; margin-top: 1.9rem; }
.cta-band .btn-primary {
	background: #fff;
	color: var(--navy);
	box-shadow: 0 10px 26px -12px rgba(0, 0, 0, 0.5);
}
.cta-band .btn-primary:hover { background: var(--paper); color: var(--navy); }
.cta-band .btn-ghost { border-color: rgba(255, 255, 255, 0.65); color: #fff; }
.cta-band .btn-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; color: #fff; }
.cta-band a:not(.btn) { color: #fff; }

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

.site-footer { background: var(--navy); color: #A9BACA; margin-top: 0; }
.site-footer .horizon { height: 3px; }
.footer-grid {
	display: grid;
	gap: 2rem;
	grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
	padding-block: 3rem 1.75rem;
	font-size: 0.94rem;
}
.footer-brand {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.15rem;
	color: #fff;
	margin-bottom: 0.6em;
}
.footer-heading {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #fff;
	margin-bottom: 0.9em;
}
.footer-grid p { line-height: 1.9; }
.footer-grid a { color: #C6D4E1; text-decoration-color: rgba(198, 212, 225, 0.4); }
.footer-grid a:hover { color: #fff; }
.footer-fine {
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	padding-block: 1.3rem 2.2rem;
	font-size: 0.82rem;
	color: #8FA3B5;
}
.footer-fine p { margin-bottom: 0.5em; }

/* ---- Long-form prose (legal pages, consent, etc.) ------------------------------- */

.prose { max-width: 46rem; }
.prose h2 { margin-top: 2em; font-size: 1.45rem; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-bottom: 0.5em; }

/* Attorney-review notice on legal pages */
.review-notice {
	background: var(--todo);
	border: 2px dashed var(--sand);
	border-radius: 10px;
	padding: 0.9rem 1.15rem;
	font-size: 0.95rem;
	margin: 0 0 2rem;
}

/* ---- [PLACEHOLDER] highlight — loud on purpose (used during content drafting) --- */

mark.todo {
	background: var(--todo);
	outline: 2px dashed var(--sand);
	padding: 0.05em 0.3em;
	border-radius: 3px;
	color: var(--ink);
}

/* ---- Small screens ----------------------------------------------------------------- */

@media (max-width: 900px) {
	.hero { grid-template-columns: 1fr; }
	.visit-preview { justify-self: start; }
}

@media (max-width: 640px) {
	.site-header-inner { padding-block: 0.7rem; }
	.brand-name { font-size: 1.02rem; }
	.btn-visit { padding: 0.5rem 1rem; font-size: 0.9rem; }
	/* row 1: brand (margin-right:auto) + visit button; row 2: nav */
	.site-nav { order: 3; width: 100%; justify-content: flex-start; gap: 0.1rem 1.05rem; }
	.cta-row .btn { width: 100%; text-align: center; }
	.visit-preview { max-width: 100%; }
}

/* ---- Accessibility / politeness ----------------------------------------------------- */

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

@media print {
	.emergency, .btn-visit, .cta-band, .visit-preview { display: none; }
	.site-header { position: static; }
}
