/* Mountain View Bear LLC — shared styles
   Seed 5-2-7-1-5-5-6: cool-leaning parts-counter colours (caliper blue, rotor steel, oil slate, cool chrome) ·
   warm off-white paper base · narrow document-like column · classic serif headings (Crimson Text) + DM Sans body ·
   pill-button navigation · category index column + item rows · soft shadows, no borders · motif: tyre tread */

@font-face { font-family: "Crimson Text"; src: url("fonts/crimson-text-600.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Crimson Text"; src: url("fonts/crimson-text-700.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/dm-sans-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/dm-sans-500.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/dm-sans-700.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --paper: #f7f3ea;
  --card: #ffffff;
  --ink: #1d2a36;
  --muted: #55626f;
  --steel: #9aa8b6;
  --chrome: #dfe6ee;
  --blue: #2f6fa3;
  --blue-deep: #244f74;
  --amber: #e9a94f;
  --shadow: 0 1px 2px rgba(29, 42, 54, 0.06), 0 8px 24px rgba(29, 42, 54, 0.09);
  --shadow-lift: 0 2px 4px rgba(29, 42, 54, 0.08), 0 14px 32px rgba(29, 42, 54, 0.14);
  --r: 12px;
  --serif: "Crimson Text", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --tread: url("assets/motif-tread.svg") 0 0 / 28px 20px repeat;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-variant-ligatures: no-common-ligatures; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.7; color: var(--ink); background: var(--paper); overflow-wrap: break-word; }
img { max-width: 100%; height: auto; }
strong { font-weight: 700; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.1; margin: 0 0 0.45em; color: var(--ink); }
h1 { font-size: clamp(2.5rem, 5.6vw, 3.8rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.35rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--blue); text-underline-offset: 0.18em; }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.doc { width: 100%; max-width: 880px; margin: 0 auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 10; padding: 0.45rem 1rem; border-radius: 999px; background: var(--amber); color: var(--ink); font-weight: 700; }
.skip-link:focus { top: 1rem; }

/* ---------- header with pill-button nav ---------- */
.site-header { background: var(--paper) var(--tread); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem 1.2rem; padding-block: 1.1rem; }
.brand { display: flex; align-items: center; gap: 0.85rem; color: var(--ink); text-decoration: none; }
.brand img { width: 70px; height: auto; flex: none; border-radius: var(--r); box-shadow: var(--shadow); }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: clamp(1.5rem, 3vw, 1.9rem); line-height: 1.05; }
.brand:hover .brand-name { color: var(--blue); }
.main-nav ul { display: flex; flex-wrap: wrap; gap: 0.45rem; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: inline-block; padding: 0.42rem 1rem; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); color: var(--ink); font-weight: 500; line-height: 1.2; text-decoration: none; }
.main-nav a:hover { box-shadow: var(--shadow-lift); color: var(--blue); }
.main-nav a[aria-current="page"] { background: var(--blue); color: var(--card); }

/* ---------- sections ---------- */
.section { padding-block: clamp(2rem, 5vw, 3.2rem); }
.tag { display: inline-block; margin: 0 0 1rem; padding: 0.3rem 0.85rem; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); color: var(--muted); font-size: 0.9rem; line-height: 1.45; }
.lede { font-size: clamp(1.12rem, 1.9vw, 1.28rem); color: var(--muted); }
.kicker { margin: 0 0 0.3rem; color: var(--blue); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; }
.hero-art { display: block; width: 100%; margin-top: 1.8rem; }
.card { padding: clamp(1.1rem, 2.6vw, 1.6rem); border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.card > :last-child { margin-bottom: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.72rem 1.35rem; border-radius: 999px; background: var(--blue); color: var(--card); font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; box-shadow: var(--shadow); max-width: 100%; overflow-wrap: anywhere; }
.btn:hover { background: var(--blue-deep); color: var(--card); box-shadow: var(--shadow-lift); }
.btn-soft { background: var(--card); color: var(--ink); }
.btn-soft:hover { background: var(--card); color: var(--blue); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* ---------- home ---------- */
.bins { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.bins a { display: flex; gap: 1rem; align-items: center; height: 100%; padding: 1rem 1.1rem; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.bins a:hover { box-shadow: var(--shadow-lift); }
.bins img { width: 56px; height: 56px; flex: none; }
.bins .b-name { display: block; font-weight: 700; letter-spacing: 0.02em; }
.bins .b-count { display: block; color: var(--muted); font-size: 0.95rem; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: 0.7rem 0 0.7rem 2.2rem; color: var(--muted); }
.ticks li + li { box-shadow: 0 -1px 0 rgba(29, 42, 54, 0.08); }
.ticks li::before { content: ""; position: absolute; left: 0.1rem; top: 1.15rem; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--chrome); box-shadow: inset 0 0 0 4px var(--blue); }
.ticks strong { color: var(--ink); }
.spot { margin-top: 1rem; }
.visit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.2rem; align-items: start; }

/* ---------- catalog: category index column + item rows ---------- */
.catalog { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 1.6rem; align-items: start; }
.index { position: sticky; top: 1rem; padding: 0.6rem; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.index ul { list-style: none; margin: 0; padding: 0; }
.index a { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 0.1rem 0.6rem; align-items: center; padding: 0.55rem 0.5rem; border-radius: 8px; color: var(--ink); text-decoration: none; line-height: 1.2; }
.index a:hover { background: var(--paper); color: var(--blue); }
.index img { grid-row: span 2; width: 34px; height: 34px; }
.index .i-name { font-weight: 700; font-size: 0.9rem; }
.index .i-count { color: var(--muted); font-size: 0.82rem; }
.group { scroll-margin-top: 1rem; }
.group + .group { margin-top: 2.2rem; }
.group-head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.8rem; }
.group-head img { width: 48px; height: 48px; flex: none; }
.group-head h2 { margin: 0; font-size: clamp(1.5rem, 2.8vw, 1.9rem); }
.items { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }
.item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.15rem 1rem; padding: 0.85rem 1.1rem; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.item-name { margin: 0; font-family: var(--sans); font-size: 1.04rem; font-weight: 700; line-height: 1.35; }
.item-desc { grid-column: 1; margin: 0; color: var(--muted); font-size: 0.97rem; }
.item-price { grid-column: 2; grid-row: 1 / span 2; align-self: center; margin: 0; font-weight: 700; font-size: 1.12rem; color: var(--blue-deep); white-space: nowrap; font-variant-numeric: tabular-nums; }
.item-price.quote { max-width: 12rem; white-space: normal; font-size: 0.95rem; line-height: 1.35; text-align: right; color: var(--ink); }
.item-price .call { display: block; margin-top: 0.25rem; font-weight: 700; white-space: nowrap; }
.offers { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.offers li { padding: 1rem 1.2rem; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.offers li::before { content: ""; display: block; width: 2.4rem; height: 4px; margin-bottom: 0.6rem; border-radius: 2px; background: var(--amber); }
.offers h3 { margin-bottom: 0.15rem; }
.offers p { margin: 0; color: var(--muted); }

/* ---------- about / contact ---------- */
.facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem 1.5rem; }
.facts .wide { grid-column: 1 / -1; }
.facts dt { color: var(--blue); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; }
.facts dd { margin: 0; font-weight: 500; font-size: 1.08rem; }
.story p { color: var(--muted); }
.story .first { color: var(--ink); font-size: 1.22rem; }
.story .kicker { color: var(--blue); }
.details { margin: 0; display: grid; gap: 0.9rem; }
.details dt { color: var(--blue); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; }
.details dd { margin: 0; font-weight: 500; font-size: 1.08rem; }
.details address { font-style: normal; }
.hours { width: 100%; border-collapse: collapse; }
.hours caption { caption-side: top; text-align: left; padding-bottom: 0.4rem; font-family: var(--serif); font-weight: 700; font-size: 1.55rem; }
.hours th, .hours td { padding: 0.42rem 0.2rem; text-align: left; }
.hours tbody tr + tr > * { box-shadow: 0 -1px 0 rgba(29, 42, 54, 0.08); }
.hours thead th { color: var(--blue); font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; }
.hours tbody th { font-weight: 700; }
.hours td { white-space: nowrap; font-variant-numeric: tabular-nums; }
.hours .closed { color: var(--muted); font-weight: 700; }
.map-frame { display: block; width: 100%; height: 380px; border: 0; border-radius: var(--r); background: var(--chrome); box-shadow: var(--shadow); }
.map-link { margin-top: 0.8rem; }

/* ---------- footer ---------- */
.site-footer { margin-top: clamp(1.5rem, 4vw, 2.5rem); background: var(--ink); color: #c7d0d9; font-size: 0.98rem; }
.site-footer a { color: var(--card); }
.site-footer a:hover { color: var(--amber); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 0.8fr; gap: 1.6rem; padding-block: 2.2rem 1.4rem; }
.footer-name { margin: 0 0 0.3rem; font-family: var(--serif); font-weight: 700; font-size: 1.5rem; color: var(--card); line-height: 1.1; }
.site-footer address { font-style: normal; }
.footer-title { margin: 0 0 0.45rem; color: var(--amber); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-bottom { margin: 0; padding-block: 0.9rem 1.4rem; box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.12); font-size: 0.88rem; }

@media (max-width: 760px) {
  .catalog { grid-template-columns: 1fr; }
  .index { position: static; }
  .index ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.2rem; }
  .visit, .facts { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  body { font-size: 1.02rem; }
  .brand img { width: 58px; }
  .bins { grid-template-columns: 1fr; }
  .index ul { grid-template-columns: 1fr; }
  .item { grid-template-columns: 1fr; }
  .item-price { grid-column: 1; grid-row: auto; margin-top: 0.35rem; }
  .item-price.quote { text-align: left; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn-row .btn { flex: 1 1 100%; }
  .map-frame { height: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
