/* ============================================================
   Belleville (IL) — Brick Red / Deep Navy / Gold / Fountain Blue / Cream
   Hero: 3 landscape photos crossfading full-width (4s each, 12s cycle)
   behind a soft navy overlay, with centered text
   ============================================================ */

:root {
  --brick: #A6402F;
  --brick-deep: #842F21;
  --brick-pale: #F9EAE6;
  --navy: #1E2B45;
  --navy-deep: #141D30;
  --navy-soft: #E8ECF3;
  --gold: #D9A54A;
  --gold-deep: #B0832A;
  --gold-pale: #FCF3E2;
  --fount: #6FAACB;
  --fount-pale: #EAF4F9;
  --cream: #FAF7F1;
  --white: #FFFFFF;
  --ink: #20242E;
  --muted: #5A606C;
  --muted-2: #9AA0AB;
  --line: #E5E0D6;
  --danger-bg: #FBEAE7;
  --danger-border: #E3A79B;
  --danger-text: #8A3A2A;
  --success-bg: #E9F5EE;
  --success-border: #9FCFB4;
  --success-text: #1F5C3D;
  --r: 8px;
  --r-lg: 16px;
  --serif: 'Libre Caslon Text', Georgia, serif;
  --sans: 'Source Sans 3', -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.66; -webkit-font-smoothing: antialiased; font-size: 1.06rem; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; color: var(--navy); line-height: 1.18; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.cv { max-width: 1140px; margin: 0 auto; padding: 0 2.5rem; }
.sv { padding: 5.5rem 0; }
.sv-w { background: var(--white); }
.sv-n { background: var(--navy); }
.sv-g { background: var(--gold-pale); }
@media (max-width: 860px) { .cv { padding: 0 1.3rem; } .sv { padding: 3.5rem 0; } }

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

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 1rem 1.6rem; border-radius: var(--r); font-family: var(--sans);
  font-weight: 700; font-size: 1.02rem; 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-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-deep); }
.btn-wl { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.85); }
.btn-wl:hover { background: var(--white); color: var(--navy); }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: var(--gold-deep); color: var(--white); }

/* ---------- Headings ---------- */
.ey { display: inline-block; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--brick); margin-bottom: 0.9rem; }
.h2 { font-size: clamp(1.8rem, 3.1vw, 2.45rem); 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: full-bleed crossfade ---------- */
.xf { position: relative; min-height: clamp(520px, 80vh, 740px); display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--navy-deep); }
.xf-s { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; animation: xfade 12s infinite; }
.xf-s:nth-child(1) { animation-delay: 0s; }
.xf-s:nth-child(2) { animation-delay: 4s; }
.xf-s:nth-child(3) { animation-delay: 8s; }
@keyframes xfade { 0% { opacity: 0; } 8% { opacity: 1; } 33.33% { opacity: 1; } 41.33% { opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .xf-s { animation: none; } .xf-s:first-child { opacity: 1; } }
.xf-ov { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,29,48,0.6) 0%, rgba(20,29,48,0.42) 50%, rgba(20,29,48,0.78) 100%); }
.xf-in { position: relative; z-index: 2; text-align: center; max-width: 880px; padding: 0 2rem; }
.xf-in .ey { color: var(--gold); }
.xf-in h1 { color: var(--white); font-size: clamp(2rem, 4.2vw, 3.4rem); margin-bottom: 1.2rem; }
.xf-in h1 em { font-style: italic; color: var(--gold); }
.xf-in p { color: rgba(255,255,255,0.93); font-size: 1.12rem; max-width: 38rem; margin: 0 auto 2.2rem; }
.xf-b { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Icon steps ---------- */
.ic { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.ic-c { background: var(--cream); border-radius: var(--r-lg); padding: 1.7rem 1.4rem; border-left: 4px solid var(--brick); }
.ic-ico { width: 50px; height: 50px; border-radius: 50%; background: var(--navy); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.ic-ico svg { width: 24px; height: 24px; stroke: var(--gold); }
.ic-c h3 { font-size: 1.08rem; margin-bottom: 0.4rem; }
.ic-c p { color: var(--muted); font-size: 0.97rem; }
@media (max-width: 960px) { .ic { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ic { grid-template-columns: 1fr; } }

/* ---------- Missouri + base ---------- */
.sv-n .ey { color: var(--gold); }
.sv-n .h2 { color: var(--white); }
.sv-n .ld { color: rgba(255,255,255,0.86); }
.mo { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.mo-c { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.16); border-radius: var(--r-lg); padding: 1.7rem 1.4rem; border-top: 4px solid var(--gold); }
.mo-c small { display: inline-block; font-weight: 700; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy-deep); background: var(--gold); border-radius: 999px; padding: 0.22rem 0.7rem; margin-bottom: 0.9rem; }
.mo-c h3 { color: var(--white); font-size: 1.15rem; margin-bottom: 0.5rem; }
.mo-c p { color: rgba(255,255,255,0.84); font-size: 0.97rem; }
.base { margin-top: 1.6rem; display: grid; grid-template-columns: auto 1fr; gap: 1.6rem; align-items: center; background: var(--white); border-radius: var(--r-lg); padding: 1.8rem 2rem; border-left: 6px solid var(--brick); }
.base-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--brick-pale); display: flex; align-items: center; justify-content: center; }
.base-ic svg { width: 32px; height: 32px; stroke: var(--brick); }
.base h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.base p { color: var(--muted); }
.mo-note { margin-top: 1.4rem; background: var(--brick); border-radius: var(--r-lg); padding: 1.2rem 1.5rem; color: var(--white); }
.mo-note strong { color: #FFE4DD; }
.mo-src { color: rgba(255,255,255,0.62); font-size: 0.9rem; margin-top: 1rem; }
@media (max-width: 960px) { .mo { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .mo { grid-template-columns: 1fr; } .base { grid-template-columns: 1fr; } }

/* ---------- Strip ---------- */
.cs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.cs-c { background: var(--white); border-radius: var(--r-lg); padding: 1.5rem 1.3rem; border: 1px solid var(--line); text-align: center; }
.cs-c b { display: block; font-family: var(--serif); font-size: 1.75rem; color: var(--brick); line-height: 1; margin-bottom: 0.5rem; }
.cs-c p { color: var(--muted); font-size: 0.96rem; }
.cs-note { margin-top: 1.2rem; text-align: center; color: var(--muted); font-size: 0.93rem; }
.cs-note a { color: var(--navy); font-weight: 700; }
@media (max-width: 860px) { .cs { grid-template-columns: 1fr 1fr; } }

/* ---------- Conditions ---------- */
.cond { max-width: 960px; margin: 0 auto; background: var(--white); border-radius: var(--r-lg); padding: 2rem; border: 1px solid var(--line); }
.cond .chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.2rem; }
.cond .chips span { background: var(--fount-pale); color: var(--navy); border-radius: 999px; padding: 0.4rem 0.85rem; font-size: 0.95rem; font-weight: 600; }
.cond p { color: var(--muted); }
.cond p strong { color: var(--navy); }
.cond a { color: var(--brick); font-weight: 700; }

/* ---------- Local ---------- */
.lc { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.4rem; }
.lc-c { border-radius: var(--r-lg); padding: 2rem; }
.lc-c.a { background: var(--white); border: 1px solid var(--line); border-left: 6px solid var(--navy); }
.lc-c.b { background: var(--fount-pale); }
.lc-c h3 { font-size: 1.22rem; margin-bottom: 0.3rem; }
.lc-c address { font-style: normal; font-weight: 700; color: var(--brick); margin-bottom: 0.7rem; }
.lc-c p { color: var(--muted); margin-bottom: 0.7rem; }
.lc-c p:last-child { margin-bottom: 0; }
.lc-c a { color: var(--navy); font-weight: 700; }
@media (max-width: 860px) { .lc { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.tq { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 1000px; margin: 0 auto; }
.tq-c { background: var(--white); border-radius: var(--r-lg); padding: 2rem; border-top: 4px solid var(--gold); }
.tq-c p { font-family: var(--serif); font-size: 1.04rem; line-height: 1.7; margin-bottom: 1rem; }
.tq-c span { font-weight: 700; font-size: 0.93rem; color: var(--brick); }
@media (max-width: 860px) { .tq { 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.2rem 3rem 1.2rem 1.3rem; display: flex; gap: 0.9rem; align-items: center; font-weight: 700; font-size: 1.04rem; color: var(--navy); 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(--brick); }
.la details[open] summary::after { content: "\2212"; }
.la summary em { font-style: normal; flex-shrink: 0; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; background: var(--gold-pale); color: var(--brick-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(--brick); font-weight: 700; }

/* ---------- Overview ---------- */
.ov { display: grid; grid-template-columns: 1.6fr 1fr; gap: 3.5rem; align-items: start; }
.ov h3 { font-size: 1.12rem; 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(--brick); font-weight: 700; }
.sr { background: var(--navy); border-radius: var(--r-lg); padding: 1.6rem; }
.sr h4 { font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.8rem; }
.sr a { display: block; padding: 0.9rem 0; border-top: 1px solid rgba(255,255,255,0.14); text-decoration: none; }
.sr a strong { display: block; color: var(--white); }
.sr a small { color: rgba(255,255,255,0.64); font-size: 0.88rem; }
.sr a:hover strong { color: var(--gold); }
@media (max-width: 860px) { .ov { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Closing ---------- */
.fin { background: var(--brick); padding: 4.5rem 0; text-align: center; }
.fin h2 { color: var(--white); font-size: clamp(1.8rem, 3.1vw, 2.4rem); margin-bottom: 0.6rem; }
.fin p { color: rgba(255,255,255,0.92); margin-bottom: 1.8rem; }

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

/* ---------- Inner page header ---------- */
.ph { background: var(--brick-pale); padding: 3.5rem 0 3rem; border-bottom: 4px solid var(--navy); }
.ph h1 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); 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; } }
