/* ============================================================
   Elyria (OH) — Evergreen / River Blue / Birch
   Hero: one landscape photo, full-bleed, slow Ken Burns zoom, with a
   birch text panel on the left
   ============================================================ */

:root {
  --ev: #2D4A3E;
  --ev-deep: #1E342B;
  --ev-soft: #E6EEEA;
  --river: #5AA0B5;
  --river-deep: #3A7F94;
  --river-pale: #E6F2F5;
  --birch: #F4F1EA;
  --white: #FFFFFF;
  --ink: #1E2622;
  --muted: #5E6862;
  --muted-2: #98A29D;
  --line: #E1DDD3;
  --danger-bg: #FBEAE7;
  --danger-border: #E3A79B;
  --danger-text: #8A3A2A;
  --success-bg: #E9F5EE;
  --success-border: #9FCFB4;
  --success-text: #1F5C3D;
  --r: 10px;
  --r-lg: 18px;
  --slab: 'Bitter', Georgia, serif;
  --sans: 'Nunito', -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(--birch); line-height: 1.64; -webkit-font-smoothing: antialiased; font-size: 1.04rem; }
h1, h2, h3, h4 { font-family: var(--slab); font-weight: 700; color: var(--ev-deep); line-height: 1.15; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.ce { max-width: 1160px; margin: 0 auto; padding: 0 2.5rem; }
.se { padding: 5.5rem 0; }
.se-w { background: var(--white); }
.se-e { background: var(--ev); }
.se-r { background: var(--river-pale); }
@media (max-width: 860px) { .ce { padding: 0 1.3rem; } .se { padding: 3.5rem 0; } }

/* ---------- Nav ---------- */
nav { position: sticky; top: 0; z-index: 40; background: rgba(244,241,234,0.96); backdrop-filter: blur(8px); border-bottom: 3px solid var(--ev); }
.ne { max-width: 1160px; margin: 0 auto; padding: 0.8rem 2.5rem; display: flex; align-items: center; justify-content: space-between; }
.ne-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.ne-logo img { width: 42px; height: 42px; }
.ne-logo span { font-family: var(--slab); font-weight: 700; font-size: 1.12rem; color: var(--ev-deep); }
.ne-links { list-style: none; display: flex; gap: 2rem; }
.ne-links a { text-decoration: none; font-weight: 700; font-size: 0.94rem; color: var(--muted); transition: color .2s; }
.ne-links a:hover { color: var(--river-deep); }
.ne-links a.active { color: var(--river-deep); box-shadow: inset 0 -2px 0 var(--river); padding-bottom: 3px; }
.ne-btn { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.ne-btn span { width: 22px; height: 2px; background: var(--ev-deep); border-radius: 2px; }
@media (max-width: 860px) {
  .ne { padding: 0.8rem 1.3rem; }
  .ne-links { position: fixed; top: 69px; left: 0; right: 0; background: var(--birch); flex-direction: column; gap: 0; padding: 0.4rem 1.5rem 1.2rem; border-bottom: 3px solid var(--ev);
    opacity: 0; pointer-events: none; transform: translateY(-6px); transition: opacity .2s, transform .2s; }
  .ne-links.open { opacity: 1; pointer-events: auto; transform: none; }
  .ne-links li { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
  .ne-links li:last-child { border-bottom: none; }
  .ne-btn { display: flex; }
}

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

/* ---------- Headings ---------- */
.ey { display: inline-block; font-weight: 800; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--river-deep); margin-bottom: 0.9rem; }
.h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); margin-bottom: 0.9rem; }
.ld { color: var(--muted); max-width: 40rem; }
.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(--ev-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(244,241,234,0.95); border-radius: var(--r-lg); padding: clamp(2rem, 4vw, 3rem); max-width: 560px; border-left: 6px solid var(--river); box-shadow: 0 30px 60px -30px rgba(0,0,0,0.45); }
.kb-panel h1 { font-size: clamp(2.2rem, 4vw, 3.3rem); margin-bottom: 1rem; }
.kb-panel h1 span { color: var(--river-deep); }
.kb-panel p { color: var(--muted); font-size: 1.08rem; 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; border-left: none; border-top: 6px solid var(--river); }
}

/* ---------- Chain steps ---------- */
.chain { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.6rem; }
.lk { position: relative; background: var(--birch); border-radius: var(--r-lg); padding: 2rem 1.7rem; border-top: 4px solid var(--ev); }
.lk:not(:last-child)::after { content: "\2192"; position: absolute; right: -2.1rem; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 800; color: var(--river-deep); }
.lk b { display: inline-flex; width: 44px; height: 44px; border-radius: 50%; background: var(--river); color: var(--white); font-family: var(--slab); 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.98rem; }
@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.2rem; transform: translateX(50%); } }

/* ---------- Perks ---------- */
.se-e .ey { color: #9FD0DE; }
.se-e .h2 { color: var(--white); }
.se-e .ld { color: rgba(255,255,255,0.8); }
.pk { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.pk-c { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15); border-radius: var(--r-lg); padding: 1.7rem 1.4rem; }
.pk-c b { display: block; font-family: var(--slab); font-size: 1.9rem; color: #9FD0DE; line-height: 1; margin-bottom: 0.7rem; }
.pk-c h3 { color: var(--white); font-size: 1.08rem; margin-bottom: 0.4rem; }
.pk-c p { color: rgba(255,255,255,0.78); font-size: 0.96rem; }
@media (max-width: 960px) { .pk { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pk { grid-template-columns: 1fr; } }

/* ---------- Dispensaries ---------- */
.dp { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.dp-c { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 2rem; border-left: 6px solid var(--river); }
.dp-c h3 { font-size: 1.35rem; margin-bottom: 0.3rem; }
.dp-c address { font-style: normal; font-weight: 800; color: var(--river-deep); margin-bottom: 0.7rem; }
.dp-c p { color: var(--muted); }
.dp-note { margin-top: 1.3rem; text-align: center; color: var(--muted); font-size: 0.96rem; }
@media (max-width: 860px) { .dp { grid-template-columns: 1fr; } }

/* ---------- Conditions grid ---------- */
.cg { columns: 3; column-gap: 2rem; list-style: none; max-width: 980px; margin: 0 auto; }
.cg li { break-inside: avoid; padding: 0.55rem 0 0.55rem 1.4rem; position: relative; border-bottom: 1px solid var(--line); }
.cg li::before { content: "\2713"; position: absolute; left: 0; color: var(--river-deep); font-weight: 800; }
.cg-note { text-align: center; margin-top: 1.4rem; color: var(--muted); font-size: 0.96rem; }
.cg-note a { color: var(--river-deep); font-weight: 800; }
@media (max-width: 860px) { .cg { columns: 2; } }
@media (max-width: 520px) { .cg { columns: 1; } }

/* ---------- Legacy + quote ---------- */
.lg { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; align-items: stretch; }
.lg-c { border-radius: var(--r-lg); padding: 2.2rem; }
.lg-c.a { background: var(--ev-soft); }
.lg-c.b { background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; }
.lg-c h3 { font-size: 1.35rem; margin-bottom: 0.6rem; }
.lg-c p { color: var(--muted); }
.lg-c blockquote { font-family: var(--slab); font-size: 1.25rem; line-height: 1.5; color: var(--ev-deep); margin-bottom: 0.9rem; }
.lg-c cite { font-style: normal; font-weight: 800; color: var(--river-deep); }
@media (max-width: 860px) { .lg { grid-template-columns: 1fr; } }

/* ---------- Labeled accordion ---------- */
.la { max-width: 880px; margin: 0 auto; }
.la details { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 0.7rem; }
.la summary { list-style: none; cursor: pointer; padding: 1.15rem 3rem 1.15rem 1.3rem; display: flex; gap: 0.9rem; align-items: center; font-family: var(--slab); font-weight: 700; font-size: 1.05rem; color: var(--ev-deep); position: relative; }
.la summary::-webkit-details-marker { display: none; }
.la summary::after { content: "+"; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--river-deep); }
.la details[open] summary::after { content: "\2212"; }
.la summary em { font-style: normal; flex-shrink: 0; font-family: var(--sans); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; background: var(--river-pale); color: var(--river-deep); border-radius: 999px; padding: 0.25rem 0.65rem; }
.la details p { padding: 0 1.3rem 1.2rem; color: var(--muted); }
.la a { color: var(--river-deep); font-weight: 800; }

/* ---------- Overview ---------- */
.ov { display: grid; grid-template-columns: 1.6fr 1fr; gap: 3.5rem; align-items: start; }
.ov h3 { font-size: 1.25rem; 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(--river-deep); font-weight: 800; }
.sr { background: var(--ev); border-radius: var(--r-lg); padding: 1.6rem; }
.sr h4 { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: #9FD0DE; 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); }
.sr a small { color: rgba(255,255,255,0.65); font-size: 0.86rem; }
.sr a:hover strong { color: #9FD0DE; }
@media (max-width: 860px) { .ov { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Closing ---------- */
.cl { background: var(--river); padding: 4.5rem 0; }
.cl-in { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cl h2 { color: var(--white); font-size: clamp(1.9rem, 3.2vw, 2.6rem); max-width: 34rem; }
.cl p { color: rgba(255,255,255,0.9); margin-top: 0.4rem; }

/* ---------- Footer ---------- */
footer { background: var(--ev-deep); color: rgba(255,255,255,0.72); padding: 3.5rem 0 1.8rem; }
.fe { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; }
.fe p { font-size: 0.92rem; line-height: 1.7; margin-top: 0.9rem; max-width: 24rem; color: rgba(255,255,255,0.62); }
footer .ne-logo span { color: var(--birch); }
footer h4 { font-family: var(--sans); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: #9FD0DE; 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.95rem; }
footer a:hover { color: #9FD0DE; }
.fe-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.85rem; color: rgba(255,255,255,0.5); }
@media (max-width: 860px) { .fe { grid-template-columns: 1fr; } }

/* ---------- Inner page header ---------- */
.ph { background: var(--ev-soft); padding: 3.5rem 0 3rem; border-bottom: 3px solid var(--river); }
.ph h1 { font-size: clamp(2.1rem, 3.6vw, 3rem); margin-bottom: 0.6rem; }
.ph p { color: var(--muted); 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; } }
