/* Spoke & Wrench Community Bike Co-op */
:root {
  --ink: #1d2a24;
  --muted: #5b6b63;
  --paper: #f8f4ec;
  --card: #ffffff;
  --green: #1f5c43;
  --green-dark: #143d2d;
  --orange: #d9662b;
  --line: #e4dccd;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(29, 42, 36, 0.08);
  --max: 1100px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
a:hover { color: var(--orange); }
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
h3 { font-size: 1.2rem; }
.container { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 10; }

/* ---------- header / nav ---------- */
.site-header {
  background: var(--green-dark);
  color: #fff;
  position: sticky; top: 0; z-index: 5;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; }
.brand img { width: 36px; height: 36px; }
.brand span { font-family: "Fraunces", Georgia, serif; font-size: 1.2rem; }
.nav-toggle {
  display: none; background: none; border: 2px solid rgba(255,255,255,.5); color: #fff;
  border-radius: 8px; padding: 6px 12px; font: inherit; cursor: pointer;
}
.site-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.site-nav a {
  color: #e9f1ec; text-decoration: none; padding: 8px 14px; border-radius: 999px; display: block;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background: rgba(255,255,255,.14); color: #fff; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--green-dark); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding: 8px 16px 16px; }
}

/* ---------- sections ---------- */
.hero { padding: 64px 0 48px; }
.hero .container { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 34ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; color: var(--orange); font-weight: 700; }
.page-hero { padding: 48px 0 24px; }
.page-hero p { color: var(--muted); max-width: 60ch; font-size: 1.1rem; }
section { padding: 32px 0; }
.btn {
  display: inline-block; background: var(--orange); color: #fff; padding: 12px 22px; border-radius: 999px;
  text-decoration: none; font-weight: 600; border: 0; font: inherit; cursor: pointer;
}
.btn:hover { background: #b9531f; color: #fff; }
.btn.secondary { background: transparent; color: var(--green); border: 2px solid var(--green); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.card img.icon { width: 48px; height: 48px; margin-bottom: 12px; }
.stat { font-family: "Fraunces", Georgia, serif; font-size: 2.4rem; color: var(--green); margin: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }

@media (max-width: 760px) {
  .hero .container, .split { grid-template-columns: 1fr; }
  .hero { padding-top: 36px; }
}

/* ---------- services table + estimator ---------- */
table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { background: #eef3ef; font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.estimator label { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.estimator label span.price { margin-left: auto; color: var(--muted); }
.estimate-total { font-size: 1.6rem; font-family: "Fraunces", Georgia, serif; color: var(--green); margin: 16px 0 4px; }
.member-toggle { margin-top: 12px; font-weight: 600; }

/* ---------- events ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.filters button {
  border: 2px solid var(--green); background: transparent; color: var(--green);
  padding: 6px 16px; border-radius: 999px; font: inherit; cursor: pointer;
}
.filters button[aria-pressed="true"] { background: var(--green); color: #fff; }
.event { display: grid; grid-template-columns: 84px 1fr; gap: 16px; align-items: start; }
.event .date {
  background: var(--green); color: #fff; border-radius: 12px; text-align: center; padding: 10px 6px;
  font-weight: 700; line-height: 1.2;
}
.event .date small { display: block; font-weight: 400; opacity: .85; }
.tag { display: inline-block; font-size: .78rem; background: #fbe6d9; color: #8a3c13; padding: 2px 10px; border-radius: 999px; }
.empty { color: var(--muted); font-style: italic; }

/* ---------- contact form ---------- */
form .field { margin-bottom: 16px; }
form label { display: block; font-weight: 600; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; padding: 12px; border: 1px solid #c9bfae; border-radius: 10px; font: inherit; background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(31, 92, 67, .25); border-color: var(--green); }
.error { color: #a32020; font-size: .9rem; min-height: 1.2em; }
.notice { background: #e6f2eb; border: 1px solid #b7d6c4; padding: 16px; border-radius: 10px; }
dl.hours { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
dl.hours dt { font-weight: 600; }

/* ---------- footer ---------- */
.site-footer { background: var(--green-dark); color: #cfe0d6; margin-top: 48px; padding: 32px 0; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 72px 0; }
.notfound img { margin: 0 auto 24px; width: 220px; }
input[type="checkbox"] { width: 20px; height: 20px; flex: none; accent-color: var(--green); }
.split.top { align-items: start; }
.notice.closed { background: #fbe6d9; border-color: #efc3a6; }
