:root {
  --green: #355443;
  --green-dark: #24392e;
  --sage: #6f8061;
  --rust: #a64b3c;
  --cream: #f3efe5;
  --paper: #fbf9f4;
  --ink: #26302a;
  --muted: #66706a;
  --line: #e4ded0;
  --radius: 18px;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--serif); color: var(--green); line-height: 1.15; margin: 0; }
[hidden] { display: none !important; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; border-radius: 999px; border: 2px solid transparent; font: 600 1rem var(--sans); text-decoration: none; cursor: pointer; transition: background .2s, transform .15s, color .2s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-primary:disabled { background: #a9b2ad; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--green); border-color: var(--green); }
.btn-ghost:hover { background: var(--green); color: #fff; }
.btn-venmo { background: #008cff; color: #fff; }
.btn-venmo:hover { background: #0074d4; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; color: var(--green); font: 600 .95rem var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ── Hero ── */
.hero { background: var(--cream); text-align: center; padding: 48px 16px 40px; }
.logo { display: block; margin: 0 auto; width: 150px; height: 150px; object-fit: contain; border-radius: 50%; background: #fff; padding: 10px; box-shadow: 0 6px 24px rgba(53,84,67,.12); }
.eyebrow { display: inline-block; margin: 24px 0 12px; padding: 6px 16px; border-radius: 999px; background: var(--rust); color: #fff; font-size: .78rem; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; }
.hero h1 { font-size: clamp(2rem, 6vw, 3.2rem); max-width: 14em; margin: 8px auto 14px; }
.lede { max-width: 34em; margin: 0 auto 18px; color: var(--muted); font-size: 1.08rem; }
.lede strong { color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 640px; margin: 36px auto 0; }
.facts div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 10px; }
.facts dt { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--sage); }
.facts dd { margin: 4px 0 0; font-weight: 600; font-size: .95rem; }
.facts dd span { font-weight: 400; color: var(--muted); font-size: .85rem; }
/* after the cutoff the 'Order by' card is hidden: center the remaining two */
.facts:has(> div[hidden]) { grid-template-columns: repeat(2, 1fr); max-width: 430px; }

/* ── Order ── */
.order { max-width: 980px; margin: 0 auto; padding: 56px 16px 120px; scroll-margin-top: 0; }
.section-head { text-align: center; margin-bottom: 28px; }
.section-head h2 { font-size: 2rem; }
.section-head p { color: var(--muted); margin: 8px 0 0; }

.menu { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.photo-wrap { position: relative; }
.organic-tag { position: absolute; top: 10px; left: 10px; padding: 3px 10px 3px 8px; border-radius: 999px; background: rgba(243, 239, 229, .94); color: var(--green); font-size: .75rem; font-weight: 600; letter-spacing: .02em; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.item-photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--cream); }
.item-photo.placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: .85rem; }
.item-photo.placeholder img { width: 72px; height: 72px; object-fit: contain; opacity: .45; }
.item-body { padding: 14px 18px 10px; display: flex; flex-direction: column; flex: 1; }
.item-body .opt:first-of-type { margin-top: auto; }
.item h3 { font-size: 1.15rem; margin-bottom: 4px; }
.item-desc { color: var(--muted); font-size: .9rem; line-height: 1.45; margin: 0 0 8px; }
.opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; }
.opt + .opt { border-top: 1px dashed var(--line); }
.opt-label { display: flex; flex-direction: column; }
.opt-label > span:first-child:not(.price) { font-weight: 600; font-size: .9rem; }
.price { color: var(--rust); font-weight: 600; }
.price small { color: var(--muted); font-weight: 400; }
.opt.has .stepper { border-color: var(--green); }

.stepper { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; flex-shrink: 0; transition: border-color .2s; }
.stepper button { width: 44px; height: 44px; border: 0; background: transparent; font-size: 1.3rem; color: var(--green); cursor: pointer; }
.stepper button:hover:not(:disabled) { background: var(--cream); }
.stepper button:disabled { color: #c9cfca; cursor: default; }
.stepper output { min-width: 28px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }

.details { margin-top: 40px; scroll-margin-top: 16px; }
.details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.your-order, .fields, .panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.your-order { position: sticky; top: 16px; }
.details h2 { font-size: 1.35rem; margin-bottom: 14px; }

.summary { list-style: none; padding: 0; margin: 0; }
.summary li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.summary li.empty { color: var(--muted); border: 0; }
.summary .sum-total { border: 0; font-weight: 700; font-size: 1.1rem; padding-top: 12px; color: var(--green); }

.fields label, .modal label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 14px; }
.opt-tag { font-weight: 400; color: var(--muted); }
.fields input, .fields textarea, .modal input, .modal textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; font: 1rem var(--sans); color: var(--ink); background: var(--paper); outline: none; transition: border-color .2s, box-shadow .2s; }
.fields input:focus, .fields textarea:focus, .modal input:focus, .modal textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(53,84,67,.12); background: #fff; }
.fields input:user-invalid { border-color: var(--rust); }
.hp { position: absolute !important; left: -9999px; }
.error { color: var(--rust); font-weight: 600; min-height: 1em; margin: 0 0 10px; font-size: .92rem; }
.fine { color: var(--muted); font-size: .85rem; text-align: center; margin: 12px 0 0; }

/* ── Confirmation / closed ── */
.panel { max-width: 520px; margin: 0 auto; text-align: center; }
.panel h2 { font-size: 1.7rem; margin-bottom: 8px; }
.check { font-size: 2.8rem; }
.order-id { color: var(--muted); margin: 0 0 16px; }
.panel .summary { text-align: left; margin-bottom: 8px; }
.due { font-size: 1.2rem; margin: 14px 0 18px; }
.due strong { color: var(--green); font-size: 1.5rem; }
.panel code { display: inline-block; margin-top: 4px; background: var(--cream); padding: 4px 10px; border-radius: 8px; font-size: .85rem; color: var(--ink); }
.pickup { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }

/* ── Sticky order bar ── */
.orderbar { position: fixed; left: 50%; bottom: 16px; transform: translate(-50%, 140%); display: flex; align-items: center; justify-content: space-between; gap: 20px; width: min(520px, calc(100% - 32px)); padding: 14px 22px; border-radius: 999px; background: var(--green); color: #fff; text-decoration: none; box-shadow: 0 10px 30px rgba(36,57,46,.35); transition: transform .3s ease, visibility .3s; visibility: hidden; z-index: 50; }
.orderbar.show { transform: translate(-50%, 0); visibility: visible; }
.orderbar strong { font-size: 1.15rem; }
#bar-count { opacity: .8; font-size: .9rem; margin-left: 6px; }
.orderbar-cta { font-weight: 600; }

/* ── Footer ── */
.footer { text-align: center; padding: 40px 16px 110px; background: var(--cream); color: var(--muted); font-size: .85rem; }
.social { display: flex; justify-content: center; gap: 14px; margin-bottom: 14px; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--green); transition: background .2s, color .2s; }
.social a:hover { background: var(--green); color: #fff; }
.social svg { width: 18px; height: 18px; fill: currentColor; }

/* ── Contact modal ── */
.modal-overlay { display: none; position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.45); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); padding: 20px; overflow-y: auto; }
.modal-overlay.open { display: flex; }
.modal { position: relative; margin: auto; width: 100%; max-width: 440px; background: #fff; border-radius: 20px; padding: 36px 30px; box-shadow: 0 20px 60px rgba(0,0,0,.15); animation: slideUp .25s ease; }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.modal h2 { font-size: 1.5rem; }
.modal-sub { color: var(--muted); margin: 6px 0 20px; }
.modal-close { position: absolute; top: 12px; right: 16px; background: none; border: 0; font-size: 1.6rem; color: #a0a8a3; cursor: pointer; }
.captcha { margin-bottom: 16px; }
.contact-success { text-align: center; padding: 16px 0; }

/* ── Mobile ── */
@media (max-width: 720px) {
  .details-grid { grid-template-columns: 1fr; }
  .your-order { position: static; }
  .facts { grid-template-columns: 1fr; max-width: 320px; }
  .facts:has(> div[hidden]) { grid-template-columns: 1fr; max-width: 320px; }
  .menu { grid-template-columns: 1fr; }
  .orderbar-cta { font-size: .9rem; }
}

/* ── Last-day countdown banner ─────────────────────────────────────────── */
.countdown {
  position: sticky; top: 0; z-index: 60;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px;
  padding: 10px 16px 8px; background: var(--rust); color: #fff; text-align: center;
  box-shadow: 0 6px 16px rgba(166, 75, 60, .25);
}
.countdown[hidden] { display: none; }
/* scalloped bottom edge, like a pie crust */
.countdown::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px;
  background: radial-gradient(circle at 8px 0, var(--rust) 7.5px, transparent 8px) 0 0 / 16px 8px repeat-x;
}
.cd-emoji { font-size: 1.35rem; vertical-align: -2px; margin-right: 2px; display: inline-block; animation: cd-wiggle 2.4s ease-in-out infinite; transform-origin: 50% 70%; }
.cd-text { margin: 0; font-size: .95rem; }
.cd-text strong { font-family: var(--serif); font-size: 1.1rem; letter-spacing: .01em; }
.cd-clock { display: flex; align-items: flex-start; gap: 4px; }
.cd-unit {
  display: flex; flex-direction: column; align-items: center; min-width: 2.6em; padding: 3px 6px 2px;
  background: #fff; color: var(--rust); border-radius: 10px; box-shadow: 0 2px 0 rgba(0, 0, 0, .18);
}
.cd-unit b { font-family: var(--serif); font-size: 1.25rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.cd-unit small { font-size: .6rem; text-transform: uppercase; letter-spacing: .08em; opacity: .8; }
.cd-sep { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; line-height: 1.6; }
.cd-cta {
  padding: 6px 14px; border-radius: 999px; background: var(--cream); color: var(--rust);
  font-weight: 600; font-size: .9rem; text-decoration: none; border: 2px solid #fff;
}
.cd-cta:hover { background: #fff; }
.countdown.urgent .cd-unit { animation: cd-pulse 1s ease-in-out infinite; }
body.has-countdown .order, body.has-countdown #order-form { scroll-margin-top: 110px; }
@keyframes cd-wiggle { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(-14deg); } 80% { transform: rotate(12deg); } 90% { transform: rotate(-6deg); } }
@keyframes cd-pulse { 50% { transform: scale(1.06); } }
@media (max-width: 560px) {
  .countdown { gap: 6px 10px; padding: 8px 12px 6px; }
  .cd-text { flex-basis: 100%; }
  .cd-text > span:not(.cd-emoji) { display: none; }
  .cd-unit { min-width: 2.3em; }
}
@media (prefers-reduced-motion: reduce) {
  .cd-emoji, .countdown.urgent .cd-unit { animation: none; }
}

.nowrap { white-space: nowrap; }

/* Order-by deadline callout */
.deadline {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center;
  margin: 0 auto 26px; padding: 8px 18px 8px 8px; border-radius: 999px;
  background: #fff; border: 2px solid var(--rust); color: var(--ink); font-size: 1.05rem;
  box-shadow: 0 3px 0 rgba(166, 75, 60, .18);
}
.deadline strong { color: var(--rust); font-family: var(--serif); font-size: 1.15rem; white-space: nowrap; }
.deadline-label {
  padding: 4px 12px; border-radius: 999px; background: var(--rust); color: #fff;
  font-size: .72rem; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase;
}
.deadline-sm { margin: 14px auto 0; font-size: .95rem; }
.deadline-sm strong { font-size: 1.02rem; }
.facts .fact-deadline { border: 2px solid var(--rust); }
.facts .fact-deadline dt, .facts .fact-deadline dd { color: var(--rust); }
