/*
Theme Name: Locally Demo
Description: Demo theme for Locally Market (sample site, hidden from search).
Version: 0.3.0
Author: Noticed And Found
*/

:root {
  --green: #2f4a34;
  --green-2: #3f6b4a;
  --green-soft: #e9f0ea;
  --cream: #faf7f0;
  --orange: #c8742c;
  --orange-soft: #f6e6d6;
  --ink: #24302a;
  --muted: #66716a;
  --line: #e3e6df;
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Source Sans 3', system-ui, sans-serif; color: var(--ink); background: #fff; font-size: 17px; line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; color: var(--green); line-height: 1.12; margin: 0 0 .4em; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--orange); margin-bottom: .5em; }
.btn { display: inline-block; padding: .8em 1.4em; border-radius: 999px; background: var(--orange); color: #fff; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; font-size: 1rem; }
.btn.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); }
.btn.green { background: var(--green); }
.btn.small { padding: .5em 1em; font-size: .9rem; }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: .25em .7em; border-radius: 999px; background: var(--green-soft); color: var(--green); }
.badge.open { background: #dff3e4; color: #1f7a3b; }
.badge.soon { background: var(--orange-soft); color: #94511b; }

/* demo ribbon */
.demo-bar { background: #1d2b21; color: #d9e3db; font-size: .82rem; text-align: center; padding: 6px 12px; }
.demo-bar b { color: #fff; }

/* header */
.topbar { background: var(--cream); font-size: .88rem; color: var(--muted); }
.topbar .wrap { display: flex; justify-content: space-between; gap: 12px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.topbar a { text-decoration: none; font-weight: 600; color: var(--green); }
.site-header { position: sticky; top: 0; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); z-index: 20; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; padding-top: 10px; padding-bottom: 10px; }
.logo img { height: 58px; width: auto; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; font-weight: 600; font-size: .96rem; }
.nav a:hover { color: var(--orange); }
.menu-toggle { display: none; margin-left: auto; background: none; border: 0; font-size: 1.8rem; color: var(--green); }

/* hero */
.hero { padding: 26px 0 10px; }
.hero-card { background: var(--green); border-radius: 28px; color: #fff; display: grid; grid-template-columns: 1.1fr 1fr; overflow: hidden; position: relative; }
.hero-copy { padding: 56px 48px; align-self: center; }
.hero-copy h1 { color: #fff; }
.hero-copy h1 em { font-style: normal; color: #f2b77e; }
.hero-copy p { font-size: 1.12rem; color: #dfe8e1; max-width: 32em; }
.hero-copy .btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.hero-pill { display: inline-flex; gap: 8px; align-items: center; background: rgba(255,255,255,.12); padding: .35em .9em; border-radius: 999px; font-size: .85rem; font-weight: 600; margin-bottom: 16px; }
.hero-photo { position: relative; min-height: 420px; }
.hero-photo .photo { position: absolute; inset: 22px 22px 22px 0; border-radius: 22px; }
.float-card { position: absolute; background: #fff; color: var(--ink); border-radius: 14px; padding: 10px 14px; box-shadow: 0 10px 30px rgba(0,0,0,.18); font-size: .85rem; display: flex; gap: 10px; align-items: center; }
.float-card i { font-size: 1.5rem; color: var(--orange); }
.float-card.a { left: -24px; bottom: 60px; }
.float-card.b { right: 40px; top: 50px; }

/* photo placeholder */
.photo { background: linear-gradient(135deg, #cfdccf 0%, #b9cbb9 55%, #a7bca8 100%); display: flex; align-items: flex-end; justify-content: flex-start; color: #33503a; font-size: .8rem; font-weight: 600; padding: 12px 14px; overflow: hidden; position: relative; }
.photo::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 70% 30%, rgba(255,255,255,.55), transparent 55%); }
.photo span { position: relative; background: rgba(255,255,255,.75); border-radius: 999px; padding: 3px 10px; }
.photo.warm { background: linear-gradient(135deg, #ecd8c3 0%, #e1c1a0 60%, #d4a97f 100%); color: #6e4520; }
.photo.red { background: linear-gradient(135deg, #e9cfc8 0%, #d7a99e 60%, #c48a7c 100%); color: #6b2f22; }

/* sections */
section.block { padding: 64px 0; }
section.block.tight { padding: 34px 0; }
section.cream { background: var(--cream); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head p { color: var(--muted); max-width: 40em; margin: 0; }
.section-logo { height: 70px; width: auto; margin-bottom: 8px; }

/* departments */
.depts { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.dept { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 14px; text-align: center; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.dept:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(47,74,52,.12); }
.dept .ico { width: 64px; height: 64px; border-radius: 50%; background: var(--green-soft); display: grid; place-items: center; margin: 0 auto 10px; font-size: 2rem; color: var(--green); }
.dept b { display: block; font-size: 1.02rem; }
.dept small { display: block; color: var(--muted); font-size: .82rem; margin: 2px 0 8px; }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; }
.feature .photo { height: 200px; }
.feature .body { padding: 18px 20px 22px; }
.feature p { color: var(--muted); font-size: .97rem; }
.feature a.more { font-weight: 700; color: var(--orange); text-decoration: none; }

/* weekly special */
.special { background: var(--green); color: #fff; border-radius: 28px; display: grid; grid-template-columns: 1fr 1.05fr; overflow: hidden; }
.special .photo { min-height: 340px; }
.special .copy { padding: 44px 46px; }
.special h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
.special .price { font-family: 'Fraunces', serif; font-size: 3.4rem; color: #f2b77e; line-height: 1; margin: 6px 0 4px; }
.special .price small { font-size: 1.1rem; color: #dfe8e1; }
.special p { color: #dfe8e1; }
.special .deals-logo { height: 54px; width: auto; filter: invert(1); margin-bottom: 14px; }
.special .fine { font-size: .82rem; opacity: .8; }

/* recipes */
.recipes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.recipe { border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); text-decoration: none; }
.recipe .photo { height: 190px; }
.recipe .body { padding: 16px 18px 20px; }
.recipe .meta { display: flex; gap: 14px; color: var(--muted); font-size: .86rem; }
.recipe .meta i { color: var(--orange); }

/* happening */
.events { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.event { display: flex; gap: 14px; background: #fff; border-radius: 16px; padding: 16px; border: 1px solid var(--line); }
.event .date { flex: 0 0 62px; text-align: center; background: var(--orange-soft); border-radius: 12px; padding: 8px 4px; color: #94511b; font-weight: 700; line-height: 1.1; }
.event .date b { display: block; font-size: 1.5rem; font-family: 'Fraunces', serif; }
.event p { margin: 0; color: var(--muted); font-size: .93rem; }

/* social teaser */
.social-teaser { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.social-teaser .photo { height: 320px; border-radius: 24px; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.ticks li { padding-left: 30px; position: relative; margin-bottom: 8px; }
.ticks li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--orange); font-weight: 800; }

/* visit */
.visit { display: grid; grid-template-columns: 1fr 1.2fr; gap: 30px; align-items: stretch; }
.visit .card { background: #fff; border-radius: 24px; padding: 30px; border: 1px solid var(--line); }
.visit .map { border-radius: 24px; min-height: 300px; }
.visit dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; }
.visit dt { font-weight: 700; color: var(--green); }
.visit dd { margin: 0; }

/* footer */
.site-footer { background: #1d2b21; color: #c9d4cb; padding: 50px 0 30px; font-size: .95rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 30px; }
.site-footer h4 { color: #fff; font-family: 'Fraunces', serif; margin: 0 0 10px; font-size: 1.05rem; }
.site-footer a { color: #c9d4cb; text-decoration: none; display: block; margin-bottom: 6px; }
.site-footer .logo-w { height: 70px; width: auto; margin-bottom: 12px; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 30px; padding-top: 16px; font-size: .82rem; color: #8fa092; }

@media (max-width: 960px) {
  .hero-card, .special, .social-teaser, .visit { grid-template-columns: 1fr; }
  .hero-copy { padding: 36px 26px; }
  .hero-photo { min-height: 280px; }
  .hero-photo .photo { inset: 0 18px 18px 18px; }
  .float-card.a { left: 26px; bottom: 30px; }
  .depts { grid-template-columns: repeat(3, 1fr); }
  .features, .recipes, .events { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; padding: 14px 20px; border-bottom: 1px solid var(--line); align-items: flex-start; }
  .nav.open { display: flex; }
  .menu-toggle { display: block; }
  .special .copy { padding: 30px 26px; }
}
@media (max-width: 520px) {
  .depts { grid-template-columns: repeat(2, 1fr); }
  .float-card.b { display: none; }
}

/* bigger section logos (v0.2) */
.section-logo { height: 88px; }
.special .deals-logo { height: 68px; }

/* recipes */
.card-box { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 26px 28px; margin-top: 30px; }
.muted { color: var(--muted); }
.btn.ghost-dark { background: transparent; color: var(--green); box-shadow: inset 0 0 0 2px var(--green); }
.list-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
#mylist-items { padding-left: 18px; }
#mylist-items > li { margin-bottom: 10px; }
.recipe-page .back { text-decoration: none; color: var(--orange); font-weight: 700; display: inline-block; margin-bottom: 18px; }
.recipe-top { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; }
.recipe-top .lead { font-size: 1.15rem; color: var(--muted); }
.recipe-hero { min-height: 330px; border-radius: 24px; }
.facts { display: flex; gap: 12px; margin-top: 10px; }
.facts span { background: var(--green-soft); border-radius: 14px; padding: 10px 16px; font-size: .85rem; color: var(--muted); text-align: center; }
.facts b { display: block; font-size: 1.2rem; color: var(--green); font-family: 'Fraunces', serif; }
.recipe-body { display: grid; grid-template-columns: 1fr 1.4fr; gap: 34px; margin-top: 40px; }
.ingredients { background: var(--cream); border-radius: 24px; padding: 26px; align-self: start; }
.ingredients ul { list-style: none; padding: 0; margin: 0; }
.ingredients li { padding: 9px 0; border-bottom: 1px dashed #d8d4c6; }
.ingredients label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.ingredients input { margin-top: 5px; accent-color: var(--green); }
.at-locally { display: block; font-style: normal; font-size: .8rem; color: var(--orange); font-weight: 700; margin: 3px 0 0 24px; }
.method ol { padding-left: 22px; }
.method li { margin-bottom: 14px; }
.tip { background: var(--orange-soft); border-radius: 16px; padding: 14px 18px; margin: 10px 0 22px; }
.added { margin-top: 10px; font-weight: 600; color: var(--green); }

/* events + visit */
.visit .found-logo { height: 88px; width: auto; margin-bottom: 6px; }
.visit iframe.map { width: 100%; height: 100%; min-height: 320px; border: 0; border-radius: 24px; }

@media (max-width: 960px) { .recipe-top, .recipe-body { grid-template-columns: 1fr; } }
@media print {
  .demo-bar, .topbar, .site-header, .site-footer, .list-btns, .back, .recipe-hero, .method .btn, .recipes { display: none !important; }
  .recipe-body { grid-template-columns: 1fr; }
}

/* meat counter (v0.3) */
.meat-hero .hero-photo { min-height: 320px; }
.how3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.how3 > div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.how3 .num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 800; margin-bottom: 8px; }
.how3 p { color: var(--muted); margin: 0; }
.order-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
.prod { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-top: 16px; }
.prod.soon { background: transparent; border-style: dashed; }
.prod-head { display: flex; justify-content: space-between; gap: 14px; }
.prod-head p { margin: 0; font-size: .95rem; }
.perlb { font-family: 'Fraunces', serif; font-size: 1.4rem; color: var(--green); white-space: nowrap; text-align: right; }
.perlb small { display: block; font-family: 'Source Sans 3', sans-serif; font-size: .75rem; color: var(--muted); }
.optrow { display: flex; gap: 12px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.optlabel { font-weight: 700; font-size: .9rem; min-width: 84px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: .38em .9em; font: inherit; font-size: .9rem; cursor: pointer; }
.chip[aria-pressed="true"] { border-color: var(--green); background: var(--green-soft); color: var(--green); font-weight: 700; }
.optrow select, .request input, .request textarea, .admin input, .admin select, .admin textarea { font: inherit; padding: .5em .7em; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; }
.addrow { display: flex; gap: 14px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.addrow .btn { margin-left: auto; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.stepper button { border: 0; background: #fff; width: 36px; height: 34px; font-size: 1.2rem; cursor: pointer; color: var(--green); }
.stepper span { min-width: 28px; text-align: center; font-weight: 700; }
.request { position: sticky; top: 96px; background: #fff; border-radius: 24px; padding: 24px; border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(47,74,52,.08); }
.lines { list-style: none; padding: 0; margin: 0 0 10px; }
.lines li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .93rem; }
.lines .est { white-space: nowrap; font-weight: 700; }
.x { border: 0; background: none; color: var(--muted); font-size: 1.2rem; cursor: pointer; margin-left: 4px; }
.total { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; font-size: 1.05rem; }
.total b { font-family: 'Fraunces', serif; font-size: 1.35rem; color: var(--green); }
.fine { font-size: .82rem; color: var(--muted); }
#req label { display: block; font-weight: 600; font-size: .9rem; margin-top: 10px; }
#req input, #req textarea { display: block; width: 100%; margin-top: 4px; }
#req .btn { width: 100%; margin-top: 16px; }
#req .btn[disabled] { opacity: .45; cursor: not-allowed; }
.sent { text-align: center; }
.sent > i { font-size: 3rem; color: #1f7a3b; }
.demo-note { background: var(--orange-soft); border-radius: 12px; padding: 10px; font-size: .85rem; }

/* butcher's desk */
.admin-top { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.tabs { display: flex; gap: 6px; background: var(--cream); padding: 5px; border-radius: 999px; }
.tab { border: 0; background: none; padding: .5em 1.1em; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; color: var(--muted); }
.tab[aria-pressed="true"] { background: #fff; color: var(--green); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.admin-grid { display: grid; grid-template-columns: 280px 1fr; gap: 22px; align-items: start; }
.queue { background: var(--cream); border-radius: 20px; padding: 16px; }
.qitem { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; width: 100%; text-align: left; background: #fff; border: 1.5px solid transparent; border-radius: 14px; padding: 12px; margin-top: 10px; font: inherit; cursor: pointer; }
.qitem.on { border-color: var(--green); }
.qitem small { grid-column: 1 / -1; color: var(--muted); }
.st { font-size: .72rem; font-weight: 700; border-radius: 999px; padding: .15em .6em; align-self: start; }
.st-New { background: var(--orange-soft); color: #94511b; }
.st-Called, .st-Paylinksent { background: #e6eefb; color: #24508f; }
.st-Paid, .st-Pickedup { background: #dff3e4; color: #1f7a3b; }
.detail { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px; }
.pipeline { display: flex; list-style: none; padding: 0; margin: 6px 0 18px; gap: 6px; flex-wrap: wrap; }
.pipeline li { padding: .3em .8em; border-radius: 999px; background: #f1f2ee; color: var(--muted); font-size: .82rem; font-weight: 600; }
.pipeline li.done { background: #dff3e4; color: #1f7a3b; }
.pipeline li.now { background: var(--green); color: #fff; }
.atable { width: 100%; border-collapse: collapse; font-size: .93rem; }
.atable th { text-align: left; background: var(--green); color: #fff; padding: 8px; }
.atable td { padding: 8px; border-bottom: 1px solid var(--line); }
.atable .r { text-align: right; }
.atable tfoot td { font-size: 1.05rem; border: 0; }
.atable input.num { width: 84px; }
.callnotes { display: block; margin-top: 16px; font-weight: 600; }
.callnotes textarea { display: block; width: 100%; margin-top: 4px; }
.abtns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.toast { margin-top: 12px; background: #dff3e4; color: #1f7a3b; border-radius: 12px; padding: 10px 14px; font-weight: 600; }
.formgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; margin: 14px 0 18px; }
.formgrid label { font-weight: 600; font-size: .92rem; }
.formgrid .wide { grid-column: 1 / -1; }
.formgrid input, .formgrid select, .formgrid textarea { display: block; width: 100%; margin-top: 4px; }
.saved { margin-top: 12px; color: #1f7a3b; font-weight: 700; }
@media (max-width: 960px) { .order-grid, .admin-grid, .how3, .formgrid { grid-template-columns: 1fr; } .request { position: static; } }

.qitem .st { justify-self: start; grid-column: 1; }
