/* Shared structure for Shop Local GA sample sites. Each site sets its own tokens and signature styles. */
@font-face { font-family: Archivo; src: url(/fonts/s/archivo-800.woff2) format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: Fraunces; src: url(/fonts/s/fraunces-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "DM Serif Display"; src: url(/fonts/s/dmserif-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Bricolage; src: url(/fonts/s/bricolage-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: Figtree; src: url(/fonts/s/figtree-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Figtree; src: url(/fonts/s/figtree-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: Figtree; src: url(/fonts/s/figtree-800.woff2) format("woff2"); font-weight: 800; font-display: swap; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-b, Figtree), system-ui, sans-serif; background: var(--bg); color: var(--ink); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus, var(--accent)); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 99; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

.w { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
section { padding: 92px 0; }
h1, h2, h3 { font-family: var(--font-d); font-weight: var(--wt-d, 700); line-height: 1.04; letter-spacing: var(--ls-d, -0.02em); text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.6vw, 3.3rem); margin-bottom: .4em; }
h3 { font-size: 1.3rem; line-height: 1.2; margin-bottom: .35em; }
p { margin-bottom: 1em; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 56ch; }
.muted { color: var(--muted); }

/* Sample notice */
.demo-note { background: var(--ink); color: var(--bg); font-size: .82rem; text-align: center; padding: 7px 14px; }
.demo-note a { color: var(--bg); font-weight: 600; }

/* Header */
.hd { position: sticky; top: 0; z-index: 40; background: var(--hd-bg, var(--bg)); border-bottom: 1px solid var(--line); }
.hd .w { display: flex; align-items: center; gap: 22px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-d); font-weight: var(--wt-d, 700); font-size: 1.25rem; letter-spacing: -0.01em; line-height: 1; }
.brand svg { width: 38px; height: 38px; flex: none; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; font-size: .98rem; padding: 8px 0; }
.nav a:hover { color: var(--brand-ink, var(--brand)); }
.hd .call { margin-left: 8px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; width: 46px; height: 46px; align-items: center; justify-content: center; cursor: pointer; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 20px; height: 2px; background: currentColor; position: relative; content: ""; }
.menu-btn span::before { position: absolute; top: -6px; } .menu-btn span::after { position: absolute; top: 6px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: var(--r-btn, 999px); background: var(--btn-bg, var(--accent)); color: var(--btn-ink, var(--ink)); font-weight: 700; text-decoration: none; border: 0; cursor: pointer; font-size: 1rem; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0,0,0,.14); }
.btn.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.btn.sm { min-height: 44px; padding: 0 18px; font-size: .95rem; }
.btn svg { width: 20px; height: 20px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Open-now pill */
.open { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; padding: 6px 12px 6px 10px; border-radius: 999px; background: var(--pill-bg, rgba(0,0,0,.06)); }
.open i { width: 9px; height: 9px; border-radius: 50%; background: #1FA855; box-shadow: 0 0 0 4px rgba(31,168,85,.18); }
.open.closed i { background: #D9822B; box-shadow: 0 0 0 4px rgba(217,130,43,.18); }

/* Cards & grids */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.card { background: var(--card, #fff); border-radius: var(--r-card, 18px); padding: 28px; border: 1px solid var(--line); }
.ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--soft); color: var(--brand-ink, var(--brand)); margin-bottom: 18px; }
.ico svg { width: 28px; height: 28px; }

/* Tabs */
.tablist { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.tablist [role=tab] { border: 1px solid var(--line); background: transparent; padding: 10px 18px; border-radius: 999px; font-weight: 600; cursor: pointer; }
.tablist [role=tab][aria-selected=true] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Compare slider */
.compare { --pos: 50%; position: relative; border-radius: var(--r-card, 18px); overflow: hidden; aspect-ratio: 4/3; user-select: none; }
.compare > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.compare .after { clip-path: inset(0 0 0 var(--pos)); }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px; background: #fff; pointer-events: none; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.compare .handle::after { content: "⟷"; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 46px; height: 46px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 700; color: #111; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare .tag { position: absolute; top: 14px; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-size: .8rem; font-weight: 600; }
.compare .tag.l { left: 14px; } .compare .tag.r { right: 14px; }

/* Reviews */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote { background: var(--card, #fff); border: 1px solid var(--line); border-radius: var(--r-card, 18px); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.quote .stars { color: var(--star, #E9A23B); letter-spacing: 2px; font-size: 1.05rem; }
.quote blockquote { font-size: 1.05rem; }
.quote cite { font-style: normal; font-weight: 600; font-size: .92rem; color: var(--muted); margin-top: auto; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-weight: 700; font-size: 1.1rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 1.6rem; font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 70ch; }

/* Forms */
.qf { background: var(--card, #fff); color: var(--ink-card, var(--ink)); border-radius: var(--r-card, 18px); padding: 32px; box-shadow: 0 30px 70px rgba(0,0,0,.14); }
.qf h3 { font-size: 1.5rem; }
.progress { height: 6px; border-radius: 6px; background: var(--soft); margin: 6px 0 22px; overflow: hidden; }
.progress::before { content: ""; display: block; height: 100%; width: var(--p, 33%); background: var(--brand); transition: width .3s ease; }
fieldset { border: 0; min-width: 0; }
.fld { display: grid; gap: 6px; margin-bottom: 16px; }
.fld label, .fld legend { font-weight: 600; font-size: .95rem; }
.fld input, .fld select, .fld textarea { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line-strong, #C9CED6); background: #fff; color: #111; }
.fld textarea { min-height: 96px; resize: vertical; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; border: 0; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; }
.chips span { display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line-strong, #C9CED6); font-weight: 600; font-size: .93rem; cursor: pointer; }
.chips input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--on-brand, #fff); }
.chips input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.qf .row { justify-content: space-between; margin-top: 8px; }
.linkbtn { background: none; border: 0; font-weight: 600; text-decoration: underline; cursor: pointer; padding: 10px 0; }
.done { text-align: center; padding: 30px 10px; }
.done:focus { outline: none; }
.done .tick { width: 64px; height: 64px; border-radius: 50%; background: var(--brand); color: var(--on-brand, #fff); display: grid; place-items: center; margin: 0 auto 16px; font-size: 2rem; }
.fine { font-size: .82rem; color: var(--muted); margin-top: 12px; }

/* ZIP check */
.zipf { display: flex; gap: 10px; flex-wrap: wrap; }
.zipf input { flex: 1 1 160px; min-height: 52px; border-radius: 12px; border: 1.5px solid var(--line-strong, #C9CED6); padding: 0 14px; background: #fff; color: #111; }
.zip-out { flex-basis: 100%; font-weight: 600; min-height: 1.6em; }
.zip-out.good { color: var(--good, #157A3F); } .zip-out.warn { color: var(--warnc, #9A4B00); }

/* Days */
.days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.day input { position: absolute; opacity: 0; }
.day span { display: grid; text-align: center; padding: 10px 4px; border: 1.5px solid var(--line-strong, #C9CED6); border-radius: 12px; font-weight: 700; font-size: .92rem; cursor: pointer; line-height: 1.25; }
.day small { font-weight: 600; color: var(--muted); font-size: .75rem; }
.day input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--on-brand, #fff); }
.day input:checked + span small { color: inherit; }
.day input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.day { position: relative; }

/* Sticky mobile call bar */
.callbar { display: none; }

/* Footer */
.ft { padding: 60px 0 100px; background: var(--ft-bg, var(--ink)); color: var(--ft-ink, var(--bg)); }
.ft .w { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.ft h4 { font-size: .95rem; margin-bottom: 10px; }
.ft a { text-decoration: none; display: block; padding: 4px 0; opacity: .9; }
.ft p { opacity: .85; font-size: .95rem; }
.ft .made { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.18); padding-top: 22px; font-size: .88rem; opacity: .85; }
.ft .made a { display: inline; text-decoration: underline; }

/* Reveal */
.rise { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.rise.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  section { padding: 68px 0; }
  .grid3, .quotes { grid-template-columns: 1fr; }
  .grid2 { grid-template-columns: 1fr; gap: 36px; }
  .nav, .hd .call { display: none; }
  .menu-btn { display: inline-flex; }
  .nav.open { display: flex; flex-direction: column; gap: 0; position: absolute; left: 0; right: 0; top: 100%; background: var(--hd-bg, var(--bg)); border-bottom: 1px solid var(--line); padding: 8px 22px 16px; }
  .nav.open a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .ft .w { grid-template-columns: 1fr; gap: 24px; }
  .days { grid-template-columns: repeat(4, 1fr); }
  .callbar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--hd-bg, var(--bg)); border-top: 1px solid var(--line); }
  .callbar .btn { min-height: 50px; }
  .qf { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rise { opacity: 1; transform: none; }
}
