/* American Heritage Moon LLC — shared styles
   Seed 1-6-5-7-5-7-2: muted natural thread-and-fabric colours (linen, denim, rust thread, sage) ·
   deep indigo base · editorial columns with a narrow side column · rounded soft sans (Seam Rounded) ·
   pill-button navigation · compact rows with price badges · 4px radius · motif: running stitch */

@font-face { font-family: "Seam Rounded"; src: url("fonts/seam-rounded-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Seam Rounded"; src: url("fonts/seam-rounded-600.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Seam Rounded"; src: url("fonts/seam-rounded-700.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --base: #1d2436;
  --deep: #161b29;
  --panel: #252d42;
  --panel-2: #2d3650;
  --line: #3a4360;
  --linen: #efe3cc;
  --text: #ece6da;
  --muted: #b9b3a7;
  --rust: #de8c62;
  --rust-soft: #f0b28f;
  --sage: #9fb3a0;
  --denim: #8fa3c6;
  --r: 4px;
  --sans: "Seam Rounded", "Nunito", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --stitch: url("assets/motif-stitch.svg") 0 50% / 24px 8px repeat-x;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 1.075rem; line-height: 1.7; color: var(--text); background: var(--base); overflow-wrap: break-word; }
img { max-width: 100%; height: auto; }
strong { font-weight: 600; color: var(--linen); }
h1, h2, h3 { font-weight: 700; line-height: 1.15; margin: 0 0 0.5em; color: var(--linen); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 4.8vw, 3.4rem); }
h2 { font-size: clamp(1.45rem, 2.7vw, 1.95rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
a { color: var(--rust-soft); text-underline-offset: 0.2em; }
a:hover { color: var(--linen); }
:focus-visible { outline: 3px solid var(--rust); outline-offset: 3px; border-radius: var(--r); }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding-inline: clamp(1.1rem, 4vw, 2.25rem); }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 10; padding: 0.45rem 1rem; border-radius: var(--r); background: var(--rust); color: var(--deep); font-weight: 700; }
.skip-link:focus { top: 1rem; }
.stitch { height: 8px; margin: 0; border: 0; background: var(--stitch); opacity: 0.9; }

/* ---------- header with pill-button navigation ---------- */
.site-header { background: var(--deep); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem 1.5rem; padding-block: 1rem; }
.brand { display: flex; align-items: center; gap: 0.85rem; color: var(--linen); text-decoration: none; }
.brand img { width: 68px; height: auto; flex: none; border-radius: var(--r); }
.brand-name { font-weight: 700; font-size: clamp(1.25rem, 2.5vw, 1.6rem); line-height: 1.1; }
.brand:hover .brand-name { color: var(--rust-soft); }
.main-nav ul { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: inline-block; padding: 0.42rem 1.05rem; border: 2px solid var(--line); border-radius: 999px; color: var(--text); font-weight: 600; line-height: 1.2; text-decoration: none; }
.main-nav a:hover { border-color: var(--rust); color: var(--linen); }
.main-nav a[aria-current="page"] { background: var(--rust); border-color: var(--rust); color: var(--deep); }

/* ---------- editorial layout: main column + narrow side column ---------- */
.page { padding-block: clamp(2rem, 5vw, 3.25rem); }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(1.75rem, 4vw, 3.25rem); align-items: start; }
.side { display: grid; gap: 1rem; }
.side.sticky { position: sticky; top: 1rem; }
.note { position: relative; padding: 1.4rem 1.2rem 1.05rem; background: var(--panel); border-radius: var(--r); }
.note::before { content: ""; position: absolute; left: 1.2rem; right: 1.2rem; top: 0.55rem; height: 8px; background: var(--stitch); }
.note-title { margin: 0 0 0.45rem; font-weight: 700; font-size: 1.18rem; color: var(--linen); }
.note p:last-child { margin-bottom: 0; }
.note .big-phone { display: block; margin: 0.1rem 0 0.4rem; color: var(--rust); font-weight: 700; font-size: 1.55rem; line-height: 1.15; text-decoration: none; }
.note .big-phone:hover { color: var(--linen); }
.tag { display: inline-block; margin: 0 0 1rem; padding: 0.3rem 0.8rem; border-radius: var(--r); background: var(--panel-2); color: var(--muted); font-size: 0.9rem; line-height: 1.45; }
.lede { font-size: clamp(1.12rem, 1.9vw, 1.3rem); color: var(--muted); max-width: 46ch; }
.kicker { margin: 0 0 0.35rem; color: var(--sage); font-weight: 700; font-size: 0.86rem; letter-spacing: 0.12em; text-transform: uppercase; }
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 1.5rem; align-items: center; }
.hero-art { display: block; width: 100%; }
.block { margin-top: clamp(2.4rem, 5vw, 3.2rem); }
h1 + .block { margin-top: 1.2rem; }
.hero h1 { font-size: clamp(2.1rem, 3.8vw, 2.9rem); }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.7rem 1.3rem; border: 2px solid var(--rust); border-radius: var(--r); background: var(--rust); color: var(--deep); font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; max-width: 100%; overflow-wrap: anywhere; }
.btn:hover { background: var(--rust-soft); border-color: var(--rust-soft); color: var(--deep); }
.btn-ghost { background: transparent; color: var(--linen); border-color: var(--line); }
.btn-ghost:hover { background: var(--panel); color: var(--linen); border-color: var(--rust); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* ---------- home ---------- */
.cat-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.cat-list a { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 0.1rem 0.9rem; align-items: center; height: 100%; padding: 0.85rem 1rem; border-radius: var(--r); background: var(--panel); color: var(--text); text-decoration: none; }
.cat-list a:hover { background: var(--panel-2); }
.cat-list img { grid-row: span 2; width: 52px; height: 52px; }
.cat-list .c-name { font-weight: 700; color: var(--linen); letter-spacing: 0.03em; }
.cat-list .c-count { color: var(--muted); font-size: 0.95rem; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: 0 0 1rem 2rem; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 1.1rem; height: 3px; border-radius: 2px; background: var(--rust); box-shadow: 0 -6px 0 var(--sage); }

/* ---------- compact rows with price badges ---------- */
.group { scroll-margin-top: 1rem; }
.group + .group { margin-top: clamp(2.25rem, 5vw, 2.9rem); }
.group-head { display: flex; align-items: center; gap: 0.85rem; padding-bottom: 0.6rem; margin-bottom: 0.4rem; border-bottom: 2px solid var(--line); }
.group-head img { width: 52px; height: 52px; flex: none; }
.group-head h2 { margin: 0; font-size: clamp(1.3rem, 2.4vw, 1.65rem); letter-spacing: 0.03em; }
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.2rem 1.25rem; align-items: start; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.row-name { margin: 0; font-size: 1.06rem; font-weight: 700; color: var(--linen); }
.row-desc { grid-column: 1; margin: 0; color: var(--muted); font-size: 0.98rem; }
.badge { grid-column: 2; grid-row: 1 / span 2; align-self: center; padding: 0.3rem 0.7rem; border-radius: var(--r); background: var(--rust); color: var(--deep); font-weight: 700; font-size: 1rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.badge.quote { max-width: 12rem; white-space: normal; background: var(--panel-2); color: var(--linen); font-size: 0.92rem; line-height: 1.35; text-align: center; }
.badge .call { display: block; margin-top: 0.25rem; color: var(--rust-soft); font-weight: 600; white-space: nowrap; }
.jump { list-style: none; margin: 0; padding: 0; }
.jump li + li { border-top: 1px solid var(--line); }
.jump a { display: flex; align-items: center; gap: 0.6rem; padding: 0.45rem 0; color: var(--text); font-weight: 600; text-decoration: none; line-height: 1.25; }
.jump a:hover { color: var(--rust-soft); }
.jump img { width: 30px; height: 30px; flex: none; }
.offers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9rem; }
.offers li { padding: 1rem 1.1rem; border-radius: var(--r); background: var(--panel); border-left: 4px solid var(--sage); }
.offers h3 { margin-bottom: 0.25rem; color: var(--rust-soft); }
.offers p { margin: 0; color: var(--muted); }

/* ---------- about / contact ---------- */
.story p { color: var(--muted); }
.story .first { color: var(--text); font-size: 1.2rem; }
.story .kicker { color: var(--sage); }
.facts { margin: 0; }
.facts div { padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts dt { color: var(--sage); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; }
.facts dd { margin: 0; font-weight: 600; color: var(--linen); }
.details { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; }
.details div { padding: 0.9rem 1rem; border-radius: var(--r); background: var(--panel); }
.details dt { color: var(--sage); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; }
.details dd { margin: 0; font-weight: 600; color: var(--linen); }
.details address { font-style: normal; }
.hours { width: 100%; border-collapse: collapse; }
.hours caption { caption-side: top; text-align: left; padding-bottom: 0.4rem; font-weight: 700; font-size: 1.18rem; color: var(--linen); }
.hours th, .hours td { padding: 0.38rem 0.1rem; text-align: left; border-bottom: 1px solid var(--line); font-size: 0.98rem; }
.hours tbody tr:last-child > * { border-bottom: 0; }
.hours thead th { color: var(--sage); font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; }
.hours tbody th { font-weight: 600; color: var(--linen); }
.hours td { white-space: nowrap; font-variant-numeric: tabular-nums; }
.hours .closed { color: var(--rust-soft); font-weight: 700; }
.map-frame { display: block; width: 100%; height: 380px; border: 0; border-radius: var(--r); background: var(--panel); }
.map-link { margin-top: 0.8rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--deep); color: var(--muted); font-size: 0.98rem; }
.site-footer a { color: var(--linen); }
.site-footer a:hover { color: var(--rust-soft); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 0.8fr; gap: 2rem; padding-block: 2.2rem 1.4rem; }
.footer-name { margin: 0 0 0.35rem; color: var(--linen); font-weight: 700; font-size: 1.3rem; }
.site-footer address { font-style: normal; }
.footer-title { margin: 0 0 0.45rem; color: var(--sage); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-bottom { margin: 0; padding-block: 1rem 1.5rem; border-top: 1px solid var(--line); font-size: 0.88rem; }

@media (max-width: 980px) {
  .cols { grid-template-columns: 1fr; }
  .side.sticky { position: static; }
  .jump-note { display: none; }
  .hero { grid-template-columns: 1fr; }
  .offers { grid-template-columns: 1fr; }
  .details { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  body { font-size: 1.03rem; }
  .brand img { width: 56px; }
  .main-nav a { padding: 0.35rem 0.85rem; }
  .cat-list { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }
  .badge { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 0.35rem; }
  .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; }
}
