/* ============================================================
   Design tokens — "deli-counter / order-ticket" theme
   ============================================================ */
:root {
    --ink: #201A14;
    --parchment: #FBF8F3;
    --parchment-dim: #F1EBE0;
    --forest: #2F5233;
    --forest-dark: #1F3823;
    --mustard: #D4A017;
    --mustard-dark: #A97D0F;
    --brick: #8B3A3A;
    --line: #E4DCCB;
    --white: #FFFFFF;

    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Inter', -apple-system, Segoe UI, sans-serif;

    --radius-ticket: 4px;
    --shadow-ticket: 0 1px 0 rgba(32,26,20,0.06), 0 8px 20px -12px rgba(32,26,20,0.25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--parchment);
    line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.15;
    margin: 0 0 0.5em;
    font-weight: 600;
}
h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }
p { max-width: 68ch; }

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------------- Header ---------------- */
.site-header {
    background: var(--parchment);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 50;
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    padding-bottom: 14px;
    gap: 24px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--forest-dark);
    white-space: nowrap;
    flex-shrink: 0;
}
.brand img { height: 30px; width: 30px; flex-shrink: 0; }

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 0 1 auto;
}
.main-nav a {
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--ink);
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
    white-space: nowrap;
}
.main-nav a:hover { border-bottom-color: var(--mustard); }

.search-bar {
    display: flex;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 14px;
    flex: 1 1 180px;
    min-width: 0;
    max-width: 260px;
}
.search-bar input {
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.9rem;
    width: 100%;
    min-width: 0;
    color: var(--ink);
}
.search-bar button { border: none; background: none; cursor: pointer; display: flex; flex-shrink: 0; }

.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
}
.btn-primary { background: var(--forest); color: var(--white); }
.btn-primary:hover { background: var(--forest-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-small { padding: 6px 14px; font-size: 0.85rem; }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; }

/* ---------------- Hero ---------------- */
.hero {
    background: linear-gradient(180deg, var(--parchment) 0%, var(--parchment-dim) 100%);
    border-bottom: 1px solid var(--line);
    padding: 60px 0 70px;
}
.hero .container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}
.hero-eyebrow-free h1 { margin-bottom: 18px; }
.hero p.lede {
    font-size: 1.1rem;
    color: #4B4235;
    margin-bottom: 28px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Calculator ticket widget embedded in hero */
.ticket {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-ticket);
    box-shadow: var(--shadow-ticket);
    padding: 26px;
    position: relative;
}
.ticket::before, .ticket::after {
    content: "";
    position: absolute;
    width: 18px; height: 18px;
    background: var(--parchment);
    border-radius: 50%;
    top: 50%; transform: translateY(-50%);
}
.ticket::before { left: -9px; }
.ticket::after { right: -9px; }
.ticket h3 { margin-bottom: 4px; }
.ticket .ticket-sub { color: #786E5D; font-size: 0.9rem; margin-bottom: 18px; }
.ticket-field { margin-bottom: 14px; }
.ticket-field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }
.ticket-field input, .ticket-field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: var(--parchment);
}
.ticket-result {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px dashed var(--line);
    display: none;
}
.ticket-result.active { display: block; }
.ticket-result .pick {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}
.ticket-result .pick:last-child { border-bottom: none; }

/* ---------------- Section headings ---------------- */
.section { padding: 60px 0; }
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
    gap: 20px;
}
.section-head p { color: #786E5D; margin: 6px 0 0; }
.link-more { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--mustard); padding-bottom: 2px; white-space: nowrap; }

/* ---------------- Restaurant grid ---------------- */
.restaurant-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.r-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-ticket);
    overflow: hidden;
    text-decoration: none;
    color: var(--ink);
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.r-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-ticket); }
.r-card .r-image { aspect-ratio: 16/10; background: var(--parchment-dim); overflow: hidden; }
.r-card .r-image img { width: 100%; height: 100%; object-fit: cover; }
.r-card .r-body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.r-card h3 { font-size: 1.08rem; margin-bottom: 4px; }
.r-card .r-price { font-size: 0.88rem; color: var(--forest-dark); font-weight: 600; margin-bottom: 8px; }
.r-card .r-tags { font-size: 0.8rem; color: #786E5D; margin-top: auto; }

.stars { display: inline-flex; align-items: center; gap: 2px; }
.star { width: 15px; height: 15px; }
.star-full { fill: var(--mustard); }
.star-empty { fill: var(--line); }
.stars-count { font-size: 0.8rem; color: #786E5D; margin-left: 4px; }

/* ---------------- Posts list ---------------- */
.posts-list { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; }
.post-feature {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-ticket);
    overflow: hidden;
    text-decoration: none;
    color: var(--ink);
}
.post-feature img { aspect-ratio: 16/9; object-fit: cover; }
.post-feature .body { padding: 22px; }
.post-side { display: flex; flex-direction: column; gap: 18px; }
.post-row { display: flex; gap: 14px; text-decoration: none; color: var(--ink); }
.post-row img { width: 96px; height: 72px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.post-row .tag { font-size: 0.75rem; color: var(--brick); font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }

/* ---------------- Restaurant single page ---------------- */
.r-hero {
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 40px 0;
}
.r-hero .container { display: grid; grid-template-columns: 140px 1fr auto; gap: 26px; align-items: center; }
.r-hero .logo { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--parchment); border-radius: 8px; padding: 10px; border: 1px solid var(--line); }
.r-meta-row { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 10px; color: #4B4235; font-size: 0.92rem; }
.r-meta-row strong { color: var(--ink); }

.category-block { margin-bottom: 44px; }
.item-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}
.item-row .item-name { font-weight: 600; }
.item-row .item-desc { color: #786E5D; font-size: 0.9rem; margin-top: 3px; }
.item-row .item-meta { font-size: 0.82rem; color: #97897A; margin-top: 4px; }
.item-row .item-price { font-weight: 700; white-space: nowrap; text-align: right; }

.diet-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.diet-badge { font-size: 0.72rem; font-weight: 700; padding: 2px 9px; border-radius: 10px; text-transform: uppercase; letter-spacing: 0.02em; }
.badge-popular { background: #FDF0D5; color: var(--mustard-dark); }
.badge-veg { background: #EAF3EA; color: var(--forest-dark); }
.badge-gf { background: #EFEAF6; color: #5B3E96; }
.badge-halal { background: #E9F1F7; color: #2A5C82; }
.badge-spice { background: #FBEAEA; color: var(--brick); letter-spacing: 0; }

.category-pill { display: inline-block; font-size: 0.78rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: var(--forest); color: var(--white); }

.category-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 16px; margin-bottom: 20px; border-bottom: 1px solid var(--line); position: sticky; top: 64px; background: var(--parchment); z-index: 10; }
.category-tabs a { flex-shrink: 0; padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 0.85rem; font-weight: 600; background: var(--white); }
.category-tabs a.active, .category-tabs a:hover { background: var(--forest); color: var(--white); border-color: var(--forest); }

.item-allergens { font-size: 0.78rem; color: var(--brick); margin-top: 4px; }
.item-pp { font-size: 0.78rem; color: #97897A; font-weight: 400; }

.post-body h2 { margin-top: 34px; }
.post-body ul { padding-left: 20px; }
.post-body li { margin-bottom: 6px; }
.post-body a { color: var(--forest-dark); text-decoration: underline; text-decoration-color: var(--mustard); text-underline-offset: 2px; }
.post-body a:hover { color: var(--forest); }

.next-steps { margin-top: 56px; padding: 28px 26px; background: var(--parchment-dim); border-radius: 8px; border: 1px solid var(--line); }
.next-steps h3 { margin: 0 0 18px; font-size: 1.15rem; }
.next-steps-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.related-guides { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.related-guides h3 { font-size: 1.15rem; margin: 0 0 16px; }
.related-guides ul { list-style: none; padding: 0; margin: 0; }
.related-guides li { margin-bottom: 14px; line-height: 1.4; }
.related-guides a { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--mustard); padding-bottom: 1px; }
.related-guides a:hover { color: var(--forest-dark); }

.comment-box { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 16px 18px; margin-bottom: 12px; }
.comment-box .who { font-weight: 700; font-size: 0.9rem; }
.comment-box .when { color: #97897A; font-size: 0.8rem; margin-left: 8px; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--forest-dark); color: #E9E4D8; padding: 50px 0 24px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.footer-grid h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 14px; font-family: var(--font-body); }
.footer-grid a { color: #C9C2AE; text-decoration: none; font-size: 0.9rem; display: block; margin-bottom: 8px; }
.footer-grid a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px; font-size: 0.82rem; color: #9C9683; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------------- Forms (auth) ---------------- */
.auth-wrap { max-width: 420px; margin: 70px auto; padding: 0 20px; }
.auth-card { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 32px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.field input { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 6px; font-size: 0.95rem; }
.form-error { background: #FBEAEA; border: 1px solid #E9BDBD; color: var(--brick); padding: 10px 14px; border-radius: 6px; font-size: 0.88rem; margin-bottom: 16px; }
.form-success { background: #EAF3EA; border: 1px solid #BFDBC0; color: var(--forest-dark); padding: 10px 14px; border-radius: 6px; font-size: 0.88rem; margin-bottom: 16px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 960px) {
    .hero .container { grid-template-columns: 1fr; }
    .restaurant-grid { grid-template-columns: repeat(2, 1fr); }
    .posts-list { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .r-hero .container { grid-template-columns: 90px 1fr; }
}
@media (max-width: 720px) {
    .main-nav, .search-bar { display: none; }
    .menu-toggle { display: block; }
    .restaurant-grid { grid-template-columns: 1fr 1fr; }
    .r-hero .container { grid-template-columns: 70px 1fr; }
    .r-hero .btn { grid-column: span 2; }
}
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; scroll-behavior: auto !important; }
}
