/* White Lotus PCA Member App — editorial redesign
   Design language inspired by Sweetgreen (capture 2026-11-03):
   warm linen paper, huge editorial type, full-bleed imagery, heavy whitespace,
   restrained deep-green + lime accents, outlined pill buttons. */

:root {
  --linen: #f4f3e7;         /* warm paper background */
  --forest: #00473c;        /* deep green (primary accent) */
  --forest-deep: #003128;
  --lime: #e6ff55;          /* bright accent, used sparingly */
  --ink: #0e150e;           /* near-black text */
  --muted: #8c8c82;         /* secondary text */
  --sage: #d8e5d6;          /* soft green block */
  --sand: #e8dcc6;          /* warm block */
  --line: rgba(14, 21, 14, 0.14);

  --radius: 20px;
  --radius-pill: 1000px;
  --tabbar-h: 76px;

  --font-display: "Grenette", Georgia, Cambria, "Times New Roman", Times, serif;
  --font-body: "SweetSansText", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --linen: #0e150e;
    --ink: #f4f3e7;
    --muted: #9aa79c;
    --line: rgba(244, 243, 231, 0.16);
    --sage: #16241d;
    --sand: #241d12;
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Force crisp readable type everywhere. Serif display faces render too light
   by default, so headings get an explicit strong colour and weight. */
h1, h2, h3, .section-title, .card h3 {
  color: var(--ink);
  font-weight: 600;
}
p, span, li, .price, .muted, .section-sub, .card p, .app-header h1, .subtitle {
  color: var(--ink);
}
.muted, .section-sub, .subtitle { color: var(--muted); }
.card p { color: var(--muted); }

/* ---------- header: warm strip, tiny uppercase, generous space ---------- */
.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: max(18px, env(safe-area-inset-top)) 22px 16px;
  background: var(--linen);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; }
.lotus { font-size: 24px; }
.app-header h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1;
}
.subtitle {
  margin: 4px 0 0;
  font-size: .62rem;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- outlined pill button (Sweetgreen style) ---------- */
.ghost-btn {
  background: transparent;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  border-radius: var(--radius-pill);
  padding: 9px 18px;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .2px;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.ghost-btn:hover { background: var(--ink); color: var(--linen); }

/* cart button, top right of the header */
.header-actions { display: flex; align-items: center; gap: 8px; }
.cart-top {
  position: relative;
  background: transparent;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.cart-top:hover { background: var(--ink); color: var(--linen); }
.cart-top .cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  margin: 0;
}

/* ---------- view ---------- */
.view {
  padding: 26px 22px calc(var(--tabbar-h) + 40px);
  max-width: 720px;
  margin: 0 auto;
  opacity: 1;
  animation: rise .35s ease;
}
/* animate transform only, never opacity: a stuck opacity:0 would ghost the
   whole page (it did in headless capture and would in any paused render). */
@keyframes rise { from { transform: translateY(8px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .view { animation: none; } }

/* ---------- hero: appetite first ---------- */
.hero {
  padding: 8px 0 30px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 30px;
}
.eyebrow {
  font-size: .66rem;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: 3.4rem;
  line-height: .98;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 16px;
  white-space: pre-line;
}
.hero-sub {
  font-size: 1.02rem;
  color: var(--muted);
  margin: 0 0 24px;
  max-width: 42ch;
  line-height: 1.5;
}
.hero .btn { max-width: 320px; }

/* ---------- eyebrow + editorial headings ---------- */
.section-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin: 0 0 10px;
}
.section-sub {
  color: var(--muted);
  font-size: .95rem;
  margin: 0 0 26px;
  max-width: 46ch;
}

/* ---------- cards: flat on paper, image-forward, big radius ---------- */
.card {
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  margin-bottom: 30px;
}
.card .thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--sage), var(--sand));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin-bottom: 14px;
  overflow: hidden;
}
.card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  margin-bottom: 14px;
}
.card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0 0 2px;
  text-transform: uppercase;
}
.card .price {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}
.card p { margin: 6px 0 0; color: var(--muted); font-size: .92rem; }

/* choice chips (Two Raw Sisters pattern): tap to filter */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 26px;
}
.chip {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: var(--radius-pill);
  padding: 9px 16px;
  font-size: .82rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.chip.on {
  background: var(--lime);
  border-color: var(--lime);
  color: #3a2f04;
  font-weight: 600;
}

/* sectioned text-led specials (mirrors the MS Access feed, no photos) */
.updated {
  font-size: .74rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: -14px 0 22px;
}
.section-head {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 30px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.section-note {
  font-size: .84rem;
  color: var(--muted);
  font-style: italic;
  margin: 14px 0 4px;
  line-height: 1.5;
}
.dish { padding: 14px 0; border-bottom: 1px solid var(--line); }
.dish:last-of-type { border-bottom: 0; }
.dish-name {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 5px;
  color: var(--ink);
}
.dish-desc { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.5; }

/* tiny uppercase tags */
/* advance-notice badge (e.g. breads made to order) */
.card-notice {
  display: inline-block;
  font-size: .64rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--forest);
  border: 1px solid var(--forest);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  margin: 8px 0 2px;
}

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tag {
  font-size: .62rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.tag:hover { background: var(--ink); color: var(--linen); }
a.btn {
  display: inline-block;
  text-decoration: none;
  text-align: center;
  margin-top: 12px;
}
.tag.gold { border-color: var(--forest); color: var(--forest); }
@media (prefers-color-scheme: dark) { .tag.gold { border-color: var(--lime); color: var(--lime); } }

.row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 14px;
  padding: 15px 20px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--forest);
  color: var(--linen);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { opacity: .9; }
.btn:active { transform: scale(.985); }
.btn.secondary { background: var(--lime); color: var(--ink); }
.btn.mini { width: auto; margin-top: 14px; padding: 12px 26px; }

/* ---------- note: quiet sage block ---------- */
.note {
  background: var(--sage);
  border: 0;
  color: var(--ink);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: .85rem;
  margin-bottom: 26px;
}

/* ---------- tab bar: paper, hairline, no glass ---------- */
.tabbar {
  position: fixed;
  inset-inline: 0;
  inset-block-end: 0;
  z-index: 30;
  height: var(--tabbar-h);
  padding-bottom: env(safe-area-inset-bottom);
  display: grid;
  /* one column per tab, so any count stays on a single row without wrapping */
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  background: var(--linen);
  border-top: 1px solid var(--line);
  transform: translateZ(0);
}
.tab {
  border: 0;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: .56rem;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  padding: 9px 2px 7px;
  white-space: nowrap;
  transition: color .18s ease;
}
.tab .tab-icon { font-size: 1.3rem; line-height: 1; }
.tab.active { color: var(--ink); }
.tab.active .tab-icon { transform: translateY(-1px); }

.muted { color: var(--muted); font-size: .85rem; }

/* cart */
.cart-badge {
  position: absolute;
  top: 8px;
  right: 50%;
  transform: translateX(150%);
  background: var(--forest);
  color: var(--linen);
  font-size: .62rem;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  line-height: 17px;
  text-align: center;
  border-radius: 1000px;
  padding: 0 4px;
}
.cart-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.cart-left { flex: 1; }
.cart-unit { margin: 3px 0 0; color: var(--muted); font-size: .82rem; }
.cart-qty { display: flex; align-items: center; gap: 10px; }
.qty-btn {
  width: 32px; height: 32px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 1000px;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--ink);
}
.qty-num { min-width: 20px; text-align: center; font-weight: 600; }
.cart-total {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 24px 0 8px;
  padding-top: 16px;
  border-top: 2px solid var(--ink);
}
.field { margin: 22px 0; }
.field-label {
  display: block;
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.add-btn { margin-top: 10px; }
.tab { position: relative; }

/* multi-price chooser (cup/mug, salad only / salad and fries) */
.chooser { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chooser .chip { font-size: .76rem; padding: 7px 13px; }

/* kitchen note box */
.note-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: .9rem;
  color: var(--ink);
  font-family: inherit;
  resize: vertical;
  line-height: 1.4;
}
.note-input::placeholder { color: var(--muted); }

/* search box */
.search-box { margin: 4px 0 18px; }
.search-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: var(--radius-pill);
  padding: 13px 18px;
  font-size: 1rem;
  color: var(--ink);
  font-family: inherit;
}
.search-input::placeholder { color: var(--muted); }
.search-where {
  font-size: .68rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}

/* shared text inputs (RSVP name/count, order name/phone, custom time) */
.rsvp-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: var(--radius-pill);
  padding: 11px 15px;
  font-size: .92rem;
  color: var(--ink);
  font-family: inherit;
}
.rsvp-input::placeholder { color: var(--muted); }
.rsvp-count { width: 90px; }
.rsvp-form { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.rsvp-form .btn { align-self: flex-start; }
.rsvp-done { margin-top: 12px; color: var(--ink); font-size: .92rem; line-height: 1.45; }

/* custom collection time */
.custom-time { display: flex; gap: 10px; align-items: center; margin-top: 12px; }
.custom-time input[type="time"] {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: var(--radius-pill);
  padding: 9px 14px;
  font-size: .9rem;
  color: var(--ink);
  font-family: inherit;
}

/* --- Member gate (unauthenticated landing) ------------------------------- */
body.gated .tabbar { display: none; }
body.gated .header-cart { display: none; }
.gate {
  max-width: 460px;
  margin: 8vh auto 0;
  padding: 0 20px;
  text-align: center;
}
.gate-title {
  font-size: 1.9rem;
  margin: 0 0 2px;
  color: var(--ink);
}
.gate-sub {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .72rem;
  color: var(--muted);
  margin: 0 0 26px;
}
.gate-prompt {
  color: var(--ink);
  margin: 0 0 18px;
  line-height: 1.5;
}
.gate .field { margin: 0 auto 16px; max-width: 340px; }
.gate-input {
  width: 100%;
  padding: 13px 14px;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid rgba(0,0,0,.18);
  border-radius: 10px;
  background: #fff;
  box-sizing: border-box;
}
.gate-btn {
  width: 100%;
  max-width: 340px;
  padding: 14px;
  font-size: 1rem;
}
.gate-msg { margin: 16px 0 0; min-height: 1.2em; }
.gate-msg a, .gate-join a { color: var(--accent, #2f6b52); text-decoration: underline; }
.gate-join { margin-top: 28px; color: var(--muted); font-size: .92rem; line-height: 1.5; }
