/* American Heart Repair LLC: muted natural welding palette (mill-scale steel grey, muted spark orange, rust,
   slag charcoal, primer cream); alternating light and dark full-width sections; editorial columns with a
   narrow side column; serif type throughout; pill-button nav; category index column with job rows; 4px
   corners; weld-bead ripple motif */
@font-face {
  font-family: "Holler Serif";
  src: url("fonts/holler-serif-400.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Holler Serif";
  src: url("fonts/holler-serif-400i.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Holler Serif";
  src: url("fonts/holler-serif-700.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --slag: #1f2225;
  --steel: #2a2e31;
  --grey: #7d878d;
  --spark: #d9843f;
  --rust: #9a5a3e;
  --primer: #f3efe8;
  --ink: #1f2225;
  --muted: #5d6468;
  --light-muted: #c3c8cb;
  --rule-l: #dcd5ca;
  --rule-d: #3b4145;
  --serif: "Holler Serif", Georgia, "Times New Roman", serif;
  --r: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--primer); color: var(--ink); font-family: var(--serif); font-size: 17.5px; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rust); text-underline-offset: 3px; }
a:hover { color: var(--spark); }
:focus-visible { outline: 3px solid var(--spark); outline-offset: 3px; border-radius: var(--r); }
h1, h2, h3 { font-weight: 700; line-height: 1.12; margin: 0 0 .45em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.7rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); }
h3 { font-size: 1.04rem; margin-bottom: 2px; }
p { margin: 0 0 1em; }
.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-link { position: absolute; left: -999px; top: 8px; background: var(--spark); color: var(--slag); padding: 8px 14px; z-index: 10; }
.skip-link:focus { left: 8px; }
.wrap { width: min(100% - 40px, 1140px); margin-inline: auto; }

/* header with pill nav */
.site-header { background: var(--slag); }
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 12px 26px; padding: 14px 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--primer); text-decoration: none; }
.brand img { width: 64px; border-radius: var(--r); }
.brand-name { font-weight: 700; font-size: 1.35rem; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.main-nav a { display: inline-block; padding: 6px 16px; border-radius: 999px; color: var(--light-muted); text-decoration: none; box-shadow: inset 0 0 0 1px var(--rule-d); }
.main-nav a:hover { color: var(--primer); box-shadow: inset 0 0 0 1px var(--grey); }
.main-nav a[aria-current="page"] { background: var(--spark); color: var(--slag); box-shadow: none; font-weight: 700; }

/* alternating light / dark sections */
.sec { padding: 52px 0; }
.sec.dark { background: var(--steel); color: var(--primer); }
.sec.dark a:not(.btn) { color: #f0b27a; }
.sec.light { background: var(--primer); }
.sec.dark + .sec.light, .sec.light + .sec.dark { box-shadow: inset 0 6px 0 -3px rgba(0, 0, 0, .0); }
.kicker { font-style: italic; font-size: 1.05rem; color: var(--spark); margin-bottom: .5em; }
.lede { font-size: 1.2rem; max-width: 36em; }
.dark .lede, .dark .big { color: #dfe2e3; }
.big { font-size: 1.25rem; }
.dark strong { color: #f0b27a; }

/* editorial columns with a narrow side column */
.ed { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 0 48px; align-items: start; }
.ed-side { border-left: 1px solid var(--rule-l); padding-left: 26px; }
.dark .ed-side { border-left-color: var(--rule-d); }
.side-title { font-style: italic; font-size: 1.1rem; color: var(--spark); margin-bottom: .6em; }
.note { font-style: italic; color: var(--muted); }
.dark .note { color: var(--light-muted); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn-col { display: grid; gap: 10px; justify-items: start; }
.btn { display: inline-block; padding: 10px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.btn.spark { background: var(--spark); color: var(--slag); }
.btn.spark:hover { background: #eaa064; color: var(--slag); }
.btn.line { color: var(--primer); box-shadow: inset 0 0 0 1.5px var(--primer); }
.btn.line:hover { background: var(--slag); color: var(--primer); }
.btn.steel { background: var(--steel); color: var(--primer); }
.btn.steel:hover { background: var(--slag); color: var(--primer); }
.btn.outline { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.outline:hover { background: #e8e2d8; color: var(--ink); }
.hero-fig { margin: 0 0 30px; border-radius: var(--r); overflow: hidden; }
.hero-art { width: 100%; }
.cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cats a { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: var(--r); background: #fff; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.1rem; box-shadow: inset 0 0 0 1px var(--rule-l); }
.cats a:hover { box-shadow: inset 0 0 0 2px var(--spark); }
.cats img { width: 48px; flex: none; border-radius: var(--r); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { padding-left: 24px; position: relative; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 12px; border-radius: 50%; background: var(--spark); box-shadow: 0 0 0 3px rgba(217, 132, 63, .25); }
.ticks strong { color: var(--ink); }
.dark .ticks li { color: var(--light-muted); }
.dark .ticks strong { color: var(--primer); }
.ticks.cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

/* services: category index column + job rows */
.index-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 0 48px; }
.cat-index { position: sticky; top: 16px; align-self: start; border-right: 1px solid var(--rule-l); padding-right: 22px; }
.cat-index ul { list-style: none; margin: 0; padding: 0; }
.cat-index li + li { border-top: 1px solid var(--rule-l); }
.cat-index a { display: flex; align-items: center; gap: 10px; padding: 9px 0; color: var(--ink); text-decoration: none; font-weight: 700; }
.cat-index a:hover { color: var(--rust); }
.cat-index img { width: 32px; border-radius: var(--r); }
.cat { scroll-margin-top: 16px; padding-bottom: 28px; }
.cat h2 { font-size: 1.35rem; letter-spacing: .06em; padding-bottom: 8px; margin-bottom: 0; background: url("assets/motif-bead.svg") repeat-x left bottom; background-size: 24px 8px; padding-bottom: 14px; }
.jobs { list-style: none; margin: 0; padding: 0; }
.job { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--rule-l); }
.job p { margin: 0; color: var(--muted); font-style: italic; font-size: .98rem; }
.rate { font-weight: 700; font-size: 1.2rem; color: var(--rust); white-space: nowrap; }
.rate.q { font-size: .92rem; font-style: italic; white-space: normal; max-width: 10em; text-align: right; line-height: 1.3; display: inline-block; }
.offers { list-style: none; margin: 0; padding: 0; }
.offers li { padding: 12px 0; border-bottom: 1px solid var(--rule-d); }
.offers p { margin: 0; color: var(--light-muted); }

/* about / contact */
.story .first { font-size: 1.4rem; line-height: 1.45; }
.two-col { columns: 2; column-gap: 32px; color: var(--muted); }
.two-col p { break-inside: avoid; }
.facts { margin: 0; }
.facts div { padding: 9px 0; border-top: 1px solid var(--rule-l); }
.facts div:first-child { border-top: 0; }
.facts dt { font-style: italic; color: var(--rust); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.facts.wide div { display: grid; grid-template-columns: 8em minmax(0, 1fr); gap: 12px; }
address { font-style: normal; }
.hours { width: 100%; border-collapse: collapse; }
.hours caption { text-align: left; font-style: italic; font-size: 1.1rem; color: var(--spark); margin-bottom: 8px; }
.hours th, .hours td { text-align: left; padding: 9px 2px; border-top: 1px solid var(--rule-l); vertical-align: top; }
.hours thead th { font-style: italic; font-weight: 400; color: var(--muted); border-top: 0; }
.hours .note { display: block; font-size: .92rem; }
.map-frame { width: 100%; height: 360px; border: 0; border-radius: var(--r); display: block; background: var(--slag); }
.map-link { margin: 14px 0 0; font-weight: 700; }

/* footer */
.site-footer { background: var(--slag); color: var(--light-muted); padding-bottom: 22px; }
.site-footer a { color: var(--primer); }
.bead-rule { height: 10px; background: url("assets/motif-bead.svg") repeat-x left center; background-size: 24px 8px; opacity: .8; }
.foot { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px 40px; padding-top: 30px; }
.footer-name { font-weight: 700; font-size: 1.35rem; color: var(--primer); margin-bottom: .3em; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-bottom { margin-top: 18px; font-size: .86rem; font-style: italic; }

@media (max-width: 920px) {
  .ed, .index-layout { grid-template-columns: 1fr; }
  .ed-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule-l); padding-top: 22px; margin-top: 26px; }
  .dark .ed-side { border-top-color: var(--rule-d); }
  .cat-index { position: static; border-right: 0; padding-right: 0; margin-bottom: 24px; }
  .ticks.cols { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16.5px; }
  .wrap { width: min(100% - 28px, 1140px); }
  .sec { padding: 40px 0; }
  .head-in { justify-content: center; }
  .brand img { width: 56px; }
  .brand-name { font-size: 1.2rem; }
  .main-nav ul { justify-content: center; gap: 4px; }
  .main-nav a { padding: 5px 11px; font-size: .9rem; }
  .cats { grid-template-columns: 1fr; }
  .two-col { columns: 1; }
  .facts.wide div { grid-template-columns: 1fr; gap: 0; }
  .foot { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
