@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  --hc-charcoal: #1c1f24;
  --hc-charcoal-mid: #2a2f36;
  --hc-charcoal-soft: #3a414c;
  --hc-orange: #e85a1c;
  --hc-orange-deep: #c44712;
  --hc-orange-glow: rgba(232, 90, 28, 0.22);
  --hc-ink: #15181c;
  --hc-muted: #5a636e;
  --hc-steel: #8a93a0;
  --hc-fog: #e4e7ec;
  --hc-paper: #f2f3f5;
  --hc-line: rgba(28, 31, 36, 0.12);
  --hc-line-inv: rgba(255, 255, 255, 0.16);
  --hc-display: "Space Grotesk", sans-serif;
  --hc-sans: "IBM Plex Sans", sans-serif;
  --hc-max: 1100px;
  --hc-wide: 1320px;
  --hc-header: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--hc-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--hc-ink);
  background:
    radial-gradient(ellipse 90% 50% at 100% 0%, var(--hc-orange-glow), transparent 55%),
    linear-gradient(165deg, #d8dde4 0%, var(--hc-paper) 40%, #eceef2 100%);
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--hc-orange-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--hc-charcoal);
}

h1,
h2,
h3,
.brand,
.hero-brand,
.nav-main a,
.btn,
.stock-cond,
.rail-label,
.price {
  font-family: var(--hc-display);
}

h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.08;
  color: var(--hc-charcoal);
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2.15rem, 4.8vw, 3.5rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1rem;
}

.wrap {
  width: min(100% - 2rem, var(--hc-max));
  margin-inline: auto;
}

.wrap-wide {
  width: min(100% - 2rem, var(--hc-wide));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(28, 31, 36, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hc-line-inv);
}

.header-inner {
  width: min(100% - 2rem, var(--hc-wide));
  margin-inline: auto;
  min-height: var(--hc-header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.brand span {
  font-family: var(--hc-sans);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--hc-steel);
}

.brand:hover {
  color: var(--hc-orange);
}

.menu-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--hc-line-inv);
  background: transparent;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: #fff;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.35rem;
}

.nav-main a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.nav-main a:hover,
.nav-main a.active {
  color: #fff;
  border-bottom-color: var(--hc-orange);
}

/* Hero — full bleed */
.hero {
  position: relative;
  min-height: min(92vh, 720px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(28, 31, 36, 0.35) 0%, rgba(28, 31, 36, 0.88) 100%),
    url("../images/hero.jpg") center / cover no-repeat;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(28, 31, 36, 0.75) 0%, transparent 55%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--hc-wide));
  margin: 0 auto;
  padding: 4.5rem 0 3.5rem;
  animation: heroRise 0.9s ease-out both;
}

.hero-brand {
  margin: 0 0 0.85rem;
  font-size: clamp(1.75rem, 3.5vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: #fff;
}

.hero h1 {
  color: #fff;
  max-width: 14ch;
  margin-bottom: 0.85rem;
}

.hero-lead {
  max-width: 36ch;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.78rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--hc-orange);
  color: #fff;
  border-color: var(--hc-orange);
}

.btn-primary:hover {
  background: var(--hc-orange-deep);
  border-color: var(--hc-orange-deep);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: #fff;
}

.btn-solid {
  background: var(--hc-charcoal);
  color: #fff;
  border-color: var(--hc-charcoal);
}

.btn-solid:hover {
  background: var(--hc-charcoal-mid);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--hc-charcoal);
  border-color: var(--hc-charcoal);
}

.btn-outline:hover {
  background: var(--hc-charcoal);
  color: #fff;
}

/* Sections */
.section {
  padding: 4.25rem 0;
}

.section-tight {
  padding: 2.75rem 0;
}

.section-head {
  margin-bottom: 2rem;
  max-width: 38rem;
}

.section-head p {
  color: var(--hc-muted);
  margin: 0;
}

.page-hero {
  padding: 3rem 0 1.5rem;
  background: var(--hc-charcoal);
  color: #fff;
}

.page-hero h1 {
  color: #fff;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 40rem;
  margin: 0;
}

/* Intro strip */
.intro-rail {
  background: var(--hc-charcoal);
  color: rgba(255, 255, 255, 0.9);
  padding: 1.35rem 0;
  border-bottom: 3px solid var(--hc-orange);
}

.intro-rail .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}

.intro-rail strong {
  font-family: var(--hc-display);
  font-weight: 600;
  color: #fff;
  font-size: 1.05rem;
}

.intro-rail span {
  color: var(--hc-steel);
  font-size: 0.95rem;
}

/* Stock grid — catalogue like 7bike */
.stock-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.stock-item {
  background: #fff;
  border: 1px solid var(--hc-line);
  padding: 1.35rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: border-color 0.2s ease, box-shadow 0.25s ease;
  animation: fadeUp 0.7s ease both;
}

.stock-item:nth-child(2) { animation-delay: 0.08s; }
.stock-item:nth-child(3) { animation-delay: 0.16s; }
.stock-item:nth-child(4) { animation-delay: 0.24s; }
.stock-item:nth-child(5) { animation-delay: 0.32s; }
.stock-item:nth-child(6) { animation-delay: 0.4s; }

.stock-item:hover {
  border-color: var(--hc-orange);
  box-shadow: 0 12px 28px rgba(28, 31, 36, 0.08);
}

.stock-cond {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hc-orange-deep);
}

.stock-item h3 {
  margin: 0;
  font-size: 1.05rem;
}

.stock-meta {
  font-size: 0.9rem;
  color: var(--hc-muted);
  margin: 0;
  flex: 1;
}

.price {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--hc-charcoal);
  letter-spacing: -0.02em;
}

.stock-item .btn {
  align-self: flex-start;
  margin-top: 0.35rem;
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(0.85rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Trade-in band */
.trade-band {
  background:
    linear-gradient(135deg, var(--hc-charcoal) 0%, var(--hc-charcoal-mid) 55%, #3d2818 100%);
  color: #fff;
  padding: 3.5rem 0;
  position: relative;
  overflow: hidden;
}

.trade-band::before {
  content: "";
  position: absolute;
  right: -8%;
  top: -30%;
  width: 42%;
  height: 160%;
  background: radial-gradient(circle, var(--hc-orange-glow), transparent 70%);
  pointer-events: none;
}

.trade-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.trade-band h2 {
  color: #fff;
}

.trade-band p {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 1.5rem;
}

.trade-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.trade-steps li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.75rem;
  align-items: start;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.88);
}

.trade-steps b {
  font-family: var(--hc-display);
  color: var(--hc-orange);
  font-size: 1.1rem;
}

/* Service blocks */
.service-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--hc-line);
}

.service-row {
  display: grid;
  grid-template-columns: 11rem 1fr auto;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--hc-line);
}

.service-row h3 {
  margin: 0;
}

.service-row p {
  margin: 0;
  color: var(--hc-muted);
}

.service-row .price {
  font-size: 1.15rem;
  white-space: nowrap;
}

/* Feature trio */
.feature-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--hc-line);
  background: #fff;
}

.feature-cell {
  padding: 1.75rem 1.5rem;
  border-right: 1px solid var(--hc-line);
}

.feature-cell:last-child {
  border-right: none;
}

.rail-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hc-orange);
  margin-bottom: 0.55rem;
}

.feature-cell h3 {
  margin-bottom: 0.5rem;
}

.feature-cell p {
  margin: 0;
  color: var(--hc-muted);
  font-size: 0.95rem;
}

.feature-cell a {
  display: inline-block;
  margin-top: 0.85rem;
  font-family: var(--hc-display);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--hc-charcoal);
}

.feature-cell a:hover {
  color: var(--hc-orange-deep);
}

/* About / split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.split-visual {
  min-height: 280px;
  background:
    linear-gradient(160deg, rgba(28, 31, 36, 0.55), rgba(232, 90, 28, 0.35)),
    url("../images/hero.jpg") center / cover no-repeat;
}

.owner-note {
  background: #fff;
  padding: 1.5rem 1.5rem 1.5rem 1.65rem;
  border: 1px solid var(--hc-line);
  border-left: 4px solid var(--hc-orange);
}

.owner-note cite {
  display: block;
  margin-top: 0.75rem;
  font-family: var(--hc-display);
  font-style: normal;
  font-weight: 600;
  color: var(--hc-charcoal);
  font-size: 0.95rem;
}

/* Hours + visit */
.visit-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  background: #fff;
  border: 1px solid var(--hc-line);
  padding: 2rem;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table td {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--hc-line);
}

.hours-day {
  font-weight: 600;
  color: var(--hc-charcoal);
}

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
}

.contact-card {
  background: var(--hc-charcoal);
  color: #fff;
  padding: 2rem;
}

.contact-card h2 {
  color: #fff;
}

.contact-card p,
.contact-card a {
  color: rgba(255, 255, 255, 0.85);
}

.contact-card a:hover {
  color: var(--hc-orange);
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-stack label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--hc-charcoal);
}

.form-stack input,
.form-stack select,
.form-stack textarea {
  font: inherit;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--hc-line);
  background: #fff;
  color: var(--hc-ink);
}

.form-stack input:focus,
.form-stack select:focus,
.form-stack textarea:focus {
  outline: 2px solid var(--hc-orange);
  outline-offset: 1px;
}

.form-stack textarea {
  min-height: 140px;
  resize: vertical;
}

.form-success {
  display: none;
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  color: #1b5e20;
}

.form-success.show {
  display: block;
}

/* Legal */
.legal h2 {
  margin-top: 2rem;
  font-size: 1.25rem;
}

.legal ul {
  padding-left: 1.2rem;
  color: var(--hc-muted);
}

.legal li {
  margin-bottom: 0.45rem;
}

.legal p {
  color: var(--hc-muted);
}

/* Footer */
.site-footer {
  background: var(--hc-charcoal);
  color: rgba(255, 255, 255, 0.75);
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
}

.site-footer .brand {
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer h3 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a,
.footer-meta a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.footer-links a:hover,
.footer-meta a:hover {
  color: var(--hc-orange);
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hc-line-inv);
  font-size: 0.88rem;
}

/* Cookie banner */
#cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--hc-charcoal);
  color: rgba(255, 255, 255, 0.9);
  padding: 1.25rem 1.5rem;
  border-top: 3px solid var(--hc-orange);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.25);
}

#cookie-banner.show {
  display: block;
  animation: heroRise 0.35s ease;
}

#cookie-banner p {
  margin: 0 0 1rem;
  max-width: 52rem;
  font-size: 0.92rem;
}

#cookie-banner a {
  color: var(--hc-orange);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-actions button,
#cookie-save {
  font-family: var(--hc-display);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.55rem 1rem;
  border: 1px solid var(--hc-line-inv);
  background: transparent;
  color: #fff;
  cursor: pointer;
}

#cookie-accept {
  background: var(--hc-orange);
  border-color: var(--hc-orange);
}

#cookie-panel {
  display: none;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--hc-line-inv);
  gap: 0.75rem 1.25rem;
  flex-wrap: wrap;
  align-items: center;
}

#cookie-panel.open {
  display: flex;
}

#cookie-panel label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
}

/* Filters on bikes page */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.filter-bar a {
  font-family: var(--hc-display);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--hc-line);
  background: #fff;
  color: var(--hc-charcoal);
}

.filter-bar a:hover,
.filter-bar a.active {
  background: var(--hc-charcoal);
  color: #fff;
  border-color: var(--hc-charcoal);
}

/* Reveal helper */
.reveal {
  animation: fadeUp 0.75s ease both;
}

.reveal-delay {
  animation-delay: 0.12s;
}

.reveal-delay-2 {
  animation-delay: 0.24s;
}

/* Responsive */
@media (max-width: 960px) {
  .stock-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-rail,
  .trade-inner,
  .split,
  .visit-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-cell {
    border-right: none;
    border-bottom: 1px solid var(--hc-line);
  }

  .feature-cell:last-child {
    border-bottom: none;
  }

  .service-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: flex;
  }

  .nav-main {
    display: none;
    position: absolute;
    top: var(--hc-header);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--hc-charcoal-mid);
    padding: 0.75rem 1.25rem 1.25rem;
    gap: 0;
    border-bottom: 1px solid var(--hc-line-inv);
  }

  .nav-main.open {
    display: flex;
  }

  .nav-main a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--hc-line-inv);
  }

  .nav-main a.active {
    border-bottom-color: var(--hc-orange);
  }

  .stock-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: min(85vh, 580px);
    align-items: flex-end;
  }

  .hero-inner {
    padding-bottom: 2.5rem;
  }
}
