/* ==========================================================================
   Rove — shared stylesheet
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --bg: #f7f5f1;
  --fg: #0c0c0c;
  --card: #fff;
  --muted: #eceae5;
  --muted-fg: #6b6a66;
  --primary: #d91414;
  --primary-hover: rgba(217, 20, 20, .9);
  --dark: #0c0c0c;
  --border: rgba(12, 12, 12, .1);

  --font-display: "Barlow Condensed", sans-serif;
  --font-body: "DM Sans", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --header-height: 80px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--fg);
  background: var(--bg);
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3 { font-size: inherit; font-weight: inherit; }
[id] { scroll-margin-top: var(--header-height); }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section { padding-block: 6rem; border-bottom: 1px solid var(--border); }
.section:last-child { border-bottom: 0; }

.section-head {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3.5rem;
}
.section-title { margin-bottom: 3rem; }
.section-head p { max-width: 24rem; font-size: .875rem; color: var(--muted-fg); }

.columns { display: grid; gap: 4rem; align-items: start; }

/* Grid of tiles separated by 1px hairlines */
.tiles { display: grid; gap: 1px; background: var(--border); }

/* ---------- Typography ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary);
}
.eyebrow::before { content: ""; width: 2rem; height: 1px; background: var(--primary); }

.label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary);
}

/* Label variant for use on photos and dark backgrounds */
.label--on-photo {
  font-size: 12px;
  font-weight: 800;
  /*color: #ff4a4a; */
}

.title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
}
.title--sm { font-size: clamp(2rem, 4vw, 3.5rem); }
.title--lg { font-size: clamp(2.5rem, 6vw, 5rem); }

.accent { color: var(--primary); }
.lead { font-size: 1.125rem; line-height: 1.625; }
.muted { color: var(--muted-fg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 2rem;
  font-family: var(--font-mono);
  font-size: .75rem;
  line-height: 1rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: color .15s, background-color .3s, border-color .15s;
}
.btn .icon { transition: transform .3s; }
.btn:hover .icon-arrow { transform: translateX(4px); }

.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-hover); }
.btn--outline { border-color: var(--border); color: var(--muted-fg); }
.btn--outline:hover { border-color: rgba(12, 12, 12, .3); color: var(--fg); }
.btn--ghost { border-color: rgba(255, 255, 255, .4); color: #fff; background: rgba(255, 255, 255, .4); }
.btn--ghost:hover { background: rgba(217, 20, 20, 1); }
.btn--small { gap: .5rem; padding: .5rem 1.25rem; }
.btn--block { justify-content: space-between; padding: .75rem 1.25rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  margin-bottom: calc(var(--header-height) * -1);
  background: rgba(247, 245, 241, .95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.site-header .container { display: flex; align-items: center; gap: 1.5rem; height: 100%; }
.site-header__logo { flex-shrink: 0; margin-right: 1rem; }
.site-header__logo img { height: 4rem; width: auto; mix-blend-mode: multiply; }

.nav { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.nav__link {
  padding: .5rem 1rem;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-fg);
  transition: color .15s;
}
.nav__link:hover { color: var(--fg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 70vh;
  padding-top: var(--header-height);
  overflow: hidden;
  background: var(--dark);
  color: #fff;
}
.hero--short { min-height: 55vh; }
.hero--tall { min-height: 75vh; }
.hero--photo { min-height: 80vh; }

.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.hero--photo .hero__bg img { opacity: 1; object-position: top; }

/* Dark fade from the bottom */
.hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, var(--dark), rgba(12, 12, 12, .2), transparent);
}
.hero--photo .hero__bg::before {
  background: linear-gradient(to top, var(--dark), rgba(12, 12, 12, .3), transparent);
}

/* Faint technical grid */
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: .05;
  pointer-events: none;
  background-image:
    linear-gradient(#f0ede8 1px, transparent 1px),
    linear-gradient(90deg, #f0ede8 1px, transparent 1px);
  background-size: 80px 80px;
}
.hero--photo .hero__bg::after { display: none; }

.hero__content { position: relative; z-index: 2; padding-bottom: 5rem; }
.hero__title {
  margin-bottom: 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 8rem);
  font-weight: 800;
  line-height: .88;
  text-transform: uppercase;
}
.hero__lead { max-width: 32rem; line-height: 1.625; color: rgba(255, 255, 255, .65); }
.hero__meta {
  font-family: var(--font-mono);
  font-size: .875rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.hero__actions .btn--outline { color: rgba(255, 255, 255, .65); border-color: rgba(255, 255, 255, .2); }
.hero__actions .btn--outline:hover { color: #fff; border-color: rgba(255, 255, 255, .3); }

/* ---------- Home: split screen ---------- */
.split {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--dark);
}
.split__logo {
  position: absolute;
  top: 1.75rem;
  left: 50%;
  z-index: 20;
  transform: translateX(-50%);
}
.split__logo img { height: 3.5rem; width: auto; filter: invert(1); mix-blend-mode: screen; }

.split__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 1 1 50%;
  overflow: hidden;
  transition: flex-basis .55s var(--ease);
}
.split__panel > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s;
}
.split__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .75), rgba(0, 0, 0, .15), transparent);
}
.split__panel:hover > img { transform: scale(1.04); }
.split__panel:hover .icon-arrow { transform: translateX(4px); }
.split__panel:hover .btn--ghost { background: rgba(217, 20, 20, .75); }
.split__panel .btn--ghost:hover { background: rgba(217, 20, 20, 1); }

.split__content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: 2.5rem;
}
.split__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 800;
  line-height: .88;
  text-transform: uppercase;
  color: #fff;
}
.split__text {
  max-width: 20rem;
  margin-top: .25rem;
  font-size: .875rem;
  line-height: 1.625;
  color: rgba(255, 255, 255, .6);
}
/* Stronger body text for use on photos */
.split__text--strong { color: rgba(255, 255, 255, 1.00);font-size: 1rem;font-weight: 700;}
.split__content .btn { align-self: flex-start; margin-top: 1.25rem; padding: .75rem 1.5rem; }
.split__hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  z-index: 10;
  transform: translateX(-50%);
  white-space: nowrap;
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .3);
}

/* ---------- Stats band ---------- */
.stats { background: var(--card); border-bottom: 1px solid var(--border); }
.stats__grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.stat { padding: 1.5rem; }
.stat:nth-child(2) { border-left: 1px solid var(--border); }
.stat:nth-child(3) { grid-column: span 2; border-top: 1px solid var(--border); }
.stat__value {
  margin-bottom: .25rem;
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.2;
}
.stat__label {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted-fg);
}

/* ---------- Feature: image + offering list ---------- */
.feature { display: grid; gap: 1px; background: var(--border); border-bottom: 1px solid var(--border); }
.feature__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--card); }
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature__body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
  padding: 2.5rem;
  background: var(--bg);
}
.feature__body .title { margin-bottom: 2.5rem; }
.feature__body .btn { align-self: flex-start; gap: 1rem; }

.offer-list { border: 1px solid var(--border); }
.offer-list li {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: .025em;
  text-transform: uppercase;
}
.offer-list li + li { border-top: 1px solid var(--border); }
.offer-list span { font-family: var(--font-mono); font-size: 10px; font-weight: 400; color: var(--primary); }

/* ---------- Cards (cases, brands, machines, services) ---------- */
.card { display: flex; flex-direction: column; background: var(--bg); }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--card); }
.card__media--wide { aspect-ratio: 16 / 9; }
.card__media--machine { aspect-ratio: 16 / 10; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.card:hover .card__media img { transform: scale(1.05); }

.card__body { display: flex; flex-direction: column; flex: 1; gap: .75rem; padding: 1.5rem; }
.card__body--roomy { gap: 1rem; padding: 2rem; }
.card__meta { display: flex; gap: .75rem; font-family: var(--font-mono); font-size: .75rem; color: var(--muted-fg); }
.card__meta span:first-child { color: var(--primary); }
.card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}
.card__title--lg { margin-top: .25rem; font-size: 1.5rem; }
.card__text { flex: 1; font-size: .75rem; line-height: 1.625; color: var(--muted-fg); }
.card__text--sm { font-size: .875rem; }

/* Services page: alternating dark / light blocks */
.service .card__body { padding: 2rem; gap: 1rem; border-top: 1px solid var(--border); }
.service:hover .card__media img { transform: scale(1.03); }
.service .card__title { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; }
.service .card__text { font-size: .875rem; }
.service--dark .card__body { background: var(--dark); border-top: 0; }
.service--dark .card__title { color: #fff; }
.service--dark .card__text { color: rgba(255, 255, 255, .6); }

.tags { display: flex; flex-wrap: wrap; gap: .375rem; padding-top: .25rem; }
.tag {
  padding: .125rem .5rem;
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-fg);
}
.tags--lg { gap: .75rem; padding-top: 0; }
.tags--lg .tag { padding: .25rem .75rem; font-size: 10px; }

.dash-list { display: flex; flex-direction: column; gap: .5rem; }
.dash-list li { display: flex; gap: .5rem; font-size: .875rem; color: var(--muted-fg); }
.dash-list li::before { content: "—"; flex-shrink: 0; color: var(--primary); }

/* ---------- Testimonials ---------- */
.quote { display: flex; flex-direction: column; gap: 1.5rem; padding: 2.5rem; background: var(--card); }
.quote .icon { color: var(--primary); }
.quote blockquote { flex: 1; font-size: 1.125rem; line-height: 1.625; }
.quote__name { font-family: var(--font-display); font-size: .875rem; font-weight: 600; }
.quote__role { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .05em; color: var(--muted-fg); }

/* ---------- Client logos ---------- */
.logo-grid { grid-template-columns: repeat(2, 1fr); }
.logo-grid li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  padding: 2rem;
  background: #fff;
}
.logo-grid img { height: 2.5rem; width: auto; max-width: 160px; object-fit: contain; }

/* ---------- Contact ---------- */
.contact__title { padding-top: .5rem; }
.contact__aside { display: flex; flex-direction: column; gap: 1.5rem; }
.contact__photo { aspect-ratio: 4 / 3; overflow: hidden; background: var(--muted); }
.contact__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.contact__details { display: flex; flex-direction: column; gap: 1.25rem; padding: 1.5rem; border: 1px solid var(--border); }
.contact__details dt { margin-bottom: .25rem; }
.contact__details dd { font-size: .875rem; }
.contact__details a:hover { color: var(--primary); }

/* ---------- Bike page ---------- */
.why { display: flex; flex-direction: column; gap: 2rem; }
.why__tile { display: flex; flex-direction: column; gap: .75rem; padding: 2rem; background: var(--card); }
.why__tile p { font-size: .875rem; line-height: 1.625; color: var(--muted-fg); }
.why__tile strong { font-weight: 500; color: var(--fg); }

.callout {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 3rem;
  padding: 2rem;
  border: 1px solid rgba(217, 20, 20, .3);
  background: rgba(217, 20, 20, .05);
}
.callout__text { display: flex; align-items: flex-start; gap: 1rem; }
.callout__text .icon { flex-shrink: 0; margin-top: .25rem; color: var(--primary); }
.callout__title {
  margin-bottom: .25rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
}
.callout p { font-size: .875rem; color: var(--muted-fg); }
.callout .btn { flex-shrink: 0; padding: 1rem 1.75rem; }

.tuning-head { margin-bottom: 3.5rem; }
.tuning-intro { display: flex; flex-direction: column; justify-content: flex-end; gap: 1rem; }
.tuning-intro p { line-height: 1.625; color: var(--muted-fg); }

.price-card { display: flex; flex-direction: column; gap: 1.5rem; padding: 2rem; background: var(--bg); }
.price-card--featured { background: rgba(217, 20, 20, .1); outline: 1px solid rgba(217, 20, 20, .3); outline-offset: -1px; }
.price-card .dash-list { flex: 1; }
.price-card__name {
  margin-bottom: .25rem;
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}
.price-card__price { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--primary); }

.photo-pair { margin-top: 3rem; }
.photo-pair div { aspect-ratio: 16 / 9; overflow: hidden; background: var(--card); }
.photo-pair img { width: 100%; height: 100%; object-fit: cover; }

/* FAQ accordion (native <details>, no JavaScript) */
.faq { border: 1px solid var(--border); }
.faq details + details { border-top: 1px solid var(--border); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.375;
  list-style: none;
  cursor: pointer;
  transition: background-color .15s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--card); }
.faq summary .icon { flex-shrink: 0; color: var(--muted-fg); transition: transform .2s; }
.faq details[open] summary .icon { transform: rotate(180deg); color: var(--primary); }
.faq details p { padding: 0 1.5rem 1.25rem; font-size: .875rem; line-height: 1.625; color: var(--muted-fg); }

/* ---------- Services page: call to action ---------- */
.cta-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2.5rem;
  padding: 3rem;
  border: 1px solid var(--border);
}
.cta-box .btn { flex-shrink: 0; padding: 1.25rem 2.5rem; }

/* ---------- About page ---------- */
.prose { display: flex; flex-direction: column; gap: 1.5rem; line-height: 1.625; color: var(--muted-fg); }

.division { position: relative; overflow: hidden; background: var(--bg); }
.division > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .15;
  transition: opacity .5s;
}
.division:hover > img { opacity: .25; }
.division__body {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 320px;
  padding: 2.5rem;
}
.division__title {
  margin-top: .5rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
}
.division__text { max-width: 20rem; margin-top: .75rem; font-size: .875rem; line-height: 1.625; color: var(--muted-fg); }
.division__link {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary);
  transition: gap .15s;
}
.division:hover .division__link { gap: 1rem; }

.division--dark { background: var(--dark); }
.division--dark > img { opacity: .3; }
.division--dark:hover > img { opacity: .45; }
.division--dark .division__title { color: #fff; }
.division--dark .division__text { color: rgba(255, 255, 255, .55); }

/* ---------- Footer ---------- */
.site-footer { padding-block: 1.5rem; border-top: 1px solid var(--border); }
.site-footer .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.site-footer img { height: 1.75rem; width: auto; mix-blend-mode: multiply; opacity: .6; }
.site-footer small, .site-footer a {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--muted-fg);
}
.site-footer a { letter-spacing: .05em; text-transform: uppercase; transition: color .15s; }
.site-footer a:hover { color: var(--fg); }

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Small phones: tighter header */
@media (max-width: 479px) {
  .site-header .container { gap: .75rem; }
  .site-header__logo { margin-right: 0; }
  .site-header .container { padding-inline: 1rem; }
  .site-header__logo img { height: 2.25rem; }
  .nav { gap: 0; }
  .nav__link, .nav .btn--small { padding-inline: .625rem; letter-spacing: .05em; }
  .nav .btn--small .icon { display: none; }
}

/* ≥ 640px */
@media (min-width: 640px) {
  .logo-grid { grid-template-columns: repeat(4, 1fr); }
  .why .tiles { grid-template-columns: repeat(2, 1fr); }
}

/* ≥ 768px */
@media (min-width: 768px) {
  .container { padding-inline: 2.5rem; }

  .section-head { flex-direction: row; align-items: flex-end; }

  .columns--1-2 { grid-template-columns: 1fr 2fr; }
  .columns--1-1 { grid-template-columns: 1fr 1fr; }

  .tiles--2 { grid-template-columns: repeat(2, 1fr); }
  .tiles--3 { grid-template-columns: repeat(3, 1fr); }

  .split { flex-direction: row; }
  .split__content { padding: 3.5rem; }
  .split__panel:first-of-type::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    width: 1px;
    background: rgba(255, 255, 255, .2);
  }
  .split:has(.split__panel:hover) .split__panel { flex-basis: 42%; }
  .split .split__panel:hover { flex-basis: 58%; }

  .stats__grid { grid-template-columns: repeat(3, 1fr); }
  .stat { padding-inline: 2rem; }
  .stat + .stat { border-left: 1px solid var(--border); }
  .stat:nth-child(3) { grid-column: auto; border-top: 0; }

  .feature { grid-template-columns: repeat(2, 1fr); }
  .feature__media { aspect-ratio: auto; }
  .feature__body { padding: 4rem; }

  .service .card__body { padding: 2.5rem; }

  .callout { flex-direction: row; align-items: center; padding: 2.5rem; }
  .cta-box { flex-direction: row; align-items: flex-end; padding: 5rem; }

  .division__body { padding: 3.5rem; }
}
