/* LET DOGS IN — campaign site
   Canadian red: #A81519 (sampled from the logo)
   Design language: clean white, Figtree + Lato, generous whitespace */

:root {
  --red: #A81519;
  --red-dark: #8a1115;
  --ink: #1a1a1a;
  --body: #2D2D2D;
  --grey: #666;
  --meta: #888;
  --line: #e8e6e3;
  --bg: #ffffff;
  --bg-soft: #faf9f7;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  text-wrap: pretty;
}

h1, h2, h3 { font-family: 'Figtree', sans-serif; text-wrap: balance; line-height: 1.2; }

/* Short display lines (leads, kickers, captions, single-line headings) get
   balanced ragging. Running body copy keeps text-wrap: pretty (set on body)
   plus the nbsp unwidow guard, so multi-line paragraphs fill naturally and
   never strand a lonely last word. balance on body paragraphs backfires:
   it forces short blocks into two over-wide lines. */
summary, figcaption, blockquote,
.lead, .sub, .tagline, .wall-sub, .cta-block p, .petition-card-p { text-wrap: balance; }

a { color: var(--red); }

.container { max-width: 880px; margin: 0 auto; padding: 0 24px; }

/* ---- Masthead: dog icon + wordmark, centred ---- */
.masthead {
  text-align: center;
  padding: 36px 24px 0;
}
.masthead a { text-decoration: none; display: inline-block; }
.masthead img.roch-logo { width: 350px; height: auto; display: block; margin: 0 auto -4px; }
.wordmark {
  font-family: 'Figtree', sans-serif;
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 2.5rem;
  color: var(--red);
  text-transform: uppercase;
}

/* ---- Nav bar ---- */
nav.mainnav {
  padding-top: 1.05rem;
  padding-bottom: 3rem;
}
nav.mainnav ul {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  max-width: 315px;
  margin: 0 auto;
  padding: 0;
}
nav.mainnav a {
  display: inline-block;
  text-decoration: none;
  color: #333333;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s ease-in-out, transform 0.2s ease-in-out;
}
nav.mainnav a:hover { color: var(--red); transform: scale(1.2); }
nav.mainnav a.active { color: var(--red); }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  padding: 15px 48px;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.btn:hover { transform: scale(1.1); }
.btn-sm { padding: 8px 22px; font-size: 0.88rem; }
.btn-secondary {
  background: #fff;
  color: var(--red);
  border: 2px solid var(--red);
  padding: 12px 32px;
}
.btn-secondary:hover { background: var(--red); color: #fff; }

/* ---- Hero ---- */
.hero { padding: 64px 48px 88px; }
.hero-inner {
  display: flex;
  align-items: center;
  gap: 72px;
  max-width: 1080px;
  margin: 0 auto;
}
.hero-text { flex: 1 1 0; min-width: 0; padding-right: 16px; }
.hero h1 { font-size: 2.6rem; font-weight: 800; margin-bottom: 24px; text-align: left; line-height: 1.15; }
.hero h1 .em { color: var(--red); }
.hero .tagline {
  font-size: 1.08rem;
  color: var(--body);
  margin: 0;
  max-width: 560px;
  line-height: 1.7;
  text-align: left;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-start; margin-top: 36px; }
.hero-figure {
  flex: 0 0 380px;
  max-width: 380px;
  margin-left: auto;
}
.hero-figure img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 720px) {
  .hero-inner { flex-direction: column; }
  .hero h1 { font-size: 2rem; text-align: center; }
  .hero .tagline { text-align: center; max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-figure { flex: none; max-width: 100%; width: 100%; }
  .hero-figure img { height: 280px; object-position: center 10%; }
}

/* ---- Sections ---- */
section.band { padding: 56px 0; }
section.band.soft { background: var(--bg-soft); }
section.band h2 { font-size: 1.9rem; font-weight: 700; margin-bottom: 18px; }
section.band h2 .em { color: var(--red); }
section.band p { font-size: 1.08rem; color: #333; margin-bottom: 16px; text-wrap: balance; }
section.band p:last-child { margin-bottom: 0; }
section.band p a, .prose p a, .faq-a p a, .hero .tagline a {
  color: var(--red); text-decoration: none; transition: color 0.15s;
}
section.band p a:hover, .prose p a:hover, .faq-a p a:hover, .hero .tagline a:hover {
  color: var(--ink); text-decoration: underline; text-underline-offset: 2px;
}
.lead { font-size: 1.2rem !important; color: var(--ink) !important; }
section.band.tc .container { text-align: center; }

/* ---- Stat row ---- */
.stats { display: flex; flex-wrap: wrap; gap: 28px; justify-content: center; text-align: center; margin-top: 40px; }
.stat { flex: 1 1 200px; max-width: 260px; }
.stat .num { font-family: 'Figtree', sans-serif; font-weight: 800; font-size: 3rem; color: var(--red); line-height: 1; }
@keyframes statpop { 0% { transform: scale(1); } 45% { transform: scale(1.30); } 100% { transform: scale(1); } }
.stat .num.pop { animation: statpop 0.7s ease-in-out; }
@keyframes btnpop { 0% { transform: scale(1); } 45% { transform: scale(1.2); } 100% { transform: scale(1); } }
.btn.pop { animation: btnpop 0.7s ease-in-out; }
.stat .label { font-size: 0.98rem; color: var(--body); margin-top: 10px; }
.stat .src { font-size: 0.72rem; color: var(--meta); margin-top: 6px; }

/* ---- Centred CTA block ---- */
.cta-block { text-align: center; padding: 64px 24px; }
.cta-block h2 { font-size: 2rem; margin-bottom: 14px; }
.cta-block p { color: var(--grey); max-width: 720px; margin: 0 auto 28px; font-size: 1.08rem; }

/* ---- Forms ---- */
.formcard { max-width: 560px; margin: 0 auto; }
.formrow { margin-bottom: 18px; }
.formrow.two { display: flex; gap: 14px; }
.formrow.two > div { flex: 1; }
label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 6px; color: #333; }
input[type=text], input[type=email], select, textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  border: 1px solid #cfcdc9;
  border-radius: 6px;
  background: #fff;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: #444; margin-bottom: 14px; }
.consent input { margin-top: 4px; flex-shrink: 0; }
.formnote { font-size: 0.82rem; color: #999; margin-top: 14px; }
.formmsg { margin-top: 16px; padding: 14px; border-radius: 6px; font-size: 0.95rem; display: none; }
.formmsg.ok { display: block; background: #edf7ed; color: #1a5a1a; }
.formmsg.err { display: block; background: #fdf0f0; color: #8a1115; }

/* ---- Counter ---- */
.counter { text-align: center; padding: 8px 0 0; }
.counter .num { font-family: 'Figtree', sans-serif; font-weight: 800; font-size: 3.4rem; color: var(--red); line-height: 1; }
.counter .label { font-size: 1rem; color: var(--grey); margin-top: 6px; }

/* ---- Footer ---- */
footer {
  background: var(--bg-soft);
  padding: 40px 24px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--grey);
}
footer .pub { font-weight: 700; color: #444; }
footer a { color: var(--red); text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer .links { margin: 12px 0; }
footer .links a { margin: 0 10px; font-weight: 700; }
footer .legal { font-size: 0.78rem; color: #777; margin-top: 14px; }

/* ---- Paper "What's Inside" split layout ---- */
.paper-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 64px;
  align-items: start;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 48px;
}
.paper-left { position: sticky; top: 32px; }
.paper-left h2 { font-size: 1.9rem; font-weight: 700; margin-bottom: 24px; }

.insight-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px 56px;
}
.insight-item {
  padding: 4px 0;
}
.insight-item .t {
  font-family: 'Figtree', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 8px;
}
.insight-item p { font-size: 0.96rem; line-height: 1.65; color: var(--body); margin: 0; }

/* ---- Paper download card ---- */
.paper-download {
  text-align: center;
  border-radius: 12px;
  padding: 34px 30px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.paper-download .doc-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.paper-download h3 { font-size: 1.5rem; margin-bottom: 8px; }
.paper-download .meta { font-size: 0.88rem; color: var(--meta); margin-bottom: 24px; }

@media (max-width: 860px) {
  .paper-layout { grid-template-columns: 1fr; gap: 32px; padding: 0 24px; }
  .paper-left { position: static; max-width: 520px; margin: 0 auto; width: 100%; }
}
@media (max-width: 560px) {
  .insight-grid { grid-template-columns: 1fr; }
}

/* ---- Prose pages (about / privacy / code) ---- */
.prose { max-width: 760px; margin: 0 auto; padding: 48px 24px 64px; }
.prose h1 { font-size: 2.2rem; margin-bottom: 8px; }
.prose .sub { color: var(--grey); margin-bottom: 32px; font-size: 1.05rem; }
.prose h2 { font-size: 1.4rem; margin: 32px 0 12px; }
.prose p, .prose li { font-size: 1.05rem; color: #333; margin-bottom: 14px; text-wrap: balance; }
.prose ul { padding-left: 22px; }

@media (max-width: 600px) {
  .hero h1 { font-size: 2.1rem; }
  .formrow.two { flex-direction: column; gap: 0; }
  .stat .num { font-size: 2.4rem; }
}


/* ---- Compact petition form ---- */
.formcard.wide { max-width: 760px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fgrid > div { min-width: 0; }
.consent-row { display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 6px 0 4px; }
.consent-row .consent { margin-bottom: 0; flex: 1 1 260px; }
.formcard.wide .btn { width: 100%; margin-top: 6px; }
@media (max-width: 600px) { .fgrid { grid-template-columns: 1fr; gap: 0; } }

/* ---- Signatory wall ---- */
.signwall { max-width: 940px; margin: 0 auto; }
.signwall h2 { text-align: center; font-size: 1.7rem; margin-bottom: 6px; }
.signwall h2 .em { color: var(--red); }
.signwall .wall-sub { text-align: center; color: var(--grey); margin: 0 auto 30px; font-size: 1.02rem; max-width: 560px; }
.signgrid { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.sign-chip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.92rem;
  color: var(--ink);
  white-space: nowrap;
}
.sign-chip .prov { color: var(--red); font-weight: 700; margin-left: 7px; font-size: 0.8rem; letter-spacing: 0.04em; }
.signwall .more { text-align: center; color: var(--meta); margin-top: 24px; font-size: 0.92rem; }
.signwall .empty { text-align: center; color: var(--grey); }


/* ---- Footer copyright line ---- */
footer .copyright {
  margin-top: 12px;
  font-size: 0.78rem;
  color: #999;
}
footer .copyright a { color: #999; font-weight: 400; }
footer .copyright a:hover { color: var(--red); }
footer .copyright .sep { margin: 0 8px; color: #999; }


/* ---- Footer pub line ---- */
footer .pub-brand { color: inherit; font-weight: 700; }
footer .pub a { color: inherit; text-decoration: none; font-weight: 700; transition: color 0.15s; }
footer .pub a:hover { color: var(--red); text-decoration: underline; }
