/* Pind Chaliye thali portal. Palette sampled from the brand master (same tokens as the
   25 Sep quotation). Every text/background pair below was chosen to clear WCAG AA 4.5:1:
     ink #0B0A27 on cream #F4EADF  17.6:1     navy #141347 on white   17.3:1
     white on navy                 17.3:1     red  #971C1F on white    8.4:1
     white on red                   8.4:1     muted #4A4760 on cream   7.8:1
   Gold is decoration only, and only ever on navy (11.2:1). */

@font-face { font-family: 'Barlock'; src: url('/fonts/barlock.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('/fonts/poppins-400-latin.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('/fonts/poppins-600-latin.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --navy: #141347; --red: #971C1F; --gold: #FFC913; --cream: #F4EADF; --card: #FFFFFF;
  --ink: #0B0A27; --muted: #4A4760; --line: #D9CDBF; --ok: #1E6B2E; --ok-bg: #E6F2E8;
  --warn-bg: #FFF4D6; --warn: #6B4E00; --err-bg: #FBE9E9;
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Barlock', Georgia, serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--font);
       font-size: 16px; line-height: 1.5; }
[hidden] { display: none !important; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--navy); color: #fff;
             padding: 8px 12px; z-index: 10; }
.skip-link:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

.masthead { background: var(--navy); color: #fff; border-bottom: 4px solid var(--gold); }
.masthead-inner { max-width: 880px; margin: 0 auto; padding: 14px 16px; display: flex;
                  justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.brand { font-family: var(--display); font-size: 28px; line-height: 1; color: var(--gold); }
.brand-sub { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; margin-top: 4px; }
.who { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.who .link-btn { color: #fff; }

main { max-width: 880px; margin: 0 auto; padding: 20px 16px 40px; outline: none; }
h1 { font-size: 26px; line-height: 1.2; margin: 8px 0 6px; color: var(--navy); }
h2 { font-size: 20px; margin: 0 0 10px; color: var(--navy); }
.lede { margin: 0 0 18px; color: var(--muted); }
.muted { color: var(--muted); }
.hint { font-size: 13px; color: var(--muted); margin: 6px 0 0; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 18px; margin: 0 0 16px; }
.narrow { max-width: 440px; }
.notice { border-left: 5px solid var(--red); }

label { display: block; font-weight: 600; margin: 0 0 6px; }
input, textarea { width: 100%; font: inherit; font-size: 17px; padding: 11px 12px; border: 2px solid var(--line);
                  border-radius: 8px; background: #fff; color: var(--ink); }
input:focus, textarea:focus { border-color: var(--navy); }
#code { font-size: 26px; letter-spacing: 8px; max-width: 220px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 20px;
       font: inherit; font-weight: 600; border-radius: 8px; border: 2px solid var(--navy); background: #fff;
       color: var(--navy); cursor: pointer; margin: 14px 10px 0 0; }
.btn.primary { background: var(--navy); color: #fff; }
.btn.big { min-height: 56px; font-size: 18px; width: 100%; margin-right: 0; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.danger { border-color: var(--red); color: var(--red); }
.link-btn { background: none; border: none; padding: 6px 0; min-height: 44px; font: inherit; color: var(--navy);
            text-decoration: underline; cursor: pointer; margin-top: 10px; display: block; }
.row { display: flex; flex-wrap: wrap; gap: 0 10px; }
.row .btn.big { flex: 1 1 220px; width: auto; }

.error { background: var(--err-bg); color: var(--red); border-radius: 6px; padding: 10px 12px; margin: 12px 0 0; font-weight: 600; }
.flash { background: var(--ok-bg); color: var(--ok); border-radius: 8px; padding: 12px 14px; margin: 0 0 16px; font-weight: 600; }
.flash.bad { background: var(--err-bg); color: var(--red); }

.tabs { display: flex; gap: 8px; margin: 0 0 8px; }
.tab { flex: 1 1 0; min-height: 46px; font: inherit; font-weight: 600; border: 2px solid var(--navy); border-radius: 8px;
       background: #fff; color: var(--navy); cursor: pointer; }
.tab[aria-pressed="true"] { background: var(--navy); color: #fff; }

.step { border: none; padding: 0; margin: 0 0 22px; min-width: 0; }
.step legend { font-size: 18px; font-weight: 600; color: var(--navy); margin-bottom: 10px; padding: 0; }
.num { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: #fff;
       align-items: center; justify-content: center; font-size: 15px; margin-right: 6px; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; }
.chip { flex: 0 0 auto; min-width: 74px; min-height: 64px; border: 2px solid var(--line); border-radius: 10px;
        background: #fff; color: var(--ink); font: inherit; cursor: pointer; padding: 6px 8px; text-align: center; line-height: 1.2; }
.chip .d { display: block; font-size: 20px; font-weight: 600; }
.chip .w { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.chip[aria-checked="true"] { border-color: var(--navy); background: var(--navy); color: #fff; }
.chip:disabled { color: var(--muted); background: transparent; text-decoration: line-through; cursor: not-allowed; }

.options { display: grid; gap: 8px; }
.opt { display: flex; gap: 12px; align-items: flex-start; border: 2px solid var(--line); border-radius: 10px;
       background: #fff; padding: 12px 14px; cursor: pointer; font-weight: 400; margin: 0; }
.opt input { width: 22px; height: 22px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--navy); }
.opt:has(input:checked) { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
.opt.off { cursor: not-allowed; background: transparent; color: var(--muted); }
.opt strong { display: block; }
.opt .sub { font-size: 14px; color: var(--muted); }
.opt.off .sub { color: var(--red); }

.thalis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.thali { background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--red); border-radius: 10px; padding: 14px 16px; }
.thali:nth-child(2n) { border-left-color: var(--navy); }
.thali-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.thali-name { font-family: var(--display); font-size: 30px; line-height: 1; color: var(--navy); }
.thali-price { font-weight: 600; font-size: 18px; white-space: nowrap; }
.thali-price small { font-weight: 400; font-size: 13px; color: var(--muted); }
.thali ul { margin: 10px 0 12px; padding-left: 20px; font-size: 14px; }
.veg { display: inline-block; font-size: 12px; font-weight: 600; color: var(--ok); border: 1.5px solid var(--ok);
       border-radius: 4px; padding: 0 6px; margin-left: 6px; vertical-align: middle; }

.stepper { display: flex; align-items: center; gap: 8px; }
.stepper button { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--navy); background: #fff;
                  color: var(--navy); font-size: 24px; font-weight: 600; cursor: pointer; line-height: 1; }
.stepper button:disabled { opacity: .4; cursor: not-allowed; }
.stepper input { width: 80px; text-align: center; font-size: 20px; font-weight: 600; padding: 8px 4px; }
.stepper-label { font-weight: 600; margin-right: 4px; }

.customs { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 10px; }
.customs-title { font-size: 14px; font-weight: 600; margin: 0 0 6px; }
.custom { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; flex-wrap: wrap; }
.custom-label { font-size: 14px; }
.custom-label .tag { display: inline-block; font-size: 11px; font-weight: 600; background: var(--warn-bg); color: var(--warn);
                     border-radius: 4px; padding: 0 6px; margin-left: 4px; }
.custom-label .sub { display: block; font-size: 12.5px; color: var(--muted); }
.custom .stepper button { width: 40px; height: 40px; font-size: 20px; }
.custom .stepper input { width: 64px; font-size: 17px; }

.summary { display: grid; gap: 4px; }
.summary .line { display: flex; justify-content: space-between; gap: 10px; }
.summary .total { font-size: 20px; font-weight: 600; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; }
.summary .min { background: var(--warn-bg); color: var(--warn); border-radius: 6px; padding: 8px 10px; font-size: 14px; margin-top: 6px; }

.sentence { font-size: 20px; font-weight: 600; color: var(--navy); margin: 0 0 12px; }
.confirm { border: 2px solid var(--navy); }
.done { border: 2px solid var(--ok); }
.pending-note { background: var(--warn-bg); color: var(--warn); border-radius: 6px; padding: 10px 12px; }

.order { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin: 0 0 12px; }
.order-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.order .sentence { font-size: 16px; margin: 6px 0; }
.status { font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; border-radius: 4px; padding: 2px 8px; }
.status.confirmed { background: var(--ok-bg); color: var(--ok); }
.status.cancelled { background: #ECEAF0; color: var(--muted); }
.status.delivered { background: var(--navy); color: #fff; }
.meta { font-size: 13px; color: var(--muted); }
.req { font-size: 14px; margin: 4px 0; }
.req b.pending { color: var(--warn); }
.req b.accepted { color: var(--ok); }
.req b.declined { color: var(--red); }
.order .btn { min-height: 42px; margin-top: 10px; }

.foot { max-width: 880px; margin: 0 auto; padding: 16px 16px 32px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
.foot a { color: var(--navy); }

@media (max-width: 520px) {
  h1 { font-size: 22px; }
  .sentence { font-size: 17px; }
}
