/* ============================================================
   Chesterfield (MO) — Emerald / Peach / Cream
   Hero: one landscape photo, full-bleed, slow Ken Burns zoom, with a
   cream text panel on the left
   ============================================================ */

:root {
  --em: #1F5846;
  --em-deep: #143D30;
  --em-soft: #E4EFEA;
  --peach: #F2B8A0;
  --peach-deep: #D9876A;
  --peach-pale: #FCEFE9;
  --cream: #FBF8F4;
  --white: #FFFFFF;
  --ink: #1B2621;
  --muted: #5E6A64;
  --muted-2: #97A29C;
  --line: #E6E1D9;
  --danger-bg: #FBEAE7;
  --danger-border: #E3A79B;
  --danger-text: #8A3A2A;
  --success-bg: #E9F5EE;
  --success-border: #9FCFB4;
  --success-text: #1F5C3D;
  --r: 10px;
  --r-lg: 20px;
  --serif: 'Marcellus', Georgia, serif;
  --sans: 'Manrope', -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(--cream); line-height: 1.64; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; color: var(--em-deep); line-height: 1.14; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.cc { max-width: 1160px; margin: 0 auto; padding: 0 2.5rem; }
.sc { padding: 5.5rem 0; }
.sc-w { background: var(--white); }
.sc-e { background: var(--em); }
.sc-p { background: var(--peach-pale); }
@media (max-width: 860px) { .cc { padding: 0 1.3rem; } .sc { padding: 3.5rem 0; } }

/* ---------- Nav ---------- */
nav { position: sticky; top: 0; z-index: 40; background: rgba(251,248,244,0.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nc { max-width: 1160px; margin: 0 auto; padding: 0.8rem 2.5rem; display: flex; align-items: center; justify-content: space-between; }
.nc-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nc-logo img { width: 42px; height: 42px; }
.nc-logo span { font-family: var(--serif); font-size: 1.25rem; color: var(--em-deep); }
.nc-links { list-style: none; display: flex; gap: 2.2rem; }
.nc-links a { text-decoration: none; font-weight: 600; font-size: 0.93rem; color: var(--muted); transition: color .2s; }
.nc-links a:hover { color: var(--em); }
.nc-links a.active { color: var(--em); box-shadow: inset 0 -2px 0 var(--peach-deep); padding-bottom: 3px; }
.nc-btn { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nc-btn span { width: 22px; height: 2px; background: var(--em-deep); border-radius: 2px; }
@media (max-width: 860px) {
  .nc { padding: 0.8rem 1.3rem; }
  .nc-links { position: fixed; top: 66px; left: 0; right: 0; background: var(--cream); 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; }
  .nc-links.open { opacity: 1; pointer-events: auto; transform: none; }
  .nc-links li { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
  .nc-links li:last-child { border-bottom: none; }
  .nc-btn { display: flex; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 0.95rem 1.6rem; border-radius: 999px; 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-em { background: var(--em); color: var(--white); }
.btn-em:hover { background: var(--em-deep); }
.btn-peach { background: var(--peach); color: var(--em-deep); }
.btn-peach:hover { background: var(--peach-deep); color: var(--white); }
.btn-ol { background: transparent; color: var(--em-deep); border-color: var(--em); }
.btn-ol:hover { background: var(--em); color: var(--white); }

/* ---------- Headings ---------- */
.ey { display: inline-block; font-weight: 700; font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--peach-deep); margin-bottom: 0.9rem; }
.h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); margin-bottom: 0.9rem; }
.ld { color: var(--muted); max-width: 40rem; font-size: 1.04rem; }
.hd { margin-bottom: 3rem; }
.hd.c { text-align: center; }
.hd.c .ld { margin: 0 auto; }

/* ---------- Hero: Ken Burns ---------- */
.kb { position: relative; height: clamp(540px, 82vh, 740px); overflow: hidden; background: var(--em-deep); }
.kb-img { position: absolute; inset: 0; background-size: cover; background-position: center; animation: kb 26s ease-in-out infinite alternate; }
@keyframes kb { from { transform: scale(1); } to { transform: scale(1.1) translate(-1.5%, -1%); } }
@media (prefers-reduced-motion: reduce) { .kb-img { animation: none; } }
.kb-wrap { position: relative; z-index: 2; height: 100%; max-width: 1160px; margin: 0 auto; padding: 0 2.5rem; display: flex; align-items: center; }
.kb-panel { background: rgba(251,248,244,0.95); border-radius: var(--r-lg); padding: clamp(2rem, 4vw, 3rem); max-width: 560px; box-shadow: 0 30px 60px -30px rgba(0,0,0,0.45); }
.kb-panel h1 { font-size: clamp(2.3rem, 4.2vw, 3.5rem); margin-bottom: 1rem; }
.kb-panel h1 span { color: var(--peach-deep); }
.kb-panel p { color: var(--muted); font-size: 1.07rem; margin-bottom: 1.8rem; }
.kb-b { display: flex; gap: 0.7rem; flex-wrap: wrap; }
@media (max-width: 860px) {
  .kb { height: auto; }
  .kb-img { position: relative; height: 40vh; background-position: 64% center; }
  .kb-wrap { padding: 0; }
  .kb-panel { border-radius: 0; max-width: none; box-shadow: none; }
}

/* ---------- Outlined-number steps ---------- */
.os { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4rem; }
.os-i b { display: block; font-family: var(--serif); font-weight: 400; font-size: 5.5rem; line-height: 0.9; color: transparent; -webkit-text-stroke: 1.5px var(--peach-deep); margin-bottom: 0.8rem; }
.os-i h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.os-i p { color: var(--muted); }
.os-note { margin-top: 2.2rem; background: var(--em-soft); border-radius: var(--r); padding: 1.1rem 1.3rem; font-size: 0.97rem; }
@media (max-width: 860px) { .os { grid-template-columns: 1fr; gap: 2rem; } .os-i b { font-size: 4rem; } }

/* ---------- Tax bars ---------- */
.sc-e .ey { color: var(--peach); }
.sc-e .h2 { color: var(--white); }
.sc-e .ld { color: rgba(255,255,255,0.8); }
.bars { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.bar-box { background: var(--white); border-radius: var(--r-lg); padding: 2rem; }
.bar-row { margin-bottom: 1.6rem; }
.bar-row:last-of-type { margin-bottom: 0; }
.bar-lbl { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 0.5rem; }
.bar-lbl span:last-child { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; color: var(--em-deep); }
.bar-track { height: 18px; background: var(--em-soft); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; }
.bar-fill.med { width: 44.4%; background: var(--em); }
.bar-fill.rec { width: 100%; background: linear-gradient(90deg, var(--peach-deep) 66.6%, var(--peach) 66.6%); }
.bar-key { display: flex; gap: 1.2rem; flex-wrap: wrap; margin-top: 1.2rem; font-size: 0.86rem; color: var(--muted); }
.bar-key i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 0.4rem; vertical-align: -1px; }
.bar-list { list-style: none; display: flex; flex-direction: column; gap: 0.8rem; }
.bar-list li { color: rgba(255,255,255,0.88); padding-left: 1.6rem; position: relative; }
.bar-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--peach); font-weight: 700; }
@media (max-width: 860px) { .bars { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Valley dispensaries ---------- */
.vd { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.vd-c { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 2rem; position: relative; overflow: hidden; }
.vd-c::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: var(--peach-pale); }
.vd-c h3 { font-size: 1.5rem; margin-bottom: 0.3rem; position: relative; z-index: 1; }
.vd-c address { font-style: normal; font-weight: 700; color: var(--em); margin-bottom: 0.8rem; position: relative; z-index: 1; }
.vd-c p { color: var(--muted); position: relative; z-index: 1; }
.vd-note { margin-top: 1.4rem; text-align: center; color: var(--muted); font-size: 0.95rem; }
@media (max-width: 860px) { .vd { grid-template-columns: 1fr; } }

/* ---------- Big quote ---------- */
.bq { max-width: 880px; margin: 0 auto; text-align: center; }
.bq blockquote { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.4; color: var(--em-deep); margin-bottom: 1rem; }
.bq cite { font-style: normal; font-weight: 700; color: var(--peach-deep); }

/* ---------- Numbered FAQ ---------- */
.nq { max-width: 900px; margin: 0 auto; counter-reset: q; }
.nq-i { display: grid; grid-template-columns: 70px 1fr; gap: 1.2rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.nq-i::before { counter-increment: q; content: counter(q, decimal-leading-zero); font-family: var(--serif); font-size: 2rem; color: var(--peach-deep); line-height: 1; }
.nq-i h3 { font-family: var(--sans); font-weight: 700; font-size: 1.05rem; color: var(--ink); margin-bottom: 0.4rem; }
.nq-i p { color: var(--muted); }
.nq-i a { color: var(--em); font-weight: 700; }

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

/* ---------- Closing ---------- */
.fin { background: var(--peach); padding: 4.5rem 0; }
.fin-in { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.fin h2 { font-size: clamp(2rem, 3.2vw, 2.6rem); max-width: 34rem; }
.fin p { color: var(--em-deep); margin-top: 0.4rem; opacity: 0.85; }

/* ---------- Footer ---------- */
footer { background: var(--em-deep); color: rgba(255,255,255,0.72); padding: 3.5rem 0 1.8rem; }
.fc { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; }
.fc p { font-size: 0.92rem; line-height: 1.7; margin-top: 0.9rem; max-width: 24rem; color: rgba(255,255,255,0.62); }
footer .nc-logo span { color: var(--cream); }
footer h4 { font-family: var(--sans); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--peach); 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.86); text-decoration: none; font-size: 0.94rem; }
footer a:hover { color: var(--peach); }
.fc-b { margin-top: 2.6rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.14); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem; font-size: 0.84rem; color: rgba(255,255,255,0.5); }
@media (max-width: 860px) { .fc { grid-template-columns: 1fr; } }

/* ---------- Inner page header ---------- */
.ph { background: var(--em-soft); padding: 3.5rem 0 3rem; }
.ph h1 { font-size: clamp(2.3rem, 4vw, 3.3rem); margin-bottom: 0.6rem; }
.ph p { color: var(--muted); max-width: 40rem; font-size: 1.04rem; }

/* ---------- 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; } }
