/* ============================================================
   Johnstown (PA) — Conemaugh Blue / Incline Red / Gold / Hill Green / Cream
   Hero: text left, 3 photos crossfading inside one rounded frame on
   the right (4s each, 12s cycle; only one visible at a time)
   ============================================================ */

:root {
  --blue: #2E5A7A;
  --blue-deep: #1E3E56;
  --blue-soft: #E6EEF4;
  --red: #B8413A;
  --red-deep: #93302A;
  --red-pale: #F9EAE8;
  --gold: #D9A441;
  --gold-pale: #FBF2DF;
  --green: #4A6E4E;
  --green-pale: #EAF1EA;
  --cream: #FBF6EC;
  --white: #FFFFFF;
  --ink: #1C242C;
  --muted: #5A6470;
  --muted-2: #9AA2AC;
  --line: #E3E0D8;
  --danger-bg: #FBEAE7;
  --danger-border: #E3A79B;
  --danger-text: #8A3A2A;
  --success-bg: #E9F5EE;
  --success-border: #9FCFB4;
  --success-text: #1F5C3D;
  --r: 10px;
  --r-lg: 18px;
  --serif: 'Vollkorn', 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.66; -webkit-font-smoothing: antialiased; font-size: 1rem; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; color: var(--blue-deep); line-height: 1.12; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.cj { max-width: 1140px; margin: 0 auto; padding: 0 2.5rem; }
.sj { padding: 5.5rem 0; }
.sj-w { background: var(--white); }
.sj-b { background: var(--blue-deep); }
.sj-g { background: var(--gold-pale); }
@media (max-width: 860px) { .cj { padding: 0 1.3rem; } .sj { padding: 3.5rem 0; } }

/* ---------- Nav ---------- */
nav { position: sticky; top: 0; z-index: 40; background: var(--blue-deep); }
.nj { max-width: 1140px; margin: 0 auto; padding: 0.8rem 2.5rem; display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; }
.nj-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nj-logo img { width: 42px; height: 42px; }
.nj-logo span { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; color: var(--cream); }
.nj-links { list-style: none; display: flex; gap: 0.4rem; }
.nj-links a { text-decoration: none; font-weight: 500; font-size: 0.94rem; color: rgba(251,246,236,0.76); padding: 0.45rem 0.95rem; border-radius: 999px; transition: background .2s, color .2s; }
.nj-links a:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.nj-links a.active { color: var(--blue-deep); background: var(--gold); font-weight: 600; }
.nj-btn { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nj-btn span { width: 22px; height: 2px; background: var(--cream); border-radius: 2px; }
@media (max-width: 860px) {
  .nj { padding: 0.8rem 1.3rem; }
  .nj-links { position: fixed; top: 66px; left: 0; right: 0; background: var(--blue-deep); flex-direction: column; gap: 0.2rem; padding: 0.5rem 1.2rem 1.2rem;
    opacity: 0; pointer-events: none; transform: translateY(-6px); transition: opacity .2s, transform .2s; }
  .nj-links.open { opacity: 1; pointer-events: auto; transform: none; }
  .nj-btn { display: flex; }
}

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

/* ---------- Headings ---------- */
.ey { display: inline-block; font-weight: 600; font-size: 0.76rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--red); margin-bottom: 0.9rem; }
.h2 { font-size: clamp(2rem, 3.5vw, 2.8rem); 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: framed crossfade ---------- */
.hero { padding: 4rem 0 4.5rem; }
.hero-g { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3.5rem; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 4.4vw, 3.7rem); margin-bottom: 1.2rem; }
.hero h1 em { color: var(--red); }
.hero p { color: var(--muted); font-size: 1.07rem; max-width: 31rem; margin-bottom: 2rem; }
.hero-b { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.frm { position: relative; width: 100%; max-width: 430px; margin-left: auto; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: var(--blue-soft); border: 8px solid var(--white); box-shadow: -12px 12px 0 var(--gold); }
.frm-s { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; animation: fade 12s infinite; }
.frm-s:nth-child(1) { animation-delay: 0s; }
.frm-s:nth-child(2) { animation-delay: 4s; }
.frm-s:nth-child(3) { animation-delay: 8s; }
@keyframes fade { 0% { opacity: 0; } 8% { opacity: 1; } 33.33% { opacity: 1; } 41.33% { opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .frm-s { animation: none; } .frm-s:first-child { opacity: 1; } }
@media (max-width: 860px) { .hero { padding: 2.5rem 0 3.5rem; } .hero-g { grid-template-columns: 1fr; gap: 2.5rem; } .frm { margin: 0 auto; max-width: 330px; } }

/* ---------- Progress steps ---------- */
.pg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }
.pg-i { background: var(--cream); border-radius: var(--r-lg); padding: 1.6rem 1.4rem; }
.pg-bar { display: flex; gap: 5px; margin-bottom: 1.2rem; }
.pg-bar span { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.pg-bar span.on { background: var(--red); }
.pg-i small { display: block; font-weight: 600; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 0.35rem; }
.pg-i h3 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.pg-i p { color: var(--muted); font-size: 0.94rem; }
@media (max-width: 960px) { .pg { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pg { grid-template-columns: 1fr; } }

/* ---------- Veterans ---------- */
.sj-b .ey { color: var(--gold); }
.sj-b .h2 { color: var(--white); }
.sj-b .ld { color: rgba(255,255,255,0.84); }
.va { display: grid; grid-template-columns: 1fr 1fr 0.9fr; gap: 1.2rem; }
.va-c { border-radius: var(--r-lg); padding: 1.8rem 1.6rem; }
.va-c.can { background: var(--white); border-top: 5px solid var(--green); }
.va-c.cant { background: var(--white); border-top: 5px solid var(--red); }
.va-c.svc { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2); border-top: 5px solid var(--gold); }
.va-c h3 { font-size: 1.35rem; margin-bottom: 0.8rem; }
.va-c.svc h3 { color: var(--white); }
.va-c ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.va-c li { padding-left: 1.5rem; position: relative; color: var(--muted); font-size: 0.96rem; }
.va-c.can li::before { content: "\2713"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.va-c.cant li::before { content: "\2715"; position: absolute; left: 0; color: var(--red); font-weight: 700; }
.va-c.svc p { color: rgba(255,255,255,0.84); font-size: 0.96rem; margin-bottom: 0.7rem; }
.va-note { margin-top: 1.5rem; background: var(--gold); border-radius: var(--r-lg); padding: 1.2rem 1.5rem; color: var(--blue-deep); font-weight: 500; }
.va-note strong { font-weight: 700; }
@media (max-width: 960px) { .va { grid-template-columns: 1fr; } }

/* ---------- Cost tiles ---------- */
.ct { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; max-width: 900px; margin: 0 auto; }
.ct-c { background: var(--white); border-radius: var(--r-lg); padding: 1.6rem 1.4rem; border: 1px solid var(--line); text-align: center; }
.ct-c b { display: block; font-family: var(--serif); font-size: 2.3rem; color: var(--blue); line-height: 1; margin-bottom: 0.5rem; }
.ct-c p { color: var(--muted); font-size: 0.92rem; }
@media (max-width: 760px) { .ct { grid-template-columns: 1fr; } }

/* ---------- Conditions ---------- */
.chips-wrap { max-width: 1000px; margin: 0 auto; text-align: center; }
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; justify-content: center; }
.chips span { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 0.4rem 0.9rem; font-size: 0.9rem; font-weight: 500; color: var(--blue-deep); }
.chips span.hl { border-color: var(--gold); background: var(--gold-pale); color: var(--red-deep); font-weight: 600; }
.chips-note { margin-top: 1.3rem; color: var(--muted); font-size: 0.91rem; }
.chips-note a { color: var(--red); font-weight: 600; }

/* ---------- 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-top: 5px solid var(--blue); }
.lc-c.b { background: var(--green-pale); }
.lc-c h3 { font-size: 1.5rem; margin-bottom: 0.3rem; }
.lc-c address { font-style: normal; font-weight: 600; color: var(--red); 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(--blue); font-weight: 600; }
@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-left: 5px solid var(--red); }
.tq-c p { font-family: var(--serif); font-size: 1.2rem; line-height: 1.5; margin-bottom: 1rem; }
.tq-c span { font-weight: 600; font-size: 0.88rem; color: var(--blue); }
@media (max-width: 860px) { .tq { grid-template-columns: 1fr; } }

/* ---------- Two-column accordion ---------- */
.a2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem 1.4rem; align-items: start; }
.a2 details { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); }
.a2 details[open] { border-color: var(--gold); }
.a2 summary { list-style: none; cursor: pointer; padding: 1.15rem 2.8rem 1.15rem 1.3rem; font-weight: 600; font-size: 0.99rem; color: var(--blue-deep); position: relative; }
.a2 summary::-webkit-details-marker { display: none; }
.a2 summary::after { content: "+"; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--red); }
.a2 details[open] summary::after { content: "\2212"; }
.a2 details p { padding: 0 1.3rem 1.2rem; color: var(--muted); }
.a2 a { color: var(--blue); font-weight: 600; }
@media (max-width: 860px) { .a2 { 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.35rem; 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(--blue); font-weight: 600; }
.sr { background: var(--blue-deep); 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(--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); font-weight: 600; }
.sr a small { color: rgba(255,255,255,0.64); font-size: 0.85rem; }
.sr a:hover strong { color: var(--gold); }
@media (max-width: 860px) { .ov { grid-template-columns: 1fr; gap: 2rem; } }

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

/* ---------- Footer ---------- */
footer { background: var(--blue-deep); color: rgba(255,255,255,0.72); padding: 3.5rem 0 1.8rem; }
.fj { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; }
.fj p { font-size: 0.9rem; line-height: 1.7; margin-top: 0.9rem; max-width: 24rem; color: rgba(255,255,255,0.62); }
footer h4 { font-family: var(--sans); font-size: 0.76rem; 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.93rem; }
footer a:hover { color: var(--gold); }
.fj-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.83rem; color: rgba(255,255,255,0.5); }
@media (max-width: 860px) { .fj { grid-template-columns: 1fr; } }

/* ---------- Inner page header ---------- */
.ph { background: var(--blue-soft); padding: 3.5rem 0 3rem; border-bottom: 4px solid var(--gold); }
.ph h1 { font-size: clamp(2.2rem, 3.8vw, 3.2rem); 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; } }
