/* Shared styles for condition pages + privacy page — matches index.html */
:root {
  --navy: #0a1628; --deep-blue: #0d2444; --mid-blue: #1a3a6b;
  --accent: #c8a96e; --accent-light: #e8d5a8;
  --white: #ffffff; --off-white: #f8f6f2; --light-grey: #f0ede8;
  --text-dark: #1a1a2e; --text-mid: #4a5568; --text-light: #718096;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; color: var(--text-dark); background: var(--white); overflow-x: hidden; }
h1, h2, h3, h4 { font-family: 'Cormorant Garamond', serif; font-weight: 500; }
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }

/* NAV */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(10,22,40,0.97); backdrop-filter: blur(10px);
  padding: 0 5%; display: flex; justify-content: space-between; align-items: center; height: 70px; border-bottom: 1px solid rgba(200,169,110,0.2); }
.nav-logo { font-family: 'Cormorant Garamond', serif; color: var(--white); font-size: 1.1rem; text-decoration: none; }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 1.6rem; list-style: none; align-items: center; }
.nav-links a { color: rgba(255,255,255,0.8); text-decoration: none; font-size: 0.82rem; letter-spacing: 0.05em; text-transform: uppercase; }
.nav-links a:hover { color: var(--accent); }
.nav-cta { background: var(--accent); color: var(--navy) !important; padding: 0.5rem 1.2rem; border-radius: 2px; font-weight: 500; }
.nav-phone { color: var(--accent-light) !important; text-transform: none !important; }

/* HERO */
.page-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--deep-blue) 55%, var(--mid-blue) 100%);
  padding: 130px 8% 70px; color: var(--white); position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.crumbs { font-size: 0.78rem; color: rgba(255,255,255,0.5); margin-bottom: 1.2rem; }
.crumbs a { color: var(--accent-light); text-decoration: none; }
.page-hero .eyebrow { font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.8rem; }
.page-hero h1 { font-size: 3.2rem; line-height: 1.1; font-weight: 400; max-width: 820px; margin-bottom: 1.2rem; }
.page-hero .lead { color: rgba(255,255,255,0.75); font-size: 1.05rem; line-height: 1.7; max-width: 720px; margin-bottom: 2rem; }
.btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary, .btn-outline, .btn-navy { display: inline-block; padding: 0.9rem 1.8rem; text-decoration: none; font-size: 0.88rem;
  font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; border-radius: 2px; transition: all 0.3s; }
.btn-primary { background: var(--accent); color: var(--navy); }
.btn-primary:hover { background: var(--accent-light); transform: translateY(-2px); }
.btn-outline { border: 1px solid rgba(255,255,255,0.35); color: var(--white); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--mid-blue); }

/* URGENT */
.urgent { background: #fdf1ee; border-left: 4px solid #b23b2a; padding: 1rem 8%; color: #6e1f14; font-size: 0.9rem; line-height: 1.6; }
.urgent strong { color: #8f2416; }

/* CONTENT */
.page-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 4rem; padding: 70px 8%; align-items: start; }
.content h2 { font-size: 2rem; color: var(--navy); margin: 2.4rem 0 0.9rem; line-height: 1.2; }
.content h2:first-child { margin-top: 0; }
.content p { color: var(--text-mid); line-height: 1.8; margin-bottom: 1rem; font-size: 0.98rem; }
.content ul { list-style: none; margin: 0.4rem 0 1.2rem; }
.content ul li { position: relative; padding: 0.45rem 0 0.45rem 1.5rem; color: var(--text-mid); line-height: 1.6; font-size: 0.95rem; border-bottom: 1px solid var(--light-grey); }
.content ul li::before { content: '→'; position: absolute; left: 0; color: var(--accent); }
.content a { color: var(--mid-blue); font-weight: 500; }
.tests { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.6rem 0 1.4rem; }
.tests span { background: var(--off-white); border: 1px solid rgba(200,169,110,0.35); color: var(--navy); padding: 0.45rem 0.9rem; border-radius: 30px; font-size: 0.85rem; }
.callout { background: var(--off-white); border-left: 4px solid var(--accent); padding: 1.3rem 1.5rem; border-radius: 0 4px 4px 0; margin: 1.5rem 0; }
.callout p { margin: 0; }

/* SIDEBAR */
.side { position: sticky; top: 95px; display: grid; gap: 1.2rem; }
.side-card { background: var(--navy); color: var(--white); padding: 1.8rem; border-radius: 4px; border: 1px solid rgba(200,169,110,0.25); }
.side-card h3 { color: var(--accent); font-size: 1.35rem; margin-bottom: 0.6rem; }
.side-card p { color: rgba(255,255,255,0.7); font-size: 0.86rem; line-height: 1.6; margin-bottom: 1rem; }
.side-card .row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 0.84rem; }
.side-card .row span:first-child { color: var(--accent-light); }
.side-card .row a { color: var(--white); text-decoration: none; }
.side-card .btn-primary { width: 100%; text-align: center; margin-top: 1rem; }
.side-doc { background: var(--off-white); padding: 1.4rem; border-radius: 4px; display: flex; gap: 1rem; align-items: center; }
.side-doc img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: center top; }
.side-doc strong { display: block; font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; color: var(--navy); }
.side-doc small { color: var(--text-light); font-size: 0.78rem; line-height: 1.4; display: block; }
.side-links { background: var(--white); border: 1px solid var(--light-grey); padding: 1.4rem; border-radius: 4px; }
.side-links h4 { font-size: 1.1rem; color: var(--navy); margin-bottom: 0.6rem; }
.side-links a { display: block; padding: 0.45rem 0; color: var(--mid-blue); text-decoration: none; font-size: 0.88rem; border-bottom: 1px solid var(--light-grey); }
.side-links a:last-child { border-bottom: none; }

/* FAQ */
.faq-item { background: var(--off-white); border-radius: 4px; margin-bottom: 0.7rem; border-left: 3px solid transparent; }
.faq-item[open] { border-left-color: var(--accent); }
.faq-item summary { list-style: none; cursor: pointer; padding: 1.1rem 1.3rem; font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; color: var(--navy);
  display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--accent); font-size: 1.5rem; font-family: 'DM Sans', sans-serif; transition: transform 0.3s; flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 1.3rem 1.2rem; color: var(--text-mid); font-size: 0.92rem; line-height: 1.7; }

/* CTA BAND */
.cta-band { background: var(--navy); padding: 60px 8%; display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); font-size: 2.2rem; max-width: 620px; line-height: 1.2; }
.cta-band h2 span { color: var(--accent); }
.disclaimer { padding: 1.5rem 8%; background: var(--off-white); color: var(--text-light); font-size: 0.78rem; line-height: 1.6; }

/* FOOTER */
footer { background: #060f1a; padding: 3rem 8%; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; border-top: 1px solid rgba(200,169,110,0.15); }
.footer-left { font-family: 'Cormorant Garamond', serif; color: rgba(255,255,255,0.8); font-size: 1rem; }
.footer-left span { color: var(--accent); }
.footer-left small { display: block; color: rgba(255,255,255,0.35); font-family: 'DM Sans', sans-serif; font-size: 0.75rem; margin-top: 0.3rem; }
.footer-right { font-size: 0.78rem; color: rgba(255,255,255,0.4); line-height: 1.8; text-align: right; }
.footer-right a { color: rgba(255,255,255,0.6); }

/* MOBILE BAR */
.mobile-bar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 999; background: var(--navy);
  border-top: 1px solid rgba(200,169,110,0.3); padding: 0.6rem 0.8rem calc(0.6rem + env(safe-area-inset-bottom)); gap: 0.6rem; }
.mobile-bar a { flex: 1; text-align: center; text-decoration: none; padding: 0.85rem 0.5rem; border-radius: 3px; font-size: 0.85rem; font-weight: 500; }
.mobile-bar .mb-call { background: var(--accent); color: var(--navy); }
.mobile-bar .mb-book { border: 1px solid rgba(255,255,255,0.3); color: var(--white); }

/* PRIVACY / PROSE PAGE */
.prose { max-width: 820px; padding: 60px 8% 80px; }
.prose h2 { font-size: 1.7rem; color: var(--navy); margin: 2rem 0 0.7rem; }
.prose p, .prose li { color: var(--text-mid); line-height: 1.8; font-size: 0.96rem; margin-bottom: 0.8rem; }
.prose ul { padding-left: 1.3rem; margin-bottom: 1rem; }
.prose a { color: var(--mid-blue); font-weight: 500; }

@media (max-width: 1100px) { .nav-phone-li { display: none; } }
@media (max-width: 900px) {
  .nav-links li:not(:last-child) { display: none; }
  .page-hero { padding: 110px 6% 50px; }
  .page-hero h1 { font-size: 2.3rem; }
  .page-body { grid-template-columns: 1fr; gap: 2.5rem; padding: 50px 6%; }
  .side { position: static; }
  .urgent, .disclaimer, .cta-band { padding-left: 6%; padding-right: 6%; }
  .cta-band h2 { font-size: 1.7rem; }
  .footer-right { text-align: left; }
  .mobile-bar { display: flex; }
  body { padding-bottom: 72px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ===== Animated visuals ===== */
.viz { margin: 1.8rem 0 2.2rem; background: #fff; border: 1px solid var(--light-grey); border-radius: 6px; padding: 1.2rem; box-shadow: 0 12px 30px rgba(10,22,40,0.05); }
.viz svg { width: 100%; height: auto; display: block; }
.viz figcaption { font-size: 0.8rem; color: var(--text-light); margin-top: 0.8rem; line-height: 1.55; font-style: italic; }
.viz-label { font: 500 13px 'DM Sans', sans-serif; fill: #0a1628; letter-spacing: 0.02em; }
.viz-title { font: 600 15px 'DM Sans', sans-serif; }
.viz-sub { font: 400 12px 'DM Sans', sans-serif; fill: #718096; }
.journey { list-style: none; display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 1rem; position: relative; padding-top: 0.4rem; }
.journey::before { content: ''; position: absolute; top: 26px; left: 12%; right: 12%; height: 2px; background: var(--light-grey); }
.journey::after { content: ''; position: absolute; top: 26px; left: 12%; height: 2px; background: var(--accent); width: 0; animation: jfill 6s ease-in-out infinite; }
@keyframes jfill { 0% { width: 0; } 70%, 100% { width: 76%; } }
.journey li { position: relative; z-index: 1; text-align: center; }
.j-num { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy);
  color: var(--accent); font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; margin-bottom: 0.7rem; box-shadow: 0 0 0 6px #fff;
  animation: jpop 6s ease-in-out infinite; animation-delay: calc(var(--i) * 1.2s); }
@keyframes jpop { 0%, 12%, 100% { transform: scale(1); } 6% { transform: scale(1.12); background: var(--accent); color: var(--navy); } }
.journey strong { display: block; font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; color: var(--navy); margin-bottom: 0.3rem; }
.journey small { display: block; font-size: 0.8rem; color: var(--text-mid); line-height: 1.5; }
@media (max-width: 700px) {
  .journey { grid-template-columns: 1fr; gap: 1.1rem; text-align: left; }
  .journey::before, .journey::after { display: none; }
  .journey li { display: grid; grid-template-columns: 44px 1fr; column-gap: 1rem; text-align: left; }
  .journey .j-num { grid-row: span 2; margin: 0; }
  .viz { padding: 0.8rem; }
}
@media (prefers-reduced-motion: reduce) { .journey::after, .j-num { animation: none; } .journey::after { width: 76%; } }

/* Sources box */
.sources { margin-top: 2.2rem; background: var(--off-white); border: 1px solid var(--light-grey); border-radius: 4px; padding: 1.3rem 1.5rem; }
.sources h3 { font-size: 1.25rem; color: var(--navy); margin-bottom: 0.3rem; }
.sources p { font-size: 0.85rem; margin-bottom: 0.4rem; }
.content .sources ul { margin: 0.3rem 0 0.4rem; }
.content .sources li { font-size: 0.86rem; border-bottom: none; padding: 0.3rem 0 0.3rem 1.5rem; }
.sources .src-date { font-size: 0.75rem; color: var(--text-light); margin: 0.4rem 0 0; }
