/* Taquería El Tren (sample) — mobile-first styles */
:root {
  --red: #c8402f;
  --red-dark: #9e2f21;
  --gold: #f2b134;
  --teal: #12706b;
  --cream: #fff7ea;
  --ink: #2a1d17;
  --muted: #6d5d54;
  --line: #eadfcd;
  --round: "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body { margin: 0; font: 17px/1.6 var(--sans); color: var(--ink); background: #fff; }
h1, h2, h3, h4 { font-family: var(--round); line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 6.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 5vw, 2.5rem); color: var(--red); }
p { margin: 0 0 1em; }
a { color: var(--red-dark); }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }
.sub { color: var(--muted); }
svg { display: block; max-width: 100%; }

.btn { display: inline-block; padding: 0.85rem 1.4rem; border-radius: 999px; font: inherit; font-weight: 800; text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-small { padding: 0.5rem 1rem; font-size: 0.95rem; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #f7c45c; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-outline { border-color: #fff; color: #fff; }
.btn-line-dark { border-color: var(--ink); color: var(--ink); }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: var(--red); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 62px; }
.brand { display: flex; align-items: center; gap: 0.4rem; color: #fff; text-decoration: none; font: 1.1rem var(--round); white-space: nowrap; }
.brand svg { width: 34px; height: 34px; }
.btn-small { white-space: nowrap; }
@media (min-width: 600px) { .brand { font-size: 1.25rem; } }
.nav { display: none; }
@media (min-width: 900px) {
  .nav { display: flex; gap: 1.6rem; }
  .nav a { color: #fff; text-decoration: none; font-weight: 700; }
  .nav a:hover { color: var(--gold); }
}

/* Paper flags */
.flags { display: flex; height: 26px; overflow: hidden; background: var(--red-dark); }
.flags span { flex: 1; clip-path: polygon(0 0, 100% 0, 100% 70%, 75% 100%, 50% 70%, 25% 100%, 0 70%); }
.flags span:nth-child(4n+1) { background: var(--gold); }
.flags span:nth-child(4n+2) { background: #4f9b4a; }
.flags span:nth-child(4n+3) { background: #e86a9a; }
.flags span:nth-child(4n+4) { background: #3a8fd1; }

/* Hero */
.hero { background: var(--teal); color: #e6f4f2; padding: 3rem 0; }
.hero h1 { color: #fff; }
.lead { font-size: 1.15rem; max-width: 34rem; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }
.hero-art { margin-top: 2rem; }
@media (min-width: 900px) {
  .hero { padding: 4.5rem 0; }
  .hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center; }
  .hero-art { margin-top: 0; }
}

/* Open / closed pill */
.status { display: inline-block; padding: 0.3rem 0.9rem; border-radius: 999px; font-weight: 700; font-size: 0.95rem; background: rgba(255,255,255,0.15); }
.status::before { content: "\25CF  "; }
.status.is-open::before { color: #7ee07a; }
.status.is-closed::before { color: #ff9d8f; }
.status-dark { background: var(--cream); }
.status-dark.is-open::before { color: #2f9e44; }
.status-dark.is-closed::before { color: var(--red); }

/* Sections */
.section { padding: 3.5rem 0; }
.section-cream { background: var(--cream); }
.section-red { background: var(--red); color: #fff; }
.section-red h2 { color: #fff; }
@media (min-width: 900px) { .section { padding: 5rem 0; } }
.split { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }

/* Specials */
.specials { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
@media (min-width: 700px) { .specials { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .specials { grid-template-columns: repeat(4, 1fr); } }
.specials li { background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 0.9rem 1rem; }
.specials b { display: block; font-family: var(--round); color: var(--teal); }
.specials span { font-size: 0.95rem; }
.specials li.is-today { border-color: var(--red); background: #fff1ee; font-weight: 400; position: relative; }
.specials li.is-today::after { content: "TODAY"; position: absolute; top: 0.8rem; right: 0.9rem; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; color: #fff; background: var(--red); padding: 0.1rem 0.5rem; border-radius: 999px; }

/* Menu */
.menu-controls { display: grid; gap: 0.75rem; margin: 1.5rem 0; position: sticky; top: 62px; z-index: 10; background: #fff; padding: 0.5rem 0; }
.tabs { display: flex; gap: 0.4rem; overflow-x: auto; padding-bottom: 0.25rem; }
.tab { flex: none; font: inherit; font-weight: 700; padding: 0.45rem 1rem; border-radius: 999px; border: 2px solid var(--teal); background: #fff; color: var(--teal); cursor: pointer; }
.tab.is-active { background: var(--teal); color: #fff; }
.toggles { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.95rem; }
.toggles label { display: flex; align-items: center; gap: 0.35rem; cursor: pointer; }
.tag { display: inline-block; font-size: 0.72rem; font-weight: 800; padding: 0.05rem 0.5rem; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em; }
.tag.veg { background: #e3f3df; color: #2b6a25; }
.tag.spicy { background: #fde3de; color: var(--red-dark); }
.tag.popular { background: #fff0cc; color: #7a5200; }

.menu-cat { margin-bottom: 2rem; }
.menu-cat h3 { font-size: 1.5rem; color: var(--teal); border-bottom: 3px dotted var(--gold); padding-bottom: 0.3rem; }
.menu-cat h3 small { font: 400 0.95rem var(--sans); color: var(--muted); }
.menu-cat ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
@media (min-width: 800px) { .menu-cat ul { grid-template-columns: 1fr 1fr; gap: 0.75rem 1.5rem; } }
.item { display: grid; grid-template-columns: 1fr auto; gap: 0.25rem 1rem; align-items: start; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.item h4 { font-size: 1.1rem; margin: 0 0 0.15rem; display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.item p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.item .price { font-weight: 800; font-family: var(--round); }
.add { grid-column: 2; justify-self: end; font: inherit; font-weight: 800; font-size: 0.9rem; padding: 0.3rem 0.9rem; border-radius: 999px; border: 2px solid var(--red); background: #fff; color: var(--red); cursor: pointer; }
.add:hover, .add.added { background: var(--red); color: #fff; }
.empty { color: var(--muted); font-style: italic; }

/* Reviews */
.reviews { display: grid; gap: 1rem; }
@media (min-width: 900px) { .reviews { grid-template-columns: repeat(3, 1fr); } }
.reviews figure { margin: 0; background: rgba(255,255,255,0.1); border-radius: 14px; padding: 1.5rem; }
.reviews blockquote { margin: 0 0 0.75rem; font-size: 1.1rem; }
.reviews figcaption { color: var(--gold); font-weight: 700; }

/* Catering */
.packages { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.75rem; }
.packages li { display: grid; grid-template-columns: 1fr auto; background: #fff; border-radius: 12px; padding: 1rem 1.2rem; border-left: 6px solid var(--gold); }
.packages b { font-family: var(--round); }
.packages span { grid-column: 1; font-size: 0.92rem; color: var(--muted); }
.packages em { grid-column: 2; grid-row: 1 / 3; align-self: center; font: 800 1.3rem var(--round); color: var(--red); }

/* Forms */
.form { display: grid; gap: 0.9rem; background: #fff; padding: 1.5rem; border-radius: 14px; box-shadow: 0 8px 30px rgba(0,0,0,0.08); }
.form h3 { color: var(--teal); margin: 0; }
.form label { display: grid; gap: 0.3rem; font-weight: 700; font-size: 0.95rem; }
.form input, .form select, .form textarea { font: inherit; font-size: 1rem; padding: 0.7rem; border: 1px solid #d8c9b3; border-radius: 8px; width: 100%; background: #fff; }
.row { display: grid; gap: 0.9rem; }
@media (min-width: 560px) { .row { grid-template-columns: 1fr 1fr; } }

/* Hours & map */
.hours { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.hours th, .hours td { padding: 0.5rem 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.hours td { text-align: right; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 800; color: var(--red); }
.address { color: var(--muted); }
.map { border-radius: 14px; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,0.1); }

.footer { background: var(--ink); color: #d9cbbf; padding: 2.5rem 0 6rem; text-align: center; }
.footer a { color: var(--gold); }
.footer-brand { font: 1.4rem var(--round); color: #fff; }
.footer-note { font-size: 0.85rem; opacity: 0.8; }

/* Cart */
.cart-button { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 70; display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border: 0; border-radius: 999px; background: var(--red); color: #fff; font: 800 1rem var(--sans); cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.cart-button[hidden] { display: none; }
@media (min-width: 700px) { .cart-button { left: auto; width: 320px; } }
.cart { position: fixed; inset: 0; z-index: 80; background: #fff; overflow-y: auto; padding: 1.25rem; display: grid; align-content: start; gap: 0.75rem; box-shadow: -10px 0 30px rgba(0,0,0,0.2); }
.cart[hidden] { display: none; }
@media (min-width: 700px) { .cart { left: auto; width: 420px; } }
.cart-head { display: flex; justify-content: space-between; align-items: center; }
.cart-head h2 { margin: 0; font-size: 1.5rem; }
.cart-close { font-size: 2rem; line-height: 1; border: 0; background: none; cursor: pointer; color: var(--ink); }
.cart-items { list-style: none; padding: 0; margin: 0; }
.cart-items li { display: grid; grid-template-columns: 1fr auto auto; gap: 0.75rem; align-items: center; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.qty { display: flex; align-items: center; gap: 0.4rem; }
.qty button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--teal); background: #fff; color: var(--teal); font-weight: 800; cursor: pointer; }
.cart-subtotal { display: flex; justify-content: space-between; font-size: 1.15rem; margin: 0.5rem 0 0; }
.cart-note { font-size: 0.85rem; color: var(--muted); margin: 0; }
.cart-form { box-shadow: none; padding: 0; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
