/* ==========================================================================
   Ride North Jersey — site.css
   Static build. No frameworks, no external fonts, no trackers.
   ========================================================================== */

:root {
  --ink:        #0d1114;
  --ink-2:      #161c21;
  --ink-3:      #212a31;
  --line:       #2c363e;
  --line-soft:  #e2e0dc;
  --paper:      #f7f5f2;
  --paper-2:    #ffffff;
  --muted:      #5d6a74;
  --muted-dk:   #9aa7b1;
  --hi:         #ff6a13;   /* high-vis signal orange */
  --hi-dk:      #d8530a;
  --hi-soft:    #fff1e8;
  --go:         #17795e;
  --go-soft:    #e6f4ef;
  --stop:       #9b2c2c;
  --stop-soft:  #fbecec;

  --wrap: 1120px;
  --r: 14px;
  --r-sm: 9px;
  --shadow: 0 1px 2px rgba(13,17,20,.06), 0 8px 28px rgba(13,17,20,.07);
  --shadow-lg: 0 2px 4px rgba(13,17,20,.08), 0 24px 60px rgba(13,17,20,.14);

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.12;
  letter-spacing: -.022em;
  font-weight: 800;
}
h1 { font-size: clamp(2.1rem, 1.35rem + 3.1vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.7vw, 2.35rem); }
h3 { font-size: 1.18rem; letter-spacing: -.012em; }
p  { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }
.section { padding: clamp(52px, 7vw, 86px) 0; }
.section--tint { background: var(--paper-2); border-block: 1px solid var(--line-soft); }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* --- Eyebrow ------------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .75rem; font-weight: 800; letter-spacing: .13em;
  text-transform: uppercase; color: var(--hi-dk); margin-bottom: .9em;
}
.eyebrow::before {
  content: ""; width: 26px; height: 3px; border-radius: 2px; flex: none;
  background: var(--hi);
}
.on-dark .eyebrow { color: var(--hi); }

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: 14px 24px; border-radius: 999px; border: 1.5px solid transparent;
  font-size: .97rem; font-weight: 700; letter-spacing: -.005em;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--hi); color: #fff; box-shadow: 0 6px 20px rgba(255,106,19,.32); }
.btn--primary:hover { background: var(--hi-dk); }
.btn--ghost { border-color: var(--line-soft); background: var(--paper-2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.on-dark .btn--ghost { background: transparent; border-color: rgba(255,255,255,.28); color: #fff; }
.on-dark .btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.07); }
.btn--sm { padding: 10px 18px; font-size: .88rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center .btn-row { justify-content: center; }

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--hi); outline-offset: 3px; border-radius: 4px;
}

/* --- Skip link ----------------------------------------------------------- */
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 0 0 10px 10px;
  text-decoration: none; font-weight: 700; transition: top .18s ease;
}
.skip:focus { top: 0; }

/* --- Standby banner ------------------------------------------------------ */
.standby {
  background: var(--ink-3); color: #cfd8de;
  font-size: .82rem; text-align: center; padding: 9px 22px;
  border-bottom: 1px solid var(--line);
}
.standby a { color: #fff; font-weight: 700; }

/* --- Header -------------------------------------------------------------- */
.site-head {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,17,20,.94);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head__in { display: flex; align-items: center; gap: 20px; min-height: 70px; }

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: #fff; margin-right: auto; }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-weight: 800; font-size: 1.02rem; letter-spacing: -.02em; white-space: nowrap; }
.brand__sub {
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted-dk); white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  padding: 9px 11px; border-radius: 8px; text-decoration: none; white-space: nowrap;
  color: #d5dde3; font-size: .89rem; font-weight: 600;
}
.nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.11); }
.head-cta { margin-left: 8px; }

.nav-toggle {
  display: none; background: transparent; border: 1.5px solid var(--line);
  color: #fff; border-radius: 9px; padding: 9px 13px; font-weight: 700; font-size: .88rem;
}

@media (max-width: 1120px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--ink); border-bottom: 1px solid var(--line); padding: 12px 22px 20px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 10px; font-size: 1rem; }
  .head-cta { margin: 8px 0 0; }
}

/* --- Hero ---------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: #fff;
  padding: clamp(60px, 8vw, 104px) 0 clamp(56px, 7vw, 92px);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 460px at 78% -8%, rgba(255,106,19,.20), transparent 62%),
    radial-gradient(700px 420px at 8% 108%, rgba(60,110,150,.20), transparent 60%);
}
.hero::after {
  content: ""; position: absolute; right: -12%; top: -22%;
  width: 62%; height: 150%; opacity: .05; pointer-events: none;
  background: repeating-linear-gradient(115deg, #fff 0 16px, transparent 16px 46px);
}
.hero__in { position: relative; display: grid; gap: 44px; grid-template-columns: 1.15fr .85fr; align-items: center; }
@media (max-width: 900px) { .hero__in { grid-template-columns: 1fr; gap: 34px; } }
.hero h1 { color: #fff; max-width: 15ch; }
.hero p.lede { color: #c3ced6; }
.hero .btn-row { margin-top: 26px; }
.hero__note { margin-top: 20px; font-size: .87rem; color: var(--muted-dk); }

.hero-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px; padding: 26px; backdrop-filter: blur(4px);
}
.hero-card h2 { font-size: 1.05rem; color: #fff; margin-bottom: 16px; }
.hero-card__row {
  display: flex; justify-content: space-between; gap: 14px; align-items: baseline;
  padding: 11px 0; border-bottom: 1px dashed rgba(255,255,255,.14);
  font-size: .93rem; color: #c3ced6;
}
.hero-card__row:last-of-type { border-bottom: 0; }
.hero-card__row b { color: #fff; font-weight: 700; text-align: right; }

/* --- Stat strip ---------------------------------------------------------- */
.stats { background: var(--ink-2); color: #fff; border-top: 1px solid var(--line); }
.stats__in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); }
@media (max-width: 780px) { .stats__in { grid-template-columns: repeat(2, 1fr); } }
.stat { background: var(--ink-2); padding: 26px 20px; text-align: center; }
.stat b { display: block; font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; }
.stat span { font-size: .78rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted-dk); }

/* --- Grids & cards ------------------------------------------------------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 660px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper-2); border: 1px solid var(--line-soft);
  border-radius: var(--r); padding: 26px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .45em; }
.card p { color: var(--muted); font-size: .96rem; }
.card__icon {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: var(--hi-soft); color: var(--hi-dk); margin-bottom: 16px;
  font-weight: 800; font-size: 1.05rem;
}

.course { display: flex; flex-direction: column; }
.course__meta {
  margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; gap: 8px;
}
.tag {
  font-size: .76rem; font-weight: 700; letter-spacing: .02em;
  padding: 5px 11px; border-radius: 999px;
  background: #eef1f3; color: var(--muted);
}
.tag--hi { background: var(--hi-soft); color: var(--hi-dk); }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: var(--muted); font-size: .96rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--hi-soft);
  box-shadow: inset 0 0 0 1.5px rgba(255,106,19,.35);
}
.ticks li::after {
  content: ""; position: absolute; left: 5.5px; top: .72em;
  width: 5px; height: 8px; border: solid var(--hi-dk);
  border-width: 0 2px 2px 0; transform: rotate(42deg);
}

/* --- Article + sidebar --------------------------------------------------- */
.split {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px; align-items: start;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }

/* --- Coaches ------------------------------------------------------------- */
.coach { display: flex; flex-direction: column; }
.coach__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.coach__head h3 { margin: 0; font-size: 1.05rem; }
.coach__role {
  margin: 2px 0 0; font-size: .74rem; font-weight: 800; letter-spacing: .11em;
  text-transform: uppercase; color: var(--hi-dk);
}
.coach__avatar {
  width: 50px; height: 50px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: var(--hi);
  font-weight: 800; font-size: .95rem; letter-spacing: .02em;
}
.coach--lead { border-color: var(--hi); }
.coach--lead .coach__avatar { background: var(--hi); color: #fff; }

/* --- Long-form guide body ------------------------------------------------ */
.prose { max-width: 68ch; }
.prose h2 {
  font-size: 1.4rem; margin-top: 1.9em;
  padding-top: 1.1em; border-top: 1px solid var(--line-soft);
}
.prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose p { color: #3a464f; }
.prose strong { color: var(--ink); }
.prose .ticks { margin: 1.1em 0 1.4em; }
.prose .ticks li { color: #3a464f; }
@media (max-width: 900px) {
  .prose { max-width: none; }
}

/* --- Schedule ------------------------------------------------------------ */
.sched-controls {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin-bottom: 22px; padding: 14px 16px;
  background: var(--paper-2); border: 1px solid var(--line-soft); border-radius: var(--r);
}
.sched-controls label { font-size: .82rem; font-weight: 700; color: var(--muted); }
.sched-controls select {
  font: inherit; font-size: .93rem; padding: 8px 12px; border-radius: var(--r-sm);
  border: 1px solid var(--line-soft); background: var(--paper-2); color: var(--ink);
}
.sched-count { margin-left: auto; font-size: .85rem; color: var(--muted); }

.sched-list { display: grid; gap: 12px; }
.class-row {
  display: grid; grid-template-columns: 92px 1fr auto; gap: 20px; align-items: center;
  background: var(--paper-2); border: 1px solid var(--line-soft);
  border-radius: var(--r); padding: 16px 20px;
}
.class-row--full { opacity: .62; }
@media (max-width: 700px) {
  .class-row { grid-template-columns: 66px 1fr; row-gap: 14px; }
  .class-row__act { grid-column: 1 / -1; }
  .class-row__act .btn { width: 100%; }
}
.class-date {
  text-align: center; border-radius: var(--r-sm);
  background: var(--ink); color: #fff; padding: 9px 4px;
}
.class-date__m { display: block; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--hi); }
.class-date__d { display: block; font-size: 1.42rem; font-weight: 800; line-height: 1.1; }
.class-date__y { display: block; font-size: .66rem; color: var(--muted-dk); letter-spacing: .06em; }
.class-row__body h3 { font-size: 1rem; margin-bottom: 4px; }
.class-row__body p { margin: 0; font-size: .87rem; color: var(--muted); }
.pill {
  display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; padding: 4px 9px; border-radius: 999px; margin-left: 8px;
  vertical-align: middle;
}
.pill--open  { background: var(--go-soft);   color: var(--go); }
.pill--few   { background: var(--hi-soft);   color: var(--hi-dk); }
.pill--full  { background: var(--stop-soft); color: var(--stop); }

.sched-state {
  border: 1px dashed var(--line-soft); border-radius: var(--r);
  padding: 30px; text-align: center; color: var(--muted); background: var(--paper-2);
}
.sched-state b { color: var(--ink); }

/* --- Locations ----------------------------------------------------------- */
.loc { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.loc__map { border: 0; width: 100%; height: 230px; display: block; background: #e9e7e3; }
.loc__body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.loc__addr { font-style: normal; color: var(--muted); font-size: .96rem; margin-bottom: 14px; }
.loc__body .btn-row { margin-top: auto; padding-top: 16px; }

/* --- FAQ ----------------------------------------------------------------- */
.faq { display: grid; gap: 10px; max-width: 820px; margin-inline: auto; }
.faq details {
  background: var(--paper-2); border: 1px solid var(--line-soft);
  border-radius: var(--r); padding: 4px 22px;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 0;
  font-weight: 700; font-size: 1rem; display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--hi-dk); font-size: 1.35rem; line-height: 1; font-weight: 700; }
.faq details[open] summary::after { content: "\2013"; }
.faq details > div { padding-bottom: 18px; color: var(--muted); font-size: .96rem; }

/* --- Forms --------------------------------------------------------------- */
.form { display: grid; gap: 16px; }
.form__row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-size: .84rem; font-weight: 700; color: var(--ink); }
.field .hint { font-size: .78rem; color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  font: inherit; font-size: .97rem; padding: 12px 14px;
  border: 1px solid var(--line-soft); border-radius: var(--r-sm);
  background: var(--paper-2); color: var(--ink); width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--hi); }
.form__note { font-size: .82rem; color: var(--muted); }
.form-msg { border-radius: var(--r-sm); padding: 14px 16px; font-size: .93rem; display: none; }
.form-msg.is-on { display: block; }
.form-msg--ok  { background: var(--go-soft);   color: var(--go); }
.form-msg--err { background: var(--stop-soft); color: var(--stop); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- Callout / CTA band -------------------------------------------------- */
.band {
  background: var(--ink); color: #fff; border-radius: 20px;
  padding: clamp(30px, 4vw, 48px); position: relative; overflow: hidden;
}
.band::after {
  content: ""; position: absolute; right: -8%; top: -40%; width: 44%; height: 180%;
  opacity: .06; background: repeating-linear-gradient(115deg, #fff 0 14px, transparent 14px 40px);
}
.band__in { position: relative; display: grid; gap: 26px; grid-template-columns: 1.4fr auto; align-items: center; }
@media (max-width: 820px) { .band__in { grid-template-columns: 1fr; } }
.band h2 { color: #fff; }
.band p { color: #c3ced6; margin: 0; }

/* --- Areas --------------------------------------------------------------- */
.area-links { display: flex; flex-wrap: wrap; gap: 9px; }
.area-links a {
  text-decoration: none; font-size: .9rem; font-weight: 600;
  padding: 9px 15px; border-radius: 999px;
  background: var(--paper-2); border: 1px solid var(--line-soft); color: var(--ink);
}
.area-links a:hover { border-color: var(--ink); }

.crumbs { font-size: .84rem; color: var(--muted); padding: 18px 0 0; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

.page-head { background: var(--paper-2); border-bottom: 1px solid var(--line-soft); padding: 0 0 clamp(34px, 4vw, 52px); }
.page-head h1 { margin-top: .35em; max-width: 20ch; }
.page-head + .section { padding-top: clamp(32px, 4vw, 50px); }

/* --- Footer -------------------------------------------------------------- */
.site-foot { background: var(--ink); color: #b6c1c9; padding: 56px 0 30px; font-size: .92rem; }
.site-foot h4 { color: #fff; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 34px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-foot a { color: #b6c1c9; text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.foot-bot {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: .82rem; color: #7f8d97;
}
.foot-note { font-size: .82rem; color: #7f8d97; margin-top: 14px; max-width: 46ch; }
.foot-built { color: #7f8d97; }
