/* ============================================
   Mittho MoMo — stylesheet
   ============================================ */

:root {
  --cream: #E4EAE1;
  --paper: #F6F9F4;
  --dark: #1F2E1E;
  --muted: #6F7F6C;
  --maroon: #A8322A;
  --gold: #B58F3F;
  --green: #3D6B3A;

  --flag-blue: #1B4F8C;
  --flag-white: #F5F0E4;
  --flag-red: #C8342B;
  --flag-green: #3D6B3A;
  --flag-yellow: #E8B33A;
}

* { box-sizing: border-box; }

html, body { overflow-x: hidden; }

body {
  font-family: "Mukta", system-ui, sans-serif;
  background: var(--cream);
  color: var(--dark);
  max-width: 560px;
  margin: 0 auto;
  padding: 0 0 40px;
  line-height: 1.6;
}

/* ---------- Header ---------- */

.site-header {
  text-align: center;
  padding: 0 16px 22px;
  margin-bottom: 20px;
}

.site-header::before {
  content: "";
  display: block;
  height: 8px;
  margin: 0 -16px 20px;
  background: linear-gradient(
    to right,
    var(--flag-blue) 0 20%,
    var(--flag-white) 20% 40%,
    var(--flag-red) 40% 60%,
    var(--flag-green) 60% 80%,
    var(--flag-yellow) 80% 100%
  );
}

.logo {
  width: 110px;
  height: 110px;
  object-fit: contain;
  border-radius: 50%;
}

.site-header h1 {
  font-family: "Kalam", cursive;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--maroon);
  margin: 10px 0 0;
}

.devanagari {
  font-size: 1.6rem;
  color: var(--dark);
  margin: 0 0 4px;
  letter-spacing: 1px;
}

.tagline {
  font-family: "Kalam", cursive;
  color: var(--muted);
  font-size: 1rem;
  margin: 0;
}

/* ---------- Status banner ---------- */

.status-banner {
  margin: 0 16px 26px;
  padding: 11px 16px;
  border-radius: 4px;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
}

.status-banner.open {
  background: rgba(28, 238, 13, 0.384);
  color: var(--green);
}

.status-banner.closed {
  background: rgba(158, 43, 37, 0.12);
  color: var(--maroon);
}

/* ---------- Sections ---------- */

section {
  padding: 0 16px;
  margin-bottom: 30px;
}

h2 {
  font-family: "Kalam", cursive;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--maroon);
  margin: 0 0 10px;
}

/* ---------- Menu list ---------- */

#menu-list {
  background: var(--paper);
  padding: 0 16px;
  border-top: 2px solid var(--dark);
  border-bottom: 2px solid var(--dark);
}

.menu-card {
  background: none;
  border: none;
  border-radius: 0;
  border-bottom: 1px dashed rgba(46, 31, 20, 0.25);
  padding: 16px 0;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "name  price"
    "pcs   qty";
  gap: 6px 10px;
  align-items: center;
}

.menu-card:last-child { border-bottom: none; }

.menu-card h3 {
  grid-area: name;
  font-family: "Kalam", cursive;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  flex-shrink: 0;
}

.dot.veg { background: var(--green); }
.dot.nonveg { background: var(--maroon); }

.pieces {
  grid-area: pcs;
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.price {
  grid-area: price;
  justify-self: end;
  margin: 0;
  font-family: "Kalam", cursive;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--maroon);
}

/* ---------- Quantity controls ---------- */

.qty-controls {
  grid-area: qty;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 6px;
}

.qty-btn {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(46, 31, 20, 0.3);
  background: var(--cream);
  color: var(--dark);
  border-radius: 4px;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.qty-btn:active { background: var(--gold); }

.qty {
  min-width: 26px;
  text-align: center;
  font-weight: 700;
  font-size: 1.05rem;
}

/* ---------- Order summary ---------- */

.cart-line {
  margin: 0 0 6px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.empty {
  font-family: "Kalam", cursive;
  color: var(--muted);
  margin: 0;
}

.total {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px dashed rgba(46, 31, 20, 0.3);
  font-family: "Kalam", cursive;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--maroon);
  text-align: right;
}

/* ---------- Form ---------- */

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 14px 0 4px;
  color: var(--dark);
}

input, select, textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid rgba(46, 31, 20, 0.25);
  border-radius: 4px;
  background: var(--paper);
  font-family: inherit;
  font-size: 1rem;
  color: var(--dark);
}

input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: transparent;
}

textarea { resize: vertical; }

/* ---------- Submit ---------- */

#submit-order {
  display: block;
  width: calc(100% - 32px);
  margin: 26px 16px 0;
  padding: 15px;
  background: var(--maroon);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: "Kalam", cursive;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
}

#submit-order:active { background: var(--maroon-dark); }

#submit-order:disabled {
  background: var(--muted);
  cursor: not-allowed;
}

/* ---------- Footer ---------- */

footer {
  margin-top: 34px;
  padding: 20px 16px 0;
  border-top: 1px solid rgba(46, 31, 20, 0.15);
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

footer p { margin: 6px 0; }

/* ---------- Accessibility ---------- */

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}


.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  visibility: hidden;
  width: calc(100% - 32px);
  max-width: 480px;
  background: var(--dark);
  color: var(--paper);
  padding: 14px 18px;
  border-radius: 8px;
  border-left: 4px solid var(--maroon);
  font-size: 0.95rem;
  box-shadow: 0 6px 20px rgba(31, 46, 30, 0.25);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 100;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

.field-error {
  border-color: var(--maroon) !important;
  background: rgba(168, 50, 42, 0.05);
}

.utensil-note {
  margin: 14px 0 0;
  padding: 12px 14px;
  background: rgba(61, 107, 58, 0.1);
  border-left: 3px solid var(--green);
  border-radius: 0 6px 6px 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.utensil-note strong { color: var(--green); }

.wa-link {
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(61, 107, 58, 0.4);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

