:root {
    --paper: #fffdf8;
    --ink: #2f3b2b;
    --muted: #65615a;
    --line: #d8cbbb;
    --leaf: #294626;
    --section: #6f3f2d;
    --price: #9c4c24;
    --field: #fffaf1;
    --focus: #b86834;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
}

.site-header {
    border-bottom: 1px solid var(--line);
    padding: 18px clamp(18px, 5vw, 64px) 22px;
}

.intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--price);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
h4,
h5,
p {
    margin-top: 0;
}

h1,
h2,
h3,
h4,
h5 {
    color: var(--leaf);
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1.1;
}

h1 {
    margin-bottom: 8px;
    font-size: clamp(28px, 4vw, 42px);
}

h2 {
    margin-bottom: 12px;
    font-size: clamp(24px, 3vw, 34px);
}

.business-subheading {
    margin-bottom: 6px;
    color: var(--section);
    font-size: 15px;
    font-weight: 700;
}

.tagline {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-style: italic;
}

.header-phone,
.header-address {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.header-address {
    margin-top: 4px;
}

.header-phone a {
    color: var(--leaf);
    font-weight: 700;
    text-decoration: none;
}

button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 1px solid var(--leaf);
    border-radius: 4px;
    background: var(--leaf);
    color: #fff;
    font: 700 14px Arial, Helvetica, sans-serif;
    text-decoration: none;
    cursor: pointer;
}

button[hidden],
[hidden] {
    display: none !important;
}

main {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 clamp(18px, 5vw, 64px);
}

.section {
    padding: 42px 0;
}

.section-heading {
    max-width: 740px;
    margin-bottom: 28px;
}

.section-heading p:last-child {
    color: var(--muted);
}

.section-jump-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.section-jump-nav a {
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 4px 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.section-jump-nav a:hover {
    border-color: var(--section);
    color: var(--section);
}

.section-jump-nav a.is-current {
    border-color: var(--section);
    color: #fff;
    background: var(--section);
}

.menu-search {
    max-width: 620px;
    margin: 0 0 10px;
}

.menu-search label {
    display: block;
    margin-bottom: 4px;
}

.menu-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: end;
}

.menu-search input {
    margin-top: 0;
}

.clear-search-button {
    min-height: 44px;
    width: auto;
    border-color: var(--line);
    background: transparent;
    color: var(--muted);
}

.clear-search-button:hover {
    border-color: var(--section);
    background: #f8f4ea;
    color: var(--section);
}

.search-status {
    min-height: 16px;
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.search-results {
    display: grid;
    gap: 6px;
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
}

.search-results button {
    display: block;
    width: 100%;
    min-height: 0;
    padding: 9px 10px;
    border-color: var(--line);
    background: #fffaf1;
    color: var(--ink);
    text-align: left;
}

.search-results button:hover {
    border-color: var(--section);
    background: #f8f4ea;
}

.search-results strong,
.search-results small {
    display: block;
}

.search-results strong {
    color: var(--leaf);
}

.search-results small {
    margin-top: 2px;
    color: var(--muted);
    font-weight: 400;
}

.notice {
    margin: 24px 0 0;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #f8f4ea;
}

.notice-success {
    border-color: #9eb48c;
}

.notice-error {
    border-color: #c78978;
}

.form-message {
    display: none;
    margin: -6px 0 0;
    padding: 10px 12px;
    border: 1px solid var(--line);
    color: var(--muted);
    font: 700 13px Arial, Helvetica, sans-serif;
}

.form-message.is-visible {
    display: block;
}

.form-message.is-success {
    background: #eef4ea;
    border-color: #b8c9ad;
    color: var(--green);
}

.form-message.is-error {
    background: #f7e3df;
    border-color: #c78978;
    color: var(--section);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 56px;
}

.menu-sections {
    display: grid;
    gap: 34px;
}

.menu-section {
    display: grid;
    gap: 22px;
}

.menu-section-heading {
    display: grid;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--section);
}

.menu-section-heading h3 {
    margin: 0;
    color: var(--section);
    font-size: clamp(22px, 3vw, 29px);
}

.menu-group {
    display: grid;
    gap: 8px;
}

.menu-group > h4 {
    margin: 0;
    color: var(--price);
    font: 700 12px Arial, Helvetica, sans-serif;
    letter-spacing: 0;
    text-transform: uppercase;
}

.menu-item {
    min-height: 82px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    scroll-margin-top: 18px;
    transition: background-color 180ms ease, box-shadow 180ms ease;
}

.menu-item.is-highlighted {
    background: #f8f4ea;
    box-shadow: 0 0 0 8px #f8f4ea;
}

.menu-item:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--line);
}

.menu-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.menu-title-row h5 {
    margin-bottom: 4px;
    font-size: 18px;
}

.menu-title-row p {
    flex: 0 0 auto;
    margin-bottom: 0;
    color: var(--muted);
    white-space: nowrap;
}

.menu-title-row strong {
    color: var(--price);
}

.description {
    margin-bottom: 0;
    color: var(--muted);
}

.item-order-control {
    margin-top: 10px;
}

.order-this-button {
    min-height: 36px;
    width: auto;
    padding: 0 14px;
    border-color: var(--line);
    background: transparent;
    color: var(--leaf);
    font-size: 13px;
}

.order-this-button:hover {
    border-color: var(--leaf);
    background: #f8f4ea;
}

.quantity-control {
    display: inline-grid;
    grid-template-columns: 38px 46px 38px;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--field);
}

.quantity-control button {
    min-height: 36px;
    width: 38px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--leaf);
    font-size: 18px;
}

.quantity-control button:hover {
    background: #f8f4ea;
}

.quantity-control input {
    height: 36px;
    margin: 0;
    padding: 0;
    border-width: 0 1px;
    border-radius: 0;
    background: #fff;
    color: var(--ink);
    font-weight: 700;
    text-align: center;
}

.order-section {
    border-top: 1px solid var(--line);
}

.order-form {
    display: grid;
    gap: 22px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.selected-order {
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 16px;
    background: #fffaf1;
}

.selected-order h3 {
    margin-bottom: 8px;
    color: var(--section);
    font-size: 20px;
}

.selected-empty {
    margin-bottom: 0;
    color: var(--muted);
}

.selected-items {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.selected-items li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
}

.selected-items li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.selected-items small {
    display: block;
    color: var(--muted);
    font-weight: 400;
}

.selected-items b {
    flex: 0 0 auto;
    color: var(--price);
}

.remove-selected {
    min-height: 32px;
    width: auto;
    padding: 0 10px;
    border-color: var(--line);
    background: transparent;
    color: var(--muted);
    font-size: 12px;
}

.remove-selected:hover {
    border-color: var(--price);
    background: #f8f4ea;
    color: var(--price);
}

label,
legend {
    color: var(--ink);
    font-weight: 700;
}

label small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-weight: 400;
    line-height: 1.35;
}

input,
select,
textarea {
    width: 100%;
    margin-top: 7px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--field);
    color: var(--ink);
    font: 16px Arial, Helvetica, sans-serif;
}

input,
select {
    height: 44px;
    padding: 0 11px;
}

textarea {
    min-height: 120px;
    padding: 11px;
    resize: vertical;
}

.hidden-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.compact-header h1 {
    font-size: clamp(26px, 4vw, 36px);
}

.pin-form {
    max-width: 360px;
}

.orders-list {
    display: grid;
    gap: 18px;
}

.order-card {
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 18px;
    background: #fffaf1;
}

.order-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
    margin-bottom: 14px;
}

.order-card-heading h3 {
    margin-bottom: 4px;
    font-size: 18px;
}

.order-card-heading p,
.order-card p {
    color: var(--muted);
}

.phone-link {
    flex: 0 0 auto;
    border: 1px solid var(--leaf);
    border-radius: 4px;
    padding: 8px 12px;
    color: var(--leaf);
    font-weight: 700;
    text-decoration: none;
}

.order-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 14px;
}

.order-meta dt {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.order-meta dd {
    margin: 0;
}

.order-card h4 {
    margin: 16px 0 8px;
    color: var(--leaf);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 14px;
}

.order-card-items {
    margin: 0;
    padding-left: 20px;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
}

fieldset {
    margin: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 4px;
}

legend {
    padding: 0 8px;
    font-size: 15px;
    font-family: Georgia, 'Times New Roman', serif;
}

button {
    width: min(260px, 100%);
    padding: 0 22px;
}

button:hover {
    background: #20381f;
}

footer {
    border-top: 1px solid var(--line);
    padding: 26px clamp(18px, 5vw, 64px);
    color: var(--muted);
    text-align: center;
}

footer p {
    margin-bottom: 6px;
}

.mobile-action-bar {
    display: none;
}

.floating-search-button {
    display: none;
}

@media (max-width: 820px) {
    body {
        padding-bottom: 76px;
    }

    .site-header {
        padding: 14px clamp(18px, 5vw, 64px) 18px;
    }

    .intro {
        align-items: center;
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .tagline {
        max-width: 560px;
        font-size: 12px;
        line-height: 1.45;
    }

    .business-subheading {
        font-size: 13px;
    }

    .header-phone {
        margin-top: 8px;
        font-size: 12px;
    }

    .header-address {
        font-size: 12px;
    }

    .section {
        padding: 28px 0;
    }

    .menu-grid,
    .form-grid,
    .order-meta {
        grid-template-columns: 1fr;
    }

    .menu-item:nth-last-child(-n + 2) {
        border-bottom: 0;
    }

    .menu-item:last-child {
        border-bottom: 1px solid var(--line);
    }

    .mobile-action-bar {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 20;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
        border-top: 1px solid var(--line);
        background: rgba(255, 253, 248, 0.96);
        box-shadow: 0 -8px 24px rgba(47, 59, 43, 0.12);
    }

    .mobile-action {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 46px;
        border-radius: 4px;
        font-weight: 700;
        font-size: 14px;
        text-decoration: none;
    }

    .mobile-action-call {
        border: 1px solid var(--leaf);
        color: var(--leaf);
        background: var(--paper);
    }

    .mobile-action-order {
        border: 1px solid var(--leaf);
        color: #fff;
        background: var(--leaf);
    }

    .floating-search-button {
        position: fixed;
        right: 14px;
        bottom: calc(76px + env(safe-area-inset-bottom));
        z-index: 21;
        display: inline-flex;
        min-height: 40px;
        width: auto;
        padding: 0 14px;
        border-color: var(--section);
        background: var(--section);
        color: #fff;
        box-shadow: 0 6px 18px rgba(47, 59, 43, 0.18);
    }
}

@media (max-width: 520px) {
    .site-header {
        padding-top: 12px;
        padding-bottom: 16px;
    }

    h1 {
        margin-bottom: 8px;
        font-size: 24px;
    }

    .tagline {
        font-size: 12px;
    }

    .intro {
        gap: 14px;
    }

    .menu-section-heading h3 {
        font-size: 24px;
    }

    .menu-title-row {
        display: block;
    }

    .menu-title-row p {
        white-space: normal;
    }

    .selected-items li {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .remove-selected {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .order-card-heading {
        display: block;
    }

    .phone-link {
        display: inline-block;
        margin-top: 10px;
    }
}
