@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,600;0,700;1,600&family=Outfit:wght@400;500;600;700&display=swap');

:root {
  --bg: #f4ece2;
  --surface: #fff8f0;
  --ink: #2a1c14;
  --muted: #7a6456;
  --line: #e2d2c2;
  --accent: #b4532a;
  --accent-dark: #8a3a1c;
  --accent-soft: rgba(180, 83, 42, 0.12);
  --danger: #b42318;
  --ok: #3d7a4a;
  --radius: 14px;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Outfit', system-ui, sans-serif;
  --shadow: 0 10px 30px rgba(42, 28, 20, 0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { color-scheme: light; }
body {
  font-family: var(--sans);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.55;
  background: var(--bg);
}

.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 8px;
}
.hero-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 40%;
}
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(42,28,20,0.28) 0%, rgba(42,28,20,0.45) 38%, rgba(42,28,20,0.92) 100%),
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(180,83,42,0.22), transparent 60%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 48px 18px 36px;
  max-width: 640px;
  color: #fff8f0;
}
.brand-mark {
  width: 88px; height: 88px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #d4a017;
  display: block;
  margin: 0 auto 10px;
  background: #2a1c14;
}
.wordmark {
  font-family: var(--serif);
  font-size: clamp(2rem, 7vw, 3.1rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  color: #fff8f0;
}
.wordmark span { color: #e8c36a; }
.script-line {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #e8c36a;
  margin: 8px 0 10px;
  font-weight: 600;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.85rem, 6vw, 3rem);
  line-height: 1.08;
  margin: 4px 0 12px;
}
.hero .lede {
  color: #f0e4d4;
  max-width: 34rem;
  margin: 0 auto 16px;
  font-size: 1rem;
}
.phone-pill {
  display: inline-block;
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: clamp(1.4rem, 4vw, 2rem);
  color: #fff8f0;
  text-decoration: none;
  border: 3px solid #e8c36a;
  border-radius: 12px;
  padding: 8px 18px 10px;
  background: rgba(42, 28, 20, 0.55);
}
.phone-pill:hover { background: var(--accent); border-color: var(--accent); }
.insured {
  margin-top: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e8c36a;
  font-weight: 700;
}

.wrap { max-width: 980px; margin: 0 auto; padding: 0 18px 72px; }

.how-it-works {
  list-style: none;
  display: grid;
  gap: 8px;
  margin: 18px 0 12px;
  font-size: 0.95rem;
}
.how-it-works li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
}
.how-it-works strong { color: var(--accent); margin-right: 6px; }

.trust-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}
.trust-row li {
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-radius: 99px;
  padding: 6px 10px;
}

.mode-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 4px 0 12px;
}
.mode-btn {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 14px;
  border-radius: 12px;
  cursor: pointer;
}
.mode-btn.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.mode-note { margin: 0 0 12px; }
.window-closed {
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 0 0 16px;
  display: grid;
  gap: 8px;
}
.window-closed .btn { justify-self: start; }
.day-picks { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.day-pick {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.9rem; font-weight: 600; text-transform: none; letter-spacing: 0;
  color: var(--ink);
}
.product-card.is-preorder { border-color: #8a3a1c; }
.product-card.is-preorder-only { border-color: #d4a017; }
.run-pill.preorder { background: #8a3a1c; }

.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  font-size: 0.85rem;
  padding: 8px 12px;
  border-radius: 99px;
  cursor: pointer;
}
.chip.on { background: var(--accent); color: #fff; border-color: var(--accent); }

.product-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.product-card.is-limited { border-color: #d4a017; }
.product-card.sold-out { opacity: 0.72; }
.product-photo { position: relative; aspect-ratio: 4 / 3; background: #e8d8c8; }
.product-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.no-photo {
  height: 100%; display: grid; place-items: center;
  color: var(--muted); font-size: 0.85rem;
}
.run-pill {
  position: absolute; left: 10px; bottom: 10px;
  background: #2a1c14; color: #fff8f0;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 8px; border-radius: 99px;
}
.product-body { padding: 14px 14px 16px; display: grid; gap: 6px; flex: 1; }
.product-body .cat {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent);
}
.product-body h3 { font-family: var(--serif); font-size: 1.35rem; line-height: 1.15; }
.product-body .blurb { color: var(--muted); font-size: 0.9rem; }
.extra-shots { font-size: 0.75rem; color: var(--ok); }
.product-buy {
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px; margin-top: 8px;
}
.product-buy strong { font-family: var(--serif); font-size: 1.35rem; }
.qty { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 650; color: var(--muted); }
.qty input {
  width: 64px; font: inherit; font-size: 1rem; font-weight: 600; color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; background: #fff;
}
.muted { color: var(--muted); font-size: 0.82rem; }

.cart-bar {
  position: sticky; bottom: 16px;
  margin-top: 18px;
  background: #2a1c14; color: #fff8f0;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  box-shadow: var(--shadow);
}
.cart-bar div { display: grid; gap: 2px; }
.cart-bar span { color: #e8c36a; }

.section-title {
  font-family: var(--serif);
  font-size: 1.6rem;
  margin: 22px 0 10px;
}

.sub { color: var(--muted); font-size: 0.88rem; margin: 8px 0; }
.empty { color: var(--muted); padding: 24px 0; }

.form-grid { display: grid; gap: 12px; }
.form-grid.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .form-grid.two { grid-template-columns: 1fr; } }

label.field { display: grid; gap: 6px; font-size: 0.8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
label.field input, label.field select, label.field textarea {
  font: inherit; font-size: 1rem; font-weight: 500; color: var(--ink);
  text-transform: none; letter-spacing: 0;
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px;
  background: #fff;
}
label.field input:focus, label.field select:focus, label.field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
label.field textarea { min-height: 90px; resize: vertical; }

.actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.btn {
  appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 650;
  border-radius: 11px; padding: 12px 16px; font-size: 0.95rem;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--accent-dark); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-sm { padding: 8px 12px; font-size: 0.82rem; margin-bottom: 8px; }

.alert {
  margin-top: 12px; padding: 10px 12px; border-radius: 10px; font-size: 0.88rem;
  background: rgba(180, 35, 24, 0.1); color: var(--danger); border: 1px solid rgba(180, 35, 24, 0.28);
  display: none;
}
.alert.show { display: block; }

.done { text-align: center; padding: 28px 12px; }
.done h2 { font-family: var(--serif); font-size: 1.8rem; margin-bottom: 8px; }
.done p { color: var(--muted); }

.site-footer {
  text-align: center; margin-top: 36px; font-size: 0.75rem; color: var(--muted);
}
.site-footer a { color: var(--accent-dark); }

.inv-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; margin: 8px 0; }
.inv-table th, .inv-table td { text-align: left; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.inv-table th { color: var(--muted); font-weight: 600; }
.inv-table .inv-total td { font-weight: 700; font-size: 0.95rem; }
.inv-table.customer td:last-child { text-align: right; }

/* Admin */
.admin-trigger {
  position: fixed; bottom: 20px; right: 20px; z-index: 9000;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--accent-dark);
  font-size: 1.15rem; cursor: pointer; box-shadow: var(--shadow);
}
.admin-trigger:hover { border-color: var(--accent); background: var(--accent-soft); }

.admin-overlay {
  position: fixed; inset: 0; z-index: 9500;
  background: rgba(42, 28, 20, 0.55);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 16px;
}
@media (min-width: 720px) {
  .admin-overlay { align-items: center; }
}

.admin-card, .admin-panel {
  background: var(--surface); border-radius: 16px; width: min(560px, 100%);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  padding: 20px; max-height: min(88vh, 820px); overflow: auto;
}
.admin-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.admin-card input[type="password"] {
  width: 100%; font: inherit; padding: 11px 12px; border-radius: 10px;
  border: 1px solid var(--line); margin-top: 4px;
  background: #fff; color: inherit;
}
.pin-hint { margin-top: 12px; font-size: 0.75rem; color: var(--muted); }

.admin-shell {
  background: var(--surface); border-radius: 16px; width: min(960px, 100%);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  max-height: min(92vh, 900px); display: flex; flex-direction: column; overflow: hidden;
}
.admin-shell-head {
  display: flex; justify-content: space-between; gap: 12px; align-items: flex-start;
  padding: 16px 18px; border-bottom: 1px solid var(--line);
}
.admin-shell-head h2 { font-size: 1.15rem; }
.admin-shell-head p { font-size: 0.78rem; color: var(--muted); }
.admin-tabs {
  display: flex; flex-wrap: wrap; gap: 4px; padding: 8px 12px; border-bottom: 1px solid var(--line); background: #f4ece2;
}
.admin-tabs button {
  border: 0; background: transparent; font: inherit; font-weight: 650; font-size: 0.85rem;
  padding: 8px 12px; border-radius: 8px; cursor: pointer; color: var(--muted);
  white-space: nowrap;
}
.admin-tabs button.on { background: var(--surface); color: var(--accent-dark); border: 1px solid var(--line); }
.admin-shell-body { padding: 14px 18px 20px; overflow: auto; flex: 1; }

.admin-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.stat-pill {
  background: #f4ece2; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px;
  display: grid; gap: 2px; min-width: 72px;
}
.stat-pill strong { font-size: 1.1rem; }
.stat-pill span { font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }

.lead-row {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  text-align: left; border: 1px solid var(--line); border-radius: 12px; background: #fff;
  padding: 12px 14px; margin-bottom: 8px; cursor: pointer; font: inherit; color: inherit;
}
.lead-row:hover { border-color: var(--accent); }
.lead-row-main { display: grid; gap: 2px; }
.lead-row-main small { color: var(--muted); font-size: 0.8rem; }
.lead-row-meta { display: grid; gap: 4px; justify-items: end; font-size: 0.85rem; }
.badge {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  background: var(--accent-soft); color: var(--accent-dark); padding: 3px 8px; border-radius: 99px;
}

.lead-detail-head {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 10px 0 14px;
}
.lead-detail-head h3 { font-size: 1.2rem; }
.lead-detail-head p { font-size: 0.88rem; color: var(--muted); }
.admin-grid-2 { display: grid; gap: 12px; }
@media (min-width: 720px) { .admin-grid-2 { grid-template-columns: 1fr 1fr; } }
.admin-block {
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px;
}
.admin-block h4 { font-size: 0.92rem; margin-bottom: 8px; }
.admin-block .sub, .field.tight { margin-bottom: 8px; }

.invoice-box { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.settings-form h4 { margin: 16px 0 8px; font-size: 0.95rem; }
.empty-leads { color: var(--muted); font-size: 0.9rem; padding: 12px 0; }
code { font-size: 0.78rem; background: #f4ece2; padding: 2px 6px; border-radius: 4px; }

.earnings-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap;
  margin-bottom: 8px;
}
.earnings-head h4 { margin: 0; }
.earnings-filters { display: flex; gap: 10px; flex-wrap: wrap; }
.admin-tabs button.tab-due { color: var(--accent-dark); }
.bucket-grid { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.bucket-grid .btn { margin: 0; }
.expense-form { display: grid; gap: 8px; margin: 8px 0 12px; align-items: end; }
.card-form { display: grid; gap: 10px; max-width: 520px; margin-bottom: 14px; }
.card-stage { display: grid; gap: 16px; }
.flyer-sheet, .square-sheet { border: 1px solid var(--line); border-radius: 12px; }
.flyer-sheet {
  background: var(--surface); color: var(--ink); padding: 28px 24px; min-height: 280px;
  display: grid; align-content: start; gap: 10px;
}
.flyer-bar { height: 6px; width: 72px; background: var(--accent); border-radius: 99px; }
.flyer-shop, .square-sheet strong { font-family: var(--serif); line-height: 1.05; }
.flyer-shop { font-size: 2rem; }
.flyer-service { color: var(--accent); font-weight: 700; }
.flyer-phone { font-weight: 650; }
.square-sheet {
  width: 260px; height: 260px; background: var(--bg); color: var(--ink); padding: 18px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.square-sheet strong { font-size: 1.35rem; }
@media (min-width: 800px) {
  .expense-form { grid-template-columns: 140px 120px 150px 1fr 120px auto; }
  .expense-form-fixed { grid-template-columns: 1fr 160px auto; max-width: 640px; }
  .card-stage { grid-template-columns: 1fr 280px; align-items: start; }
}
.crew-week { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 8px 0 12px; }
.crew-names { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.crew-scroll { overflow-x: auto; }
.crew-board { width: 100%; border-collapse: collapse; font-size: 0.78rem; }
.crew-board th, .crew-board td { border: 1px solid var(--line); padding: 6px; vertical-align: top; min-width: 92px; }
.crew-board th { color: var(--muted); font-weight: 650; text-align: left; }
.crew-chip {
  display: grid; width: 100%; text-align: left; border: 0; cursor: pointer; font: inherit; color: inherit;
  background: var(--accent-soft); border-radius: 8px; padding: 4px 6px; margin-bottom: 4px;
}
.crew-chip small { color: var(--muted); }
.crew-off { display: block; color: var(--muted); font-size: 0.72rem; margin-bottom: 4px; }
.day-off-form { grid-template-columns: 1fr; }
.off-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 4px; }
.desk-row { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.desk-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.tomorrow-list { display: grid; gap: 8px; }
.tomorrow-card {
  display: grid; gap: 2px; text-align: left; width: 100%; cursor: pointer; font: inherit; color: inherit;
  border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 10px 12px;
}
.customer-card { margin-top: 12px; }
@media (min-width: 800px) {
  .day-off-form { grid-template-columns: 150px 180px 1fr auto; }
}

.route-board {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.route-col h4 {
  font-size: 0.85rem; margin-bottom: 8px; display: flex; justify-content: space-between;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.route-col h4 small { color: var(--muted); font-weight: 600; }
.route-col .lead-row { padding: 8px 10px; }
.route-col .empty-leads { font-size: 0.78rem; padding: 6px 0; }

.goods-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap;
  margin-bottom: 12px;
}
.goods-row { align-items: stretch; }
.goods-thumb {
  width: 56px; height: 56px; border-radius: 10px; overflow: hidden;
  background: #e8d8c8; flex-shrink: 0;
}
.goods-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.service-opt {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: 12px; padding: 14px;
  margin: 10px 0;
}
.service-opt input { margin-top: 3px; accent-color: var(--accent); }
.service-opt strong { display: block; font-size: 0.95rem; }
.service-opt small { color: var(--muted); font-size: 0.82rem; }

.admin-photo-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-top: 8px;
}
.admin-photo-grid figure {
  margin: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff;
}
.admin-photo-grid figure.is-cover { border-color: #d4a017; }
.admin-photo-grid figcaption {
  font-size: 0.7rem; padding: 4px 6px; color: var(--muted);
}
.admin-photo-grid img { width: 100%; height: 100px; object-fit: cover; display: block; }
.admin-photo-grid .btn { margin: 0 6px 8px; }

.upload-bar {
  display: grid; gap: 10px;
  grid-template-columns: 1.2fr 1fr 1fr auto;
  align-items: end;
  margin: 12px 0 16px;
}
@media (max-width: 800px) { .upload-bar { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .upload-bar { grid-template-columns: 1fr; } }

.image-library {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.image-card {
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff;
}
.image-card.is-cover { border-color: #d4a017; box-shadow: 0 0 0 2px rgba(212, 160, 23, 0.25); }
.image-card img { width: 100%; height: 150px; object-fit: cover; display: block; }
.image-card-body { padding: 10px 12px 12px; display: grid; gap: 6px; }
.image-card-body small { color: var(--muted); font-size: 0.75rem; }
.image-card-body .actions { margin-top: 4px; }
.