/* ============================================================
   Petersburg (VA) — Plum / Marigold / Cream
   Hero: centered headline over a triptych of 3 portrait photos
   side by side (no overlap), middle photo raised
   ============================================================ */

:root {
  --plum: #4A2B5E;
  --plum-deep: #331D42;
  --plum-soft: #EFE8F3;
  --mari: #F2B134;
  --mari-deep: #D18F12;
  --mari-pale: #FDF3DC;
  --cream: #FAF5EC;
  --white: #FFFFFF;
  --ink: #221A27;
  --muted: #64596B;
  --muted-2: #9C93A1;
  --line: #E9E1D6;
  --danger-bg: #FBEAE7;
  --danger-border: #E3A79B;
  --danger-text: #8A3A2A;
  --success-bg: #E9F5EE;
  --success-border: #9FCFB4;
  --success-text: #1F5C3D;
  --r: 8px;
  --r-lg: 16px;
  --slab: 'Bitter', Georgia, serif;
  --sans: 'Rubik', -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.62; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--slab); font-weight: 700; color: var(--plum-deep); line-height: 1.14; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.in { max-width: 1160px; margin: 0 auto; padding: 0 2.5rem; }
.sx { padding: 5.5rem 0; }
.sx-w { background: var(--white); }
.sx-p { background: var(--plum); }
.sx-m { background: var(--mari-pale); }
@media (max-width: 860px) { .in { padding: 0 1.3rem; } .sx { padding: 3.5rem 0; } }

/* ---------- Nav ---------- */
nav { position: sticky; top: 0; z-index: 40; background: var(--cream); border-bottom: 3px solid var(--plum); }
.np { max-width: 1160px; margin: 0 auto; padding: 0.8rem 2.5rem; display: flex; align-items: center; justify-content: space-between; }
.np-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.np-logo img { width: 42px; height: 42px; }
.np-logo span { font-family: var(--slab); font-weight: 700; font-size: 1.1rem; color: var(--plum-deep); }
.np-links { list-style: none; display: flex; gap: 2rem; }
.np-links a { text-decoration: none; font-weight: 500; font-size: 0.93rem; color: var(--muted); transition: color .2s; }
.np-links a:hover { color: var(--plum); }
.np-links a.active { color: var(--plum); font-weight: 600; background: linear-gradient(to top, var(--mari) 30%, transparent 30%); padding: 0 0.15em; }
.np-btn { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.np-btn span { width: 22px; height: 2px; background: var(--plum-deep); border-radius: 2px; }
@media (max-width: 860px) {
  .np { padding: 0.8rem 1.3rem; }
  .np-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: 3px solid var(--plum);
    opacity: 0; pointer-events: none; transform: translateY(-6px); transition: opacity .2s, transform .2s; }
  .np-links.open { opacity: 1; pointer-events: auto; transform: none; }
  .np-links li { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
  .np-links li:last-child { border-bottom: none; }
  .np-btn { display: flex; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 0.95rem 1.7rem; border-radius: var(--r); font-family: var(--sans);
  font-weight: 600; font-size: 0.95rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn-plum { background: var(--plum); color: var(--white); }
.btn-plum:hover { background: var(--plum-deep); }
.btn-mari { background: var(--mari); color: var(--plum-deep); }
.btn-mari:hover { background: var(--mari-deep); color: var(--white); }
.btn-ol { background: transparent; color: var(--plum); border-color: var(--plum); }
.btn-ol:hover { background: var(--plum); color: var(--white); }

/* ---------- Headings ---------- */
.tag { display: inline-block; font-weight: 600; font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mari-deep); margin-bottom: 0.9rem; }
.h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); margin-bottom: 0.9rem; }
.pp { color: var(--muted); font-size: 1.04rem; max-width: 40rem; }
.hd { margin-bottom: 3rem; }
.hd.cc { text-align: center; }
.hd.cc .pp { margin: 0 auto; }

/* ---------- Hero: triptych ---------- */
.tri { padding: 4.5rem 0 0; text-align: center; background: var(--cream); overflow: hidden; }
.tri h1 { font-size: clamp(2.3rem, 4.6vw, 3.8rem); max-width: 880px; margin: 0 auto 1.1rem; }
.tri h1 span { color: var(--plum); text-decoration: underline; text-decoration-color: var(--mari); text-decoration-thickness: 0.12em; text-underline-offset: 0.12em; }
.tri p { color: var(--muted); font-size: 1.08rem; max-width: 38rem; margin: 0 auto 2rem; }
.tri-btns { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3.5rem; }
.tri-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: end; padding-bottom: 4rem; }
/* plum band anchored to the photo row, so it can never reach the headline or buttons */
.tri-row { position: relative; z-index: 0; }
.tri-row::before { content: ""; position: absolute; left: -100vw; right: -100vw; top: 42%; bottom: 0; background: var(--plum); z-index: -1; }
.tri-row figure { aspect-ratio: 3 / 4; border-radius: var(--r-lg); overflow: hidden; background: var(--plum-soft); border: 6px solid var(--white); box-shadow: 0 26px 50px -28px rgba(51,29,66,0.6); }
.tri-row figure:nth-child(2) { transform: translateY(-2rem); }
.tri-row img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .tri { padding-top: 2.5rem; }
  .tri-row { gap: 0.6rem; padding-bottom: 2.5rem; }
  .tri-row figure { border-width: 4px; }
  .tri-row figure:nth-child(2) { transform: translateY(-1rem); }
}

/* ---------- Community chips ---------- */
.comm { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.comm span { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 0.55rem 1.1rem; font-weight: 500; color: var(--plum-deep); font-size: 0.95rem; }
.comm span.hl { background: var(--plum); color: var(--white); border-color: var(--plum); }

/* ---------- Chained steps ---------- */
.chain { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.6rem; }
.lk { position: relative; background: var(--white); border-radius: var(--r-lg); padding: 2rem 1.7rem; border: 2px solid var(--plum-soft); }
.lk:not(:last-child)::after { content: "\2192"; position: absolute; right: -2.15rem; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 700; color: var(--mari-deep); }
.lk b { display: inline-flex; width: 44px; height: 44px; border-radius: 50%; background: var(--mari); color: var(--plum-deep); font-family: var(--slab); font-size: 1.2rem; align-items: center; justify-content: center; margin-bottom: 1rem; }
.lk h3 { font-size: 1.2rem; margin-bottom: 0.45rem; }
.lk p { color: var(--muted); font-size: 0.96rem; }
@media (max-width: 860px) { .chain { grid-template-columns: 1fr; gap: 2.6rem; } .lk:not(:last-child)::after { content: "\2193"; right: 50%; top: auto; bottom: -2.3rem; transform: translateX(50%); } }

/* ---------- Dispensary card ---------- */
.sx-p .tag { color: var(--mari); }
.sx-p .h2 { color: var(--white); }
.sx-p .pp { color: rgba(250,245,236,0.8); }
.sx-p .pp a { color: var(--mari); font-weight: 600; }
.dc { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.dc-card { background: var(--cream); border-radius: var(--r-lg); padding: 2.2rem; }
.dc-card h3 { font-size: 1.45rem; margin-bottom: 0.3rem; }
.dc-card address { font-style: normal; font-weight: 600; color: var(--plum); margin-bottom: 1.2rem; }
.dc-card ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.dc-card li { padding-left: 1.6rem; position: relative; color: var(--ink); }
.dc-card li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 10px; height: 10px; border-radius: 50%; background: var(--mari); }
.dc-card small { display: block; margin-top: 1.1rem; color: var(--muted); font-size: 0.85rem; }
@media (max-width: 860px) { .dc { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Voices trio ---------- */
.vt3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.vt3-c { background: var(--white); border-radius: var(--r-lg); padding: 1.8rem; border-bottom: 5px solid var(--mari); }
.vt3-c p { margin-bottom: 1rem; }
.vt3-c span { font-weight: 600; font-size: 0.88rem; color: var(--plum); }
@media (max-width: 860px) { .vt3 { grid-template-columns: 1fr; } }

/* ---------- Q list ---------- */
.ql { max-width: 880px; margin: 0 auto; }
.ql-i { display: grid; grid-template-columns: 48px 1fr; gap: 1rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.ql-i i { font-style: normal; width: 38px; height: 38px; border-radius: var(--r); background: var(--plum); color: var(--mari); font-family: var(--slab); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.ql-i h3 { font-family: var(--sans); font-weight: 600; font-size: 1.04rem; color: var(--ink); margin-bottom: 0.35rem; }
.ql-i p { color: var(--muted); font-size: 0.97rem; }
.ql-i a { color: var(--plum); font-weight: 600; }

/* ---------- Overview ---------- */
.ovp { display: grid; grid-template-columns: 1.6fr 1fr; gap: 3.5rem; align-items: start; }
.ovp h3 { font-size: 1.22rem; margin: 1.5rem 0 0.5rem; }
.ovp h3:first-of-type { margin-top: 0; }
.ovp p { color: var(--muted); line-height: 1.8; }
.ovp a { color: var(--plum); font-weight: 600; }
.lnk { background: var(--white); border: 2px solid var(--plum); border-radius: var(--r-lg); overflow: hidden; }
.lnk h4 { background: var(--plum); color: var(--mari); font-family: var(--sans); font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 1rem 1.3rem; }
.lnk a { display: block; padding: 1rem 1.3rem; border-top: 1px solid var(--line); text-decoration: none; }
.lnk a:first-of-type { border-top: none; }
.lnk a strong { display: block; color: var(--plum-deep); font-size: 0.96rem; }
.lnk a small { color: var(--muted-2); font-size: 0.84rem; }
.lnk a:hover { background: var(--mari-pale); }
@media (max-width: 860px) { .ovp { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Closing ---------- */
.fin { background: var(--mari); padding: 4.5rem 0; text-align: center; }
.fin h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); margin-bottom: 0.6rem; }
.fin p { color: var(--plum-deep); opacity: 0.85; margin-bottom: 1.8rem; }

/* ---------- Footer ---------- */
footer { background: var(--plum-deep); color: rgba(255,255,255,0.72); padding: 3.5rem 0 1.8rem; }
.fp { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; }
.fp p { font-size: 0.9rem; line-height: 1.7; margin-top: 0.9rem; max-width: 24rem; color: rgba(255,255,255,0.6); }
footer .np-logo span { color: var(--cream); }
footer h4 { font-family: var(--sans); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--mari); 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.92rem; }
footer a:hover { color: var(--mari); }
.fp-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.82rem; color: rgba(255,255,255,0.5); }
@media (max-width: 860px) { .fp { grid-template-columns: 1fr; } }

/* ---------- Inner page header ---------- */
.ph { background: var(--plum); padding: 3.5rem 0 3rem; }
.ph .tag { color: var(--mari); }
.ph h1 { color: var(--white); font-size: clamp(2.1rem, 3.6vw, 3rem); margin-bottom: 0.6rem; }
.ph p { color: rgba(250,245,236,0.8); max-width: 40rem; }

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