/* GTA Dirt Bike Engine Rebuilds — site styles */

:root {
  color-scheme: light;
  --black: #030303;
  --on-black: #ffffff;
  --on-black-muted: #bbb9b5;
  --on-black-rule: #262626;
  --paper: #f4f4f3;
  --alu: #e4e4e3;
  --card: #ffffff;
  --field-bg: #ffffff;
  --ink: #161616;
  --muted: #55575a;
  --rule: #c9c9c6;
  --field-border: #7e8086;
  --bronze: #998064;
  --bronze-hover: #ab9274;
  --on-bronze: #030303;
  --line: #161616;
  --detail: #6a6d72;
  --center: #9ea1a6;
  --max: 1200px;
  --pad: 24px;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #111111;
    --alu: #1a1a1a;
    --card: #232323;
    --field-bg: #1a1a1a;
    --ink: #f2f1ee;
    --muted: #b3b1ad;
    --rule: #3a3a3a;
    --field-border: #8c8e93;
    --line: #ecebe8;
    --detail: #a9abb0;
    --center: #6f7277;
  }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  font-stretch: 100%;
}

img { display: block; max-width: 100%; height: auto; }
p, li, dd { text-wrap: pretty; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--bronze); outline-offset: 2px; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--pad));
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.display {
  font-stretch: 125%;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.05;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 4px;
  background: var(--bronze);
  color: var(--on-bronze);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Header */

.site-header {
  background: var(--black);
  color: var(--on-black);
  border-bottom: 1px solid #1f1f1f;
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "brand nav cta";
  align-items: center;
  gap: 8px 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  grid-area: brand;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--on-black);
  text-decoration: none;
}
.brand img { width: 44px; height: 44px; flex: none; }
.brand-name { font-stretch: 125%; font-weight: 800; font-size: 17px; line-height: 1.15; }

.site-nav {
  grid-area: nav;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 2px 4px;
}
.site-nav a {
  display: block;
  padding: 12px 10px;
  color: #e2e1de;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--on-black); text-decoration: underline; text-underline-offset: 5px; }
.site-nav a[aria-current="page"] {
  color: var(--on-black);
  text-decoration: underline;
  text-decoration-color: var(--bronze);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.header-cta { grid-area: cta; }

@media (max-width: 960px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas: "brand cta" "nav nav";
  }
  .site-nav {
    justify-self: stretch;
    overflow-x: auto;
    margin: 0 calc(-1 * var(--pad));
    padding: 0 calc(var(--pad) - 10px);
    scrollbar-width: none;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .brand-name { font-size: 15px; max-width: 13em; }
}

/* Buttons and links */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 26px;
  border: 2px solid transparent;
  border-radius: 4px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.btn-bronze { background: var(--bronze); color: var(--on-bronze); }
.btn-bronze:hover { background: var(--bronze-hover); }
.btn-outline { border-color: var(--on-black-muted); color: var(--on-black); font-weight: 600; }
.btn-outline:hover { border-color: var(--on-black); }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn[disabled] { opacity: 0.6; cursor: wait; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link {
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--bronze);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.text-link:hover { text-decoration-color: currentColor; }

/* Home hero */

.hero { background: var(--black); color: var(--on-black); }
.hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px 64px;
  padding-top: 56px;
  padding-bottom: 88px;
}
.hero-copy { flex: 1.2 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero h1 { margin: 0; font-size: clamp(36px, 4vw, 58px); line-height: 1.02; text-wrap: balance; }
.lead { margin: 0; max-width: 32em; font-size: 19px; color: var(--on-black-muted); }
.hero-note {
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 32em;
  font-size: 15px;
  color: var(--on-black-muted);
}
.hero-note svg { flex: none; margin-top: 2px; }
.hero-badge { flex: 1 1 340px; min-width: 0; display: flex; justify-content: center; }
.hero-badge img { width: 100%; max-width: 440px; }

/* Inner page heading band */

.page-head { background: var(--black); color: var(--on-black); }
.page-head-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 56px;
  padding-bottom: 64px;
}
.page-head h1 { margin: 0; max-width: 16em; font-size: clamp(34px, 3.6vw, 54px); text-wrap: balance; }

/* Sections */

.section { padding-top: 80px; padding-bottom: 88px; }
.section--paper { background: var(--paper); }
.section--alu { background: var(--alu); }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 40em; margin-bottom: 40px; }
.section-head p { margin: 0; font-size: 18px; color: var(--muted); }
.h2 { margin: 0; font-size: clamp(30px, 3.2vw, 46px); }
.h2-sm { margin: 0; font-size: clamp(26px, 2.4vw, 34px); }

/* What to expect */

.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 32px 40px; }
.value { display: flex; flex-direction: column; gap: 10px; }
.value svg { color: var(--bronze); }
.value h3 { margin: 0; font-stretch: 125%; font-weight: 700; font-size: 21px; line-height: 1.2; }
.value p { margin: 0; color: var(--muted); }

/* Rate tags */

.tags { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 24px; }
.tag {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 24px 24px;
  background: var(--card);
  clip-path: polygon(24px 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%, 0 24px);
}
.tag-hole {
  align-self: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 5px solid var(--bronze);
  background: var(--alu);
}
.tag-title { margin: 0; font-stretch: 125%; font-weight: 800; font-size: 25px; line-height: 1.1; letter-spacing: -0.01em; }
.tag-kind {
  display: block;
  margin-bottom: 2px;
  font-stretch: 100%;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0;
  color: var(--muted);
}
.tag p { margin: 0; flex-grow: 1; font-size: 16px; line-height: 1.5; color: var(--muted); }
.tag-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 2px dashed var(--rule);
}
.tag-price span:first-child { font-size: 15px; color: var(--muted); }
.price { font-stretch: 125%; font-weight: 800; font-size: 30px; line-height: 1; }

.after-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: 28px;
}
.after-tags p { margin: 0; color: var(--muted); }

/* Add-ons */

.addons { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 28px 48px; margin-top: 40px; }
.addon { display: flex; flex-direction: column; gap: 8px; padding-top: 18px; border-top: 2px solid var(--line); }
.addon-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.addon h2 { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.3; }
.addon p { margin: 0; color: var(--muted); }
.addon .price { font-size: 22px; }

/* Top end vs full rebuild */

.explainer { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 56px; margin-top: 64px; }
.explainer-copy { flex: 1 1 360px; min-width: 0; max-width: 34em; display: flex; flex-direction: column; gap: 16px; }
.explainer-copy h2 { margin: 0; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.15; }
.explainer-copy p { margin: 0; }

.diagram {
  flex: 1.3 1 460px;
  min-width: 0;
  margin: 0;
  padding: 24px 24px 16px;
  background: var(--card);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.diagram svg { display: block; width: 100%; height: auto; }
.diagram figcaption { font-size: 15px; color: var(--muted); text-align: center; }

.d-out, .d-det, .d-hid, .d-ctr, .d-lead { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.d-out { stroke: var(--line); stroke-width: 2; }
.d-det { stroke: var(--detail); stroke-width: 1.5; }
.d-hid { stroke: var(--detail); stroke-width: 1.3; stroke-dasharray: 6 5; }
.d-ctr { stroke: var(--center); stroke-width: 1.2; stroke-dasharray: 22 6 4 6; }
.d-lead { stroke: var(--line); stroke-width: 1.2; }
.d-call { fill: var(--bronze); }
.d-num { fill: var(--on-bronze); font-family: var(--font); font-weight: 800; font-size: 16px; text-anchor: middle; }
.d-lab { fill: var(--ink); font-family: var(--font); font-weight: 600; font-size: 18px; }

/* How it works */

.timeline { list-style: none; margin: 0; padding: 0; max-width: 46em; }
.timeline li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 0 20px;
  padding: 28px 0;
  border-top: 2px solid var(--line);
}
.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bronze);
  color: var(--on-bronze);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 17px;
}
.timeline h2 { margin: 6px 0 10px; font-stretch: 125%; font-weight: 800; font-size: clamp(22px, 2vw, 28px); line-height: 1.15; }
.timeline p { margin: 0 0 10px; }
.timeline p:last-child { margin-bottom: 0; }

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 36px 56px; }
.info { display: flex; flex-direction: column; gap: 8px; padding-top: 20px; border-top: 2px solid var(--line); }
.info h3 { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.3; }
.info p { margin: 0; color: var(--muted); }

/* Photo and text */

.split { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 64px; }
.split-media { flex: 1 1 340px; min-width: 0; max-width: 500px; }
.split-media img { width: 100%; }
.split-copy { flex: 1 1 420px; min-width: 0; max-width: 36em; display: flex; flex-direction: column; gap: 18px; }
.split-copy p { margin: 0; font-size: 18px; }
.split-copy h2 + p { margin-top: -4px; }
.split-copy .h2-sm:not(:first-child) { margin-top: 18px; }

/* FAQ */

.faq-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 36px 64px; }
.faq-item { display: flex; flex-direction: column; gap: 8px; padding-top: 20px; border-top: 1px solid var(--rule); }
.faq-item h2 { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.3; }
.faq-item p { margin: 0; color: var(--muted); }

/* Quote page */

.quote-layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px 64px; }
.quote-form {
  flex: 1.3 1 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(24px, 4vw, 40px);
  background: var(--card);
}
.quote-aside { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field > label, .field > legend { padding: 0; font-size: 15px; font-weight: 600; }
.field > legend { margin-bottom: 6px; }
.field input[type="text"],
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1.5px solid var(--field-border);
  border-radius: 4px;
  background: var(--field-bg);
  color: var(--ink);
  font: inherit;
  font-size: 17px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: flex; flex-wrap: wrap; gap: 14px; }
.field-row .field { flex: 2 1 140px; }
.field-row .field:first-child { flex: 1 1 90px; }
.hint { margin: 0 0 4px; font-size: 15px; color: var(--muted); }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border: 1.5px solid var(--field-border);
  border-radius: 4px;
  background: var(--field-bg);
  font-weight: 500;
  cursor: pointer;
}
.choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--bronze); }
.choice:has(input:checked) { border-color: var(--bronze); box-shadow: inset 0 0 0 1px var(--bronze); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; min-height: 1.55em; font-weight: 600; }

.contact-list { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.contact-list div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 16px; }
.contact-list dt { flex: 0 0 110px; font-size: 15px; color: var(--muted); }
.contact-list dd { margin: 0; overflow-wrap: anywhere; font-stretch: 125%; font-weight: 700; font-size: 18px; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.service-area { display: flex; flex-direction: column; gap: 8px; padding-top: 24px; border-top: 1px solid var(--rule); }
.service-area h3 { margin: 0; font-size: 16px; font-weight: 600; color: var(--muted); }
.service-area p { margin: 0; }

/* Quote band and footer */

.cta-band { background: var(--black); color: var(--on-black); }
.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px 48px;
  padding-top: 72px;
  padding-bottom: 72px;
}
.cta-copy { display: flex; flex-direction: column; gap: 12px; max-width: 36em; }
.cta-copy h2 { margin: 0; font-size: clamp(28px, 3vw, 42px); }
.cta-copy p { margin: 0; font-size: 18px; color: var(--on-black-muted); }

.site-footer { background: var(--black); color: var(--on-black-muted); }
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
  padding-top: 36px;
  border-top: 1px solid var(--on-black-rule);
}
.footer-brand { display: flex; align-items: center; gap: 18px; }
.footer-brand img { width: 72px; height: 72px; flex: none; }
.footer-brand p { margin: 0; font-size: 15px; }
.footer-text { display: flex; flex-direction: column; gap: 4px; }
.footer-name { font-stretch: 125%; font-weight: 800; font-size: 17px; color: var(--on-black); }
.footer-contact, .footer-nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.footer-contact a, .footer-nav a { display: inline-block; padding: 10px 0; color: var(--on-black); font-size: 15px; text-decoration: none; }
.footer-contact a:hover, .footer-nav a:hover { text-decoration: underline; }
.copyright { margin: 0; padding: 20px 0 40px; font-size: 14px; }
