/* Fatima's Kitchen - shared styles. Warm kitchen palette, light + dark. */

:root {
  --brand: #8b4513;
  --brand-soft: #a9622a;
  --paper: #fdfbf7;
  --card: #ffffff;
  --ink: #3a2a1c;
  --muted: #6f5c49;
  --rule: #e7dcc9;
  --accent: #f3e7d6;
  --ok-bg: #e2f5e5; --ok-ink: #1f6b34;
  --warn-bg: #fbe7d8; --warn-ink: #8a3b1c;
  --shadow: 0 1px 2px rgba(60, 40, 20, .06), 0 8px 24px rgba(60, 40, 20, .06);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1c1712;
    --card: #26201a;
    --ink: #f0e6da;
    --muted: #b9a690;
    --rule: #3b3129;
    --accent: #332a21;
    --brand: #d98a4e;
    --brand-soft: #e2a173;
    --ok-bg: #1e3a26; --ok-ink: #8fe0a5;
    --warn-bg: #3d2417; --warn-ink: #f0b48f;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); line-height: 1.55; font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .4em; }
h1 { font-size: clamp(1.9rem, 5vw, 2.9rem); }
h2 { font-size: clamp(1.35rem, 3.5vw, 1.9rem); }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 640px; }

/* header */
.site-head {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 20px; border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px); z-index: 20;
}
.site-head .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.site-head .brand img { height: 44px; width: auto; display: block; }
.site-head .name { font-family: var(--serif); font-weight: 600; font-size: 1.1rem; }
.site-head .spacer { flex: 1; }
.site-head a.nav { text-decoration: none; font-weight: 600; font-size: .95rem; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--brand); color: #fff; border: 0; border-radius: 999px;
  padding: 13px 26px; font: 600 1rem/1 var(--sans); cursor: pointer;
  text-decoration: none; transition: transform .06s ease, background .15s ease;
}
.btn:hover { background: var(--brand-soft); }
.btn:active { transform: translateY(1px); }
.btn.big { padding: 16px 34px; font-size: 1.1rem; }
.btn.ghost { background: transparent; color: var(--brand); border: 1.5px solid var(--brand); }
.btn[disabled] { opacity: .5; cursor: default; }

/* hero: the branded banner shown whole (it carries its own wordmark), call to action below */
.hero .banner { width: 100%; height: auto; display: block; }
.hero-cta {
  text-align: center; padding: clamp(24px, 5vw, 40px) 20px clamp(28px, 5vw, 44px);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.hero-cta p { margin: 0; max-width: 46ch; }
.hero-cta .lead { font-family: var(--serif); font-size: clamp(1.3rem, 3.6vw, 1.8rem); color: var(--ink); line-height: 1.25; }
.hero-cta .fineprint { font-size: .9rem; color: var(--muted); }

/* sections */
section { padding: clamp(36px, 7vw, 68px) 0; }
section + section { border-top: 1px solid var(--rule); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--brand-soft); margin: 0 0 .5em; }

/* special strip */
.special {
  background: var(--accent); border: 1px solid var(--rule); border-radius: 16px;
  padding: clamp(20px, 4vw, 32px); display: grid; gap: 14px;
}
.special .day { font-family: var(--serif); font-size: 1.5rem; }
.special .items { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.special .items li { display: flex; justify-content: space-between; gap: 12px; }
.special .note { color: var(--muted); font-size: .95rem; }
.special.closed { opacity: .85; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; margin-top: 20px; }
.step { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 18px; box-shadow: var(--shadow); }
.step .n { font-family: var(--serif); font-size: 1.6rem; color: var(--brand); }

/* menu grid */
.cat-title { margin-top: 34px; display: flex; align-items: baseline; gap: 10px; }
.cat-title .rule { flex: 1; height: 1px; background: var(--rule); }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 16px; }
.dish { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.dish img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--accent); }
.dish .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.dish .nm { font-weight: 600; }
.dish .sv { color: var(--muted); font-size: .86rem; }
.dish .pr { margin-top: auto; font-weight: 700; color: var(--brand); }

/* order page */
.store-head { display: grid; gap: 6px; padding: 22px 0 4px; }
.store-head .tagline { color: var(--muted); }
.qline {
  background: var(--card); border: 1px solid var(--rule); border-radius: 14px;
  padding: 12px 14px; margin: 10px 0; display: flex; gap: 12px; align-items: center;
  box-shadow: var(--shadow);
}
.qline .thumb { width: 58px; height: 58px; border-radius: 10px; object-fit: cover; background: var(--accent); flex: none; }
.qline .info { min-width: 0; flex: 1; }
.qline .nm { font-weight: 600; }
.qline .sub { font-size: .84rem; color: var(--muted); }
.stepper { display: flex; align-items: center; gap: 4px; flex: none; }
.stepper button {
  width: 40px; height: 40px; border: 1.5px solid var(--brand); background: var(--card);
  color: var(--brand); font-size: 1.35rem; line-height: 1; border-radius: 10px; cursor: pointer;
}
.stepper button:active { background: var(--brand); color: #fff; }
.stepper button[disabled] { opacity: .35; cursor: default; }
.stepper .q { min-width: 32px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

.bar {
  position: fixed; left: 0; right: 0; bottom: 0; background: var(--card);
  border-top: 1px solid var(--rule); padding: 12px 16px; box-shadow: 0 -6px 20px rgba(0,0,0,.08); z-index: 30;
}
.bar .row { max-width: 640px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bar .tot { font-weight: 700; }
.bar .tot small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; }

.panel { background: var(--card); border: 1px solid var(--rule); border-radius: 16px; padding: 18px; margin: 14px 0; box-shadow: var(--shadow); }
label { display: block; font-weight: 600; font-size: .9rem; margin: 14px 0 5px; }
input, textarea, select {
  width: 100%; padding: 11px 12px; border: 1.5px solid var(--rule); border-radius: 10px;
  font: inherit; background: var(--paper); color: var(--ink);
}
textarea { min-height: 66px; resize: vertical; }
.sumrow { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--rule); }
.sumrow.total { border-bottom: 0; border-top: 2px solid var(--brand); margin-top: 4px; padding-top: 9px; font-weight: 700; }
.err { color: var(--warn-ink); background: var(--warn-bg); border-radius: 10px; padding: 9px 12px; margin: 10px 0 0; font-size: .92rem; }
.back { background: none; border: 0; color: var(--brand); font-weight: 600; cursor: pointer; padding: 6px 0; }
.swishbox { background: var(--accent); border: 1px solid var(--rule); border-radius: 16px; padding: 16px; margin: 12px 0; }
.swishbox img { width: 220px; max-width: 72%; margin: 12px auto 6px; }
.note { color: var(--muted); font-size: .9rem; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; }

/* footer */
.site-foot { border-top: 1px solid var(--rule); padding: 28px 0 44px; color: var(--muted); font-size: .92rem; }
.site-foot strong { color: var(--ink); }

/* admin */
table.orders { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.orders th, table.orders td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.orders th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
table.orders select { padding: 6px 8px; font-size: .85rem; width: auto; }
.tbl-scroll { overflow-x: auto; }
.status-paid { background: var(--ok-bg); color: var(--ok-ink); }
.status-await { background: var(--warn-bg); color: var(--warn-ink); }

[hidden] { display: none !important; }
@media (max-width: 560px) {
  .hero .overlay { background: linear-gradient(0deg, rgba(24,15,8,.9), rgba(24,15,8,.5)); }
  .qline { gap: 9px; padding: 10px 11px; }
  .qline .thumb { width: 46px; height: 46px; }
  .qline .nm { font-size: .95rem; }
  .stepper button { width: 36px; height: 36px; }
  .stepper .q { min-width: 26px; }
}
