/* Ladysmith Kinsmen — shared styles */
:root {
  --kin-red: #C8102E;
  --kin-red-dark: #9E0C24;
  --kin-red-deep: #7A091C;
  --kin-red-soft: #FDF2F4;
  --kin-red-mid: #F5D0D6;
  --ink: #1A1A1A;
  --ink-muted: #4A4A4A;
  --ink-light: #6B6B6B;
  --surface: #FFFFFF;
  --surface-warm: #FAF8F6;
  --surface-alt: #F5F3F1;
  --navy: #0B1D2A;
  --border: #E8E2DC;
  --shadow: 0 4px 20px rgba(26, 26, 26, 0.08);
  --shadow-lg: 0 12px 40px rgba(26, 26, 26, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --max: 1120px;
  --font: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 64px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
ul { list-style: none; }

a {
  color: var(--kin-red);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
a:hover { color: var(--kin-red-dark); }
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--kin-red);
  outline-offset: 3px;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.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;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--kin-red);
  color: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding: 0.65rem 0;
}

.logo {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.logo:hover { color: #fff; opacity: 0.92; }
.logo span { display: block; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 6px;
  width: 44px;
  height: 40px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.nav a:hover,
.nav a:focus-visible {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  outline: none;
}
.nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-solid {
  background: #fff;
  color: var(--kin-red);
  border-color: #fff;
}
.btn-solid:hover {
  background: #f5f5f5;
  color: var(--kin-red-dark);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.85);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-primary {
  background: var(--kin-red);
  color: #fff;
  border-color: var(--kin-red);
}
.btn-primary:hover {
  background: var(--kin-red-dark);
  color: #fff;
  border-color: var(--kin-red-dark);
}

.btn-ghost-red {
  background: transparent;
  color: var(--kin-red);
  border-color: var(--kin-red);
}
.btn-ghost-red:hover {
  background: var(--kin-red-soft);
  color: var(--kin-red-dark);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  background: linear-gradient(145deg, #E01535 0%, var(--kin-red) 45%, var(--kin-red-dark) 100%);
  color: #fff;
  overflow: hidden;
  padding: 4.5rem 0 5rem;
  text-align: center;
}

.hero-circles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-circles span {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}
.hero-circles .c1 { width: 420px; height: 420px; top: -120px; left: -80px; }
.hero-circles .c2 { width: 280px; height: 280px; top: 40%; right: -60px; background: rgba(255, 255, 255, 0.06); }
.hero-circles .c3 { width: 180px; height: 180px; bottom: -40px; left: 35%; background: rgba(255, 255, 255, 0.07); }
.hero-circles .c4 { width: 100px; height: 100px; top: 20%; left: 55%; background: rgba(255, 255, 255, 0.05); }
.hero-circles .c5 { width: 60px; height: 60px; bottom: 30%; right: 25%; background: rgba(255, 255, 255, 0.09); }

.hero .wrap { position: relative; z-index: 1; }

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-lead {
  max-width: 38rem;
  margin: 0 auto 1.25rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.95);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.hero-tag svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.hero-since {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.75rem;
}

.page-hero {
  padding: 3rem 0 3.25rem;
}
.page-hero h1 { margin-bottom: 0.75rem; }
.page-hero .hero-lead { margin-bottom: 0; }

/* ——— Impact strip ——— */
.impact {
  background: var(--navy);
  color: #fff;
  padding: 1.75rem 0;
}
.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  text-align: center;
}
.impact-item strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.2rem;
}
.impact-item span {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.4;
}

/* ——— Sections ——— */
.section {
  padding: 4rem 0;
}
.section-alt { background: var(--surface-alt); }
.section-soft { background: var(--kin-red-soft); }

.section-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.5rem;
}
.section-head h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 0.75rem;
}
.section-head p {
  color: var(--ink-muted);
  font-size: 1.05rem;
}

.section-cta {
  text-align: center;
  margin-top: 2rem;
}

/* ——— Cards: Who ——— */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.pillar {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(200, 16, 46, 0.06);
}
.pillar-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--kin-red);
  display: grid;
  place-items: center;
  color: #F5C542;
}
.pillar-icon svg { width: 28px; height: 28px; }
.pillar h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--ink);
}
.pillar p {
  color: var(--ink-muted);
  font-size: 0.975rem;
  line-height: 1.6;
}

/* ——— Project cards ——— */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.project-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.project-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.project-visual {
  height: 140px;
  position: relative;
  overflow: hidden;
}
.project-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.25) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(0,0,0,0.12) 0%, transparent 45%);
}
.pv-spray {
  background: linear-gradient(135deg, #1B6CA8 0%, #3DB8E0 40%, #7ED4F0 70%, #C8EEF8 100%);
}
.pv-park {
  background: linear-gradient(135deg, #2D6A4F 0%, #52B788 45%, #95D5B2 75%, #D8F3DC 100%);
}
.pv-washrooms {
  background: linear-gradient(135deg, #495057 0%, #868E96 40%, #ADB5BD 70%, #DEE2E6 100%);
}
.pv-festival {
  background: linear-gradient(135deg, #1A365D 0%, #2B6CB0 35%, #C8102E 70%, #F6AD55 100%);
}
.project-body {
  padding: 1.35rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.project-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  color: var(--ink);
}
.project-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--kin-red);
  margin-bottom: 0.65rem;
}
.project-body p {
  color: var(--ink-muted);
  font-size: 0.975rem;
  flex: 1;
}
.project-note {
  margin-top: 0.85rem;
  padding: 0.65rem 0.85rem;
  background: var(--kin-red-soft);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--ink-muted);
  border-left: 3px solid var(--kin-red);
}

/* ——— Events strip ——— */
.events-strip {
  background: var(--surface-warm);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.events-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.event-item {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  border: 1px solid var(--border);
}
.event-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--ink);
}
.event-item p {
  font-size: 0.925rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

/* ——— Join steps ——— */
.join-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.step-card {
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100%;
}
.step-card.filled {
  background: var(--kin-red);
  color: #fff;
}
.step-card.outline {
  background: var(--surface);
  color: var(--kin-red);
  border: 2px solid var(--kin-red);
}
.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.step-card.filled .step-num {
  background: #fff;
  color: var(--kin-red);
}
.step-card.outline .step-num {
  background: var(--kin-red);
  color: #fff;
}
.step-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}
.step-card p {
  font-size: 0.975rem;
  line-height: 1.6;
  opacity: 0.95;
}
.step-card.outline p { color: var(--ink-muted); }
.step-card.outline h3 { color: var(--kin-red); }

.step-box {
  margin-top: 1.25rem;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.18);
  font-size: 0.9rem;
  line-height: 1.45;
}
.step-box a {
  color: #fff;
  font-weight: 700;
}

/* ——— Footer ——— */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.9);
  padding: 2.5rem 0;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.7;
}
.site-footer a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-footer a:hover { color: var(--kin-red-mid); }
.footer-lines { display: flex; flex-direction: column; gap: 0.35rem; }
.footer-meta {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ——— Page content extras ——— */
.prose {
  max-width: 42rem;
  margin: 0 auto;
}
.prose p + p { margin-top: 1rem; }
.prose h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2.5rem 0 0.85rem;
  color: var(--ink);
}
.prose h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 1.75rem 0 0.5rem;
}
.prose ul {
  margin: 0.75rem 0 1rem 1.25rem;
  list-style: disc;
  color: var(--ink-muted);
}
.prose li + li { margin-top: 0.4rem; }
.prose li::marker { color: var(--kin-red); }

.timeline {
  max-width: 40rem;
  margin: 0 auto;
  position: relative;
  padding-left: 1.75rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 3px;
  background: var(--kin-red-mid);
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  padding-bottom: 1.75rem;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.75rem;
  top: 0.45rem;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--kin-red);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--kin-red);
}
.timeline-year {
  font-weight: 700;
  color: var(--kin-red);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}
.timeline-item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.timeline-item p {
  color: var(--ink-muted);
  font-size: 0.975rem;
}

.contact-card {
  max-width: 32rem;
  margin: 0 auto;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  text-align: center;
}
.contact-card h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.contact-card p {
  color: var(--ink-muted);
  margin-bottom: 0.65rem;
}
.contact-card .btn { margin-top: 1.25rem; }

.info-banner {
  background: var(--kin-red-soft);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--kin-red);
  margin: 1.5rem auto;
  max-width: 42rem;
  color: var(--ink-muted);
  font-size: 0.975rem;
}

.extra-list {
  display: grid;
  gap: 1rem;
  max-width: 42rem;
  margin: 0 auto;
}
.extra-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
}
.extra-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.extra-item p {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* ——— Responsive ——— */
@media (max-width: 900px) {
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: 1fr; max-width: 24rem; margin-inline: auto; }
  .project-grid { grid-template-columns: 1fr; }
  .events-list { grid-template-columns: 1fr; }
  .join-steps { grid-template-columns: 1fr; max-width: 22rem; margin-inline: auto; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--kin-red-dark);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    gap: 0.15rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  }
  .nav.is-open { display: flex; }
  .nav a {
    padding: 0.85rem 1rem;
    font-size: 1.05rem;
  }

  .hero { padding: 3.25rem 0 3.75rem; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; }

  .impact-grid { gap: 1rem; }
  .impact-item strong { font-size: 1.15rem; }

  .section { padding: 3rem 0; }
}

@media (max-width: 480px) {
  .impact-grid { grid-template-columns: 1fr 1fr; }
  .logo { font-size: 1.05rem; }
}


/* Blog */
.posts-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 900px) {
  .posts-grid { grid-template-columns: 1fr; }
}
.post-card {
  background: #fff;
  border: 1px solid #ead6d9;
  border-radius: 14px;
  padding: 1.25rem 1.35rem 1.4rem;
  box-shadow: 0 8px 24px rgba(80, 20, 30, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.post-card .post-date {
  font-size: 0.85rem;
  font-weight: 600;
  color: #c8102e;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.post-card h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.3;
}
.post-card h3 a {
  color: inherit;
  text-decoration: none;
}
.post-card h3 a:hover { color: #c8102e; }
.post-card p {
  margin: 0;
  color: #555;
  flex: 1;
}
.post-card .read-more {
  font-weight: 600;
  color: #c8102e;
  text-decoration: none;
}
.post-card .read-more:hover { text-decoration: underline; }
.post-sample {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #f7e8eb;
  color: #8a1a2c;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  width: fit-content;
}
.prose {
  max-width: 42rem;
  margin: 0 auto;
}
.prose p { margin: 0 0 1rem; color: #333; line-height: 1.65; }
.prose .post-meta { color: #777; font-size: 0.95rem; margin-bottom: 1.5rem; }

.timeline {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.timeline-item {
  list-style: none;
}
.timeline-item::marker {
  content: none;
  display: none;
}
