/* ==========================================================================
   Bespoked Bike Shop — prospect concept
   Sporty and energetic. Tyre black / chalk / hi-vis orange / trail green.
   ========================================================================== */

:root {
  /* Palette — proposed demo direction (no verified brand colours) */
  --tyre: #161616;
  --tyre-2: #222222;
  --asphalt: #2a2a2a;
  --chalk: #f4f1ea;
  --chalk-2: #e8e3d8;
  --orange: #ff6a1a;        /* hi-vis (decorative / large text) */
  --orange-btn: #c94a0c;    /* button-safe orange */
  --orange-btn-dark: #a83c08;
  --trail: #2f7d4f;
  --sun: #ffd166;

  --text: #161616;
  --text-soft: #55524c;
  --on-dark: #f4f1ea;
  --on-dark-soft: #bdb8ad;
  --line: #ddd7ca;
  --focus: #ff6a1a;

  --font-display: "Arial Black", "Segoe UI Black", "Helvetica Neue", Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --space-1: .5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-6: 3rem;
  --space-8: 4rem;
  --section: clamp(4rem, 9vw, 7rem);

  --radius: 6px;
  --container: 71.25rem;
  --container-wide: 85rem;
  --header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--chalk);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-2);
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 5.4vw, 4.3rem); text-transform: uppercase; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 var(--space-2); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.wrap { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.wrap--wide { width: min(100% - 2.5rem, var(--container-wide)); }

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  padding: .75rem 1rem;
  background: var(--orange);
  color: var(--tyre);
  font-weight: 700;
}
.skip-link:focus { top: 1rem; }

.icon {
  width: 1.15em; height: 1.15em;
  fill: none; stroke: currentColor;
  stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}

.eyebrow {
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: var(--space-2);
}
.eyebrow--dark { color: var(--orange-btn-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 2.9rem;
  padding: .7rem 1.3rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font: 800 1rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transform: skewX(-6deg);
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn > * { transform: skewX(6deg); }
.btn--lg { min-height: 3.4rem; padding: .85rem 1.6rem; font-size: 1.05rem; }
.btn--orange { background: var(--orange-btn); color: #fff; }
.btn--orange:hover { background: var(--orange-btn-dark); }
.btn--chalk { border-color: var(--chalk); color: var(--chalk); }
.btn--chalk:hover { background: var(--chalk); color: var(--tyre); }
.btn--dark-outline { border-color: var(--tyre); color: var(--tyre); }
.btn--dark-outline:hover { background: var(--tyre); color: var(--chalk); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(22, 22, 22, .96);
  backdrop-filter: blur(8px);
  color: var(--on-dark);
  border-bottom: 3px solid var(--orange);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  margin-right: auto;
}
.brand-wheel svg { width: 2.4rem; height: 2.4rem; }
.brand-wheel .rim { fill: none; stroke: var(--orange); stroke-width: 3; }
.brand-wheel .spokes { stroke: var(--chalk); stroke-width: 1.2; }
.brand-wheel .hub { fill: var(--chalk); }
.brand:hover .brand-wheel svg { animation: spin 1s linear; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 1.45rem; text-transform: uppercase; }
.brand-sub { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-soft); margin-top: .2rem; }

.site-nav { display: none; }
.site-nav ul { display: flex; gap: var(--space-4); list-style: none; margin: 0; padding: 0; }
.site-nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: .95rem;
  padding: .4rem 0;
  border-bottom: 2px solid transparent;
  color: var(--on-dark-soft);
}
.site-nav a:hover { color: var(--chalk); border-bottom-color: var(--orange); }

.header-call { padding-inline: .9rem; min-height: 2.6rem; }
.header-call span { display: none; }

@media (min-width: 30rem) {
  .header-call span { display: inline; }
}
@media (min-width: 58rem) {
  .site-nav { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(30rem 20rem at 85% 15%, rgba(255, 209, 102, .18), transparent 70%),
    var(--tyre);
  color: var(--on-dark);
  padding: clamp(2.5rem, 6vw, 5rem) 0 0;
  overflow: hidden;
}
.hero-grid { display: grid; gap: var(--space-4); align-items: end; }
.hero-copy { padding-bottom: clamp(1rem, 4vw, 4.5rem); }
.hero h1 { max-width: 14ch; margin-bottom: var(--space-3); }
.hero h1 span { display: block; color: var(--orange); }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.22rem); color: var(--on-dark-soft); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin: var(--space-4) 0 var(--space-3); }

.open-status {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-weight: 700;
  font-size: .95rem;
  color: var(--on-dark-soft);
  margin: 0;
}
.open-status::before {
  content: "";
  width: .65rem; height: .65rem;
  border-radius: 50%;
  background: #777;
  flex: none;
}
.open-status.is-open { color: #6fdc9b; }
.open-status.is-open::before { background: #3cc37a; box-shadow: 0 0 0 4px rgba(60, 195, 122, .2); }
.open-status.is-closed { color: #ff9a66; }
.open-status.is-closed::before { background: var(--orange); }
.panel .open-status { color: var(--text-soft); }
.panel .open-status.is-open { color: #1b7a49; }
.panel .open-status.is-closed { color: var(--orange-btn-dark); }

.ride { margin-inline: -1.25rem; }
.ride svg { width: 100%; height: auto; }
.ride .tyre { fill: none; stroke: var(--chalk); stroke-width: 9; }
.ride .rim { fill: none; stroke: #555; stroke-width: 3; }
.ride .spokes { stroke: #9a958b; stroke-width: 2; }
.ride .hub { fill: var(--chalk); }
.wheel { animation: spin 1.4s linear infinite; }
.road { animation: road .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes road { to { transform: translateX(-60px); } }

@media (min-width: 60rem) {
  .hero-grid { grid-template-columns: 1fr 1.1fr; gap: var(--space-6); }
  .ride { margin-inline: 0; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section-lede { color: var(--text-soft); max-width: 32rem; }

/* Repairs */
.repairs-grid { display: grid; gap: var(--space-6); }
.gears { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.gears li {
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  gap: var(--space-2);
  align-items: start;
  padding: var(--space-3);
  background: #fff;
  border-left: 6px solid var(--orange);
  border-radius: var(--radius);
}
.gears li:nth-child(2) { border-left-color: var(--trail); }
.gears li:nth-child(3) { border-left-color: var(--tyre); }
.gears h3 { margin-bottom: .3rem; }
.gears p { margin: 0; color: var(--text-soft); }
.cog {
  display: grid;
  place-items: center;
  width: 3rem; height: 3rem;
  color: var(--chalk);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  background: var(--tyre);
  clip-path: polygon(50% 0, 61% 12%, 75% 6%, 79% 21%, 94% 25%, 88% 39%, 100% 50%, 88% 61%, 94% 75%, 79% 79%, 75% 94%, 61% 88%, 50% 100%, 39% 88%, 25% 94%, 21% 79%, 6% 75%, 12% 61%, 0 50%, 12% 39%, 6% 25%, 21% 21%, 25% 6%, 39% 12%);
}

@media (min-width: 62rem) {
  .repairs-grid { grid-template-columns: 1fr 1.3fr; gap: var(--space-8); align-items: start; }
}

/* Riders */
.riders { background: var(--trail); color: var(--on-dark); padding-block: clamp(3rem, 7vw, 5rem); }
.riders-inner { display: grid; gap: var(--space-4); align-items: center; }
.riders p { color: #dcebe1; max-width: 40rem; }
.trail-badge { width: 7rem; }

@media (min-width: 52rem) {
  .riders-inner { grid-template-columns: auto 1fr; gap: var(--space-6); }
}

/* Visit */
.visit-grid { display: grid; gap: var(--space-4); align-items: start; }
.address { font-style: normal; font-size: 1.25rem; font-weight: 700; margin-bottom: var(--space-3); }
.visit-actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.panel {
  padding: var(--space-4);
  background: #fff;
  border-radius: var(--radius);
  border-top: 6px solid var(--tyre);
}
.panel:last-child { border-top-color: var(--orange); }
.panel h3 { font-size: 1.15rem; }
.panel .open-status { margin-bottom: var(--space-2); }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: .45rem 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 500; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 800; color: var(--orange-btn-dark); }
.checklist { margin: 0; padding: 0; list-style: none; }
.checklist li { position: relative; padding: .5rem 0 .5rem 1.6rem; border-top: 1px solid var(--line); }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: .95rem;
  width: .9rem; height: .9rem;
  border-radius: 50%;
  border: 3px solid var(--orange);
}

@media (min-width: 52rem) {
  .visit-grid { grid-template-columns: 1fr 1fr; }
  .visit-main { grid-column: 1 / -1; }
}
@media (min-width: 72rem) {
  .visit-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .visit-main { grid-column: auto; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--tyre);
  color: var(--on-dark-soft);
  padding: var(--space-8) 0 calc(var(--space-4) + 4.5rem);
  font-size: .95rem;
}
.footer-inner {
  display: grid;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(244, 241, 234, .14);
}
.footer-brand { display: flex; gap: .8rem; align-items: flex-start; }
.footer-brand p { margin: 0; }
.footer-brand strong { color: var(--chalk); }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.site-footer a { color: var(--chalk); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.disclosure { margin: var(--space-3) 0 0; font-size: .8rem; opacity: .75; }

@media (min-width: 48rem) {
  .footer-inner { grid-template-columns: 2fr 1fr 1fr; }
  .site-footer { padding-bottom: var(--space-4); }
}

/* ---------- Mobile call bar ---------- */
.call-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom));
  background: rgba(22, 22, 22, .96);
  border-top: 3px solid var(--orange);
  backdrop-filter: blur(8px);
}
.call-bar .btn { width: 100%; transform: none; }
.call-bar .btn > * { transform: none; }
.call-bar .btn span { font-weight: 500; opacity: .9; }
@media (min-width: 48rem) {
  .call-bar { display: none; }
}

/* ---------- Copied-number toast (desktop) ---------- */
.toast {
  position: fixed;
  left: 50%; bottom: 1.5rem;
  z-index: 70;
  max-width: calc(100% - 2rem);
  padding: .8rem 1.2rem;
  background: var(--tyre);
  color: var(--chalk);
  border-left: 6px solid var(--orange);
  border-radius: var(--radius);
  font-weight: 700;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .5);
  transform: translate(-50%, 1rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 47.99rem) {
  .toast { bottom: 5.5rem; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
