/* ============================================================
   Lynchburg (VA) — River Blue / Brick / Ivory
   Hero: one landscape photo, full-bleed, slow Ken Burns zoom,
   text in an ivory panel on the left
   ============================================================ */

:root {
  --river: #1E4D6B;
  --river-deep: #143549;
  --river-pale: #E6EEF3;
  --brick: #B35A3C;
  --brick-deep: #93462D;
  --brick-pale: #F7E9E3;
  --sun: #E2AA5A;
  --ivory: #FBF8F2;
  --white: #FFFFFF;
  --ink: #1B2730;
  --muted: #5B6770;
  --muted-2: #939DA4;
  --line: #E7E1D6;
  --danger-bg: #FBEAE7;
  --danger-border: #E3A79B;
  --danger-text: #8A3A2A;
  --success-bg: #E9F5EE;
  --success-border: #9FCFB4;
  --success-text: #1F5C3D;
  --r: 10px;
  --r-lg: 18px;
  --serif: 'Literata', Georgia, serif;
  --sans: 'Albert Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--ink); background: var(--ivory); line-height: 1.62; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; color: var(--river-deep); line-height: 1.16; letter-spacing: -0.01em; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.w { max-width: 1140px; margin: 0 auto; padding: 0 2.5rem; }
.s { padding: 5.5rem 0; }
.s-white { background: var(--white); }
.s-river { background: var(--river); }
@media (max-width: 860px) { .w { padding: 0 1.3rem; } .s { padding: 3.5rem 0; } }

/* ---------- Nav ---------- */
nav { position: sticky; top: 0; z-index: 40; background: var(--ivory); border-bottom: 1px solid var(--line); }
.n { max-width: 1140px; margin: 0 auto; padding: 0.8rem 2.5rem; display: flex; align-items: center; justify-content: space-between; }
.n-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.n-logo img { width: 40px; height: 40px; }
.n-logo span { font-family: var(--serif); font-weight: 600; font-size: 1.1rem; color: var(--river-deep); }
.n-links { list-style: none; display: flex; gap: 2.2rem; }
.n-links a { text-decoration: none; font-weight: 600; font-size: 0.9rem; color: var(--muted); transition: color .2s; }
.n-links a:hover, .n-links a.active { color: var(--brick); }
.n-btn { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.n-btn span { width: 22px; height: 2px; background: var(--river-deep); border-radius: 2px; }
@media (max-width: 860px) {
  .n { padding: 0.8rem 1.3rem; }
  .n-links { position: fixed; top: 64px; left: 0; right: 0; background: var(--ivory); flex-direction: column; gap: 0; padding: 0.4rem 1.5rem 1.2rem; border-bottom: 1px solid var(--line);
    opacity: 0; pointer-events: none; transform: translateY(-6px); transition: opacity .2s, transform .2s; }
  .n-links.open { opacity: 1; pointer-events: auto; transform: none; }
  .n-links li { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
  .n-links li:last-child { border-bottom: none; }
  .n-btn { display: flex; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 0.95rem 1.8rem; border-radius: var(--r); font-family: var(--sans);
  font-weight: 700; font-size: 0.93rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn-brick { background: var(--brick); color: var(--white); }
.btn-brick:hover { background: var(--brick-deep); }
.btn-river { background: var(--river); color: var(--white); }
.btn-river:hover { background: var(--river-deep); }
.btn-ghost { background: transparent; color: var(--river-deep); border-color: var(--river); }
.btn-ghost:hover { background: var(--river); color: var(--white); }
.btn-ivory { background: var(--ivory); color: var(--river-deep); }
.btn-ivory:hover { background: var(--sun); }

/* ---------- Headings ---------- */
.eb { display: inline-block; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brick); margin-bottom: 0.9rem; }
.h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 0.9rem; }
.ld { color: var(--muted); font-size: 1.03rem; max-width: 40rem; }
.sh { margin-bottom: 3rem; }
.sh.c { text-align: center; }
.sh.c .ld { margin: 0 auto; }

/* ---------- Hero: full-bleed Ken Burns ---------- */
.kb { position: relative; height: clamp(520px, 80vh, 720px); overflow: hidden; background: var(--river-deep); }
.kb-img { position: absolute; inset: 0; background-size: cover; background-position: center; animation: kenburns 24s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.12) translate(-2%, -1.5%); } }
@media (prefers-reduced-motion: reduce) { .kb-img { animation: none; } }
.kb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,53,73,0.35) 0%, rgba(20,53,73,0) 60%); }
.kb-wrap { position: relative; z-index: 2; height: 100%; max-width: 1140px; margin: 0 auto; padding: 0 2.5rem; display: flex; align-items: center; }
.kb-panel { background: rgba(251,248,242,0.95); border-radius: var(--r-lg); padding: clamp(2rem, 4vw, 3rem); max-width: 560px; border-left: 6px solid var(--brick); box-shadow: 0 30px 60px -30px rgba(0,0,0,0.45); }
.kb-panel h1 { font-size: clamp(2.1rem, 3.8vw, 3.2rem); margin-bottom: 1rem; }
.kb-panel h1 em { font-style: italic; color: var(--brick); }
.kb-panel p { color: var(--muted); font-size: 1.05rem; margin-bottom: 1.8rem; }
.kb-btns { display: flex; gap: 0.8rem; flex-wrap: wrap; }
@media (max-width: 860px) {
  .kb { height: auto; }
  .kb-img { position: relative; height: 42vh; }
  .kb::after { display: none; }
  .kb-wrap { padding: 0; }
  .kb-panel { border-radius: 0; border-left: none; border-top: 6px solid var(--brick); max-width: none; box-shadow: none; }
}

/* ---------- Glance row ---------- */
.glance { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--white); }
.glance div { padding: 1.7rem 1.5rem; border-left: 1px solid var(--line); }
.glance div:first-child { border-left: none; }
.glance b { display: block; font-family: var(--serif); font-size: 1.35rem; color: var(--river-deep); margin-bottom: 0.3rem; }
.glance span { font-size: 0.88rem; color: var(--muted); }
@media (max-width: 860px) { .glance { grid-template-columns: 1fr 1fr; } .glance div:nth-child(3) { border-left: none; } .glance div:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* ---------- Steps band ---------- */
.stp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; position: relative; }
.stp::before { content: ""; position: absolute; top: 28px; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--brick) 0 10px, transparent 10px 18px); }
.stp-i { text-align: center; position: relative; }
.stp-i i { font-style: normal; width: 56px; height: 56px; border-radius: 50%; background: var(--river); color: var(--ivory); font-family: var(--serif); font-size: 1.4rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.2rem; border: 5px solid var(--white); }
.stp-i h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.stp-i p { color: var(--muted); font-size: 0.94rem; max-width: 20rem; margin: 0 auto; }
@media (max-width: 860px) { .stp { grid-template-columns: 1fr; } .stp::before { display: none; } }

/* ---------- Timeline (medical now / retail 2027) ---------- */
.tl2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.tl2-card { border-radius: var(--r-lg); padding: 2rem; }
.tl2-now { background: var(--ivory); }
.tl2-later { background: rgba(255,255,255,0.08); border: 1px dashed rgba(255,255,255,0.35); color: var(--white); }
.tl2-card small { display: inline-block; font-weight: 700; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.3rem 0.7rem; border-radius: 999px; margin-bottom: 1rem; }
.tl2-now small { background: var(--brick); color: var(--white); }
.tl2-later small { background: var(--sun); color: var(--river-deep); }
.tl2-card h3 { font-size: 1.35rem; margin-bottom: 0.7rem; }
.tl2-later h3 { color: var(--white); }
.tl2-card ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.tl2-card li { padding-left: 1.3rem; position: relative; font-size: 0.95rem; }
.tl2-now li { color: var(--ink); }
.tl2-later li { color: rgba(255,255,255,0.82); }
.tl2-card li::before { content: "\2022"; position: absolute; left: 0.2rem; color: var(--sun); font-weight: 700; }
.s-river .eb { color: var(--sun); }
.s-river .h2 { color: var(--white); }
.s-river .ld { color: rgba(255,255,255,0.78); }
@media (max-width: 860px) { .tl2 { grid-template-columns: 1fr; } }

/* ---------- Certifier row ---------- */
.cert { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.cert-i { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.6rem 1.3rem; text-align: center; }
.cert-i b { display: inline-flex; width: 54px; height: 54px; border-radius: var(--r); background: var(--river-pale); color: var(--river); font-family: var(--serif); font-size: 1.05rem; align-items: center; justify-content: center; margin-bottom: 0.9rem; }
.cert-i h3 { font-size: 1rem; margin-bottom: 0.3rem; }
.cert-i p { font-size: 0.85rem; color: var(--muted); }
@media (max-width: 860px) { .cert { grid-template-columns: 1fr 1fr; } }

/* ---------- Common reasons ---------- */
.reasons { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; }
.reasons-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.reasons-list span { background: var(--white); border-left: 4px solid var(--brick); border-radius: var(--r); padding: 0.85rem 1rem; font-weight: 600; font-size: 0.92rem; color: var(--river-deep); }
.reasons p { color: var(--muted); margin-bottom: 1rem; }
@media (max-width: 860px) { .reasons { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Quotes ---------- */
.qt { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 960px; margin: 0 auto; }
.qt-c { background: var(--brick-pale); border-radius: var(--r-lg); padding: 2rem; position: relative; }
.qt-c::before { content: "\201C"; position: absolute; top: 0.6rem; right: 1.2rem; font-family: var(--serif); font-size: 4rem; color: var(--brick); opacity: 0.35; line-height: 1; }
.qt-c p { font-family: var(--serif); font-size: 1.05rem; color: var(--ink); margin-bottom: 1rem; }
.qt-c span { font-weight: 700; font-size: 0.86rem; color: var(--brick-deep); }
@media (max-width: 860px) { .qt { grid-template-columns: 1fr; } }

/* ---------- Accordion ---------- */
.acc { max-width: 860px; margin: 0 auto; }
.acc details { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 0.8rem; }
.acc summary { list-style: none; cursor: pointer; padding: 1.2rem 3rem 1.2rem 1.4rem; font-weight: 700; color: var(--river-deep); position: relative; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; position: absolute; right: 1.3rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--brick); }
.acc details[open] summary::after { content: "\2212"; }
.acc details p { padding: 0 1.4rem 1.3rem; color: var(--muted); font-size: 0.95rem; }
.acc a { color: var(--brick); font-weight: 700; }

/* ---------- Local ---------- */
.lc { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.lc-c { background: var(--white); border-radius: var(--r-lg); padding: 2rem; border: 1px solid var(--line); border-top: 5px solid var(--river); }
.lc-c h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.lc-c p { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 860px) { .lc { grid-template-columns: 1fr; } }

/* ---------- Overview ---------- */
.ov { display: grid; grid-template-columns: 1.6fr 1fr; gap: 3.5rem; align-items: start; }
.ov h3 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; }
.ov h3:first-of-type { margin-top: 0; }
.ov p { color: var(--muted); line-height: 1.8; font-size: 0.97rem; }
.ov a { color: var(--brick); font-weight: 700; }
.off { background: var(--river); border-radius: var(--r-lg); padding: 1.6rem; }
.off h4 { color: var(--sun); font-family: var(--sans); font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.8rem; }
.off a { display: block; padding: 0.9rem 0; border-top: 1px solid rgba(255,255,255,0.15); text-decoration: none; }
.off a strong { display: block; color: var(--white); font-size: 0.95rem; }
.off a small { color: rgba(255,255,255,0.65); font-size: 0.82rem; }
.off a:hover strong { color: var(--sun); }
@media (max-width: 860px) { .ov { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Closing ---------- */
.cls { background: var(--brick); padding: 4.5rem 0; text-align: center; }
.cls h2 { color: var(--white); font-size: clamp(1.9rem, 3.2vw, 2.6rem); margin-bottom: 0.7rem; }
.cls p { color: rgba(255,255,255,0.88); margin-bottom: 1.8rem; }

/* ---------- Footer ---------- */
footer { background: var(--river-deep); color: rgba(255,255,255,0.72); padding: 3.5rem 0 1.8rem; }
.fo { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; }
.fo p { font-size: 0.88rem; line-height: 1.7; margin-top: 0.9rem; max-width: 24rem; color: rgba(255,255,255,0.6); }
footer .n-logo span { color: var(--white); }
footer h4 { font-family: var(--sans); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--sun); margin-bottom: 0.9rem; }
footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
footer a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 0.9rem; }
footer a:hover { color: var(--sun); }
.fo-b { margin-top: 2.6rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.12); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem; font-size: 0.8rem; color: rgba(255,255,255,0.5); }
@media (max-width: 860px) { .fo { grid-template-columns: 1fr; } }

/* ---------- Inner page header ---------- */
.ph { background: var(--white); border-bottom: 1px solid var(--line); padding: 3.5rem 0 3rem; }
.ph h1 { font-size: clamp(2.1rem, 3.6vw, 3rem); margin-bottom: 0.6rem; }
.ph p { color: var(--muted); max-width: 40rem; font-size: 1.03rem; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease-out, transform .5s ease-out; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
