/* Hamilton Store LLC — shared styles
   Seed 8-5-1-2-5-7-1: one bold safety-orange accent over steel and concrete neutrals · near-black base, light
   text · split hero (text / brand graphic) · humanist sans (Second Ave Sans) · pill-button nav (the only rounded
   element) · compact rows with price badges · sharp corners and 1px rules · motif: diamond tread plate */

@font-face { font-family: "Second Ave Sans"; src: url("fonts/second-ave-sans-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Second Ave Sans"; src: url("fonts/second-ave-sans-600.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Second Ave Sans"; src: url("fonts/second-ave-sans-800.woff") format("woff"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  --base: #141517;
  --raise: #1d1f22;
  --rule: #34373c;
  --rule-2: #4a4e55;
  --text: #ecebe7;
  --muted: #a9adb4;
  --orange: #ff7a29;
  --orange-ink: #141517;
  --humanist: "Second Ave Sans", "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --tread: url("assets/motif-treadplate.svg") 0 0 / 28px 28px repeat;
}

*, *::before, *::after { box-sizing: border-box; border-radius: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--base); }
body { margin: 0; font-family: var(--humanist); font-size: 1.06rem; line-height: 1.62; color: var(--text); background: var(--base); overflow-wrap: break-word; }
img { max-width: 100%; height: auto; }
strong { font-weight: 800; color: var(--text); }
h1, h2, h3 { font-family: var(--humanist); font-weight: 800; line-height: 1.1; margin: 0 0 0.5em; color: var(--text); }
h1 { font-size: clamp(2.5rem, 5.6vw, 4rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.15rem); }
h3 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--text); text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
a:hover { color: var(--orange); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: clamp(1rem, 4vw, 2.2rem); }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 10; padding: 0.45rem 1rem; background: var(--orange); color: var(--orange-ink); }
.skip-link:focus { top: 1rem; }
.tread { height: 28px; background: var(--tread); border-block: 1px solid var(--rule); }

/* ---------- header: logo left, pill-button nav ---------- */
.site-header { border-bottom: 1px solid var(--rule); background: var(--base); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem 2rem; padding-block: 0.85rem; }
.brand { display: flex; align-items: center; gap: 0.8rem; color: var(--text); text-decoration: none; }
.brand img { width: 60px; height: auto; flex: none; border: 1px solid var(--rule-2); }
.brand-name { font-weight: 800; font-size: clamp(1.25rem, 2.6vw, 1.5rem); line-height: 1.1; }
.brand:hover { color: var(--text); }
.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.38rem 1rem; border: 1px solid var(--rule-2); border-radius: 999px; color: var(--text); font-weight: 600; text-decoration: none; }
.main-nav a:hover { border-color: var(--orange); color: var(--orange); }
.main-nav a[aria-current="page"] { border-color: var(--orange); background: var(--orange); color: var(--orange-ink); }

/* ---------- split hero ---------- */
.hero { padding-block: clamp(2.4rem, 5.5vw, 4rem); }
.hero-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.6rem, 4vw, 3.2rem); align-items: center; }
.hero-art { display: block; width: 100%; border: 1px solid var(--rule-2); }
.tag { display: inline-block; margin: 0 0 1rem; padding: 0.25rem 0.7rem; border: 1px solid var(--rule-2); color: var(--muted); font-weight: 600; font-size: 0.88rem; line-height: 1.45; max-width: 100%; }
.lede { font-size: clamp(1.1rem, 2vw, 1.24rem); color: var(--muted); max-width: 46ch; }
.kicker { margin: 0 0 0.35rem; color: var(--orange); font-weight: 800; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.68rem 1.25rem; border: 1px solid var(--orange); background: var(--orange); color: var(--orange-ink); font-weight: 800; line-height: 1.25; text-align: center; text-decoration: none; max-width: 100%; overflow-wrap: anywhere; }
.btn:hover { background: var(--base); color: var(--orange); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--rule-2); }
.btn-ghost:hover { border-color: var(--orange); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.5rem; }
.section { padding-block: clamp(2.4rem, 5vw, 3.6rem); }
.section + .section { border-top: 1px solid var(--rule); }
.raise { background: var(--raise); }

/* home: category index with 1px rules */
.cat-index { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule-2); border-left: 1px solid var(--rule-2); }
.cat-index li { border-right: 1px solid var(--rule-2); border-bottom: 1px solid var(--rule-2); }
.cat-index a { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 0.2rem 0.9rem; align-items: center; height: 100%; padding: 1.1rem; color: var(--text); text-decoration: none; }
.cat-index img { grid-row: span 2; width: 56px; height: 56px; }
.cat-index .ci-name { font-weight: 800; line-height: 1.25; }
.cat-index .ci-meta { color: var(--muted); font-size: 0.92rem; }
.cat-index a:hover { background: var(--raise); }
.cat-index a:hover .ci-name { color: var(--orange); }
.split2 { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
.ruled { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-2); }
.ruled li { padding: 0.8rem 0; border-bottom: 1px solid var(--rule); color: var(--muted); }
.ruled strong { color: var(--text); }
.box { padding: 1.2rem 1.3rem; border: 1px solid var(--rule-2); background: var(--raise); }

/* ---------- catalog: compact rows with price badges ---------- */
.jump { display: flex; flex-wrap: wrap; gap: 0.45rem; list-style: none; margin: 1.3rem 0 0; padding: 0; }
.jump a { display: inline-block; padding: 0.3rem 0.8rem; border: 1px solid var(--rule-2); color: var(--text); font-weight: 600; font-size: 0.92rem; text-decoration: none; }
.jump a:hover { border-color: var(--orange); color: var(--orange); }
.cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 2.4rem; }
.cat { scroll-margin-top: 1rem; }
.cat-head { display: flex; align-items: center; gap: 0.8rem; padding-bottom: 0.7rem; border-bottom: 2px solid var(--orange); }
.cat-head img { width: 48px; height: 48px; flex: none; }
.cat-head h2 { margin: 0; font-size: clamp(1.2rem, 2.4vw, 1.45rem); letter-spacing: 0.02em; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.2rem 1rem; align-items: start; padding: 0.7rem 0; border-bottom: 1px solid var(--rule); }
.rows h3 { margin: 0; line-height: 1.35; }
.rows p { margin: 0.1rem 0 0; color: var(--muted); font-size: 0.94rem; }
.badge { display: inline-block; padding: 0.2rem 0.55rem; border: 1px solid var(--orange); background: var(--orange); color: var(--orange-ink); font-weight: 800; font-size: 0.95rem; line-height: 1.35; white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.badge.quote { background: transparent; color: var(--orange); white-space: normal; max-width: 11rem; text-align: right; font-size: 0.86rem; }
.quote-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 0.3rem; }
.quote-wrap a { font-weight: 600; font-size: 0.9rem; white-space: nowrap; }
.deals { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-2); }
.deals li { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) auto; gap: 0.3rem 1.4rem; align-items: baseline; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.deals h3 { margin: 0; font-size: 1.1rem; font-weight: 800; }
.deals p { margin: 0; color: var(--muted); }
.deals .badge { white-space: normal; justify-self: start; }

/* ---------- about / contact ---------- */
.story p { color: var(--muted); }
.story .first { color: var(--text); font-size: 1.16rem; }
.facts, .details { margin: 0; border-top: 1px solid var(--rule-2); }
.facts div, .details div { padding: 0.7rem 0; border-bottom: 1px solid var(--rule); }
.facts dt, .details dt { color: var(--orange); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.facts dd, .details dd { margin: 0; font-weight: 600; }
.details address { font-style: normal; }
.hours { width: 100%; border-collapse: collapse; }
.hours caption { caption-side: top; text-align: left; padding-bottom: 0.5rem; font-weight: 800; font-size: 1.3rem; color: var(--text); }
.hours th, .hours td { padding: 0.55rem 0.4rem 0.55rem 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.hours thead th { color: var(--orange); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; border-bottom: 1px solid var(--orange); }
.hours tbody th { font-weight: 600; padding-right: 1rem; }
.hours td { color: var(--muted); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.hours .note { display: block; font-size: 0.88rem; white-space: normal; }
.map-frame { display: block; width: 100%; height: 380px; border: 1px solid var(--rule-2); background: var(--raise); }
.map-link { margin-top: 0.8rem; }

/* ---------- footer ---------- */
.site-footer { background: #0d0e0f; color: var(--muted); font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 0.8fr; gap: 1.6rem; padding-block: 2.1rem 1.3rem; }
.footer-name { margin: 0 0 0.3rem; font-weight: 800; font-size: 1.3rem; color: var(--text); }
.site-footer address { font-style: normal; }
.footer-title { margin: 0 0 0.45rem; color: var(--orange); font-weight: 800; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-bottom { margin: 0; padding-block: 0.9rem 1.4rem; border-top: 1px solid var(--rule); font-size: 0.85rem; }

@media (max-width: 1000px) {
  .hero-split, .split2, .cats { grid-template-columns: 1fr; }
  .cat-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .deals li { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .brand img { width: 52px; }
  .main-nav a { padding: 0.32rem 0.8rem; }
  .cat-index { grid-template-columns: 1fr; }
  .rows li { grid-template-columns: 1fr; }
  .rows .badge, .rows .quote-wrap { justify-self: start; }
  .quote-wrap { align-items: flex-start; }
  .badge.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; }
}
