:root {
  color-scheme: light;
  --ink: #111820;
  --muted: #5c6670;
  --paper: #f8faf7;
  --line: #d8dee2;
  --blue: #1f72b8;
  --orange: #f26522;
  --green: #3a7b41;
  --silver: #dfe6ea;
  --shadow: 0 22px 70px rgba(15, 23, 32, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.topbar {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 4vw, 4rem);
  padding: 0.55rem 1.5rem;
  background: #111820;
  color: #fff;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(160px, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3.5rem);
  background: rgba(248, 250, 247, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  width: fit-content;
}

.brand strong {
  display: block;
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  font-style: italic;
  line-height: 0.9;
  text-transform: uppercase;
}

.brand small {
  color: var(--blue);
  font-weight: 800;
  text-transform: uppercase;
}

.wheel-mark {
  width: 3.15rem;
  aspect-ratio: 1;
  border: 4px solid var(--ink);
  border-radius: 50%;
  background: repeating-conic-gradient(from 4deg, transparent 0 8deg, rgba(17, 24, 32, 0.35) 8deg 10deg);
  box-shadow: inset 0 0 0 7px var(--paper);
}

nav {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.7rem);
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}

.nav-cta {
  justify-self: end;
  padding: 0.8rem 1rem;
  border: 2px solid var(--green);
  color: var(--green);
  font-weight: 900;
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: minmax(22rem, 0.9fr) minmax(36rem, 1.4fr);
  min-height: 56rem;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(248, 250, 247, 1) 0%, rgba(248, 250, 247, 0.95) 31%, rgba(248, 250, 247, 0.4) 45%, rgba(248, 250, 247, 0) 58%),
    #eef3f3;
}

.hero-copy {
  align-self: center;
  padding: clamp(2rem, 5vw, 5rem) clamp(1.5rem, 4vw, 3.75rem);
  position: relative;
  z-index: 2;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 5.6vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: 0;
  margin-bottom: 1.5rem;
}

.hero-copy > p {
  max-width: 28rem;
  color: #333d45;
  font-size: 1.1rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.button,
button {
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0 1.25rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 12px 28px rgba(242, 101, 34, 0.28);
}

.secondary,
.outline {
  border: 2px solid var(--blue);
  background: #fff;
  color: var(--blue);
}

.quick-contact {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 31rem;
}

.quick-contact li {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 0.8rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
}

.quick-contact span,
.queue-panel em,
.proof-band span {
  color: var(--muted);
}

.hero-visual {
  position: relative;
  min-width: 0;
  overflow: hidden;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.truing-card {
  position: absolute;
  top: 2.8rem;
  left: 2rem;
  width: min(28rem, 42%);
  padding: 1.3rem;
  background: rgba(248, 250, 247, 0.86);
  border: 1px solid rgba(31, 114, 184, 0.35);
  box-shadow: var(--shadow);
}

.truing-card strong {
  color: var(--blue);
  text-transform: uppercase;
}

.truing-card svg {
  margin-top: 0.6rem;
}

.truing-card circle,
.truing-card path,
.bike-icon circle,
.bike-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.route-strip {
  display: grid;
  grid-template-columns: max-content max-content 1fr max-content 1fr max-content 1fr max-content max-content;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem clamp(1rem, 4vw, 3.5rem);
  background: #fff;
  border-bottom: 1px solid var(--line);
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.route-strip strong {
  margin-right: 1rem;
  color: #fff;
  background: var(--blue);
  padding: 1rem;
}

.route-strip i {
  height: 3px;
  background: linear-gradient(90deg, var(--green), rgba(58, 123, 65, 0.25));
}

.route-strip a {
  border: 2px solid var(--green);
  padding: 0.7rem 0.9rem;
}

.shop-floor {
  display: grid;
  grid-template-columns: 1fr 1.7fr 0.95fr;
  gap: 1.75rem;
  padding: 2rem clamp(1rem, 4vw, 3.5rem);
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.shop-floor h2,
.service-clarity h2,
.contact-section h2,
.faq-section h2 {
  font-size: clamp(1.7rem, 3vw, 2.9rem);
  line-height: 1;
}

.queue-panel,
.category-panel,
.rental-panel {
  min-width: 0;
}

.queue-panel ul,
.proof-band ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.queue-panel li {
  display: grid;
  grid-template-columns: 5rem 1fr max-content;
  gap: 0.8rem;
  align-items: center;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.ticket {
  color: var(--orange);
  font-weight: 900;
}

.queue-panel em {
  display: block;
  font-style: normal;
  font-size: 0.82rem;
  line-height: 1.35;
}

mark {
  background: transparent;
  color: var(--green);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.74rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.bike-card {
  padding: 1rem;
  border-top: 3px solid var(--orange);
  background: #f7f9fa;
  min-height: 13rem;
}

.bike-icon {
  color: var(--ink);
  height: 4rem;
}

.bike-icon svg {
  width: 6.8rem;
  height: auto;
}

.bike-card h3 {
  margin: 1rem 0 0.45rem;
  color: var(--blue);
  text-transform: uppercase;
}

.bike-card p,
.rental-panel p,
.service-row p,
.contact-copy p,
.faq-list p {
  color: var(--muted);
  line-height: 1.55;
}

.rental-panel {
  padding-left: 1.5rem;
  border-left: 1px solid var(--line);
}

.service-clarity {
  display: grid;
  grid-template-columns: 0.95fr 1.4fr;
  gap: 4rem;
  padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 4vw, 3.5rem);
}

.section-copy p {
  max-width: 32rem;
  color: var(--muted);
  line-height: 1.65;
  font-size: 1.05rem;
}

.service-list {
  display: grid;
  gap: 1rem;
}

.service-row {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}

.service-row > span {
  width: 2.2rem;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 6px solid var(--silver);
  outline: 3px solid var(--blue);
}

.proof-band {
  display: grid;
  grid-template-columns: 1fr 18rem;
  gap: 2rem;
  align-items: stretch;
  padding: 2rem clamp(1rem, 4vw, 3.5rem);
  background: #17202a;
  color: #fff;
}

.proof-band ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.proof-band li {
  border-left: 4px solid var(--orange);
  padding-left: 1rem;
}

.proof-band strong {
  display: block;
  margin-bottom: 0.45rem;
  text-transform: uppercase;
}

.ride-kalispell {
  border: 2px solid rgba(255, 255, 255, 0.65);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 2.8rem;
  font-weight: 1000;
  line-height: 0.9;
  text-transform: uppercase;
}

.contact-section {
  display: grid;
  grid-template-columns: 0.85fr 1.25fr;
  gap: 3rem;
  padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 4vw, 3.5rem);
  background: #eef3f3;
}

address {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-style: normal;
  font-weight: 800;
}

.inquiry-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 0.45rem;
  color: #303942;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 2.85rem;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0.75rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  text-transform: none;
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

.wide,
.privacy-note,
.form-status {
  grid-column: 1 / -1;
}

.privacy-note,
.form-status {
  margin: 0;
  color: var(--muted);
}

.faq-section {
  padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 4vw, 3.5rem);
  background: #fff;
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

details {
  border-top: 3px solid var(--blue);
  padding: 1rem 0;
}

summary {
  cursor: pointer;
  font-weight: 900;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1rem, 4vw, 3.5rem);
  background: #111820;
  color: rgba(255, 255, 255, 0.8);
}

.site-footer a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.chatbot {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 40;
  width: min(24rem, calc(100vw - 2rem));
  font-size: 0.95rem;
}

.chatbot-launcher {
  margin-left: auto;
  border-radius: 999px;
  min-height: 3rem;
  background: var(--blue);
  color: #fff;
  box-shadow: var(--shadow);
}

.chatbot-panel {
  margin-top: 0.75rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.chatbot-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: #111820;
  color: #fff;
}

.chatbot-head button {
  min-height: 1.8rem;
  padding: 0 0.45rem;
  background: transparent;
  color: #fff;
}

.chatbot-messages {
  display: grid;
  gap: 0.6rem;
  max-height: 15rem;
  overflow: auto;
  padding: 1rem;
}

.chatbot-messages p {
  margin: 0;
  padding: 0.7rem;
  background: #eef3f3;
}

.chatbot-messages .from-user {
  background: #e8f1e8;
  justify-self: end;
}

.chatbot form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  padding: 1rem;
  border-top: 1px solid var(--line);
}

.chatbot form button {
  background: var(--orange);
  color: #fff;
}

@media (max-width: 1050px) {
  .site-header,
  .hero,
  .shop-floor,
  .service-clarity,
  .proof-band,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .site-header {
    position: static;
  }

  nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .nav-cta {
    justify-self: start;
  }

  .hero {
    min-height: 0;
  }

  .hero-visual {
    min-height: 26rem;
  }

  .category-grid,
  .proof-band ul,
  .faq-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rental-panel {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 1.5rem 0 0;
  }
}

@media (max-width: 680px) {
  .topbar,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header {
    gap: 1.1rem;
  }

  .brand strong {
    font-size: 1.45rem;
  }

  h1 {
    max-width: 11ch;
    font-size: 2.65rem;
  }

  .hero-copy {
    padding: 2rem 1rem;
  }

  .hero-visual {
    min-height: 20rem;
  }

  .truing-card {
    display: none;
  }

  .route-strip {
    grid-template-columns: 1fr;
  }

  .route-strip i {
    width: 100%;
  }

  .queue-panel li,
  .quick-contact li,
  .inquiry-form,
  .category-grid,
  .proof-band ul,
  .faq-list {
    grid-template-columns: 1fr;
  }

  .ride-kalispell {
    min-height: 10rem;
  }

  .chatbot {
    right: 0.75rem;
    bottom: 0.75rem;
    width: min(22rem, calc(100vw - 1.5rem));
  }
}
