/* Petworth for Safer Streets — shared styles
   Palette pulled from the group's logo gradient (violet -> sky blue),
   paired with street-marking motifs (lane-dash dividers, route-shield badges). */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700;800&family=Public+Sans:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
  --violet: #a44fd1;
  --violet-deep: #7c3aa8;
  --blue: #3f7fce;
  --blue-deep: #2c5da3;
  --ink: #1c2033;
  --ink-soft: #4a4f63;
  --paper: #faf8fc;
  --paper-dim: #f1eef7;
  --line: #dcd6e8;
  --caution: #f2b705;
  --asphalt: #2e303a;
  --max: 880px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Public Sans', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.12;
  margin: 0;
  color: var(--ink);
}

a { color: var(--blue-deep); }
a:focus-visible, button:focus-visible, select:focus-visible {
  outline: 3px solid var(--caution);
  outline-offset: 2px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

/* --- Nav --- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 248, 252, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.site-nav .wrap {
  max-width: 1040px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: block;
}

.brand span {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.site-nav nav {
  display: flex;
  gap: 28px;
}

.site-nav nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

.site-nav nav a:hover,
.site-nav nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--violet);
}

/* --- Lane-dash divider: a street lane marking, not a generic hairline --- */
.lane-divider {
  height: 0;
  border-top: 4px dashed var(--caution);
  opacity: 0.55;
  margin: 0;
}

/* --- Hero --- */
.hero {
  background: linear-gradient(165deg, #d17ee6 0%, var(--violet) 32%, var(--blue) 78%, var(--blue-deep) 100%);
  color: #fff;
  padding: 64px 0 56px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-logo {
  width: 100%;
  max-width: 300px;
  justify-self: end;
  border-radius: 22px;
  box-shadow: 0 24px 60px -20px rgba(30, 10, 60, 0.55);
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 4.4vw, 3.1rem);
  max-width: 15ch;
}

.hero p.lede {
  margin-top: 18px;
  font-size: 1.15rem;
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.92);
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.98rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-solid {
  background: #fff;
  color: var(--violet-deep);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

/* --- Stat section --- */
.stat-section {
  padding: 64px 0;
}

.stat-section .wrap {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: center;
}

.stat-number {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(4rem, 10vw, 6.4rem);
  line-height: 1;
  color: var(--violet-deep);
  background: linear-gradient(120deg, var(--violet-deep), var(--blue-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-copy p {
  margin: 0 0 12px;
  color: var(--ink-soft);
  max-width: 50ch;
}

.stat-copy p:last-child { margin-bottom: 0; }

/* --- Mission --- */
.mission {
  background: var(--paper-dim);
  padding: 64px 0;
}

.mission .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.mission h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  max-width: 14ch;
}

.mission-copy p {
  color: var(--ink-soft);
  margin-top: 16px;
}

.mission-copy p:first-child { margin-top: 0; }

/* street-line illustration */
.street-art { width: 100%; height: auto; }

/* --- Modes row --- */
.modes {
  padding: 64px 0 20px;
}

.modes h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  max-width: 22ch;
}

.mode-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.mode-card svg {
  width: 40px;
  height: 40px;
  stroke: var(--violet-deep);
}

.mode-card h3 {
  font-size: 1.05rem;
  margin-top: 14px;
}

.mode-card p {
  color: var(--ink-soft);
  font-size: 0.94rem;
  margin-top: 6px;
}

/* --- CTA banner --- */
.cta-banner {
  margin: 64px 0;
}

.cta-banner .wrap {
  background: var(--asphalt);
  border-radius: 20px;
  padding: 44px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  overflow: hidden;
}

.cta-banner .wrap::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 0;
  border-top: 4px dashed var(--caution);
  opacity: 0.6;
  transform: translateY(-50%);
}

.cta-text { position: relative; z-index: 1; max-width: 46ch; }

.cta-text h2 {
  color: #fff;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
}

.cta-text p {
  color: rgba(255, 255, 255, 0.78);
  margin-top: 10px;
}

.cta-banner .btn-solid {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  background: var(--caution);
  color: var(--ink);
}

/* --- Footer --- */
footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 56px;
}

footer .wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

footer img { width: 30px; height: 30px; border-radius: 7px; }

footer p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  max-width: 60ch;
}

/* --- Questionnaire page --- */
.q-header {
  padding: 56px 0 8px;
}

.q-header h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}

.q-header p {
  margin-top: 14px;
  color: var(--ink-soft);
  max-width: 62ch;
}

.q-controls {
  margin: 32px 0 8px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.q-controls label {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
}

.q-controls select {
  font-family: 'Public Sans', sans-serif;
  font-size: 1rem;
  padding: 11px 40px 11px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: #fff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="9" viewBox="0 0 14 9"><path d="M1 1l6 6 6-6" fill="none" stroke="%234a4f63" stroke-width="1.6"/></svg>') no-repeat right 16px center;
  appearance: none;
  color: var(--ink);
  min-width: 260px;
  cursor: pointer;
}

/* route-shield SMD badge */
.smd-shield {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 52px;
  padding: 0 10px;
  background: var(--blue-deep);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  clip-path: polygon(50% 0%, 100% 20%, 100% 100%, 0% 100%, 0% 20%);
}

.candidate-block {
  padding: 30px 0 70px;
}

.candidate-head {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 26px;
}

.candidate-head h2 {
  font-size: 1.5rem;
}

.candidate-head .smd-label {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-top: 2px;
}

.qa-item {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.qa-item:first-of-type { border-top: none; }

.qa-item .q {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  color: var(--violet-deep);
  font-size: 1.02rem;
  margin: 0 0 10px;
}

.qa-item .a {
  color: var(--ink);
  white-space: pre-line;
}

/* --- Responsive --- */
@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-logo { justify-self: start; max-width: 190px; }
  .stat-section .wrap { grid-template-columns: 1fr; }
  .mission .wrap { grid-template-columns: 1fr; }
  .mode-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-banner .wrap { flex-direction: column; align-items: flex-start; }
  .site-nav nav { gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
