/* Pulao Factory — site styles, LIGHT theme. Colors match the crimson + gold logo.
   The .dark class marks the accent bands (header, hero, visit, footer); here they are warm sand, not dark. */
:root {
  --ink: #f3e7d2;
  --ink-2: #eadbc0;
  --cream: #fbf5ea;
  --paper: #fffcf6;
  --text: #2a1d19;
  --muted: #5f4d45;
  --on-dark: #2a1d19;
  --on-dark-muted: #5a4840;
  --crimson: #a5151f;
  --crimson-dark: #7d0f17;
  --gold: #d4a94f;
  --gold-soft: #ead39b;
  --line: #e6d8c3;
  --veg: #1d7a39;
  --nonveg: #8a3412;
  --ok: #1d7a39;
  --warn: #9a5b00;
  --focus: #8a1019;
  --radius: 10px;
  --header-h: 76px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--sans);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--crimson-dark); text-underline-offset: 3px; }
a:hover { color: var(--crimson); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.dark { background: var(--ink); color: var(--on-dark); }
.dark a { color: var(--crimson-dark); }
.dark a:hover { color: var(--crimson); }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 28px; } }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--paper); color: var(--text); padding: 10px 14px; border-radius: 6px; font-weight: 600;
}
.skip:focus { top: 12px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.3em; border-radius: 999px;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background-color .15s, color .15s, border-color .15s;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-primary { background: var(--crimson); color: #fff; }
.btn-primary:hover { background: var(--crimson-dark); color: #fff; }
.btn-outline { border-color: currentColor; color: var(--crimson-dark); background: transparent; }
.btn-outline:hover { background: var(--crimson-dark); border-color: var(--crimson-dark); color: #fff; }
.dark .btn-primary, .dark .btn-primary:hover { color: #fff; }
.dark .btn-outline { color: var(--crimson-dark); }
.dark .btn-outline:hover { background: var(--crimson-dark); border-color: var(--crimson-dark); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 1px 10px rgba(60, 30, 20, .06); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand { display: block; flex: none; margin-right: auto; }
.brand img { width: 190px; height: auto; }
@media (max-width: 400px) { .brand img { width: 160px; } }
.nav-toggle {
  display: none; min-width: 48px; min-height: 48px; border-radius: 8px;
  background: transparent; border: 1px solid #8a7564; color: var(--on-dark); cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav a {
  display: block; padding: 12px 14px; color: var(--on-dark); text-decoration: none;
  font-weight: 500; border-radius: 6px;
}
.site-nav a:hover { color: var(--crimson-dark); background: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--crimson-dark); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.header-cta { flex: none; }

@media (max-width: 859px) {
  .js .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header-cta { display: none; }
  .js .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 8px 16px rgba(60, 30, 20, .08); padding: 8px 16px 16px;
  }
  .js .site-nav:not(.open) { display: none; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { padding: 14px 8px; font-size: 1.1rem; }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--gold); padding-left: 14px; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding-bottom: 8px; }
  html:not(.js) .site-nav ul { flex-direction: row; flex-wrap: wrap; }
}

/* ---------- Eyebrow (echoes the logo's "— SOUTH INDIAN KITCHEN —") ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font: 600 .8rem/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase;
  color: var(--crimson-dark); margin: 0 0 .75rem;
}
.eyebrow::before, .eyebrow::after { content: ""; height: 3px; width: 28px; border-radius: 3px; background: var(--gold); }
.dark .eyebrow { color: var(--crimson-dark); }
.center .eyebrow { justify-content: center; }
.center { text-align: center; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
@media (min-width: 768px) { .section { padding: 80px 0; } }
.section + .section:not(.dark) { border-top: 1px solid var(--line); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.dark .lead { color: var(--on-dark-muted); }
.center .lead { margin-left: auto; margin-right: auto; }
.page-head { padding: 48px 0 32px; }
.page-head h1 { margin-bottom: .25em; }

/* ---------- Hero ---------- */
.hero {
  padding: 40px 0 56px; text-align: center;
  background:
    radial-gradient(60% 70% at 50% 35%, rgba(212, 169, 79, .22), transparent 70%),
    var(--cream);
  border-bottom: 1px solid var(--line);
}
.hero-banner { width: min(100%, 720px); margin: 0 auto 24px; }
.hero h1 { font-size: clamp(1.6rem, 1.2rem + 2vw, 2.5rem); color: var(--on-dark); margin-bottom: .4em; }
.hero .btn-row { justify-content: center; margin-top: 20px; }
.hero .status { margin-top: 4px; }

/* ---------- Open/closed status ---------- */
.status {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .45em 1em; border-radius: 999px; font-weight: 600; font-size: .98rem;
  background: rgba(0, 0, 0, .05); border: 1px solid var(--line);
}
.dark .status { background: rgba(255, 252, 246, .7); border-color: var(--line); }
.status .dot { width: .7em; height: .7em; border-radius: 50%; background: #9b8b80; flex: none; }
.status[data-state="open"] .dot { background: #2fae58; box-shadow: 0 0 0 3px rgba(47, 174, 88, .25); }
.status[data-state="soon"] .dot { background: #e0a020; }
.status[data-state="closed"] .dot, .status[data-state="temp"] .dot { background: #d9434d; }

/* ---------- Cards ---------- */
.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 8px;
}
.card h3 { margin: 0; }
.card .card-img { margin: -22px -22px 8px; border-radius: var(--radius) var(--radius) 0 0; aspect-ratio: 4 / 3; object-fit: cover; width: calc(100% + 44px); max-width: none; }
.card .price { font-weight: 700; font-size: 1.1rem; color: var(--crimson-dark); margin: 0; }
.card .more { margin-top: auto; padding-top: 8px; font-weight: 600; }
.card-top { border-top: 4px solid var(--gold); }
.includes { list-style: none; padding: 0; margin: 4px 0 0; color: var(--muted); font-size: .97rem; }
.includes li { padding: 4px 0; border-top: 1px dashed var(--line); }
.includes li:first-child { border-top: 0; }

/* ---------- Diet marks (Indian veg / non-veg symbol + text) ---------- */
.diet {
  display: inline-flex; align-items: center; gap: .4em;
  font-size: .82rem; font-weight: 600; letter-spacing: .02em; white-space: nowrap;
}
.diet::before { content: ""; width: 14px; height: 14px; flex: none; background: center / contain no-repeat; }
.diet.veg { color: var(--veg); }
.diet.non-veg { color: var(--nonveg); }
/* Standard Indian food marks: green square + dot (veg), brown square + triangle (non-veg) */
.diet.veg::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Crect x='.75' y='.75' width='12.5' height='12.5' rx='1.5' fill='none' stroke='%231d7a39' stroke-width='1.5'/%3E%3Ccircle cx='7' cy='7' r='3.2' fill='%231d7a39'/%3E%3C/svg%3E"); }
.diet.non-veg::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Crect x='.75' y='.75' width='12.5' height='12.5' rx='1.5' fill='none' stroke='%238a3412' stroke-width='1.5'/%3E%3Cpath d='M7 3.4 10.6 10H3.4z' fill='%238a3412'/%3E%3C/svg%3E"); }
.badge {
  display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--crimson-dark); background: #f7e6c4; border: 1px solid var(--gold); border-radius: 4px; padding: .15em .5em;
}
.unavail { font-size: .85rem; font-weight: 600; color: var(--muted); }

/* ---------- Menu page ---------- */
.menu-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-bottom: 8px; }
.filter { border: 0; padding: 0; margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filter legend { font-weight: 600; float: left; margin-right: 6px; padding: 0; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); padding: 3px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: block; padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: .95rem; min-height: 44px; line-height: 24px; }
.seg input:checked + span { background: var(--crimson); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.filter-count { color: var(--muted); font-size: .95rem; margin: 0; }
.menu-notes { color: var(--muted); font-size: .95rem; margin: 0; padding-left: 1.1em; }

.cat-nav {
  position: sticky; top: var(--header-h); z-index: 40;
  background: var(--cream); border-bottom: 1px solid var(--line); margin-top: 16px;
}
.cat-nav ul {
  list-style: none; margin: 0; padding: 10px 0; display: flex; gap: 8px;
  overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; -webkit-overflow-scrolling: touch;
}
.cat-nav a {
  display: block; white-space: nowrap; padding: 8px 14px; min-height: 44px; line-height: 26px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
  text-decoration: none; color: var(--text); font-weight: 500; font-size: .95rem;
}
.cat-nav a:hover { border-color: var(--crimson); color: var(--crimson-dark); }

.menu-cat { padding: 36px 0 8px; scroll-margin-top: calc(var(--header-h) + 72px); }
.menu-cat > h2 { display: flex; align-items: center; gap: 14px; }
.menu-cat > h2::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, var(--gold), transparent); }
.menu-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 48px; }
@media (min-width: 900px) { .menu-list { grid-template-columns: 1fr 1fr; } }
.dish {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: start;
  padding: 16px 0; border-bottom: 1px dashed var(--line); scroll-margin-top: calc(var(--header-h) + 80px);
}
.dish:target { background: #f7e6c4; box-shadow: 0 0 0 8px #f7e6c4; border-radius: 4px; }
.dish.has-img { grid-template-columns: 96px 1fr auto; }
.dish-img { width: 96px; height: 72px; object-fit: cover; border-radius: 6px; grid-row: span 2; }
.dish h3 { font-size: 1.12rem; margin: 0; }
.dish-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin: 4px 0 0; font-size: .9rem; color: var(--muted); }
.dish-desc { grid-column: 1 / -1; margin: 2px 0 0; color: var(--muted); font-size: .97rem; }
.dish.has-img .dish-desc { grid-column: 2 / -1; }
.dish-price { font-weight: 700; color: var(--crimson-dark); white-space: nowrap; margin: 0; text-align: right; }
.variants { list-style: none; margin: 0; padding: 0; text-align: right; font-size: .95rem; }
.variants li { display: flex; justify-content: flex-end; gap: 10px; align-items: center; padding: 1px 0; }
.dish.is-unavailable h3, .dish.is-unavailable .dish-price { color: var(--muted); }
.dish.is-unavailable .dish-price { text-decoration: line-through; font-weight: 500; }
.menu-root[data-filter="veg"] [data-diet="non-veg"],
.menu-root[data-filter="non-veg"] [data-diet="veg"] { display: none; }

/* ---------- State messages ---------- */
.state {
  padding: 20px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper);
  color: var(--muted);
}
.state strong { color: var(--text); }
.state-error { border-color: #d9a3a3; background: #fdf1f0; }

/* ---------- Hours ---------- */
.hours { width: 100%; border-collapse: collapse; font-size: 1rem; }
.hours th, .hours td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.hours th { font-weight: 600; padding-right: 16px; width: 40%; }
.hours td span { display: block; white-space: nowrap; }
.hours tr.today th, .hours tr.today td { color: var(--crimson-dark); font-weight: 700; }
.hours .today-tag { font: 700 .7rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; background: var(--crimson); color: #fff; border-radius: 4px; padding: 3px 6px; margin-left: 8px; vertical-align: 2px; }
.dark .hours th, .dark .hours td { border-color: #dccab0; }
.closures { margin: 12px 0 0; font-size: .95rem; color: var(--muted); }

/* ---------- Visit block ---------- */
.split { display: grid; gap: 32px; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } }
.address { font-style: normal; font-size: 1.1rem; margin-bottom: 1em; }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.2em; }
.contact-list li { padding: 4px 0; }
.photo { margin: 0; }
.photo img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* ---------- Order page ---------- */
.order-options { display: grid; gap: 16px; max-width: 560px; }
.order-options .btn { width: 100%; min-height: 60px; font-size: 1.1rem; }
.note { font-size: .95rem; color: var(--muted); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; max-width: 620px; }
.form .row { display: grid; gap: 18px; }
@media (min-width: 600px) { .form .row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--muted); font-size: .9rem; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: #fff;
  border: 1.5px solid #8a7564; border-radius: 8px; padding: 12px 14px; min-height: 48px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { border-color: var(--focus); outline-offset: 1px; }
.form-status { padding: 14px 16px; border-radius: 8px; background: #eef6ee; border: 1px solid #b6d6bc; }

/* ---------- Footer ---------- */
.site-footer { padding: 48px 0 28px; font-size: .98rem; border-top: 1px solid #dccab0; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.1fr 1fr 1fr; } }
.site-footer h2 { font-size: 1.15rem; color: var(--crimson-dark); margin-bottom: .7em; }
.site-footer .brand img { width: 200px; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 3px 0; }
.site-footer li a { display: inline-block; padding: 6px 0; }
.footer-bottom { border-top: 1px solid #dccab0; margin-top: 36px; padding-top: 18px; color: var(--on-dark-muted); font-size: .9rem; }

/* ---------- Mobile action bar ---------- */
.action-bar { display: none; }
@media (max-width: 767px) {
  .action-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -4px 14px rgba(60, 30, 20, .08);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  }
  .action-bar a {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    min-height: 56px; color: var(--on-dark); text-decoration: none; font-size: .8rem; font-weight: 600; border-radius: 8px;
  }
  .action-bar a:hover { background: var(--ink); }
  .action-bar svg { width: 22px; height: 22px; color: var(--crimson); }
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
}

.noscript { background: #fff4d6; border: 1px solid var(--gold); padding: 16px; border-radius: 8px; margin: 16px 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .action-bar, .cat-nav, .menu-tools, .site-footer { display: none !important; }
  body { background: #fff; padding: 0; }
}
