/* The Bullet Factory — the original Muse layout, rebuilt as one responsive stylesheet. */

:root {
  --black: #000;
  --ink: #1a1a1a;
  --text: #444;
  --amber: #f8b100;      /* active nav tab */
  --orange: #f7931e;     /* links */
  --orange-dark: #c96f00;
  --yellow: #fcee21;     /* service tiles, pills */
  --custom: #fbae3c;     /* custom bikes tile */
  --charcoal: #333;
  --footer: #1a1a1a;
  --red: #c1272d;
  --page: 980px;
  --gutter: 16px;
  --head: 'Plus Jakarta Sans', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font: 14px/1.45 var(--body);
  border-top: 12px solid var(--charcoal);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-dark); text-decoration: underline; }
a.strong { font-weight: bold; font-style: italic; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--head); color: var(--ink); line-height: 1.2; margin: 0 0 .4em; }
h1 { font-size: 32px; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 21px; font-weight: 500; margin-top: 1em; }
h3 { font-size: 16px; font-weight: 700; color: var(--charcoal); font-family: var(--body); }
p { margin: 0 0 .75em; }
ul { margin: 0 0 1em; padding-left: 2.2em; }
li { margin-bottom: .35em; }
address { font-style: normal; margin-bottom: 1em; }
.center { text-align: center; }
.h1-grey { color: var(--charcoal); font-family: var(--body); font-size: 22px; margin-top: 1.2em; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: var(--gutter); top: 16px; background: #fff; padding: 8px 12px; z-index: 10; }

/* ---------- Header ---------- */
.site-header,
main,
.footer-row {
  width: 100%;
  max-width: calc(var(--page) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.site-header {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-top: 4px;
  padding-bottom: 22px;
}
.logo img { width: 280px; }
.header-right { flex: 1; max-width: 680px; }
.header-social { display: flex; justify-content: flex-end; gap: 12px; margin: 0 0 14px; }
.header-social img { width: 25px; height: 25px; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav li { flex: 1; margin: 0; }
.nav a {
  display: block;
  background: var(--black);
  color: #fff;
  font: 500 14px/42px var(--head);
  text-align: center;
  white-space: nowrap;
}
.nav a:hover { background: var(--charcoal); color: #fff; text-decoration: none; }
.nav a[aria-current="page"] { background: var(--amber); color: var(--black); }

/* ---------- Main layout ---------- */
main { flex: 1; padding-bottom: 60px; }

.cols { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; margin-top: 22px; }
.cols--even { grid-template-columns: 1fr 1fr; }
.cols--about { grid-template-columns: 380px minmax(0, 1fr); }
.cols--contact { grid-template-columns: 280px minmax(0, 1fr); gap: 30px; }
.side > * { display: block; }
.side > * + * { margin-top: 20px; }
.side h2 { margin-top: 26px; margin-bottom: 12px; }

.banner { width: 100%; height: 115px; object-fit: cover; }

/* ---------- Home slideshow ---------- */
.slideshow { position: relative; aspect-ratio: 980 / 285; background: var(--ink); overflow: hidden; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1s ease; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 6px 12px;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font: 500 13px/1.3 var(--head);
}

/* ---------- Service tiles ---------- */
.tiles { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tiles li { margin: 0; }
.tiles a {
  display: block;
  height: 100%;
  background: var(--yellow);
  color: var(--ink);
  padding: 14px 10px 16px;
  text-align: center;
  font: 12px/1.3 var(--head);
}
.tiles a:hover { background: #f5e000; text-decoration: none; color: var(--ink); }
.tiles strong { display: block; font-size: 30px; line-height: 1.05; font-weight: 700; margin-bottom: 6px; }
.content .tiles { margin-top: 26px; }
.content .tiles strong { font-size: 26px; }

.custom-tile {
  display: block;
  background: var(--custom);
  color: var(--ink);
  font: 700 30px/1 var(--head);
  text-align: center;
  padding: 24px 10px;
}
.custom-tile:hover { color: var(--ink); text-decoration: none; filter: brightness(1.05); }

/* ---------- Sidebar pieces ---------- */
.pill {
  display: block;
  background: var(--yellow);
  color: var(--ink);
  border-radius: 6px;
  padding: 3px 10px;
  text-align: center;
  font: 600 14px/1.4 var(--head);
}
.pill:hover { color: var(--ink); text-decoration: none; background: #f5e000; }
.content .pill { max-width: 380px; margin: 1.5em auto 0; }

.social-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 0; }
.social-buttons a {
  display: block;
  color: #fff;
  font: 600 18px/58px var(--head);
  text-align: center;
}
.social-buttons a:hover { color: #fff; text-decoration: none; filter: brightness(1.1); }
.social-buttons .facebook { background: #3b5998; }
.social-buttons .youtube { background: #c4302b; }
.social-buttons .instagram { background: #d73f33; grid-column: 1 / -1; }

.side blockquote { margin: 10px 0 8px; }

.book {
  display: block;
  background: var(--charcoal);
  color: #fff;
  font: 24px/1.25 Georgia, 'Times New Roman', serif;
  text-align: center;
  padding: 34px 24px;
}
.book span { display: block; margin-top: 10px; font: 600 15px/1.3 var(--head); color: var(--amber); }
.book:hover { color: #fff; text-decoration: none; background: #222; }

.social-line { margin-top: 2.2em; }

/* ---------- Page-specific ---------- */
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.thumbs img { height: 130px; width: auto; object-fit: cover; }

.bike { margin: 0 0 30px; }
.bike figcaption { padding: 14px 0 0 30%; }
.bike h3 { margin-bottom: 6px; }
.bike ul { list-style: disc; font-size: 13px; padding-left: 1.6em; margin: 0; }
.bikes { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; margin-top: 10px; }

.about-pic img { margin-top: 44px; }
.about-pic .social-line { margin-top: 12px; }

.map { width: 100%; height: 400px; border: 0; }

.notice {
  margin-top: 22px;
  background: var(--orange);
  border-radius: 6px;
  padding: 50px 24px;
  text-align: center;
  color: #fff;
}
.notice h1 { color: #fff; font-size: 20px; font-weight: 600; }
.notice a { color: #fff; text-decoration: underline; }

.box { padding: 20px 20px 30px; }
.box--yellow { background: #feed80; }
.box--cyan { background: #8ff2ff; }
.box p { color: var(--charcoal); }
.used-button { position: relative; display: inline-block; margin-top: 10px; }
.used-button span {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  padding: 8px 10px;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  font: 700 16px/1.25 var(--head);
}

.wallpack { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 20px; margin-top: 10px; }
.wallpack h2 { margin-top: 0; }
.downloads { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-around; margin: 14px 0; }
.red-button {
  display: inline-block;
  min-width: 220px;
  background: var(--red);
  color: #fff;
  border-radius: 6px;
  padding: 12px 20px;
  text-align: center;
  font-size: 14px;
  letter-spacing: .04em;
}
.red-button:hover { background: #a01e23; color: #fff; text-decoration: none; }

main > .content,
main > .banner + .content { margin-top: 22px; }
main > .content h1 + p { margin-top: 1.2em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: #aaa; padding: 12px 0 16px; font: 11px/1.4 var(--head); }
.footer-row { display: flex; justify-content: space-between; gap: 30px; }
.footer-row + .footer-row { margin-top: 10px; }
.footer-row p { margin: 0; }
.footer-row p:last-child { text-align: right; }
.site-footer a { color: #eee; }
.site-footer a:hover { color: var(--amber); }

/* ---------- Tablet ---------- */
@media (max-width: 900px) {
  .site-header { flex-direction: column; align-items: stretch; gap: 14px; }
  .header-right { max-width: none; }
  .logo { align-self: flex-start; }
  .header-social { position: absolute; top: 22px; right: var(--gutter); margin: 0; }
  .cols, .cols--about, .cols--contact { grid-template-columns: 1fr; }
  .side { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
  .side > * + * { margin-top: 0; }
  .side h2 { margin-top: 0; }
  .side > p:first-child { grid-column: 1 / -1; margin: 0; }
  .about-pic img { margin-top: 0; }
}

/* ---------- Phone ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; line-height: 1.5; border-top-width: 8px; }
  h1 { font-size: 27px; }
  h2 { font-size: 20px; }
  .logo img { width: 220px; }
  .header-social { top: 14px; }
  .header-social img { width: 28px; height: 28px; }
  .nav ul { flex-wrap: wrap; }
  .nav li { flex: 1 1 30%; }
  .nav a { font-size: 15px; line-height: 46px; }

  .slideshow { aspect-ratio: 2 / 1; }
  .slide figcaption { left: 0; font-size: 14px; }

  .cols--even, .bikes, .wallpack, .side { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr; gap: 12px; }
  .tiles a { padding: 14px 16px; font-size: 14px; }
  .tiles strong, .content .tiles strong { font-size: 26px; }
  .bike figcaption { padding-left: 0; }
  .bike ul { font-size: 15px; }
  .thumbs img { height: auto; width: calc(50% - 4px); }
  .downloads { justify-content: flex-start; }
  .red-button { width: 100%; }
  .map { height: 320px; }
  .notice { padding: 36px 18px; }

  .site-footer { font-size: 13px; }
  .footer-row { flex-direction: column; gap: 8px; }
  .footer-row p:last-child { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .slide { transition: none; }
}
