:root {
    --cream: #FBEEDD;
    --paper: #FFF9F0;
    --orange: #C1440E;
    --orange-soft: #F3D2BF;
    --green: #5B7A4D;
    --green-soft: #DCE6D3;
    --dark: #2B1B12;
    --muted: #6F5B4D;
    --line: rgba(43, 27, 18, 0.1);
    --shadow: 0 8px 24px rgba(43, 27, 18, 0.08);
    --radius: 20px;
}

* { box-sizing: border-box; }

html { font-size: 15px; }
@media (min-width: 768px) { html { font-size: 16px; } }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Nunito', system-ui, sans-serif;
    background: var(--cream);
    color: var(--dark);
    line-height: 1.5;
}

h1, h2, h3, .brand { font-family: 'Fredoka', system-ui, sans-serif; line-height: 1.15; }
a { color: var(--orange); }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(193, 68, 14, 0.45); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); margin: 0.25rem 0 0; }

/* ---------- nav ---------- */
.nav {
    position: sticky; top: 0; z-index: 20;
    display: flex; align-items: center; gap: 1.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
}
.brand { color: var(--orange); font-weight: 700; font-size: 1.4rem; text-decoration: none; white-space: nowrap; }
.nav-links { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.nav-links a {
    color: var(--dark); text-decoration: none; font-weight: 700;
    padding: 0.4rem 0.7rem; border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a.active { color: var(--orange); border-bottom-color: var(--orange); }
.badge { display: inline-block; min-width: 1.3em; padding: 0 0.35em; border-radius: 999px; background: var(--orange); color: #fff; font-size: 0.75rem; text-align: center; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 0.2rem 0.7rem; font-size: 1.2rem; cursor: pointer; }
@media (max-width: 860px) {
    .nav { flex-wrap: wrap; padding: 0.7rem 1rem; }
    .nav-toggle { display: block; }
    .nav-links { display: none; width: 100%; flex-direction: column; }
    .nav-links.open { display: flex; }
}

main { flex: 1 0 auto; outline: none; }

.footer { background: var(--dark); color: #F5E6D3; text-align: center; padding: 1rem; font-size: 0.9rem; }
.footer a { color: var(--orange-soft); font-weight: 700; }

/* footer: a kitchen ticket */
.ticket-foot { padding: 2rem 1rem 2.4rem; }
.ticket { max-width: 340px; margin: 0 auto; padding: 1.2rem 1.4rem 1rem; background: var(--paper); color: var(--dark); text-align: left; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.82rem; border-radius: 6px 6px 0 0;
    -webkit-mask: radial-gradient(circle 7px at 50% 100%, transparent 98%, #000) 0 0 / 18px 100% repeat-x;
            mask: radial-gradient(circle 7px at 50% 100%, transparent 98%, #000) 0 0 / 18px 100% repeat-x; padding-bottom: 1.6rem; }
.ticket-head { display: flex; justify-content: space-between; gap: 0.5rem; margin: 0 0 0.7rem; padding-bottom: 0.6rem; border-bottom: 1.5px dashed rgba(43, 27, 18, 0.35); }
.ticket-head b { font-family: 'Fredoka', sans-serif; font-size: 1rem; color: var(--orange); }
.ticket-head span { color: var(--muted); font-size: 0.72rem; align-self: center; }
.ticket-items { list-style: none; margin: 0; padding: 0; }
.ticket-items li { display: grid; grid-template-columns: 2.2rem 1fr auto; padding: 0.22rem 0; }
.ticket-items span, .ticket-items em { color: var(--muted); font-style: normal; }
.ticket .ticket-items a { color: var(--dark); font-weight: 700; text-decoration: none; }
.ticket .ticket-items a:hover { color: var(--orange); text-decoration: underline; }
.ticket-total { display: flex; justify-content: space-between; margin: 0.6rem 0 0; padding-top: 0.6rem; border-top: 1.5px dashed rgba(43, 27, 18, 0.35); font-weight: 700; }
.ticket-total b { color: var(--orange); }
.ticket-thanks { margin: 0.8rem 0 0.2rem; text-align: center; font-family: 'Fredoka', sans-serif; font-size: 1rem; color: var(--green); }
.ticket-legal { margin: 0; text-align: center; font-size: 0.68rem; color: var(--muted); }

/* ---------- shared pieces ---------- */
.hero { padding: 2rem 1rem; display: flex; justify-content: center; }
.hero-banner { background: url('../images/austin-banner.png') center / cover no-repeat; min-height: calc(100vh - 120px); align-items: center; }
.hero-truck { background: url('../images/truck-sunset.png') center / cover fixed; }
@media (max-width: 700px) { .hero-banner, .hero-truck { background: none; } }

.card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem; }
.narrow { max-width: 480px; text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.75rem; font-weight: 800; color: var(--muted); margin: 0; }
.headline { font-size: 2.6rem; color: var(--orange); margin: 0.2rem 0 1rem; display: inline-block; }
.headline.green { color: var(--green); }
.underline { display: block; height: 6px; width: 60%; margin: 0.4rem auto 0; border-radius: 6px; background: var(--orange-soft); }
.page-title { font-size: 2rem; margin: 0.2rem 0; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
    border: 0; border-radius: 999px; padding: 0.6rem 1.2rem;
    background: var(--orange); color: #fff; font-weight: 800; text-decoration: none; cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { background: #A5390B; }
.btn:active { transform: scale(0.97); }
.btn.ghost { background: #fff; color: var(--dark); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--orange); color: var(--orange); }
.btn-big { width: 100%; padding: 0.85rem; font-size: 1.05rem; margin-top: 0.5rem; }
.link-btn { display: block; margin: 0.6rem auto 0; background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; }

/* ---------- home ---------- */
.welcome { max-width: 500px; text-align: center; }
.subtitle { font-size: 1.1rem; color: var(--muted); margin: 0 0 1.2rem; }
.lead { font-weight: 700; }
.order-types { display: grid; gap: 0.8rem; margin: 1rem 0 1.4rem; }
.order-type {
    display: flex; align-items: center; gap: 1rem; text-align: left;
    padding: 1rem 1.2rem; border-radius: 16px; text-decoration: none; color: #fff;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.order-type:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(43, 27, 18, 0.18); }
.order-type.walkup { background: var(--orange); }
.order-type.catering { background: var(--green); }
.order-type .icon { font-size: 2rem; }
.order-type b { display: block; font-family: 'Fredoka', sans-serif; font-size: 1.25rem; }
.order-type small { opacity: 0.9; }
.home-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1rem; font-weight: 700; font-size: 0.95rem; }
.home-links a { text-decoration: none; }

/* ---------- ordering ---------- */
.order-layout { width: 100%; max-width: 1240px; display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 1.5rem; align-items: start; }
@media (max-width: 1000px) { .order-layout { grid-template-columns: 1fr; } }
.order-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.switch-type { font-weight: 700; text-decoration: none; }
.tabs { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.tab { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 0.4rem 1rem; font-weight: 700; cursor: pointer; }
.tab.on { background: var(--dark); color: #fff; border-color: var(--dark); }
.cat-blurb { color: var(--muted); margin: 0.7rem 0 1rem; }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.menu-item { display: flex; flex-direction: column; gap: 0.7rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1rem; }
.menu-top { display: flex; gap: 0.8rem; }
.emoji { font-size: 2rem; line-height: 1; }
.menu-item h3 { margin: 0 0 0.2rem; font-size: 1.15rem; }
.menu-item p { margin: 0 0 0.3rem; color: var(--muted); font-size: 0.9rem; }
.tag { display: inline-block; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; padding: 0.1rem 0.5rem; border-radius: 999px; margin-right: 0.3rem; background: var(--orange-soft); color: #7A2B08; }
.tag-vegetarian { background: var(--green-soft); color: #33472A; }
.tag-spicy { background: #F8D6CF; color: #8A1F10; }
.chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.chip { font-size: 0.8rem; font-weight: 700; padding: 0.25rem 0.6rem; border-radius: 999px; border: 1.5px dashed rgba(43, 27, 18, 0.25); background: none; cursor: pointer; }
.chip.on { border-style: solid; border-color: var(--green); background: var(--green-soft); color: #33472A; }
.menu-bottom { margin-top: auto; display: flex; align-items: center; gap: 0.5rem; }
.price { font-weight: 800; font-size: 1.1rem; margin-right: auto; }
.qty-input { width: 4.2rem; padding: 0.4rem; border: 1.5px solid var(--line); border-radius: 10px; text-align: center; }

.cart-card { position: sticky; top: 80px; max-height: calc(100vh - 100px); overflow: auto; padding: 1.5rem; }
@media (max-width: 1000px) { .cart-card { position: static; max-height: none; } }
.cart-title { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 0.8rem; font-size: 1.4rem; }
.cart-title span { font-family: 'Nunito', sans-serif; font-size: 0.9rem; color: var(--muted); font-weight: 700; }
.cart-lines { list-style: none; margin: 0 0 1rem; padding: 0; }
.cart-lines li { display: grid; grid-template-columns: 1fr auto 4.5rem; gap: 0.6rem; align-items: center; padding: 0.6rem 0; border-bottom: 1px dashed var(--line); }
.line-info small { display: block; color: var(--muted); font-size: 0.8rem; }
.line-total { text-align: right; font-weight: 700; }
.stepper { display: flex; align-items: center; gap: 0.3rem; }
.stepper button { width: 1.8rem; height: 1.8rem; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-weight: 800; line-height: 1; }
.stepper span { min-width: 1.6rem; text-align: center; font-weight: 700; }
.empty-cart { color: var(--muted); padding: 1rem; text-align: center; border: 1.5px dashed var(--line); border-radius: 14px; }

.delivery-meter { margin: 0 0 1rem; }
.meter { height: 10px; border-radius: 999px; background: var(--green-soft); overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--green); transition: width 0.3s ease; }
.delivery-meter small { color: var(--muted); font-weight: 700; }

#checkout label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 0.7rem; }
#checkout label small { color: var(--muted); font-weight: 600; }
#checkout input:not([type=checkbox]):not([type=radio]) { display: block; width: 100%; margin-top: 0.25rem; padding: 0.55rem 0.7rem; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; }
#checkout input[aria-invalid=true] { border-color: #B42318; background: #FFF5F3; }
.field-error { display: block; color: #B42318; font-size: 0.8rem; margin-top: 0.2rem; }
.form-error { background: #FDE8E4; color: #8A1F10; padding: 0.6rem 0.8rem; border-radius: 10px; font-weight: 700; margin-bottom: 0.8rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 0.8rem; }
#checkout .check { display: flex; gap: 0.5rem; align-items: center; }
.suggest { width: 100%; text-align: left; margin: 0 0 0.8rem; padding: 0.6rem 0.8rem; border-radius: 12px; border: 1.5px dashed var(--green); background: var(--green-soft); color: #33472A; font-weight: 700; cursor: pointer; }
.tips { border: 0; padding: 0; margin: 0 0 0.6rem; }
.tips legend { font-weight: 700; font-size: 0.9rem; margin-bottom: 0.3rem; }
.tips { display: flex; gap: 0.4rem; }
#checkout .tip { flex: 1; margin: 0; text-align: center; padding: 0.45rem 0; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; background: #fff; }
#checkout .tip.on { background: var(--dark); color: #fff; border-color: var(--dark); }
.tip input { position: absolute; opacity: 0; pointer-events: none; }
.tip:focus-within { outline: 3px solid rgba(193, 68, 14, 0.45); }

.totals { margin: 1rem 0 0; }
.totals div { display: flex; justify-content: space-between; padding: 0.25rem 0; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; font-weight: 700; }
.totals s { color: var(--muted); font-weight: 400; margin-right: 0.3rem; }
.totals .grand { border-top: 2px solid var(--dark); margin-top: 0.4rem; padding-top: 0.5rem; font-size: 1.25rem; }
.totals .grand dt { color: var(--dark); font-weight: 800; }

/* ---------- receipt ---------- */
.receipt { width: 100%; max-width: 720px; }
.receipt-head { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.receipt-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.8rem; margin: 0.5rem 0 1.5rem; }
.receipt-meta dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 800; }
.receipt-meta dd { margin: 0; font-weight: 700; }
.receipt-lines { width: 100%; border-collapse: collapse; }
.receipt-lines th { text-align: left; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); border-bottom: 2px solid var(--line); padding: 0.4rem 0; }
.receipt-lines td { padding: 0.55rem 0; border-bottom: 1px dashed var(--line); }
.receipt-lines td small { display: block; color: var(--muted); }
.receipt-lines th:not(:first-child), .receipt-lines td:not(:first-child) { text-align: right; }
.receipt-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
.status { display: inline-block; padding: 0.2rem 0.7rem; border-radius: 999px; font-weight: 800; font-size: 0.8rem; background: #EFE4D8; }
.status-new { background: var(--orange-soft); color: #7A2B08; }
.status-cooking { background: #FCE9B2; color: #6A4A00; }
.status-ready { background: var(--green-soft); color: #33472A; }
.status-complete { background: #E7E1DC; color: var(--muted); }

/* ---------- kitchen + dashboard pages ---------- */
.page { width: 100%; max-width: 1240px; margin: 0 auto; padding: 2rem 1rem 3rem; }
.page-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
.head-actions { display: flex; gap: 0.5rem; }

.kboard { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; align-items: start; }
@media (max-width: 1000px) { .kboard { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .kboard { grid-template-columns: 1fr; } }
.kcol { background: rgba(255, 249, 240, 0.6); border: 1px solid var(--line); border-radius: 18px; padding: 0.8rem; min-height: 200px; }
.kcol h2 { font-size: 1.1rem; margin: 0.2rem 0.3rem 0.8rem; display: flex; justify-content: space-between; }
.kcol h2 span { font-family: 'Nunito', sans-serif; color: var(--muted); }
.kcard { background: #fff; border-radius: 14px; padding: 0.8rem; margin-bottom: 0.7rem; box-shadow: 0 2px 8px rgba(43, 27, 18, 0.06); border-left: 5px solid var(--orange); }
.kcard.catering { border-left-color: var(--green); }
.kcard header, .kcard footer { display: flex; justify-content: space-between; align-items: center; gap: 0.4rem; }
.kcard .pill { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.kname { margin: 0.2rem 0; font-weight: 700; }
.kcard ul { margin: 0 0 0.6rem; padding-left: 1.1rem; font-size: 0.88rem; }
.kcard small { color: var(--muted); }
.kcard footer { flex-wrap: wrap; }
.kcard footer small { white-space: nowrap; }
.kcard footer span { display: flex; gap: 0.3rem; margin-left: auto; }
.mini { font-size: 0.78rem; font-weight: 800; padding: 0.25rem 0.6rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; text-decoration: none; color: var(--dark); cursor: pointer; white-space: nowrap; }
.mini.solid { background: var(--dark); color: #fff; border-color: var(--dark); }
.kempty { color: var(--muted); text-align: center; font-size: 0.9rem; }

.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.8rem; margin-bottom: 1rem; }
@media (max-width: 1000px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { background: var(--paper); border-radius: 16px; padding: 1rem; box-shadow: var(--shadow); }
.kpi span { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 800; }
.kpi b { font-family: 'Fredoka', sans-serif; font-size: 1.6rem; font-weight: 600; }
.dash-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
@media (max-width: 1000px) { .dash-grid { grid-template-columns: 1fr; } }
.panel { padding: 1.4rem; }
.panel h2 { font-size: 1.15rem; margin: 0 0 1rem; }
.split { display: flex; height: 18px; border-radius: 999px; overflow: hidden; background: #EFE4D8; }
.split-walkup, .dot.walkup { background: var(--orange); }
.split-catering, .dot.catering { background: var(--green); }
.legend div { display: flex; justify-content: space-between; margin-top: 0.7rem; }
.legend dt { font-weight: 700; }
.legend dd { margin: 0; color: var(--muted); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 0.4rem; }
.bars { list-style: none; margin: 0; padding: 0; }
.bars li { display: grid; grid-template-columns: 8.5rem 1fr auto; gap: 0.6rem; align-items: center; margin-bottom: 0.55rem; font-size: 0.9rem; }
.bars span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar { height: 10px; background: #EFE4D8; border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--orange); border-radius: 999px; }
.bar i.alt { background: var(--green); }
.table-wrap { overflow-x: auto; }
.history { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.history th { text-align: left; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); padding: 0.5rem; border-bottom: 2px solid var(--line); }
.history td { padding: 0.55rem 0.5rem; border-bottom: 1px dashed var(--line); white-space: nowrap; }
.history .num { text-align: right; }
.empty-state { text-align: center; color: var(--muted); }

/* ---------- about ---------- */
.about .page-title { font-size: 2.2rem; max-width: 800px; }
.lead-wide { max-width: 760px; font-size: 1.05rem; margin: 0.6rem 0 1.5rem; }
.about-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 1000px) { .about-grid { grid-template-columns: 1fr; } }
.code { background: var(--dark); color: #F5E6D3; padding: 1rem; border-radius: 12px; font-size: 0.8rem; overflow-x: auto; line-height: 1.55; }
.rules { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.rules th { text-align: left; vertical-align: top; padding: 0.45rem 0.6rem 0.45rem 0; white-space: nowrap; }
.rules td { padding: 0.45rem 0; color: var(--muted); }
.rules tr + tr { border-top: 1px dashed var(--line); }
.ticks { margin: 0; padding-left: 1.1rem; }
.ticks li { margin-bottom: 0.5rem; }

/* ---------- toast + print ---------- */
.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 150%); background: var(--dark); color: #fff; padding: 0.6rem 1.2rem; border-radius: 999px; font-weight: 700; transition: transform 0.25s ease; z-index: 50; pointer-events: none; }
.toast.show { transform: translate(-50%, 0); }

@media print {
    .nav, .footer, .no-print, .toast { display: none !important; }
    body, .hero { background: #fff; }
    .card { box-shadow: none; }
}
