/* Restaurant billing page (/restaurant, /ml/restaurant). Plain CSS, no build step: nginx serves it
   as-is. Colours are the Multipad tokens from DESIGN.md. */
:root {
  --ink: #17143a;
  --ink-raised: #221d4e;
  --indigo: #4b3fd9;
  --saffron: #f2a93b;
  --paper: #faf7f1;
  --card: #ffffff;
  --muted: #626376;
  --on-ink-muted: #b3b3ca;
  --border: #e1e1e8;
  --wash: #f2f2f8;
  --radius: 16px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Noto Sans Malayalam", "Nirmala UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

:lang(ml) body, body:lang(ml) { line-height: 1.7; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--indigo); }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Header */
.top { background: var(--ink); color: #fff; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 20px; }
.brand img { width: 34px; height: 34px; }
.lang {
  color: #fff; text-decoration: none; font-size: 15px; font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 999px; padding: 8px 16px;
}
.lang:hover { background: var(--ink-raised); }

/* Hero */
.hero { background: var(--ink); color: #fff; padding: 36px 0 0; overflow: hidden; }
.eyebrow { color: var(--saffron); font-weight: 700; font-size: 15px; letter-spacing: 0.02em; margin: 0 0 10px; }
.hero h1 { font-size: clamp(30px, 7vw, 52px); line-height: 1.15; margin: 0 0 14px; max-width: 760px; }
.hero h1 em { font-style: normal; color: var(--saffron); }
.hero .lead { color: var(--on-ink-muted); font-size: 18px; margin: 0 0 26px; max-width: 640px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 34px; }
.hero-shot {
  border-radius: 12px 12px 0 0; border: 1px solid rgba(255, 255, 255, 0.14); border-bottom: 0;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.25);
}

/* Buttons */
.wa-btn, .ghost-btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px;
  border-radius: 12px; font-weight: 700; font-size: 17px; text-decoration: none;
}
.wa-btn { background: var(--indigo); color: #fff; }
.wa-btn:hover { background: #3f34c4; }
.wa-btn[hidden] { display: none; }
.wa-btn svg { width: 22px; height: 22px; flex: none; }
.ghost-btn { color: #fff; border: 1px solid rgba(255, 255, 255, 0.35); }
.ghost-btn:hover { background: var(--ink-raised); }

/* Sections */
section { padding: 64px 0; }
h2 { font-size: clamp(26px, 5vw, 36px); line-height: 1.2; margin: 0 0 10px; }
.section-lead { color: var(--muted); margin: 0 0 36px; max-width: 640px; }

.feature {
  display: grid; gap: 22px; align-items: center;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; margin-bottom: 22px;
}
.feature h3 { font-size: 22px; margin: 0 0 8px; }
.feature p { color: var(--muted); margin: 0; }
.feature img { border-radius: 10px; border: 1px solid var(--border); }
.tag { display: inline-block; width: 28px; height: 4px; border-radius: 4px; background: var(--saffron); margin-bottom: 12px; }

.more { display: grid; gap: 16px; margin-top: 40px; }
.mini {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; display: flex; gap: 16px; align-items: flex-start;
}
.mini h3 { font-size: 18px; margin: 0 0 4px; }
.mini p { color: var(--muted); margin: 0; font-size: 16px; }
.icon {
  flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--wash);
  display: grid; place-items: center; color: var(--indigo);
}
.icon svg { width: 22px; height: 22px; }

/* Devices */
.devices { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.device-grid { display: grid; gap: 28px; align-items: center; }
.device-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.device-list li { display: flex; gap: 14px; align-items: flex-start; }
.device-list strong { display: block; }
.device-list span { color: var(--muted); }
.device-shot { border-radius: 12px; border: 1px solid var(--border); }

/* Contact */
.contact { background: var(--ink); color: #fff; text-align: center; }
.contact h2 { color: #fff; }
.contact .section-lead { color: var(--on-ink-muted); margin-left: auto; margin-right: auto; }
.contact .actions { justify-content: center; margin-bottom: 18px; }
.contact .email { color: var(--on-ink-muted); margin: 0; }
.contact .email a { color: #fff; }

/* Footer */
footer { padding: 26px 0 34px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--muted); }

@media (min-width: 900px) {
  .hero { padding-top: 56px; }
  .feature { grid-template-columns: 5fr 7fr; padding: 30px; gap: 36px; }
  .feature:nth-of-type(even) { grid-template-columns: 7fr 5fr; }
  .feature:nth-of-type(even) .feature-text { order: 2; }
  .more { grid-template-columns: repeat(3, 1fr); }
  .device-grid { grid-template-columns: 5fr 7fr; gap: 44px; }
  section { padding: 84px 0; }
}

@media (min-width: 600px) and (max-width: 899px) {
  .more { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
