/* ShopDawg site kit stylesheet. The build puts the shop's :root tokens (src/theme.json) in front of this file and the
   shop's own src/site.css, if any, after it. Every color, font and radius here comes from those tokens, so a shop
   restyles by its theme file, not by editing this one. Plain CSS, no framework (SHOP-QUAL.5). */

/* ------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; --gutter: clamp(16px, 4vw, 32px); --safe-top: env(safe-area-inset-top, 0px); --header-h: 68px; }
html:not(.js), html.ready { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text-2); font: 400 1.0625rem/1.65 var(--font); text-rendering: optimizeLegibility; }
body.locked { position: fixed; left: 0; right: 0; width: 100%; overflow: hidden; } /* top is set inline to the saved scroll */
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: var(--accent-hi); }
h1, h2, h3, .h2, .h3 { margin: 0 0 .5em; color: var(--text); font-family: var(--display); font-weight: var(--display-weight); text-transform: var(--display-case); line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2, .h2 { font-size: clamp(1.65rem, 3.2vw, 2.35rem); }
h3, .h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { padding: 0; margin: 0; list-style: none; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; list-style: disc; }
.prose ol { list-style: decimal; }
b, strong { color: var(--text); font-weight: 650; }
small { font-size: .85em; }
.muted { color: var(--muted); }
.lead { font-size: 1.16rem; color: var(--text-2); }
.center { text-align: center; justify-content: center; }
.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: -60px; z-index: 300; padding: 10px 16px; border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.skip:focus { top: calc(10px + var(--safe-top)); }
html:not(.js) .js-only { display: none !important; }
:focus-visible { outline: 3px solid var(--accent-hi); outline-offset: 2px; }
.wrap { width: min(1200px, 100%); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { width: min(820px, 100%); }
.ico svg, .trust-ico svg, .step-ico svg, .area-ico svg { width: 22px; height: 22px; }

/* ------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 2px solid transparent; border-radius: var(--radius); font: 600 1rem/1.1 var(--font); text-decoration: none; text-align: center; cursor: pointer; transition: background-color var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast), transform var(--dur-fast); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hi); color: var(--accent-ink); }
.btn-ghost { border-color: var(--line); background: var(--surface); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-on-media { border-color: rgba(255, 255, 255, .7); background: transparent; color: var(--hero-ink); }
.btn-on-media:hover { border-color: var(--hero-ink); background: rgba(255, 255, 255, .12); color: var(--hero-ink); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.section-head .btn-row { margin-top: 0; }

/* ------------------------------------------------------------ header and drawer */
.site-header { position: sticky; top: 0; z-index: 80; background: var(--surface); border-bottom: 1px solid var(--line); padding-top: var(--safe-top); }
.header-in { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand-logo { width: auto; height: 44px; max-width: 160px; object-fit: contain; }
.brand-name { font: var(--display-weight) 1.15rem/1.1 var(--display); text-transform: var(--display-case); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 4px; }
.nav a { display: block; padding: 8px 12px; border-radius: var(--radius); color: var(--text-2); font-weight: 550; text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); background: var(--bg-2); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.phone-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-weight: 650; text-decoration: none; white-space: nowrap; }
.phone-link svg { width: 18px; height: 18px; color: var(--accent); }
.menu-btn { display: none; width: 44px; height: 44px; padding: 11px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; flex-direction: column; justify-content: space-between; }
.menu-btn span { display: block; height: 2px; border-radius: 2px; background: var(--text); transition: transform var(--dur) var(--ease), opacity var(--dur); }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.drawer { display: none; }
@media (max-width: 960px) {
  .nav, .phone-link span { display: none; }
  .header-actions { margin-left: auto; }
  .menu-btn { display: flex; }
  .js .drawer { position: fixed; z-index: 70; top: calc(var(--header-h) + var(--safe-top)); left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 2px; padding: 16px var(--gutter) calc(24px + env(safe-area-inset-bottom)); background: var(--surface); overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-10px); transition: opacity var(--dur) ease, transform var(--dur-slow) var(--ease), visibility 0s linear var(--dur-slow); }
  .js .drawer.open { visibility: visible; opacity: 1; transform: none; transition: opacity var(--dur) ease, transform var(--dur-slow) var(--ease), visibility 0s; }
  .drawer > a { padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--text); font-size: 1.1rem; font-weight: 600; text-decoration: none; }
  .drawer > a[aria-current="page"] { color: var(--accent); }
  .drawer-cta { display: grid; gap: 10px; margin-top: 20px; }
  /* Without JavaScript the burger has nothing to open, so the drawer's links sit under the header instead. */
  html:not(.js) .menu-btn { display: none; }
  html:not(.js) .drawer { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 10px var(--gutter); border-bottom: 1px solid var(--line); background: var(--surface); }
  html:not(.js) .drawer > a { padding: 6px 0; border: 0; font-size: 1rem; }
  html:not(.js) .drawer-cta { display: none; }
}
@media (max-width: 520px) { .bar-quote { display: none; } .brand-logo { height: 38px; } }

/* ------------------------------------------------------------ hero and page hero */
.hero, .page-hero { position: relative; overflow: hidden; background: var(--bg-2); }
.hero { padding: clamp(64px, 10vw, 128px) 0 clamp(56px, 8vw, 104px); }
.page-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(36px, 5vw, 60px); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: var(--hero-shade); }
.hero > .wrap, .page-hero > .wrap { position: relative; }
.hero-copy { max-width: 760px; margin-left: max(0px, calc((100% - 1200px) / 2)); }
.has-media, .has-media h1, .has-media .lead, .has-media .crumbs a, .has-media .crumbs li { color: var(--hero-ink); }
.has-media .eyebrow { color: var(--hero-ink); opacity: .9; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; font-weight: 550; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; color: var(--accent-hi); }
.has-media .hero-points { color: var(--hero-ink); }
.eyebrow { display: inline-block; margin-bottom: 10px; color: var(--accent); font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; color: var(--muted); font-size: .9rem; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { color: inherit; }

/* ------------------------------------------------------------ trust strip */
.trust { border-bottom: 1px solid var(--line); background: var(--surface); }
.trust-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px 28px; padding-top: 22px; padding-bottom: 22px; }
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-item b { display: block; line-height: 1.3; }
.trust-item small { display: block; color: var(--muted); line-height: 1.35; }
.trust-ico { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--bg-2); color: var(--accent); }

/* ------------------------------------------------------------ sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--bg-2); }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.split-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; max-width: none; }
.split-head h2 { margin-bottom: 0; }
.section-foot { margin-top: 36px; text-align: center; }
.section-foot-left { margin-top: 28px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.logo-row { display: flex; flex-wrap: wrap; gap: 28px 40px; margin-top: 28px; list-style: none; padding: 0; }
.logo-row a, .logo-row div { display: grid; justify-items: center; gap: 10px; width: 140px; color: var(--text-2); font-weight: 600; font-size: .95rem; line-height: 1.3; text-align: center; text-decoration: none; }
.logo-row a:hover { color: var(--accent); }
.logo-row img { width: 120px; height: 120px; object-fit: contain; }
@media (max-width: 520px) { .logo-row { gap: 20px 12px; } .logo-row a, .logo-row div { width: 100px; font-size: .88rem; } .logo-row img { width: 88px; height: 88px; } }
.split-media img { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; }
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(28px, 5vw, 56px); align-items: start; }
@media (max-width: 980px) { .content-grid { grid-template-columns: 1fr; } }
.content-grid > :only-child { grid-column: 1 / -1; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }

/* ------------------------------------------------------------ cards, steps, checks */
.card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.card-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card-body { display: flex; flex-direction: column; flex: 1; gap: 6px; padding: 22px; }
.card-body h2, .card-body h3 { margin-bottom: 4px; font-size: 1.25rem; }
.card-kicker { color: var(--accent); font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 10px; font-weight: 600; text-decoration: none; }
.card-link svg { width: 16px; height: 16px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 26px 22px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); counter-increment: step; }
.step::after { content: counter(step); position: absolute; top: 18px; right: 20px; color: var(--line); font: 700 2rem/1 var(--display); }
.step-ico { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 14px; border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); }
.step h3 { font-size: 1.15rem; }
.checks { display: grid; gap: 10px; margin: 18px 0; }
.checks-2 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px 24px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* ------------------------------------------------------------ service areas */
.areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.area-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text-2); text-decoration: none; transition: border-color var(--dur-fast); }
.area-card:hover { border-color: var(--accent); color: var(--text-2); }
.area-card b { display: block; }
.area-card small { display: block; color: var(--muted); line-height: 1.4; }
.area-ico { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--bg-2); color: var(--accent); }
.area-arrow { width: 18px; height: 18px; margin-left: auto; flex: none; color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chips li { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: .92rem; }

/* ------------------------------------------------------------ reviews */
.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.review { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.stars { display: flex; gap: 2px; color: #e2a400; }
.stars svg { width: 18px; height: 18px; fill: currentColor; }
.review blockquote { margin: 0; flex: 1; }
.review figcaption b { display: block; }
.review figcaption small { color: var(--muted); }

/* ------------------------------------------------------------ FAQ */
.faq { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; color: var(--text); font-weight: 600; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { width: 20px; height: 20px; flex: none; color: var(--accent); transition: transform var(--dur) var(--ease); }
.faq-item[open] summary svg { transform: rotate(45deg); }
.faq-a { padding: 0 20px 18px; }

/* ------------------------------------------------------------ aside, panels, CTA band */
.aside { display: grid; gap: 20px; position: sticky; top: calc(var(--header-h) + 20px); }
.aside-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.aside-card img { width: 100%; margin-bottom: 16px; border-radius: calc(var(--radius) - 4px); }
.aside-card.accent { border-color: transparent; background: var(--accent); color: var(--accent-ink); }
.aside-card.accent h2, .aside-card.accent .eyebrow, .aside-card.accent a:not(.btn), .aside-card.accent b { color: var(--accent-ink); }
.aside-card.accent .btn { width: 100%; margin-top: 12px; }
.aside-card.accent .btn-primary { background: var(--accent-ink); color: var(--accent); }
.aside-card.accent .btn-primary:hover { opacity: .92; }
.aside-card.accent .btn-ghost { border-color: rgba(255, 255, 255, .55); background: transparent; color: var(--accent-ink); }
@media (max-width: 980px) { .aside { position: static; } }
.panel { padding: clamp(22px, 4vw, 36px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.panel-accent { border-top: 4px solid var(--accent); }
.cta-band { padding: clamp(48px, 7vw, 80px) 0; background: var(--accent); color: var(--accent-ink); text-align: center; }
.cta-in { max-width: 760px; }
.cta-band h2, .cta-band .eyebrow, .cta-band a:not(.btn) { color: var(--accent-ink); }
.cta-band .btn-row { justify-content: center; }
.cta-band .btn-primary { background: var(--accent-ink); color: var(--accent); }
.cta-band .btn-primary:hover { opacity: .92; }
.cta-band .btn-ghost { border-color: rgba(255, 255, 255, .55); background: transparent; color: var(--accent-ink); }

/* ------------------------------------------------------------ gallery */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.filter { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text-2); font: 600 .95rem/1 var(--font); cursor: pointer; }
.filter[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.count { opacity: .7; font-weight: 500; }
.filter-status { margin-bottom: 18px; color: var(--muted); font-size: .92rem; }
.gallery, .mosaic { display: grid; gap: 12px; }
.gallery { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.mosaic { grid-template-columns: repeat(4, 1fr); }
.mosaic a:first-child { grid-column: span 2; grid-row: span 2; }
@media (max-width: 860px) { .mosaic { grid-template-columns: repeat(2, 1fr); } }
.gallery a, .mosaic a { display: block; overflow: hidden; border-radius: var(--radius); background: var(--bg-2); }
.gallery a.hide { display: none; }
.gallery img, .mosaic img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s; }
.gallery a:hover img, .mosaic a:hover img { transform: scale(1.03); }
/* The photo viewer's shade is solid (Adam's Motors polish fix 1: at 94% the site header showed through above the
   photo). Opening and closing zoom the photo from and back into its thumbnail with a same-page view transition
   (site.js); while it runs, the header and the action bar drop their page-fade names (.lb-vt), or they would be
   drawn over the viewer. */
.lb { position: fixed; inset: 0; z-index: 220; display: none; align-items: center; justify-content: center; background: #0c0d0f; }
.lb-vt .site-header, .lb-vt .action-bar { view-transition-name: none !important; }
.lb-vt .lb.open { animation: none; }
::view-transition-group(lb-photo) { animation-duration: 380ms; animation-timing-function: cubic-bezier(.25, .8, .25, 1); }
::view-transition-old(lb-photo), ::view-transition-new(lb-photo) { height: 100%; object-fit: cover; }
.lb.open.lb-out { animation: lb-out var(--dur) ease both; }
@keyframes lb-out { to { opacity: 0; } }
.lb.open { display: flex; animation: fade var(--dur) ease; }
.lb img { max-width: min(92vw, 1400px); max-height: 84vh; width: auto; height: auto; object-fit: contain; border-radius: 4px; transition: opacity var(--dur); }
.lb.loading::after { content: ""; position: absolute; top: 50%; left: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 2px solid rgba(255, 255, 255, .25); border-top-color: #fff; border-radius: 50%; pointer-events: none; opacity: 0; animation: spin .8s linear infinite, lb-wait 0s .25s forwards; }
/* The spinner waits 250ms (kit 0.1.12), so a photo the browser already has opens without a flash of it. */
@keyframes lb-wait { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .lb.loading::after { opacity: 1; } }
.lb button { position: absolute; display: grid; place-items: center; width: 50px; height: 50px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; }
.lb button:hover { background: rgba(255, 255, 255, .26); }
.lb button svg { width: 22px; height: 22px; }
.lb-close { top: calc(16px + var(--safe-top)); right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-cap { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); max-width: 80vw; color: rgba(255, 255, 255, .85); font-size: .9rem; text-align: center; }
@media (max-width: 640px) { .lb-prev, .lb-next { top: auto; bottom: 12px; transform: none; } .lb-cap { bottom: 74px; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; } }

/* ------------------------------------------------------------ forms */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.field { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field-full { grid-column: 1 / -1; }
.field label, .field legend { color: var(--text); font-size: .95rem; font-weight: 600; }
.field label span, .req { color: var(--danger); }
.field input, .field textarea, .field select { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); border-radius: calc(var(--radius) - 2px); background: var(--bg); color: var(--text); font: inherit; font-size: 1rem; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-err { margin-left: 8px; color: var(--danger); font-weight: 600; }
.project { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; padding: 18px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--bg-2); }
.project-head { grid-column: 1 / -1; margin: 0; }
.project .field-full { grid-column: 1 / -1; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text-2); font-size: .95rem; font-weight: 500; }
.opt input:checked + span { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.opt input:focus-visible + span { outline: 3px solid var(--accent-hi); outline-offset: 2px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { grid-column: 1 / -1; display: flex; gap: 12px; justify-content: flex-end; }
@media (max-width: 640px) { .form, .project { grid-template-columns: 1fr; } .form-foot .btn { width: 100%; } }

/* ------------------------------------------------------------ contact page and thanks */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-line { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--text-2); text-decoration: none; }
.contact-line small { display: block; color: var(--muted); }
.contact-line b { display: block; }
.contact-line .ico { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--bg-2); color: var(--accent); }
.map { margin-top: 20px; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); }
.map iframe { display: block; width: 100%; height: 300px; border: 0; }
.map-note { margin-top: 14px; font-size: .95rem; }
/* Once the dialog can open (html.cm-ok, set in the contact page's head), the panel offers it with a button and the
   page's own form steps aside; site.js marks html.cm-ready, and without it the form comes back at load. */
.page-cta { display: none; }
.cm-ok .page-cta { display: block; }
.cm-ok .page-form { display: none; }
.page-cta-note { margin-top: 16px; font-size: .92rem; }
.thanks .panel { margin-top: 8px; }
.thanks-next { margin-top: 32px; }
.link-list { display: grid; gap: 8px; }
.link-list a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.link-list svg { width: 16px; height: 16px; }
.not-found { padding: clamp(72px, 12vw, 140px) 0; text-align: center; }
.not-found .code { color: var(--accent); font: var(--display-weight) clamp(4rem, 14vw, 8rem)/1 var(--display); }

/* ------------------------------------------------------------ footer and action bar */
.site-footer { padding: 56px 0 24px; background: var(--bg-2); border-top: 1px solid var(--line); font-size: .97rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 32px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { margin-top: 14px; max-width: 380px; }
.footer-follow { display: grid; width: fit-content; max-width: 100%; justify-items: center; }
.footer-follow .social { justify-self: start; }
.footer-badge { max-width: 100%; margin-top: 24px; }
.footer-badge a { display: block; }
.footer-badge img { display: block; width: var(--badge-w, 160px); max-width: 100%; height: auto; }
/* "row": as wide as the social links. Width 0 keeps the image from widening the row; min-width fills it. */
.footer-badge-row { justify-self: stretch; width: 0; min-width: 100%; margin-top: 20px; }
.footer-badge-row img { width: 100%; }
.footer-h { margin-bottom: 12px; font-size: 1rem; letter-spacing: .04em; }
.site-footer ul { display: grid; gap: 8px; }
.site-footer a:not(.btn) { color: var(--text-2); text-decoration: none; }
.site-footer a:not(.btn):hover { color: var(--accent); }
.social { display: flex !important; flex-wrap: wrap; gap: 8px 16px !important; margin-top: 16px; }
.social a { display: inline-flex; align-items: center; gap: 6px; }
.social svg { width: 18px; height: 18px; }
.social .brand-ico { width: 22px; height: 22px; flex: none; }
.footer-phone { display: block; margin-bottom: 6px; color: var(--text) !important; font-size: 1.2rem; font-weight: 700; }
.site-footer .btn { margin: 12px 0; }
.footer-links { margin-top: 6px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.footer-bottom span { margin-right: auto; }
.powered-by { margin: 0; padding: 14px 0 22px; text-align: center; color: var(--muted); font-size: .82rem; letter-spacing: .02em; }
.powered-by a { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.powered-by a:hover { color: var(--text); }
/* SHOP-CREDIT.3: the partner mark. The shop sets --mark-book and --mark-dawg (solid colors) in src/site.css. */
.powered-by .bookdawg-mark { display: inline-flex; align-items: center; margin-left: .3em; vertical-align: middle; text-decoration: none; font-weight: 800; font-size: .95rem; line-height: 1; letter-spacing: -.02em; }
.powered-by .bookdawg-mark img { display: block; width: auto; height: 22px; margin-right: .3em; }
.powered-by .bm-book { color: var(--mark-book, var(--text)); }
.powered-by .bm-dawg { color: var(--mark-dawg, var(--accent)); }
.powered-by .bookdawg-mark:hover { opacity: .85; }
.action-bar { display: none; }
@media (max-width: 760px) {
  .action-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(0, 0, 0, .12); }
  .action-bar .btn { min-height: 46px; padding: 0 12px; }
  .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

/* ------------------------------------------------------------ contact dialog: card on desktop, sheet on phones
   Closed, a <dialog> is display:none. Only .cm-body scrolls, so the title and the X stay put. data-step (site.js)
   picks the panel and buttons: step 1 is the visitor's details, step 2 the message, the shop's questions and Send. */
.cm { position: fixed; inset: 0; z-index: 210; width: min(660px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 0; border-radius: calc(var(--radius) + 4px); background: var(--surface); color: var(--text-2); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); overflow: hidden; }
.cm[open] { display: flex; flex-direction: column; animation: cm-in var(--dur) var(--ease); }
.cm::backdrop { background: rgba(8, 10, 12, .7); }
/* The shade fades in with the sheet (kit 0.1.12); before, it snapped on while the sheet rose. */
.cm[open]::backdrop { animation: fade var(--dur) ease; }
.cm-in { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.cm-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 24px; border-bottom: 1px solid var(--line); }
.cm-title { margin: 0; }
.cm-title:focus, .cm-count:focus { outline: none; }
.cm-close { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--bg-2); color: var(--text); cursor: pointer; }
.cm-close svg { width: 20px; height: 20px; }
.cm-body { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; padding: 18px 24px 24px; overflow-y: auto; overscroll-behavior: contain; }
.cm-intro { margin-bottom: 14px; }
.cm .form { flex: 1 1 auto; margin-top: 0; align-content: start; }
.cm-step { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cm-count { grid-column: 1 / -1; margin: 0; color: var(--accent); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.cm-about { grid-column: 1 / -1; margin: 0; padding: 10px 12px; border-left: 3px solid var(--accent); background: var(--bg2); font-size: .9rem; }
.cm-count b { display: block; margin-top: 6px; font: var(--display-weight) 1.3rem/1.2 var(--display); letter-spacing: 0; text-transform: var(--display-case); }
.cm .field textarea { min-height: 96px; }
.cm-back, .cm-next { display: none; }
.cm[data-step="1"] .cm-step-2, .cm[data-step="1"] .cm-send { display: none; }
.cm[data-step="1"] .cm-next { display: inline-flex; }
.cm[data-step="2"] .cm-step-1, .cm[data-step="2"] .cm-intro { display: none; }
.cm[data-step="2"] .cm-back { display: inline-flex; }
.cm[data-dir="next"] .cm-step { animation: step-next var(--dur) ease-out; }
.cm[data-dir="back"] .cm-step { animation: step-back var(--dur) ease-out; }
.cm-foot { align-self: end; }
@keyframes cm-in { from { opacity: 0; transform: translateY(14px); } }
/* Closing (kit 0.1.16): site.js adds .closing, waits for this animation, then closes the dialog, so the card and the
   shade leave the way they came instead of vanishing in one frame. forwards holds the last frame until close().
   The way out starts where the dialog and the shade are at that moment (site.js copies them into --cm-t0, --cm-o0
   and --cm-b0), so a close during the way in turns around instead of snapping open first (Anchor review of #81). */
.cm.closing { animation: cm-out var(--dur) var(--ease) forwards; }
.cm.closing::backdrop { animation: fade-out var(--dur) ease forwards; }
@keyframes cm-out { from { opacity: var(--cm-o0, 1); transform: var(--cm-t0, none); } to { opacity: 0; transform: translateY(8px); } }
@keyframes fade-out { from { opacity: var(--cm-b0, 1); } to { opacity: 0; } }
/* The button that opened the dialog says "got it" on the tap (site.js .cm-from, kit 0.1.16), before the sheet covers
   it. The `scale` property, not `transform`: it adds to a shop's own button transform (Adam's Motors' skewX) instead
   of replacing it, and .btn's transition (on transform) does not ease it, so it is there in the first frame (Anchor
   review of #81 and Shop-AdamsMotors#43). The browser's grey tap box would be a second flash. */
.btn, .cm-ready a[href*="contact"] { -webkit-tap-highlight-color: transparent; }
.btn.cm-from { scale: .97; filter: brightness(.9); }
a.cm-from:not(.btn) { color: var(--accent); }
@keyframes step-next { from { opacity: 0; transform: translateX(16px); } }
@keyframes step-back { from { opacity: 0; transform: translateX(-16px); } }
@media (max-width: 640px) {
  .cm { width: 100%; height: 100dvh; max-height: none; margin: 0; border-radius: 0; }
  .cm-head { padding: calc(10px + var(--safe-top)) 10px 10px var(--gutter); }
  .cm-body { padding: 18px var(--gutter) 0; }
  .cm-step { grid-template-columns: 1fr; gap: 18px; }
  .cm-foot { position: sticky; bottom: 0; z-index: 2; display: grid; grid-template-columns: auto 1fr; margin: 6px calc(-1 * var(--gutter)) 0; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
  .cm[data-step="1"] .cm-foot { grid-template-columns: 1fr; }
  /* Phones (kit 0.1.16): the full-screen sheet slides up from the bottom edge and back down, as an iPhone's own sheets
     do, while the shade fades. The card's fade and 14px rise read as a cut at full screen (motion-check, Fulmer
     Electric and Armor Flooring Idaho: about 150ms of the form ghosting over the page). A shop can change the two
     speeds with --cm-in and --cm-out on .cm in its own src/site.css. Only transform moves, so nothing shifts. */
  .cm { --cm-in: 360ms; --cm-out: 260ms; }
  .cm[open] { animation: cm-sheet-up var(--cm-in) cubic-bezier(.32, .72, 0, 1); }
  .cm[open]::backdrop { animation-duration: var(--cm-in); }
  .cm.closing { animation: cm-sheet-down var(--cm-out) cubic-bezier(.4, 0, .9, .4) forwards; }
  .cm.closing::backdrop { animation-duration: var(--cm-out); }
}
@keyframes cm-sheet-up { from { transform: translateY(100%); } }
@keyframes cm-sheet-down { from { transform: var(--cm-t0, none); } to { transform: translateY(100%); } }

/* ------------------------------------------------------------ reveal on scroll (site.js only hides what is below the fold) */
.js .reveal.pending { opacity: 0; transform: translateY(18px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s ease; }
:target .reveal, .reveal:target { opacity: 1 !important; transform: none !important; }
/* Phones stack every card in one column, so each one reveals on its own beside the thumb; the desktop's 500ms and
   18px read as content lagging behind the scroll there (Armor Flooring Idaho, motion-check). Kit 0.1.12. */
@media (max-width: 760px) {
  .js .reveal.pending { transform: translateY(8px); }
  .js .reveal.in { transition-duration: .3s; }
}

/* ------------------------------------------------------------ opt-in motion (data/shop.json motion, kit 0.1.12)
   Each block runs only under its class on <html>, which the build writes for a shop that names it. The reduced-motion
   rule at the end of this file switches the transitions and animations off; the build writes @view-transition only
   inside prefers-reduced-motion: no-preference. */

/* menuPress: the tapped link says "got it" while the next page loads. The menu stays up until the page swaps (site.js
   .leaving / .pressed); the accent text and bar land with no transition so they are in the crossfade's first frame.
   Only color, shadow and opacity change, so nothing in the menu moves (SHOP-QUAL.1). */
.m-menu-press .drawer > a:not(.btn) { position: relative; -webkit-tap-highlight-color: transparent; }
.m-menu-press .drawer > a:not(.btn):active, .m-menu-press .drawer > a.pressed { color: var(--accent); }
.m-menu-press .drawer > a.pressed { box-shadow: inset 3px 0 0 var(--accent); background: var(--bg-2); }
.m-menu-press .drawer.leaving > a, .m-menu-press .drawer.leaving .drawer-cta { transition: opacity var(--dur) ease; }
.m-menu-press .drawer.leaving > a:not(.pressed), .m-menu-press .drawer.leaving .drawer-cta { opacity: .45; }

/* faqSlide: answers slide open and closed (from Fulmer Electric). Progressive: a browser without ::details-content
   opens them at once, as before. interpolate-size sits on the item, so no other auto size starts animating. */
.m-faq-slide .faq-item { interpolate-size: allow-keywords; }
.m-faq-slide .faq-item::details-content { block-size: 0; overflow: clip; opacity: 0; transition: block-size var(--dur-slow) var(--ease), opacity var(--dur-slow) ease, content-visibility var(--dur-slow) allow-discrete; }
.m-faq-slide .faq-item[open]::details-content { block-size: auto; opacity: 1; }

/* pageFade: one short crossfade between pages, old and new at once, no slide (from Armor Flooring Idaho, where a
   rise on the new page left two headers showing). The header and the phones' action bar each keep one name, so they
   hold still instead of fading with the page. The snapshots ignore taps, so a tap during the fade hits the page. */
.m-page-fade .site-header { view-transition-name: site-header; }
.m-page-fade .action-bar { view-transition-name: action-bar; }
/* Not while the phone menu is up: a named bar is lifted above the page's snapshot, so it showed through the menu for
   the first frames of the fade (motion-check cast, Adam's Motors). The new page's bar then simply fades in. */
.m-page-fade body.menu-open .action-bar { view-transition-name: none; }
::view-transition, ::view-transition-group(*), ::view-transition-image-pair(*), ::view-transition-old(*), ::view-transition-new(*) { pointer-events: none; }
::view-transition-group(root), ::view-transition-group(site-header), ::view-transition-group(action-bar) { animation-duration: var(--dur); animation-timing-function: linear; }
::view-transition-old(root) { animation: vt-out var(--dur) linear both; }
::view-transition-new(root) { animation: vt-in var(--dur) linear both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

/* cardZoom (0.1.14, Adam's Motors): a tapped results card's photo glides into the car page's hero photo, one photo the
   whole way (site.js names the card's at pageswap, the build's head script the hero's at pagereveal). Measured on a
   phone before it was built: the plain crossfade put the card photo and the larger hero photo on screen at once, two
   cars at two sizes. The order: the old page clears in 110ms so no words show twice, the photo moves in 440ms (quick
   off the line, easing into its spot), the new page comes up behind it, then the car page's flag slides in and its
   words rise into place. Nothing waits on the network: it all runs once the new page can paint. The card photo stays
   on top until the move is 70% done, so a hero still decoding never shows as a blank or dark box. */
::view-transition-group(card-photo) { z-index: 2; animation-duration: 440ms; animation-timing-function: cubic-bezier(.25, .8, .25, 1); }
::view-transition-image-pair(card-photo) { isolation: auto; }
::view-transition-old(card-photo), ::view-transition-new(card-photo) { height: 100%; object-fit: cover; mix-blend-mode: normal; }
::view-transition-old(card-photo) { animation: vt-card-hold 440ms linear both; }
::view-transition-new(card-photo) { animation: none; }
.vt-card-in::view-transition-old(root) { animation: vt-out 110ms linear both; }
.vt-card-in::view-transition-new(root) { animation: vt-in 160ms linear 120ms both; }
.vt-card-in .car-media .sold-flag { animation: vt-card-flag 300ms var(--ease) 380ms both; }
.vt-card-in .car-hero .crumbs, .vt-card-in .car-copy > * { animation: vt-card-rise 300ms var(--ease) 220ms both; }
.vt-card-in .car-hero .crumbs { animation-delay: 200ms; }
.vt-card-in .car-copy > *:nth-child(2) { animation-delay: 260ms; }
.vt-card-in .car-copy > *:nth-child(3) { animation-delay: 300ms; }
.vt-card-in .car-copy > *:nth-child(n+4) { animation-delay: 340ms; }
@keyframes vt-card-hold { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }
@keyframes vt-card-flag { from { transform: translateX(-105%); } }
@keyframes vt-card-rise { from { opacity: 0; transform: translateY(10px); } }

/* ------------------------------------------------------------ prose (privacy, terms, service and city pages) */
.prose h2 { margin-top: 1.6em; font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose li { margin-bottom: .4em; }

/* ------------------------------------------------------------ results (kit 0.1.4): the numbers, sold cards, item pages, videos.
   The plain version; a shop's src/site.css dresses it (Shop-AdamsMotors: carbon, pinstripes, display type). */
.band-dark { background: var(--text); color: #fff; }
.band-wrap { position: relative; }
.band-stripe { display: none; }
.band { padding: clamp(36px, 5vw, 56px) 0; }
.board-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 18px; font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.board-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; background: var(--accent); color: var(--accent-ink); }
.board-chip i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.board-asof { margin-left: auto; font-variant-numeric: tabular-nums; }
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: 1px solid rgba(255, 255, 255, .2); border-bottom: 1px solid rgba(255, 255, 255, .2); }
.board-cell { position: relative; display: grid; gap: 4px; padding: 20px clamp(14px, 2.4vw, 28px); }
.board-cell + .board-cell { border-left: 1px solid rgba(255, 255, 255, .2); }
.board-pos, .board-sector { display: none; }
.board-cell dt { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.board-cell dd { margin: 0; font: var(--display-weight) clamp(2.2rem, 5vw, 3.8rem)/1 var(--display); font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.board-cell dd small { font-size: .5em; opacity: .75; }
.board-cell dd a { color: inherit; text-decoration: none; }
.board-cell dd a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.board-foot { margin: 14px 0 0; font-size: .9rem; opacity: .85; }
.board-foot a { color: inherit; }
@media (max-width: 760px) {
  .board { grid-template-columns: 1fr; }
  .board-cell { grid-template-columns: 1fr auto; align-items: center; }
  .board-cell + .board-cell { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .2); }
  .board-cell dd { text-align: right; }
}
.sold-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.sold-grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
@media (max-width: 899px) {
  /* On a phone the home page's results are a row to swipe, so six cars do not make a page of their own. */
  .sold-grid-home { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(82%, 340px); overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 14px; scrollbar-width: thin; }
  .sold-grid-home > * { scroll-snap-align: start; }
}
@media (min-width: 900px) {
  .sold-grid-home { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sold-grid-home .sold-card-big { grid-column: span 2; }
  .sold-grid-home .sold-card-big .sold-media { aspect-ratio: 16 / 9; }
}
.sold-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: inherit; text-decoration: none; }
.sold-card:hover { border-color: var(--text); color: inherit; }
.sold-card[hidden] { display: none; }
.sold-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-2); }
.sold-media img { width: 100%; height: 100%; object-fit: cover; }
.sold-flag { position: absolute; left: 0; top: 12px; padding: 5px 14px; background: var(--accent); color: var(--accent-ink); font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.sold-plate { display: grid; align-content: center; gap: 4px; height: 100%; padding: 0 22px; }
.sold-plate-year { font: var(--display-weight) 3.6rem/.9 var(--display); opacity: .6; }
.sold-plate-make { font: var(--display-weight) 1.6rem/1 var(--display); text-transform: uppercase; }
.sold-body { display: flex; flex-direction: column; flex: 1; gap: 6px; padding: 16px 18px 20px; }
.sold-title { margin: 0; font-size: 1.25rem; line-height: 1.1; }
.sold-meta { color: var(--muted); font-size: .9rem; }
.sold-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.sold-price span { display: block; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.sold-price b { font: var(--display-weight) 1.9rem/1 var(--display); font-variant-numeric: tabular-nums lining-nums; }
.sold-more { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: .85rem; font-weight: 700; white-space: nowrap; }
.sold-more svg { width: 16px; height: 16px; }
.results-bar { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; align-items: end; gap: 12px 18px; margin-bottom: 24px; }
.results-bar .field { margin: 0; }
.results-count { margin: 0 0 12px; color: var(--muted); font-size: .92rem; white-space: nowrap; }
.results-none { margin-top: 18px; color: var(--muted); }
@media (max-width: 640px) { .results-bar { grid-template-columns: 1fr 1fr; } .results-bar .field:first-child { grid-column: 1 / -1; } }
.car-hero { padding: clamp(24px, 4vw, 48px) 0 clamp(36px, 5vw, 64px); background: var(--bg-2); }
.car-hero-in { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(22px, 4vw, 52px); align-items: center; }
.car-media { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 3 / 2; background: var(--text); }
.car-media img { width: 100%; height: 100%; object-fit: cover; }
.car-copy h1 { margin: 6px 0 18px; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1; }
.car-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0 0 20px; border-top: 1px solid var(--line); }
.car-fact { padding: 12px 0; border-bottom: 1px solid var(--line); }
.car-fact dt { color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.car-fact dd { margin: 2px 0 0; font-weight: 700; }
.car-fact-key { grid-column: 1 / -1; }
.car-fact-key dd { color: var(--text); font: var(--display-weight) clamp(2.4rem, 5vw, 3.4rem)/1 var(--display); font-variant-numeric: tabular-nums lining-nums; }
.car-summary { color: var(--text-2); }
@media (max-width: 900px) { .car-hero-in { grid-template-columns: 1fr; } .car-hero .crumbs { margin-bottom: 12px; } }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 22px; }
.video-item { display: flex; flex-direction: column; gap: 6px; }
.video-card { display: flex; flex-direction: column; gap: 4px; color: inherit; text-decoration: none; }
.video-thumb { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; margin-bottom: 8px; border-radius: var(--radius); background: var(--text); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-play { position: absolute; left: 50%; top: 50%; width: 54px; height: 38px; margin: -19px 0 0 -27px; border-radius: 10px; background: var(--accent); }
.video-play::after { content: ""; position: absolute; left: 50%; top: 50%; margin: -8px 0 0 -5px; border-style: solid; border-width: 8px 0 8px 14px; border-color: transparent transparent transparent #fff; }
.video-time { position: absolute; right: 8px; bottom: 8px; padding: 2px 6px; border-radius: 3px; background: rgba(0, 0, 0, .8); color: #fff; font-size: .75rem; font-weight: 700; }
.video-title { font-weight: 700; line-height: 1.2; }
.video-kind { color: var(--muted); font-size: .9rem; }
.video-out { color: var(--accent); font-size: .8rem; font-weight: 700; }
.video-car { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 700; text-decoration: none; }
.video-car svg { width: 15px; height: 15px; }

/* ------------------------------------------------------------ hero loop (kit 0.1.8; site.js plays it)
   The home hero's photos, one after another: each comes in on one of seven entrances (site.js never repeats one
   within five changes), drifts slowly while it holds, and carries its sale card. Only opacity, transform and
   clip-path move. The timings are site.js's HL_* numbers: change both together. Reduced motion: nothing plays. */
.hero-loop { --hl-ease: cubic-bezier(.4, 0, .2, 1); --hl-move: 2.4s; overflow: hidden; }
.hero-loop .hl-slide { position: absolute; inset: 0; }
.hero-loop .hl-slide.is-wait { visibility: hidden; }
.hero-loop .hl-pan { position: absolute; inset: 0; overflow: hidden; }
.hero-loop .hl-pan img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 50%; }
.hero-loop .hl-slide.is-in { animation: hl-fade var(--hl-move) var(--hl-ease) both; }
.hero-loop .hl-slide.is-in .hl-pan { animation: var(--hl-pan, none) var(--hl-move) var(--hl-ease) both; }
.hero-loop .hl-slide.fx-zoom { --hl-pan: hl-zoom; }
.hero-loop .hl-slide.fx-drift-l { --hl-pan: hl-drift-l; }
.hero-loop .hl-slide.fx-drift-r { --hl-pan: hl-drift-r; }
.hero-loop .hl-slide.fx-rise { --hl-pan: hl-rise; }
.hero-loop .hl-slide.is-in.fx-sweep { animation-name: hl-sweep; }
.hero-loop .hl-slide.is-in.fx-sweep-back { animation-name: hl-sweep-back; }
.hero-loop .hl-slide.fx-sweep, .hero-loop .hl-slide.fx-sweep-back { --hl-pan: hl-settle; }
@keyframes hl-fade { from { opacity: 0; } }
@keyframes hl-zoom { from { transform: scale(1.14); } }
@keyframes hl-drift-l { from { transform: translateX(6%) scale(1.1); } }
@keyframes hl-drift-r { from { transform: translateX(-6%) scale(1.1); } }
@keyframes hl-rise { from { transform: translateY(5%) scale(1.1); } }
@keyframes hl-settle { from { transform: scale(1.06); } }
/* The sweeps' edge leans like a hero's angled panel: right to left, and back. */
@keyframes hl-sweep { from { clip-path: polygon(116% 0, 116% 0, 116% 100%, 100% 100%); } to { clip-path: polygon(0 0, 116% 0, 116% 100%, -16% 100%); } }
@keyframes hl-sweep-back { from { clip-path: polygon(-16% 0, 0 0, -16% 100%, -16% 100%); } to { clip-path: polygon(-16% 0, 116% 0, 100% 100%, -16% 100%); } }
/* The slow drift while a photo holds, four ways. */
.hero-loop .hl-slide.kb-0 img { animation: hl-kb-in 11s linear both; }
.hero-loop .hl-slide.kb-1 img { animation: hl-kb-out 11s linear both; }
.hero-loop .hl-slide.kb-2 img { animation: hl-kb-pan 11s linear both; }
.hero-loop .hl-slide.kb-3 img { transform-origin: 70% 40%; animation: hl-kb-in 11s linear both; }
@keyframes hl-kb-in { to { transform: scale(1.08); } }
@keyframes hl-kb-out { from { transform: scale(1.08); } }
@keyframes hl-kb-pan { from { transform: scale(1.07) translateX(1.6%); } to { transform: scale(1.07) translateX(-1.6%); } }
/* The card: the results pages' sale card, laid on the photo. It rises in once the photo has landed. */
.hero-loop .hl-card { position: absolute; left: 20px; bottom: 20px; z-index: 2; width: min(340px, calc(100% - 96px)); box-shadow: 0 18px 44px rgba(0, 0, 0, .28); }
.hero-loop .hl-card .sold-flag { position: relative; top: auto; align-self: flex-start; margin-top: 14px; }
.hero-loop .hl-card .sold-title { margin: 0; }
.hero-loop .hl-note { display: flex; flex-direction: column; width: auto; max-width: min(340px, calc(100% - 96px)); color: inherit; text-decoration: none; background: var(--surface); border-radius: var(--radius); }
.hero-loop .hl-note .sold-flag { margin-bottom: 14px; }
.hero-loop .hl-note .sold-body { padding-top: 0; }
.hero-loop .hl-note .sold-meta { color: var(--text-2); font-size: .95rem; line-height: 1.4; }
/* "card": "tag": the flag and, beside it, the price on a dark chip with the same angled cut. */
.hero-loop .hl-tag { display: inline-flex; align-items: stretch; width: auto; max-width: calc(100% - 96px); box-shadow: none; color: #fff; text-decoration: none; filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .28)); }
.hero-loop .hl-tag .sold-flag { position: relative; top: auto; display: flex; align-items: center; margin: 0; }
.hero-loop .hl-tag-price { display: flex; align-items: center; margin-left: -10px; padding: 6px 22px 6px 20px; background: var(--text); color: #fff; font: var(--display-weight) 1.7rem/1 var(--display); font-variant-numeric: tabular-nums lining-nums; clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%); }
.hero-loop .hl-tag:hover .hl-tag-price { background: var(--accent); }
.hero-loop .hl-tag.is-note .sold-flag { background: var(--text); }
.hero-loop .hl-slide.is-in .hl-card { animation: hl-card-in 1s var(--hl-ease) 1.6s both; }
.hero-loop .hl-slide.is-out .hl-card { animation: hl-card-out .7s var(--hl-ease) both; }
@keyframes hl-card-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes hl-card-out { to { opacity: 0; transform: translateY(8px); } }
/* Paused (the button, a hover or focus on the card, off screen, a hidden tab): every move holds where it is. */
.hero-loop.is-held .hl-slide, .hero-loop.is-held .hl-slide * { animation-play-state: paused !important; }
.hero-loop .hl-pause { position: absolute; right: 16px; bottom: 16px; z-index: 3; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; cursor: pointer; }
.hero-loop .hl-pause[hidden] { display: none; }
.hero-loop .hl-pause svg { width: 18px; height: 18px; }
.hero-loop .hl-pause .hl-i-play, .hero-loop .hl-pause[aria-pressed="true"] .hl-i-pause { display: none; }
.hero-loop .hl-pause[aria-pressed="true"] .hl-i-play { display: block; }
.hero-loop .hl-pause:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (max-width: 640px) {
  .hero-loop .hl-card { left: 12px; bottom: 12px; width: min(300px, calc(100% - 76px)); }
  .hero-loop .sold-card .sold-meta, .hero-loop .sold-card .sold-more { display: none; }
  .hero-loop .hl-pause { right: 12px; bottom: 12px; width: 36px; height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  /* Pseudo-elements that * does not match: the FAQ slide and the dialog's shade (Anchor review of #70). */
  .faq-item::details-content { transition: none !important; }
  ::backdrop { animation: none !important; transition: none !important; }
}

/* ------------------------------------------------------------ address, map, strip, booking card, results rows (kit 0.1.13)
   Each is drawn only when the shop's files ask for it (kit README § Contact basics, § Service pages, § Results). */
.footer-phone { white-space: nowrap; }
.js .drawer > a.drawer-contact { display: none; }
.contact-dir, .footer-dir { display: inline-block; margin-top: 6px; color: var(--accent); font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.contact-note { display: block; margin-top: 4px; color: var(--muted); }
.footer-addr { margin: 0 0 6px; font-style: normal; }
.footer-hours { margin: 0; }
.footer-dir { margin: 6px 0 14px; }
.map-addr iframe { height: clamp(260px, 24vw, 340px); }
.pin-stars { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; color: var(--text); font-size: .9rem; font-weight: 600; }
.pin-stars .stars { display: inline-flex; gap: 1px; color: #e7a614; }
.pin-stars .stars svg { width: 15px; height: 15px; fill: currentColor; stroke: none; }
@media (max-width: 640px) {
  /* The compact footer keeps the address, the hours and directions; the phone and Contact Us are on the action bar. */
  .footer-compact .footer-contact.has-addr { display: block !important; }
  .footer-compact .footer-contact.has-addr > .footer-phone, .footer-compact .footer-contact.has-addr > .btn { display: none !important; }
  .footer-compact .footer-contact.has-addr > .footer-h, .footer-compact .footer-contact.has-addr > .footer-addr,
  .footer-compact .footer-contact.has-addr > .footer-hours, .footer-compact .footer-contact.has-addr > .footer-dir { display: block !important; }
}

.svc-strip { padding-top: clamp(20px, 3vw, 32px); }
.svc-strip + .section.has-strip { padding-top: clamp(28px, 4vw, 44px); }
.strip { display: grid; grid-template-columns: 2fr repeat(3, minmax(0, 1fr)); gap: 8px; height: clamp(200px, 20vw, 290px); }
.strip-3 { grid-template-columns: 2fr repeat(2, minmax(0, 1fr)); }
.strip-2 { grid-template-columns: 2fr minmax(0, 1fr); }
.strip-1 { grid-template-columns: 1fr; }
.strip-tile { position: relative; display: block; overflow: hidden; min-width: 0; border-radius: var(--radius); background: var(--bg-2); }
.strip-tile img { width: 100%; height: 100%; object-fit: cover; }
.strip-play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: var(--accent); color: #fff; }
.strip-play svg { width: 22px; height: 22px; margin-left: 3px; fill: currentColor; stroke: none; }
.strip-cap { position: absolute; left: 8px; right: 8px; bottom: 8px; width: fit-content; max-width: calc(100% - 16px); padding: 4px 8px; background: rgba(10, 11, 13, .78); color: #fff; font-size: .8rem; line-height: 1.3; }
.strip-placeholder { display: grid; align-content: center; justify-items: center; gap: 8px; padding: 14px; border: 2px dashed var(--muted); background: repeating-linear-gradient(-45deg, var(--bg-2) 0 10px, var(--surface) 10px 20px); text-align: center; }
.strip-ph-tag { padding: 2px 8px; background: #fdecc8; color: #8a5a00; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.strip-ph-text { color: var(--text); font-size: .9rem; font-weight: 600; line-height: 1.3; }
@media (max-width: 760px) {
  /* A row to swipe on a phone; only the strip scrolls, never the page. */
  .strip { display: flex; gap: 8px; height: 210px; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); scrollbar-width: none; }
  .strip::-webkit-scrollbar { display: none; }
  .strip-tile { flex: 0 0 62%; scroll-snap-align: start; }
  .strip-tile:first-child { flex-basis: 78%; }
  .strip-1 .strip-tile { flex-basis: 100%; }
}

.book-card { display: grid; gap: 12px; border-top: 4px solid var(--accent); }
.book-card h2 { margin: 0; }
.book-card p { margin: 0; }
.book-card .btn { width: 100%; justify-content: center; }
.book-tel { color: var(--text-2); text-align: center; text-decoration: none; white-space: nowrap; }
.book-tel b { color: var(--text); }
.book-when { color: var(--muted); font-size: .85rem; text-align: center; }
.book-card .checks { margin: 4px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.book-recent { display: grid; gap: 10px; padding: 18px 20px; }
.book-recent h2 { margin: 0; font-size: 1.15rem; line-height: 1.1; }
.book-recent .contact-dir { display: inline-flex; align-items: center; gap: 6px; }
.book-recent .contact-dir svg { width: 16px; height: 16px; }
/* The aside stays in view only where all of it fits on screen: a taller aside than the window would hide its foot
   until the end of the page. */
.aside-book { position: static; }
@media (min-width: 981px) and (min-height: 860px) { .aside-book { position: sticky; } }
.book-recent ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.recent-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 10px; align-items: center; color: var(--text-2); font-size: .85rem; line-height: 1.25; text-decoration: none; }
.recent-row .sold-plate, .recent-row img { width: 64px !important; height: 44px; margin: 0 !important; object-fit: cover; border-radius: 3px; }
.recent-row:hover .recent-name { color: var(--text); text-decoration: underline; }
.recent-price { color: var(--text); font: var(--display-weight) 1.05rem/1 var(--display); font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
@media (max-width: 980px) {
  /* Phones and tablets: the card under the strip, above the page's words; the recent sales after them. */
  .aside-book { display: contents; }
  .aside-book .book-card { order: -1; }
  .aside-book .book-recent { order: 1; }
}

/* home.order highlightsFirst: one row of the wide highlights, then one row of equal cards. */
@media (min-width: 900px) and (max-width: 1099px) {
  .sold-grid-home.sold-grid-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Four columns: an odd last highlight (one, or the third) takes the whole row, in a wider frame, so the equal cards
   always start a row of their own (Anchor review of #72). An even count already fills its rows. */
@media (min-width: 1100px) {
  .sold-grid-home.sold-grid-rows > .sold-card-big:nth-child(odd):not(:has(+ .sold-card-big)) { grid-column: 1 / -1; }
  .sold-grid-home.sold-grid-rows > .sold-card-big:nth-child(odd):not(:has(+ .sold-card-big)) .sold-media { aspect-ratio: 21 / 9; }
}

@media print { .site-header, .drawer, .action-bar, .cta-band, .cm { display: none !important; } }

/* Results pages (kit 0.1.11): the pager under the sold cars, in the shop's tokens. */
.pager { margin-top: 32px; text-align: center; }
.pager-info { margin: 0 0 14px; color: var(--muted); font-size: .95rem; }
.pager-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.pager-num, .pager-step { min-width: 44px; height: 44px; padding: 0 12px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.pager-step { font-size: 1.5rem; line-height: 1; }
.pager-num:hover, .pager-step:hover:not([disabled]) { border-color: var(--text); }
.pager-num[aria-current="page"] { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.pager-step[disabled] { opacity: .35; cursor: default; }
.pager-gap { min-width: 20px; color: var(--muted); }
/* Before site.js runs, only page 1 paints (the later cards are in the HTML for no-JS and crawlers), and a shared
   ?q= / ?page= / ?sort= address holds the list back until the script has picked its cards (SHOP-QUAL.1). */
html.js .sold-card.pg-later { display: none; }
html.results-wait [data-results], html.results-wait [data-results-pager] { visibility: hidden; }

/* footerCompact (kit 0.1.11): on phones, no Company list (the menu has it) and no "Get in touch" column: its phone and
   Contact Us are on the action bar, and its legal name is on the copyright line. A contact column that also holds
   review links keeps only those. The towns run on as one wrapped line. */
@media (max-width: 640px) {
  .footer-compact .footer-company, .footer-compact .footer-contact:not(.has-links) { display: none; }
  .footer-compact .footer-contact.has-links > :not(.footer-links) { display: none; }
  .footer-compact .footer-areas ul { display: flex; flex-wrap: wrap; gap: 4px 14px; }
}
