/* Punjabi Tandoor: shared tokens and base styles. Built by SmaRTy Saini Corp.
   Bright and fresh: white pages, big food photos, one open-source font (Montserrat, self-hosted),
   black for everyday actions and the brand mustard yellow (#F4B400) for the buttons that place an order. */
@font-face { font-family: 'Montserrat'; src: url('/fonts/montserrat-var.woff') format('woff'); font-weight: 100 900; font-display: swap; }

:root {
  /* Bright and fresh: white pages, Punjabi Tandoor mustard yellow, black for everyday buttons. */
  --black: #17130B;         /* headings and main text: brown so dark it reads as black */
  --dark: #17130B;
  --ink: #2B261C;           /* body text */
  --muted: #5C5546;         /* secondary text (7:1 on white) */
  --faint: #9A8C7C;         /* only for large or non-essential text */
  --line: #ECE6D8;
  --soft: #F6F3EC;          /* chips, inputs, quiet buttons */
  --soft-2: #ECE6D8;
  --white: #FFFFFF;
  --charcoal: #17130B;
  --link: #7D5C00;

  --green: #17130B;         /* everyday buttons, active states (near-black) */
  --green-deep: #3A3224;
  --brand: #F4B400;         /* Punjabi Tandoor mustard yellow */
  --brand-ink: #17130B;     /* text on the brand yellow (11:1) */
  --brand-light: #FFF4CC;
  --saffron: #F4B400;       /* order buttons, with dark text (6.2:1) */
  --saffron-deep: #DDA300;

  /* Brand accents (punjabitandoor.net) */
  --gold: #F4B400;
  --gold-deep: #7D5C00;
  --orange: #FF5B13;
  --order: #E8890C;
  --deal-bg: #FFF4E5;
  --deal-ink: #8A3B00;

  --ok: #1E7A4C;
  --ok-bg: #E6F3EB;
  --alert: #C4231A;
  --alert-bg: #FDECEA;
  --focus: #276EF1;

  --display: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --body: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 8px 24px -12px rgba(0, 0, 0, .22);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .06), 0 24px 60px -20px rgba(0, 0, 0, .35);
  --ease: cubic-bezier(.2, 0, 0, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: #C4C4C4 transparent; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.12; margin: 0; color: var(--dark); letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--black); text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(195, 159, 118, .35); color: var(--black); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* Buttons: dark pills for everyday actions, the tandoor flame for ordering. Quiet ones are light grey. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border: 0; border-radius: 999px;
  background: var(--green); color: var(--white);
  font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: -0.005em; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, transform .12s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--green-deep); color: var(--white); text-decoration: none; }
.btn:active:not([disabled]) { transform: scale(.97); }
.btn[disabled] { background: #D6D6D6; color: #6E6E6E; cursor: not-allowed; transform: none; }
.btn-order { background: var(--green); color: var(--white); }
.btn-order:hover { background: var(--green-deep); color: var(--white); }
.btn-ghost, .btn-gold { background: var(--soft); color: var(--black); }
.btn-ghost:hover, .btn-gold:hover { background: var(--soft-2); color: var(--black); }
.btn-danger { background: var(--alert-bg); color: var(--alert); }
.btn-danger:hover { background: #F9D9D6; color: var(--alert); }
.btn-brand { background: var(--saffron); color: var(--black); }
.btn-brand:hover { background: var(--saffron-deep); color: var(--black); }
.btn-block { width: 100%; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { min-height: 56px; padding: 0 26px; font-size: 17px; }

/* Forms */
label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; color: var(--dark); }
.field { margin-bottom: 16px; }
.hint { color: var(--muted); font-size: 14px; margin-top: 4px; }
input[type=text], input[type=tel], input[type=email], input[type=number], input[type=password], input[type=url], input[type=date], input[type=time], input[type=search], select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 2px solid transparent; border-radius: 12px; background: var(--soft);
  transition: border-color .15s ease, background-color .15s ease;
}
input:hover, select:hover, textarea:hover { background: var(--soft-2); }
textarea { min-height: 92px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--black); background: var(--white); outline: none; }
input::placeholder, textarea::placeholder { color: #666666; }
select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: 15px; cursor: pointer; color: var(--ink); margin: 10px 0 4px; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--black); flex: none; }

.error-box { background: var(--alert-bg); color: #8A1710; border: 0; padding: 12px 14px; border-radius: 12px; font-weight: 500; }
.note-box { background: var(--soft); border: 0; padding: 12px 14px; border-radius: 12px; color: var(--dark); }

.money { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Brand: the dhol-player logo and the name */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand:hover { text-decoration: none; }
.brand-mascot { height: 46px; width: auto; flex: none; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -0.025em; line-height: 1; color: var(--black); }
.brand-sub { display: block; font-weight: 600; font-size: 12px; letter-spacing: 0; color: var(--gold-deep); margin-top: 4px; }

.smarty { font-size: 13px; color: inherit; }
.smarty a { color: inherit; }

/* Line icons */
.ic { width: 20px; height: 20px; flex: none; }
.ic.sm { width: 16px; height: 16px; }

/* Rewards card: checkout, the order page, the home page and admin's preview */
.rcard { position: relative; background: var(--green-deep); color: #F3E7D6; border-radius: var(--r-md); padding: 18px 20px 16px; overflow: hidden; isolation: isolate; }
.rcard::after { content: ''; position: absolute; right: -50px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 140, 0, .35), rgba(255, 91, 19, 0) 70%); z-index: -1; }
.rcard-name { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--gold); font-size: 14px; }
.rcard-tag { margin-left: auto; font-size: 12px; font-weight: 600; color: #BDBDBD; border: 1px solid rgba(255, 255, 255, .2); padding: 1px 8px; border-radius: 999px; }
.rcard-big { font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--white); margin-top: 8px; line-height: 1.2; letter-spacing: -0.02em; }
.rcard-num { font-size: 36px; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.rcard-bar { display: block; width: 100%; height: 8px; margin: 12px 0 8px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .16); overflow: hidden; -webkit-appearance: none; appearance: none; }
.rcard-bar::-webkit-progress-bar { background: rgba(255, 255, 255, .16); border-radius: 999px; }
.rcard-bar::-webkit-progress-value { background: var(--order); border-radius: 999px; }
.rcard-bar::-moz-progress-bar { background: var(--order); border-radius: 999px; }
.rcard-next { font-size: 15px; color: var(--white); }
.rcard-next strong { color: #FFC266; }
.rcard-rule { font-size: 13px; color: #B5B5B5; margin-top: 6px; }
.rcard-join .rcard-big { font-size: 20px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Paper tickets and receipts printed through the device's own print window (public/js/print.js) */
.print-area { display: none; }
@media print {
  @page { margin: 3mm; }
  body > *:not(.print-area) { display: none !important; }
  body { background: #fff !important; }
  .print-area { display: block; color: #000; font-family: Arial, Helvetica, sans-serif; line-height: 1.25; }
  .print-area.w80 { width: 72mm; }
  .print-area.w58 { width: 48mm; }
  .print-area .pr { margin: 0.6mm 0; overflow-wrap: anywhere; }
  .print-area .s1 { font-size: 10.5pt; }
  .print-area .s2 { font-size: 13.5pt; }
  .print-area .s3 { font-size: 26pt; line-height: 1.05; }
  .print-area.w58 .s1 { font-size: 9pt; }
  .print-area.w58 .s2 { font-size: 11.5pt; }
  .print-area.w58 .s3 { font-size: 20pt; }
  .print-area .b { font-weight: 700; }
  .print-area .c { text-align: center; }
  .print-area .in { padding-left: 5mm; }
  .print-area .kv { display: flex; justify-content: space-between; gap: 2mm; }
  .print-area .kv span:last-child { white-space: nowrap; }
  .print-area .box { border: 0.6mm solid #000; padding: 1mm; margin: 1.5mm 0; }
  .print-area .rule { border-top: 0.5mm dashed #000; margin: 2mm 0; }
  .print-area .feed { height: 3mm; }
  .print-area .cut { break-after: page; page-break-after: always; height: 0; }
}
