/* Theme 04: Neo-Brutalism
   Shown for: Spoke & Chain Bicycles (sample business)
   Thick black outlines, hard offset shadows with no blur, flat saturated colors, chunky expanded type.
   Buttons are physical blocks: they sit on their shadow and press into it. */

:root {
  /* ---- Re-skin: change these values for a new client ---- */
  --ink: #000000;       /* outlines, shadows, text, dark bands */
  --paper: #FFFFFF;     /* cards, light bands */
  --tint: #8FDCC8;      /* hero and rentals bands, one review card (celeste, the classic bike-frame green) */
  --hilite: #E2FF4D;    /* the tape, services and reviews bands, highlights (hi-vis jacket yellow) */
  --action: #FF5B3A;    /* primary buttons, visit band, one review card (tail-light red) */
  --metal: #B8BEC6;     /* tape case and hook only */
  --font: "Archivo", "Arial", system-ui, sans-serif;
  --display-width: 125%; /* Archivo's width axis: 125% is expanded, 100% is normal */

  /* ---- Shape: usually left alone ---- */
  --bw: 3px;
  --line: var(--bw) solid var(--ink);
  --rad: 6px;
  --sh: 6px 6px 0 var(--ink);
  --sh-s: 4px 4px 0 var(--ink);
  --sh-l: 10px 10px 0 var(--ink);

  --fs-s: .9375rem;
  --fs-b: 1.0625rem;
  --fs-m: 1.25rem;
  --fs-h3: 1.3125rem;
  --fs-h2: clamp(1.875rem, 1.2rem + 2.6vw, 3.25rem);
  --fs-h1: clamp(2.5rem, 1.25rem + 5vw, 5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-b);
  line-height: 1.5;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
address { font-style: normal; }
h1, h2, h3 { font-family: var(--font); font-stretch: var(--display-width); font-weight: 800; letter-spacing: -.02em; }
h2 { text-wrap: balance; }
table { border-collapse: collapse; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -80px; z-index: 20;
  background: var(--hilite); border: var(--line); box-shadow: var(--sh-s);
  padding: 12px 16px; font-weight: 800; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Focus: a dashed "cut line" around whatever has focus */
:focus-visible { outline: 3px dashed var(--ink); outline-offset: 5px; }

/* ---------- Demo bar ---------- */
.demo {
  background: var(--ink); color: var(--paper);
  font-size: .8125rem; font-weight: 600; line-height: 1.35; text-align: center;
  padding: 7px 16px;
}

/* ---------- Block buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 16px;
  border: var(--line); border-radius: var(--rad);
  background: var(--paper); color: var(--ink);
  font: 800 1rem/1.15 var(--font); text-decoration: none; text-align: center;
  box-shadow: var(--sh-s);
  transition: transform .09s ease-out, box-shadow .09s ease-out, background-color .15s;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.btn-lg { min-height: 56px; padding: 0 24px; font-size: 1.0625rem; box-shadow: var(--sh); }
.btn-lg:hover { transform: translate(3px, 3px); box-shadow: 3px 3px 0 var(--ink); }
.btn-lg:active { transform: translate(6px, 6px); box-shadow: 0 0 0 var(--ink); }
.btn-signal { background: var(--action); }
.btn-hilite, .btn-hivis { background: var(--hilite); }
.btn-white { background: var(--paper); }

/* ---------- Cards ---------- */
.card { background: var(--paper); border: var(--line); border-radius: var(--rad); box-shadow: var(--sh); }
.tag {
  display: inline-block; align-self: flex-start;
  background: var(--hilite); border: var(--line); border-radius: var(--rad); box-shadow: 3px 3px 0 var(--ink);
  padding: 3px 10px; font-weight: 800; font-size: var(--fs-s);
}

/* ---------- Header ---------- */
.top { background: var(--paper); border-bottom: var(--line); }
.top-in {
  display: grid; gap: 12px; padding-top: 12px; padding-bottom: 14px;
  grid-template-columns: 1fr auto;
  grid-template-areas: "brand act" "nav nav";
  align-items: center;
}
.brand {
  grid-area: brand;
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  text-decoration: none; font-weight: 800; font-size: 1.0625rem; line-height: 1.05;
}
.brand-sub { display: block; font-weight: 600; font-size: .8125rem; letter-spacing: .01em; }
.mark { flex: none; filter: drop-shadow(3px 3px 0 var(--ink)); }
.mark-bg { fill: var(--hilite); }
.top-act { grid-area: act; display: flex; gap: 10px; }
.top-tel { min-width: 48px; padding: 0 12px; }
.tel-txt { display: none; }
.long { display: none; }
.nav {
  grid-area: nav;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: var(--line); border-radius: var(--rad); overflow: hidden;
}
.nav a {
  display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 4px;
  font-weight: 800; font-size: .9375rem; text-decoration: none;
  border-left: var(--line);
}
.nav a:first-child { border-left: 0; }
.nav a:hover { background: var(--hilite); }
.nav a:focus-visible { outline-offset: -7px; }

/* ---------- Sections ---------- */
.band { border-bottom: var(--line); padding: 56px 0 64px; }
.head { max-width: 46rem; margin-bottom: 32px; }
.head h2, .proof h2 { font-size: var(--fs-h2); line-height: 1.04; }
.head p { margin-top: 14px; font-size: var(--fs-m); line-height: 1.45; }

/* Hero */
.hero { background: var(--tint); border-bottom: var(--line); padding: 36px 0 60px; overflow: hidden; }
.hero-in { display: grid; gap: 52px; }
.hero h1 { font-size: var(--fs-h1); line-height: .98; font-weight: 900; font-style: italic; letter-spacing: -.03em; }
.hero h1 span { display: block; }
.lede { font-size: var(--fs-m); line-height: 1.45; margin-top: 22px; max-width: 34rem; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero .actions .btn, .cta .actions .btn { flex: 1 1 100%; }
.promise { display: flex; align-items: flex-start; gap: 10px; margin-top: 26px; font-weight: 700; font-size: var(--fs-s); max-width: 30rem; }
.promise svg { flex: none; margin-top: -1px; }

.hero-photo {
  position: relative; align-self: center;
  background: var(--paper); border: var(--line); border-radius: var(--rad); box-shadow: var(--sh-l);
  margin: 0 10px 0 0;
}
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 40% 50%; border-radius: 3px 3px 0 0; }
.hero-photo figcaption { border-top: var(--line); padding: 10px 14px; font-weight: 800; font-size: var(--fs-s); }

.sticker {
  position: absolute; top: -30px; right: -6px;
  width: 116px; height: 116px; border-radius: 50%;
  background: var(--hilite); border: var(--line); box-shadow: var(--sh-s);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  transform: rotate(9deg);
  font-weight: 800; font-size: .75rem; line-height: 1.15;
}
.sticker b { font-stretch: var(--display-width); font-weight: 900; font-size: 2.125rem; line-height: 1; }
.sticker-stars { font-size: .8125rem; letter-spacing: .06em; margin: 2px 0 3px; }

/* Proof */
.proof h2 { max-width: 40rem; margin-bottom: 30px; }
.stats { display: grid; gap: 18px; }
.stat { display: flex; flex-direction: column; padding: 20px 22px 22px; }
.stat-num { font-stretch: var(--display-width); font-weight: 900; font-size: 2.75rem; line-height: 1; letter-spacing: -.03em; }
.stars { font-size: 1.125rem; letter-spacing: .1em; margin-top: 6px; }
.stat-txt { margin-top: 12px; padding-top: 12px; border-top: var(--line); font-weight: 700; }
.stat-note { font-size: .8125rem; font-weight: 600; margin-top: 4px; }
.stat:nth-child(1) { background: var(--hilite); }

.badges { display: grid; grid-template-columns: 1fr 1fr; margin-top: 26px; overflow: hidden; }
.badges li {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 16px; font-weight: 800; line-height: 1.25; font-size: var(--fs-s);
}
.badges li:nth-child(2n) { border-left: var(--line); }
.badges li:nth-child(n+3) { border-top: var(--line); }
.badges svg { width: 40px; height: 40px; padding: 6px; border: var(--line); border-radius: 50%; background: var(--tint); }

/* Services */
.services { background: var(--hilite); }
.svc-grid { display: grid; gap: 20px; }
.svc { overflow: hidden; display: flex; flex-direction: column; }
.svc img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-bottom: var(--line); }
.svc div { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.svc h3 { font-size: var(--fs-h3); line-height: 1.1; }
.svc p { font-size: var(--fs-b); }
.svc .tag { margin-top: auto; background: var(--tint); }

/* ---------- Signature: the tune-up price ruler ---------- */
.tuneups { background: var(--ink); color: var(--paper); }
.tuneups .head p { color: #EDEDED; }
.ruler { --max: 300; display: grid; gap: 24px; }
.pkg { color: var(--ink); padding: 18px 18px 22px; box-shadow: 6px 6px 0 var(--hilite); display: flex; flex-direction: column; }
.tape { display: flex; align-items: center; height: 56px; margin-bottom: 16px; }
.case {
  position: relative; z-index: 1; flex: none; width: 54px; height: 54px;
  background: var(--metal); border: var(--line); border-radius: 14px; box-shadow: 3px 3px 0 var(--ink);
}
.case::after {
  content: ""; position: absolute; inset: 11px; border: var(--line); border-radius: 50%; background: var(--paper);
}
.track { position: relative; flex: 1; height: 30px; margin-left: -3px; margin-right: 12px; }
/* the unpulled length of the scale */
.track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; margin-top: -1.5px; border-top: 3px dotted #8A8A8A; }
.blade {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: calc(var(--price) / var(--max) * 100%);
  background-color: var(--hilite);
  border: var(--line); border-left: 0; border-radius: 0 3px 3px 0;
  /* ticks on the shared $0 to $300 scale: long every $50, short every $10 */
  background-image:
    linear-gradient(90deg, var(--ink) 0 2px, transparent 2px),
    linear-gradient(90deg, var(--ink) 0 2px, transparent 2px);
  background-size:
    calc(100% * var(--max) / var(--price) / 6) 62%,
    calc(100% * var(--max) / var(--price) / 30) 32%;
  background-repeat: repeat-x;
  background-position: 0 0;
}
.hook {
  position: absolute; right: -11px; top: -10px; bottom: -10px; width: 11px;
  background: var(--metal); border: var(--line); border-radius: 2px;
}
.pkg h3 { font-size: 1.375rem; line-height: 1.1; }
.pkg-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 6px; padding-bottom: 14px; border-bottom: var(--line); }
.pkg-price b { font-stretch: var(--display-width); font-weight: 900; font-size: 2.5rem; line-height: 1; letter-spacing: -.03em; }
.pkg-price span { font-weight: 700; font-size: var(--fs-s); }
.checks { margin-top: 6px; }
.checks li { position: relative; padding-left: 34px; margin-top: 10px; font-weight: 600; line-height: 1.35; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: -1px; width: 22px; height: 22px;
  border: var(--line); border-radius: 4px;
  background: var(--hilite) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.checks .plus { padding-left: 0; font-weight: 800; }
.checks .plus::before { display: none; }
.fine { margin-top: 32px; max-width: 46rem; font-weight: 700; color: #EDEDED; }

/* Process */
.steps { display: grid; gap: 22px; counter-reset: step; }
.step { padding: 18px 20px 22px; display: grid; grid-template-columns: auto 1fr; column-gap: 16px; row-gap: 4px; align-items: start; }
.num {
  grid-row: span 2;
  width: 48px; height: 48px; border: var(--line); border-radius: 50%; background: var(--action);
  display: grid; place-items: center;
  font-stretch: var(--display-width); font-weight: 900; font-size: 1.375rem; line-height: 1;
}
.step h3 { font-size: var(--fs-h3); line-height: 1.15; padding-top: 10px; }
.step p { font-size: var(--fs-b); }

/* Rentals */
.rentals { background: var(--tint); }
.rent-in { display: grid; gap: 36px; }
.rent-copy h2 { font-size: var(--fs-h2); line-height: 1.04; }
.rent-copy > p { margin-top: 14px; font-size: var(--fs-m); max-width: 32rem; }
.included { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.included li { border: var(--line); border-radius: 999px; padding: 4px 14px; font-weight: 800; font-size: var(--fs-s); background: var(--paper); box-shadow: 2px 2px 0 var(--ink); }
.rent-table { padding: 8px 0 0; overflow: hidden; align-self: start; }
.rent-table table { width: 100%; }
.rent-table caption { text-align: left; padding: 12px 20px 14px; font-stretch: var(--display-width); font-weight: 800; font-size: 1.375rem; }
.rent-table th, .rent-table td { padding: 12px 20px; text-align: left; border-top: var(--line); }
.rent-table thead th { background: var(--ink); color: var(--paper); font-size: var(--fs-s); }
.rent-table tbody th { font-weight: 800; }
.rent-table td { font-stretch: var(--display-width); font-weight: 800; font-size: 1.25rem; }
.rent-note { border-top: var(--line); padding: 14px 20px 16px; font-weight: 600; font-size: var(--fs-s); background: var(--hilite); }

/* Work */
.jobs { display: grid; gap: 30px; }
.job { overflow: hidden; display: flex; flex-direction: column; }
.job img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-bottom: var(--line); }
.job figcaption { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.job b { font-stretch: var(--display-width); font-weight: 800; font-size: var(--fs-h3); line-height: 1.15; }
.job .tag { background: var(--hilite); margin-top: 4px; }

/* Reviews */
.reviews { background: var(--hilite); }
.quotes { display: grid; gap: 26px; }
.quote { padding: 22px 22px 20px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.quote blockquote p { font-size: var(--fs-m); line-height: 1.45; font-weight: 700; }
.quote figcaption { font-size: .8125rem; font-weight: 600; border-top: var(--line); padding-top: 12px; }
.quote figcaption b { display: block; font-size: var(--fs-b); font-weight: 800; }
.q-celeste { background: var(--tint); }
.q-signal { background: var(--action); }

/* About */
.about-in { display: grid; gap: 36px; }
.about-photo { overflow: hidden; align-self: start; }
.about-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 100%; border-bottom: var(--line); }
.about-photo figcaption { padding: 10px 14px; font-weight: 800; font-size: var(--fs-s); }
.about-copy h2 { font-size: var(--fs-h2); line-height: 1.04; }
.about-copy p { margin-top: 16px; font-size: var(--fs-m); max-width: 36rem; }
.about-copy .sig { font-weight: 800; font-size: var(--fs-b); display: inline-block; background: var(--hilite); border: var(--line); border-radius: var(--rad); padding: 6px 12px; box-shadow: 3px 3px 0 var(--ink); }

/* Visit */
.visit { background: var(--action); }
.visit-in { display: grid; gap: 40px; }
.cta h2 { font-size: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); line-height: 1; }
.cta p { font-size: var(--fs-m); margin-top: 18px; max-width: 34rem; font-weight: 600; }
.where { padding: 22px 22px 18px; align-self: start; }
.where h3 { font-size: 1.375rem; line-height: 1.15; }
.where address { margin-top: 8px; font-size: var(--fs-m); font-weight: 700; line-height: 1.35; }
.hours { width: 100%; margin-top: 16px; }
.hours th, .hours td { text-align: left; padding: 9px 0; border-top: var(--line); font-size: var(--fs-b); }
.hours th { font-weight: 800; padding-right: 12px; }
.hours td { font-weight: 600; text-align: right; }
.where-note { border-top: var(--line); padding-top: 12px; font-weight: 600; font-size: var(--fs-s); }

/* Footer */
.foot { background: var(--ink); color: var(--paper); padding: 52px 0 36px; }
.foot :focus-visible { outline-color: var(--paper); }
.foot-in { display: grid; gap: 30px; }
.foot .brand { color: var(--paper); }
.foot .mark { filter: drop-shadow(3px 3px 0 var(--hilite)); }
.f-brand p { margin-top: 14px; max-width: 26rem; color: #E6E6E6; }
.foot h2 { font-size: 1.125rem; margin-bottom: 12px; color: var(--hilite); }
.foot address, .foot-in > div > p { color: #E6E6E6; margin-bottom: 10px; }
.foot-in > div > p > a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; color: var(--paper); text-underline-offset: 4px; text-decoration-thickness: 2px; overflow-wrap: anywhere; }
.foot-in > div > p:has(a) { margin: 0; }
.legal { border-top: 3px solid var(--paper); padding-top: 18px; font-size: var(--fs-s); color: #D9D9D9; }

/* ---------- Tablet ---------- */
@media (min-width: 720px) {
  .wrap { padding: 0 32px; }
  .long { display: inline; }
  .hero .actions .btn, .cta .actions .btn { flex: 0 1 auto; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .badges { grid-template-columns: repeat(4, 1fr); }
  .badges li { padding: 20px; border-top: 0 !important; border-left: var(--line); }
  .badges li:first-child { border-left: 0; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .ruler { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .jobs { grid-template-columns: repeat(2, 1fr); align-items: start; }
  .quotes { grid-template-columns: repeat(3, 1fr); }
  .foot-in { grid-template-columns: 1.4fr 1fr 1fr; }
  .legal { grid-column: 1 / -1; }
}

/* ---------- Desktop ---------- */
@media (min-width: 1080px) {
  .wrap { padding: 0 40px; }
  .top-in {
    grid-template-columns: auto 1fr auto; grid-template-areas: "brand nav act";
    gap: 28px; padding-top: 14px; padding-bottom: 14px;
  }
  .brand { font-size: 1.25rem; }
  .nav { justify-self: center; display: flex; border: 0; overflow: visible; gap: 6px; }
  .nav a { border: var(--bw) solid transparent; border-radius: var(--rad); padding: 0 14px; font-size: var(--fs-b); }
  .nav a:hover { border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
  .nav a:focus-visible { outline-offset: 3px; }
  .top-tel { padding: 0 16px; }
  .top-tel svg, .tel-sr { display: none; }
  .tel-txt { display: inline; }

  .band { padding: 100px 0 108px; }
  .head { margin-bottom: 48px; }
  .hero { padding: 72px 0 96px; }
  .hero-in { grid-template-columns: 1.08fr .92fr; gap: 64px; align-items: center; }
  .hero-photo { transform: rotate(1.5deg); }
  .sticker { top: -46px; right: auto; left: -50px; width: 146px; height: 146px; font-size: .875rem; transform: rotate(-10deg); }
  .sticker b { font-size: 2.75rem; }

  .svc-grid { grid-template-columns: repeat(4, 1fr); gap: 26px; }
  .ruler { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; }
  .pkg-price { flex-direction: column; align-items: flex-start; }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 26px; }
  .step { grid-template-columns: 1fr; }
  .num { grid-row: auto; margin-bottom: 8px; }
  .step h3 { padding-top: 0; }
  .rent-in { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
  .jobs { gap: 44px; }
  .q-white { transform: rotate(-1deg); }
  .q-celeste { transform: rotate(.8deg); }
  .q-signal { transform: rotate(-.6deg); }
  .about-in { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
  .about-photo { transform: rotate(-1.2deg); }
  .visit-in { grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: center; }
  .where { padding: 28px 28px 22px; }
}

/* ---------- One signature moment: the review sticker slaps onto the photo ---------- */
@media (prefers-reduced-motion: no-preference) {
  .sticker { animation: slap .55s cubic-bezier(.3, 1.4, .5, 1) .35s both; }
  @keyframes slap {
    from { opacity: 0; scale: 1.9; }
    60% { opacity: 1; scale: .94; }
    to { scale: 1; }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
}
