/* =========================================================
   Ravi Patni for Robbinsville Township Council
   ========================================================= */

:root {
  --navy: #16336f;
  --navy-2: #1c3f8a;
  --navy-3: #2b57b4;
  --red: #c8232c;
  --red-2: #a4181f;
  --sky: #a9c1f2;
  --cream: #f4f6fb;
  --cream-2: #e9edf6;
  --ink: #16213a;
  --muted: #5a6478;
  --line: #d3dae8;
  --white: #ffffff;

  --font-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container: 1180px;
  --radius: 6px;
  --shadow: 0 14px 40px rgba(11, 31, 58, 0.14);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--navy-3); }
a:hover { color: var(--red); }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 0.6rem;
  color: var(--navy);
  text-wrap: balance;
}
h2 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); font-weight: 800; text-transform: uppercase; }
h3 { font-size: 1.55rem; font-weight: 700; }
p { margin: 0 0 1rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

.section { padding-block: clamp(64px, 8vw, 110px); }

.section__head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.section__lead { font-size: 1.2rem; color: var(--muted); }

.kicker {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 0.75rem;
}
.kicker--light { color: var(--sky); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 1000;
  background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 4px;
}
.skip-link:focus { top: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.05rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 13px 24px; border-radius: var(--radius);
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  line-height: 1.1;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.btn--lg { font-size: 1.2rem; padding: 16px 30px; }
.btn--sm { font-size: 0.95rem; padding: 9px 16px; }
.btn--block { width: 100%; }

.btn--red { background: var(--red); color: #fff; box-shadow: 0 8px 22px rgba(200, 32, 47, 0.3); }
.btn--red:hover { background: var(--red-2); color: #fff; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-3); color: #fff; }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--outline-navy { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline-navy:hover { background: var(--navy); color: #fff; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--red); color: #fff;
  font-size: 0.95rem;
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 42px; flex-wrap: wrap; padding-block: 4px;
}
.topbar p { margin: 0; }
.topbar__count { display: flex; gap: 14px; font-family: var(--font-display); }
.count { display: inline-flex; align-items: baseline; gap: 4px; }
.count b { font-size: 1.25rem; font-weight: 800; min-width: 1.6ch; text-align: right; }
.count small { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.7rem; opacity: 0.85; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy); color: #fff;
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.06);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand__mark {
  display: block; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none;
  border: 2px solid var(--red); box-shadow: 0 0 0 2px #fff;
  background: var(--cream-2);
}
.brand__mark--lg { width: 56px; height: 56px; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.55rem; text-transform: uppercase; letter-spacing: 0.02em; }
.brand__office { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sky); margin-top: 3px; }

.nav__menu { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }
.nav__menu a:not(.btn) {
  color: #fff; text-decoration: none; font-weight: 600; font-size: 1rem; letter-spacing: 0.01em;
  position: relative; padding-block: 6px;
}
.nav__menu a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--sky); transform: scaleX(0); transform-origin: left; transition: transform 0.2s ease;
}
.nav__menu a:not(.btn):hover::after { transform: scaleX(1); }

.nav__toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer;
}
.nav__toggle span { display: block; width: 26px; height: 3px; background: #fff; border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' viewBox='0 0 260 260'%3E%3Cg fill='%2316336f' fill-opacity='0.06'%3E%3Cpath d='M40 20l5.9 12 13.1 1.9-9.5 9.2 2.3 13.1L40 50l-11.8 6.2 2.3-13.1L21 33.9l13.1-1.9z'/%3E%3Cpath d='M190 120l4.4 9 9.8 1.4-7.1 6.9 1.7 9.8-8.8-4.6-8.8 4.6 1.7-9.8-7.1-6.9 9.8-1.4z'/%3E%3Cpath d='M110 210l3.5 7.2 7.9 1.1-5.7 5.5 1.4 7.9-7.1-3.7-7.1 3.7 1.4-7.9-5.7-5.5 7.9-1.1z'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(180deg, #ffffff 0%, #f4f6fb 100%);
  color: var(--ink);
}
.hero__stripe {
  position: absolute; inset: auto 0 0 0; height: 16px;
  background: linear-gradient(180deg, var(--red) 0 50%, var(--navy) 50% 100%);
}
.hero__inner {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 5vw, 64px); align-items: center;
  padding-block: clamp(56px, 7vw, 96px) clamp(72px, 8vw, 110px);
}
.hero .kicker { color: var(--red); }
.hero__title {
  color: var(--navy); font-size: clamp(3rem, 6.6vw, 5.2rem); font-weight: 900; text-transform: uppercase; line-height: 0.95;
  margin-bottom: 1.2rem;
}
.hero__title .accent { color: var(--red); }
.hero__lead { font-size: 1.22rem; max-width: 600px; color: #2f3a52; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 1.6rem 0 1.8rem; }
.hero__proof { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-weight: 600; }
.hero__proof li { display: flex; align-items: center; gap: 8px; color: var(--navy); }
.hero__proof li::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--red); flex: none;
}

.hero__photo { margin: 0; justify-self: center; width: 100%; max-width: 440px; }
.photo-frame {
  position: relative; border-radius: 10px; overflow: visible;
}
.photo-frame::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; border-radius: 10px;
  background: var(--navy); z-index: 0;
}
.photo-frame img {
  position: relative; z-index: 1; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: top;
  border-radius: 10px; box-shadow: var(--shadow); background: var(--cream-2);
}
.photo-badge {
  position: absolute; z-index: 2; left: -14px; bottom: 28px;
  background: var(--red); color: #fff;
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em;
  font-size: 1rem; line-height: 1.05; padding: 12px 16px; border-radius: 4px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25); transform: rotate(-3deg);
}

/* ---------- Facts strip ---------- */
.strip { background: var(--white); border-bottom: 1px solid var(--line); }
.strip__inner {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-block: 30px;
}
.stat { display: flex; align-items: center; gap: 14px; }
.stat b {
  font-family: var(--font-display); font-weight: 900; font-size: 3rem; line-height: 1; color: var(--red);
  min-width: 2.2ch;
}
.stat span { font-size: 0.98rem; line-height: 1.35; color: var(--muted); font-weight: 500; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.about__copy p { font-size: 1.12rem; }
.pullquote {
  margin: 2rem 0 0; padding: 1.4rem 1.6rem 1.4rem 1.8rem;
  border-left: 6px solid var(--red); background: var(--white); border-radius: 0 var(--radius) var(--radius) 0;
}
.pullquote p { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; line-height: 1.2; color: var(--navy); margin-bottom: 0.4rem; }
.pullquote footer { color: var(--muted); font-weight: 600; }

.about__facts {
  background: var(--navy); color: #fff; padding: 28px; border-radius: var(--radius);
  position: sticky; top: 96px;
}
.about__facts h3 { color: var(--sky); text-transform: uppercase; letter-spacing: 0.1em; font-size: 1.1rem; margin-bottom: 1rem; }
.about__facts dl { margin: 0 0 1.4rem; }
.about__facts dl div { padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.about__facts dt { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.65); }
.about__facts dd { margin: 2px 0 0; font-weight: 600; font-size: 1rem; }

/* ---------- Priorities ---------- */
.priorities { background: var(--white); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  position: relative; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px 26px; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}
.card::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--red);
  transform: scaleY(0); transform-origin: top; transition: transform 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::after { transform: scaleY(1); }
.card__num {
  font-family: var(--font-display); font-weight: 900; font-size: 2.6rem; line-height: 1; color: var(--red);
  display: block; margin-bottom: 10px;
}
.card h3 { font-size: 1.5rem; }
.card__tag { font-weight: 700; color: var(--navy); margin: 0 0 6px !important; }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.priorities__motto {
  display: flex; justify-content: center; align-items: center; gap: 18px; flex-wrap: wrap;
  margin: clamp(28px, 4vw, 44px) 0 0; font-family: var(--font-display); font-weight: 800; font-size: 1.5rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy);
}
.priorities__motto span + span::before { content: ""; display: inline-block; width: 3px; height: 1.1em; background: var(--red); margin-right: 18px; vertical-align: -0.2em; }
.card p { margin: 0; color: #2f3a46; }

/* ---------- Record / timeline ---------- */
.record { background: var(--cream-2); }
.record__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.record__intro { position: sticky; top: 96px; }
.record__intro p { font-size: 1.12rem; color: #2f3a46; }

.timeline { list-style: none; margin: 0; padding: 0 0 0 28px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--navy); opacity: 0.25; }
.timeline li { position: relative; padding: 0 0 30px; }
.timeline li::before {
  content: ""; position: absolute; left: -28px; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--red); border: 3px solid var(--cream-2); box-shadow: 0 0 0 2px var(--red);
}
.timeline__when {
  font-family: var(--font-display); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  font-size: 0.85rem; color: var(--red);
}
.timeline h3 { margin: 4px 0 6px; font-size: 1.45rem; }
.timeline p { margin: 0; color: #2f3a46; }
.timeline__next::before { background: var(--navy); box-shadow: 0 0 0 2px var(--navy); }
.timeline__next .timeline__when { color: var(--navy-3); }

/* ---------- Volunteer ---------- */
.volunteer {
  background:
    radial-gradient(900px 500px at 10% 0%, rgba(27, 67, 128, 0.8), transparent 60%),
    var(--navy);
  color: #fff;
}
.volunteer__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.volunteer h2 { color: #fff; }
.volunteer__copy p { font-size: 1.15rem; color: rgba(255, 255, 255, 0.86); }
.checklist { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: center; font-weight: 600; font-size: 1.08rem; }
.checklist li::before {
  content: "\2713"; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--red); color: #fff; font-weight: 900; font-size: 0.95rem; flex: none;
}
.volunteer__social a { color: var(--sky); font-weight: 700; }

/* ---------- Flyer card ---------- */
.flyer {
  display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: center;
  margin-top: 28px; padding: 14px; border-radius: 8px; text-decoration: none; color: #fff;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18);
  transition: background 0.2s ease, transform 0.2s ease;
}
.flyer:hover { background: rgba(255, 255, 255, 0.14); transform: translateY(-2px); color: #fff; }
.flyer__img { width: 120px; height: auto; border-radius: 4px; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35); }
.flyer__body { display: grid; gap: 4px; }
.flyer__kicker { font-family: var(--font-display); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sky); }
.flyer__title { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; line-height: 1.1; }
.flyer__text { font-size: 0.98rem; color: rgba(255, 255, 255, 0.85); }
.flyer__cta { font-weight: 700; color: var(--sky); margin-top: 4px; }

/* ---------- Forms ---------- */
.form {
  background: var(--white); color: var(--ink); border-radius: 8px; padding: clamp(22px, 3vw, 34px);
  box-shadow: var(--shadow); display: grid; gap: 14px;
}
.form h3 { margin-bottom: 2px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; }
.form label span { color: var(--red); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form textarea, .form select {
  font: inherit; font-weight: 400; width: 100%; padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: var(--radius); background: #fff; color: var(--ink); transition: border-color 0.15s, box-shadow 0.15s;
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none; border-color: var(--navy-3); box-shadow: 0 0 0 3px rgba(27, 67, 128, 0.15);
}
.form input[aria-invalid="true"], .form textarea[aria-invalid="true"] { border-color: var(--red); }
.form textarea { resize: vertical; }
.form__choices { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.form__choices legend { font-weight: 700; margin-bottom: 8px; }
.form__choices label { display: flex; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; }
.form__choices input { width: 18px; height: 18px; accent-color: var(--red); }
.form__status { margin: 0; font-weight: 600; min-height: 1.4em; }
.form__status.is-error { color: var(--red); }
.form__status.is-success { color: #1d7a3c; }
.form__fine { margin: 0; font-size: 0.82rem; color: var(--muted); line-height: 1.45; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form--light { box-shadow: none; border: 1px solid var(--line); }
.form.is-sent > *:not(.form__status) { opacity: 0.35; pointer-events: none; }

/* ---------- Donate ---------- */
.donate { background: var(--red); color: #fff; }
.donate h2 { color: #fff; }
.donate__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.donate .kicker { color: #fff; opacity: 0.85; }
.donate p { font-size: 1.15rem; color: rgba(255, 255, 255, 0.92); }
.donate__amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.amount {
  display: grid; place-items: center; min-height: 72px;
  font-family: var(--font-display); font-weight: 900; font-size: 1.8rem; color: var(--navy);
  background: #fff; border: 2px solid #fff; border-radius: var(--radius); text-decoration: none;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.amount:hover { background: var(--navy); border-color: var(--navy); color: #fff; transform: translateY(-2px); }
.amount--other { background: var(--navy); border-color: var(--navy); color: #fff; }
.amount--other:hover { background: var(--navy-2); border-color: var(--navy-2); }
.donate__note { grid-column: 1 / -1; margin: 6px 0 0; font-size: 1rem !important; font-weight: 600; }
.donate__note a { color: #fff; }

/* ---------- Vote ---------- */
.vote { background: var(--white); }
.dates { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.date {
  display: grid; grid-template-columns: 84px 1fr; gap: 20px; align-items: start;
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
}
.date__day {
  display: grid; place-items: center; text-align: center; align-content: center;
  background: var(--navy); color: #fff; border-radius: var(--radius); padding: 10px 6px; line-height: 1;
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 0.95rem; letter-spacing: 0.08em;
  min-height: 84px;
}
.date__day b { font-size: 2.2rem; font-weight: 900; display: block; margin-top: 2px; }
.date h3 { font-size: 1.35rem; margin-bottom: 4px; }
.date p { margin: 0; color: #2f3a46; }
.date--big { grid-column: 1 / -1; background: var(--navy); color: #fff; border-color: transparent; }
.date--big .date__day { background: var(--red); }
.date--big h3 { color: var(--sky); font-size: 1.7rem; }
.date--big p { color: rgba(255, 255, 255, 0.9); }
.date--big a { color: var(--sky); }
.vote__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.vote__fine { margin: 18px 0 0; font-size: 0.9rem; color: var(--muted); }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact__copy p { font-size: 1.12rem; color: #2f3a46; }
.contact__list { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 12px; }
.contact__list li { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.contact__list li span { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.85rem; color: var(--muted); padding-top: 3px; }
.contact__list a { font-weight: 600; text-decoration: none; }
.contact__list a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: rgba(255, 255, 255, 0.85); border-top: 10px solid var(--red); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-block: 36px 24px; }
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__name { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; text-transform: uppercase; color: #fff; }
.footer__tag { margin: 0; color: var(--sky); font-weight: 600; }
.footer__links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer__links a { color: #fff; text-decoration: none; font-weight: 600; }
.footer__links a:hover { color: var(--sky); }
.footer__legal { border-top: 1px solid rgba(255, 255, 255, 0.14); padding-block: 18px 28px; font-size: 0.88rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; }
.footer__legal p { margin: 0; }
.disclaimer { border: 1px solid rgba(255, 255, 255, 0.5); padding: 4px 10px; border-radius: 3px; display: inline-block; }
.disclaimer a { color: #fff; font-weight: 600; text-decoration: none; }
.disclaimer a:hover { text-decoration: underline; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .amount { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cards, .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .strip__inner { grid-template-columns: repeat(2, 1fr); }
  .about__grid, .record__grid { grid-template-columns: 1fr; }
  .about__facts, .record__intro { position: static; }
}

@media (max-width: 860px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--navy-2); flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 16px 16px; display: none; border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  .nav__menu.is-open { display: flex; }
  .nav__menu a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  .nav__menu .btn { margin-top: 12px; }

  .hero__inner { grid-template-columns: 1fr; padding-top: 44px; }
  .hero__photo { max-width: 360px; order: -1; }
  .hero__title { font-size: clamp(2.8rem, 12vw, 4.4rem); }
  .volunteer__grid, .contact__grid, .donate__inner { grid-template-columns: 1fr; }
  .dates { grid-template-columns: 1fr; }
  .topbar__inner { justify-content: center; text-align: center; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .cards, .cards--4, .strip__inner { grid-template-columns: 1fr; }
  .priorities__motto { font-size: 1.05rem; gap: 10px; letter-spacing: 0.1em; flex-wrap: nowrap; }
  .priorities__motto span + span::before { margin-right: 10px; }
  .form__row, .form__choices { grid-template-columns: 1fr; }
  .donate__amounts { grid-template-columns: repeat(2, 1fr); }
  .stat b { font-size: 2.4rem; }
  .brand__name { font-size: 1.3rem; }
  .brand__office { font-size: 0.68rem; }
  .date { grid-template-columns: 70px 1fr; gap: 14px; padding: 16px; }
  .date__day { min-height: 70px; }
  .date__day b { font-size: 1.8rem; }
  .contact__list li { grid-template-columns: 1fr; gap: 2px; }
  .photo-badge { font-size: 0.85rem; padding: 10px 12px; left: -6px; }
  .topbar__date { font-size: 0.85rem; }
}

/* ---------- On the Trail: events + updates ---------- */
.trail { background: var(--white); border-top: 1px solid var(--line); }
.trail__grid { display: grid; grid-template-columns: 0.9fr 1.3fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.trail h3 { font-size: 1.35rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }

.events__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.events__subscribe { font-size: 0.9rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.events__subscribe::before { content: "\1F4C5"; margin-right: 6px; }
.events__subscribe:hover { text-decoration: underline; }
.events__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.event {
  display: grid; grid-template-columns: 74px 1fr; gap: 16px; align-items: start;
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.event:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.event__date {
  display: grid; place-items: center; align-content: center; text-align: center; min-height: 74px;
  background: var(--navy); color: #fff; border-radius: var(--radius); padding: 8px 4px; line-height: 1;
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem;
}
.event__date b { display: block; font-size: 2rem; font-weight: 900; margin: 2px 0; }
.event__date small { font-size: 0.7rem; letter-spacing: 0.1em; opacity: 0.85; }
.event--election .event__date { background: var(--red); }
.event--volunteer .event__date { background: var(--navy-3); }
.event__body h4 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; margin: 0 0 4px; color: var(--navy); line-height: 1.1; }
.event__meta { margin: 0 0 6px; font-size: 0.92rem; color: var(--muted); font-weight: 600; }
.event__meta span + span::before { content: "\00B7"; margin: 0 6px; }
.event__desc { margin: 0 0 8px; font-size: 0.98rem; color: #2f3a52; }
.event__actions { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.88rem; font-weight: 700; }
.event__actions a { text-decoration: none; }
.event__actions a:hover { text-decoration: underline; }
.event__tag {
  display: inline-block; font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--red); font-weight: 700; margin-bottom: 4px;
}
.events__empty, .events__past { color: var(--muted); font-size: 0.95rem; margin: 0; }
.events__past { margin-top: 12px; }
.events__past a { font-weight: 600; }

.updates__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-bottom: 22px; }
.update {
  display: flex; flex-direction: column; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.update:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.update__media { position: relative; }
.update__img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; object-position: center top; background: var(--cream-2); }
.update__gallery { display: flex; gap: 6px; padding: 6px 6px 0; background: var(--cream); }
.update__gallery a { flex: 1; display: block; border-radius: 4px; overflow: hidden; border: 1px solid var(--line); }
.update__gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform 0.2s ease; }
.update__gallery a:hover img { transform: scale(1.04); }
.update__body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.update__meta { display: flex; justify-content: space-between; gap: 10px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; font-family: var(--font-display); font-weight: 700; }
.update__meta .tag { color: var(--red); }
.update__meta time { color: var(--muted); }
.update__body h4 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; margin: 0; color: var(--navy); line-height: 1.1; }
.update__body p { margin: 0; font-size: 0.98rem; color: #2f3a52; flex: 1; }
.update__link { font-weight: 700; text-decoration: none; font-size: 0.92rem; margin-top: 6px; }
.update__link::after { content: " \2192"; }
.update__link:hover { text-decoration: underline; }
.update--first { grid-column: 1 / -1; flex-direction: row; }
.update--first .update__media { width: 46%; flex: none; display: flex; flex-direction: column; }
.update--first .update__img { width: 100%; aspect-ratio: auto; min-height: 240px; flex: 1; object-position: center; }
.update--first .update__gallery a { max-width: 33%; }
.update--first .update__body h4 { font-size: 1.7rem; }

@media (max-width: 1024px) {
  .trail__grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .updates__grid { grid-template-columns: 1fr; }
  .update--first { flex-direction: column; }
  .update--first .update__media { width: 100%; }
  .update--first .update__img { width: 100%; aspect-ratio: 16 / 9; min-height: 0; flex: none; }
  .event { grid-template-columns: 64px 1fr; gap: 12px; padding: 14px; }
  .event__date { min-height: 64px; }
  .event__date b { font-size: 1.7rem; }
}
