@font-face {
    font-family: "HarringtonLocal";
    src: url("../fonts/HARNGTON.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: light;
    --bg: #f6f2ec;
    --surface: #fffaf3;
    --surface-strong: #ffffff;
    --text: #171512;
    --muted: #716b63;
    --line: rgba(23, 21, 18, 0.12);
    --accent: #1f8a70;
    --accent-strong: #cf4f2f;
    --shadow: 0 18px 45px rgba(52, 43, 31, 0.12);
}

[data-theme="dark"] {
    color-scheme: dark;
    --bg: #111313;
    --surface: #1b1e1d;
    --surface-strong: #242827;
    --text: #f7f2e9;
    --muted: #b9b0a2;
    --line: rgba(255, 255, 255, 0.13);
    --accent: #48c7a2;
    --accent-strong: #ff896f;
    --shadow: 0 18px 45px rgba(0, 0, 0, 0.28), 0 0 28px rgba(72, 199, 162, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.45;
}

body.harrington-title .brand,
body.harrington-title .hero h1 {
    font-family: "HarringtonLocal", Harrington, "Times New Roman", serif;
    font-weight: 400;
}

a {
    color: inherit;
    text-decoration: none;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: 44px 1fr auto 44px;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.brand {
    overflow: hidden;
    font-size: 18px;
    font-weight: 800;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.icon-button,
.theme-toggle,
.language-current,
.drawer-close {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-strong);
    color: var(--text);
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.menu-toggle {
    position: relative;
    overflow: hidden;
    gap: 4px;
    border-radius: 14px;
}

.menu-toggle::before {
    content: "";
    position: absolute;
    inset: 7px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.menu-toggle span {
    position: relative;
    width: 18px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.menu-toggle span:nth-child(2) {
    width: 13px;
    justify-self: end;
}

.menu-toggle:hover,
.theme-toggle:hover,
.language-current:hover {
    border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent);
    transform: translateY(-1px);
}

.theme-toggle {
    position: relative;
    font-size: 18px;
}

.language-menu {
    position: relative;
}

.language-current {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: auto;
    min-width: 62px;
    padding: 0 10px;
    font-size: 13px;
}

.language-current strong {
    font-size: 12px;
}

.flag-badge {
    display: block;
    width: 22px;
    height: 15px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.16);
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.language-popover {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 60;
    display: none;
    min-width: 168px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-strong);
    box-shadow: var(--shadow);
}

.language-popover.open {
    display: grid;
    gap: 6px;
}

.language-popover a {
    display: grid;
    grid-template-columns: 22px auto 1fr;
    align-items: center;
    gap: 7px;
    padding: 9px;
    border-radius: 8px;
    color: var(--text);
}

.language-popover a:hover {
    background: color-mix(in srgb, var(--accent) 12%, var(--surface));
}

.language-popover em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
}

[data-theme="dark"] .theme-sun,
.theme-moon {
    display: none;
}

[data-theme="dark"] .theme-moon {
    display: inline;
}

.drawer {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    width: min(84vw, 360px);
    height: 100dvh;
    max-height: 100dvh;
    padding: 18px;
    background: var(--surface);
    border-right: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateX(-105%);
    transition: transform 180ms ease;
    overflow: hidden;
}

.drawer.open {
    transform: translateX(0);
}

.drawer-head {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.drawer-head strong {
    font-size: 22px;
}

.drawer-close {
    font-size: 26px;
}

.drawer-nav {
    display: grid;
    gap: 8px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 4px;
    padding-bottom: 18px;
    -webkit-overflow-scrolling: touch;
}

.drawer-nav a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 14px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-strong);
    font-weight: 700;
}

.drawer-nav a.drawer-subitem {
    margin-left: 14px;
    padding: 10px 12px;
    border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.drawer-nav a.drawer-level-2 {
    margin-left: 28px;
}

.drawer-nav a.drawer-level-3,
.drawer-nav a.drawer-level-4 {
    margin-left: 42px;
}

.scrim {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: none;
    background: rgba(0, 0, 0, 0.42);
}

.scrim.open {
    display: block;
}

.menu-page {
    width: min(100%, 980px);
    margin: 0 auto;
    padding: 16px 14px 42px;
}

.hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    min-height: 172px;
    margin-bottom: 18px;
    padding: 22px;
    border-radius: 8px;
    background-position: center;
    background-size: cover;
    color: #ffffff;
    box-shadow: var(--shadow);
}

.hero-actions {
    display: flex;
    gap: 10px;
    margin: -6px 0 18px;
}

.primary-action,
.secondary-action,
.contact-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 8px;
    font-weight: 900;
}

.primary-action,
.contact-form button {
    border: 0;
    background: var(--accent);
    color: #ffffff;
}

.secondary-action {
    border: 1px solid var(--line);
    background: var(--surface);
}

[data-theme="dark"] .hero,
[data-theme="dark"] .menu-card,
[data-theme="dark"] .legend-item,
[data-theme="dark"] .drawer {
    box-shadow: var(--shadow);
}

.hero p,
.hero h1 {
    margin: 0;
}

.hero p {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 14ch;
    font-size: clamp(34px, 9vw, 58px);
    line-height: 0.95;
}

.hero-meta {
    display: grid;
    gap: 2px;
    min-width: 108px;
    font-size: 13px;
    font-weight: 800;
    text-align: right;
}

.menu-section {
    scroll-margin-top: 72px;
    margin-top: 24px;
}

.subcategory-section {
    scroll-margin-top: 72px;
    margin-top: 18px;
}

.subcategory-depth-2 {
    margin-left: 12px;
    padding-left: 12px;
    border-left: 2px solid color-mix(in srgb, var(--accent) 24%, transparent);
}

.subcategory-depth-3,
.subcategory-depth-4 {
    margin-left: 22px;
    padding-left: 12px;
    border-left: 2px solid color-mix(in srgb, var(--accent) 18%, transparent);
}

.subcategory-title {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 20px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
}

.section-title h2,
.subcategory-title,
.drawer-nav a {
    min-width: 0;
}

.section-title h2,
.subcategory-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-icon {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    width: 28px;
    height: 28px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--line));
    border-radius: 50%;
    background: color-mix(in srgb, var(--accent) 10%, var(--surface));
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
    font-size: 15px;
    line-height: 1;
}

.drawer-nav .category-icon {
    width: 25px;
    height: 25px;
    font-size: 14px;
}

.category-icon svg {
    width: 78%;
    height: 78%;
}

.category-icon > img {
    width: 112%;
    height: 112%;
    object-fit: contain;
}

.category-icon .icon-stroke {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.65;
}

.category-icon .icon-fill-gold {
    fill: #f0b331;
}

.category-icon .icon-fill-crust {
    fill: #d48b35;
}

.category-icon .icon-fill-cheese {
    fill: #ffd965;
}

.category-icon .icon-fill-red {
    fill: #a51f2d;
}

.category-icon .icon-fill-green {
    fill: #157447;
}

.category-icon .icon-olive {
    fill: #263b22;
    stroke: #7da15c;
    stroke-width: 0.8;
}

.category-icon .icon-pizza-cut {
    stroke: #b7662e;
    stroke-width: 1.05;
}

.category-icon .icon-fill-orange {
    fill: #d66a22;
}

.category-icon .icon-fill-amber {
    fill: #d99125;
}

.category-icon .icon-fill-cream {
    fill: #fff2c4;
}

.category-icon .icon-fill-plate {
    fill: #fff8e8;
}

.category-icon .icon-plate-shadow {
    fill: #d9c7aa;
}

.category-icon .icon-text {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
    text-align: center;
}

.category-icon .icon-zero {
    color: #1684b8;
    font-size: 9px;
}

.category-icon .icon-cola {
    color: #c91424;
    font-size: 8px;
    font-style: italic;
}

.category-icon .icon-anise {
    color: #2f7cc0;
    font-size: 16px;
}

.category-icon .icon-vodka {
    color: #6da8d8;
    font-size: 15px;
}

.category-icon .icon-alcohol {
    color: #80542f;
    font-size: 7px;
}

.category-title-text {
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
}

.section-title > span {
    width: 10px;
    height: 28px;
    border-radius: 2px;
    background: var(--accent-strong);
}

.section-title h2 {
    margin: 0;
    font-size: 25px;
}

.item-list {
    display: grid;
    gap: 10px;
}

.menu-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
}

.promo-list .menu-card {
    border-color: color-mix(in srgb, var(--accent-strong) 42%, var(--line));
}

.combo-promotions-section {
    margin-top: 18px;
}

.combo-promo-list {
    display: grid;
    gap: 12px;
}

.combo-promo-card {
    display: grid;
    gap: 12px;
    padding: 15px;
    border: 1px solid color-mix(in srgb, var(--accent-strong) 34%, var(--line));
    border-radius: 8px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--accent) 11%, transparent), transparent 52%),
        var(--surface);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.07);
}

.combo-promo-main {
    display: grid;
    gap: 8px;
}

.combo-promo-card h3 {
    margin: 0;
    color: var(--accent);
    font-size: 19px;
    line-height: 1.2;
}

.combo-promo-card p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.35;
}

.combo-schedule {
    width: fit-content;
    padding: 5px 8px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent) 10%, var(--surface));
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
}

.combo-items {
    display: grid;
    gap: 3px;
    padding: 10px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--line) 48%, transparent);
}

.combo-items span,
.combo-price span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.combo-items strong {
    font-size: 14px;
    line-height: 1.3;
}

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

.combo-item-list li {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 8px 0;
    border-top: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
}

.combo-item-list li:first-child {
    border-top: 0;
}

.combo-item-list div {
    display: grid;
    gap: 2px;
}

.combo-item-list strong {
    color: var(--text);
    font-size: 14px;
    line-height: 1.2;
}

.combo-item-list small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.combo-item-list del {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-decoration-color: #d0392f;
    text-decoration-thickness: 1.5px;
    white-space: nowrap;
}

.combo-price {
    display: grid;
    justify-items: end;
    gap: 2px;
    padding-top: 2px;
    text-align: right;
}

.combo-price strong {
    color: #d0392f;
    font-size: 22px;
    line-height: 1;
}

.combo-price em {
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
    font-weight: 800;
}

.menu-card h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.2;
}

.dish-ribbons {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 7px;
}

.dish-ribbon {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    margin-right: 6px;
    padding: 4px 10px 4px 9px;
    border-radius: 4px 2px 2px 4px;
    background: #1f8a70;
    color: #ffffff;
    box-shadow: 0 5px 14px rgba(31, 138, 112, 0.18);
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.dish-ribbon::after {
    position: absolute;
    right: -6px;
    width: 7px;
    height: 22px;
    background: inherit;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    filter: brightness(0.9);
    content: "";
}

.dish-ribbon-new,
.dish-ribbon-seasonal {
    background: #1f8a70;
}

.dish-ribbon-hit,
.dish-ribbon-top_choice {
    background: #cf4f2f;
}

.dish-ribbon-most_ordered,
.dish-ribbon-chef_recommends {
    background: #8a5a28;
}

.dish-ribbon-promotion {
    background: #d0392f;
}

.dish-ribbon-vegan {
    background: #2f8f46;
}

.dish-ribbon-spicy {
    background: #b92c20;
}

.dish-ribbon-premium {
    background: #3d3426;
}

.dish-ribbon-image {
    width: 42px;
    height: 42px;
    min-height: 42px;
    margin-right: 0;
    padding: 0;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
}

.dish-ribbon-image::after {
    display: none;
}

.dish-ribbon-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.menu-card p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.combo-item-notes {
    display: grid;
    gap: 5px;
    margin-top: 8px;
}

.menu-card .combo-item-note {
    margin: 0;
    padding: 7px 8px;
    border-left: 3px solid #d0392f;
    border-radius: 6px;
    background: color-mix(in srgb, #d0392f 8%, var(--surface));
    color: var(--text);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
}

.combo-item-note strong {
    color: #d0392f;
}

.weight {
    display: inline-block;
    margin-top: 9px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.dish-allergens {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.allergen-icon {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--accent);
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.allergen-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.allergen-tooltip {
    position: relative;
    cursor: help;
}

.allergen-tooltip::after {
    content: attr(data-tooltip);
    position: fixed;
    left: var(--tooltip-left, 50vw);
    top: var(--tooltip-top, 50vh);
    z-index: 20;
    width: max-content;
    max-width: min(240px, calc(100vw - 24px));
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-strong);
    color: var(--text);
    box-shadow: var(--shadow);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -100%) translateY(-8px);
    transition: opacity 140ms ease, transform 140ms ease;
    white-space: normal;
}

.allergen-tooltip:hover::after,
.allergen-tooltip:focus-visible::after {
    opacity: 1;
    transform: translate(-50%, -100%) translateY(-12px);
}

.price-box {
    display: grid;
    align-content: start;
    gap: 2px;
    min-width: 92px;
    text-align: right;
}

.price-box strong {
    color: var(--accent);
    font-size: 17px;
}

.price-box-promo {
    min-width: 116px;
    padding: 8px 9px;
    border: 1px solid color-mix(in srgb, #d0392f 28%, var(--line));
    border-radius: 8px;
    background: color-mix(in srgb, #d0392f 7%, var(--surface));
}

.price-box-promo .promo-badge {
    justify-self: end;
    width: fit-content;
    padding: 3px 6px;
    border-radius: 999px;
    background: #d0392f;
    color: #ffffff;
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.price-box-promo del {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    text-decoration-color: #d0392f;
    text-decoration-thickness: 1.5px;
}

.price-box-promo strong {
    color: #d0392f;
    font-size: 19px;
}

.price-box span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.price-box small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.empty {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    text-align: center;
}

.allergen-legend {
    margin-top: 30px;
    padding-top: 6px;
}

.contact-section {
    margin-top: 30px;
}

.notice-inline {
    padding: 12px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--accent) 14%, var(--surface));
    color: var(--text);
    font-weight: 800;
}

.notice-inline.error {
    background: color-mix(in srgb, #d0392f 14%, var(--surface));
}

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

.contact-form label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
}

.contact-form textarea {
    min-height: 96px;
    resize: vertical;
}

.captcha-row {
    grid-column: 1 / -1;
    padding-bottom: 2px;
}

.captcha-row .g-recaptcha {
    width: fit-content;
    max-width: 100%;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.captcha-row .g-recaptcha > div {
    overflow: hidden;
    border-radius: 8px;
}

.captcha-row iframe {
    border-radius: 8px;
}

.contact-form label:has(textarea),
.contact-form button {
    grid-column: 1 / -1;
}

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

.legend-item {
    display: grid;
    grid-template-columns: 52px 1fr;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 72px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.legend-item .allergen-icon {
    width: 52px;
    height: 52px;
}

.legend-item span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

@media (min-width: 720px) {
    .menu-page {
        padding: 24px 22px 60px;
    }

    .hero {
        min-height: 240px;
        padding: 32px;
    }

    .item-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .legend-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .contact-form,
    .hero-actions {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
}
