:root {
  --ink: #121212;
  --black: #000;
  --paper: #f7f7f7;
  --white: #fff;
  --red: #d61f26;
  --red-dark: #a8141a;
  --muted: #666;
  --line: #d8d8d8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.65 "Roboto Condensed", Arial, sans-serif;
  letter-spacing: .02em;
}
button, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.hero {
  position: relative;
  min-height: 680px;
  padding: 0 max(24px, calc((100% - 1200px) / 2)) 76px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.7) 50%, rgba(0,0,0,.42) 100%),
    url("https://ballpitmotor.com/cdn/shop/files/2025-12-08_14-10-36.jpg?v=1784506440&width=1500") center 55% / cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 6px;
  background: var(--red);
}
nav {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 118px;
  border-bottom: 1px solid rgba(255,255,255,.24);
}
.brand {
  display: grid;
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
}
.brand strong {
  font-family: "Oswald", Impact, sans-serif;
  font-size: 31px;
  font-weight: 600;
  letter-spacing: .035em;
  line-height: 1;
}
.brand span {
  margin-top: 7px;
  color: rgba(255,255,255,.68);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
}
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  color: rgba(255,255,255,.82);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.nav-links a:hover { color: var(--white); }

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(310px, .65fr);
  gap: 72px;
  align-items: end;
  padding-top: 104px;
}
.eyebrow, .mini-label {
  margin: 0 0 15px;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
h1, h2, h3 { font-family: "Oswald", Impact, sans-serif; font-weight: 500; letter-spacing: .02em; }
h1 {
  margin: 0;
  font-size: clamp(58px, 7.2vw, 96px);
  line-height: .98;
  text-transform: uppercase;
}
h1 em { color: var(--white); font-style: normal; }
.lede {
  max-width: 690px;
  margin: 26px 0 0;
  color: rgba(255,255,255,.8);
  font-size: clamp(18px, 1.8vw, 23px);
  line-height: 1.5;
}
.ecr-card {
  position: relative;
  padding: 31px;
  background: rgba(0,0,0,.86);
  border: 1px solid rgba(255,255,255,.36);
}
.ecr-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--red);
}
.ecr-card .mini-label { color: var(--red); }
.ecr-card h2 { margin: 5px 0 13px; font-size: 34px; line-height: 1.08; text-transform: uppercase; }
.ecr-card p:not(.mini-label) { color: rgba(255,255,255,.72); }
.ecr-card button, #reset, .actions .button {
  padding: 12px 20px;
  color: var(--white);
  background: var(--black);
  border: 1px solid var(--black);
  border-radius: 0;
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.ecr-card button { margin-top: 10px; background: var(--red); border-color: var(--red); }
.ecr-card button:hover, #reset:hover, .actions .button:hover { background: var(--red-dark); border-color: var(--red-dark); }

main { max-width: 1200px; margin: auto; padding: 0 24px 96px; }
.quick-picks {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: -35px;
  background: var(--black);
  box-shadow: 0 14px 35px rgba(0,0,0,.14);
}
.quick {
  min-height: 100px;
  padding: 20px 22px;
  color: rgba(255,255,255,.72);
  text-align: left;
  background: var(--black);
  border: 0;
  border-right: 1px solid #333;
  cursor: pointer;
}
.quick:last-child { border-right: 0; }
.quick strong, .quick span { display: block; }
.quick strong { color: var(--white); font-family: "Oswald", sans-serif; font-size: 19px; font-weight: 500; }
.quick span { margin-top: 5px; font-size: 13px; }
.quick.active, .quick:hover { background: var(--red); }
.quick.active span, .quick:hover span { color: rgba(255,255,255,.82); }

.calendar-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 48px;
  padding: 92px 0 28px;
}
.eyebrow.dark { color: var(--red); }
.calendar-heading h2, .ecr-guide h2 {
  margin: 0;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1;
  text-transform: uppercase;
}
.calendar-heading > p { max-width: 510px; margin: 0; color: var(--muted); font-size: 18px; }
.view-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}
.view-switch, .month-nav { display: flex; align-items: center; }
.view-button, .month-nav button {
  min-height: 44px;
  padding: 10px 18px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--black);
  border-radius: 0;
  font-weight: 700;
  cursor: pointer;
}
.view-button + .view-button { border-left: 0; }
.view-button.active { color: var(--white); background: var(--black); }
.month-nav { gap: 16px; }
.month-nav strong {
  min-width: 170px;
  font-family: "Oswald", sans-serif;
  font-size: 21px;
  font-weight: 500;
  text-align: center;
  text-transform: uppercase;
}
.month-nav button { width: 44px; padding: 0; font-size: 20px; }
.filters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 22px;
  background: var(--white);
  border-top: 4px solid var(--black);
  box-shadow: 0 8px 25px rgba(0,0,0,.07);
}
label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
select {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 12px 34px 12px 12px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #aaa;
  border-radius: 0;
}
select:focus, button:focus-visible, a:focus-visible { outline: 3px solid rgba(214,31,38,.4); outline-offset: 2px; }
#reset { align-self: end; margin: 0; white-space: nowrap; }
.attendance-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 14px;
  background: #f1f1f1;
  border-left: 4px solid var(--red);
  cursor: pointer;
}
.attendance-filter input { width: 18px; height: 18px; accent-color: var(--red); }
.results-bar { display: flex; justify-content: space-between; align-items: baseline; padding: 28px 2px 12px; }
#summary { margin: 0; font-size: 18px; }
#summary strong { color: var(--red); font-family: "Oswald", sans-serif; font-size: 31px; font-weight: 500; }
.verified { color: var(--muted); font-size: 12px; }

.events { display: grid; gap: 14px; }
[hidden] { display: none !important; }
.month-calendar {
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 5px 18px rgba(0,0,0,.06);
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  min-width: 840px;
}
.weekday {
  padding: 10px 12px;
  color: var(--white);
  background: var(--black);
  border-right: 1px solid #333;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}
.calendar-day {
  min-height: 150px;
  padding: 9px;
  background: var(--white);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.calendar-day.outside { background: #f0f0f0; }
.calendar-day.outside .day-number { color: #999; }
.day-number {
  display: block;
  margin-bottom: 7px;
  font-family: "Oswald", sans-serif;
  font-size: 18px;
  font-weight: 500;
}
.day-events { display: grid; gap: 5px; }
.calendar-event {
  display: grid;
  padding: 6px 7px;
  overflow: hidden;
  color: var(--ink);
  background: #ededed;
  border-left: 3px solid var(--black);
  font-size: 11px;
  line-height: 1.25;
  text-decoration: none;
}
.calendar-event.is-ecr { background: #f8e1e2; border-left-color: var(--red); }
.calendar-event.ball-pit-attending { color: var(--white); background: var(--red); border-left-color: var(--black); }
.calendar-event strong, .calendar-event span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calendar-event:hover { color: var(--white); background: var(--red); border-left-color: var(--red-dark); }
.more-events { color: var(--red); font-size: 11px; font-weight: 700; }
article {
  display: grid;
  grid-template-columns: 104px 1fr;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 5px 18px rgba(0,0,0,.06);
  transition: transform .18s ease, box-shadow .18s ease;
}
article:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(0,0,0,.1); }
article.is-ecr { border-left: 5px solid var(--red); }
.date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: var(--black);
  text-transform: uppercase;
}
.is-ecr .date { background: var(--red); }
.date strong { font-family: "Oswald", sans-serif; font-size: 42px; font-weight: 500; line-height: 1; }
.date span { font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.body { padding: 25px 28px; }
.body h2 { margin: 10px 0 2px; font-size: clamp(23px, 3vw, 30px); line-height: 1.12; }
.body p { margin: 4px 0; }
.organizer { font-weight: 700; }
.place { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
  padding: 4px 9px;
  color: #333;
  background: #e5e5e5;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.tag.public_program, .tag.public { color: #07552d; background: #d8f0e3; }
.tag.member_only, .tag.member_guest { color: #654100; background: #f6e4bd; }
.tag.private_closed { color: #7e1014; background: #f3d3d5; }
.tag.discipline { color: #26394b; background: #dde7f0; }
.tag.config { color: #443164; background: #e6def2; }
.tag.ecr { color: var(--white); background: var(--red); }
.tag.ball-pit { color: var(--white); background: var(--black); outline: 2px solid var(--red); }
.ball-pit-note {
  margin-top: 14px !important;
  padding: 11px 13px;
  background: #f4f4f4;
  border-left: 4px solid var(--red);
  font-size: 14px;
}
.actions { display: flex; align-items: center; gap: 20px; margin-top: 17px; }
.actions a { font-size: 14px; font-weight: 600; }
.actions > a:not(.button) { color: var(--red); }
.actions .button { padding: 10px 15px; }
.empty { padding: 46px; text-align: center; background: var(--white); border: 1px solid var(--line); }

.ecr-guide {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 70px;
  margin-top: 96px;
  padding: 64px;
  color: var(--white);
  background: var(--black);
}
.ecr-guide::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 7px; background: var(--red); }
.ecr-guide > div > p:not(.eyebrow) { max-width: 630px; color: rgba(255,255,255,.72); font-size: 18px; }
.guide-links { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 30px; }
.guide-links a { color: var(--white); font-weight: 600; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.review-preview { padding: 30px; color: var(--ink); background: var(--white); border-top: 5px solid var(--red); }
.review-preview span { color: var(--red); font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.review-preview h3 { margin: 5px 0 13px; font-size: 32px; text-transform: uppercase; }
.review-preview ul { margin: 0; padding-left: 20px; }
.review-preview li { margin: 8px 0; }

.lead-capture {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 68px;
  margin-top: 72px;
  padding: 58px 64px;
  background: var(--white);
  border-top: 7px solid var(--red);
  box-shadow: 0 8px 25px rgba(0,0,0,.08);
}
.lead-copy h2 { margin: 0; font-size: clamp(40px, 5vw, 60px); line-height: 1; text-transform: uppercase; }
.lead-copy > p:last-child { color: var(--muted); font-size: 18px; }
.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.lead-form label { display: block; }
.lead-form input[type="text"], .lead-form input[type="email"], .lead-form select {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-top: 7px;
  padding: 11px 12px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #888;
  border-radius: 0;
}
.lead-form fieldset, .lead-form .consent, .lead-form button, .lead-form .form-note, .lead-form .form-success { grid-column: 1 / -1; }
.lead-form fieldset { margin: 0; padding: 16px; border: 1px solid var(--line); }
.lead-form legend { padding: 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.interest-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.interest-options label, .consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.interest-options input, .consent input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--red); }
.lead-form button {
  min-height: 50px;
  padding: 12px 20px;
  color: var(--white);
  background: var(--red);
  border: 1px solid var(--red);
  border-radius: 0;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
}
.lead-form button:hover { background: var(--red-dark); border-color: var(--red-dark); }
.form-note, .form-success { margin: -6px 0 0; font-size: 12px; }
.form-note { color: var(--muted); }
.form-success { padding: 12px; color: #07552d; background: #d8f0e3; border-left: 4px solid #198754; }

@media (max-width: 850px) {
  .hero { min-height: auto; }
  .hero-grid, .calendar-heading, .ecr-guide, .lead-capture { grid-template-columns: 1fr; }
  .hero-grid { gap: 40px; padding-top: 70px; }
  .quick-picks { grid-template-columns: 1fr 1fr; }
  .quick:nth-child(2) { border-right: 0; }
  .quick { border-bottom: 1px solid #333; }
  .filters { grid-template-columns: 1fr 1fr; }
  .lead-capture { gap: 34px; padding: 44px; }
  #reset { min-height: 46px; }
}

@media (max-width: 600px) {
  .hero { padding-bottom: 58px; background-position: 60% center; }
  nav { min-height: 92px; }
  .brand strong { font-size: 24px; }
  .brand span { font-size: 8px; }
  .nav-links a:not(:last-child) { display: none; }
  .nav-links { gap: 0; }
  .hero-grid { padding-top: 58px; }
  h1 { font-size: clamp(48px, 15vw, 68px); }
  .ecr-card { padding: 26px; }
  .quick-picks { grid-template-columns: 1fr; margin-top: 0; }
  .quick { min-height: 82px; border-right: 0; }
  .calendar-heading { padding-top: 62px; gap: 18px; }
  .filters { grid-template-columns: 1fr; }
  .view-toolbar { align-items: stretch; flex-direction: column; }
  .view-switch { display: grid; grid-template-columns: 1fr 1fr; }
  .month-nav { justify-content: space-between; }
  .month-nav strong { min-width: 0; }
  .results-bar { align-items: flex-start; flex-direction: column; }
  article { grid-template-columns: 76px 1fr; }
  .body { padding: 20px; }
  .date strong { font-size: 34px; }
  .actions { align-items: flex-start; flex-direction: column; gap: 11px; }
  .ecr-guide { padding: 40px 26px; gap: 38px; }
  .lead-capture { padding: 38px 24px; }
  .lead-form { grid-template-columns: 1fr; }
  .interest-options { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
